Event:Any unit dies Cond:If triggering unit type == bunker Action: End game with victory for allies of triggering player End game with defeat for enemies of triggering player.
I guess player 1 n 2 are allies and 3 n 4 are their enemies. If not, do a "if the else" to check the player.
If you want to save the buner for some reason you can put it in a unit variable with an array. for example:
Create bunker for player X and point Y... Set variable: Bunker[player] == last created unit
Team 2 has to lose both of their bunkers to active the Victory condition. For Team 1.
Player 3 loses his bunker and he loses. Player 4 doesn't.
Your scenario works but it's only if there is one bunker per team. At least to my understanding.
I am pretty new though so a lot of things are lost on me :(
Hm that last part confused me. So player 1 and 2 are in team 1? and player 3 and 4 are in team 2. If team 2 loses both bunker, team 1 wins, and if if team 1 loses both, team 2 wins? Then i would make 2 unit groups, one for team 1's bunkers and one for team 2's and call them bunker1 and bunker2. Then:
Event: Any unit dies
Condition:Triggering unit type == bunker
Action: If then else If: number of units in bunker1 == 0 then: end game in victory for player 3 and 4 If: number of units in bunker2 == 0 then: end game in victory for player 1 and 2
Sounds like your in the right direction. Just to clarify, depending on your situation you will most likely not need varialbles/array.
The condition too should look something like.
Number of living units of unit type(bunker) owned by (players on team 1or2).
or owned might be alliances too.
How would a trigger look if.
I wanted Victory for player 1 and player 2. IF player 3 and player 4 Lose their bunkers. Each player has their own bunker.
I get how to do it if the unit is already in the game. However this unit is created only assuming the player is in the game.
So I can't pick it from a Value list.
I also then want, Defeat for player 3 and player 4 When their bunkers are lost.
Thanks! :)
@PreTenD: Go
For the victory/defeat...
Event:Any unit dies
Cond:If triggering unit type == bunker
Action: End game with victory for allies of triggering player
End game with defeat for enemies of triggering player.
I guess player 1 n 2 are allies and 3 n 4 are their enemies. If not, do a "if the else" to check the player.
If you want to save the buner for some reason you can put it in a unit variable with an array. for example:
Create bunker for player X and point Y...
Set variable: Bunker[player] == last created unit
There are a total of 4 bunkers.
1 for each player.
Team 2 has to lose both of their bunkers to active the Victory condition. For Team 1. Player 3 loses his bunker and he loses. Player 4 doesn't.
Your scenario works but it's only if there is one bunker per team. At least to my understanding. I am pretty new though so a lot of things are lost on me :(
@PreTenD: Go
Hm that last part confused me. So player 1 and 2 are in team 1? and player 3 and 4 are in team 2. If team 2 loses both bunker, team 1 wins, and if if team 1 loses both, team 2 wins? Then i would make 2 unit groups, one for team 1's bunkers and one for team 2's and call them bunker1 and bunker2. Then:
Event: Any unit dies
Condition:Triggering unit type == bunker
Action: If then else
If: number of units in bunker1 == 0
then: end game in victory for player 3 and 4
If: number of units in bunker2 == 0
then: end game in victory for player 1 and 2
I put that in. I will test it tomorrow and let you know. It looks like it makes sense though. Thanks! :)
Sounds like your in the right direction. Just to clarify, depending on your situation you will most likely not need varialbles/array.
The condition too should look something like. Number of living units of unit type(bunker) owned by (players on team 1or2). or owned might be alliances too.