I would like to emulate the structure of the ‘Mei’s Yeti Hunt’ event, where players queue up, and then when the lobby is full a random player is chosen as the yeti and the rest are Mei’s. I would like to alter it only slightly, so that one random player from each team becomes a specific hero as a ‘leader’, and all of the other players default to another hero.
I’m also interested in attaching conditions and events only to the randomly chosen ‘leader’.
Can this be done with workshop?
Optimally, the built-in Team Balancing/Swapping should pick a new player to be the Yeti after every round, assuming that the Yeti is on a different team. There is unfortunately no way to swap teams automatically with Workshop(?)
Assuming that the Meis are Team 1, you can randomly choose one to be ‘leader’ with this:
Random Value In Array(All Players(Team 1))
You can set a player variable for the ‘leader’ so that you are able to apply certain actions to only them under certain conditions. Here is how:
Set Player Variable(Random Value In Array(All Players(Team 1)), L, True)
You can then determine if the player is the ‘leader’ by comparing Player Variable(Event Player, L) == True, which can allow for certain player-triggered rules to happen under the condition that the event player is the ‘leader’.