- Joined
- Aug 12, 2008
- Messages
- 350
This spell is Aqua Burst by -Berz-
I decided to use it for a hero in map. However, the trigger seems to be problematic after I alter it a bit. I search for ups and downs and yet I can't find out why did the cooldown for only Aqua Burst spell reset after casting. The other spells did not reset. At first, I thought I forgot to put the cooldown but somehow after I disabled the following trigger, the cooldown works (did not reset).
Here goes the trigger:
EDIT: All fixed just by adding Pause the unit and Unpause unit before and after the "Unit - Move AB_caster instantly to tempPoint" though I don't why. Here are the new triggers that works:
I decided to use it for a hero in map. However, the trigger seems to be problematic after I alter it a bit. I search for ups and downs and yet I can't find out why did the cooldown for only Aqua Burst spell reset after casting. The other spells did not reset. At first, I thought I forgot to put the cooldown but somehow after I disabled the following trigger, the cooldown works (did not reset).
Here goes the trigger:
[trigger=Aqua Burst]
Aqua Burst
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Aqua Burst
Actions
Set AB_caster = (Triggering unit)
Set tempPoint = (Target point of ability being cast)
Set AB_level = (Level of (Ability being cast) for AB_caster)
Set AB_AoE = (185.00 + (15.00 x (Real(AB_level))))
Set AB_damage = (50.00 + (50.00 x (Real(AB_level))))
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within AB_AoE of tempPoint matching (((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) is Magic Immune) Equal to False))) and ((((Matching unit) is alive) Equal to True) and ( and do (Actions)
Loop - Actions
Set tempPoint2 = (Position of (Picked unit))
Unit - Cause AB_caster to damage (Picked unit), dealing AB_damage damage of attack type Spells and damage type Normal
Special Effect - Create a special effect at tempPoint2 using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
Special Effect - Destroy (Last created special effect)
Unit - Move AB_caster instantly to tempPoint
Special Effect - Create a special effect attached to the origin of AB_caster using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_tempPoint)
Custom script: call RemoveLocation (udg_tempPoint2)
[/trigger]
Aqua Burst
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Aqua Burst
Actions
Set AB_caster = (Triggering unit)
Set tempPoint = (Target point of ability being cast)
Set AB_level = (Level of (Ability being cast) for AB_caster)
Set AB_AoE = (185.00 + (15.00 x (Real(AB_level))))
Set AB_damage = (50.00 + (50.00 x (Real(AB_level))))
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within AB_AoE of tempPoint matching (((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) is Magic Immune) Equal to False))) and ((((Matching unit) is alive) Equal to True) and ( and do (Actions)
Loop - Actions
Set tempPoint2 = (Position of (Picked unit))
Unit - Cause AB_caster to damage (Picked unit), dealing AB_damage damage of attack type Spells and damage type Normal
Special Effect - Create a special effect at tempPoint2 using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
Special Effect - Destroy (Last created special effect)
Unit - Move AB_caster instantly to tempPoint
Special Effect - Create a special effect attached to the origin of AB_caster using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_tempPoint)
Custom script: call RemoveLocation (udg_tempPoint2)
[/trigger]
EDIT: All fixed just by adding Pause the unit and Unpause unit before and after the "Unit - Move AB_caster instantly to tempPoint" though I don't why. Here are the new triggers that works:
[trigger=Aqua Burst]Aqua Burst
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Aqua Burst
Actions
Set tempUnit = (Triggering unit)
Set tempPoint = (Target point of ability being cast)
Set AB_level = (Level of (Ability being cast) for tempUnit)
Set AB_AoE = (185.00 + (15.00 x (Real(AB_level))))
Set AB_damage = (50.00 + (50.00 x (Real(AB_level))))
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within AB_AoE of tempPoint matching (((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) is Magic Immune) Equal to False))) and ((((Matching unit) is alive) Equal to True) and ( and do (Actions)
Loop - Actions
Set tempPoint2 = (Position of (Picked unit))
Unit - Cause tempUnit to damage (Picked unit), dealing AB_damage damage of attack type Spells and damage type Normal
Special Effect - Create a special effect at tempPoint2 using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_tempPoint2)
Unit - Pause tempUnit
Unit - Move tempUnit instantly to tempPoint
Unit - Unpause tempUnit
Animation - Play tempUnit's birth animation
Special Effect - Create a special effect attached to the origin of tempUnit using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_tempPoint)
[/trigger]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Aqua Burst
Actions
Set tempUnit = (Triggering unit)
Set tempPoint = (Target point of ability being cast)
Set AB_level = (Level of (Ability being cast) for tempUnit)
Set AB_AoE = (185.00 + (15.00 x (Real(AB_level))))
Set AB_damage = (50.00 + (50.00 x (Real(AB_level))))
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within AB_AoE of tempPoint matching (((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) is Magic Immune) Equal to False))) and ((((Matching unit) is alive) Equal to True) and ( and do (Actions)
Loop - Actions
Set tempPoint2 = (Position of (Picked unit))
Unit - Cause tempUnit to damage (Picked unit), dealing AB_damage damage of attack type Spells and damage type Normal
Special Effect - Create a special effect at tempPoint2 using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_tempPoint2)
Unit - Pause tempUnit
Unit - Move tempUnit instantly to tempPoint
Unit - Unpause tempUnit
Animation - Play tempUnit's birth animation
Special Effect - Create a special effect attached to the origin of tempUnit using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_tempPoint)
[/trigger]
Last edited: