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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
lucas
Beginner


Joined: 01 Oct 2008
Posts: 16

PostPosted: Wed Oct 01, 2008 9:03 am   

why slow walk does not synchronized?
 
the aim I want to implemented is : I want to go to the destination (which is saved in the variable), then do a command such as "id here"
this is my tirgger code:
#var path_36; /*the content of path_36 is e;e;e;e;s;s;s;*/

#TRIG {I hate you} {#sl @path_36; id here}

but when there is I hate you on screen, the trig is fired

"id here" always happens during the slow walk,
why not happens after finishing the slow walking?

How to synchronize it?
I use zmud 4.62
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Oct 01, 2008 9:32 am   
 
You should upgrade. The 4.62 version is not really supported, and there are literally thousands of features it doesn't have. I will attempt to give you a working set of commands though.

The it doesn't work as you have it is because slow walking is an event based thing. It uses triggers to determine when to send the next direction. Setting up the information completes the #SLOW command, and allows your "I hate you" trigger to move on to its next step. In order to do what you want you have to also use a trigger for the following steps. It is also a good idea to not have that trigger active when it doesn't need to be, so I am putting it into a class that is enabled and disabled on demand. I am pretty sure 4.62 had all the commands I am using.
Code:
#CLASS IDroom {disable}
#TRIGGER {something specific to the room} {id here;#CLASS IDroom 0}
#CLASS 0
#CLASS IDRoom 0
#TRIGGER {I hate you} {#SL @path_36;#CLASS IDroom 1}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
lucas
Beginner


Joined: 01 Oct 2008
Posts: 16

PostPosted: Wed Oct 01, 2008 10:23 am   
 
surely, event based is the asynchronized.

Because I will record all the place description in the mud world.each destionation should have the unique feather to enable the IDroom, that will lead to the giant code.

maybe there is another good idea?

ZMud 462 is not functional superman, but it support unicode excellently.
I like 721, but there are so many messed up unicode.
Reply with quote
lucas
Beginner


Joined: 01 Oct 2008
Posts: 16

PostPosted: Wed Oct 01, 2008 11:48 am   
 
to Vijilante:

could you generate the different name of class IDroom, such as IDroom1, IDroom2 ....
Is there such code can do that?

Or, is there some function in zmud 462 can delete a declared trigger in code?
Reply with quote
lucas
Beginner


Joined: 01 Oct 2008
Posts: 16

PostPosted: Wed Oct 01, 2008 11:55 am   
 
yes, zmud721 support #unt, but not 462 Crying or Very sad
Reply with quote
lucas
Beginner


Joined: 01 Oct 2008
Posts: 16

PostPosted: Wed Oct 01, 2008 12:05 pm   
 
I want to swear!!!!!!!!!!!!!!!!!!!!!!!

I use #wa 1000

I am idiot, silly Embarassed
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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