- Joined
- Jul 8, 2008
- Messages
- 150
How can I exist a loop when Ability_Cast = Ability_Learn[Ability_Integer]
This is what I have right now:
This is what I have right now:
-
Allocating Skills
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


And - All (Conditions) are true
-



Conditions
-




((Triggering unit) is A Hero) Equal to True
-




Ability_Points[(Player number of (Owner of (Triggering unit)))] Greater than or equal to 1
-
-
-
-

Actions
-


Set Ability_Cast = (Ability being cast)
-


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



Loop - Actions
-




Set Ability_Integer = (Integer A)
-




Custom script: exitwhen (GetAbilityId(_udg_Ability_Cast) == udg_Ability_Learn[udg_Ability_Integer])
-
-
-
-





