Awards
From PsychoWiki
PsychoStats » PsychoStats Configuration » Awards
The PsychoStats awards system is very flexible and allows for virtually any type of award to be created. However, with flexibility comes complexity too. A core set of awards are included that allow you to create very simple awards based on single statistics already present in the database for all players. For example, "Top Kills", or "Most Bombs Planted", etc.
[edit] Classifications
There are currently 3 types of classifications that awards are based on:
- Player
- Awards that are based on stats from player records (kills, deaths, bombs, flags, etc).
- Weapon
- Awards that are based on which weapons that players use.
- Weapon Classes
- Just like the Weapon classification except instead on grouping awards by the weapon used we create awards that are based on the weapon class, IE: Pistols, Rifles, Sniper, etc.
[edit] Configuring an Award
[edit] Plugins
If you desire a different type of award you would need to create a new plugin and configure a new award to use that plugin. Plugins are written in Perl and are located in the lib/PS/Award directory of where you installed PsychoStats. The plugin API is somewhat simple, but understanding how to perform SQL queries against the database to calculate awards is a little more complex. In order to write a plugin you need good knowledge of Perl and SQL. Only limited support can be given for custom plugins.