Workshop.codes
Login
Create

This code is over 6 months old. The code may have expired and might no longer function.

7 Comments

Log in or Sign up to leave a comment.
Rubylich over 1 year ago

How do you use override heroes & override roles?

Spiderman31807 creator over 1 year ago *

modify the arrays.

say you want to make torb a support, append Torb to the Overrides_Heros array, then append the support role index within the Roles_List to Overrides_Roles

if 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.

Rubylich over 1 year ago

What do the numbers in global override roles mean?

Spiderman31807 creator over 1 year ago

they are the index of the heros role.

by default every role is vanilla. you add a hero to Overrides_Heros and they add a index to Overrides_Roles the index should be the index of the role you want that hero to use in the Roles_List array.

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 from Overrides_Roles so value in array(Overrides_Roles, {index of array code}) and then gets the string value from the Roles_List using the index which is the value from the value in array. so value 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.

Rubylich over 1 year ago

How do you get the index though?

Spiderman31807 creator over 1 year ago *

.. 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.

Rubylich over 1 year ago *

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)

Workshop.codes