Forum

> > CS2D > Scripts > [RELEASED] Achievements and Statistics Script
Forums overviewCS2D overview Scripts overviewLog in to reply

English [RELEASED] Achievements and Statistics Script

262 replies
Page
To the start Previous 1 213 14 Next To the start

Poll Poll

Do you like the idea of the script?

Only registered users are allowed to vote
No, it is nothing new
4.17% (3)
Yes
95.83% (69)
72 votes cast

old Poll [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
Greetings forum!

I'm Simonas a.k.a Blazing. I was responsible for contributions like Zombie Plague, Super Hero, Gun Game and CS2D Lighting & Shadows Engine. After being absent for a while I'm glad to say that for the last time I'm sharing with you my last CS2D contribution - Dynamic Achievements and Statistics Script

- - ==== Download ==== --
file cs2d Dynamic Achievements and Statistics Script (2.0)

- - ==== Screenshots ==== --
IMG:https://s22.postimg.org/779y379yp/Screenshot1.png

IMG:https://s22.postimg.org/ixnvkl2r5/Screenshot2.png

IMG:https://s22.postimg.org/tn1kcuek1/Screenshot3.png

IMG:https://s22.postimg.org/glfvmzq5t/Screenshot4.png

IMG:https://s22.postimg.org/je9370qi9/Screenshot5.png

IMG:https://s22.postimg.org/5zw0azju9/Screenshot7.png


Regards,
Blazing
edited 12×, last 28.11.15 03:56:46 pm

old Re: [RELEASED] Achievements and Statistics Script

Sparty
Reviewer Off Offline

Quote
FIRSTREPYPOST

At last someone took their time and knowledge of making that will be useful, I hope people will use this. Its gonna be useful again.
= Gud Idea

You could add lots of statistics or achievements. Maybe Meters walked? Assist etc.

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
Exactly, there could be many kind of statistics and for each game modes those statistics would matter in a different way.

I might add assists and time played in the server.
By the way what should be the max count of statistics?

I'll probably make 20 the max in the window, unless I will make more pages available.

old Re: [RELEASED] Achievements and Statistics Script

XoOt
Super User Off Offline

Quote
I suggest to add a function that will display the selected statistic for every player on the server as hudtext like "playerxyz got 183849 kills in total"
This will bring a possibility to compete with each other and compare their stats whenever they want.

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
This is actually a great idea and not so easy to implement!
I might do that. So if you press on statistics it will show for example top 100.

I might also implement graph drawing for statistics. Though these might be separate statistics feature.

old Re: [RELEASED] Achievements and Statistics Script

TheBosS_
User Off Offline

Quote
That's actually pretty cool and great.

Anyways, you could get some ideas from CoD. For ex.:

Add a button that says Medals or maybe F3 or whatever:
-Bloodthirsty (5 kills in a row without dying)
-Doublekill (Kill 2 in 2 seconds)
-Longshot -- if possible (Kills from a long range)
-Unstoppable (Kill 30 in a row without dying)

You can get more information here.

Good luck

old Re: [RELEASED] Achievements and Statistics Script

VADemon
User Off Offline

Quote
I wondered yesterday because
user SQ has written
Greetings, I'm working on achievements script for СS2D and I came up with simple file system script.[/code]

Damage per Kill or Damage per Death, dunno what makes more sense, as an additional statistic to KpD.
Money spent

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
user VADemon has written
I wondered yesterday because
user SQ has written
Greetings, I'm working on achievements script for СS2D and I came up with simple file system script.[/code]

Damage per Kill or Damage per Death, dunno what makes more sense, as an additional statistic to KpD.
Money spent

Déjà vu right? You still remembered it? This script was intended to be released 3 years ago

@user GeoB99: What is F.A.?

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
Oh sure, I though I missed something. Sure I will be adding it to File Archive. However before that I will ask someone to host the script to fix all the bugs.

For the people who are interested in customization. These are scripts for kills, deaths and kills/deaths ratio implementation. It's really easy and if you want to add or change statistics features.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--==== KILLS STATISTICS ====--
function stat_kills(killer,victim)
	if (killer ~= victim) then
		UserManager.incValue(id,"Kills",1)
	end
end
function stat_kills_variable(id)
	return(UserManager.getValue(id,"Kills"))
end

AddValue("Kills")
AddFunction("kill",stat_kills)
AddStats("Kills (total)", "gfx/stats/stat_kills.png",stat_kills_variable)

--==== DEATHS STATISTICS ====--
function stat_deaths(killer,victim)
	UserManager.incValue(victim,"Deaths",1)
end
function stat_deathsVariable(id)
	return(UserManager.getValue(id,"Deaths"))
end

AddValue("Deaths")
AddFunction("die",stat_deaths)
AddStats("Deaths", "gfx/stats/stat_deaths.png",stat_deathsVariable)

--==== KILLS/DEATHS RATIO STATISTICS ====--
function stat_kdratioVariable(id)
	local kills = UserManager.getValue(id,"Kills")
	local deaths = UserManager.getValue(id,"Deaths")
	if (kills == 0) then
		return("0.0")
	end
	local ratio = tonumber(tostring((kills / deaths)):sub(1, 5)) 
	return(ratio)
end
AddStats("K / D Ratio", "gfx/stats/stat_kd.png",stat_kdratioVariable)
edited 3×, last 24.10.15 03:48:11 pm

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
Yeah, that's easily possible. By the way, should "Round Wins" count even when you're dead while your team wins? And also if should consider armor damage in damage statistics. Also instead I will do favorite rifle, because it is quite stupid to save that much of data for each player/weapon

Current updates (Green/Red shows changes from the last time you have looked at the menu):
IMG:https://s17.postimg.org/n1uen6si7/screen.png
edited 5×, last 24.10.15 08:04:16 pm

old Re: [RELEASED] Achievements and Statistics Script

SQ
Moderator Off Offline

Quote
Depends on how many features I want to develop before uploading it into files archive. Also testing is needed before the release. I release I wouldn't want the case when everyone loses their data because some achievement script crashed lua interface.

Here is a short video how I'm planning menus to work: https://youtu.be/JeYdlUyvu8A
edited 1×, last 25.10.15 06:36:39 am
To the start Previous 1 213 14 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview