Difference between revisions of "Scripting"
Shadlington (Talk | contribs) |
Splittingred (Talk | contribs) |
||
Line 6: | Line 6: | ||
=Basics= | =Basics= | ||
+ | |||
+ | * [Creating a Mod] | ||
+ | * [Installing a Mod] | ||
Iunno, some stuff here about the general way of using scripts (relationship between .cfg and .as), proper way to add a new script, different ways of using scripts (rules, blobs, players?). | Iunno, some stuff here about the general way of using scripts (relationship between .cfg and .as), proper way to add a new script, different ways of using scripts (rules, blobs, players?). |
Revision as of 22:21, 23 January 2013
Placeholder
KAG uses angelscript for scripting.
The angelscript documentation is very good and worth looking at as a start point: http://www.angelcode.com/angelscript/sdk/docs/manual/doc_script.html
Basics
- [Creating a Mod]
- [Installing a Mod]
Iunno, some stuff here about the general way of using scripts (relationship between .cfg and .as), proper way to add a new script, different ways of using scripts (rules, blobs, players?).
Basic info on what kind of things are bound. Global functions and properties and the various object types + their functions and properties.
How you create your own object type in scripts? I don't know this stuff yet.
Mention about onCommand, onInit and ProcessChat too
Mention #SERVER and #CLIENT and generally doing things server/client only.
Global Functions
Global functions are functions that are globally available to be called by any script.
Global Properties
Global properties are variables that are globally available (for reading/writing) in any script.
Objects
Something here about the general concept of objects and their types.