Long story short, I have a dialog for each player who is playing. If the Ready button is pressed, the Variable "Ready Count" is increased by 1.
And once it matches the variable value of "Player Number" (which contains the number of all Active Players), the game will start.
But the problem is that Spectators and Referees are apparently also considered Active Players. There is no dialog and thus no Ready Button for them.
Once the playing players made their selection, the game still will not start.
How can I fix this? How can I make this function ignore spectators and referees?
Hope you can help me. ;
I tried it with 'Attribute Player Value' functions.
And added a trigger that automatically increases the Variable 'Ready Count' by 1, if the Participant Role == Watcher or if the Controller Value == Computer.
The main concept is:
Each CPU player or watcher automatically increases the Variable 'Ready Count' by 1.
Each human player need to hit READY to increase it.
Once it matches the Number of Active Players, the game starts.
Wouldn't it be simpler to use a timer to close the remaining dialogs and run the trigger
instead of using a variable matching a value to run the trigger?
hmm this is for some sort of wave thing right?
You could try using The Comparison "Race of player"
Cause I check theres Terran, Protoss, Zerg and Neutral
If that doesn't work, maybe a spectator would have special alliances, and you can check that instead
Run a loop and check player status. If the player status is 'playing' increment variable 'total_players' +1. Then when the same number of playersas 'total_players' have hit ready, your good to go. Maybe that will work?
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
I believe theres a different set of player values you need to look at .... "active" and "has not left" are not relevant to what the player is in game.... just that the player is in the game.
Maybe if you explain how your setting players to be observers such as in the lobby. Maybe someone here has an idea how to loop through all players and pick out which ones are "observers" and "referees"
Run a loop and check player status. If the player status is 'playing' increment variable 'total_players' +1. Then when the same number of playersas 'total_players' have hit ready, your good to go. Maybe that will work?
Tried it out and it doesn't work. Sorry. :(
Man, such a complicated riddle...
Quote:
Maybe if you explain how your setting players to be observers such as in the lobby.
Well, the player settings (Player, CPU, Spectator, etc.) are all determined in the lobby.
The game works fine without specs and AI's tho.
Tried "Controller of player" actions too. Still no success. :(
Okay. I have found a bug!
Long story short, I have a dialog for each player who is playing. If the Ready button is pressed, the Variable "Ready Count" is increased by 1.
And once it matches the variable value of "Player Number" (which contains the number of all Active Players), the game will start.
But the problem is that Spectators and Referees are apparently also considered Active Players. There is no dialog and thus no Ready Button for them.
Once the playing players made their selection, the game still will not start.
How can I fix this? How can I make this function ignore spectators and referees?
Hope you can help me. ;
BUMP! Come on, help me plz. I am desperate. :(
I tried it with 'Attribute Player Value' functions.
And added a trigger that automatically increases the Variable 'Ready Count' by 1, if the Participant Role == Watcher or if the Controller Value == Computer.
The main concept is:
Each CPU player or watcher automatically increases the Variable 'Ready Count' by 1.
Each human player need to hit READY to increase it.
Once it matches the Number of Active Players, the game starts.
But it doesn't work... :(
Enlighten me, please!
Wouldn't it be simpler to use a timer to close the remaining dialogs and run the trigger instead of using a variable matching a value to run the trigger?
hmm this is for some sort of wave thing right?
You could try using The Comparison "Race of player" Cause I check theres Terran, Protoss, Zerg and Neutral
If that doesn't work, maybe a spectator would have special alliances, and you can check that instead
There is a condition checking the player status, you can check is playing and spectating i would assume. I do not remember.
Run a loop and check player status. If the player status is 'playing' increment variable 'total_players' +1. Then when the same number of playersas 'total_players' have hit ready, your good to go. Maybe that will work?
I believe theres a different set of player values you need to look at .... "active" and "has not left" are not relevant to what the player is in game.... just that the player is in the game.
Maybe if you explain how your setting players to be observers such as in the lobby. Maybe someone here has an idea how to loop through all players and pick out which ones are "observers" and "referees"
Tried it out and it doesn't work. Sorry. :(
Man, such a complicated riddle...
Well, the player settings (Player, CPU, Spectator, etc.) are all determined in the lobby.
The game works fine without specs and AI's tho.
Tried "Controller of player" actions too. Still no success. :(