|
RikuoVW Newbie
Joined: 01 Jun 2006 Posts: 8
|
Posted: Mon Jan 14, 2008 3:54 am
Trigger help? |
I am trying to make a trigger to regen up my Hp's once it falls below a certain value. Now, I figured I needed to make 2 types of triggers in order to make it work. I have made a prompt trigger but it doesnt seem to be correct. Could someone tell me what I am doing wrong with this trigger?
Pattern:~[(*)~] ~<(%d)hp (%d)m (%d)mv (%d)bl~>
Command:f @blood<124 {drink rod;[4m- blood}
I am getting a message Error compiling script:
unmatched braces.
Triggered fired but did not complie.
Help? |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Mon Jan 14, 2008 4:05 am |
It doesn't look like you pasted the entire thing. Even so, I'm going to suggest this (and assume some things):
#TRIGGER {~[*~]~<%dhp %dm %dmv (%d)bl~>} {#IF (%1<124) {drink rod}}
I don't know what your [4m- blood bit is. I don't even want to venture a guess, but the unmatched braces is because of the [ you have in there.
Charneus |
|
|
|
alluran Adept
Joined: 14 Sep 2005 Posts: 223 Location: Sydney, Australia
|
Posted: Tue Jan 15, 2008 12:19 pm |
the 4m is him pasting an ascii color code in i'd say
|
|
_________________ The Drake Forestseer |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Jan 15, 2008 6:19 pm |
If so, then that will be a problem. You should never embed control characters directly into a script. If you want an ESC character, use the %e variable. For ANSI colors, use the %ansi function.
|
|
|
|
|
|