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
Nahrix
Newbie


Joined: 21 Jul 2004
Posts: 3

PostPosted: Wed Jul 21, 2004 5:42 pm   

Walking and falling
 
Sometimes when I'm walking around, I can slip and fall, or get caught in vines, etc.. and it screws up the automapper.

How can I write a trigger to automatically output 'stand', and continue the path on the automapper from where it left off?

Eg. Going n n n e n n e e n e n

At n n n, I get a message "You slip and fall!"

I want the output of that trigger to be: stand n e n n e e n e n

Any help is appreciated
Reply with quote
Malin
Newbie


Joined: 21 Jul 2004
Posts: 2

PostPosted: Wed Jul 21, 2004 5:51 pm   
 
I'm not sure but I think this can help. Create a new trigger with the event text "You slip and fall!", and put this as the value:

stand; n; #wait 650; e; #wait 650; n; #wait 650 n; #wait 650; e; #wait 650 e; #wait 650 n; #wait 650 e; #wait 650 n; #wait 650



^^That -should- fix it by pausing for 650milliseconds in between each step.
Reply with quote
Nahrix
Newbie


Joined: 21 Jul 2004
Posts: 3

PostPosted: Wed Jul 21, 2004 5:52 pm   
 
actually, I'll have a different path every time I'm walking somewhere. That was just an example. What I need is a trigger to dynamically find your remaining path and post it.
Thanks anyways, though.
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Wed Jul 21, 2004 5:54 pm   
 
#tr {^You slip and fall!$} {stand;#step}
Reply with quote
Nahrix
Newbie


Joined: 21 Jul 2004
Posts: 3

PostPosted: Wed Jul 21, 2004 6:00 pm   
 
That script had a problem: I double-clicked on a bend in the path (n w w), and it ended up moving my current position on the map to the destination immediately when I fell down at (n w), then created a new room above (n w w) and stopped there. I was still actually at the point of (n w)
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Wed Jul 21, 2004 7:16 pm   
 
You should do your walking in Follow mode, not in Mapping mode.
Reply with quote
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: Thu Jul 22, 2004 3:48 pm   
 
It sounds to me like your mapper isn't configured correctly. That is to say, the mapper appears to recognize "You slip and fall!" as the next room.

Malin wrote:
stand; n; #wait 650; e; #wait 650; n; #wait 650 n; #wait 650; e; #wait 650 e; #wait 650 n; #wait 650 e; #wait 650 n; #wait 650


As an aside, I strongly recommend you look at documents in the Support Library of this website, particularly the article titled "Timers, Alarms, and the WAIT Command". In it details why you want to avoid using #WAIT if at all possible.
_________________
.geniusclown
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