Difference between revisions of "Scripting"

From King Arthur's Gold Wiki
Jump to: navigation, search
m
 
(3 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
* [[Creating a Mod]]
 
* [[Creating a Mod]]
 
* [[Installing a Mod]]
 
* [[Installing a Mod]]
 +
* [[Adding a Mod to a Gamemode]]
 +
* [[Hooks]]
  
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?).
+
=[[Global_Functions|Global Functions]]=
  
Basic info on what kind of things are bound. Global functions and properties and the various object types + their functions and properties.
+
These may be slightly out of date.
  
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]]=
 
 
{{:Global_Functions}}
 
{{:Global_Functions}}
 
[[Global_Functions|''Go to main article...'']]
 
[[Global_Functions|''Go to main article...'']]
Line 26: Line 21:
  
 
=[[Global_Properties|Global Properties]]=
 
=[[Global_Properties|Global Properties]]=
 +
 +
These may be slightly out of date.
 +
 
{{:Global_Properties}}
 
{{:Global_Properties}}
 
[[Global_Properties|''Go to main article...'']]
 
[[Global_Properties|''Go to main article...'']]
Line 31: Line 29:
  
 
=[[Object_Types|Objects]]=
 
=[[Object_Types|Objects]]=
 +
 +
These may be slightly out of date.
 +
 
{{:Object_Types}}
 
{{:Object_Types}}
 
[[Object_Types|''Go to main article...'']]
 
[[Object_Types|''Go to main article...'']]
  
 
[[Category:Scripting]]
 
[[Category:Scripting]]

Latest revision as of 04:57, 24 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

Global Functions

These may be slightly out of date.


Global functions are functions that are globally available to be called by any script.

Go to main article...


Global Properties

These may be slightly out of date.


Global properties are variables that are globally available (for reading/writing) in any script.

Go to main article...


Objects

These may be slightly out of date.


Something here about the general concept of objects and their types.

Go to main article...