WrathMonkey
New Member
- Reaction score
- 5
Okay, I've already come to this board with help with my TD leaderboard, but it didn't get resolved the first time. I was suggested to get a multiboard, but why would I need one when I could just make it so that each player's score is their kills, and Dark Green's score are the lives? I've seen it done on loads of TD's, so I know it's possible. I've even seen some set brown to Number of Creeps on the map, such as in Green TD, but I think I'm fine with just displaying the Lives. So, what's the problem here with my triggers?
"Leaderboard
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Kills and Lives
Custom script: set bj_wantDestroyGroup=true
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (((Picked player) slot status) Equal to Is playing) then do (Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0) else do (Do nothing)
Leaderboard - Show (Last created leaderboard)
Leaderboard - Change the value for Player 11 (Dark Green) in (Last created leaderboard) to 25
Lose Life
Events
Unit - A unit enters Checkpoint <gen>
Conditions
((Triggering unit) is Undead) Equal to True
Actions
Player Group - Pick every player in Player Group - Player 11 (Dark Green) and do (Leaderboard - Change the value for Player 11 (Dark Green) in (Last created leaderboard) to 0)
Unit - Remove (Triggering unit) from the game
Set ALL_Kills[(Player number of Player 11 (Dark Green))] = (ALL_Kills[(Player number of Player 11 (Dark Green))] - 1)
Leaderboard - Change the value for Player 11 (Dark Green) in (Last created leaderboard) to ALL_Kills[(Player number of Player 11 (Dark Green))]"
Everytime a creep enters the Checkpoint, it goes straight from 25 to -1, and goes down from there. Why doesn't it go from 25 to 24, and so on each time a creep enters the Checkpoint?
"Leaderboard
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Kills and Lives
Custom script: set bj_wantDestroyGroup=true
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (((Picked player) slot status) Equal to Is playing) then do (Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0) else do (Do nothing)
Leaderboard - Show (Last created leaderboard)
Leaderboard - Change the value for Player 11 (Dark Green) in (Last created leaderboard) to 25
Lose Life
Events
Unit - A unit enters Checkpoint <gen>
Conditions
((Triggering unit) is Undead) Equal to True
Actions
Player Group - Pick every player in Player Group - Player 11 (Dark Green) and do (Leaderboard - Change the value for Player 11 (Dark Green) in (Last created leaderboard) to 0)
Unit - Remove (Triggering unit) from the game
Set ALL_Kills[(Player number of Player 11 (Dark Green))] = (ALL_Kills[(Player number of Player 11 (Dark Green))] - 1)
Leaderboard - Change the value for Player 11 (Dark Green) in (Last created leaderboard) to ALL_Kills[(Player number of Player 11 (Dark Green))]"
Everytime a creep enters the Checkpoint, it goes straight from 25 to -1, and goes down from there. Why doesn't it go from 25 to 24, and so on each time a creep enters the Checkpoint?