System Hightest Score System

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
Hightest Score System
v1.0​


hightestscoresystem.jpg



What it is?
It's for games with score, to know which player has the hightest score and to display his score and his name.
You probally think "Well, they will know if there's a multiboard." Yes but Warcraft III doesn't know who has the hightest one. To help you make the right one the winner, you need this system.


How does it work?

Gui/Jass - Gui
Lagless/Lagful - Lagless
Leakless/Leakful - Leakless
Mui/Mpi - N/A


The Code is for (12) players. It uses 3 rounds to determine which player is the best. Here's the triggers. I tried to make it the easiest possible and you'll see, there's alot of loops.
****You must edit the event and the players score (Obiously)****
****You can remove text displayed, change the variables name but you shouldn't play with the code's values unless you really know what you're doing****

Trigger:
  • Score System
    • Events
      • Player - Player 1 (Red) types a chat message containing -scores as An exact match
    • Conditions
    • Actions
      • -------- Round #1 starts here. --------
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Set Pair[(Integer A)] = ((Integer A) x 2)
          • Set Impair[(Integer A)] = (((Integer A) x 2) - 1)
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set Player[(Integer A)] = (Player((Integer A)))
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • PlayersScore[Impair[(Integer A)]] Greater than PlayersScore[Pair[(Integer A)]]
            • Then - Actions
              • Set WinnersRound_1[(Integer A)] = Player[Impair[(Integer A)]]
              • Set WinnersScore_1[(Integer A)] = PlayersScore[Impair[(Integer A)]]
            • Else - Actions
              • Set WinnersRound_1[(Integer A)] = Player[Pair[(Integer A)]]
              • Set WinnersScore_1[(Integer A)] = PlayersScore[Pair[(Integer A)]]
      • -------- Round #1 Is now finished. --------
      • -------- Round #2 starts here. --------
      • For each (Integer A) from 1 to 3, do (Actions)
        • Loop - Actions
          • Set Pair[(Integer A)] = ((Integer A) x 2)
          • Set Impair[(Integer A)] = (((Integer A) x 2) - 1)
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • WinnersScore_1[Impair[(Integer A)]] Greater than WinnersScore_1[Pair[(Integer A)]]
            • Then - Actions
              • Set WinnersRound_2[(Integer A)] = WinnersRound_1[Impair[(Integer A)]]
              • Set WinnersScore_2[(Integer A)] = WinnersScore_1[Impair[(Integer A)]]
            • Else - Actions
              • Set WinnersRound_2[(Integer A)] = WinnersRound_1[Pair[(Integer A)]]
              • Set WinnersScore_2[(Integer A)] = WinnersScore_1[Pair[(Integer A)]]
      • -------- Round #2 Is now finished. --------
      • -------- Round #3 starts here. --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WinnersScore_2[1] Greater than WinnersScore_2[2]
        • Then - Actions
          • Set WinnersRound_3[1] = WinnersRound_2[1]
          • Set WinnersScore_3[1] = WinnersScore_2[1]
        • Else - Actions
          • Set WinnersRound_3[1] = WinnersRound_2[2]
          • Set WinnersScore_3[1] = WinnersScore_2[2]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WinnersScore_3[1] Greater than WinnersScore_2[3]
        • Then - Actions
          • Set WinnersRound_3[2] = WinnersRound_3[1]
          • Set WinnersScore_3[2] = WinnersScore_3[1]
        • Else - Actions
          • Set WinnersRound_3[2] = WinnersRound_2[3]
          • Set WinnersScore_3[2] = WinnersScore_2[3]
      • Game - Display to (All players) the text: ((Name of WinnersRound_3[2]) + ( has the best score with: + ((String(WinnersScore_3[2])) + points.)))
      • -------- Round #3 Is now finished. --------
      • -------- End of the Code. --------


Includes:
  • First map is a Test one, all the rounds winners are displayed.
  • Second map is the good one if you want to use the system, only the name of the final winner is displayed.
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
I think you may intergrate it with multiboard score to increase the function.
 

Romek

Super Moderator
Reaction score
964
> to know which player has to hightest scoren
Ermm.. Yes?

All of this just to see which player has the highest score?
You do realise you can just make a leaderboard, sort it by value, and get the top player... The leaderboard doesn't have to be displayed.
 

GetTriggerUnit-

DogEntrepreneur
Reaction score
129
> to know which player has to hightest scoren
Ermm.. Yes?

All of this just to see which player has the highest score?
You do realise you can just make a leaderboard, sort it by value, and get the top player... The leaderboard doesn't have to be displayed.

If I edit it this way, could it still be considered has a system?
 

Romek

Super Moderator
Reaction score
964
No, then it'd be more of a snippet.
...If even that. It's awfully basic.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top