Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
TehJunkAcct
Newbie


Joined: 07 May 2004
Posts: 7
Location: USA

PostPosted: 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?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jun 26, 2004 3:35 pm   
 
#TR {(%d)%p(%d)hp} {#IF (%1 < %2) {#CO red}}
Reply with quote
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net