Page 1 of 1

How to ignore a statistic

Posted: 27 April 2014, 14:28
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 ?

Re: How to ignore a statistic

Posted: 27 April 2014, 14:32
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,