Leaderboard problems

Söder

New Member
Reaction score
1
:banghead: hello i really dont get why my settings in this leaderboard dont work... the label is changed and everything but it wont start counting.....

this is my triggers... (they are turned on by another trigger with the run action, but only on of them.... the leaderboard trigger...)

Code:
SheepKills 1
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
        (Unit-type of (Triggering unit)) Equal to Sheep
    Actions
        Set Sheep_Count_1 = (Sheep_Count_1 + 1)
        Unit - Explode (Triggering unit)
        Player - Add 1 to Player 1 (Red) Current lumber
and here is the leaderboard
Code:
Leaderboard restart
    Events
    Conditions
    Actions
        Trigger - Turn on Leaderboard order <gen>
        Leaderboard - Change the title of (Last created leaderboard) to Sheep Farmers
        Leaderboard - Change the label for Player 1 (Red) in (Last created leaderboard) to Red Sheep Kills
        Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Sheep_Count_1
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
:banghead: hello i really dont get why my settings in this leaderboard dont work... the label is changed and everything but it wont start counting.....

this is my triggers... (they are turned on by another trigger with the run action, but only on of them.... the leaderboard trigger...)

Code:
SheepKills 1
    Events
        Player - Player 1 (Red) [U][B]Selects[/B][/U] a unit
    Conditions
        (Unit-type of ([B][U]Triggering unit[/U][/B])) Equal to Sheep
    Actions
        Set Sheep_Count_1 = (Sheep_Count_1 + 1)
        Unit - Explode (Triggering unit)
        Player - Add 1 to Player 1 (Red) Current lumber
and here is the leaderboard
Code:
Leaderboard restart
    Events
    Conditions
    Actions
        Trigger - Turn on Leaderboard order <gen>
        Leaderboard - Change the title of (Last created leaderboard) to Sheep Farmers
        Leaderboard - Change the label for Player 1 (Red) in (Last created leaderboard) to Red Sheep Kills
        Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Sheep_Count_1

How is the unit triggering it? o.o
 

Söder

New Member
Reaction score
1
ok now it dont work anymore....
the titel is changed but nothing else :confused: why??
Code:
Leaderboard restart
    Events
        Time - Every 0.10 seconds of game time
    Conditions
    Actions
        Leaderboard - Change the title of (Last created leaderboard) to Sheep Farmers
        Leaderboard - Change the label for Player 1 (Red) in (Last created leaderboard) to ((Name of Player 1 (Red)) +  Sheep Kills)
        Leaderboard - Change the label for Player 2 (Blue) in (Last created leaderboard) to ((Name of Player 2 (Blue)) +  Sheep Kills)
        Leaderboard - Change the label for Player 3 (Teal) in (Last created leaderboard) to ((Name of Player 3 (Teal)) +  Sheep Kills)
        Leaderboard - Change the label for Player 4 (Purple) in (Last created leaderboard) to ((Name of Player 4 (Purple)) +  Sheep Kills)
        Leaderboard - Change the label for Player 5 (Yellow) in (Last created leaderboard) to ((Name of Player 5 (Yellow)) +  Sheep Kills)
        Leaderboard - Change the label for Player 6 (Orange) in (Last created leaderboard) to ((Name of Player 6 (Orange)) +  Sheep Kills)
        Leaderboard - Change the label for Player 7 (Green) in (Last created leaderboard) to ((Name of Player 7 (Green)) +  Sheep Kills)
        Leaderboard - Change the label for Player 8 (Pink) in (Last created leaderboard) to ((Name of Player 8 (Pink)) +  Sheep Kills)
        Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Sheep_Count_1
        Leaderboard - Change the value for Player 2 (Blue) in (Last created leaderboard) to Sheep_Count_2
        Leaderboard - Change the value for Player 3 (Teal) in (Last created leaderboard) to Sheep_Count_3
        Leaderboard - Change the value for Player 4 (Purple) in (Last created leaderboard) to Sheep_Count_4
        Leaderboard - Change the value for Player 5 (Yellow) in (Last created leaderboard) to Sheep_Count_5
        Leaderboard - Change the value for Player 6 (Orange) in (Last created leaderboard) to Sheep_Count_6
        Leaderboard - Change the value for Player 7 (Green) in (Last created leaderboard) to Sheep_Count_7
        Leaderboard - Change the value for Player 8 (Pink) in (Last created leaderboard) to Sheep_Count_8
 

Romek

Super Moderator
Reaction score
964
Do "leaderboard - Show" after you've modified the variables :)
 

Exide

I am amazingly focused right now!
Reaction score
448
He meant for you to add the 'Show (Last created leaderboard)' function at the bottom of your trigger.
 

Söder

New Member
Reaction score
1
yeah i understand that but it did show up... anyway i found the problem... i had another trigger that always updated the leaderboard with other information.... sry for bothering u guys..
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top