Skip to content
Germanunkol edited this page Apr 25, 2013 · 1 revision

Documentation

The documentation tells you about all the functions you can use to program your AI in-game. This is way more than the tutorial covers. If you want to write a good AI, sooner or later you'll have to check it out.

How to get the Documentation

A documentation is included in the trAInsported.love version of the game. Simply use a .zip file program to extract the trAInsported.love and check out the Documentation.html that will be created in the destination folder.

Otherwise, you can also look at the [online documentation] (https://github.com/Germanunkol/trAInsported/blob/master/Documentation.md).

Sandbox Functions

Each AI script is run inside a protected environment - a so-called "sandbox". This sandbox allows the player to use a lot of Lua functions, but not all of them. Here's a list of functions which are allowed in the game. Some of the functions are also altered (for example, dofile, require) to make them safer - but this might influence their behaviour.

AISandbox - List of allowed functions

Clone this wiki locally