MorbazanRhot
New Member
- Reaction score
- 7
I have a pretty simple question. Why isn't the Loop executing more than once when I cast this spell (I've tried changing the number to 2, and to something based off of the level of the spell, but regardless it always runs just once and ends)? +rep for anything that helps me fix this.
Trigger:
- Dark
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Dark
- Actions
- Set TempLoc9 = (Target point of ability being cast)
- Set TempLoc10 = (Target point of ability being cast)
- Special Effect - Create a special effect at TempLoc9 using Abilities\Spells\Other\Drain\DrainCaster.mdl
- Set SpecialEffect[1] = (Last created special effect)
- For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- Wait 1.00 game-time seconds
- Special Effect - Create a special effect at TempLoc10 using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Create 1 Dummy for (Owner of TheChanneler) at TempLoc9 facing Default building facing (270.0) degrees
- Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
- Unit - Add Dark(dummy) to (Last created unit)
- Unit - Set level of Dark(dummy) for (Last created unit) to (Level of Dark for (Triggering unit))
- Set GroupVar4 = (Units within 900.00 of TempLoc9 matching ((((Owner of (Matching unit)) is an enemy of (Triggering player)) Equal to True) and (((Matching unit) is alive) Equal to True)))
- Set UnitVarPicked2 = (Random unit from GroupVar4)
- Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning UnitVarPicked2
- Custom script: call DestroyGroup (udg_GroupVar4)
- Loop - Actions
- Special Effect - Destroy SpecialEffect[1]
- Custom script: call RemoveLocation (udg_TempLoc9)
- Custom script: call RemoveLocation (udg_TempLoc10)
- Events