I'm new here and still learning, so apologies if this question turns out to be basic and or silly.
In the game I'm coding, the active player can perform various actions, most of them are straightforward but in some cases, their action requires input from another player.
For example, during a move action, if the active player wants to move their pieces past another player, they can but they need to "ask for permission." Another example is during combat: after the attacker rolls the dice, the defender rolls as well. If the defender is unhappy with the result, they can spend resources to re-roll (even though it's not their turn).
So, my question is: how do I handle actions where another player's input is required during the active player's turn?
I believe the solution lies in the states.inc.php file, but I'm not sure how to implement this. Any guidance would be appreciated!
In the game I'm coding, the active player can perform various actions, most of them are straightforward but in some cases, their action requires input from another player.
For example, during a move action, if the active player wants to move their pieces past another player, they can but they need to "ask for permission." Another example is during combat: after the attacker rolls the dice, the defender rolls as well. If the defender is unhappy with the result, they can spend resources to re-roll (even though it's not their turn).
So, my question is: how do I handle actions where another player's input is required during the active player's turn?
I believe the solution lies in the states.inc.php file, but I'm not sure how to implement this. Any guidance would be appreciated!