Creating Ranges for HUD display

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Creating Ranges for HUD display

Postby MaxWeiss » Thu Mar 24, 2011 6:14 am

I read the tutorials on the site here about getting holecards and "cardpairs" via position from the database, and I know I could if I wanted to create a HUD popup that would display every hand that has been shown from a position. My question is, is it possible to somehow use that information to create a range with specific notation to display in the HUD. For example, if a player has shown down AK,AQ,AJ, AT both suited and unsuited, as well as A5s, could I somehow get the hud to only display "AT+,A5s" or something like that. I'm basically looking to show the hands shown at showdown in a more readable format than just listing every single hand. Is that possible? I saw something that looks like what I want from

http://crushthegame.com/wp-content/uplo ... Rpopup.PNG

but I'm not sure how to go about creating it, and I don't really want to buy this guy's HUD from his site if I don't have to. I'm more interested in creating my own.
MaxWeiss
 
Posts: 43
Joined: Sun Feb 10, 2008 10:40 pm

Re: Creating Ranges for HUD display

Postby kraada » Thu Mar 24, 2011 8:44 am

In order to do something like that you need to decide how you want the ranges broken up - you can't build one stat that's dynamic and changes range based on hands shown down. What you can build is a stat that shows you a range based on pre-set divisions. You still need to build all 169 columns, then if some of them contain values, you display the text that you want to see using a custom format expression. You can read more about custom format expressions in the Tutorial: Using Custom Statistics and Reports.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 4 guests