how to create a score indicator?

MissKerrigan

Active Member
Reaction score
23
Hello, my next task now is creating a table of the scores:

'player 1' -------- 'current score'
'player 2' -------- 'current score'
'player 3' -------- 'current score'
'player 4' -------- 'current score'

I am prepared to use variables if needed so
So don't doubt to explain variables to me

MissKerrigan
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
well you will have to record the score in variables, but other than that it should be pretty easy, there should be a normal leaderboard you can use, havent done it before, just used dialogue items instead, but it should create a collapsable box in the top right corner, id do some research on that if i were you, then to change the scores all you would need is an integer array, follow these steps to make it:
  • Right click where your triggers normally are
  • Add a variable
  • Set the variables "type" to integer if it is not an integer already
  • Make sure "constant" isnt checked and "array" is
  • Make sure it is 1 dimension, not 2-4
  • Set the size of the first dimension to the max ammount of non-computer players
  • Then to get/set the score just do something like this: SCORE_VARIABLE[<Player>] = new value
  • Every time you change the score however, you will have to update the leaderboard based on the score you just set
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top