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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Acheron
Newbie


Joined: 27 Aug 2009
Posts: 4

PostPosted: 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.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Thu Sep 10, 2009 7:40 pm   
 
Perhaps you want the #lmap command?
Reply with quote
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: 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..
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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