HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A quick question about a leaderboard trigger~

09-28-2003, 10:03 AM#1
Born2kill
ok, i've been trying to make a leaderboard trigger that will only count hero kills (team 1's hero kills team 2's hero, count as 1 hero kill in leaderboard). Each team spawns many units and my leaderboard counts every kill that unit and hero does. :(

Somebody help me~~
09-28-2003, 10:19 AM#2
theJ89
Easy stuff. Make a condition in your counting trigger that says "Killing Unit is a Hero". This is a boolean comparison, classification func.
09-28-2003, 11:01 AM#3
Born2kill
hey thx for ur reply...anyway i tried that condition but it doesn't work...emote_confused the thing is i'm so bad at triggering stuffs i had to copy this from other hero arena type of map...

this is how it looks like

Blue team leaderboard

Events: Unit - A unit owned by player 1 (Red) dies

Conditions: ((Owner of (Killing unit)) is an ally of player 1 (Red)) Equal to False

Actions: Set UnitKills[(Player number of (Owner of (Killing unit)))] = (UnitKills[Player number of (Owner of (Killing unit)))] +1)
Leaderboard - Change the value for (Owner of (Killing unit)) in TheBoard to UnitKills[Player number of (Owner of (Killing unit)))]
Leaderboard - sort TheBoard by Value in Descending order

do u think u can help me out on this?
09-28-2003, 01:36 PM#4
Dark_Templar
Well, try this:

EVENTS
-A unit dies
CONDITIONS
-Killing Unit is a hero equal to true
ACTIONS
-Set Hero Kills [Player number of owner of killing unit] = Hero Kills [Player number of owner of killing unit] + 1
-Changes the values in Leatherboard for (pn of owner of killing unit) to Hero Kills [Player number of owner of killing unit]

You will have to use hero kills as a variable array
09-28-2003, 02:03 PM#5
Dark_Templar
Well, try this:
09-28-2003, 02:09 PM#6
Dark_Templar
Also, don't forget to set the leatherboard variable to the proper leatherboard.