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


Joined: 11 Nov 2006
Posts: 5

PostPosted: Sat Nov 11, 2006 2:20 am   

please help with a healing trigger
 
I have searching and attempting to modify triggers to work for a healer of mine, but nonetheless my attempts have been faulty.

My prompt looks as such

<326/326hp 623/623m 253/253mv> Tank Name: Dailen Tank HP: 724

The way I am trying to set the trigger is that it heals dailen when his hp reaches 30%.
Thank you in advance. Any help will be greatly appreciated!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 11, 2006 6:24 am   
 
30% of what? How are you getting that number?
_________________
EDIT: I didn't like my old signature
Reply with quote
dailen
Newbie


Joined: 11 Nov 2006
Posts: 5

PostPosted: Sat Nov 11, 2006 10:16 pm   
 
the number would be 30 percent of what dailens max hp would be which is displayed in the prompt after tank hp.

I was attempting to change this around
#TRIGGER {(%d)/%dhp} {#IF (%1 < 1000) {cast 'heal';

to work from the healer window.
Reply with quote
darkspot
Apprentice


Joined: 29 Jul 2002
Posts: 105

PostPosted: Sun Nov 12, 2006 12:41 am   
 
I'm going to assume that since you said his max comes after his hp it actually looks like this for a prompt

<326/326hp 623/623m 253/253mv> Tank Name: Dailen Tank HP: 724/1000

since your prompt example had no max hp for him

#trigger {~<%d/%dhp %d/%dm %d/%dmv~> Tank Name: (%w) Tank HP: (%d)/(%d)} {#if ((%2 * 30) < (%3 * 100)) {cast 'heal' %1}}

I didn't test it, but if the thing is less than 30 percent it should cast 'heal' on the tank
Reply with quote
dailen
Newbie


Joined: 11 Nov 2006
Posts: 5

PostPosted: Sun Nov 12, 2006 11:41 pm   
 
that actually work but i do not have a way of setting current/max hp in the prompt. I can only have it show the current hp. Is there a way to set the max hp into a variable and have the trigger check against the variable?

<326/326hp 623/623m 253/253mv> Tank Name: Dailen Tank HP: 724

Btw I have attempted to set a current/maxhp into the prompt but there is no means to do so. So if I could manually set the hp in variables and have the trigger against that to heal at a certain percentage I am assuming that would work.
Reply with quote
darkspot
Apprentice


Joined: 29 Jul 2002
Posts: 105

PostPosted: Mon Nov 13, 2006 7:22 am   
 
#alias setmaxhp {#var tankmaxhp {%1}}
#var tankmaxhp {0}
#trigger {~<%d/%dhp %d/%dm %d/%dmv~> Tank Name: (%w) Tank HP: (%d)} {#if ((%2 * 30) < (@tankmaxhp * 100)) {cast 'heal' %1}}


setmaxhp (hp max amount for the tank)
then it should just go.
Reply with quote
dailen
Newbie


Joined: 11 Nov 2006
Posts: 5

PostPosted: Mon Nov 13, 2006 12:40 pm   
 
thank you, works great
Reply with quote
dailen
Newbie


Joined: 11 Nov 2006
Posts: 5

PostPosted: Tue Nov 14, 2006 1:20 am   
 
actually this only works if i manually fire off the trigger, and also does not seem to check against the variable. Am i missing something?
Reply with quote
xenapan
Wanderer


Joined: 26 May 2004
Posts: 68

PostPosted: Tue Nov 14, 2006 4:51 pm   
 
you should be doing this in dalien's window since i assume you will have access to your current/max hp there.

then just trigger off healing by using :healer's window: c heal dalien
_________________
Player on Realms of Despair. realms.game.org port 4000. Join us today!
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