Well I've got the following problem.
I need to know how I can bring variables into a certain order.
I've got 9 variables with values. now I want to draw the biggest one of them and put them into another variable.
Example:
//These are the variables that i need to be filled with values.
var ctb_place1 = 0;
var ctb_place2 = 0;
var ctb_place3 = 0;
var ctb_place4 = 0;
var ctb_place5 = 0;
var ctb_place6 = 0;
var ctb_place7 = 0;
var ctb_place8 = 0;
var ctb_place9 = 0;
// And these r the Variables which i need to bring up in order.
h1_agi = 15;
h2_agi = 17;
h3_agi = 13;
h4_agi = 12;
e1_agi = 10;
e2_agi = 10;
e3_agi = 10;
First I want to find out the biggest value of these and put them in to the "ctb_place1" variable.
after this I need to know which one was filled in so that this won't be took again.
after this I want to put in the next biggest variable into ctb_place2. BUT If ! the first variable was a hx_agi then next a ex_agi value should be taken. and so on,until all variables are filled.
Is there an easy way to do such a thing?
greets Roxas