ADDR

From Creatures Wikia

Jump to: navigation, search

ADDR is a CAOS command used to create a new room inside of a metaroom.

Usage

Syntax: ADDR METAROOM(integer) X_LEFT(integer) X_RIGHT(integer) Y_TOPLEFT(integer) Y_TOPRIGHT(integer) Y_BOTTOMLEFT(integer) Y_BOTTOMRIGHT(integer)

Creates a new room inside METAROOM, with points

  • X_LEFT, Y_TOPLEFT
  • X_LEFT, Y_BOTTOMLEFT
  • X_RIGHT, Y_TOPRIGHT
  • X_RIGHT, Y_BOTTOMRIGHT

and returns the new room's id. Note that rooms have vertical walls, but possibly sloped floors and ceilings, which is why only two X values are needed

Example

Create a perfectly square(100x100) room in metaroom VA01, and store the room id to VA02:

SETV VA02 ADDR VA01 0 100 0 0 100 100

See also

Personal tools