hey guys i have a noob question.
i'm trying to program this little text based RPG, i've made several but you're always controlling only 1 character and fighting 1 enemy, i want to change that and make you take control of 4 characters and fight 1-4 enemies at once (turn based)
the problem lies with checking who has the highest speed stat, i want to make an algorithm that selects who has the highest speed, put him in 1st place (attacking first) then who has the 2nd highest speed stat and so on.
i have no idea how to go on about this, please help.
thanks in advance