help needed!

S

shadowz01

Guest
hey i'm creating a map and i'm a little familiar with world edit but not too too much and i want to create a multiboard and/or leaderboard for the amount of gold each active player has, so far i can get both to show up but the rows and colums of the multiboard are messed up and the leaderboard doesn't show anything

please help
 

Naminator

Coming Back To Life
Reaction score
76
Do this. With only 2 triggers:

First create the leaderboard.

Create Leaderboard. Has 2 variable. Player Group and Leaderboard variable.

Code:
Create Leaderboard
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Set PlayerGroup = (All players matching (((Matching player) controller) Equal to User))
        Leaderboard - Create a leaderboard for (All players) titled Gold Leaderboard
        Set Leaderboard = (Last created leaderboard)
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
        Custom script:   call DestroyForce (udg_PlayerGroup)

And the seconds will keep the track of the gold of each player.

Code:
Leaderboard Action
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Set PlayerGroup = (All players matching (((Matching player) controller) Equal to User))
        Player Group - Pick every player in PlayerGroup and do (Actions)
            Loop - Actions
                Leaderboard - Change the value for (Picked player) in Leaderboard to ((Picked player) Current gold)
        Custom script:   call DestroyForce (udg_PlayerGroup)

Hope it helps.!
 
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