Trigger:
- Channeling
- Events
- Unit - A unit Begins channeling an ability
- Conditions
- (Ability being cast) Equal to Begin Channeling
- Actions
- Unit Group - Add (Triggering unit) to ChannelingUnits
- Unit - Add Aid to (Triggering unit)
- Unit - Add Sorcery to (Triggering unit)
- 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
- ((Triggering unit) is in ChannelingUnits) Equal to True
- Then - Actions
- Wait 1.00 seconds
- Unit - Create 1 CastingTimeTypes[(Integer A)] for (Owner of (Triggering unit)) at (Center of Char Select Region <gen>) facing Default building facing degrees
- Unit Group - Add (Last created unit) to CastingTimeGroup[(Player number of (Owner of (Triggering unit)))]
- Floating Text - Create floating text that reads (String((Number of units in CastingTimeGroup[(Player number of (Owner of (Triggering unit)))]))) above (Triggering unit) with Z offset 0.00, using font size 20.00, color (15.00%, 75.00%, 100.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 120.00 towards 90.00 degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.25 seconds
- Floating Text - Change the age of (Last created floating text) to 0.20 seconds
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Events
The For Loop doesn't keep going, it just stops at 1. Why is that?
I don't even have the 'A unit stops casting, remove from ChannelingUnits' trigger enabled, so I don't think the caster could be removed from the group.
Any suggestions?
Thanks!