• 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] Creep Kills Leaderboard

Status
Not open for further replies.
Level 11
Joined
Mar 30, 2008
Messages
666
Hello,I was wondering if anyone knows how to make this trigger:
When I type -cson,a new mini Leaderboard will appear with the number of creeps I killed.
Event it should be like this
  • Player - Player 1 (Red) types a chat message containing -cson as An exact match
But the rest,I don't know,can you help me?
 
Last edited:
Level 7
Joined
Jul 12, 2008
Messages
295
E: A unit dies
C: Owner of (Dying unit) equal to player 1 or player 7
A: Set integer_variable=integer_variable+1

And then make your lederboard... This is something like DotA
 
Level 5
Joined
Dec 18, 2007
Messages
205
U need a few variables. Try somethin like this:

  • Intialize
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Leaderboard - Create a leaderboard for (Player group((Player((Integer A))))) titled <empty string>
          • Leaderboard - Hide (Last created leaderboard)
          • Leaderboard - Change the display style for (Last created leaderboard) to Hide the title, Show labels, Show values, and Hide icons
          • Leaderboard - Add (Player((Integer A))) to (Last created leaderboard) with label Kills and value 0
          • Set Leaderboard_Array[(Integer A)] = (Last created leaderboard)
  • Kill
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to False
      • ((Dying unit) belongs to an ally of (Owner of (Killing unit))) Equal to False
    • Actions
      • Set Integer_Array[(Player number of (Owner of (Killing unit)))] = (Integer_Array[(Player number of (Owner of (Killing unit)))] + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Boolean_Array[(Player number of (Owner of (Killing unit)))] Equal to True
        • Then - Actions
          • Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard_Array[(Player number of (Owner of (Killing unit)))] to Integer_Array[(Player number of (Owner of (Killing unit)))]
        • Else - Actions
  • cs
    • Events
      • Player - Player 1 (Red) types a chat message containing -cson as exact match
      • -------- for all players of course --------
    • Conditions
    • Actions
      • Leaderboard - Show Leaderboard_Array[(Player number of (Triggering player))]
      • Set Boolean_Array[(Player number of (Triggering player))] = True
gl, greetz
 
Status
Not open for further replies.
Top