Empath - Heal All (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
mNo edit summary
Line 15: Line 15:
This is simple. Create two scripts and call the first one "HealAll" (no spaces!). The second script needs to be called "HealAllSupport". You will only ever call to "HealAll," the HealAllSupport script uses two variables (%1 %2) to accept input of body part and cast accordingly. As such, it is possible to use HealAllSupport on its own to be very specific to healing individual body parts should you choose, a simple ".HealAllSupport right arm" would do it... this is precisely the input that "HealAll" does when it detects a right arm wound.
This is simple. Create two scripts and call the first one "HealAll" (no spaces!). The second script needs to be called "HealAllSupport". You will only ever call to "HealAll," the HealAllSupport script uses two variables (%1 %2) to accept input of body part and cast accordingly. As such, it is possible to use HealAllSupport on its own to be very specific to healing individual body parts should you choose, a simple ".HealAllSupport right arm" would do it... this is precisely the input that "HealAll" does when it detects a right arm wound.


'''Both scripts are necessary in order for this to function appropriately.'''
'''Both scripts are necessary in order for this to function appropriately.'''<br>
'''... I just figured out how to do what's needed in order to merge these two scripts into one... coming soon! :-)'''
'''... I just figured out how to do what's needed in order to merge these two scripts into one... coming soon! :-)'''



==Possible Desired Edits==
==Possible Desired Edits==

Revision as of 08:59, 20 April 2016

Empath - Heal All (script)
Category Empath,utility
Front-end StormFront
Author Kashna

Basic Description

This script will use Heal Wounds and Heal Scars to completely heal an Empath of wounds. It actually works as two separate scripts in tandem. This is because I don't know how to make a script determine its own variables. As such, I made it so that the HealAll script checks one's health and calls out to the HealAllSupport script in a different way depending upon the part of the body that is wounded.

HealAll: checks health, calls out to HealAllSupport, informs you when you are clean from wounds

HealAllSupport: heals the external wound, then external scar, then internal wound and resulting internal scar as well. Checks are built in so as to not waste too much mana - if there is no wound to heal, this script will skip over trying to heal the scar. As a result, you may need to manually heal body parts that had no wound and only scars later.


How To Use These Scripts

This is simple. Create two scripts and call the first one "HealAll" (no spaces!). The second script needs to be called "HealAllSupport". You will only ever call to "HealAll," the HealAllSupport script uses two variables (%1 %2) to accept input of body part and cast accordingly. As such, it is possible to use HealAllSupport on its own to be very specific to healing individual body parts should you choose, a simple ".HealAllSupport right arm" would do it... this is precisely the input that "HealAll" does when it detects a right arm wound.

Both scripts are necessary in order for this to function appropriately.
... I just figured out how to do what's needed in order to merge these two scripts into one... coming soon!  :-)

Possible Desired Edits

If you want it to heal all scars regardless, edit HealAllSupport for the following:

"match HealInt is not injured" -- change "HealInt" to "HealExtScar"
"match BackToHealAll is not injured" -- change "BackToHealAll" to "HealIntScar"

You may also want to change the amount of mana that you put into each spell. I used HW 4, and HS 7. If you would like to change these values, do so within the HealAllSupport script. It casts each spell twice (once external and once internal).


HealAll

#HealAll

HealthCheck:
put health
match Skin paralysis of the entire
match Skin difficulty controlling
match Skin some severe twitching
match Skin some minor twitching
match Skin to the skin
match Head head
match REye right eye
match LEye left eye
match Neck neck
match RArm right arm
match LArm left arm
match RHand right hand
match LHand left hand
match Chest chest
match Back back
match Abdomen abdomen
match RLeg right leg
match LLeg left leg
match Done You have no significant
matchwait

Skin:
put .HealAllSupport skin

Head:
put .HealAllSupport head

REye:
put .HealAllSupport right eye

LEye:
put .HealAllSupport left eye

Neck:
put .HealAllSupport neck

RArm:
put .HealAllSupport right arm

Larm:
put .HealAllSupport left arm

RHand:
put .HealAllSupport right hand

LHand:
put .HealAllSupport left hand

Chest:
put .HealAllSupport chest

Back:
put .HealAllSupport back

Abdomen:
put .HealAllSupport abdomen

RLeg:
put .HealAllSupport right leg

LLeg:
put .HealAllSupport left leg

Done:
echo
echo ******************
echo
echo *** All clean! ***
echo
echo ******************
echo

HealAllSupport

#HealAllSupport

HealExt:
put prep hw 4
waitfor You feel fully prepared
put cast %1 %2 ext
match HealExt better
match HealExt improved
match HealExtScar healed
match HealInt is not injured
matchwait

HealExtScar:
put prep hs 7
waitfor You feel fully prepared
put cast %1 %2 ext
match HealExtScar better
match HealExtScar improved
match HealInt healed
match HealInt is not injured
matchwait

HealInt:
put prep hw 4
waitfor You feel fully prepared
put cast %1 %2 int
match HealInt better
match HealInt improved
match HealIntScar healed
match BackToHealAll is not injured
matchwait

HealIntScar:
put prep hs 7
waitfor You feel fully prepared
put cast %1 %2 int
match HealIntScar better
match HealIntScar improved
match BackToHealAll healed
match BackToHealAll is not injured
matchwait

BackToHealAll:
put .HealAll