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...

Closed Thread
 
Thread Tools Display Modes
Old 10-18-2005, 02:47 AM   #1 (permalink)
BattleForums Junior Member
 
i_killa_you's Avatar
 
Join Date: Oct 2003
Age: 26
Posts: 183
Leaderboard....ugh

I spent days trying to make a leaderboard for my hero arena, I opened other maps, searched the web, and even tried to make one myself..which didn't turn out good. If possible can someone show me how to do a complete leaderboard? I want this leaderboard to display the names of the players as well as the colors, and I also want it to count the number of enemy hero kills you get.

Any help is greatly appreciated.
__________________


Put this in your signature if someone you know is fighting, has survived, or has died in a Pokemon battle.
i_killa_you is offline  
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 10-18-2005, 03:27 AM   #2 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,118
For enemy hero kills, make a variable that goes up by 1 each time a hero type unit dies.
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now  
Old 10-18-2005, 05:25 AM   #3 (permalink)
BattleForums Junior Member
 
i_killa_you's Avatar
 
Join Date: Oct 2003
Age: 26
Posts: 183
You see, thats the thing, I have no knowledge of variables. That is why I am having so much trouble..
__________________


Put this in your signature if someone you know is fighting, has survived, or has died in a Pokemon battle.
i_killa_you is offline  
Old 10-18-2005, 03:02 PM   #4 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,118
When I get home and write my crib sheet for my INT test, I'll get on World Editor and help you out of your little "jam".
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now  
Old 10-19-2005, 01:38 AM   #5 (permalink)
BattleForums Junior Member
 
i_killa_you's Avatar
 
Join Date: Oct 2003
Age: 26
Posts: 183
Thanks a lot!

Argh, I got the leaderboard all set up and everything and this is what I got:

Code:
Create
    Events
        Time - Elapsed game time is 30.00 seconds
    Conditions
    Actions
        Leaderboard - Create a leaderboard for (All players) titled War of the Heroes: ...
        Custom script:   set bj_wantDestroyGroup=true
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) controller) Equal to User
                        ((Picked player) slot status) Equal to Is playing
                    Then - Actions
                        Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
                    Else - Actions
                        Do nothing
        Leaderboard - Show (Last created leaderboard)
And for the tallying:
Code:
Trigger Tally
    Events
        Unit - A unit Dies
    Conditions
        ((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
    Actions
        Set Player_Kills[(Player number of (Owner of (Killing unit)))] = ((Player number of (Owner of (Killing unit))) + 1)
        Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Player_Kills[(Player number of (Owner of (Killing unit)))]
        Leaderboard - Sort (Last created leaderboard) by Value in Descending order
I know there is something wrong with it because every time I kill a unit the value goes up by 4...theres 2 problems with that. I want it so that only hero kills affect the score, and also want it to go up by 1..
__________________


Put this in your signature if someone you know is fighting, has survived, or has died in a Pokemon battle.

Last edited by i_killa_you; 10-19-2005 at 04:49 AM.
i_killa_you is offline  
Old 10-22-2005, 07:44 PM   #6 (permalink)
BattleForums Senior Member
 
tassadar920's Avatar
 
Join Date: May 2003
Location: My house
Posts: 2,048
I don't see the purpose in setting the player's kills to his number plus one... Should be:

set Player_Kills[(Player number of (Owner of (killing unit) ) ] = Players_Kills[blah blah] +1

Also you need a condition to check if it's a hero, I can't remember the name but it's probably just "unit type"
__________________
: )
tassadar920 is offline  
Old 10-22-2005, 08:31 PM   #7 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,118
Quote:
Originally Posted by Trigger
((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
Shouldn't that be false. This means the trigger will only work if the unit killed was an ally.
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now  
Old 10-23-2005, 02:43 AM   #8 (permalink)
BattleForums Junior Member
 
i_killa_you's Avatar
 
Join Date: Oct 2003
Age: 26
Posts: 183
Quote:
Originally Posted by tassadar920
I don't see the purpose in setting the player's kills to his number plus one... Should be:

set Player_Kills[(Player number of (Owner of (killing unit) ) ] = Players_Kills[blah blah] +1

Also you need a condition to check if it's a hero, I can't remember the name but it's probably just "unit type"
Huh?
Quote:
Shouldn't that be false. This means the trigger will only work if the unit killed was an ally.
It actually goes up in value no matter which team units you kill
__________________


Put this in your signature if someone you know is fighting, has survived, or has died in a Pokemon battle.
i_killa_you is offline  
Old 10-23-2005, 06:01 AM   #9 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,118
Awkward. Unless you create the variable array and link all elements to each player's amount of kills.
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now  
Old 10-23-2005, 07:58 AM   #10 (permalink)
BattleForums Senior Member
 
tassadar920's Avatar
 
Join Date: May 2003
Location: My house
Posts: 2,048
Yeah what I said back there...

Code:
set Player_Kills[(Player number of (Owner of (killing unit) ) ] = Players_Kills[blah blah] +1
Basically what you did the first time was you set that variable to the number of the player plus one (I don't know if you ommitted the Player_Kills variable by accident or what), but I was just rewriting it the way it should be.

Also you need the condition... (I used this in the haunted house... but I can't remember the name) " Unit - Unit Classification Check " with a check for whether the dieing unit is a hero.

And hellwolf is wrong, the condition you have just makes sure that the unit killing the other unit was an ally. Which is actually the wrong check, since you can always just kill off teamates heroes with this and rack up points.
__________________
: )
tassadar920 is offline  
Old 10-23-2005, 08:04 AM   #11 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,118
Actually, I worded when the trigger will run. So technically I am right, I just posted it the wrong way.
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now  
Old 10-23-2005, 08:13 AM   #12 (permalink)
BattleForums Senior Member
 
tassadar920's Avatar
 
Join Date: May 2003
Location: My house
Posts: 2,048
Oh, well that's a different wayt o look at it i guess.
__________________
: )
tassadar920 is offline  
Old 10-24-2005, 03:32 AM   #13 (permalink)
BattleForums Junior Member
 
i_killa_you's Avatar
 
Join Date: Oct 2003
Age: 26
Posts: 183
Arghh thanks for the help guys, but im still having troubles..can someone edit my triggers I posted above to make it correct? That will be A LOT of help.
__________________


Put this in your signature if someone you know is fighting, has survived, or has died in a Pokemon battle.
i_killa_you is offline  
Old 10-24-2005, 07:30 AM   #14 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,118
Actually, post your map that you are working on. I will give it a shot tommorow (makes life easier if you ahve the program that runs it).
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now  
Old 10-26-2005, 03:15 AM   #15 (permalink)
BattleForums Junior Member
 
i_killa_you's Avatar
 
Join Date: Oct 2003
Age: 26
Posts: 183
Ok, I PMed you it.
__________________


Put this in your signature if someone you know is fighting, has survived, or has died in a Pokemon battle.
i_killa_you is offline  
Old 11-25-2005, 06:06 PM   #16 (permalink)
BattleForums Member
 
Father_Chaos's Avatar
 
Join Date: Nov 2005
Posts: 364
As Tassadar said, just change this... you must add the kills to the Player_Kills array, not to the player number...

Code:
Trigger Tally
    Events
        Unit - A unit Dies
    Conditions
        ((Killing unit) belongs to an ally of Player 1 (Red)) Equal to True
    Actions
        Set Player_Kills[(Player number of (Owner of (Killing unit)))] = (Player_kills[(Player number of (Owner of (Killing unit)))] + 1)
        Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Player_Kills[(Player number of (Owner of (Killing unit)))]
        Leaderboard - Sort (Last created leaderboard) by Value in Descending order
__________________

Is this the end of all we know - innocence lost so long ago;
Woven in dreams - the darkest of schemes now takes hold of our destiny...
Decades of greed, plague, famine and war - we can't go on like this anymore;
Living like fools - chaos will rule this eternal paradise...


A Fool's Paradise - Symphony X

:corn Join the Image Puzzle game ! :corn
Father_Chaos is offline  
Old 01-15-2006, 04:27 AM   #17 (permalink)
BattleForums Newbie
 
Join Date: Jan 2006
Posts: 2
i will make a lead bourd for you and attach if you want
Some_One is offline  
Old 01-15-2006, 07:00 AM   #18 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,118
Sorry, but the problem was solved 2 months ago Some One. You need to check the dates of the posts before you consider helping the person.
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now  
Old 01-15-2006, 02:54 PM   #19 (permalink)
BattleForums Member
 
Father_Chaos's Avatar
 
Join Date: Nov 2005
Posts: 364
Oh god yeah, I saw this in the subscribed threads and I was like "What the **** is that"... Close close close !
__________________

Is this the end of all we know - innocence lost so long ago;
Woven in dreams - the darkest of schemes now takes hold of our destiny...
Decades of greed, plague, famine and war - we can't go on like this anymore;
Living like fools - chaos will rule this eternal paradise...


A Fool's Paradise - Symphony X

:corn Join the Image Puzzle game ! :corn
Father_Chaos is offline  
Old 01-20-2006, 07:52 PM   #20 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,118
I guess cause it was bumped, I will close it.
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now  
 
Closed Thread

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

« Unprotecting map | Trigger tutorials »

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:52 PM.



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