The Tournament Director Forums
Main => Suggestions => Topic started by: Dahaniel on July 06, 2007, 08:34:57 PM

Hi, it would be cool to have an "buyinscout" variable, I couldn't find it.
It want to use it for to have a way, that only peaople who participated in at least 3 tournaments would get scores inside the league. Somehow like this:
if(buyinscount > 2, average(scores), 0)
or is this already possible somehow?

numberOfPlayers, or n

But this gives me the number of Players in the tournament.
What I need is the number of tournaments a Player already participated. So tha I can set up a formula that won't count Players which played less than 3 tournaments.

I think that is exactly i wanted to post about...
I want to have option in my stats to filter out players that didnt played x number of tournaments...
is that possible?

I guess you needed to specify exactly what you meant by "buyinscount", and for which formula you are needing this variable.
For the Points for Playing formula, or for the Score formula, the variable "numberOfPlayers" or "n" represents the number of players who have boughtin to the tournament. Since a player can only buyin once (any further "buyins" would be "rebuys"), this also represents the "buyinscount", in the sense of "the number of buyins for the tournament". If you meant "how many times a player boughtin", this is always 1 for any tournament, so it is a useless number for Points for Playing or Score formulas.
For the Overall Score formula, the variable "numberOfTournaments" or "n" represents the number of tournaments that passed your filter (or the number of tournaments over which we are calculating stats). The "numberOfScores" or "s" represents the number of scores a player has, which also equals the number of tournaments in which the player participated. You can also get this by using the count() function: "count(scores)" will return the same number. I failed to document "numberOfScores" and "s" in the user manual, I think.

what about my post?

if(s < 2, 0, formula)
Replace 2 with the minimum number of tournaments. Replace "formula" with your Overall Score formula.
This won't "filter out" players who played less than 2 tournaments (or however many you decide), but will give those players an Overall Score of 0.

Thx, that's exactly what I was looking for!