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
Warp Field.w3x
Variables
Initialization
Warp Field
Warping
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
barrier
unit
Yes
Warper
unit
No
WarperCastPoint
location
No
Warp Field
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Warp Field
Actions
Set Variable Set Warper = (Triggering unit)
Set Variable Set WarperCastPoint = (Position of (Triggering unit))
For each (Integer A) from 1 to 36 , do (Actions)
Loop - Actions
Unit - Create 1 . Dummy for (Owner of Warper) at WarperCastPoint facing ((Real((Integer A))) x 10.00) degrees
Set Variable Set barrier[(Integer A)] = (Last created unit)
Sound - Play BlinkArrival1 <gen> at 100 % volume, attached to (Last created unit)
Trigger - Turn on Warping <gen>
Wait 10.00 seconds
Trigger - Turn off Warping <gen>
For each (Integer A) from 1 to 9 , do (Actions)
Loop - Actions
Wait (0.01 / 100.00) seconds
Sound - Play BlinkArrival1 <gen> at 100 % volume, attached to barrier[(Integer A)]
Unit - Remove barrier[(Integer A)] from the game
Sound - Play BlinkArrival1 <gen> at 100 % volume, attached to barrier[((Integer A) + 9)]
Unit - Remove barrier[(Integer(((Real((Integer A))) + 9.00)))] from the game
Sound - Play BlinkArrival1 <gen> at 100 % volume, attached to barrier[((Integer A) + 18)]
Unit - Remove barrier[(Integer(((Real((Integer A))) + 18.00)))] from the game
Sound - Play BlinkArrival1 <gen> at 100 % volume, attached to barrier[((Integer A) + 27)]
Unit - Remove barrier[(Integer(((Real((Integer A))) + 27.00)))] from the game
Warping
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units within 435.00 of WarperCastPoint matching ((((Matching unit) belongs to an enemy of (Owner of Warper).) Equal to True) and (((Matching unit) is A ground unit) Equal to True)).) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 1.50 towards (Angle from WarperCastPoint to (Position of (Picked unit))) degrees.)
Sound - Play ManaDrainTarget1 <gen> at 100 % volume, attached to (Picked unit)
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.