Jah Wanderer
Joined: 11 Oct 2000 Posts: 52 Location: Sweden
|
Posted: Mon Jun 30, 2003 1:13 am
Trigger help |
I have this script that displays all the people who are hurt in the group in a separate window and subs the output somewhat.
Now i want to priorotize it in -hp range with proper keys set and all and i just cant figure out how to do it.. :/
Sigh. **** is really %s hit with no space.
Output :
Your group consists of:
( Head) 669/669 hit, 127/127 move Aidan
(Front) 699/699 hit, 109/109 move Wayle
(Front) 692/692 hit, 109/109 move Pluff
(Front) 711/711 hit, 126/126 move Vrede
(Front) 987/987 hit, 121/121 move Kuriol
(Front) 1220/1220 hit, 142/142 move Gellig
(Front) 542/542 hit, 121/121 move Iss
(Front) 514/514 hit, 124/135 move Puto
Script :
Code: |
#TRIGGER {Your group consists of:} {#if %ismember( %3, @Group) {#noop} {#var Group %additem( %3, @Group)}
#trigger {*%s(%d)/(%d)%****,*move (%*)} {
#var hp %1
#var maxhp %2
#Var sub %line
#math minus (@hp - @maxhp)
#if (@minus<-200) {#var heala %additem( %3, @heala)} {#noop}
#math status (@hp*100/@maxhp)
#if (@status<0) {#VAR sub2 @status}
{#if (status<16) {#var sub2 {%ansi( blink, high, red) @status~% @minus}}
{#if (@status<31) {#VAR sub2 {%ansi( high, red) @status~% @minus}}
{#if (@status<51) {#VAR sub2 {%ansi( high, yellow) @status~% @minus}}
{#if (@status<76) {#VAR sub2 {%ansi( high, green) @status~% @minus}}
{#if (@status<599) {#VAR sub2 {%ansi( high, green) @status~% @minus}}}}}}}
#if (@status<599) {#SUB {@sub @sub2}}
#if (@tank1 = %3) {#if (@status<100) {
#ADD gnum 1
#win group %ansi( green)F@gnum %3 at @sub2 %ansi( grey)~<--TANK
#KEY F@gnum {fh %3}
}} {
#if (@status<100) {
#ADD gnum 1
#win group %ansi( green)F@gnum %3 at @sub2
#KEY F@gnum {fh %3}
}
}
#VAR sub ""} "Healthchecker"
|
Tried to fool around with the %sort function but i dont know how to merge all the vars that you have to have into the separate keys.. :/ |
|