LordXavier
TH.net Regular
- Reaction score
- 16
EDIT: solved, sorry for the post, but I figured it out thx to NewGen
I have a trigger where it sets a unit-group variable (temp_START_GROUP[(Player number of (Triggering player))]) and I don't know how to make a custom script destroy the group. I am trying to make this trigger MPI so I don't want to just make it temp_START_GROUP[1] or do a ton of If, Then, Else's. Is there anything that would work to make the script destroy the group [(Player number of (Triggering player))]? +rep
Edit: Here's the rest of the trigger
I have a trigger where it sets a unit-group variable (temp_START_GROUP[(Player number of (Triggering player))]) and I don't know how to make a custom script destroy the group. I am trying to make this trigger MPI so I don't want to just make it temp_START_GROUP[1] or do a ton of If, Then, Else's. Is there anything that would work to make the script destroy the group [(Player number of (Triggering player))]? +rep
Edit: Here's the rest of the trigger
Trigger:
- Events
- Player - Player 1 (Red) skips a cinematic sequence
- Player - The rest of them too
- Conditions
- Actions
- Set temp_START_GROUP[(Player number of (Triggering player))] = (Units owned by (Triggering player) matching (((Matching unit) is A town-hall type) Equal to True))
- Unit Group - Pick every unit in (temp_START_GROUP[(Player number of (Triggering player))] and do (Actions)
- Loop - Actions
- Camera - Pan camera for (Triggering player) to (Position of (Picked unit)) over 0.00 seconds
- Selection - Select (Picked unit) for (Player((Player number of (Triggering Player))))
- Loop - Actions
- Custom Script: call DestroyGroup (udg_temp_START_GROUP[need help here])