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
Flash Sword.w3x
Variables
Map Initialization
Map Initialization
Spell
Flash Sword Ability
Flash Sword Knockback
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
Angle
real
No
Caster
unit
No
Castr_Pos
location
No
FlashKnockBack
location
No
Target
unit
No
Targt_Pos
location
No
Map Initialization
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask
Flash Sword Ability
Events
Unit - A unit Is attacked
Conditions
(Level of Flash Sword for (Attacking unit)) Greater than 0
Actions
Set Variable Set Caster = (Attacking unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 4) Equal to 1
Then - Actions
Set Variable Set Target = (Attacked unit)
Set Variable Set Angle = (Facing of Caster)
Animation - Play Caster 's Attack Slam animation
Unit - Cause Caster to damage Target , dealing 900.00 damage of attack type Hero and damage type Lightning
Special Effect - Create a special effect at (Position of Target) using Abilities\Weapons\Bolt\BoltImpact.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at (Position of Target) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Turn collision for Target Off .
Trigger - Turn off (This trigger)
Trigger - Turn on Flash_Sword_Knockback <gen>
If ((Level of Flash Sword for Caster) Greater than 0) then do (Wait 0.95 seconds) else do (Do nothing)
Trigger - Turn off Flash_Sword_Knockback <gen>
Unit - Turn collision for Target On .
Trigger - Turn on (This trigger)
Else - Actions
Flash Sword Knockback
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain pathing at ((Position of Target) offset by 10.00 towards Angle degrees.) of type Walkability is off) Equal to False
Then - Actions
Unit - Cause Caster to damage Target , dealing 10.00 damage of attack type Spells and damage type Lightning
Set Variable Set Targt_Pos = (Position of Target)
Unit - Move Target instantly to (Targt_Pos offset by 1.00 towards Angle degrees.)
Special Effect - Create a special effect attached to the origin (Unexpected type: 'attachpoint') of Target using Abilities\Spells\Orc\MirrorImage\MirrorImageDeathCaster.mdl
Destructible - Pick every destructible within 105.00 of Targt_Pos and do (Kill (Picked destructible))
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.