Leaderboard Help

strembitsky

Member
Reaction score
1
How would i make a leaderboard that shows you that 11 units are alive in the game, and then if one dies, and there's only 10 units left, then it shows you that there is only 10 units left?
 

Moridin

Snow Leopard
Reaction score
144
Well, you could do something like this...

Assuming you're counting the number of "Monsters" left for the player to kill...have a trigger fire at map init, that picks all the units of type "monster" and increment an integer variable for each one. Now you have the number of monsters in the beginning of the game. Set the leaderboard value to this.

You then have another trigger with the event "Unit - a unit dies". Make sure that it only fires when a monster dies with a simple unit-type condition, and finally in the actions, decrement the same integer variable and refresh the leaderboard.

That should work.
 

Inflicted

Currently inactive
Reaction score
63
if your trying to do something really simple, and theres a limit of 11 units then do something like:

time is 5 seconds
--
create leadboard
add player 1 (or any player it doesnt really matter)
set player name of player 1 (or whatever its set to) to (units alive) in this case to 11.



unit dies
--
set value of player 1 to (Integer- (all units alive))

ag this is messy and can be done alot easier.
also add a few conditions in there, i was kinda rushed when i typed this sorry

but that would work for an extremely simple leaderboard.
 
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