 |
saw8343 Newbie
Joined: 18 Mar 2005 Posts: 2
|
Posted: Fri Mar 18, 2005 8:14 pm
Trigger for spell point range |
I need help with a trigger. Been trying to figure it out and i just can't for the life of me get it to work. I want to trigger off of "You sense your opponent" and have it cast a spell if above 100 sp. My hpbar looks like -HP: 415/415 | SP: 220/220 .
Can anyone help me?
 |
|
|
|
 |
Dharkael Enchanter

Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Fri Mar 18, 2005 8:40 pm |
| Code: |
#CLASS {Test}
#VAR my_sp {}
#TRIGGER {^-HP: %d/%d | SP: (%d)/%d} {#var my_sp {%1}} "" {prompt}
#TRIGGER {^You sense your opponent} {#if (@my_sp > 100) {cast 'somespell'}}
#CLASS 0 |
I wasnt sure if the space and the period following "-HP: 415/415 | SP: 220/220" was part of your prompt or just punctuation so I didnt make it part of the trigger. |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
 |
saw8343 Newbie
Joined: 18 Mar 2005 Posts: 2
|
Posted: Fri Mar 18, 2005 9:05 pm |
dude, you rock. thanks a million. |
|
|
|
 |
|
|
|