- Joined
- Feb 8, 2015
- Messages
- 93
Not sure if the title is misleading, but I'll make a drawing to demonstrate the issue.
I'm trying to get Holy Light special effects (actually just a unit with the holy light model) to spawn in seven lines of 3 effects in a circle (see drawing in Spoiler)
A Hero casts a point-targeted spell, and the effects are supposed to emnate out of that point in a circle.
Nothing displays however...
I'm trying to run a loop inside a loop with Integer A/B - is that an issue?
The trigger itself is fairly lengthy, but I've just cut out all but the important bit (the bit that's not working)
I'm trying to get Holy Light special effects (actually just a unit with the holy light model) to spawn in seven lines of 3 effects in a circle (see drawing in Spoiler)
A Hero casts a point-targeted spell, and the effects are supposed to emnate out of that point in a circle.
Nothing displays however...
I'm trying to run a loop inside a loop with Integer A/B - is that an issue?
The trigger itself is fairly lengthy, but I've just cut out all but the important bit (the bit that's not working)
-
DEHero Splendour
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to DarkElf: Splendour (GrandMissionaryW - Channel)
-
Actions
- Set Splendour_Tempp1 = (Target point of ability being cast)
- -------- Flashy Effects (initially resets angle) --------
- Set Splendour_ang = 0.00
-
For each (Integer A) from 1 to 7, do (Actions)
-
Loop - Actions
- -------- Moves the angle to the next stage, and resets the distance --------
- Set Splendour_ang = (Splendour_ang + (360.00 / 7.00))
- Set Splendour_dist = 100.00
-
For each (Integer B) from 1 to 3, do (Actions)
-
Loop - Actions
- -------- Creates 3 effects in a line given by the angle, and with increasing dist --------
- Set Tempp2 = (Splendour_Tempp1 offset by Splendour_dist towards Splendour_ang degrees)
- Set Splendour_dist = (Splendour_dist + 100.00)
- Unit - Create 1 Dummy Holy Light Effect for Neutral Passive at Splendour_Tempp2 facing Default building facing degrees
- Unit - Add a 0.98 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_Splendour_Tempp2)
-
Loop - Actions
-
Loop - Actions
- -------- Cleanup --------
- Custom script: call RemoveLocation(udg_Splendour_Tempp1)
- Custom script: call RemoveLocation(udg_Splendour_Tempp2)
-
Events