Author Topic: Choosing Random Player  (Read 1107 times)

Im making a Game-mode just using events. Its sort of a Juggernaut Game-mode.

The Juggernaut is a Cloakman who is fully invisible and everyone has to find him and kill him.

Ok, I have two teams. Cloakman, and the Seekers.

Every round, I want it to choose a random player to be the Cloakman.

How can I do this? If there is events for It I would love to know.

I'm pretty sure this is possible using VCE somehow, but I'm not exactly sure how.

Crap can't modify.

Addition: Can you change the number of players for different teams in Team Death match Game-Mode? Like only 1 Player can be in Juggernaut and 10 can be in Seekers?

Crap can't modify.

Addition: Can you change the number of players for different teams in Team Death match Game-Mode? Like only 1 Player can be in Juggernaut and 10 can be in Seekers?

That, I know how to do.

In the team setup menu of TDM (where you change weapons and stuff) Change the sort weighting of the team you want to have more people on to the max number of players you're gonna have on your server minus one, and just manually move someone to the other team before then.

No, I want them to be randomly chosen without me, This is going to be a dedicated server


75 views and no helpful replies. Cmon....


BUMP I really need help on this please.

Have your game make a numbered list of everyone, excluding the Juggernaut, then use getRandom(%playerCount); to get a random one from that.

Have your game make a numbered list of everyone, excluding the Juggernaut, then use getRandom(%playerCount); to get a random one from that.

I need this to work automatically I have already said this above.

I need this to work automatically I have already said this above.
You obviously don't do much scripting. It can easily work automatically.

You obviously don't do much scripting. It can easily work automatically.

No, I'm not a scripting person.

But I would have to add a player to the list when they join (Am I right?)



I haven't thought this all the way through but I know how you can have events randomly select things.

Let's say you want events to randomly select one option out of 8 different options. Somewhere in the build, hidden in a place where no one will find it, place a 1x8 brick, and parallel to it place 8 1x1 bricks. Have the 1x8 brick fire an ordinary gun bullet in the direction of the 1x1s. The bullet will fire from the 1x8 in a random location along the brick, so it will hit a random 1x1. Then you can put different events on each of the 1x1s.

As for having it randomly select players, I'm not sure. One thing you can try is have each player on a different spawn point, and have the 1x1 randomly selected by the bullet send a relay to one of the spawn points that activates events that teleport that player somewhere and changes their datablock, but that's not really an effect method because it might randomly select a spawn point that there isn't a player for. Maybe you can use the pong projectile to check if each spawn point actually has a player on it before randomly selecting one, but I don't know if that would work.

I hope I was helpful somehow.