Page 3 of 3

Re: database write delay ?

Posted: 02 June 2020, 12:55
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

Re: database write delay ?

Posted: 02 June 2020, 13:30
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...

Re: database write delay ?

Posted: 02 June 2020, 16:26
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.

Re: database write delay ?

Posted: 14 January 2021, 23:42
by Irather Nottell
So, is the 2 handed sword unusable?