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
liujc
Beginner


Joined: 02 Mar 2007
Posts: 23
Location: China, BeiJing

PostPosted: Fri Mar 02, 2007 1:11 pm   

Do zmud has a function which can watch an event or variable?
 
Just as the topic said. I want to watch a variable, for instance: @jump_flag. I have to write: #while (@jump_flag <> "success") {#wa 100}. But if there are some mistake during the program, there will be a lot of waiting thread. It's really unconvenience.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Mar 02, 2007 1:53 pm   
 
The only other way I know to do that is just to check periodically with an #alarm or on something regular like your prompt.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Fri Mar 02, 2007 2:21 pm   
 
Or use an expression trigger perhaps?
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
liujc
Beginner


Joined: 02 Mar 2007
Posts: 23
Location: China, BeiJing

PostPosted: Fri Mar 02, 2007 5:00 pm   
 
Thanks a lot!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Mar 02, 2007 9:57 pm   
 
If this is for debugging purposes and not actual script performance, you can use the #WATCH command.
_________________
EDIT: I didn't like my old signature
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