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
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.
- TGame - For general game related functions
- TSound - Handling sound and music
- TConversation - Creating dialogues
- TMaterials - Material related methods.
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.
- THudsprite - GUI images
- THudtext - GUI texts
- THudtrackbar - Trackbars, switches, scrollers etc.
- TInventory - Inventory handler
Misc objects:
- TSkybox - 3D backdrops, skies etc.
Important notes
That means tmesh, Tmesh, TMesh, TMESH are all different words. Correct one is TMesh.
See script reference for correct form.
[top]