global.currentroom = scr_get_id_by_room_index(room);