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
argon1
Newbie


Joined: 11 Nov 2004
Posts: 1

PostPosted: Fri Nov 12, 2004 5:16 pm   

Expression Trigger?
 
I have set up zmud so that the #setprompt captures all the information in my hp bar. What I want to do is have a trigger fire based on my hp, chi, mana, etc. I have tried using an expression trigger and a pattern trigger. What happens is the trigger fires 4 times before stopping, when I think it should only fire once.

I want the trigger to fire when: @hp>405 and @chi<105 . The command is ennervate which increases chi by 20. So if chi increases above 105 then the trigger shouldn't fire but it does 3 more times.

#regex (@hp>405 and @chi<105) {en;ha;h}

Any thoughts on what is going on? I thought an expression trigger was only supposed to fire when one of the values changed (hp or chi).

Thanks.

Miguel
Reply with quote
mortie
Wanderer


Joined: 26 Sep 2002
Posts: 73
Location: United Kingdom

PostPosted: Fri Nov 12, 2004 7:29 pm   
 
If that trigger gets tested for each new line of mud output then what could be happening is this. When you recieve a prompt update and your above trigger criteria is met it runs the above commands. Your regex trigger then gets fired from each new line recieved before the next prompt line has been recieved which updates the new @chi value.

Whenever i get a situation like this i start off with adding debug pointers. Add in an echo of @hp and @chi in your regex trigger. It might shed some more light on it.
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