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
thundershot.w3x
Variables
lighting
thundershot 1
thundershot 2
thundershot 3
invulnerability
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
LBLoc
location
No
lightingball
unit
No
TargetLoc
location
No
thundershot 1
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to thundershot
Actions
Unit - Make (Triggering unit) face (Target point of ability being cast) over 0.10 seconds
Set Variable Set TargetLoc = (Target point of ability being cast)
Unit - Create 1 . lightingball for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 100.00 towards (Facing of (Triggering unit)) degrees.) facing (Facing of (Triggering unit)) degrees
Set Variable Set lightingball = (Last created unit)
Trigger - Turn on thundershot_2 <gen>
thundershot 2
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Special Effect - Create a special effect at (Position of lightingball) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
For each (Integer A) from 1 to 1 , do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units within 200.00 of (Position of lightingball) matching (((Matching unit) belongs to an enemy of (Owner of lightingball).) Equal to True).) and do (Cause (Triggering unit) to damage (Picked unit), dealing 75.00 damage of attack type Spells and damage type Normal)
Unit Group - Pick every unit in (Units within 250.00 of (Position of lightingball) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of lightingball).) Equal to True)).) and do (Actions)
Loop - Actions
Unit - Pause (Picked unit)
Unit - Move (Picked unit) instantly to ((Position of lightingball) offset by 40.00 towards (Facing of lightingball) degrees.)
Unit - Cause lightingball to damage (Picked unit) , dealing 30.00 damage of attack type Spells and damage type Lightning
Unit - Unpause (Picked unit)
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Weapons\Bolt\BoltImpact.mdl
Special Effect - Destroy (Last created special effect)
Unit - Move lightingball instantly to ((Position of lightingball) offset by 40.00 towards (Facing of lightingball) degrees.)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between (Position of lightingball) and TargetLoc) Less than or equal to 150.00
Then - Actions
Set Variable Set LBLoc = (Position of lightingball)
Trigger - Turn on thundershot_3 <gen>
Trigger - Turn off (This trigger)
Else - Actions
Custom script: call RemoveLocation(udg_LBLoc)
thundershot 3
Events
Time - Every 0.30 seconds of game time
Conditions
Actions
Unit - Create 1 . dummycaster for (Owner of lightingball) at (Position of lightingball) facing Default building facing degrees
Unit - Add a 1.20 second Generic expiration timer to (Last created unit)
Unit - Add TS dummy ability to (Last created unit)
Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp .
Special Effect - Create a special effect at (Position of lightingball) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
For each (Integer A) from 1 to 9 , do (Actions)
Loop - Actions
Special Effect - Create a special effect at ((Position of lightingball) offset by 300.00 towards (40.00 x (Real((Integer A)))) degrees.) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
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.