Hello everybody,
I want to add an option to my game.
I modified the gameoptions.inc.php file in adding these lines:
Then I modified the game.php file adding these lines to the function MyGameName():
and this line to the function setupNewGame():
But it doesn't work. I don't see the option when creating a new game and there's an error in database creation.
Can anyone help me?
I want to add an option to my game.
I modified the gameoptions.inc.php file in adding these lines:
Code: Select all
$game_options = array(
100 => array(
'name' => totranslate('Number of decks'),
'values' => array(
1 => array( 'name' => totranslate('2') ),
2 => array( 'name' => totranslate('3') ),
3 => array( 'name' => totranslate('4') ),
4 => array( 'name' => totranslate('5') )
)
)
);Code: Select all
self::initGameStateLabels( array(
"decks_no" => 100
) );Code: Select all
$decks_no = self::getGameStateValue( 'decks_no' ) + 1;Can anyone help me?