Sort variables list by value

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Kamino_Ramos

Member
Feb 1, 2017
18
1
3
30
vk.com
I want to create clan top based on kdr for my clan system.
code_language.skript:
on death:
    add 1 to {clans::points::%{clans::players::%attacker%}%}
    # this would be {clans::points::tag of attacker's clan}
    remove 1 from {clans::points::%{clans::players::%victim%}%}
    # this would be {clans::points::tag of victim's clan}
And to make top I need to sort this {clans points clantag} by their value - numbers.

For example {clans::emoji_stuck_out_tongue:oints::XYZ} has value of 10 and goes first. {clans::emoji_stuck_out_tongue:oints::ABC} has value of 5 and goes second.

How do I do it?
 
Status
Not open for further replies.