Custom stat - Can this be done?

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny

Custom stat - Can this be done?

Postby jalba » Fri Apr 07, 2017 12:06 pm

I have a custom stat that displays the next big blind level; the stat works fine by itself but I'm trying to display it as 80/40 (as opposed to just 80), or whatever the next blinds are.
Image
The value expression is just the custom stat live_amt_bb_next.
The format type or summary type I'm trying to use
Code: Select all
format('{1}/{2}', format_number(this,0,false, false),format_number(this/2,0,false, false))

Any ideas why is not working or can this be done at all? Thanks.
jalba
 
Posts: 14
Joined: Sat Aug 29, 2015 6:45 pm

Re: Custom stat - Can this be done?

Postby WhiteRider » Sat Apr 08, 2017 2:44 am

I'm not sure why, but it's the division sign that is causing the problem so you can multiply by 0.5 instead.

format('{1}/{2}', format_number(this,0,false, false), format_number(this*0.5,0,false, false))
WhiteRider
Moderator
 
Posts: 53618
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Custom stat - Can this be done?

Postby jalba » Sat Apr 08, 2017 9:17 am

Nice, is not giving me any errors now, however it shows for instance '40/{2}' on the HUD, the placeholder is shown instead of the value, any ideas?
jalba
 
Posts: 14
Joined: Sat Aug 29, 2015 6:45 pm

Re: Custom stat - Can this be done?

Postby WhiteRider » Sat Apr 08, 2017 10:16 am

It's working for me, so make sure you have the format command correct. I suspect you may have the second quote (') or a comma or something in the wrong place.
WhiteRider
Moderator
 
Posts: 53618
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Custom stat - Can this be done?

Postby jalba » Sun Apr 09, 2017 10:00 pm

EDIT. It works now. I had table averages selected.
jalba
 
Posts: 14
Joined: Sat Aug 29, 2015 6:45 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 4 guests

cron
highfalutin