Alright, I have a lot of the mechanics worked out for a battle sequence I'm creating for an RPG, but I'd like to hear some advice on the following -- Say there are 4 heroes in the party and 3 enemies in the current battle. How should I set up the code so that the code knows Who's turn it is (so that it can copy all the data from that character/monster such as damage/defense).
Ex in pseudo-code:
Derek's turn
Get Derek's attack data
Derek picks Goblin as attack target
Get Goblin's defense data
Calculate damage and do everything else
Now it's Waren's turn
Get Waren's attack data
Derek picks Ogre as attack target
Get Ogre's defense data
etc....
How would I set up the variables so that the game knows who to take the data from? A temporary array perhaps suchas TempAtkData(x) = ??
(but where would I put the Who's Turn Is It function and how might I set it up?) Or perhaps have a two dimensional array where the first dimension is the character/enemy reference number and the second dimension is all of the stats and have a Who's Turn point to the first dimension?
Advice would be of most help