Alias/Trigger set to check group health

Scripts and support for your favorite MUD client.
Xyd
Sojourner
Posts: 177
Joined: Thu Apr 26, 2001 5:01 am
Location: Naperville, IL US
Contact:

Alias/Trigger set to check group health

Postby Xyd » Tue May 08, 2001 9:02 pm

This alias and trigger set will allow you to check the health of your group and highlight those people below a certain percentage. Tested with zMUD 6.16 -- easily modified for 4.62.

How to use:
Type CG <percentage>
If you don't use a percentage, default is 60%. If you type CG 50, then it will highlight anyone below 50% of their health. All other groupees' hp's are #GAGged.

#ALIAS cg {#if (%1) {#var cgHPThresh {%1}} {#var cgHPThresh {60}};#sa Checking group at @cgHPThresh%;#T+ GroupChecker;group}
#TRIGGER {Group information for} {#T+ GroupChecker2} "GroupChecker"
#TRIGGER {(%d)/(%d)*hit* (%d)/(%d)*move*psp* (%w)} {#var stat {[%1*100/%2]};#if (@stat < @cgHPThresh) {#CO 22} {#GA}} "GroupChecker"
#TRIGGER {< } {#T- GroupChecker;#T- GroupChecker2} "GroupChecker2" {prompt}

Inspired by Varia.

.xyd
Valeos/Dorac
Sojourner
Posts: 35
Joined: Thu Mar 29, 2001 6:01 am
Location: Canada Eh!

Postby Valeos/Dorac » Tue May 08, 2001 9:36 pm

can you modify that to 4.62? Image
btw xyd put yer bag of tricks back up! loved your site, got all my triggers and stuff from it Image
cherzra
Sojourner
Posts: 1868
Joined: Fri Jan 26, 2001 6:01 am
Location: Holland

Postby cherzra » Tue May 08, 2001 10:34 pm

pattern:

(%d)/(%d) (%*)hit,(%*) %d/%d (%*)move,(%*) %d/%d (%*)psp %w$

actions:

#MATH quad ((3 * %1)/%2)+1
#CASE @quad {#CW 12} {#CW yellow} {#CW white} {#CW 7}


Simple and effective 4 colors Image
Hamibugan Sinweaver
Sojourner
Posts: 99
Joined: Mon May 14, 2001 5:01 am
Location: Japan

Postby Hamibugan Sinweaver » Wed May 16, 2001 10:47 pm

Xyd,

I just put this into 6.16 and atm CG <any percent> highlights the entire group blue. Did I screw up the input or......? Thanks.

------------------
That is all. Peace.
Hami
Xyd
Sojourner
Posts: 177
Joined: Thu Apr 26, 2001 5:01 am
Location: Naperville, IL US
Contact:

Postby Xyd » Thu May 17, 2001 2:44 am

Is your whole group hurt? You need a cleric!!

Here is is again, just in case...

#TRIGGER {(%d)/(%d)*hit* (%d)/(%d)*move*psp* (%w)} {#var stat {[%1*100/%2]};#if (@stat < @cgHPThresh) {#CO 22} {#GA}} "GroupChecker"
#TRIGGER {Group information for} {#T+ GroupChecker2} "GroupChecker"
#TRIGGER {< } {#T- GroupChecker;#T- GroupChecker2} "GroupChecker2" {prompt}
#ALIAS cg {#if (%1) {#var cgHPThresh {%1}} {#var cgHPThresh {60}};#sa Checking group at @cgHPThresh%;#T+ GroupChecker;group}

You might have to type:
#VAR cgHPThresh {0}
at the command line the first time only. 6.16 sometimes has problems creating vars -- dunno why. Also, just try CG without a number.

.xyd
Thylor
Sojourner
Posts: 32
Joined: Thu Mar 29, 2001 6:01 am
Location: Carlsbad, NM, USA
Contact:

Postby Thylor » Thu May 17, 2001 11:30 am

I just put this into zMUD verbatim. I get the same results. Entire (healthy) group is highlighted with blue.

Thylor Fangbarer
Hamibugan Sinweaver
Sojourner
Posts: 99
Joined: Mon May 14, 2001 5:01 am
Location: Japan

Postby Hamibugan Sinweaver » Fri May 18, 2001 4:31 am

I'll have to try the extra variable later as I'm at work but my entire group can be at 100% and they get highlighted regardless.

------------------
That is all. Peace.
Hami
Xyd
Sojourner
Posts: 177
Joined: Thu Apr 26, 2001 5:01 am
Location: Naperville, IL US
Contact:

Postby Xyd » Fri May 18, 2001 8:17 pm

Something is amiss. I just loaded 6.16 on another machine here and imported the triggers -- it works for me. Are you entering it at the cmd line or pasting into a .txt file and importing? The importing just worked for me.

Maybe there is some other setting that is different betwixt our two versions. I'll play with it. Alternatively, email me and I'll reply with a .mud file that has it working for yas.

.xyd
Xyd
Sojourner
Posts: 177
Joined: Thu Apr 26, 2001 5:01 am
Location: Naperville, IL US
Contact:

Postby Xyd » Wed May 23, 2001 1:56 am

Ha! I figured out why it's doing that. Import or somehow get the triggers into 6.16. While in zmud, open the triggers and edit the trigger with the pattern:
(%d)/(%d)*hit* (%d)/(%d)*move*psp* (%w)

And paste this in as the commands:
#var stat {[%1*100/%2]}
#if (@stat < @cgHPThresh) {#CO 22} {#GA}

Somehow zmud doesn't import that correctly, and it doesnt' work from the commandline.

.xyd
Baikalisan
Sojourner
Posts: 314
Joined: Mon Oct 15, 2001 5:01 am
Contact:

Postby Baikalisan » Mon Mar 14, 2005 5:36 pm

bump

I must say, upon my coming back i have found clerics who are up and coming who dont know what a group health trigger is for or why it helps them become better clerics (well, some of them) so heres a good one for you to try out :)

Make sure you read all the way down for the fixes!
Baikalisan Terrorforge - Valsharess Elg'caress -
Disoputlip
Sojourner
Posts: 956
Joined: Thu Feb 21, 2002 6:01 am
Location: Copenhagen

Postby Disoputlip » Thu Apr 14, 2005 10:51 pm

Here is my trigger. Is is more simple, mabye it is better in lower versions of zMud.


Code: Select all

#CLASS {group_condition}
#TRIGGER { (%n)~/(%n)%s hit,} {#if (%1 > %2) {#col 10};#if (%1 < (%2-100)) {#col 4};#if (%1 < (%2-300)) {#col 12}}
#CLASS 0



I have chosen colors so it fit my cle spells. bright green means they need vit, dark red heal, bright red fheal. I personally find the percentages confusing.

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 4 guests