|
Smokabul Novice
Joined: 27 Sep 2002 Posts: 37 Location: USA
|
Posted: Thu Mar 11, 2004 11:21 am
Onwalkend isnt doing what i thought it should |
If I use #walk {%item( @maproomvnums, 1)} @desiredzone} from the command line or off of a trigger it will walk to the room, then once it reaches the room, the onwalkend alias successfully fires and it goes to the next room via the nextroom alias that onwalkend is set to. The nextroom alias uses #walk also but when #walk is used from from the onwalkend alias or from any alias that onwalkend uses it wont do it again. Its like you cant onwalkend from an onwalkend, BUT you should be able to onwalkend after any walk command unless otherwise stated somehow. What do you think I could do to fix my situation. Also is this an error or the way it was inteded??
Thanks for any and all help.
#ALIAS onwalkend {#IF (autowalk 1) {nextroom}} "auto map|onwalk"
#ALIAS nextroom {#delnitem maproomvnums 1;#echo it is onwalking now!!;#walk {%item( @maproomvnums, 1)} @desiredzone} "auto map|onwalk" |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Mar 11, 2004 12:04 pm |
Is this a typo?:
#IF (autowalk 1) {nextroom}
Because it should be:
#IF (@autowalk = 1) {nextroom} |
|
|
|
Smokabul Novice
Joined: 27 Sep 2002 Posts: 37 Location: USA
|
Posted: Thu Mar 11, 2004 6:48 pm |
weird yeah i usually use the equals sign but it was working for some reason that way... thats funky, yeah i meant to put in an equals sign.
|
|
|
|
Smokabul Novice
Joined: 27 Sep 2002 Posts: 37 Location: USA
|
Posted: Thu Mar 11, 2004 6:52 pm |
ok i figured out that once onwalkend has fired once and it hasnt fired again to keep working, I can put the alias onwalkend in the command line and it will onwalkend and onwalkend off that again. So Onwalkend can fire off of onwalkend if i am the one that put the alias through and not the onwalkend alias itself??
|
|
|
|
Smokabul Novice
Joined: 27 Sep 2002 Posts: 37 Location: USA
|
Posted: Thu Mar 11, 2004 7:12 pm |
Are other people having the problem I am having? Does anyone else use onwalkend to where it will go off over and over without problems?
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu Mar 11, 2004 7:45 pm |
"onwalkend" only fires during a speedwalk when the mapper has reached the destination room of the speedwalk.
Calling #walk from "onwalkend" is probably a bad idea though. By doing a command that takes a long time, like #walk, you are causing your first onwalkend script never to end. And to avoid an infinite loop, onwalkend isn't going to run again while the previous one is still active. You might need to use #alarm to run your #walk after a slight delay in order to let the original onwalkend script finish. |
|
|
|
Smokabul Novice
Joined: 27 Sep 2002 Posts: 37 Location: USA
|
Posted: Thu Mar 11, 2004 8:20 pm |
I love you now Zugg. Your never going to lose my business. w00t. Zmud is da bomb. #alarm did the trick sooo perfectly YAYYAYYAY!!!! you roxorz
|
|
|
|
|
|