Cue Combat / Animations

I would like to make a Combat Game with the standard, all allies/enemies choose their moves then combat starts and every takes their actions in turn based on Speed / Priority. I was wondering about how to go about this. I dont need the actual scripts just a generality on how to get it done as I would like the practice.

For a Visual you can think of Breath of Fire 3, or Jade Cocoon 2.

Thank you in advanced for any threads and advice you can give me!

Jam all your units in a List and sort it based on their speed/priority. When the first character attacks, remove them from the start of the list and insert them as appropriate (the back? ahead of other characters depending on some speed remainder? up to your game design) back in the list.

I was looking up State based Machines and It looks like what I need to do is instead of automatically when the skill is selected to attack instead set them into a list and have the list go off all at once during a battle Sequence sorted by speed. If im getting this all correctly.