Difference between revisions of "DEF Language"

From EDukeWiki
Jump to navigation Jump to search
(New page: == Include == '''include ''filename''''' '''#include ''filename''''' Processes the script commands in '''''filename''''' at the point of the '''include''' call. == Label == '''define...)
 
 
(93 intermediate revisions by 17 users not shown)
Line 1: Line 1:
== Include ==
<div style="column-count:3;-moz-column-count:3;">
=== Setup ===


* [[cachesize (DEF)|cachesize]]
* [[define (DEF)|define]]
* [[include (DEF)|include]]
* [[includedefault (DEF)|includedefault]]
* [[loadgrp (DEF)|loadgrp]]
* [[noautoload (DEF)|noautoload]]


'''include ''filename'''''
=== Global ===


'''#include ''filename'''''
* [[globalgameflags (DEF)|globalgameflags]]
* [[numalphatables (DEF)|numalphatables]]
* [[shadefactor (DEF)|shadefactor]]
* [[globalflags (DEF)|globalflags]]


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


== Label ==
* [[basepalette (DEF)|basepalette]]
* [[blendtable (DEF)|blendtable]]
* [[highpalookup (DEF)|highpalookup]]
* [[nofloorpalrange (DEF)|nofloorpalrange]]
* [[nofullbrightrange (DEF)|nofullbrightrange]]
* [[palookup (DEF)|palookup]]
* [[fogpal (DEF)|fogpal]]
* [[makepalookup (DEF)|makepalookup]]
* [[tint (DEF)|tint]]


'''define ''label intval'''''
=== Definitions ===


'''#define ''label intval'''''
* [[artfile (DEF)|artfile]]
* [[animsounds (DEF)|animsounds]]
* [[animtilerange (DEF)|animtilerange]]
* [[model (DEF)|model]]
* [[music (DEF)|music]]
* [[newgamechoices (DEF)|newgamechoices]]
* [[skybox (DEF)|skybox]]
* [[sound (DEF)|sound]]
* [[texture (DEF)|texture]]
* [[tile (DEF)|tile]]
* [[tilefromtexture (DEF)|tilefromtexture]]
* [[voxel (DEF)|voxel]]


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


'''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.
* [[undefbasepaletterange (DEF)|undefbasepaletterange]]
* [[undefblendtablerange (DEF)|undefblendtablerange]]
* [[undefinetile (DEF)|undefinetile]]
* [[undefinetilerange (DEF)|undefinetilerange]]
* [[undefmodel (DEF)|undefmodel]]
* [[undefmodelof (DEF)|undefmodelof]]
* [[undefmodelrange (DEF)|undefmodelrange]]
* [[undefpalookuprange (DEF)|undefpalookuprange]]
* [[undeftexture (DEF)|undeftexture]]
* [[undeftexturerange (DEF)|undeftexturerange]]


== Texture ==
=== Misc ===


'''texture ''tilenum'' { ... }'''
* [[copytile (DEF)|copytile]]
* [[cutscene (DEF)|cutscene]]
* [[dummytile (DEF)|dummytile]]
* [[dummytilefrompic (DEF)|dummytilefrompic]]
* [[dummytilerange (DEF)|dummytilerange]]
* [[echo (DEF)|echo]]
* [[mapinfo (DEF)|mapinfo]]
* [[multipsky (DEF)|multipsky]]
* [[setuptile (DEF)|setuptile]]
* [[setuptilerange (DEF)|setuptilerange]]
* [[texhitscanrange (DEF)|texhitscanrange]]


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


The brace-enclosed block may contain these instructions.
* [[2dcol (DEF)|2dcol]]
* [[2dcolidxrange (DEF)|2dcolidxrange]]
* [[alphabet (DEF)|alphabet]]
* [[spritecol (DEF)|spritecol]]
* [[spritehotkey (DEF)|spritehotkey]]
* [[tilegroup (DEF)|tilegroup]]


=== Palette ===
=== Deprecated commands ===


'''pal ''palnum'' { ... }'''
* [[alphahack (DEF)|alphahack]]
* [[alphahackrange (DEF)|alphahackrange]]
* [[definemodel (DEF)|definemodel]]
* [[definemodelanim (DEF)|definemodelanim]]
* [[definemodelframe (DEF)|definemodelframe]]
* [[definemodelskin (DEF)|definemodelskin]]
* [[defineskybox (DEF)|defineskybox]]
* [[definetexture (DEF)|definetexture]]
* [[definetint (DEF)|definetint]]
* [[definevoxel (DEF)|definevoxel]]
* [[definevoxeltiles (DEF)|definevoxeltiles]]
* [[selectmodelskin (DEF)|selectmodelskin]]


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.
</div>


The brace-enclosed block may contain these instructions.
__NOTOC__
 
=== 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.

Latest revision as of 06:42, 23 February 2020