HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Question about Leaderboards

06-19-2003, 08:46 PM#1
Fanaticofanime
Here' s the problem, I'm trying to use a leader board as an "event" to activate another triger (to create a unit lets say....) How can you make it so that when someone gets 10 kills on the leader board, then they get a unit?? Thanks in advance! ;)
06-20-2003, 06:58 AM#2
Dead-Inside
Umm... First of all you need to check this every X second. And secondly your leaderboard needs a kill variable.

"A unit dies"
"Killing player = Player 1"
"Set kills(yourvariable) = kills +1"

It will look a lot different if you have more then one player!

Anyway, now make a trigger checking the kills variable.

E: Every X seconds of the game (1-2 seconds would be sufficient)
C:
A: If kills equal to 10 do create a X at X for player 1

Regards
Dead-Inside

Also, note that kills is also the leaderboard valvue.
06-20-2003, 07:06 AM#3
dataangel
You could also check to see if their kills have reached ten whenever you give them a kill -- less overhead. This doesn't have to be too repetitious either, just make the trigger that Dead-Inside suggested for checking if there are 10 kills, but without the event. Then whenever they get a kill just have it run that trigger (w/ the Trigger - Run (ignoring conditions) action).
06-20-2003, 01:56 PM#4
BananaTwist
But that trigger would only do it to ten. Try have another variable which has been set to zero and a trigger that goes like:

Event: every .01 seconds
Conditions: "kills" is equal to "giveunit+10"
Action: Set "giveunit" to "giveunit+10"
Then do an actio to actuall give the unit.
06-20-2003, 04:55 PM#5
Dead-Inside
I didn't follow that, Banana, care to elaborate?
06-20-2003, 09:57 PM#6
Fanaticofanime
Thanks Dead-inside, dataangel, I'll give that a try....

Banana Twist- I didn't follow that one either....:bgrun: share the knowledge...:D
06-21-2003, 01:45 AM#7
Fanaticofanime
Thanks everybody, I got it working!

Dataangel - Your idea worked pretty good, I tweaked it somemore so it's not repetious at all.