|
Kru Beginner
Joined: 14 Nov 2001 Posts: 28
|
Posted: Sat Feb 09, 2002 8:03 pm
How do I know when #WALK has finished? |
Say I want to issue a #walk 344 command to have my character slowwalk to room 344. How do I know when I've arrived in room 344?
I could make a trigger on some line that is in the room, but that is not very scalable. It also does not work on this particular room since there is no text that is always there, except the room name (but that is identical to some other roomnames).
Is there a setting to have zmud issue some command or echo some text after completing its #walk successfully? If so, is there a way for me to set this text dynamically? (#walk 344 "kill gobledegook", or #walk 344 {#var @cmd "kill gobledegook"}) |
|
|
|
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Sat Feb 09, 2002 9:13 pm |
You could put the test in your prompt trigger. Creat an alias to store your destination:
#AL walk {#VAR destination %1; #VAR isWalking 1; #WALK %1}
And in your prompt trigger place:
#IF (@isWalking & (%roomnum = @destination)) {#VAR isWalking 0; kill gobbledygook}
Troubadour |
|
|
|
Kru Beginner
Joined: 14 Nov 2001 Posts: 28
|
Posted: Sat Feb 09, 2002 9:23 pm |
thank you, that will work
|
|
|
|
|
|