• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

cant get it work i need help

Status
Not open for further replies.
Level 2
Joined
Apr 23, 2006
Messages
17
ok the spell i was gonna make is called stHeal and it should do this:( ill give u level 1 stats ) damage 75 thats it but when a unit get killed by this spell it should recover the caster it hit points so ( btw i used storm bolt ) hmm these are my triggers for it:

Events
Unit - A unit Begins casting an ability

Conditions
(Ability being cast) Equal to stHeal


Actions
Unit Group - Add (Target unit of ability being cast) to stHeal_unit_group

Wait 0.01 seconds

Wait until ((All units of stHeal_unit_group are dead) Equal to True), checking every 0.50 seconds

Unit - Set life of (Target unit of issued order) to 100.00%

Special Effect - Create a special effect attached to the chest of (Target unit of issued order) using Abilities\Spells\Human\Resurrect\ResurrectCaster.mdl

Set stHeal_Effect = (Last created special effect)

Unit Group - Remove all units from stHeal_unit_group

Wait 5.00 seconds

Special Effect - Destroy stHeal_Effect


and

Events

Unit - A unit Begins casting an ability

Conditions

(Ability being cast) Equal to stHeal

Actions

Wait 5.00 seconds
Unit Group - Remove all units from

stHeal_unit_group


cooldown of teh spell = 12 secs so np for teh w8 times
HEEEEEEEELP PLZZZZZZZZZZZ
 
Level 4
Joined
Jan 30, 2006
Messages
93
i think this would work

unit tarts the effect of an ability

ability being cast = StHeal

Set Health_StHEal(real varible) to health of targeted unit
wait 1 sec

If target of issue being orders is dead = true then
-loop actiona
Set health of Triggering unit to Health of triggering unit + Health_stheal

this should work..it heals the amount of damage the unit had before he died
 
Status
Not open for further replies.
Top