Discuss how to create custom stats, reports and HUD profiles and share your creations.
Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
by js2002 » Wed Oct 29, 2014 12:51 pm
Hi,
I am stuck at these 2 stats:
1. Fold to Squeeze as PF Caller when "the openraiser called"
2. Fold to Squeeze as PF Caller when "the openraiser folded"
Examples:
player = BU
CO openraises, BU calls, BB squeezes
@1: How do I make a expression that is true if somebody made an openraise and calls the squeeze?
@2: How do I make a expression that is true if somebody made an openraise and folds to squeeze? See? I want to test if the BU (or any other posi) did openraise/fold.
-
js2002
-
- Posts: 1501
- Joined: Fri Feb 15, 2008 5:44 am
- Location: Germany
-
by kraada » Wed Oct 29, 2014 1:40 pm
The way to do this is to use the aggressors and actors string. cash_hand_summary.str_actors_p is the list of all positions in order of players who voluntarily put money in the pot (raise or call), and cash_hand_summary.str_aggressors_p is the list of all positions in order of players who made aggressive actions preflop (raises).
Thus you know the position of the first raiser -- substring(cash_hand_summary.str_aggressors_p from 2 for 1) (from 2 because preflop the first character is always 8 for the big blind), and you can test to see if they've called by using substring and pattern matching on the actors string.
-
kraada
- Moderator
-
- Posts: 54435
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by js2002 » Wed Oct 29, 2014 7:04 pm
I see, but I dont want specific positions.
I just want to make a general stat
"Fold to Squeeze as PF Caller when the Openraiser has folded a squeeze" and the second
"Fold to Squeeze as PF Caller when the Openraiser has called a squeeze"
In detail:
"Fold to Squeeze (from any position) as PF Caller (any posi) when the Openraiser (any posi) has folded a squeeze (...)"
See?
I dont get this done with your hints, is it really possible?
-
js2002
-
- Posts: 1501
- Joined: Fri Feb 15, 2008 5:44 am
- Location: Germany
-
by kraada » Thu Oct 30, 2014 7:20 am
I believe it is, but it will require some work. The reason to use the positions is to compare the actual actions taken -- you can test to see if the character directly after the 3bettor in the actors string is the person who made the first raise. If it is, they called the squeeze. If it's not, they folded.
-
kraada
- Moderator
-
- Posts: 54435
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by js2002 » Thu Oct 30, 2014 7:54 am
that was the final hint! thx expert
-
js2002
-
- Posts: 1501
- Joined: Fri Feb 15, 2008 5:44 am
- Location: Germany
-
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: P0k3rN1nja, Ventilatorrr and 8 guests