DEF Language

From EDukeWiki
Revision as of 07:41, 18 February 2007 by Parkar (talk | contribs) (New page: == Include == '''include ''filename''''' '''#include ''filename''''' Processes the script commands in '''''filename''''' at the point of the '''include''' call. == Label == '''define...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Include

include filename

#include filename

Processes the script commands in filename at the point of the include call.

Label

define label intval

#define label intval

Declares label to represent the numeric value intval. intval can be a label, in which case the value of the label given is used.

NOTE: You may find it convenient to include DEFS.CON (for JFDuke3D) or NAMES.H to predefine many of the tile names in the art file.

Texture

texture tilenum { ... }

Defines a Hightile texture to replace an ART-file tile. tilenum may be a number, or a defined label.

The brace-enclosed block may contain these instructions.

Palette

pal palnum { ... }

Replaces the palette palnum. If a palette has no pal definition palette 0 definition will be used. Tint will not be used on palettes defined with this instruction.

The brace-enclosed block may contain these instructions.

File

file filename

name filename

Defines which texture file to use. File may be any PNG, JPG, TGA, BMP, GIF or PCX file. This instruction must be supplied.