- Joined
- Jul 19, 2007
- Messages
- 818
I have an ability in my map that's called "Split Cold Arrows" but it doesn't seems to do the damage I want. I want it to do 100/200/300 + the caster's raw agility in damage but it doesn't seems to work for level 2 and 3. It works fine in level 1 with 100 + caster's raw agility but it seems like the trigger is ignoring the "x level of Split Cold Arrows for caster". How can I solve it?
-
Split Cold Arrows
- Events
- Conditions
-
Actions
- Set VariableSet Caster = (Triggering unit)
- Set VariableSet Target = (Target unit of ability being cast)
- Set VariableSet TempLoc = (Position of Caster)
- Set VariableSet TempLoc2 = (Position of Target)
- Set VariableSet 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 VariableSet TempReal = ((Real((Agility of Caster (Include bonuses)))) + (100.00 x (Real((Level of Split Cold Arrows for Faramir 0232 <gen>)))))
-
Else - Actions
- Set VariableSet TempReal = ((Real((Agility of Caster (Include bonuses)))) + (100.00 x (Real((Level of Split Cold Arrows for Faramir 0232 <gen>)))))
-
If - Conditions
- Set VariableSet 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 VariableSet 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 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)