A
Arigatou
Guest
Ok, I followed the leaderboard tutorial. (Just changed event from "allied unit of player 1" dying to "unit controlled by player 1, 2, 3, etc dying").
Now then, the leaderboard is created fine. However, the scores never increase.
I opened other maps like mine, and my score adding triggers appear the same.
How my map works is that you should gain 1 point by killing a unit controlled by another player. All players are allied, so that you must click to attack, like in snipers and paintball maps.
My Leaderboard Trigger:
Events: Game time = 5secs
Actions
Leaderboard - Create a leaderboard for (All players) titled PWNAGE
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 here is the trigger for adding score:
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Actions
Set Pwnage[(Player number of (Owner of (Killing unit)))] = Pwnage[((Player number of (Owner of (Killing unit))) + 1)]
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Pwnage[(Player number of (Owner of (Killing unit)))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
ANY HELP APPRECIATED! My map is done once this damn thing works! Thanks SO MUCH!
Now then, the leaderboard is created fine. However, the scores never increase.
I opened other maps like mine, and my score adding triggers appear the same.
How my map works is that you should gain 1 point by killing a unit controlled by another player. All players are allied, so that you must click to attack, like in snipers and paintball maps.
My Leaderboard Trigger:
Events: Game time = 5secs
Actions
Leaderboard - Create a leaderboard for (All players) titled PWNAGE
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 here is the trigger for adding score:
Events
Unit - A unit owned by Player 1 (Red) Dies
Unit - A unit owned by Player 2 (Blue) Dies
Unit - A unit owned by Player 3 (Teal) Dies
Unit - A unit owned by Player 4 (Purple) Dies
Unit - A unit owned by Player 5 (Yellow) Dies
Unit - A unit owned by Player 6 (Orange) Dies
Unit - A unit owned by Player 7 (Green) Dies
Unit - A unit owned by Player 8 (Pink) Dies
Actions
Set Pwnage[(Player number of (Owner of (Killing unit)))] = Pwnage[((Player number of (Owner of (Killing unit))) + 1)]
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Pwnage[(Player number of (Owner of (Killing unit)))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
ANY HELP APPRECIATED! My map is done once this damn thing works! Thanks SO MUCH!


