• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Trigger] Leaderboard - wrong@trigger?!

Status
Not open for further replies.
Level 5
Joined
Jun 24, 2009
Messages
118
Again I'm asking same question - what's wrong?
Don't ask about they creating - there are two teams and I want to just teamnames not players.
  • Table
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Leaderboard - Create a leaderboard for (All players) titled Team Kills
      • Player Group - Pick every player in (All enemies of Player 6 (Orange)) and do (Actions)
        • Loop - Actions
          • Leaderboard - Add (Picked player) to (Last created leaderboard) with label The Destroyers and value 0
      • Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Leaderboard - Add (Picked player) to (Last created leaderboard) with label The Guards and value 0
      • Leaderboard - Show (Last created leaderboard)
  • UpdateGuards
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) belongs to an enemy of Player 6 (Orange)) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to True
        • Then - Actions
          • Set TeamKills_Copy[(Player number of (Owner of (Killing unit)))] = (TeamKills_Copy[(Position of Player 1 (Red) in (Last created leaderboard))] + 1)
        • Else - Actions
          • Set TeamKills_Copy[(Player number of (Owner of (Killing unit)))] = (TeamKills_Copy[(Position of Player 1 (Red) in (Last created leaderboard))] + 0)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TeamKills_Copy[(Player number of (Owner of (Killing unit)))] Equal to 120
        • Then - Actions
          • Set WinPointsG = (WinPointsG + 1)
          • Game - Display to (All players) the text: ((Name of (Player in position 2 of (Last created leaderboard))) + has been collected 120 kills and gets 1 victory point.)
        • Else - Actions
          • Leaderboard - Show (Last created leaderboard)
  • UpdateDestroyers
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) belongs to an enemy of Player 1 (Red)) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to True
        • Then - Actions
          • Set TeamKills[(Player number of (Owner of (Killing unit)))] = (TeamKills[(Player number of (Owner of (Killing unit)))] + 1)
        • Else - Actions
          • Set TeamKills[(Player number of (Owner of (Killing unit)))] = (TeamKills[(Player number of (Owner of (Killing unit)))] + 0)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TeamKills[(Player number of (Owner of (Killing unit)))] Equal to 120
        • Then - Actions
          • Set WinPoints = (WinPoints + 1)
          • Game - Display to (All players) the text: ((Name of (Player in position 1 of (Last created leaderboard))) + has been collected 120 kills and gets 1 victory point.)
        • Else - Actions
          • Leaderboard - Show (Last created leaderboard)
And also help me please about timer - if playerRed or smth other dies then the timer showing for all not only for owner of dying hero..And also hero dont respawn anymore - at start he created..

  • Player1
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
        • Loop - Actions
          • Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds
          • Countdown Timer - Create a timer window for (Last started timer) with title Respawn
          • Countdown Timer - Change the color of the time for (Last created timer window) to (100.00%, 80.00%, 20.00%) with 0.00% transparency
          • Countdown Timer - Show (Last created timer window) for (Picked player)
          • Wait 30.00 seconds
          • Hero - Instantly revive (Dying unit) at (Center of The Destroyers Region <gen>), Show revival graphics
          • Hero - Set (Reviving Hero) Hero-level to (Learned skill level), Hide level-up graphics
          • Hero - Learn skill for (Reviving Hero): (Learned Hero Skill)
          • Hero - Set (Triggering unit) experience to (Hero experience of (Dying unit)), Hide level-up graphics
          • Hero - Set (Triggering unit) experience to (Hero experience of (Dying unit)), Hide level-up graphics
          • Hero - Order (Reviving Hero) to use (Item carried by (Dying unit) in slot 1)
          • Hero - Order (Reviving Hero) to use (Item carried by (Dying unit) in slot 2)
          • Hero - Order (Reviving Hero) to use (Item carried by (Dying unit) in slot 3)
          • Hero - Order (Reviving Hero) to use (Item carried by (Dying unit) in slot 4)
          • Hero - Order (Reviving Hero) to use (Item carried by (Dying unit) in slot 5)
          • Hero - Order (Reviving Hero) to use (Item carried by (Dying unit) in slot 6)
          • Countdown Timer - Destroy (Last created timer window)
          • Countdown Timer - Hide (Last created timer window) for Player 1 (Red)
 
Status
Not open for further replies.
Top