Custom - Highest in the table and show only if higher than x

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Custom - Highest in the table and show only if higher than x

Postby dNver » Thu Apr 25, 2024 7:54 am

Hi,

I built a tournament player stat, let's call it "B", it's formula is = 1 / (live_amt_stack / 20000)

I want to know if there is a way to create another custom stat, let's call it "M", which shows the highest value for "B" from everyone in the table. Let's say the "B"s of everyone at the table are 1, 0.5, 1,5 and 3. I want this new custom stat, "M" to show 3.

If this is possible, I want to know if there is a chance that "M" only appears in the hud if it's higher than a specific value, so if all the "B"s in the table are lower than this specific value, "M" won't show in the hud.

Sorry for my English.
dNver
 
Posts: 8
Joined: Sat Nov 19, 2022 12:10 pm

Re: Custom - Highest in the table and show only if higher th

Postby Flag_Hippo » Fri Apr 26, 2024 6:14 am

Unfortunately I don't know of a method to compare and test those values between players.
Flag_Hippo
Moderator
 
Posts: 17114
Joined: Tue Jan 31, 2012 7:50 am

Re: Custom - Highest in the table and show only if higher th

Postby dNver » Fri Apr 26, 2024 7:40 am

Flag_Hippo wrote:Unfortunately I don't know of a method to compare and test those values between players.


Okay

A total different question, is there any way to show the minimum stack at the table but only if it's lower than X amount?
dNver
 
Posts: 8
Joined: Sat Nov 19, 2022 12:10 pm

Re: Custom - Highest in the table and show only if higher th

Postby Flag_Hippo » Fri Apr 26, 2024 12:44 pm

That's beyond my own SQL knowledge I'm afraid so I can't comment on whether it's feasible or not to create such a statistic.
Flag_Hippo
Moderator
 
Posts: 17114
Joined: Tue Jan 31, 2012 7:50 am

Re: Custom - Highest in the table and show only if higher th

Postby WhiteRider » Sat Apr 27, 2024 4:48 am

I think that should be possible.

If you make a copy of the stat "Live Min Stack BB" (*) you can change the format type from Number to Expression.
(*) I'm assuming you want this in BBs since it's for tournaments. If not, do the same sort of thing for "Live Min Stack".

You can then add an IF into the format expression.
For example:

format( '{1}', if((live_table_min_stack / live_amt_bb) < 10, format_number(, (live_table_min_stack / live_amt_bb),0), 2, true, false), "" )

That expression will display the min stack if it is less than 10 BBs or an empty string ("" = blank) otherwise.
You can change the number of BBs and the alternative "text" to be displayed as you prefer.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 0 guests