subroom

Script Reference Rooms

subroom (roomname ; Fade delay) //Beginner

Used for : Rooms.

Parameters :

- roomname - Name of a room that shall be displayed as a subroom.
- Fade delay - Milliseconds.

Description :

Opens a subroom which is a normal room that will be displayed above your game elements. Subrooms can be used for inventories, maps, plans or gamemenues. You can close a subroom with return (). A Custom Menu can also be opened with this scriptcommand if you want to do it manually. The delay is a time in milliseconds that the subroom will need to fully appear. [Variables] can be used as parameters.

Subrooms can trigger the events on (enter) and on (exit) when they open and close.