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
Jah
Wanderer


Joined: 11 Oct 2000
Posts: 52
Location: Sweden

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


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jul 03, 2003 4:32 am   
 
It should be obvious by now that nobody has any ideas on this. You can stop bumping this post at any time.
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