• 🏆 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 help

Status
Not open for further replies.
Level 2
Joined
Mar 30, 2005
Messages
11
hum yea id like some help with a trigger for a leaderboard

i really cant make a damn leaderboard

if you're willing to help me post and il post back

i need a leaderboard that count 2 teams divided in six counting kills and death.
The amount of time elapsed I need some help with it plz
 
1st:

Create 1 variables, leaderbord one.

Now create a trigger:

Code:
Untitled Trigger 001
    Events
        Time - Elapsed game time is 0.01 seconds
    Conditions
    Actions
        Leaderboard - Create a leaderboard for (All players) titled Kills
        Set Leaderbord1 = (Last created leaderboard)
        Leaderboard - Add Player 1 (Red) to Leaderbord1 with label Player 1 kills and value 0

Then another:

Code:
Untitled Trigger 002
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderbord1 to ((Owner of (Killing unit)) Units Killed)
Leaderboard - Sort Leaderbord1 by Value in Descending order

(Player 1 (Red) Units Killed) is Player - player score trigger.

i don't know for the other one, and i am just too sleepy, was up from 12:00 PM and now its 3:00 AM ^^

so ill look a little more for it tomorrow.[/code]
 
Status
Not open for further replies.
Top