• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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