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
Omnislash Spell.w3x
Variables
ABILITY
How Import Spell?
Omnislash
DO NOT COPY
Restore Mana and Life
Revive Hero
Melee Initialization
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
Omni_Caster
unit
No
Omni_Count
real
No
Omni_Damage
real
No
Omni_Effect
effect
No
Omni_Level
integer
No
Omni_Loop
integervar
No
Omni_Target
unit
No
First of all go to "File/Preferences/General/" then tick Automatically create unknown variables while pasting trigger data.
Fix up the needed things for the spell, then your all set!
Omnislash
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Omnislash
Actions
-------- CONFIGURABLES --------
Set Variable Set Omni_Caster = (Casting unit)
Set Variable Set Omni_Target = (Target unit of ability being cast)
Set Variable Set Omni_Level = (Level of Omnislash for Omni_Caster)
Set Variable Set Omni_Damage = ((Random real number between 150.00 and 250.00) + (50.00 x (Real(Omni_Level))))
Set Variable Set Omni_Count = (2.00 + (2.00 x (Real(Omni_Level))))
-------- CREATE SPELL SPECIAL EFFECTS --------
Player - Disable Omnislash for (Owner of Omni_Caster)
Wait 0.00 seconds
Unit - Make Omni_Caster Invulnerable
Unit - Turn collision for Omni_Caster Off .
Animation - Reset Omni_Caster 's animation
Animation - Change Omni_Caster 's vertex coloring to ( 100 %, 100 %, 100 %) with 50.00 % transparency
Special Effect - Create a special effect attached to the weapon (Unexpected type: 'attachpoint') of Omni_Caster using Abilities\Weapons\PhoenixMissile\Phoenix_Missile.mdl
Set Variable Set Omni_Effect = (Last created special effect)
-------- RUN SPELL --------
Unit - Move Omni_Caster instantly to ((Position of Omni_Target) offset by 80.00 towards (Random real number between 0 and 360.00) degrees.) , facing (Position of Omni_Target)
Unit - Cause Omni_Caster to damage Omni_Target , dealing Omni_Damage damage of attack type Hero and damage type Normal
Animation - Play Omni_Caster 's attack animation
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of Omni_Caster using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
Special Effect - Destroy (Last created special effect)
Wait 0.25 seconds
For each (Integer Omni_Loop ) from 1 to (Integer(Omni_Count)) , do (Actions)
Loop - Actions
Set Variable Set Omni_Target = (Random unit from (Units within 450.00 of (Position of Omni_Caster) matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Mechanical) Not equal to True) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A flying unit) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of Omni_Caster).) Equal to True) and (((Matching unit) is visible to (Owner of Omni_Caster).) Equal to True)))))).))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Units within 450.00 of (Position of Omni_Caster) matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Mechanical) Not equal to True) and ((((Matching unit) is A flying unit) Not equal to True) and ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of Omni_Caster).) Equal to True) and (((Matching unit) is visible to (Owner of Omni_Caster).) Equal to True)))))).) is empty) Equal to True
Then - Actions
Player - Enable Omnislash for (Owner of Omni_Caster)
Unit - Make Omni_Caster Vulnerable
Unit - Turn collision for Omni_Caster On .
Animation - Change Omni_Caster 's vertex coloring to ( 100 %, 100 %, 100 %) with 0.00 % transparency
Special Effect - Destroy Omni_Effect
Set Variable Set Omni_Caster = No unit
Set Variable Set Omni_Target = No unit
Else - Actions
-------- SHOW TEXT DAMAGE (( JUST REMOVE IF YOU DON'T LIKE )) --------
Floating Text - Create floating text that reads ((String((Integer(Omni_Damage)))) + !) above Omni_Caster with Z offset 0 , using font size 10.00 , color ( 100.00 %, 0.00 %, 0.00 %), and 0 % transparency
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-------- TEXT SETTINGS END --------
Unit - Move Omni_Caster instantly to ((Position of Omni_Target) offset by 80.00 towards (Random real number between 0 and 360.00) degrees.) , facing (Position of Omni_Target)
Unit - Cause Omni_Caster to damage Omni_Target , dealing Omni_Damage damage of attack type Hero and damage type Normal
Animation - Play Omni_Caster 's attack animation
Special Effect - Create a special effect attached to the chest (Unexpected type: 'attachpoint') of Omni_Caster using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
Special Effect - Destroy (Last created special effect)
Wait 0.25 seconds
Player - Enable Omnislash for (Owner of Omni_Caster)
Unit - Make Omni_Caster Vulnerable
Unit - Turn collision for Omni_Caster On .
Special Effect - Destroy Omni_Effect
Animation - Change Omni_Caster 's vertex coloring to ( 100 %, 100 %, 100 %) with 0.00 % transparency
Set Variable Set Omni_Caster = No unit
Set Variable Set Omni_Target = No unit
Restore Mana and Life
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit - Set life of Blademaster 0008 <gen> to 100 %
Unit - Set mana of Blademaster 0008 <gen> to 100 %
Unit - Reset ability cooldowns for Blademaster 0008 <gen> .
Revive Hero
Events
Unit - Blademaster 0008 <gen> Dies
Conditions
Actions
Hero - Instantly revive Blademaster 0008 <gen> at (Position of Blademaster 0008 <gen>) , Show revival graphics
Default melee game initialization for all players
Melee Initialization
Events
Map initialization
Conditions
Actions
Game - Display to (All players) the text: =====[ Omnislash Spell created by Paolo Gerochi ]===== Please give credits to me!!! Press [ESC] to reset unit settings and ability cooldown.
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.