Welcome to the Creatures Wiki! Log in and join the community.

Difference between revisions of "NEW: SIMP"

From Creatures Wiki
Jump to navigation Jump to search
Line 16: Line 16:
 
See [[Inject Your First Object]].
 
See [[Inject Your First Object]].
  
Keep in mind when creating a [[vendor]] that NEW: blocks (such as creating the vended object) change the [[TARG]] to be the new object.[http://www.gamewareeurope.com/GWDev/cdn/CDN_more.php?CDN_article_id=37]
+
Keep in mind when creating a [[vendor]] that NEW: blocks (such as creating the vended object) change the [[TARG]] to be the new object.[https://web.archive.org/web/20170814230544/http://www.gamewareeurope.com/GWDev/cdn/CDN_more.php?CDN_article_id=37]
  
 
==See also==
 
==See also==

Revision as of 22:56, 18 March 2022

NEW: SIMP is a CAOS command which creates a simple agent.

Usage

Syntax: NEW: SIMP family (int) genus (int) species (int) imagefile (string) count (int) first (int) plane (int)

Creates a simple agent of the class specified by the first three arguments, which uses sprites from the file imagefile.c16 or .s16 in the Images directory. The first sprite (POSE 0) will be at an offset of first from the start of the file, and count sprites on from this will be used. The agent will be at the specified plane - generally from 0 (furthest back) to 9000 (near the front).

The agent will use the scripts assigned to its class number. These are defined with SCRP..ENDM blocks.

Examples

Create new simple object with the classifier 2 23 10, using the sprite 'fishbowl'. Use 2 pictures from inside the 'fishbowl' sprite, and use those 2 pictures starting at position 0 in the file. Place the object in the 5000 image plane.

new: simp 2 23 10 "fishbowl" 2 0 5000

See Inject Your First Object.

Keep in mind when creating a vendor that NEW: blocks (such as creating the vended object) change the TARG to be the new object.[1]

See also