English Dynamic Achievements and Statistics Script (2.0) icon

105 comments
28.11.15 03:43:30 pm
like 80 like it!
3.12 mb, 1,515 Downloads
SQ
Moderator
Offline Off
> 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
Code:
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
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
Code:
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
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
Code:
1
AddOverallStatistics("Overall Statistics",OvalDescription)

> Second Step
     • Open "sys/lua/core/scripts/graphs_scripts.cfg"
     • Add following code
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 (26)
user Starkkz - Used a little bit of saving & loading code file cs2d Stream functions library for Lua (14)
user Crazyx - Location Mode file cs2d Locmod 1.0 (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
imageimageimageimageimage
edited 25×, last 24.09.19 06:42:38 pm
ok This file has been reviewed and approved by DC (29.11.15 02:25:46 pm)

Comments

105 comments
Goto 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
30.11.15 04:36:08 pm
like I like it!
Up
wesleybrasil123
User
Offline Off
(i have script control core ultimate script of admin not work
with the script achievements help! ) you have a nice admin script ?
30.11.15 04:36:06 pm
Up
SQ
Moderator
Offline Off
@user wesleybrasil123: What do you mean by that? This script does not feature admin functions.
30.11.15 04:35:59 pm
like I like it!
Up
Gaios
Reviewer
Offline Off
@user wesleybrasil123: there isn't any admin panel, lol this script doesn't require it.
30.11.15 04:33:36 pm
like I like it!
Up
Alpha Beta
User
Offline Off
Not bad.
30.11.15 04:25:48 pm
like I like it!
Up
wesleybrasil123
User
Offline Off
HOW TO GET ADMIN IN THE SCRIPT
30.11.15 07:16:20 am
like I like it!
Up
PersonNamedVictor
User
Offline Off
Wow,this is just incredible,i cant image how much time it taked for u,good job
30.11.15 06:24:01 am
Up
SQ
Moderator
Offline Off
@user BcY Don't worry, most of the size is taken by location mod
30.11.15 01:59:14 am
like I like it!
Up
Artwolf
User
Offline Off
Wow~like it so much!(^o^)
30.11.15 01:52:37 am
like I like it!
Up
BcY
Reviewer
Offline Off
Masterpiece.
But the file size is making me worried.
29.11.15 10:51:59 pm
like I like it!
Up
Avo
User
Offline Off
This is art.

More >
29.11.15 10:10:36 pm
like I like it!
Up
TopNotch
User
Offline Off
Art. Good job!
29.11.15 08:54:05 pm
like I like it!
Up
Inflexion
User
Offline Off
Nice.
29.11.15 04:28:36 pm
like I like it!
Up
Marcell
Super User
Offline Off
Damn, so sexy file

I want to touch it :$
29.11.15 03:41:11 pm
like I like it!
Up
Raisun
User
Offline Off
Top-tier.
29.11.15 03:29:26 pm
like I like it!
Up
Mew
User
Offline Off
splendid.
29.11.15 02:51:55 pm
like I like it!
Up
Dousea
User
Offline Off
Should be #1 in "Top 10 Most Amazing File In UnrealSoftware".
29.11.15 02:23:21 pm
like I like it!
Up
Yates
Reviewer
Offline Off
I was not on the whole day yesterday, but if I were, I would have been the first to like.
29.11.15 12:39:07 pm
like I like it!
Up
_Yank
User
Offline Off
Absolute killer script.
29.11.15 12:24:37 pm
like I like it!
Up
DiZiO
User
Offline Off
Awesoome!
29.11.15 08:54:58 am
like I like it!
Up
Dream Ahmed
BANNED
Offline Off
wow. this is cool D:!
To the start Previous 1 2 3 4 5 6 Next To the start