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\

Comments

Comments are lines that Dage ignores completely inside code. You can disable one line, or make a comment to another with comments. Comments in scripts are made with two dashes --.

--This is a comment

or with blocks starting with --[[ and ending with --]]

--[[This is a long comment
extending
multiple line
--]]

Script reference

Class reference

Handlers: Are not visible in scene.

Objects: 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:

Background objects:

  • TSkybox - 3D backdrops, skies etc.

Important note!

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.

Back to top
scriptindex/start.txt · Last modified: 2010/01/10 13:10 by rahakasvi