• 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.

[Trigger] Leader Board Issues

Status
Not open for further replies.
Level 24
Joined
May 9, 2007
Messages
3,563
Why does this not work?

  • Leaderboard
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled Gold
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • ((Picked player) controller) Equal to User
                  • ((Picked player) slot status) Equal to Is playing
            • Then - Actions
              • Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
            • Else - Actions
              • Leaderboard - Show (Last created leaderboard)
  • Updating
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Neutral Hostile
              • ((Triggering unit) is A Hero) Equal to False
        • Then - Actions
          • Set Score[(Player number of (Owner of (Killing unit)))] = (Score[(Player number of (Owner of (Killing unit)))] + 1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Neutral Hostile
              • ((Triggering unit) is A Hero) Equal to True
        • Then - Actions
          • Set Score[(Player number of (Owner of (Killing unit)))] = (Score[(Player number of (Owner of (Killing unit)))] + 150)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Not equal to Neutral Hostile
              • ((Triggering unit) is A Hero) Equal to True
        • Then - Actions
          • Set Score[(Player number of (Owner of (Dying unit)))] = (Score[(Player number of (Owner of (Dying unit)))] + 1)
        • Else - Actions
      • Leaderboard - Sort (Last created leaderboard) by Value in Descending order
 
Status
Not open for further replies.
Top