ssmud Newbie
Joined: 27 Jun 2006 Posts: 3
|
Posted: Fri Jun 30, 2006 10:15 pm
party(group) liting for BatMUD |
This trigger lites party members hps / sps / eps by % they are at. Here is what it looks like when it works: http://batusa.dyndns.org:2100/party.png
#TRIGGER {{ldr|fol|rest|stun|form|mbr}%s(%d)~({| }(%d)~)%s(%d)~({| }(%d)~)%s(%d)~({| }(%d)~)} {#IF (%eval( (%1.0/%2.0)*100.0)>0) {#PCOL bold,red %x1;#PCOL bold,red %x2};#IF (%eval( (%1.0/%2.0)*100.0)>33) {#PCOL bold,yellow %x1;#PCOL bold,yellow %x2};#IF (%eval( (%1.0/%2.0)*100.0)>66) {#PCOL bold,green %x1;#PCOL bold,green %x2};#IF (%eval( (%3.0/%4.0)*100.0)>0) {#PCOL bold,red %x3;#PCOL bold,red %x4};#IF (%eval( (%3.0/%4.0)*100.0)>33) {#PCOL bold,yellow %x3;#PCOL bold,yellow %x4};#IF (%eval( (%3.0/%4.0)*100.0)>66) {#PCOL bold,green %x3;#PCOL bold,green %x4};#IF (%eval( (%5.0/%6.0)*100.0)>0) {#PCOL bold,red %x5;#PCOL bold,red %x6};#IF (%eval( (%5.0/%6.0)*100.0)>33) {#PCOL bold,yellow %x5;#PCOL bold,yellow %x6};#IF (%eval( (%5.0/%6.0)*100.0)>66) {#PCOL bold,green %x5;#PCOL bold,green %x6}}
#TRIGGER {{ldr|fol|rest|stun|form|mbr}%s(%d)~({| }(%d)~)%s(%d)~(%s(%d)~)%s(%d)~({| }(%d)~)} {#IF (%eval( (%1.0/%2.0)*100.0)>0) {#PCOL bold,red %x1;#PCOL bold,red %x2};#IF (%eval( (%1.0/%2.0)*100.0)>33) {#PCOL bold,yellow %x1;#PCOL bold,yellow %x2};#IF (%eval( (%1.0/%2.0)*100.0)>66) {#PCOL bold,green %x1;#PCOL bold,green %x2};#IF (%eval( (%3.0/%4.0)*100.0)>0) {#PCOL bold,red %x3;#PCOL bold,red %x4};#IF (%eval( (%3.0/%4.0)*100.0)>33) {#PCOL bold,yellow %x3;#PCOL bold,yellow %x4};#IF (%eval( (%3.0/%4.0)*100.0)>66) {#PCOL bold,green %x3;#PCOL bold,green %x4};#IF (%eval( (%5.0/%6.0)*100.0)>0) {#PCOL bold,red %x5;#PCOL bold,red %x6};#IF (%eval( (%5.0/%6.0)*100.0)>33) {#PCOL bold,yellow %x5;#PCOL bold,yellow %x6};#IF (%eval( (%5.0/%6.0)*100.0)>66) {#PCOL bold,green %x5;#PCOL bold,green %x6}} |
|