Adding Colors to my Custom Statistic

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Adding Colors to my Custom Statistic

Postby ThemBonez » Mon Dec 07, 2020 7:04 pm

Hi, I created a custom statistic called "Player Type"" that displays a text player type based on a few different statistics.
The statistic works but I would like to color code the Player Types in some categories.
The first 3 blue...the next 3 red and the last 3 green
I tried color conditions expressions, but couldn't figure it out.
For example, I tried "If (Player Type = "SUPERNIT" or PLAYER TYPE = "NIT" or PLAYER TYPE = "TAGFISH")....but that didn't work. "Color Condition Expression is NOT Valid"
How would I do that? Here is the code:

Code: Select all

if (((cnt_vpip / (cnt_hands - cnt_walks)) * 100) < 9, format('SUPERNIT'),

if (((cnt_vpip / (cnt_hands - cnt_walks)) * 100) > 8 and (cnt_vpip / (cnt_hands - cnt_walks)) * 100 < 13, format('NIT'),

if (((cnt_vpip / (cnt_hands - cnt_walks)) * 100) > 12 and ((cnt_vpip / (cnt_hands - cnt_walks)) * 100) < 18 and
((cnt_f_bet + cnt_f_raise + cnt_t_bet + cnt_t_raise + cnt_r_bet + cnt_r_raise) / (cnt_f_call + cnt_t_call + cnt_r_call)) < 3 and
((cnt_p_3bet / cnt_p_3bet_opp) * 100) < 4,
format('TAGFISH'),

if (((cnt_vpip / (cnt_hands - cnt_walks)) * 100) > 12 and ((cnt_vpip / (cnt_hands - cnt_walks)) * 100) < 18 and
((cnt_f_bet + cnt_f_raise + cnt_t_bet + cnt_t_raise + cnt_r_bet + cnt_r_raise) / (cnt_f_call + cnt_t_call + cnt_r_call)) > 2 and
((cnt_p_3bet / cnt_p_3bet_opp) * 100) > 3,
format('TAG'),

if (((cnt_vpip / (cnt_hands - cnt_walks)) * 100) > 17 and ((cnt_vpip / (cnt_hands - cnt_walks)) * 100) < 21,
format('SLAG'),

if (((cnt_vpip / (cnt_hands - cnt_walks)) * 100) > 20 and ((cnt_vpip / (cnt_hands - cnt_walks)) * 100) < 30 and
((cnt_pfr / cnt_pfr_opp) * 100) > 9,
format('LAG'),

if (((cnt_vpip / (cnt_hands - cnt_walks)) * 100) > 22 and ((cnt_vpip / (cnt_hands - cnt_walks)) * 100) < 30 and
((cnt_pfr / cnt_pfr_opp) * 100) < 10,
format('SLP'),

if (((cnt_vpip / (cnt_hands - cnt_walks)) * 100) > 30 and ((cnt_pfr / cnt_pfr_opp) * 100) < 10,
format('FISH'),

if (((cnt_vpip / (cnt_hands - cnt_walks)) * 100) > 30 and ((cnt_pfr / cnt_pfr_opp) * 100) > 9,
format('MANIAC'),,format('-'))))))))))
ThemBonez
 
Posts: 6
Joined: Mon Nov 23, 2020 6:16 pm

Re: Adding Colors to my Custom Statistic

Postby Flag_Hippo » Tue Dec 08, 2020 8:15 am

ThemBonez wrote:I tried color conditions expressions, but couldn't figure it out.
For example, I tried "If (Player Type = "SUPERNIT" or PLAYER TYPE = "NIT" or PLAYER TYPE = "TAGFISH")....but that didn't work. "Color Condition Expression is NOT Valid"

If you want to add color conditions for the values in your format expression here is an example:

color.png
(25.59 KiB) Downloaded 952 times

Please note that if you play on PokerStars this will not work. Due to their rules on stat coloring any color conditions defined in the stat itself are blocked from working.
Flag_Hippo
Moderator
 
Posts: 17136
Joined: Tue Jan 31, 2012 7:50 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 0 guests