Custom Statistics

Let us know what features not currently in the PT4 should be added.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Custom Statistics

Postby Bal » Mon Aug 11, 2014 11:03 am

Hi,

I am trying to add some new statistics into the HUD:

In this instance Turn Probe bet: "Definition": (cnt_t_probe / cnt_t_probe_opp) * 100 When I add this, only the % figure show up: e.g. 20. I want to insert the absolute numbers too: e.g. 20 (20/100)

format('{1}({2}/{3}',(cnt_t_probe / cnt_t_probe_opp) * 100,format_number(cnt_t_probe,0,false,false),format_number(cnt_t_probe_opp,0,false,false))

I have tried to follow your instructions in the user guide; but must be doing so incorrectly: Could you tell me, what I am doing wrong?

Could U also show me how to do this kind of custom statistic can be constructed, in a simpler manner. This is possible as is explained in the note below.

More realistically, you might use this format expression:
format( '{1}% ({2}/{3})', (cnt_steal_att / cnt_steal_opp) * 100, format_number(cnt_steal_opp,0,false,false), format_number(cnt_steal_att,0,false,false) )
..which would display as:
60% (12/20)
Note: this sort of thing is not necessary for use in the HUD as you can display times/opportunities in the HUD using the Statistic Properties.

Bal
Bal
 
Posts: 12
Joined: Fri Jun 14, 2013 4:52 am

Re: Custom Statistics

Postby kraada » Mon Aug 11, 2014 11:23 am

You can turn Show Times/Opportunities on for any HUD statistics in the Item Properties area at the top right of the HUD Configuration -- it's not necessary to use this method just to show times/opportunities for normally formatted stats.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Custom Statistics

Postby Bal » Tue Aug 12, 2014 10:01 am

TY; I can't overstate, how much I appreciate your help!
Bal
 
Posts: 12
Joined: Fri Jun 14, 2013 4:52 am


Return to PT4 Feature Requests

Who is online

Users browsing this forum: No registered users and 0 guests