|
Nahrix Newbie
Joined: 21 Jul 2004 Posts: 3
|
Posted: 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 |
|
|
|
Malin Newbie
Joined: 21 Jul 2004 Posts: 2
|
Posted: 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. |
|
|
|
Nahrix Newbie
Joined: 21 Jul 2004 Posts: 3
|
Posted: 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. |
|
|
|
Theragil Apprentice
Joined: 13 Feb 2004 Posts: 157 Location: USA
|
Posted: Wed Jul 21, 2004 5:54 pm |
#tr {^You slip and fall!$} {stand;#step}
|
|
|
|
Nahrix Newbie
Joined: 21 Jul 2004 Posts: 3
|
Posted: 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)
|
|
|
|
Theragil Apprentice
Joined: 13 Feb 2004 Posts: 157 Location: USA
|
Posted: Wed Jul 21, 2004 7:16 pm |
You should do your walking in Follow mode, not in Mapping mode.
|
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: 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 |
|
|
|
|
|