Welcome to the Creatures Wiki! Log in and join the community.
ADDR
Revision as of 16:48, 7 January 2008 by Archengule (talk) (New page: '''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(...)
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
- DELR deletes rooms