Well this might help others too....
Code:
Events:
Elapsed game time is 2 seconds
Actions:
Leaderboard - Create a leaderboard for (all players) titled "kills"
player group - pick every player in (matching (matching player) slot status) Equal to is playing) and to ( Leaderboard - add (picked player) to (last created leadboard) with label (name of (picked player) and value 0
now you make the update the leadboard triggers..
Code:
Event:
A unit dies
Conditions:
owner of killing unit is an unit-type "footman"
Actions:
Set kills( player numer of (owner of killing unit) = kills(owner of killing unit) + 1
Leadboard - Change the value of (owner of killing unit) in last created leadboard) to kills (owner of killing unit) + 1)
Leadboard - sort (last created leadboard) by value in decending order
Hope this will help someone this is how short and fast i can make it
GOOD LUCK
sry for any bad english |||hey thx very much that is very helpful |||Quote:
hey thx very much that is very helpful
Great that someone could use it |||Multiboard would probably be better to be honest, same concept, just more lengthly setting up.|||Quote:
hmm... do want to help someone whos to bored to do it him self
Well this might help others too....
Code:
Events:
Elapsed game time is 2 seconds
Actions:
Leaderboard - Create a leaderboard for (all players) titled "kills"
player group - pick every player in (matching (matching player) slot status) Equal to is playing) and to ( Leaderboard - add (picked player) to (last created leadboard) with label (name of (picked player) and value 0
now you make the update the leadboard triggers..
Code:
Event:
A unit dies
Conditions:
owner of killing unit is an unit-type "footman"
Actions:
Set kills( player numer of (owner of killing unit) = kills(owner of killing unit) + 1
Leadboard - Change the value of (owner of killing unit) in last created leadboard) to kills (owner of killing unit) + 1)
Leadboard - sort (last created leadboard) by value in decending order
Hope this will help someone this is how short and fast i can make it
GOOD LUCK
sry for any bad english
remember to add another action(unless u wont see the leaderboard/U NEED IT!): Leaderboard - show (last created leaderboard)|||Quote:
remember to add another action(unless u wont see the leaderboard/U NEED IT!): Leaderboard - show (last created leaderboard)
Don't need that, CreateLeaderboardBJ has a call to LeaderboardDisplay in its script.
Quote:
Conditions:
owner of killing unit is an unit-type "footman"
That's a player / unit-type comparison. You can't do that. Perhaps you meant to put:
Code:
Conditions
(Unit-type of (Killing unit)) Equal to Footman
or:
Code:
Conditions|||Right on! I will have to make one of these in my soon to be made hero map!.... I was also thinking of making a Dragon Ball Z map!
(Unit-type of (Triggering unit)) Equal to Footman
No comments:
Post a Comment