HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quick Leader Board question

12-24-2002, 09:45 PM#1
EarlNock
What conditsions,variables and actions do i use when i want to leader board to show who has the most lumber, basically i want to the leadboard to display how much lumber/ or gold eahc play has and how to make some one win when time runs out, or when the amount of gold/lumberrr is gathered, and should i use arrays when use-ing variables fopr the leader board?
12-26-2002, 06:01 PM#2
got_ammo
For a lumber leaderboard u will only need to do a few things:

Create a trigger like this:
Events-
Map Int
Conditions-
None
Actions-
-Leaderboard-Create a leaderboard titled (Whatever)
-Player Group-Pick every player in all players controled by user player* and do set lumber**(player number of triggering player=player property-picked player current lumber
-Leaderboard-Sort last created leaderbaord in descending order
-Player Group-Pick every player in all players controled by user player* and do if player equals a user player* then do add picked player to last created leaderboard with label (Whatever) else do nothing
-Leaderboard Show last created leaderboard

That'll get you your leaderboard on lumber set up... But you will need a trigger to update it.

-Events Periodic event, every 1 second
-Conditions none
-Action
-Player Group-Pick every player in all players controled by user player* and do set lumber**(player number of triggering player=player property-picked player current lumber

*-You can change this to whatever you want.. I'm just supposing that you want user players only.
**You must create an integer variable, LUMBER. Make it an array.

If you are confused with nething i can respond with more specific help.