Event: Enter_Room { // Shows a screen message of the current room name when player visits a room for the first time
if (!currentRoom().isVisited){ screenMessage(currentRoom().getName()) currentRoom().isVisited = true; } } }
Description
Returns the room object the object is currently in. For an item object which is being carried it returns currentRoom() of the object it is carried by. Returns null if the object has been removed from the game.