|
durabane Newbie
Joined: 19 Jun 2005 Posts: 1 Location: kansas
|
Posted: Mon Nov 26, 2007 5:10 am
ok been fighting this for a while cant wrap my mind around it |
have
char (%d)hp as my pattern
and
#IF (%1 < 500) {#char cast 'mira' char;#t- smira} as my value want to make a 1 line trigger
works like a charm for an automira for each char what i am trying to do is set it so
i can make the 500 a variable or an alias so i can control without opening triggers and
changing manaully.
have tried making it #al 123 = 500 #al abc = 500 am i just missing something easy
any help would be greatly appreciated
Durabane |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Mon Nov 26, 2007 5:49 am |
#TRIGGER {char (%d)hp} {#VAR myhp %1;#IF (@myhp < 500) {#CHAR cast 'mira' char;#T- smira}}
#ALIAS sethp {#VAR myhp %1} |
|
|
|
Arde Enchanter
Joined: 09 Sep 2007 Posts: 605
|
Posted: Mon Nov 26, 2007 1:33 pm |
I think he rather wanted something like
#VAR minhp 500
#TRIGGER {char (%d)hp} {#VAR myhp %1;#IF (@myhp < @minhp) {#CHAR cast 'mira' char;#T- smira}}
#ALIAS sethp {#VAR minhp %1} |
|
_________________ My personal bug|wish list:
-Wrong Priority when copy-paste setting
-1 prompt trigger for Mapper, Session and General Options, not 3 different!
-#SECTION can terminate threads
-Buttons can't start threads |
|
|
|
|
|