Forum

> > CS2D > Scripts > New Leaderboard
Forums overviewCS2D overview Scripts overviewLog in to reply

English New Leaderboard

4 replies
To the start Previous 1 Next To the start

old New Leaderboard

Ranu
User Off Offline

Quote
Hello, Can anyone make a new custom leaderboard for me which will sort by players (kills/deaths/assists/kpd)
Thanks

old Re: New Leaderboard

Ranu
User Off Offline

Quote
@user haha1955: I have no idea for this, I know how to make a new leaderboard but only sort by kills, not (kills, deaths, assists, kpd). Also it doesn't mean scripters can't ask others for help.

old Re: New Leaderboard

Mami Tomoe
User Off Offline

Quote
Just create a formula such as:

Score = ((kills * 3) + (assists * 2)) - deaths

And sort by score.


Unless you mean you want multiple sorting types in which case you'd need to store them in a table and use
table.sort
with a custom function.
edited 1×, last 09.07.19 07:43:20 pm

old Re: New Leaderboard

DC
Admin Off Offline

Quote
Isn't the built-in scoreboard (tab) sorted basically like that? What's the problem with it?

Also writing a custom scoreboard in Lua wouldn't be very efficient because it's a ton of values which need to be displayed and transferred to all clients.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview