Author Topic: Adding <entries> and <rebuys>  (Read 105 times)

Wick

  • Newbie
  • *
  • Posts: 30
    • View Profile
Adding <entries> and <rebuys>
« on: June 23, 2017, 01:10:26 PM »
I want to track re-entries separate from the first time entry. I have the autoprize set to include both entries and rebuys when calculating the prize pool.   What i haven't been able to do on the layout is show Total Entries <entries> + <rebuys>.

Is this possible?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5424
    • View Profile
Re: Adding <entries> and <rebuys>
« Reply #1 on: June 23, 2017, 02:11:49 PM »
Yes, you can do this.  Here's an example:

Entries: <entries><br>
Rebuys: <rebuys><br>
Sum: <expression text="buyins + totalRebuys" format="number">

Wick

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Adding <entries> and <rebuys>
« Reply #2 on: June 23, 2017, 02:23:44 PM »
Perfect, i knew there had to be a way to do it.

Wick

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Adding <entries> and <rebuys>
« Reply #3 on: June 23, 2017, 02:54:17 PM »
Ok Corey

How about buyin - buyinrake

This is throwing an error
<expression text="buyin - buyinRake" format="number">

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5424
    • View Profile
Re: Adding <entries> and <rebuys>
« Reply #4 on: June 23, 2017, 05:27:44 PM »
The expression "text" is a formula.  The same formula that would be valid on as the "Points for Playing" formula on the Game tab, except that the variables specific to a player won't be available (since it isn't specific to a player).  I do have a to-do item to make the formula create/test dialog available directly from the Layout Token dialog so that you can write and test your formula for this token directly from there, but for now the best thing to do is go to the Game tab, press the "Test Formula" button and try out your formula there first, then paste it into the "text" field of the "expression" token.

So "buyin" is not a valid formula variable.  What you are looking for is the buy-in cost for players, which can be different for each player.  The variable for a player is "buyinCost", which would reflect that player's cost to buy-in to the tournament.  The one that applies to all players would be "defaultBuyinFee".  Note that this will take the buy-in fee of the master buy-in profile.

Likewise for buyinRake.  Although valid, it is for a specific player.  For all players, it should be "defaultBuyinRake".

<expression text="defaultBuyinFee - defaultBuyinRake" format="number">