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
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Sun Nov 03, 2002 1:20 am   

party heath watch for healers on IOM, how do i do
 
well i want to help a friend of mine by making a party health watch trigger set.
fotunally we got a party watch thingi on the mud itself but it really spams so i want to make it show up in the status window.

mud output:
RDMP 1234 PARTY_HEALTH 3 Daran 745 745 2514 2514 435 435
RDMP 1234 PARTY_HEALTH 4 Eiara 477 477 516 516 342 342
RDMP 1234 PARTY_HEALTH 2 Evicta 747 747 889 2307 466 466
RDMP 1234 PARTY_HEALTH 1 Yugo 1206 1206 1743 1743 1185 1185

RDMP 1234 PARTY_HEALTH 3 Daran 745 745 2514 2514 435 435
RDMP 1234 PARTY_HEALTH 4 Eiara 477 477 516 516 342 342
RDMP 1234 PARTY_HEALTH 2 Evicta 747 747 901 2307 466 466
RDMP 1234 PARTY_HEALTH 1 Yugo 1206 1206 1743 1743 1185 1185

RDMP 1234 PARTY_HEALTH 3 Daran 745 745 2514 2514 435 435
RDMP 1234 PARTY_HEALTH 4 Eiara 477 477 516 516 342 342
RDMP 1234 PARTY_HEALTH 2 Evicta 747 747 912 2307 466 466
RDMP 1234 PARTY_HEALTH 1 Yugo 1206 1206 1743 1743 1185 1185

the linie mean:
RDMP #### PARTY HEALTH (position in the party nr.1 = tank) (name of party member) (his hp) (his hp max) (his sp) (his sp max) (his ep) (his ep max)

what i want in the status window:
(position) (name) (hp/hpmax) (sp/spmax) (ep(epmax)

any help would be great


Yugo Sangori
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Nov 03, 2002 5:07 am   
 
#TR {^RDMP 1234 PARTY_HEALTH 1 (%w) (%d) (%d) (%d) (%d) (%d) (%d)} {#VAR name1 %1;#VAR hp1 %2;#VAR hpmax1 %3;#VAR sp1 %4;#VAR spmax1 %5;#VAR ep1 %6;#VAR epmax1 %7}
#TR {^RDMP 1234 PARTY_HEALTH 2 (%w) (%d) (%d) (%d) (%d) (%d) (%d)} {#VAR name2 %1;#VAR hp2 %2;#VAR hpmax2 %3;#VAR sp2 %4;#VAR spmax2 %5;#VAR ep2 %6;#VAR epmax2 %7}
#TR {^RDMP 1234 PARTY_HEALTH 3 (%w) (%d) (%d) (%d) (%d) (%d) (%d)} {#VAR name3 %1;#VAR hp3 %2;#VAR hpmax3 %3;#VAR sp3 %4;#VAR spmax3 %5;#VAR ep3 %6;#VAR epmax3 %7}
#TR {^RDMP 1234 PARTY_HEALTH 4 (%w) (%d) (%d) (%d) (%d) (%d) (%d)} {#VAR name4 %1;#VAR hp4 %2;#VAR hpmax4 %3;#VAR sp4 %4;#VAR spmax4 %5;#VAR ep4 %6;#VAR epmax4 %7}
#STW { tank @name1 @hp1/@hpmax1 @sp1/@spmax1 @ep1/@epmax1 %cr 2 @name2 @hp2/@hpmax2 @sp2/@spmax2 @ep2/@epmax2 %cr 3 @name3 @hp3/@hpmax3 @sp3/@spmax3 @ep3/@epmax3 %cr 4 @name4 @hp4/@hpmax4 @sp4/@spmax4 @ep4/@epmax4}

LightBulb
Senior Member
Reply with quote
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Sun Nov 03, 2002 3:36 pm   
 
ops forgot to tell you that there can be any number of players in the party, so it have to be a more dynamic code.
one that can look at 2 player and even 11 players!!



Yugo Sangori
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Nov 03, 2002 5:59 pm   
 
Very well.
Add another 7 triggers (5 to 11), and another 7 lines to the #STW. Also, use %if so that unused positions won't show.
#AL changeparty {#VAR name1 %null;#VAR name2 %null;#VAR name3 %null;#VAR name4 %null;#VAR name5 %null;#VAR name6 %null;#VAR name7 %null;#VAR name8 %null;#VAR name9 %null;#VAR name10 %null;#VAR name11 %null;party watch command}
#STW { %if(@name1, {tank @name1 @hp1/@hpmax1 @sp1/@spmax1 @ep1/@epmax1 %cr},) %if(@name2, {2 @name2 @hp2/@hpmax2 @sp2/@spmax2 @ep2/@epmax2 %cr},) %if(@name3, {3 @name3 @hp3/@hpmax3 @sp3/@spmax3 @ep3/@epmax3 %cr},) %if(@name4, {4 @name4 @hp4/@hpmax4 @sp4/@spmax4 @ep4/@epmax4}, )}


Or do something else that you think up. There's more than enough here to get you started.

LightBulb
Senior Member
Reply with quote
DemonLlama
Beginner


Joined: 03 Nov 2002
Posts: 27
Location: USA

PostPosted: Mon Nov 04, 2002 2:23 am   
 
Question: Is there a line of output preceeding the output you've already shown us? If so, you could easily use that to turn on a trigger/reset a counter and make a dynamic setup.

Or is this output something that comes from you typing a command?

BTW, what's the "1234" stand for?

Otherwise, basically, I agree with LightBulb. If you have nothing to "anchor" anything to, you'll just have to deal with a whole lot of triggers.
Reply with quote
Morten
Apprentice


Joined: 17 Feb 2001
Posts: 119
Location: Denmark

PostPosted: Mon Nov 04, 2002 6:44 am   
 
when i type the command "party watch on"
i recive the:
RDMP 1234 PARTY_HEALTH 3 Daran 745 745 2514 2514 435 435
RDMP 1234 PARTY_HEALTH 4 Eiara 477 477 516 516 342 342
RDMP 1234 PARTY_HEALTH 2 Evicta 747 747 889 2307 466 466
RDMP 1234 PARTY_HEALTH 1 Yugo 1206 1206 1743 1743 1185 1185

every heartbeat (around every 3 secs). note this is just an example with 4 players it could be any number from 2 and up.

the numbers 1234 is a kind of password for the RDMP.


Yugo Sangori
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