Monday, April 16, 2012

Noob Leaderboard

I haven't really thought about this but i still decided to ask, what is the best way to create leader Boards with kill scores, variables containg hero kills or something else. In other words what is the best leaderboard kill scores triger. I was f****** all day with spawn and spell trigers i really had enough; so as I usually say when I'm too bored to do it myself...must...go... |||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 |||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:






View Post

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:






View Post

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
(Unit-type of (Triggering unit)) Equal to Footman
|||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!

No comments:

Post a Comment