I am transitioning to a clientState and I would like to be able to use an argument in my description. Is this possible? I have tried the following but it keeps giving me an error:
The javascript error I get is the following:
Invalid or missing substitution argument for log message: ${you} may place ${cabs_to_move} caballeros on the board.
Code: Select all
this.setClientState("client_PlayerPlaceCaballeros", {
descriptionmyturn : _("${you} may place ${cabs_to_move} caballeros on the board."),
cabs_to_move : this.clientStateArgs.cabs_avail_to_move
});
Invalid or missing substitution argument for log message: ${you} may place ${cabs_to_move} caballeros on the board.