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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
rr3636
Newbie


Joined: 11 Apr 2010
Posts: 8

PostPosted: Tue Apr 13, 2010 4:57 pm   

[3.16b] script order
 
not sure if this should be in the normal cmud forum or not.

anyway, I have set cmud to use slow mode on speedwalking.

alias containing this script:
#walk 26
bb

When I write that alias it does the following:
* first step in the "walk"
* fire "bb" (an alias)
* second -> finish "walk"

My goal is:
* first -> finish "walk"
* fire "bb"

I saw there was a WAITFOR command which can be used to detect room names, and then fire "bb".
but is there an other way to just make it do how I want it without writing lots of code? (yes, I know I can change the speedwalk mode - but beside that).
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Apr 13, 2010 5:21 pm   
 
To have it simply work that way automatically? Not really. That is one of the major differences between walk modes.

But there are a number of ways you could code it without too much work. One way you probably have not thought of is an Event with a name of OnWalkEnd. An Event with that name would automatically fire at the end of a speedwalk. You could enable that event when you start the walk, and have it disable itself. Another similar method would be an OnRoomEnter event.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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