So I would feed this Update HP (Character1[4],Job1[120],Job1[121],Character1[1])
where...
Character1[4] = the characters raw hp.
Job1[120] = the current job's hp multiplier.
Job1[121] = the current job's hp constant.
Character1[1] = the characters level.
However, the character array at [2] = current job. What I am asking is there anyway to feed the second and third parameters of my function something like this gv_"Character1[2]"[120]. Where it takes the string at Character1[2] (which happens to be a variable name, minus the "gv_") and then takes the index of that variable at 120?
edit: basically what I'm saying is if i had 5 arrays name array0,array1, array2, array3, array4 is there a way to make that integer/string another variable so I could easily be working with array#[99].
So I have this function set up like this...
So I would feed this Update HP (Character1[4],Job1[120],Job1[121],Character1[1])
where... Character1[4] = the characters raw hp. Job1[120] = the current job's hp multiplier. Job1[121] = the current job's hp constant. Character1[1] = the characters level.
However, the character array at [2] = current job. What I am asking is there anyway to feed the second and third parameters of my function something like this gv_"Character1[2]"[120]. Where it takes the string at Character1[2] (which happens to be a variable name, minus the "gv_") and then takes the index of that variable at 120?
edit: basically what I'm saying is if i had 5 arrays name array0,array1, array2, array3, array4 is there a way to make that integer/string another variable so I could easily be working with array#[99].
Not directly. You could use data tables for a similar behavior (or just use a multi-dimensional array ;) )