Actor

From EDukeWiki
Revision as of 23:47, 22 December 2004 by TX (talk | contribs)
Jump to navigation Jump to search

An actor is any sprite with programming applied to it. An actor is defined as such:

actor <name> <strength> <action> <move> <ai> { actor code } enda

<name> is the name/tile of the actor. You can either input a defined name, or the tile number directly.

<strength> is the health of the actor.

<action> is the intial action an actor uses (optional).

<move> is the initial move of the actor (optional).

<ai> is the actor's initial ai routine (optional).

{ actor code } is obviously the code for the actor.

enda ends an actor.

Example actor:

define SOMEACTOR 3585


actor SOMEACTOR 0

ifpdistl 1024 { palfrom 32 0 16 0 }

enda