Choose the variable that holds the largest 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 community!

    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.

Aberforth

Member
Jun 14, 2019
40
2
8
Canada
Hi! So let's say I have these three variables

Code:
set {k} to 5
set {i} to 1
set {n} to 3

How would I tell skript to find which one of the three holds the biggest value?
this would be helpful for voting systems, so whenever a player votes at an option, 1 is added to a variable, then skript would have to choose which got the most votes.
Any help appreciated, other ways of doing this are welcome as well.
 
Status
Not open for further replies.