- Joined
- Jul 25, 2009
- Messages
- 3,091
Why is this not working? It creates the proper amount of units on the first use on a wounded squad, but it fails to put them in the same squad.
The squads are cached by an integer, each squad has a single custom value for the entire squad, so squad 1's custom values is X, squad 2's is Y.
A triggerer will understand how it's supposed to work, and hopefully why it's not.
Show me what this should look like...
The squads are cached by an integer, each squad has a single custom value for the entire squad, so squad 1's custom values is X, squad 2's is Y.
A triggerer will understand how it's supposed to work, and hopefully why it's not.
Show me what this should look like...
-
Reinforce
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Reinforce
-
Actions
- Set TempUGroup[1] = (Units within 100.00 of (Target point of ability being cast) matching (((Matching unit) is A structure) Equal to False))
-
Unit Group - Pick every unit in TempUGroup[1] and do (Actions)
-
Loop - Actions
-
For each (Integer A) from 0 to ((Point-value of (Picked unit)) - (Number of units in (Units within 100.00 of (Target point of ability being cast) matching ((Custom value of (Matching unit)) Equal to (Custom value of (Picked unit)))))), do (Actions)
-
Loop - Actions
- Unit - Create ((Point-value of (Unit-type of (Picked unit))) - (Number of units in (Units in (Playable map area) matching (((Custom value of (Matching unit)) Equal to (Custom value of (Picked unit))) and (((Matching unit) is alive) Equal to True))))) (Unit-type of (Picked unit)) for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing 270.00 degrees
- Unit - Set the custom value of (Last created unit) to (Custom value of (Picked unit))
-
Loop - Actions
-
For each (Integer A) from 0 to ((Point-value of (Picked unit)) - (Number of units in (Units within 100.00 of (Target point of ability being cast) matching ((Custom value of (Matching unit)) Equal to (Custom value of (Picked unit)))))), do (Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TempUGroup[1])
-
Events