playMaker

Author Topic: How to make a turn system similar to FF?  (Read 1269 times)

spicyasian128

  • Playmaker Newbie
  • *
  • Posts: 18
How to make a turn system similar to FF?
« on: March 09, 2018, 07:30:41 PM »
I've been using a basic bool test for my turn based game, but it only allows me to have two active players at once, a player and an enemy, while I'd like to be able to have up to four players. I'm assuming that I'd need some form of int for this, but does anyone know exactly what I'd need to be able to make something like that?

Doh

  • Full Member
  • ***
  • Posts: 124
Re: How to make a turn system similar to FF?
« Reply #1 on: March 10, 2018, 06:47:50 AM »
For a linear order it would be fairly straight forward. Game starts, set turn int to 1. when turn is complete add 1 to the turn int, when the next turn is setting up check which number it is to allow the correct player to take control, if the number is larger than the amount of players then reset to 1.

If you wanted non linear ordering you would probably add the player numbers to an array at the beginning of a cycle in an order that complies with your requirements, then keep getting the next one of the array for each turn, once you reach the end you restart your procedure.