Can someone explain how zombie mode should work? When a player has their turn skipped (out of time), what's supposed to happen at that moment? If I understand the docs correctly, my zombieTurn function should get called immediately, where I'll do the steps to end the zombie's turn and continue the game. This isn't working for me in studio. Despite clicking skip turn and seeing a message that the player is skipped, he stays the active player and the game is stuck. It appears my zombieTurn is not called. What's wrong?
My zombie function is quite simple:
My states include these:
(My function stPlayerEnd simply changes the active player and goes back to state #3, or ends the game on win condition.)
My zombie function is quite simple:
Code: Select all
public function zombieTurn($state, $active_player)
{
$this->gamestate->nextState('zombiePass');
}
Code: Select all
3 => array(
"name" => "playerStart",
"description" => clienttranslate('${actplayer} must take an action.'),
"descriptionmyturn" => clienttranslate('${you} must take an action.'),
"type" => "activeplayer",
"action" => "stPlayerStart",
"possibleactions" => array( "act" ),
"transitions" => array( "ask" => 10, "execute" => 80, "zombiePass" => 98 )
),
98 => array(
"name" => "playerEnd",
"description" => '',
"type" => "game",
"action" => "stPlayerEnd",
"updateGameProgression" => true,
"transitions" => array( "playerStart" => 3, "gameEnd" => 99 )
),