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
SparkyAura1.3.w3x
Variables
Initialization
Initialization
Sparky Aura
Sparky aura
Unneeded trigger
Commands
Max
Mana
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
SparkyUnit
unit
No
This is an aura spell i have made, that gives a chance to burst the targe with 100/150/200 dmg lightning affected by this aura when doing a target spell on it.
Version 1.1-
-Removed the "do nothing"
-Added 2 more levels
Version 1.2-
-Removed Unneccesary Variables
Version 1.3-
-Removed the "casting unit is a hero equal to true" condition
Initialization
Events
Map initialization
Conditions
Actions
Visibility - Disable black mask
Visibility - Disable fog of war
this spell, is an aura and gives the units affected by the aura a chance to get a lighntning, dealing damage, 20/25/30 % chance to deal 100 dmg, 10/15/20 % to deal 150 dmg and 5/10/15 % chance to deal 200 dmg when hit by a spell from a hero (only target spells). Nevermind the floating text actions, thats nothing neccesarry except if you change the damage on the ability, in that case change the first floating text to read "your damage" instead of my "100/150/200". At every "(target unit of ability being cast) has buff Sparky Aura (level 1,2,3)" We check when a unit is being targeted if it has the buff and which level of the buff, so we can decide how much chance that the lightning triggers depending on the level.
The things you need from here is:
-The Sparky Aura buff (level 1,2 and 3)
-The aura ability in object editor
-1 unit variable
-this trigger
If you want to change the damage or chance, its simple, the damage, just change the "unit - cause (casting unit)" action to deal "your amount of damage instead". And to edit the chance that it triggers, change the condition "(Random integer number between 1 and 100) Less than or equal to 20" To what ever you want. (if you set it to 20=20%, 30=30 % and so on.)
Sparky aura
Events
Unit - A unit Starts the effect of an ability
Conditions
((Target unit of ability being cast) belongs to an enemy of (Owner of (Casting unit)).) Equal to True
((Target unit of ability being cast) is A structure) Equal to False
Actions
-------- --------
-------- Here do we set sparkyunit as the unit that is being targeted, so the spell damages right unit --------
-------- --------
Set Variable Set SparkyUnit = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) has buff Endurance Aura) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 20
Then - Actions
-------- --------
-------- The condition over here, is the one that creates the chance (lower or equal to 20 is 20 % since 20 of 100) --------
-------- --------
-------- Down here, we check if the variableis below 20 (which will be 20 % chance that this action trigger), in that case we create a special effect on the targeted unit and damages it --------
-------- --------
-------- Nevermind the floating text actions, its nothing neccessary if you dont edit the spell, otherwise read the trigger comment --------
-------- --------
Floating Text - Create floating text that reads 100 above SparkyUnit with Z offset 0 , using font size 10 , color ( 0.00 %, 0.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
-------- --------
-------- Edit the damage to "your damage" here --------
-------- --------
Unit - Cause (Casting unit) to damage SparkyUnit , dealing 100.00 damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
-------- --------
-------- And here we set SparkyUnit as no unit, so we can use this spell on a new target next time --------
-------- --------
Set Variable Set SparkyUnit = No unit
Else - Actions
Set Variable Set SparkyUnit = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 10
Then - Actions
-------- --------
-------- This is just the same as the first one, but this checks if the random integer is lower than 10, (which will be 10 % chance instead) and then deal 150 instead of 100 damage --------
-------- --------
-------- Nevermind the floating text actions, its nothing neccessary if you dont edit the spell, otherwise read the trigger comment --------
-------- --------
Floating Text - Create floating text that reads 150 above SparkyUnit with Z offset 0 , using font size 10 , color ( 0.00 %, 0.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Unit - Cause (Casting unit) to damage SparkyUnit , dealing 150.00 damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Variable Set SparkyUnit = No unit
Else - Actions
Set Variable Set SparkyUnit = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 5
Then - Actions
-------- --------
-------- This is just the same as the first one, but this checks if the random integer is lower than 5, (which will be 5 % chance instead) and then deal 200 instead of 100 damage --------
-------- --------
-------- Nevermind the floating text actions, its nothing neccessary if you dont edit the spell, otherwise read the trigger comment --------
-------- --------
Floating Text - Create floating text that reads 200 above SparkyUnit with Z offset 0 , using font size 10 , color ( 0.00 %, 0.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Unit - Cause (Casting unit) to damage SparkyUnit , dealing 200.00 damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Variable Set SparkyUnit = No unit
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) has buff Endurance Aura) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 25
Then - Actions
-------- --------
-------- Down here we check if the random integer gets below 25 (which will be 25 % chance that this trigger, as said before) and then create a special effect and damage the target. --------
-------- --------
-------- Nevermind the floating text actions, its nothing neccessary if you dont edit the spell, otherwise read the trigger comment --------
-------- --------
Floating Text - Create floating text that reads 100 above SparkyUnit with Z offset 0 , using font size 10 , color ( 0.00 %, 0.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
-------- --------
-------- Edit the damage to "your damage" here --------
-------- --------
Unit - Cause (Casting unit) to damage SparkyUnit , dealing 100.00 damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
-------- --------
-------- And here we set SparkyUnit as no unit, so we can use this spell on a new target next time --------
-------- --------
Set Variable Set SparkyUnit = No unit
Else - Actions
Set Variable Set SparkyUnit = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 15
Then - Actions
-------- --------
-------- This is just the same as the first one, but this checks if the random integer number is lower than 15, (which will be 15 % chance instead) and then deal 150 instead of 100 damage --------
-------- --------
-------- Nevermind the floating text actions, its nothing neccessary if you dont edit the spell, otherwise read the trigger comment --------
-------- --------
Floating Text - Create floating text that reads 150 above SparkyUnit with Z offset 0 , using font size 10 , color ( 0.00 %, 0.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Unit - Cause (Casting unit) to damage SparkyUnit , dealing 150.00 damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Variable Set SparkyUnit = No unit
Else - Actions
Set Variable Set SparkyUnit = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 10
Then - Actions
-------- --------
-------- This is just the same as the first one, but this checks if the random integer number is lower than 10, (which will be 10 % chance instead) and then deal 200 instead of 100 damage --------
-------- --------
-------- Nevermind the floating text actions, its nothing neccessary if you dont edit the spell, otherwise read the trigger comment --------
-------- --------
Floating Text - Create floating text that reads 200 above SparkyUnit with Z offset 0 , using font size 10 , color ( 0.00 %, 0.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Unit - Cause (Casting unit) to damage SparkyUnit , dealing 200.00 damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Variable Set SparkyUnit = No unit
Else - Actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) has buff Endurance Aura) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 30
Then - Actions
-------- --------
-------- Down here, we check if the random integer number is below 30 (which will be 30 % chance that this action trigger), in that case we create a special effect on the targeted unit and damages it --------
-------- --------
-------- Nevermind the floating text actions, its nothing neccessary if you dont edit the spell, otherwise read the trigger comment --------
-------- --------
Floating Text - Create floating text that reads 100 above SparkyUnit with Z offset 0 , using font size 10 , color ( 0.00 %, 0.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
-------- --------
-------- Edit the damage to "your damage" here --------
-------- --------
Unit - Cause (Casting unit) to damage SparkyUnit , dealing 100.00 damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
-------- --------
-------- And here we set SparkyUnit as no unit, so we can use this spell on a new target next time --------
-------- --------
Set Variable Set SparkyUnit = No unit
Else - Actions
Set Variable Set SparkyUnit = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 20
Then - Actions
-------- --------
-------- This is just the same as the first one, but this checks if the random integer number is lower than 20, (which will be 20 % chance instead) and then deal 150 instead of 100 damage --------
-------- --------
-------- Nevermind the floating text actions, its nothing neccessary if you dont edit the spell, otherwise read the trigger comment --------
-------- --------
Floating Text - Create floating text that reads 150 above SparkyUnit with Z offset 0 , using font size 10 , color ( 0.00 %, 0.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Unit - Cause (Casting unit) to damage SparkyUnit , dealing 150.00 damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Variable Set SparkyUnit = No unit
Else - Actions
Set Variable Set SparkyUnit = (Target unit of ability being cast)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 15
Then - Actions
-------- --------
-------- This is just the same as the first one, but this checks if the random integer number is lower than 15, (which will be 15 % chance instead) and then deal 200 instead of 100 damage --------
-------- --------
-------- Nevermind the floating text actions, its nothing neccessary if you dont edit the spell, otherwise read the trigger comment --------
-------- --------
Floating Text - Create floating text that reads 200 above SparkyUnit with Z offset 0 , using font size 10 , color ( 0.00 %, 0.00 %, 75.00 %), and 0 % transparency
Floating Text - Change (Last created floating text) : Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 64 towards 90 degrees
Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
Unit - Cause (Casting unit) to damage SparkyUnit , dealing 200.00 damage of attack type Spells and damage type Lightning
Special Effect - Create a special effect attached to the overhead (Unexpected type: 'attachpoint') of SparkyUnit using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Set Variable Set SparkyUnit = No unit
Else - Actions
Else - Actions
Commands
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Game - Display to (All players) the text: Write -max for max level.
Max
Events
Player - Player 1 (Red) types a chat message containing -max (Unexpected type: 'stringnoformat') as An exact match
Conditions
Actions
Hero - Set Paladin 0001 <gen> Hero-level to 10 , Hide level-up graphics
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.