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

ADDR

From Creatures Wiki
Jump to: navigation, search

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

Usage[edit]

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[edit]

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[edit]