|
shahvani Newbie
Joined: 18 Jan 2004 Posts: 3 Location: USA
|
Posted: 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 |
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: 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.
|
|
|
|
Vorax Apprentice
Joined: 29 Jun 2001 Posts: 198 Location: USA
|
Posted: Fri Mar 26, 2004 11:05 pm |
Might also want to set it to fire on prompt instead of new line.
|
|
|
|
|
|