Files

> > CS2D > Lua Scripts > Dynamic Achievements and Statistics Script (2.0)
Files overviewCS2D overviewLua Scripts overview

English Dynamic Achievements and Statistics Script (2.0) >

105 comments3.12 mb, 1,552 Downloads

old Dynamic Achievements and Statistics Script (2.0)

SQ
Moderator Off Offline

> UPDATE 2017/12/08
ADDED
Steam login support
CHANGED
Improved statistics load & save performance
CHANGED
Using flag images from new Lua interface
CHANGED
Optimized main data file size about 30%
CHANGED
Player can have only up to 256 values!!!
CHANGED
Old data files wont work with this version of the script

> UPDATE 2017/05/01
∗ Multi-resolution support for CS2D (1.0.0.3v support)
∗ Removed Magic Bullet achievement due to performance issues

I did contributions such as 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.

- - ==== [ illegal Attention - Note illegal ] ==== - -
INFO
This file description is not finished yet.

> If you have requests,suggestions, questions or bug reports - post them in this thread:
thread cs2d [RELEASED] Achievements and Statistics Script

- - ==== [ Installation ] ==== - -
Downloaded ZIP archive includes GFX, SFX, SYS folders that must be overwritten in CS2D. In other words, you can simply extract it in CS2D folder.

- - ==== [ Script Features ] ==== - -
     • 73 achievements
     • 35 player statistics
     • Interface allows to add new achievements and statistics
     • Pie charts & graphs for server statistics
     • Ranks
     • Configuration
     • 7 different menus

- - ==== [ Rank Feature ] ==== - -
INFO
This feature can be disabled in config.cfg
     • 25 ranks to achieve
     • Image for each rank
     • Progress bar

- - ==== [ Configuration Feature ] ==== - -
INFO
This feature is not fully finished yet
     • open "sys/lua/core/config.cfg" to modify features

- - ==== [ Graph Statistics Feature ] ==== - -
INFO
This feature can be disabled in config.cfg
     • Graph curves
     • Pie charts
     • Overall statistics menu

- - ==== [ Sample - How to Create Statistics for a Player ] ==== - -
> First Step
     • Open "sys/lua/core/list_statistics.cfg"
     • Add function
1
AddStats("Kills", "gfx/stats/stat/stat_kills.png",stat_kills_Variable,stat_kills_Variable,true)
> Second Step
     • Open "sys/lua/core/scripts/statistics_script_part3.cfg"
     • Add following code
1
2
3
4
5
6
7
8
9
10
11
--==== KILLS STATISTICS ====--
function stat_kills(killer,victim)
	if (player(killer,"team") ~= player(victim,"team")) then
		IncreaseUserValue(killer,"Kills",1)
	end
end
function stat_kills_Variable(id)
	return( GetUserValue(id,"Kills"))
end
AddValue("Kills")
AddFunction("kill",stat_kills)

- - ==== [ Sample - How to Create Achievement ] ==== - -
> First Step
     • Open "sys/lua/core/list_achievements.cfg"
     • Add function
1
AddAchievement("Body Bagger", GAMEMODE_ALL,"gfx/stats/a/body_bagger.jpg",{"Kill 25 enemies"},"BodyBagger",kill_BodyBaggerProcess)
> Second Step
     • Open "sys/lua/core/scripts/statistics_script_part3.cfg"
     • Add following code
1
2
3
4
5
6
7
8
9
10
-- ==== Body Bagger Achievement
function kill_BodyBagger(killer,victim)
	if GetUserValue(killer,"Kills") > 24 then
		OpenUnlockAchievement(killer,"BodyBagger")
	end
end
function kill_BodyBaggerProcess(id)
	return(GetUserValue(id,"Kills") / 25)
end
AddFunction("kill",kill_BodyBagger)

- - ==== [ Sample - How to Create Server Statistics ] ==== - -
> First Step
     • Open "sys/lua/core/list_graphs.cfg"
     • Add function
1
AddOverallStatistics("Overall Statistics",OvalDescription)
> Second Step
     • Open "sys/lua/core/scripts/graphs_scripts.cfg"
     • Add following code
1
2
3
4
5
-- ==== Players Count Graph
function GraphPlayersCount()
	SetGraphGlobalVariable("Players Played",#player(0,"table") )
end
AddGlobalFunction("second",GraphPlayersCount)
- - ==== [ Player Achievements & Statistics Functions ] ==== - -
∗ AddAchievement(Name, GameMode, ImagePath, Description, Achievement Variable) >
∗ AddStats(Name, ImagePath, VariableFunction, CompareFunction, CompareBar) >

-- ==== [ Global Server Statistics Functions ] ==== - -

- - ==== [ Credits ] ==== - -
user Yates - hosting official server and rank icons file cs2d Yates - Rank icons
user Starkkz - Used a little bit of saving & loading code file cs2d Stream functions library for Lua
user Crazyx - Location Mode file cs2d Locmod 1.0
user Pagyra - Player statistics graphics
user EngiN33R - Suggestions & testing
user Styx - pie chart suggestion & testing
user Sparty - Testing & giving out ideas
user GeoB99 - Testing
user TopNotch - Testing
user KimKart - Testing
user Time - Testing
user VADemon - Testing
user _Yank -Testing
edited 25×, last 24.09.19 06:42:38 pm
Approved by DC

Download Download

3.12 mb, 1,552 Downloads

Comments

105 comments
Page
To the start Previous 1 2 3 4 5 6 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

Biusem
User Off Offline

Need some help with it.. pressing the corrseponding buttons for this script interferes with The Admin Scrit 4.0.2 Final... Any help how to change the buttons?
I like it!

old

Avo
User Off Offline

No surprise actually. It's simple and amazing at the same time. It deserves more likes!

I love that graph-thingy especially, tho.
I like it!

old

SQ
Moderator Off Offline

Wow, this got 50 likes less than in a week. Though the community is dead lately, that's the best result I got so far.

old

Loooser
User Off Offline

Hi im back on Unrealsoftware again. This Script is very Cool. Its probably the most professional for CS2D.

Wouldn't it be nice to have something similar as standard implementation for CS2D?
I like it!

old

Ajmin
User Off Offline

Beyond appreciation.
I like it!

old

VADemon
User Off Offline

I once had this idea, then forgot it and... whatever, the work you've done is outstanding!
I like it!

old

Hajt
User Off Offline

Good job.
I like it!

old

_oops
User Off Offline

Amazing
I like it!

old

Untitled
User Off Offline

Best script tbh, gj.
I like it!

old

1uP
User Off Offline

We already noticed about that nice work in @PCS, good job dude.
I like it!

old

Skripter5000
User Off Offline

Love It.

So you did all Menus by making graphic, displaying them temporarily on the screen (mode 500) and you implement all the button features etc? Wow.
I like it!

old

BcY
Reviewer Playing CS2D

@user SQ: i got it.thanks for the reply mate,i really appreciate
I like it!

old

RequieM52
User Off Offline

Best Script...
I like it!

old

Leiche
Moderator Off Offline

Best script on the file archive.
I like it!

old

SQ
Moderator Off Offline

Install this admin script and then in server lua dofile() the code of achievements script (sys/lua/core/core.lua)

old

SQ
Moderator Off Offline

"control core ultimate script" - what is this?
Give me a link to a file. You should provide more information about the issue you encounter. Lua errors or anything?
To the start Previous 1 2 3 4 5 6 Next To the start