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

Need trigger that add kills to leaderboard

Status
Not open for further replies.
Level 9
Joined
Aug 15, 2007
Messages
261
  • Make
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Wait 1.00 seconds
      • Leaderboard - Create a leaderboard for (All allies of Player 1 (Red)) titled Kills
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((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
              • Do nothing
      • Leaderboard - Sort (Last created leaderboard) by Value in Descending order
      • Leaderboard - Show (Last created leaderboard)
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set Kills[0] = 0
  • Add Point
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
    • Actions
      • Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
      • Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Kills[(Player number of (Owner of (Killing unit)))]
      • Leaderboard - Sort (Last created leaderboard) by Value in Descending order
you kan change the event to Unit - A unit dies
and then add condiction an owner of triggering unit is equal to enemy or sometnig like that
or is not equal to ally
that's all
 
Status
Not open for further replies.
Top