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


Joined: 04 Dec 2000
Posts: 14
Location: USA

PostPosted: Sat Dec 15, 2001 4:52 pm   

gauges and triggers
 
Can you set a trigger to trigger off of a gauge. say for example you are trying to set a trigger to cast heal when your gauge reaches 1/3 of your max hps...

Where ever I go CHAOS seems to follow.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Dec 15, 2001 7:34 pm   
 
How do you capture your hp and max hp? Did you use #SETPROMPT or do you have a trigger created for capturing those values?

Kjata
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Dec 15, 2001 8:03 pm   
 
quote:

Can you set a trigger to trigger off of a gauge. say for example you are trying to set a trigger to cast heal when your gauge reaches 1/3 of your max hps...

Where ever I go CHAOS seems to follow.



You cannot trigger directly off of a gauge, but like Kjata was asking if you have a variable holding the info the gauge uses you can trigger directly off that.

Check out expression triggers.


li'l shmoe of Dragon's Gate MUD
Reply with quote
Laithrad
Beginner


Joined: 04 Dec 2000
Posts: 14
Location: USA

PostPosted: Sun Dec 16, 2001 3:20 am   
 
I used #setprompt and yes the current hitpoints are stored in the variable hp and max hitpoints in maxhps and so on and so forth, but the only one im interested in is hp/maxhps... I had a trigger, but i couldnt get it to work again in the new version of zmud...

Where ever I go CHAOS seems to follow.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Dec 16, 2001 7:22 am   
 
Sounds you will definitely want to use an expression trigger then. Try something like this:
#TR "autoheal" {%eval(@hp*100/@maxhps)<34} {#T- autoheal;cast heal;#ALARM {+5} {#T+ autoheal}}
Note turning off and on is a good idea because it is really easy to make and expression that will fire continuously and crash zmud. Also you will have to set the type to expression in the settings editor.
Reply with quote
Laithrad
Beginner


Joined: 04 Dec 2000
Posts: 14
Location: USA

PostPosted: Sun Dec 16, 2001 3:44 pm   
 
thanks I'll try that and see how it works. If it works great then from there i can take and adjust that as needed.

Where ever I go CHAOS seems to follow.
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