Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Kru
Beginner


Joined: 14 Nov 2001
Posts: 28

PostPosted: 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"})
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: 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
Reply with quote
Kru
Beginner


Joined: 14 Nov 2001
Posts: 28

PostPosted: Sat Feb 09, 2002 9:23 pm   
 
thank you, that will work
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net