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


Joined: 09 Mar 2006
Posts: 1

PostPosted: Thu Mar 09, 2006 11:56 pm   

basic healing script question
 
basically what I am having trouble with is this, what I want the trigger to do is clear my scroll back, calm the fight I am currently in, make a poultice, apply it to me, and then restart the fight, but only when my HP drops below 400. the problem comes in the with dropping below 400 mark. anyone have any ideas?

clear
calm
unroll roll
get fenugreek rune
get fenugreek rune
make poultice fenugreek
augment poultice fenugreek
use poultice self

5:23 pm| |HP:413:543| |MA:345:572| |MV:617:617| |Meditating| |Gold:885| |TNL:0| |50|
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Mar 10, 2006 2:48 am   
 
#VAR Poulticing {0} {0}
#TRIGGER {^%d~:%d %w~| ~|Hp:(%d)} {#IF (%1 <= 400) AND (!@Poulticing)) {#VAR Pouliticing 1;clear;calm;uroll roll;get fenugreek rune;get fenugreek rune;make poultice fenugreek;augment poultice fenugreek;use poultice sel;#TEMP PoulticingTrig {You apply a poultice to yourself} {#VAR Poulticing 0}f}}}

I'd use something like that.

You have a state checker called Poulticing that serves not to spam yourself when you see multiple prompts. When you successfully use the poultice then it resets the state checker.

//

You could also make a multi-state checker that would check to see if the calm worked before trying to do the poultice.

Maybe search the forums for LegendMUD for ideas that Nexela would have put forward.
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