Goliath520
New Member
- Reaction score
- 0
alright, I have a certain region, and I have part of this trigger working. what I want is for a unit selected to be added to a unit group only if the unit is in a certain region and it is not a building. this is what the trigger looks like right now. I am only working on player 1's trigger right now them I will work on the other one.
Trigger:
- selection
- Events
- Time - Every 0.20 seconds of game time
- Conditions
- Actions
- Set playerselection[2] = (Units currently selected by Player 6 (Orange))
- Set playerselection[1] = (Units currently selected by Player 1 (Red))
- Unit Group - Pick every unit in playerselection[1] and do (Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by (Player((Player number of (Owner of (Picked unit))))) matching (((Picked unit) is A structure) Equal to True)) and do (Actions)
- Loop - Actions
- Unit Group - Remove (Picked unit) from playerselection[1]
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by (Player((Player number of (Owner of (Picked unit))))) matching (((Picked unit) is A structure) Equal to True)) and do (Actions)
- Loop - Actions
- Unit Group - Pick every unit in playerselection[2] and do (Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by Player 6 (Orange) matching (((Picked unit) is A structure) Equal to True)) and do (Actions)
- Loop - Actions
- Unit Group - Remove (Picked unit) from playerselection[2]
- Loop - Actions
- Unit Group - Pick every unit in (Units owned by Player 6 (Orange) matching (((Picked unit) is A structure) Equal to True)) and do (Actions)
- Loop - Actions
- Unit Group - Pick every unit in playerselection[1] and do (Actions)
- Loop - Actions
- Region - Center Region 042 <gen> on (Position of (Picked unit))
- Loop - Actions
- Unit Group - Pick every unit in playerselection[2] and do (Actions)
- Loop - Actions
- Region - Center Region 043 <gen> on (Position of (Picked unit))
- Loop - Actions
- Events