database write delay ?

Game development with Board Game Arena Studio
vincentt
Posts: 254
Joined: 01 September 2017, 17:25

Re: database write delay ?

Post by vincentt »

Hi,

I am guessing that on this action someone is taking the two handed swords, should it not trigger a state change and therefore the args will be sent again.
I know that in some cases (on multiplayer) this can be tricky, I had hell on this previously

Vincent
User avatar
tchobello
Posts: 693
Joined: 18 March 2012, 13:19

Re: database write delay ?

Post by tchobello »

hi

when engaging a combat, attacking characters can choose to use two-handed swords if carried.
There are other options available for other items.
A field in database is at 0 before, -10 when asked and 10 if accepted.
after decision is made, I look for other options & two-handed swords are skipped because field is different than 0.

I need to ask before triggering because it costs one extra action point per sword.

When I change State in order to ask immediately, it seems field stays at 0 in the args whereas it is modified (I've checked).
And if I refresh, field is at the right value (-10) and I have all buttons.

And it's not a multiplayer mode...
User avatar
tchobello
Posts: 693
Joined: 18 March 2012, 13:19

Re: database write delay ?

Post by tchobello »

well, after some testing thanks to Tisaac, I have the same (bad) result with :

Code: Select all

    function argCombatChoices()
    {
        return array(
            'nb_tokens' => 1,
            'token_type' => 'twohandedsword'
		);
    }
that is really weird.
User avatar
Irather Nottell
Posts: 14
Joined: 24 February 2015, 23:01

Re: database write delay ?

Post by Irather Nottell »

So, is the 2 handed sword unusable?
Post Reply

Return to “Developers”