Room goto previous

Explanation
This will moves the player to the previous room in the room list. The room list is circled in the picture below.



When no previous room exists, an error is reported. So you should always first check whether the previous room exists, as follows:

if (room != room_first) {   room_goto_previous; }

Remarks
When calling this function, please realize that this change does actually not occur at that precise moment. It only happens after the current action is fully executed. So the rest of the script will still be executed, and the same applies to possible calling scripts.