- Joined
- Jul 19, 2007
- Messages
- 824
I can't see what's wrong with this triggered ability.. Anyone please can help??
Split Shot Ability
The Hero shoots a flurry of powerful cold arrows that damages the target enemy unit and all enemy units around the target enemy based on his agility and slowing their movement speed and attack rate for 5 seconds.|n|n|cffffcc00Level 1|r - 4x agility damage. Slows movement speed by 30% and attack rate by 25%. |n|n|cffffcc00Level 2|r - 5x agility damage. Slows movement speed by 40% and attack rate by 35%. |n|n|cffffcc00Level 3|r - 6x agility damage. Slows movement speed by 50% and attack rate by 45%.|n|n|cffFFFF00Cast Range: |r 1000|n|cff0000FFMana Cost: |r 140/160/180|n|cff99ccffCooldown: |r 50/40/30 seconds.
The triggers for the ability.
Split Shot Ability
The Hero shoots a flurry of powerful cold arrows that damages the target enemy unit and all enemy units around the target enemy based on his agility and slowing their movement speed and attack rate for 5 seconds.|n|n|cffffcc00Level 1|r - 4x agility damage. Slows movement speed by 30% and attack rate by 25%. |n|n|cffffcc00Level 2|r - 5x agility damage. Slows movement speed by 40% and attack rate by 35%. |n|n|cffffcc00Level 3|r - 6x agility damage. Slows movement speed by 50% and attack rate by 45%.|n|n|cffFFFF00Cast Range: |r 1000|n|cff0000FFMana Cost: |r 140/160/180|n|cff99ccffCooldown: |r 50/40/30 seconds.
The triggers for the ability.
-
Init
-
Events
- Map initialization
- Conditions
-
Actions
- Hashtable - Create a hashtable
- Set SpellHash = (Last created hashtable)
- Custom script: call SaveTriggerHandle(udg_SpellHash, StringHash("triggers"), 'A05P', gg_trg_Split_Cold_Arrows)
-
Events
-
Call Spells
-
Events
- Unit - A unit Starts the effect of an ability
- Conditions
-
Actions
- Custom script: call TriggerExecute(LoadTriggerHandle(udg_SpellHash, StringHash("triggers"), GetSpellAbilityId()))
-
Events
-
Split Cold Arrows
- Events
- Conditions
-
Actions
- Set Caster = (Triggering unit)
- Set Target = (Target unit of ability being cast)
- Set TempLoc = (Position of Caster)
- Set TempLoc2 = (Position of Target)
- Set TempGroup = (Units within 250.00 of TempLoc2 matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Triggering playe
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in TempGroup) Greater than 1
-
Then - Actions
- Set TempReal = ((Real((Agility of Caster (Include bonuses)))) x ((Real((Level of Split Cold Arrows for Caster))) + 3.00))
-
Else - Actions
- Set TempReal = ((Real((Agility of Caster (Include bonuses)))) x ((Real((Level of Split Cold Arrows for Caster))) + 3.00))
-
If - Conditions
- Set TempInt2 = (Level of Split Cold Arrows for Caster)
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
- Unit - Create 1 Dummy Attack for (Triggering player) at TempLoc facing Default building facing degrees
- Set TempUnit = (Last created unit)
- Unit - Add Dummy Damage to TempUnit
- Unit - Set level of Dummy Damage for TempUnit to (Integer(TempReal))
- Unit - Add Split Cold Arrows Dummy to TempUnit
- Unit - Set level of Split Cold Arrows Dummy for TempUnit to TempInt2
- Unit - Add a 1.00 second Generic expiration timer to TempUnit
- Unit - Order TempUnit to Neutral Naga Sea Witch - Activate Frost Arrows
- Unit - Order TempUnit to Attack Once (Picked unit)
-
Loop - Actions
- Custom script: call RemoveLocation (udg_TempLoc)
- Custom script: call RemoveLocation (udg_TempLoc2)
- Custom script: call DestroyGroup (udg_TempGroup)