 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Wed May 29, 2002 8:00 pm
Need assistant |
Could anyone please help me set up a healing trigger ? .. I wanted to heal name_here when name_here report: less than perfect/out of how many hit points...then stop healing when name_here report: perfect/out of how many hit points
|
|
|
 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Thu May 30, 2002 12:50 am |
Ok, i used to do this exactly.
however with my script, you had report after every heal. let's say you were down 120 hps and your max heal was 60, you would have to report twice. This trigger is based on 4 heal spells:
"sov" heals up to 240 hps
"heal c" heals up to 180 hps
"heal s" heals up to 120 hps
"heal l" heals up to 60 hps
When I made mine, i made it so that if it brought me to within 29 hps, it would be considered fully healed, however with this one it will heal you fully, even if you only need one hp (it would slap a heal light on you)
here's the trigger pattern:
(%w) reports to you... ~<(%d)~((%d)~)H~>
and here's the script:
#math remhp (%3 - %2)
#if (@remhp >180) {cast 'sov' %1} {#if (@remhp > 120) {cast 'heal c' %1} {#if (@remhp > 60) {cast 'heal s' %1} {#if (@remhp > 0) {cast 'heal l' %1}}}}
NOW the thing with this script is that anyone can report to you and use your trigger. I suggest making a friendlist, kinda like this:
#ALI {makefriend} {#ADDITEM Friends %1}
then change your trigger script slightly to this:
#if %ismember( %lower( %1), @friends) {
#math remhp (%3 - %2)
#if (@remhp >180) {cast 'sov' %1} {#if (@remhp > 120) {cast 'heal c' %1} {#if (@remhp > 60) {cast 'heal s' %1} {#if (@remhp > 0) {cast 'heal l' %1}}}}}
I hope this helps, and if you want to make it so it only heals up to say 29 hps (which is one less than half a heal light, will save mana) just change your numbers, |
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Thu May 30, 2002 1:13 am |
how do I change it so I only do one healing action ? .. since on my mud I am a surgeon .. and you only able to operate player_name .. there is alot of stuff there .. wow .. I suck at zMUD .. and thank you for your help .. please just help me again =p
|
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Thu May 30, 2002 1:15 am |
O .. the message is this
Name report: 453/453 hp 417/484 mana 527/527 mv.
I wanted to do something that will compare the current to the max .. if that is possible |
|
|
 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Thu May 30, 2002 1:17 am |
ok I got the trigger script, however what are the values and spells for heals?
|
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Thu May 30, 2002 1:21 am |
operate name
is the value .. it is a skill ..
only one I can do |
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Thu May 30, 2002 1:23 am |
You begin to operate on Name, with a delicate cut of your brain
is the message you get when you perform the skill .. |
|
|
 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Thu May 30, 2002 1:29 am |
ok, asuuming that operate will just give a random amount of hps each time this is yer script:
#trigger {(%w) report: (%d)/(%d) hp} {#if (%2 < %3) {operate %1}}
OR if you want to do it for friends only here is the scripts:
#ALI {makefriend} {#ADDITEM Friends %1}
#trigger {(%w) report: (%d)/(%d) hp} {#if %ismember( %lower( %1), @friends) {#if (%2 < %3) {operate %1}}}
again they will have to report till they are full..
is this what you needed? |
|
|
 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Thu May 30, 2002 1:30 am |
btw to add a friend just use the command makefriend
i.e.
makefriend NiteTrip
that way I can use this command and no one else |
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Thu May 30, 2002 1:35 am |
wow .. it work .. I just test it out
but umm .. how do you make friend list ? .. hehe .. I mean add to the list .. thank you so much .. this is great |
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Thu May 30, 2002 1:36 am |
bleh .. I didn't refresh the page .. thank you
|
|
|
 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Thu May 30, 2002 1:37 am |
see my post above, use makefriend
i.e
makefriend NiteTrip |
|
|
 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Thu May 30, 2002 1:38 am |
And you're very welcome :-)
|
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Thu May 30, 2002 1:44 am |
hehe .. one more question
if they report fully heal .. how do I send the command clear to the mud ? .. |
|
|
 |
NiteTrip Novice
Joined: 21 May 2002 Posts: 40 Location: Canada
|
Posted: Thu May 30, 2002 1:47 am |
#trigger {(%w) report: (%d)/(%d) hp} {#if (%2 < %3) {operate %1} {clear}}
or
#trigger {(%w) report: (%d)/(%d) hp} {#if %ismember( %lower( %1), @friends) {#if (%2 < %3) {operate %1} {clear}}}
basically if the # of actual hps is not less that the max # of hps, then it must be equal (or above) so I just added it to the if not portion. |
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Thu May 30, 2002 1:57 am |
Hmm .. maybe I should start a new post .. but umm .. hehe .. o well .. thank you for your help .. just curious .. how do I turn those triggers off as default when I start zMUD ? .. hehe .. last question . .promise..hehe..
|
|
|
 |
TonDiening GURU

Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Thu May 30, 2002 4:16 am |
how do I turn those triggers off as default when I start zMUD ?
Put them into a class folder that defaults disabled when you connect to the mud.
TonDiening
Beta Upgrading to 6.26 |
|
|
 |
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Thu May 30, 2002 4:38 am |
Thx a bunch .. hehe .. healing bots are soo sweet
|
|
|
 |
|
|