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


Joined: 02 Mar 2005
Posts: 20

PostPosted: Fri Mar 04, 2005 5:25 am   

Autoheal trigger help
 
This is my prompt

158H 349M 129V | (excellent/{Minor Bleeding}) - 128660 >


(excellent) is the tank status. I want to autoheal at POOR or AWFUL.

How can I create a trigger for autoheal?

Thanks!

Hawkeye-X
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Fri Mar 04, 2005 5:52 am   
 
You could do something like this:

#CLASS {Tank Healing}
#ALIAS tank {#VAR tank {%-1}}
#VAR tank {}
#TRIGGER "tankheal" {%dH %dM %dV ~| ~((*)~/~{(*)~}~) ~- %d ~>} {
#IF ((%1 = "POOR") OR (%1 = "AWFUL")) {
cast 'heal' @tank
#T+ healrestart
#T- tankheal
}
} "" {nocr|prompt}
#TRIGGER "healrestart" {{MESSAGE FOR FAILING SPELL|MESSAGE FOR SPELL SUCESS}} {
#T+ tankheal
#T- healrestart
} "" {disable}
#CLASS 0


insert the correct mud output where needed and change the spell syntax as needed. Then paste to command line and hit enter.

Then to use, type "tank tankname" to set your tank's name in the variable, and any time his/her health gets to POOR or AWFUL it will heal them till it is no longer one of those two conditions.
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Fri Mar 04, 2005 6:01 am   
 
The enabling/disabling I put in there to keep it from going off over and over every time you get a prompt while the healing is happening, btw. In case you were wondering :)
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
Reply with quote
HawkeyeX
Beginner


Joined: 02 Mar 2005
Posts: 20

PostPosted: Fri Mar 04, 2005 7:44 pm   
 
That's cool, but as you can see the heals needs to be case sensitive (POOR instead of Poor and AWFUL instead of Awful) because mob's health also triggers my heal tank.
Reply with quote
Aarlot
Adept


Joined: 30 Dec 2003
Posts: 226

PostPosted: Fri Mar 04, 2005 10:56 pm   
 
Unless the mobs health is in the same place in the prompt as the tank's health you showed, it shouldn't.
_________________
Everyone is entitled to their beliefs - until they die. Then only the truth matters.
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