Donate

Scripting reference

Basics

Dage uses Lua 5.1 scripting engine, and it is highly recommended that you read Lua Manual.

All scripts are found in Dage Root folder/data/scripts

If you are new to Dage scripting, please read the Dage scripting guide

Script reference

Class reference

Global handlers: Are not visible in scene. You don't have to worry about destroying them, and you can create as many as you like (usually one is enough), because they all reference to same object in Dage core.

Invisible objects: Are not visible in scene, but you have to create and destroy them properly.

  • TAnimation - Scripting predefined keyframed animations
  • TShader - Using GLSL language
  • TPostEffect - Special class to handle post-effects using GLSL language

Movable objects: Are not visual, but still can be moved around.

Movable mouse targets: Are visual and can have mouse events.

  • TDummy - Invisible helper object
  • TRoom - Handling rooms
  • TActor - Animated characters that can walk in room
  • TSprite - Billboards
  • TMesh - Static objects

Graphical User Interface objects: Are visual, movable and can have mouse events.

Misc objects:

  • TSkybox - 3D backdrops, skies etc.

Important notes

All code is case sensitive!

That means tmesh, Tmesh, TMesh, TMESH are all different words. Correct one is TMesh.

See script reference for correct form.

[top]
start - Last modified by Pauli Suuraho at 2010-10-20 11:16:09.