With nothing but 6 Arrays
- Roles List
- Roles Limit (Amount of Player Per Role)
- OverridesHero/OverridesRoles (Overrides Default Roles, Defaults are Automatically Generated)
- Passive List
- Passive Roles (Array for each Passive, telling it what Roles to apply on)
You Can Create a New Role for Overwatch with A Name that'll Display in the top of the Players Hud in Spawn + a Limit Amount Next to the Name.
The Roles will also have Fully Functional Role Limits.
For FFA there is also a Toggle In the Workshop Settings to Change the limits from 'Per Team' to 'Per Game'
Very Basic and Easy to Use
Sources
This post utilizes other codes either in part or in full. This could be because they remixed them, used parts of them, were inspired by them, or other reasons.
7 Comments
How do you use override heroes & override roles?
modify the arrays.
say you want to make torb a support, append Torb to the
Overrides_Herosarray, then append the support role index within theRoles_ListtoOverrides_Rolesif the Roles_List is
Array(Custom String("Tank"), Custom String("Damage"), Custom String("Support"))than you would append 2.once the values are within the array, the tool will take care of all the passives & stuff for you.
What do the numbers in global override roles mean?
they are the index of the heros role.
by default every role is vanilla. you add a hero to
Overrides_Herosand they add a index toOverrides_Rolesthe index should be the index of the role you want that hero to use in theRoles_Listarray.how it works, it is gets the
index of array(Overrides_Heros, Hero of(Event Player)uses that as a index to get a value fromOverrides_Rolessovalue in array(Overrides_Roles, {index of array code})and then gets the string value from theRoles_Listusing the index which is the value from the value in array. sovalue in array(Roles_List, {value in array code})in total is it
value in array(Roles_List, value in array(Overrides_Roles, index of array(Overrides_Heros, Hero of(Event Player)))and thats how it gets what role that hero should be using.How do you get the index though?
.. do you not know what an index is?
its the order of the array, first value is 0, then its goes up. im 99% sure you can see the index when inside the array snippet on the left of the values.
Ngl I’m new to coding in general (workshop is my first time coding) and I don’t understand variables like at all (Ik variables are unrelated to arrays but you get my point)