For organization purposes, rooms are split up into roomsets, which contain each seperate room.
"load_roomset(roomset)"
This will load the roomset into memory...
Argument |
Function |
Folder |
The folder that contains the roomset information. (Found in the rooms folder) |
In this folder is a file called "RoomSystem.txt". This file contains the scripts that add each room to the room pool. Since rooms cannot be called by scripts, no variable is needed.
"add_roomtype(index, file)"
Argument |
Function |
Index |
The internal room index used for spawning rooms. (See image below) |
File |
The file that contains the room information. (No .txt) |

Indexes for rooms.
In each room file, only one script is needed, for each block being placed..
"make_object(x position, y position, object)"
Argument |
Function |
X Position |
The x position, relative to the room, where the block will be spawned. |
Y Position |
The Y position, relative to the room, where the block will be spawned. |
Block |
The object that will be spawned in this position. |
Fortunately the authoring tool automates all of this when a mod is generated...
|