• Resolved Piotr Kunicki

    (@kuperman87)


    Hello,

    It is possible to create player list with Golden Boot statistics?

    I have three leagues and if the player scores 5 goals and play in 1st league – he has 10 points (5 goals x 2 – coefficient for 1st league).
    If the player scores 5 goals and play in 2nd league – he has 7.5 points (5 goals x 1.5 – coefficient for 2nd league).
    Example is here: https://www.transfermarkt.com/statistik/goldenerschuh

    Is it possible to add the “coefficient” column which depends on the league?

    Thanks,
    Peter

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi there!

    Thanks for reaching out.

    It really depends on how you are creating this stat. Would you mind telling us how it is created and assigned to players?

    Thanks!

    Thread Starter Piotr Kunicki

    (@kuperman87)

    Hi,

    So I have a player lists from 3 different leagues and I need to add coefficient column – https://prnt.sc/rrcutx (it’s a constant value which depends on the laeaue, so 1st league = 2, 2nd league = 1.5, 3rd league = 1) And the final points are: goal scored X coefficient.

    Hope it’s clear.

    Thanks,
    Peter

    Hi Peter!

    That’s an interesting idea. We don’t have any competition-specific modifiers for metrics and statistics.

    The easiest way I can think of to implement this is to store these 3 in different variables. Goal1, Goal1p5, Goal2. This allows you to submit goals to the right metric.

    This could even be in addition to the regular goals metric if you want backward compatibility/simpler setup.

    Then in your formulas, you should be able to use Goals1 + GOals1p5 * 1.5 + Goals2 * 2 and so on.

    Thanks!

    Thread Starter Piotr Kunicki

    (@kuperman87)

    Hi Roch,

    Thanks, I understand how to add three different variables Goal1, Goal1p5, Goal2, but how to use it in player list? Because I need player list from all different leagues..

    Thanks

    Hi there!

    You’ll create a new stat that multiplies these different fields by the correct weight. Something like
    weightedGoals = Goals1 + GOals1p5 * 1.5 + Goals2 * 2

    Then you order your player list by that stat. You can even hide it from your visitors if you want, you just need it for ordering.

    Thanks!

    Thread Starter Piotr Kunicki

    (@kuperman87)

    Thanks Roch,

    So I’ve added variables to player metrics, but in this case I need to edit each player and add manually correct variable, right?

    Second question – is it possible to multiply variable by 1.5?
    https://prnt.sc/s7wr0c

    Thanks,
    Piotr

    Plugin Contributor Savvas

    (@savvasha)

    Hi @kuperman87 ,

    About the second question, just try to multiply by 3 and then divide by 2 ??

    Thanks,
    Savvas

    Thread Starter Piotr Kunicki

    (@kuperman87)

    Thanks Savvas,

    Nice tip ??

    Regarding the first question – there are no other way to get this statistic? I have to edit each player and add manually Goals1, GOals1p5, Goals2, right?

    It’s not possible to connect the goals somehow with the league where the goal was scored?

    Thanks,
    Piotr

    Hi Piotr,

    Indeed, there are no ways to calculate goals depending on the league, you need to manually create these new stats.

    Thanks!

    Thread Starter Piotr Kunicki

    (@kuperman87)

    Hi,

    I understand, so I have 3 separated tables now, but all points are calculated automatically – almost perfect ??

    Thanks for all.
    Piotr

    I’m glad it’s resolved!

    Please, let us know if you need anything else.

    Kind Regards,
    -Roch

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Golden Boot player list – is it possible?’ is closed to new replies.