- Joined
- Aug 3, 2008
- Messages
- 257
Hey so i'm workin on a spell that will on hit have a 10% chance on the first lvl 15% chance on the 2nd and 20% chance on the 3rd lvl. what it does is stack to 5. and for each stack it adds +5 agility and lasts only 10 seconds. uhm does anyone know how to set the trigger on this i've tried a few ways.
-
Advance Agility
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-

Actions
-


For each (Integer A) from 1 to 10, do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






((Attacking unit) has buff Advance Agility ) Equal to True
-






And - All (Conditions) are true
-







Conditions
-








((Attacked unit) belongs to an ally of (Owner of (Attacking unit))) Equal to False
-
-
-
-





Then - Actions
-






Set ASUnit = (Attacking unit)
-






Set ASAgi = (Agility of ASUnit (Exclude bonuses))
-






Hero - Modify Agility of ASUnit: Add 5
-






Trigger - Turn on Reset AS <gen>
-
-





Else - Actions
-






Wait 10.00 seconds
-






Hero - Modify Agility of ASUnit: Set to ASAgi
-






Trigger - Turn off (This trigger)
-
-
-
-
-
-


