Author Topic: Displaying points  (Read 1358 times)

mm48

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Displaying points
« 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?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5424
    • View Profile
Re: Displaying points
« Reply #1 on: April 02, 2014, 11:47:05 PM »
Are you wanting to display the points earned at the last tournament?

mm48

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Displaying points
« Reply #2 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)

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5424
    • View Profile
Re: Displaying points
« Reply #3 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.

mm48

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Displaying points
« Reply #4 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 ?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5424
    • View Profile
Re: Displaying points
« Reply #5 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.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5424
    • View Profile
Re: Displaying points
« Reply #6 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.