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!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
GuiUltraHealSpell.w3x
Variables
MY FIRST GUI PRACTICE SPELL
Spell
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
special_effect
effect
Yes
special_effect_ID
integer
No
0
My first Gui Spell and yes I realize it is simple but at least its a start. ^>^. Only real thing needed to be changed to amke this spell work for any unit is simply hcnage the unit type in conditions.
Spell
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to Heal
(Unit-type of (Casting unit)) Equal to Priest
Actions
Unit Group - Pick every unit in (Units within 600.00 of (Position of (Target unit of ability being cast)).) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked unit)) Equal to (Owner of (Casting unit))
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 50.00)
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of (Picked unit) using Abilities\Spells\Human\Heal\HealTarget.mdl
Set Variable Set special_effect_ID = (special_effect_ID + 1)
Set Variable Set special_effect[special_effect_ID] = (Last created special effect)
Wait 2 seconds
Special Effect - Destroy special_effect[special_effect_ID]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.