Dateien

> > CS2D > Lua Scripts > Dynamic Achievements and Statistics Script (2.0)
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Dynamic Achievements and Statistics Script (2.0) >

105 Kommentare3,12 mb, 1.552 Downloads

alt 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
25× editiert, zuletzt 24.09.19 18:42:38
Zugelassen von DC

Download Download

3,12 mb, 1.552 Downloads

Kommentare

105 Kommentare
Seite
Zum Anfang Vorherige 1 2 3 4 5 6 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

Jededias
User Off Offline

The best
Ich mag es!

alt

Saave007
User Off Offline

Achievements ? Already seems Steam, I like
Ich mag es!

alt

tiky
User Off Offline

Awesome
Ich mag es!

alt

FaZe_Fabian_MLG
BANNED Off Offline

glory to arstotzka comrade, and nice work.
Ich mag es!

alt

mrc
User Spielt CS2D

Waiting for the final version
Ich mag es!

alt

Hador
User Off Offline

Absolutely most awesome script ever.
Ich mag es!

alt

SQ
Moderator Off Offline

That would mean I would need to do even more achievements.
Now it takes 72 achievements to unlock all 25 ranks. That takes about 16-20 hours. All I can do is to make most already existing achievements more difficult.

alt

LiaaM
User Off Offline

This script looks pretty decent, I wish you add more ranks on the next updates.
Ich mag es!

alt Incredible work!

4Vendetta
User Off Offline

I was planning something like this , but as I never finish my projects , thank you and congratulations. Well done
Ich mag es!

alt

Dipwitz
User Off Offline

Love the menu and achievements, great job
Ich mag es!

alt

DaisukeOno
User Off Offline

Finally, i find great achievements script.
Ich mag es!

alt

Exist
User Off Offline

Best Achievements & Statistics Script ever !
Ich mag es!

alt Good

pedrofa
User Off Offline

Is Very Very Good
Ich mag es!

alt

Geneor
User Off Offline

good, and thanks )
Ich mag es!

alt

Ridho
User Off Offline

I have my own rank icon, but those are 55 icons O.o is the rank only limited to 25 or it can be expanded?
Ich mag es!

alt [Platinum +1]

Rattle189
User Off Offline

You son of a bitch! What have you done?! You gave CS2D a feature I always wanted! How could you, I mean, it's.. it's beautiful! This should be implemented into the game!

Big like from me man, nice work.
Ich mag es!

alt

Bluelytning
User Off Offline

This script is cool but after i play it once next time when i enter in a map the CS2D stop working. Please resolve.
(Sry for my bad english)
Ich mag es!

alt

SQ
Moderator Off Offline

Look at config.cfg in sys/lua/core/config.cfg

There are some options to change/disable serveractions.
Zum Anfang Vorherige 1 2 3 4 5 6 Nächste Zum Anfang