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


Joined: 18 Jul 2003
Posts: 13
Location: USA

PostPosted: Sun Aug 10, 2003 8:15 am   

autoheal help
 
currently I'm just using a drink health script that looks like this:

Variable: healbalance
Value: 1

Trigger: You may drink another health or mana elixer.
Command: healbalance=1

Trigger: H:(%n) M:(%n) (*)
Command:
#if (@healbalance=1) {#if (%1<2350) {
drink health
healbalance=0
} {}}
#if (@healbalance=1) {#if (%2<2800) {
drink mana
healbalance=0
} {}}

I can't seem to figure out how I would add the syntax ANGEL DRAIN and OUTB MOSS;EAT MOSS when my health falls below 1300. So That as long as my health stays above 1300 I'll only DRINK HEALTH but if it gets down to 1300 or lower I'll ANGEL DRAIN and OUTB MOSS;EAT MOSS.

Any Ideas?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 10, 2003 2:58 pm   
 
Trigger: H:(%n) M:(%n) (*)
Command:
#IF (@healbalance=1) {#IF (%1 < 2350) {
drink health
healbalance = 0
} {#IF (%2 < 2800) {
drink mana
healbalance=0
}}
#IF (%1 < 1301) {
angel drain
outb moss
eat moss}}
Reply with quote
jesterinc
Beginner


Joined: 18 Jul 2003
Posts: 13
Location: USA

PostPosted: Mon Aug 11, 2003 8:15 am   
 
Much thanks to you Lightbulb. It works great.
Reply with quote
teknocide
Beginner


Joined: 15 Jul 2003
Posts: 25
Location: Sweden

PostPosted: Mon Aug 11, 2003 2:12 pm   
 
just a small note;
if you're not using the third parameter, you might want to remove the ( ) around the asterisk
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