3v3v3v3 Win trigger

Drakethos

Preordered Sc2 ftw!
Reaction score
56
I have a map with 12 players and 4 teams. When i player looses his building, he looses all units and he gains sight of the whole map so he can watch. So i cant check to see if the player is there in the game. I need the easiest way to check which is the only surviving team. (Yes i searched and i couldn't find what i needed.)
 
D

DsD)Core(

Guest
Make an integer array, let's called it TeamAlive

Set TeamAlive[1] = Count players matching (Matching player controller equal to user) and (Matching player slot status equal to is playing)
The same for 2, 3, 4

If a player's building is killed, you set TeamAlive[X] to (TeamAlive[X] - 1)

That should point you in the right direction.
 

Drakethos

Preordered Sc2 ftw!
Reaction score
56
i made a count players but does the array count for each team so if a team is equal 0 then you beat him? Well id have to make team 1, 2 3 then 4 win 2 1 4 then 3 win ect. i guess thats not too bad.
edit: well adding the units to the group is a little of a pain though.
Edit: oh it was a player group, i used an integer, oh well that works too. Thanks it was in a pain in the ass though. My ass hurts now :D
 
D

DsD)Core(

Guest
Sorry for not responding anymore, had stuff to do then. Is it working now?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top