|
Acheron Newbie
Joined: 27 Aug 2009 Posts: 4
|
Posted: Thu Sep 10, 2009 12:41 am
Problem with slow-walking script |
I've got the following event with an OnRoomWalk trigger:
#PAUSE
RoomDone = 0
#WHILE (@RoomDone = 0) {search;#WA 2000}
#STEP
It executes the #WHILE part correctly(there's a separate trigger to set RoomDone = 1) when it enters a new room. However, #PAUSE doesn't seem to trigger quickly enough to stop slow-walk, it fires off the next room move before stopping, meaning the #WHILE isn't completed in every room on the path. How can I delaying the stepping of slow-walk and make sure that the event completes succesfully?
Alternatively, if someone can recommend a better way to create a script that moves room-by-room repeatedly through a specified path, performing a certain action in each room until a certain line of text is received, that'd be fine as well. |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Thu Sep 10, 2009 7:40 pm |
Perhaps you want the #lmap command?
|
|
|
|
Moo Apprentice
Joined: 10 Apr 2009 Posts: 145
|
Posted: Fri Sep 11, 2009 2:31 am |
A while ago I spent some time trying to do a similar script, with no luck.. I don't think I tried using #lmap though..
Unfortunately, #lmap doesn't seem to work at all for me.. Nothing happens at all.. Even with the example given in the help.. |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Sep 11, 2009 6:17 pm |
Ah, yes, I remember. There was a report of #lmap not working in v.2.36, and I don't think it was fixed by 2.38. In fact, there no indication in the version history that it has been fixed in the beta version either, and the example does not work in v3.10a.
|
|
|
|
|
|