room_previous(ind)

From ENIGMA
Jump to navigation Jump to search

Description

Gets the index of the room before the given room and returns the result.

Parameters

Parameter Description
ind index of the room

Return Values

integer: Returns the index of the previous room, or -1 if it does not exist.

Example Call

// demonstrates getting the previous room
var next;
next = room_previous(room);