'Null' values for statistics?

Game development with Board Game Arena Studio
Post Reply
User avatar
fa81
Posts: 32
Joined: 25 November 2016, 16:35

'Null' values for statistics?

Post by fa81 »

For P.I. I'd like to add a statistic for each player "How many rounds before able to solve.", but I'd like it to be taken into account when the player actually solved.

If I initialize it with 0 and then the player does not solve at all, the 0 will move their average down: let's say 5.31 would be the average for all players, then a player who almost never solves (i.e. is really bad) would over time get a "better" average value (e.g. 0.9) than a good player (e.g. 4.8).

Is it possible to set a statistic value to null at the end of a game, so that it is not counted? As a work-around I could set it to some very high value of course (999), but that would also taint the stats. Or maybe set it the the average of all players of that game, so that it drags the player's average to "somewhere in the middle"?
User avatar
Victoria_La
Posts: 608
Joined: 28 December 2015, 20:55

Re: 'Null' values for statistics?

Post by Victoria_La »

If you don't init the stat I think it shows an NaN (not a number), I suspect it won't be averaging these
User avatar
fa81
Posts: 32
Joined: 25 November 2016, 16:35

Re: 'Null' values for statistics?

Post by fa81 »

Interesting. I'll try that.

Thanks!
Post Reply

Return to “Developers”