what should i do if i wanted to kill/destroy all the units of player 1 ?
i'm pretty sure its "Kill unit" -action, but i'm not sure how to use it
the closest i come is :
kill ( unit 1 from ( idle units for player 1 ) )
and its not working
game information:
5 seconds in the game a unit for player 1 is created and a unit for player 2 is created. When all of player 2 units is dead, player 1 units should automaticly die too.
event: Player 2 Supplies Used changes not sure if "supplies used" is the correct one to use
condition: (Player 2 Supplies Used) == 0 not sure here either
action: "Unit kill all units owned by player 1" is what i wish
i had been trying to figgure this out for about 15 minutes, and then 30 seconds after i posted my question i figgured it out myself ( as always ) -.- but thanks anyways :D
<<quote 167558>>event: Player 2 Supplies Used changes not sure if "supplies used" is the correct one to use
condition: (Player 2 Supplies Used) == 0 not sure here either
<</quote>>
That would work, but a better one is:
EVENT: Any unit dies
CONDITIONS: And
Conditions
(Owner of (Triggering unit)) == 2
(Number of Living units in (Any units in (Entire map) owned by player 2 matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
what should i do if i wanted to kill/destroy all the units of player 1 ?
i'm pretty sure its "Kill unit" -action, but i'm not sure how to use it the closest i come is : kill ( unit 1 from ( idle units for player 1 ) )
and its not working
game information: 5 seconds in the game a unit for player 1 is created and a unit for player 2 is created. When all of player 2 units is dead, player 1 units should automaticly die too.
event: Player 2 Supplies Used changes not sure if "supplies used" is the correct one to use
condition: (Player 2 Supplies Used) == 0 not sure here either
action: "Unit kill all units owned by player 1" is what i wish
Thank you :)
i had been trying to figgure this out for about 15 minutes, and then 30 seconds after i posted my question i figgured it out myself ( as always ) -.- but thanks anyways :D
<<quote 167558>>
event: Player 2 Supplies Used changes not sure if "supplies used" is the correct one to usecondition: (Player 2 Supplies Used) == 0 not sure here either <</quote>>
That would work, but a better one is:
EVENT: Any unit dies
CONDITIONS: And
Conditions
(Owner of (Triggering unit)) == 2
(Number of Living units in (Any units in (Entire map) owned by player 2 matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
how do i do the:
(Number of Living units in (Any units in (Entire map) owned by player 2 matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
?? what condition to use ? :I
Its counting Number of unit in unit group, then u set the unit group to Unit in region matching conditions, etc... End value is an integer