|
Laithrad Beginner
Joined: 04 Dec 2000 Posts: 14 Location: USA
|
Posted: 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. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Laithrad Beginner
Joined: 04 Dec 2000 Posts: 14 Location: USA
|
Posted: 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. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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. |
|
|
|
Laithrad Beginner
Joined: 04 Dec 2000 Posts: 14 Location: USA
|
Posted: 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. |
|
|
|
|
|