• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Lumber (value) displaying triggers

Status
Not open for further replies.
Level 25
Joined
Mar 23, 2008
Messages
1,813
Here i have done the leaderboard, (im not very familiar with leaderboard) but i cant get it working, can someone tell me what i have done wrong?
  • Events
    • Map initialization
  • Actions
    • Leaderboard - Create a leaderboard for (All players) titled Pigs Builded
    • 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
  • Leaderboard - Show (Last created leaderboard)
  • Leaderboard - Sort (Last created leaderboard) by Value in Ascending order
And then
  • Events
    • Unit - A unit Begins construction
  • Conditions
    • (Unit-type of (Constructing structure)) Equal to Pig
  • Actions
    • Set Pig[(Player number of (Owner of (Constructing structure)))] = ((Pig[(Player number of (Owner of (Constructing structure)))] + 1) + 1)
    • Leaderboard - Change the value for (Owner of (Constructing structure)) in (Last created leaderboard) to Pig[(Player number of (Owner of (Constructing structure)))]
Sorry, maybe i should have asked for pigs builded, but they show in the lumber so i thought it wont matter, but anyways. What have i done wrong? Not even the leaderboard shows up...
 
Status
Not open for further replies.
Top