Discuss how to create custom stats, reports and HUD profiles and share your creations.
Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators
by kraada » Fri Nov 07, 2014 8:50 am
The comment bruzi quotes above on this page gives you the columns you need to build the stat you want.
-
kraada
- Moderator
-
- Posts: 54431
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by ZeDawning » Fri Nov 07, 2014 9:01 am
Could you please have a look at this?
cnt_p_face_3bet_vs_hero / cnt_p_face_3bet_opp_vs_hero * 100
cnt_p_face_3bet_vs_hero
sum(if[cash_hand_player_statistics.flg_p_3bet_def and exists
(select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero
and hero.flg_p_3bet), 1, 0])
cnt_p_face_3bet_opp_vs_hero
sum(if[cash_hand_player_statistics.flg_p_3bet_def_opp and exists
(select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero
and hero.flg_p_3bet), 1, 0])
-
ZeDawning
-
- Posts: 47
- Joined: Thu Apr 10, 2014 4:07 am
by kraada » Fri Nov 07, 2014 10:36 am
Your naming is a little odd - to make it how often someone folds when hero 3bets you want to replace cash_hand_player_statistics.flg_p_3bet_def in the first column with cash_hand_player_statistics.enum_p_3bet_action = 'F' - the column names don't really matter they just threw me for a moment.
-
kraada
- Moderator
-
- Posts: 54431
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by ZeDawning » Fri Nov 07, 2014 4:09 pm
Im kinda confused. I want to know how much each villain has been 3bet by me.
So it should be something like:
No. of times Hero 3bets villain / No. of times Hero had opportunity to 3bet villain
right?
So the 'fold' action you suggested isnt needed right?
Though when i tried out the code I entered, it says not valid SQL func.
Thoughts?
-
ZeDawning
-
- Posts: 47
- Joined: Thu Apr 10, 2014 4:07 am
by kraada » Fri Nov 07, 2014 4:33 pm
That's not what you've built (and not what I thought you were asking for). What you've built is how often someone folds when hero 3bets them. Before I go into it further: Do you want to restrict it to times the villain made the first raise, or not?
-
kraada
- Moderator
-
- Posts: 54431
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by ZeDawning » Fri Nov 07, 2014 5:48 pm
Yep, when the villain made first raise.
-
ZeDawning
-
- Posts: 47
- Joined: Thu Apr 10, 2014 4:07 am
by kraada » Fri Nov 07, 2014 5:50 pm
Numerator: cnt_p_first_raise_hero_3bet_def_opp
sum(if[cash_hand_player_statistics.flg_p_3bet_def_opp and cash_hand_player_statistics.flg_p_first_raise and exists
(select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero
and hero.flg_p_3bet), 1, 0])
Denominator: cnt_p_first_raise_hero_3bet_opp
sum(if[cash_hand_player_statistics.flg_p_first_raise and exists
(select 1
from cash_hand_player_statistics hero
where hero.id_hand = cash_hand_player_statistics.id_hand
and hero.flg_hero
and hero.flg_p_3bet_opp), 1, 0])
-
kraada
- Moderator
-
- Posts: 54431
- Joined: Wed Mar 05, 2008 2:32 am
- Location: NY
by ZeDawning » Sat Nov 08, 2014 6:43 am
Ty Kraada <3
Btw, is there some kind of PT4 guide towards coding?
-
ZeDawning
-
- Posts: 47
- Joined: Thu Apr 10, 2014 4:07 am
by ZeDawning » Sun Nov 09, 2014 10:50 pm
Not sure if this is possible, but can I build a stat to my hud to see how much villain perceives my overall 3bet in his HUD (not only vs him)?
-
ZeDawning
-
- Posts: 47
- Joined: Thu Apr 10, 2014 4:07 am
Return to Custom Stats, Reports and HUD Profiles
Users browsing this forum: No registered users and 37 guests