For a bigger pool of integers, or if you need them entirely sorted, there are several sorting algorithms you can use. They are even available within the editor, Blizzard created some templates of sorting algorithms. You can find them in the standard libraries (Trigger editor -> Ctrl + Shift + L to show libraries -> Built In -> Templates -> Algorithms).
I don't understand any of that code - are those simply actions or something else, and do you have some tutorial for that kind of stuff? Not the sorting but the code.
How do I go about doing a trigger that identifies the highest integer out of a pool of, for example, 5 integers? It's for a vote system.
I'm guessing it would be some kind of condition? But I suck at conditions ^^
If you have a low amount of integers like 5, and you really only need to know the highest of them, you chain some Max() functions, like this:
or even this
For a bigger pool of integers, or if you need them entirely sorted, there are several sorting algorithms you can use. They are even available within the editor, Blizzard created some templates of sorting algorithms. You can find them in the standard libraries (Trigger editor -> Ctrl + Shift + L to show libraries -> Built In -> Templates -> Algorithms).
@Kueken531: Go
I don't understand any of that code - are those simply actions or something else, and do you have some tutorial for that kind of stuff? Not the sorting but the code.
That's basically the same as Kueken531's.
If you don't understand it than stick to data editor and get some trigger guy on your team
@Nerfpl: Go
I understand it alright, thanks!