Hero lists in workshop?

So I’m trying to make a rule for a game (random hero on spawn is on) where instead of the option of getting every hero, I get a select few. Like, heroes that I want to play. Basically just a filtered version of mystery heroes if you know what I mean, so I could input in the workshop editor what heroes I want. Any chance I could get some help y’all! I’m not an expert with the workshop.

You can do this by going to heroes > hero roster in settings. Workshop isn’t needed.

2 Likes

You could recode mystery heroes like this:

At first, create an array that contains all the heroes you want to be available:

Global.myHeroes = Array(Hero(McCree), Hero(Lucio), Hero(Mercy));

Then you need a rule to set a players hero to one of the array:

Ongoing - each player

condition:
- has spawned(event player) == true
- is alive(event player) == true

action:
- start forcing player to be hero(event player, random value in array(global.myHeroes))

Now you can do even more things to manipulate the outcome of the randomness.
E.g. to assure that a player doesn’t get the same hero twice in a row:

Ongoing - each player

condition:
- has spawned(event player) == true
- is alive(event player) == true

action:
- start forcing player to be hero(event player, random value in array(remove from array(global.myHeroes, hero of(event player))))

Edit: If you don’t want to do further manipulations, what CouldntThink wrote should be enough for you.