HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

More help please

08-15-2002, 06:15 AM#1
Guest
Well, I seem to get stuck in one place a lot, but this time it is kind of in many places but mainly about one thing. Leaderboard.

I want to know exactly how to use it. I want to get it where it records the amount of UNITS(not kills) a TEAM has(not player), but I don't know how to do that, since the leadeboard thing is very confusing.

Ok, next thing I want to know is, how can you make it where a TEAM wins by having a certain amount of UNITS(not kills)? Does this require the leaderboard or something?

Oh, that's less then I thought I would need help with, I will keep asking some questions though, this editor is very confusing. Well, thanks for all your help!
08-15-2002, 03:29 PM#2
Guest
Make the board use custom values instead of kills and set the UpdateLeaderboard trigger so it adds 1 to that value whenever a player of the specific team makes a kill.

EX: Team 1 has Player 1, Player 2 and Team 2 has Player 3 and Player 4:

Name:
TeamKill1
Event:
A unit owned by Player 3 dies
A unit owned by Player 4 dies
Conditions:
(Owner of (killing unit) is Equal to Player 1) or (Owner of (killing unit) is Equal to Player 2)
Action:
Set Team1Kills to (Team1Kills + 1)
Run UpdateLeaderboard <gen> ignoring conditions

Name:
TeamKill2
Event:
A unit owned by Player 1 dies
A unit owned by Player 2 dies
Conditions:
(Owner of (killing unit) is Equal to Player 3) or (Owner of (killing unit) is Equal to Player 4)
Action:
Set Team2Kills to (Team2Kills + 1)
Run UpdateLeaderboard <gen> ignoring conditions

(UpdateLeaderboard is the trigger which just updates the values shown on the leaderboard. alternately you can just include the script instead of calling the trigger)