Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free. Whatever your game interest may be, you'll find information here where people realize that games are more than just poker online.


Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Blizzard Gaming Forums > Warcraft > Warcraft General > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 05-24-2008, 04:27 AM   #1 (permalink)
BattleForums Newbie
 
Join Date: May 2008
Posts: 4
leaderboard trouble

Hello, me again. STill working on the same map, still having some problems.

1) How do you make a leaderboard that tracks everytime a player kills any unit?

2)How do you make a leaderboard that only shows players who are in the game instead of empty slots?
demonruin is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 05-24-2008, 05:01 PM   #2 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
Re: leaderboard trouble

Two very simple problems with a billion solutions, all better than the last.

For the first one, calculate where the position on the leaderboard is (in terms of coordinates) for some general player, then use a Unit - Generic Unit event trigger for a unit dying, and work things out.

For the second one, you could make an array of, say, integers that gets updated when a player leaves. So, initially, it could be that the array is [0..12] but after Player 3 leaves, the array loops through all players and then becomes, say, [0, 1, 2, -1, 3..12] (the 0 exists so that you can simply use player[player number] rather than player[player number -1]. Then you can loop through this array and if there's a -1, then skip it.

I assume you know how to use triggers...*
__________________
* IM IN UR WIKI RVRTING UR EDITS

x42bn6 is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« connected maps | cnnected mapsss »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 12:53 PM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0