.module actor_5_interact

.include "vm.i"
.include "data/game_globals.i"
.include "macro.i"

.globl _fade_frames_per_step, _camera_settings, ___bank_scene_16, _scene_16

.area _CODE_255

.LOCAL_ACTOR = -4

___bank_actor_5_interact = 255
.globl ___bank_actor_5_interact

_actor_5_interact::
        VM_LOCK

        VM_RESERVE              4

GBVM$actor_5_interact$f32bb834_59fd_4f0d_9df4_f914646f36f7$ad0d9790_0584_4c0f_b00b_0028b4fc3de9$actor$3fe18ce7_545b_4017_918a_f3c1e9bb22be$script = .
.globl GBVM$actor_5_interact$f32bb834_59fd_4f0d_9df4_f914646f36f7$ad0d9790_0584_4c0f_b00b_0028b4fc3de9$actor$3fe18ce7_545b_4017_918a_f3c1e9bb22be$script
        ; Text Dialogue
        VM_LOAD_TEXT            0
        .asciz "I got locked in\012here"
        VM_OVERLAY_CLEAR        0, 0, 20, 4, .UI_COLOR_WHITE, .UI_DRAW_FRAME
        VM_OVERLAY_MOVE_TO      0, 18, .OVERLAY_SPEED_INSTANT
        VM_OVERLAY_MOVE_TO      0, 14, .OVERLAY_IN_SPEED
        VM_OVERLAY_SET_SCROLL   1, 1, 18, 5, .UI_COLOR_WHITE
        VM_DISPLAY_TEXT
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT | .UI_WAIT_BTN_ANY)/
        VM_LOAD_TEXT            0
        .asciz "while looking for\012the radon :("
        VM_OVERLAY_CLEAR        0, 0, 20, 4, .UI_COLOR_WHITE, .UI_DRAW_FRAME
        VM_DISPLAY_TEXT
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT | .UI_WAIT_BTN_ANY)/
        VM_OVERLAY_MOVE_TO      0, 18, .OVERLAY_OUT_SPEED
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT)/

GBVM$actor_5_interact$0b32cb13_5560_45a7_87a2_007250d8fbd7$ad0d9790_0584_4c0f_b00b_0028b4fc3de9$actor$3fe18ce7_545b_4017_918a_f3c1e9bb22be$script = .
.globl GBVM$actor_5_interact$0b32cb13_5560_45a7_87a2_007250d8fbd7$ad0d9790_0584_4c0f_b00b_0028b4fc3de9$actor$3fe18ce7_545b_4017_918a_f3c1e9bb22be$script
        ; Variable Set To
        VM_SET_CONST            VAR_QUEST5, 1

GBVM$actor_5_interact$19fb6aa5_c36d_44fb_b6ca_3d643cb8e15b$ad0d9790_0584_4c0f_b00b_0028b4fc3de9$actor$3fe18ce7_545b_4017_918a_f3c1e9bb22be$script = .
.globl GBVM$actor_5_interact$19fb6aa5_c36d_44fb_b6ca_3d643cb8e15b$ad0d9790_0584_4c0f_b00b_0028b4fc3de9$actor$3fe18ce7_545b_4017_918a_f3c1e9bb22be$script
        ; Load Scene
        VM_SET_CONST_INT8       _fade_frames_per_step, 15
        VM_FADE_OUT             1
        ; -- Calculate coordinate values
        VM_RPN
            .R_INT16    0
            .R_REF_SET  ^/(.LOCAL_ACTOR + 1)/
            .R_INT16    0
            .R_REF_SET  ^/(.LOCAL_ACTOR + 2)/
            .R_STOP
        VM_SET_CONST            .LOCAL_ACTOR, 0
        VM_ACTOR_SET_POS        .LOCAL_ACTOR
        VM_ACTOR_SET_DIR        .LOCAL_ACTOR, .DIR_DOWN
        VM_SET_CONST_INT8       _camera_settings, .CAMERA_LOCK
        VM_RAISE                EXCEPTION_CHANGE_SCENE, 3
            IMPORT_FAR_PTR_DATA _scene_16

        ; Stop Script
        VM_STOP
