I am creating a game in which enemies are spawned in lanes to defend a castle. Particularly X Hero Siege from WC3 if anyone remembers it. But I need the game to somehow recognize how many players are in the game and therefore how many lanes to start with being open. I've messed around in the trigger editor with 'active players' vs 'all players' and others but cant figure out how to have the number of (human) players determine the initial open lane count. I must be missing something fairly simple, please help!
I tried this, and when I have a unit for my player in, only lane 1 works, which is correct. But when I add a unit for player 2, only one lane works still, whereas 2 should be.. Will this change and work correctly when i actually publish the game and I just have to deal with it in the editing phase?
There has to be a human in player 2's slot for it to work. It might also work with a computer if you set the player properties to Computer for player 2 (not sure about that one though) or if you make a lobby on bnet and set player 2 to a computer.
I am creating a game in which enemies are spawned in lanes to defend a castle. Particularly X Hero Siege from WC3 if anyone remembers it. But I need the game to somehow recognize how many players are in the game and therefore how many lanes to start with being open. I've messed around in the trigger editor with 'active players' vs 'all players' and others but cant figure out how to have the number of (human) players determine the initial open lane count. I must be missing something fairly simple, please help!
The function you want is Number of Players in Player Group, with the Player Group being Active Players.
@BasharTeg: Go
I tried this, and when I have a unit for my player in, only lane 1 works, which is correct. But when I add a unit for player 2, only one lane works still, whereas 2 should be.. Will this change and work correctly when i actually publish the game and I just have to deal with it in the editing phase?
There has to be a human in player 2's slot for it to work. It might also work with a computer if you set the player properties to Computer for player 2 (not sure about that one though) or if you make a lobby on bnet and set player 2 to a computer.
@BasharTeg: Go
That makes sense, thanks! Ill probably publish it to test and make sure