Difference between revisions of "Scripting"

From theFarWilds
Jump to: navigation, search
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This is the start of the scripting API. It will be expanded over time. If you want something ask for it in the forum. Create your scripts here: [http://thefarwilds.com/story/login.html].
+
[[Category:Scripts]]
Scripts are written in [http://www.angelcode.com/angelscript/sdk/docs/manual/index.html AngelScript], it has syntax similar to C.
+
Scripts are written in [http://www.angelcode.com/angelscript/sdk/docs/manual/index.html AngelScript] (current used version is 2.26.2), it has syntax similar to C. Create your scripts [http://story.thefarwilds.com/login.html here].  If you want something ask for it in the [http://thefarwilds.com/forum/viewforum.php?f=14 forum].
----
+
  
Functions you can implement: [[Script_Functions]]
+
The scripts you write interact with the game via a collection of [[Hook Functions]].  These hook functions are called by the game at the appropriate times and execute your code.  See the [[#Examples]] section for more details.
  
Functions you can call:
+
== API ==
[[Global Functions]]
+
* [[Preprocessor]]
 
+
* [[Hook Functions]]
[[Config Functions]]
+
* [[Global Functions]]
 
+
* [[Config Functions]]
[[Player Functions]]
+
* [[Player Functions]]
 
+
* [[Entity Functions]]
[[Entity Functions]]
+
* [[Location Functions]]
 
+
* [[DlgBox Functions]]
[[Location Functions]]
+
* [[Card Functions]]
 
+
* [[Action Functions]]
[[Card Functions]]
+
 
+
[[Action Functions]]
+
 
+
----
+
  
 +
== Examples ==
 
[[Scripting Examples]]
 
[[Scripting Examples]]
  
 
+
== Helpful Hints ==
 
+
 
[[Coordinate System]] : Coordinates in TFW are a bit weird. This page explains.
 
[[Coordinate System]] : Coordinates in TFW are a bit weird. This page explains.

Latest revision as of 15:35, 5 June 2013

Scripts are written in AngelScript (current used version is 2.26.2), it has syntax similar to C. Create your scripts here. If you want something ask for it in the forum.

The scripts you write interact with the game via a collection of Hook Functions. These hook functions are called by the game at the appropriate times and execute your code. See the #Examples section for more details.

API

Examples

Scripting Examples

Helpful Hints

Coordinate System : Coordinates in TFW are a bit weird. This page explains.