Page 1 of 1
Change stat to include pot size

Posted:
Mon Apr 04, 2016 8:07 pm
by CliveMorley
Hello!
I have various stats I use such as W$SD which I'd like to split into small pot hands and large pot hands - how do I go about this?
For instance I'd like to have; W$SD if final pot size > 100bb
Re: Change stat to include pot size

Posted:
Tue Apr 05, 2016 3:20 am
by WhiteRider
The size of the final pot is stored in "cash_hand_summary.amt_pot" - to get it in BBs divide by "cash_limit.amt_bb", so include something like this:
(cash_hand_summary.amt_pot / cash_limit.amt_bb) > 100
..or for tournaments:
(tourney_hand_summary.amt_pot / tourney_blinds.amt_bb) > 100
Re: Change stat to include pot size

Posted:
Tue Apr 05, 2016 5:17 am
by CliveMorley
I found the stat, opened up definitions and pasted that directly in below what was there already;
but it doesn't work - how do I add in this new line of text to an existing stat?
Re: Change stat to include pot size

Posted:
Tue Apr 05, 2016 7:28 am
by kraada
Use AND and put it in the antecedent of the if[] statement. See
this thread which talks about a different situation but it's the same general idea of adding a piece to a column.
Re: Change stat to include pot size

Posted:
Tue Apr 05, 2016 7:55 am
by CliveMorley
Use AND and put it in the antecedent of the if[] statement. See this thread which talks about a different situation but it's the same general idea of adding a piece to a column.
I simply don't know enough about the stat building process to be able to see what's relevant or not here (sorry!). I've read the tutorials and get the basics but come really unstuck when having multiple rules.
1. Can I do everything I need simply by editing the value expression within the definition?
2. If so, this is the current stat I'd like to duplicate and edit:
(cnt_r_bet_wtsd_won / cnt_r_bet_wtsd) * 100
3. I've read the thread you pointed me to and I'm struggling to see what bits of that I need to take here...
Here's my best guess: if[(cash_hand_summary.amt_pot / cash_limit.amt_bb) > 100 AND (cnt_r_bet_wtsd_won / cnt_r_bet_wtsd) * 100] but it doesn't work :-(
Re: Change stat to include pot size

Posted:
Tue Apr 05, 2016 10:13 am
by kraada
No, you need to do more than editing the value expression. See
this guide for the basics on custom statistics creation and
this guide for a deeper walkthrough. The latter was written for PT3 but the techniques all apply to PT4, the interface is just slightly different.