Ok guys I will try be as clear as I can.
What I want is, when the unit "king" dies, that triggering player changes to team 2 and gets 2 builders spawned at a certain location they are also allied with every other player in team 2 and all of team 2 are allied with them.
Keep in mind the player might be allied with one or more players from team 1 (its optional).
here's an example:
player 1's king dies
he loses control of all his units
he gets made allies with all of team 2
two builders spawn for him at team 2's base
I would like this adding onto my existing trigger where they lose troops, this trigger is below.
the "has been defeated!" message will be changed but that isn't really relevant right now ^^
Thanks in advance guys
What I want is, when the unit "king" dies, that triggering player changes to team 2 and gets 2 builders spawned at a certain location they are also allied with every other player in team 2 and all of team 2 are allied with them.
Keep in mind the player might be allied with one or more players from team 1 (its optional).
here's an example:
player 1's king dies
he loses control of all his units
he gets made allies with all of team 2
two builders spawn for him at team 2's base
I would like this adding onto my existing trigger where they lose troops, this trigger is below.
Trigger:
- Defeat Human
- Events
- Unit - A unit owned by Player 1 (Red) Dies
- Unit - A unit owned by Player 2 (Blue) Dies
- Unit - A unit owned by Player 3 (Teal) Dies
- Unit - A unit owned by Player 4 (Purple) Dies
- Unit - A unit owned by Player 5 (Yellow) Dies
- Unit - A unit owned by Player 6 (Orange) Dies
- Unit - A unit owned by Player 7 (Green) Dies
- Unit - A unit owned by Player 8 (Pink) Dies
- Unit - A unit owned by Player 9 (Gray) Dies
- Unit - A unit owned by Player 10 (Light Blue) Dies
- Conditions
- (Unit-type of (Triggering unit)) Equal to King
- Actions
- Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
- Loop - Actions
- Game - Give all (Triggering player) units to the Neutral Victim player
- Loop - Actions
- Quest - Display to (All players) the Mission Failed message: ((Name of (Triggering player)) + has been defeated!)
- Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
- Events
the "has been defeated!" message will be changed but that isn't really relevant right now ^^
Thanks in advance guys