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
TanWave.w3x
Variables
Initialization
Melee Initialization
TheSpell
TanStart
Tanpeiodic
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
TanCaster
unit
No
TanPoint
location
Yes
TanReal
real
Yes
TanSFX
boolean
Yes
TanTargetGroup
group
No
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Visibility - Disable black mask
Visibility - Disable fog of war
TanStart
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Tan Wave
Actions
Set Variable Set TanCaster = (Triggering unit)
Set Variable Set TanReal[1] = "0.00"
Set Variable Set TanReal[2] = "0.00"
Set Variable Set TanReal[3] = "0.00"
Set Variable Set TanPoint[1] = (Position of (Triggering unit))
Set Variable Set TanPoint[2] = (Target point of ability being cast)
-------- Set the damage Per a level --------
Set Variable Set TanReal[4] = (100.00 x (Real((Level of Tan Wave for (Triggering unit)))))
-------- The higher this number, the quicker the Deformations appear --------
Set Variable Set TanReal[5] = "5.00"
-------- The higher this number, the higher the Height of the Deformations --------
Set Variable Set TanReal[6] = "50.00"
-------- Set this to set the Duration of the Deformations --------
Set Variable Set TanReal[7] = "0.50"
-------- Set the Area of the Deformation and Damage Group --------
Set Variable Set TanReal[8] = "400.00"
-------- The speed the wave Travels --------
Set Variable Set TanReal[9] = "40.00"
-------- The maximum Distance of the Wave --------
Set Variable Set TanReal[10] = "2000.00"
-------- Does the Terrain Deform? --------
Set Variable Set TanSFX[1] = "true"
-------- Does it have SFX while traveling? --------
Set Variable Set TanSFX[2] = "true"
-------- Does it have SFX on Pinnacles? --------
Set Variable Set TanSFX[3] = "true"
Trigger - Turn on Tanpeiodic <gen>
Tanpeiodic
Events
Time - Every 0.03 seconds of game time
Conditions
Actions
Set Variable Set TanReal[1] = (TanReal[1] + TanReal[5])
Set Variable Set TanReal[3] = (Tan(TanReal[1]))
Set Variable Set TanReal[2] = (TanReal[2] + TanReal[9])
Set Variable Set TanPoint[3] = (TanPoint[1] offset by TanReal[2] towards (Angle from TanPoint[1] to TanPoint[2]) degrees.)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TanSFX[3] Equal to True
TanReal[1] Greater than 77.00
Then - Actions
Set Variable Set TanTargetGroup = (Units within TanReal[8] of TanPoint[3] matching (((Matching unit) belongs to an enemy of (Owner of TanCaster).) Equal to True).)
Unit Group - Pick every unit in TanTargetGroup and do (Actions)
Loop - Actions
Unit - Cause TanCaster to damage (Picked unit) , dealing TanReal[4] damage of attack type Spells and damage type Normal
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.