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


Joined: 18 Jan 2004
Posts: 3
Location: USA

PostPosted: Fri Mar 26, 2004 10:35 pm   

Trouble with Autosipper
 
Folks,

Still quite new @ scripting. Here's what I have -- why doesn't it work properly?

Trigger: ^{H:}(%d) {M:}(%d) (*)$
Value: HpVar=%1
MpVar=%2
#if (@healbalance=1 & @hpvar < 2760) {dh}
#if (@healbalance=1 & @mpvar < 1500) {dm}

Alias: dh
Value: drink health
healbalance=0

Alias: dm
Value: drink mana
healbalance=0

Variable: healbalance
Value: 1
Default: 1

Here's an example of what I'm experiencing:
I cast a spell using mana that takes me below 1500.
-Nothing happens-
I perform a quick look, which gives me a new prompt.
The trigger will pop and I'll sip mana.
If I'm -still below- 1500, nothing happens, even if I perform another QL. So, I'm getting only one-shot action here. I can't even get this event to consistently reoccur under the same circumstance, sometimes nothing happens at all.

Help, anyone?

Thanks!

Shahvani
Reply with quote
DeReP
Adept


Joined: 14 Jun 2003
Posts: 222
Location: Chile

PostPosted: Fri Mar 26, 2004 10:49 pm   
 
Whats the use of having healbalance variable? whenever you drop 1500 mana you are setting it to 0 and the triggers wont fire until its set to 1 again, wich I assume you are doing manually.
Reply with quote
Vorax
Apprentice


Joined: 29 Jun 2001
Posts: 198
Location: USA

PostPosted: Fri Mar 26, 2004 11:05 pm   
 
Might also want to set it to fire on prompt instead of new line.
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