|
TehJunkAcct Newbie
Joined: 07 May 2004 Posts: 7 Location: USA
|
Posted: Sat Jun 26, 2004 9:18 am
Trigger help |
I need a trigger to color a line when someone in my groups hp has been changed...
(Fighting) [ 323/ 338hp 1023/1023ma 123/ 123mv] [33 Elder Cle] Orim (Head of group)
(Standing) [5001/5001hp 10/ 10ma 625/ 625mv] [25 -- ---] a black stallion
like that..
but cant get it right.
can you help? |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Jun 26, 2004 3:35 pm |
#TR {(%d)%p(%d)hp} {#IF (%1 < %2) {#CO red}}
|
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Sat Jun 26, 2004 3:40 pm |
I can't help too much without more details (how many people, are in the group, etc.), but here's a general idea of how you could have your status line colored when your HP changes (for the sake of this example, I'll ignore all the other data):
quote:
#TR {^~(*~) ~[(%d)/%dhp*~] Orim} {#IF (%1<>@HP) {HP = %1;#CO red}}
Of course, this requires that you keep a variable for each person's HP that you'll be watching. There's a few ways you can do this, and I'm happy to help further if need be. |
|
|
|
|
|