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
Alias/Trigger set to check group health
-
- Sojourner
- Posts: 35
- Joined: Thu Mar 29, 2001 6:01 am
- Location: Canada Eh!
-
- Sojourner
- Posts: 99
- Joined: Mon May 14, 2001 5:01 am
- Location: Japan
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
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
-
- Sojourner
- Posts: 99
- Joined: Mon May 14, 2001 5:01 am
- Location: Japan
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
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
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
(%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
-
- Sojourner
- Posts: 314
- Joined: Mon Oct 15, 2001 5:01 am
- Contact:
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!
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 -
-
- Sojourner
- Posts: 956
- Joined: Thu Feb 21, 2002 6:01 am
- Location: Copenhagen
Here is my trigger. Is is more simple, mabye it is better in lower versions of zMud.
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.
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.
Who is online
Users browsing this forum: No registered users and 9 guests