Another newbie question - thank you for any help, advice and suggestions
I am creating escape the curse of the temple - a multiplayer real time dice chucking game
Here is the player options:

When one of the options is selected from onUpdateActionButtons bar, connecting method to the option should run only once. However, for my game, Often the method will run multiple time and the game history players sees will show this.
an exapmple, developGames4 selects "remove black mask spell" but the code ' onRemoveDiceSpell' is run twice.
when I used this.checkAction() is true in the methods connected to the option button such as ' onRemoveDiceSpell' , I I then always have the following history messages and warning messagesdevelopGames4 2323325 rolls 3 and translated Key
developGames4 2323325 rolls 1 and translated Golden Mask
03:12 PM
Have you run across this?(Generated by: checkAction/moveChamber)
Please wait, an action is already in progress
(Generated by: checkAction/moveChamber)
Please wait, an action is already in progress
(Generated by: checkAction/moveChamber)
Please wait, an action is already in progress
(Generated by: checkAction/moveChamber)
Please wait, an action is already in progress
developGames0 2323321 rolls 2 and translated Torch
Here is part of my onUpdateActionButtons
Code: Select all
this.addActionButton( 'roll_btn', _('Roll Selected Dice'), 'onRoll' );
if ( num_adventurer > 0 ) {
this.addActionButton( 'move_btn', _('Enter a Chamber'), 'onMove' );
}
if ( num_gold_mask > 0 ) {
this.addActionButton( 'gold_mask_btn', _('Remove Black Mask Spell'), 'onRemoveDiceSpell' );
}