exec <> errors
paul_one
04 May 2007, 15:20I posted a few mins ago - but deleted it after I got some things to work.
Still finding exec errors though;
Would be quite good if there weren't two bottles in the room.
I simply do this:
Debug shows the command to be "hit bottle with boot".
I guess the disambiguation /has/ to be done on the first interpretation of the command.
==EDIT==
A-HAAAAAAH!!!
.. it's all to do with the fact that the exec command can use the original names of objects..
changing the name has fixed this now.
Closing off this one.
Still finding exec errors though;
> hit it with boot
hit what?
> bottle
WOOOOO!
Would be quite good if there weren't two bottles in the room.
I simply do this:
set numeric <t.badit.pos; $instr(#quest.originalcommand#;_it)$ >
set string <t.badit.first; $left(#quest.originalcommand#;%t.badit.pos%)$ >
inc <t.badit.pos; 3>
set string <t.badit.second; >
if ( %t.badit.pos% < $lengthof(#quest.originalcommand#)$ ) then _
set string <t.badit.second; $mid(#quest.originalcommand#;%t.badit.pos%)$ >
msg <#t.badit.first# what?>
enter <t.badit.response>
set string <t.badit.command; #t.badit.first# #t.badit.response# #t.badit.second#>
exec <#t.badit.command#>
debug <#t.badit.command#>
Debug shows the command to be "hit bottle with boot".
I guess the disambiguation /has/ to be done on the first interpretation of the command.
==EDIT==
A-HAAAAAAH!!!
.. it's all to do with the fact that the exec command can use the original names of objects..
changing the name has fixed this now.
Closing off this one.