I'm working on a cooperative game, where all players must decide what to do everytime. But I can't find clear documentation about multictiveplayer state games.
In my game, players can propose an action or vote others' actions. Once the team agree with one action, those can be: move a resource, solve a challenge or use a power (or pass)
I don't know if I have to place as possibleActions the current colective actions:
Or to place the current single player actions, and make a loop to the same state:
If it's the first case, how I get the actions made by the players.
If it's the second case, I don't know how to tell the program the next state. Maybe this is one solution?
If it works the second way, of course.
I'm lost!
In my game, players can propose an action or vote others' actions. Once the team agree with one action, those can be: move a resource, solve a challenge or use a power (or pass)
I don't know if I have to place as possibleActions the current colective actions:
Code: Select all
30 => array(
"name" => "teamTurn",
"description" => clienttranslate('${you} propose an Action or answer others\' proposals'),
"descriptionmyturn" => clienttranslate('${you} propose an Action or answer others\' proposals'),
"type" => "multipleactiveplayer",
"args" => "argTeamTurn",
"possibleactions" => array("moveAResource", "solveAChallenge", "useAPower", "pass"),
"transitions" => array("moveAResource" => 40, "solveAChallenge" => 50, "useAPower" => 60, "pass" => 90)
),
Code: Select all
30 => array(
"name" => "teamTurn",
"description" => clienttranslate('${you} propose an Action or answer others\' proposals'),
"descriptionmyturn" => clienttranslate('${you} propose an Action or answer others\' proposals'),
"type" => "multipleactiveplayer",
"args" => "argTeamTurn",
"possibleactions" => array("proposeAnAction", "cancelProposal", "answerAProposal", "pass"),
"transitions" => array("proposeAnAction" => 30, "cancelProposal" => 30, "answerAProposal" => 30, "pass" => 30)
),
If it's the second case, I don't know how to tell the program the next state. Maybe this is one solution?
Code: Select all
30 => array(
"name" => "teamTurn",
"description" => clienttranslate('${you} propose an Action or answer others\' proposals'),
"descriptionmyturn" => clienttranslate('${you} propose an Action or answer others\' proposals'),
"type" => "multipleactiveplayer",
"args" => "argTeamTurn",
"possibleactions" => array("proposeAnAction", "cancelProposal", "answerAProposal", "pass"),
"transitions" => array("proposeAnAction" => 30, "cancelProposal" => 30, "answerAProposal" => 30, "pass" => 30, "teamMovesAResource" => 40, "teamSolvesAChallenge" => 50, "teamUsesAPower" => 60, "teamPass" => 90)
),
I'm lost!