The "-1" at end was becouse there was also computer player active.
Then i had trigger doing this random action to lets say "player (example1)"
It all seemed cool, but there is possibility that 1 or more of 12 players will i.e. leave during map loading screen and then the trigger may fail... If player no.7 leaves, player no.8 is not becoming player7... so when random integer between 1 and 11 -1 may still result in: 7... and this player slot is not active anymore :/
Anyone have some idee how make this work without need to have fullhouse at the start of the game? Maybe there is some way to choose number between number of players that are human controlled and active?
edit:
maybe there is a way to just repeat trigger if:
player(example1) =/= player from group (active players)?
Could you show me the sample in map file please? Its hard for me to find all these things in the editor... would be easier to write it myself than to find it there :S
Ah apropos controllers... to be perfectly sure how they are working:
1.When you put noone on the slot in lobby and in map's player properties it is set to "user" then when map starts what kind of controller this slot have?
2.When player leaves during loading screen the slot's controllers changing to none?
3.When player leaves after the game starts the slot's controllers changing to none?
Hello.
I have tryied to do trigger for random player this way:
I have variable called example1 with default value 0, and at map start there was trigger:
The "-1" at end was becouse there was also computer player active. Then i had trigger doing this random action to lets say "player (example1)"
It all seemed cool, but there is possibility that 1 or more of 12 players will i.e. leave during map loading screen and then the trigger may fail... If player no.7 leaves, player no.8 is not becoming player7... so when random integer between 1 and 11 -1 may still result in: 7... and this player slot is not active anymore :/
Anyone have some idee how make this work without need to have fullhouse at the start of the game? Maybe there is some way to choose number between number of players that are human controlled and active?
edit: maybe there is a way to just repeat trigger if: player(example1) =/= player from group (active players)?
Will that work?
thanks in advance Muniek
You can use a condition for that Active players are human players and computers. So check if the active player is a human aswel.
@SweetZombieJesus: Go
Could you show me the sample in map file please? Its hard for me to find all these things in the editor... would be easier to write it myself than to find it there :S
edit: ahhh found it :) thanks a lot
@Azzaaer: Go
Ah apropos controllers... to be perfectly sure how they are working:
1.When you put noone on the slot in lobby and in map's player properties it is set to "user" then when map starts what kind of controller this slot have?
2.When player leaves during loading screen the slot's controllers changing to none?
3.When player leaves after the game starts the slot's controllers changing to none?
Feel free to do testing though, its a little complicated sometimes
@SweetZombieJesus: Go
Thanks :) I will. Btw. would you like to help me test my new map? :)
If im not mistaken there is a whole thread of people who are will to test; if u need people :D