HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leaderboard prob.

08-17-2002, 02:55 PM#1
Guest
I'm making a king of the hill map...

I have done the terrain ready and I have done the starting condition and a leaderboard.

My prob. is that I don't know how to make the triggers to update the leaderboard when a unit enters the region "hill" and leave(or die).

------------------------------------------------------------

Leaderboard should update +1 or -1 if a peasant
enters or leave(or die)

------------------------------------------------------------
I have read the tut. but it doesn't work.

How should I do the triggers?

/DrummelHolmen
08-17-2002, 10:29 PM#2
Guest
Event
Unit enters [region]

Conditions
Unit-type of (entering unit) equal to peon

Actions
Leaderboard - Change the value for (owner of entering unit) in [leaderboard] to [current leaderboard value] + 1

Do similar for when the leave or die
08-17-2002, 11:25 PM#3
Guest
thx for that but I still have a problem, the last part "[current leaderboard value] + 1"

I can't find "current leaderboard value" in the menu.

/DrummelHolmen
08-17-2002, 11:53 PM#4
Guest
Use an Array and store all scores into this.

On updating simple take the value of the array

:)