Difference between revisions of "DECORATE"
m (→Syntax: Updated) |
m (→Syntax) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
The general format of a DECORATE script looks like this: | The general format of a DECORATE script looks like this: | ||
− | + | actor '' name '' [ : '' parent ''] [ replaces '' otheractor ''] ['' ednum ''] | |
− | { | + | { |
− | + | '' [[Actor properties|properties]] '' | |
− | + | '' +/-[[Actor flags|flags]] '' | |
− | + | states | |
− | + | { | |
− | + | '' states '' | |
− | + | } | |
− | } | + | } |
A state has the following syntax: | A state has the following syntax: | ||
− | + | [Label:] | |
− | + | GARD ABCD 10 ['' flags ''] ['' [[Action functions|Action]] '' ['' [[Action functions|Thinker]] '']] | |
− | + | [goto Label|loop|wait|stop] | |
− | Those familiar with ZDoom will notice the addition of a ''Thinker''. This is the same as the normal ''Action'' function, but will be executed every tic. Note that Wolf3D runs at 70Hz instead of 35Hz so this function will essentially execute every half tic. ECWolf uses durations in 1/35th of a second so durations of X.5 are possible. | + | Those familiar with ZDoom will notice the addition of a ''Thinker''. This is the same as the normal ''Action'' function, but will be executed every tic. Note that Wolf3D runs at 70Hz instead of 35Hz so this function will essentially execute every half tic. ECWolf uses durations in 1/35th of a second so durations of X.5 are possible. ECWolf also supports randomized durations in the form random(min,max). |
At this time the only state flag supported is BRIGHT. | At this time the only state flag supported is BRIGHT. | ||
− | == | + | == See Also == |
− | + | * [[ZDoom:DECORATE|DECORATE information on the ZDoom wiki]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[Category:Special Lumps]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 19:25, 7 November 2014
DECORATE is a text actor defintion language based upon the language from ZDoom. DECORATE allows you to define many things such as monsters, decorations, key, and weapons.
Syntax
The general format of a DECORATE script looks like this:
actor name [ : parent ] [ replaces otheractor ] [ ednum ] { properties +/-flags states { states } }
A state has the following syntax:
[Label:] GARD ABCD 10 [ flags ] [ Action [ Thinker ]] [goto Label|loop|wait|stop]
Those familiar with ZDoom will notice the addition of a Thinker. This is the same as the normal Action function, but will be executed every tic. Note that Wolf3D runs at 70Hz instead of 35Hz so this function will essentially execute every half tic. ECWolf uses durations in 1/35th of a second so durations of X.5 are possible. ECWolf also supports randomized durations in the form random(min,max).
At this time the only state flag supported is BRIGHT.