I made a spell based on the Goblin Tinker's 'Cluster Rockets' spell, and it was A OK unless I changed the buff to anything but 'Cluster Rockets', because then it dealt no damage. I knew that, the spell was fine and dealing damage normally.
Later, I decided to spice it up and make the spell deal damage based on the hero's primary attribute (Strength) (I learned how somewhere on the hive, don't remember where)... So I altered the spell's damage to 0.01 in the object editor and did what I could with the trigger editor... And this was the result:
The Variables are: WillStr [Integer](The Strength of the hero), FlameShowerLevel [Integer](The level of the ability
) and FlameShowerLoc
Later, I decided to spice it up and make the spell deal damage based on the hero's primary attribute (Strength) (I learned how somewhere on the hive, don't remember where)... So I altered the spell's damage to 0.01 in the object editor and did what I could with the trigger editor... And this was the result:
-
FlameShower
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Flame Shower
-
-

Actions
-


Set FlameShowerLoc = (Target point of ability being cast)
-


Set FlameShowerLevel = (Level of Flame Shower for (Casting unit))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Flame Shower for (Casting unit)) Equal to 1
-
-



Then - Actions
-




Special Effect - Create a special effect at FlameShowerLoc using Abilities\Spells\Human\FlameStrike\FlameStrikeTarget.mdl
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 220.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 2.00) damage of attack type Spells and damage type Universal
-




Wait 0.50 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 220.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 2.00) damage of attack type Spells and damage type Universal
-




Special Effect - Destroy (Last created special effect)
-




Custom script: call RemoveLocation(udg_FlameShowerLoc)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Flame Shower for (Casting unit)) Equal to 2
-
-



Then - Actions
-




Special Effect - Create a special effect at FlameShowerLoc using Abilities\Spells\Human\FlameStrike\FlameStrikeTarget.mdl
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 240.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 3.00) damage of attack type Spells and damage type Universal
-




Wait 0.50 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 240.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 3.00) damage of attack type Spells and damage type Universal
-




Wait 0.50 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 240.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 3.00) damage of attack type Spells and damage type Universal
-




Special Effect - Destroy (Last created special effect)
-




Custom script: call RemoveLocation(udg_FlameShowerLoc)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Flame Shower for (Casting unit)) Equal to 3
-
-



Then - Actions
-




Special Effect - Create a special effect at FlameShowerLoc using Abilities\Spells\Human\FlameStrike\FlameStrikeTarget.mdl
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 260.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 4.00) damage of attack type Spells and damage type Universal
-




Wait 0.35 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 260.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 4.00) damage of attack type Spells and damage type Universal
-




Wait 0.35 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 260.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 4.00) damage of attack type Spells and damage type Universal
-




Wait 0.35 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 260.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 4.00) damage of attack type Spells and damage type Universal
-




Special Effect - Destroy (Last created special effect)
-




Custom script: call RemoveLocation(udg_FlameShowerLoc)
-
-



Else - Actions
-




Do nothing
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Flame Shower for (Casting unit)) Equal to 4
-
-



Then - Actions
-




Special Effect - Create a special effect at FlameShowerLoc using Abilities\Spells\Human\FlameStrike\FlameStrikeTarget.mdl
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 280.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 5.00) damage of attack type Spells and damage type Universal
-




Wait 0.35 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 280.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 5.00) damage of attack type Spells and damage type Universal
-




Wait 0.35 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 280.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 5.00) damage of attack type Spells and damage type Universal
-




Wait 0.35 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 280.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 5.00) damage of attack type Spells and damage type Universal
-




Wait 0.35 seconds
-




Unit - Cause (Casting unit) to damage circular area after 0.50 seconds of radius 280.00 at FlameShowerLoc, dealing (((Real(WillStr)) x ((Real(FlameShowerLevel)) x 3.00)) / 5.00) damage of attack type Spells and damage type Universal
-




Special Effect - Destroy (Last created special effect)
-




Custom script: call RemoveLocation(udg_FlameShowerLoc)
-
-



Else - Actions
-




Do nothing
-
-
-
-
Last edited:





So I'm making that mistake for 3 years now?? Thanks for the correction Bribe