- Joined
- May 7, 2008
- Messages
- 346
EDIT: Case closed, you can find the solution by reading the thread.
Hi gang,
I've been stuck on this problem of mine for a while and I guess I need help again
What I'm trying to accomplish is that after a certain period of time, I select every unit owned by player 1 and moving them in a certain region.
I want to do this for every player, however every players gets moved to a different region.
Example below:
This works, however it moves buildings too, which I don't want. I only need units like Footman, Knights, Heroes, etc (anything other than towers or buildings basically).
Tried giving the buildings mechanical classification, doesn't work either, they still get moved.
Hi gang,
I've been stuck on this problem of mine for a while and I guess I need help again
What I'm trying to accomplish is that after a certain period of time, I select every unit owned by player 1 and moving them in a certain region.
I want to do this for every player, however every players gets moved to a different region.
Example below:
-
MovePlayers
-
Events
-
Conditions
-
Actions
-
Set VariableSet RedRegion = (Center of RedPlayer <gen>)
-
Set VariableSet BlueRegion = (Center of BluePlayer <gen>)
-
Set VariableSet TealRegion = (Center of TealPlayer <gen>)
-
Set VariableSet PurpleRegion = (Center of PurplePlayer <gen>)
-
Set VariableSet YellowRegion = (Center of YellowPlayer <gen>)
-
Set VariableSet GreenRegion = (Center of GreenPlayer <gen>)
-
-------- - --------
-
Set VariableSet Player1Charge = (Units owned by Player 1 (Red) matching (((Picked unit) is A structure) Equal to False).)
-
Set VariableSet Player2Charge = (Units owned by Player 2 (Blue) matching (((Picked unit) is A structure) Equal to False).)
-
Set VariableSet Player3Charge = (Units owned by Player 3 (Teal) matching (((Picked unit) is A structure) Equal to False).)
-
Set VariableSet Player4Charge = (Units owned by Player 4 (Purple) matching (((Picked unit) is A structure) Equal to False).)
-
Set VariableSet Player5Charge = (Units owned by Player 5 (Yellow) matching (((Picked unit) is A structure) Equal to False).)
-
Set VariableSet Player7Charge = (Units owned by Player 7 (Green) matching (((Picked unit) is A structure) Equal to False).)
-
-------- - --------
-
Set VariableSet Point = (Center of KingMoveCinematic <gen>
-
Unit Group - Pick every unit in Player1Charge and do (Unit - Move (Picked unit) instantly to RedRegion, facing Point)
-
Unit Group - Pick every unit in Player2Charge and do (Unit - Move (Picked unit) instantly to BlueRegion, facing Point)
-
Unit Group - Pick every unit in Player3Charge and do (Unit - Move (Picked unit) instantly to TealRegion, facing Point)
-
Unit Group - Pick every unit in Player4Charge and do (Unit - Move (Picked unit) instantly to PurpleRegion, facing Point)
-
Unit Group - Pick every unit in Player5Charge and do (Unit - Move (Picked unit) instantly to YellowRegion, facing Point)
-
Unit Group - Pick every unit in Player7Charge and do (Unit - Move (Picked unit) instantly to GreenRegion, facing Point)
-
-------- - --------
-
Custom script: call RemoveLocation(udg_RedRegion)
-
Custom script: call RemoveLocation(udg_BlueRegion)
-
Custom script: call RemoveLocation(udg_TealRegion)
-
Custom script: call RemoveLocation(udg_PurpleRegion)
-
Custom script: call RemoveLocation(udg_YellowRegion)
-
Custom script: call RemoveLocation(udg_GreenRegion)
-
-------- - --------
-
Custom script: call DestroyGroup(udg_Player1Charge)
-
Custom script: call DestroyGroup(udg_Player2Charge)
-
Custom script: call DestroyGroup(udg_Player3Charge)
-
Custom script: call DestroyGroup(udg_Player4Charge)
-
Custom script: call DestroyGroup(udg_Player5Charge)
-
Custom script: call DestroyGroup(udg_Player7Charge)
-
-------- - --------
-
Custom script: call RemoveLocation(udg_Point)
-
-------- - --------
-
Custom script: call DestroyTrigger(GetTriggeringTrigger())
-
-
This works, however it moves buildings too, which I don't want. I only need units like Footman, Knights, Heroes, etc (anything other than towers or buildings basically).
Tried giving the buildings mechanical classification, doesn't work either, they still get moved.
Last edited by a moderator: