|  |
|  |
10-18-2005, 02:47 AM
|
#1 (permalink)
| BattleForums Junior Member
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. |
| | | | Sponsored Links |
10-18-2005, 03:27 AM
|
#2 (permalink)
|
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. |
| |
10-18-2005, 05:25 AM
|
#3 (permalink)
| BattleForums Junior Member
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. |
| |
10-18-2005, 03:02 PM
|
#4 (permalink)
|
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". |
| |
10-19-2005, 01:38 AM
|
#5 (permalink)
| BattleForums Junior Member
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.
|
| |
10-22-2005, 07:44 PM
|
#6 (permalink)
| BattleForums Senior Member
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"
__________________ : ) |
| |
10-22-2005, 08:31 PM
|
#7 (permalink)
|
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. |
| |
10-23-2005, 02:43 AM
|
#8 (permalink)
| BattleForums Junior Member
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. |
| |
10-23-2005, 06:01 AM
|
#9 (permalink)
|
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. |
| |
10-23-2005, 07:58 AM
|
#10 (permalink)
| BattleForums Senior Member
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.
__________________ : ) |
| |
10-23-2005, 08:04 AM
|
#11 (permalink)
|
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. |
| |
10-23-2005, 08:13 AM
|
#12 (permalink)
| BattleForums Senior Member
Join Date: May 2003 Location: My house Posts: 2,048
| Oh, well that's a different wayt o look at it i guess.
__________________ : ) |
| |
10-24-2005, 03:32 AM
|
#13 (permalink)
| BattleForums Junior Member
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. |
| |
10-24-2005, 07:30 AM
|
#14 (permalink)
|
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). |
| |
10-26-2005, 03:15 AM
|
#15 (permalink)
| BattleForums Junior Member
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. |
| |
11-25-2005, 06:06 PM
|
#16 (permalink)
| BattleForums Member
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 |
| |
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 |
| |
01-15-2006, 07:00 AM
|
#18 (permalink)
|
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. |
| |
01-15-2006, 02:54 PM
|
#19 (permalink)
| BattleForums Member
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 |
| |
01-20-2006, 07:52 PM
|
#20 (permalink)
|
Join Date: May 2003 Location: Temple Prime, Sarajevo Age: 22 Posts: 16,118
| I guess cause it was bumped, I will close it. |
| | | |  | | Get rid of all these ads! Take 30 seconds to register. |