The Tournament Director Forums

Main => Help Me => Topic started by: mm48 on March 31, 2014, 12:30:20 PM

Title: Displaying points
Post by: mm48 on March 31, 2014, 12:30:20 PM
I have a formula assigning points based on ranking in the tournament. How can I display the points awarded to the next outgoing?
Title: Re: Displaying points
Post by: Corey Cooper on April 02, 2014, 11:47:05 PM
Are you wanting to display the points earned at the last tournament?
Title: Re: Displaying points
Post by: mm48 on April 03, 2014, 04:25:40 AM
Current tournament:
If 17 players remaining in the tournament, display how many points will score the next player (rank 17th), busted out, according to a formula.

Formula is :
assign("payes",33);
assign ("primeTF",n);
assign ("primeHU",(0*n));
roundUpToNearest ( if (r>n*(payes/100),0,1)*(10 *(10*sqrt(n))/(sqrt(r)) + if (r < 9,primeTF,0) + if (r < 3,primeHU,0)),10)
Title: Re: Displaying points
Post by: Corey Cooper on April 03, 2014, 09:43:30 AM
<pointsFormula text='assign("payes",33); assign ("primeTF",n); assign ("primeHU",(0*n)); roundUpToNearest ( if (r&gt;n*(payes/100),0,1)*(10 *(10*sqrt(n))/(sqrt(r)) + if (r &lt; 9,primeTF,0) + if (r &lt; 3,primeHU,0)),10)' ranks="1-17" displayRank="true">

The ranks attribute is a bit limited unfortunately.  It would be nice if you could tell it to display only the rank of the next bust-out, or something like that.  I'll put that on my to-do list.  Also a way to set the text attribute to just pull the actual Points for Playing formula, instead of having to reproduce it in the token.
Title: Re: Displaying points
Post by: mm48 on July 29, 2015, 03:50:49 AM
I'll put that on my to-do list. 

Is it ready in the Beta testing version 3.4 ?
Title: Re: Displaying points
Post by: Corey Cooper on July 29, 2015, 02:23:25 PM
It looks like if you omit the text attribute or give it an empty value, it will pull your configured Points for Playing formula (this is actually in the explanation of the pointsFormula token).  So that part is there.  It doesn't look like I've modified the ranks attribute yet.
Title: Re: Displaying points
Post by: Corey Cooper on July 29, 2015, 04:20:45 PM
Actually, ranks will take ranges of ranks, like ranks="1-3" or ranks="1-3,5-6,8-9" (why anyone would want to do that I don't know).  But it doesn't recognize "next" yet.