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
Insanity.w3x
Variables
Insanity
Insanity
Dies
kjbas
THIS MAP
InsaneME
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
Insane_Unit
unit
No
UnitNull
Insane_Unit_Copy
unit
No
UnitNull
Insanity_Point
location
No
loc_Unit
location
No
loc_UnitEnemy
location
No
Default melee game initialization for all players
Insanity
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Insanity
Actions
Set Variable Set Insane_Unit = (Casting unit)
Set Variable Set loc_Unit = (Position of Insane_Unit)
Set Variable Set Insane_Unit_Copy = (Target unit of ability being cast)
Set Variable Set loc_UnitEnemy = (Position of Insane_Unit_Copy)
Sound - Play SoulPreservation <gen> at 100 % volume, attached to (Target unit of ability being cast)
Sound - Stop (Last played sound) After fading
Special Effect - Create a special effect at loc_Unit using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
Special Effect - Destroy (Last created special effect)
For each (Integer A) from 1 to 50 , do (Actions)
Loop - Actions
Set Variable Set Insanity_Point = (loc_UnitEnemy offset by ((Random real number between -1000.00 and 1000.00), (Random real number between -1000.00 and 1000.00)))
Unit - Create 1 Ghost for (Owner of (Target unit of ability being cast)) at Insanity_Point facing Insanity_Point
Unit - Turn collision for (Last created unit) Off .
Set Variable Set Insanity_Point = (loc_UnitEnemy offset by ((Random real number between -2000.00 and 2000.00), (Random real number between -2000.00 and 2000.00)))
Unit - Order (Last created unit) to Move To . Insanity_Point
Set Variable Set Insanity_Point = (loc_UnitEnemy offset by ((Random real number between -1000.00 and 1000.00), (Random real number between -1000.00 and 1000.00)))
Unit - Create 1 Ghost for (Owner of (Target unit of ability being cast)) at Insanity_Point facing Insanity_Point
Unit - Order (Last created unit) to Attack . (Target unit of ability being cast)
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.