Hi everyone, another newbie question here:
I am developing , Escape the curse of the temple, a realtime game, where all players are playing simultaneously.
In the game, after every player action in state 'playerTurn' the game goes back to state 'loadMusic'
occasionally, a player gains a curse from an action in 'playerTurn' state.
then state 'addressCurse' should only be triggered for the player that got the curse while the other players are still simultaneously doing 'playerTurn' state actions. I do not know how to do this.
In my game, it is triggered for all players.
here are my game states
Thank you for any help and advice
I am developing , Escape the curse of the temple, a realtime game, where all players are playing simultaneously.
In the game, after every player action in state 'playerTurn' the game goes back to state 'loadMusic'
occasionally, a player gains a curse from an action in 'playerTurn' state.
then state 'addressCurse' should only be triggered for the player that got the curse while the other players are still simultaneously doing 'playerTurn' state actions. I do not know how to do this.
In my game, it is triggered for all players.
here are my game states
Code: Select all
2 => array(
"name" => "loadMusic",
"description" => "",
"type" => "game",
"action" => "stLoadMusic",
"transitions" => array( "playerTurn" => 6 )
),
6 => array(
"name" => "playerTurn",
"description" => clienttranslate(''),
"descriptionmyturn" => clienttranslate('${you} may choose an action or surrender to fate'),
"type" => "multipleactiveplayer",
"action" => "st_MultiPlayerInit",
"possibleactions" => array( "confirmAction","reRollDice","discoverChamber",
"activateGem", "removeBlackMask", "moveChamber", "turnFate", "escape", "giveDie",
"addressCurse", "loadMusic", "endPeriod", "gameEnd"),
"transitions" => array( "loadMusic" => 2, "addressCurse"=> 7, "turnFate" => 11, "players_win" => 12, "gameEnd" => 99 ),
'action' => 'st_MultiPlayerInit'
),
7 => array(
"name" => "addressCurse",
"description" => clienttranslate(''),
"descriptionmyturn" => clienttranslate('${you} must select a die to remove'),
"type" => "multipleactiveplayer",
"possibleactions" => array( "confirmResponse","loadMusic", "pass" ),
"transitions" => array( "loadMusic" => 2 )
),
Thank you for any help and advice