How to ignore a statistic

Game development with Board Game Arena Studio
Post Reply
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

How to ignore a statistic

Post by pikiou »

I'm developing a game with an optional extension and I'd like a statistic about the count of objects which are only available in the extension.
If in normal games the value of this statistic is always 0, the mean value of this statistic will have no meaning. I like these mean values to improve my play by comparing them to those of good players.
Is there anything we can do about it ?
Something like deactivating the statistic with self::setStat(NULL, 'extension_object_count', $player_id); would be great. But if it's not doable, should I avoid statistics about extension elements, or should I create them even though their mean values will be meaningless ?
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

Re: How to ignore a statistic

Post by sourisdudesert »

Hi,

I already met this situation before.

There is currently no way to address this problem, so you just have to set it to 0. In the future, set this value to NULL may be the right solution, in order this statistics won't be taken into account in statistics averages.

Cheers,
Post Reply

Return to “Developers”