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
Nether Swap Custom v1.0.w3x
Variables
Spells
Nether Swap Copy
Visible
All map
Respawn
Unit die
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
NS_Caster
unit
No
NS_Lighting
lightning
No
NS_Point
location
Yes
NS_Target
unit
No
Nether Swap Copy
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Nether Swap
Actions
-------- Variables --------
Set Variable Set NS_Caster = (Casting unit)
Set Variable Set NS_Target = (Target unit of ability being cast)
Set Variable Set NS_Point[1] = (Position of NS_Caster)
Set Variable Set NS_Point[2] = (Position of NS_Target)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Nether Swap for NS_Caster) Equal to 1
Then - Actions
Wait 0.01 seconds
-------- Sin este wait, el spell no llega a usarse, y el cooldown no corre. --------
Unit - Move NS_Caster instantly to NS_Point[2]
Unit - Move NS_Target instantly to NS_Point[1]
Lightning - Create a Spirit Link lightning effect from source NS_Point[1] to target NS_Point[2]
Lightning - Change color of (Last created lightning effect) to ( 0.35 0.00 3.00 ) with 5.00 alpha
Set Variable Set NS_Lighting = (Last created lightning effect)
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of NS_Target using Objects\Spawnmodels\Other\FlameThrower\FlameThrowerSpawnObj.mdl
Unit - Cause NS_Caster to damage NS_Target , dealing (100.00 + (2.00 x (Real((Agility of NS_Caster (Exclude bonuses)))))) damage of attack type Spells and damage type Normal
Special Effect - Destroy (Last created special effect)
Wait 0.60 seconds
Lightning - Destroy NS_Lighting
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Nether Swap for NS_Caster) Equal to 2
Then - Actions
Wait 0.01 seconds
-------- Sin este wait, el spell no llega a usarse, y el cooldown no corre. --------
Unit - Move NS_Caster instantly to NS_Point[2]
Unit - Move NS_Target instantly to NS_Point[1]
Lightning - Create a Spirit Link lightning effect from source NS_Point[1] to target NS_Point[2]
Lightning - Change color of (Last created lightning effect) to ( 0.35 0.00 3.00 ) with 5.00 alpha
Set Variable Set NS_Lighting = (Last created lightning effect)
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of NS_Target using Objects\Spawnmodels\Other\FlameThrower\FlameThrowerSpawnObj.mdl
Unit - Cause NS_Caster to damage NS_Target , dealing (200.00 + (2.00 x (Real((Agility of NS_Caster (Exclude bonuses)))))) damage of attack type Spells and damage type Normal
Special Effect - Destroy (Last created special effect)
Wait 0.60 seconds
Lightning - Destroy NS_Lighting
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Nether Swap for NS_Caster) Equal to 3
Then - Actions
Wait 0.01 seconds
-------- Sin este wait, el spell no llega a usarse, y el cooldown no corre. --------
Unit - Move NS_Caster instantly to NS_Point[2]
Unit - Move NS_Target instantly to NS_Point[1]
Lightning - Create a Spirit Link lightning effect from source NS_Point[1] to target NS_Point[2]
Lightning - Change color of (Last created lightning effect) to ( 0.35 0.00 3.00 ) with 5.00 alpha
Set Variable Set NS_Lighting = (Last created lightning effect)
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of NS_Target using Objects\Spawnmodels\Other\FlameThrower\FlameThrowerSpawnObj.mdl
Unit - Cause NS_Caster to damage NS_Target , dealing (300.00 + (2.00 x (Real((Agility of NS_Caster (Exclude bonuses)))))) damage of attack type Spells and damage type Normal
Special Effect - Destroy (Last created special effect)
Wait 0.60 seconds
Lightning - Destroy NS_Lighting
Else - Actions
Do nothing
All map
Events
Map initialization
Conditions
Actions
Visibility - Create an initially Enabled visibility modifier for (Matching player) emitting Visibility from (Center of Region_001 <gen>) to a radius of 5000.00 .
Unit die
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Forest Troll Warlord
Actions
Wait 5.00 seconds
Unit - Create 1 . Forest Troll Warlord for Neutral Hostile at (Center of Region_000 <gen>) facing Default building facing degrees
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.