.module trigger_11_interact

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

.globl _fade_frames_per_step, _camera_settings, ___bank_scene_6, _scene_6

.area _CODE_255

.LOCAL_ACTOR = -4

___bank_trigger_11_interact = 255
.globl ___bank_trigger_11_interact

_trigger_11_interact::
        VM_LOCK

        VM_RESERVE              4

GBVM$trigger_11_interact$0c489219_1f81_4d10_9515_023f509f0916$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$b8cec195_5b07_4bae_8f9c_d0bd352b9612$script = .
.globl GBVM$trigger_11_interact$0c489219_1f81_4d10_9515_023f509f0916$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$b8cec195_5b07_4bae_8f9c_d0bd352b9612$script
        ; Load Scene
        VM_SET_CONST_INT8       _fade_frames_per_step, 3
        VM_FADE_OUT             1
        ; -- Calculate coordinate values
        VM_RPN
            .R_INT16    1152
            .R_REF_SET  ^/(.LOCAL_ACTOR + 1)/
            .R_INT16    2688
            .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_UP
        VM_SET_CONST_INT8       _camera_settings, .CAMERA_LOCK
        VM_RAISE                EXCEPTION_CHANGE_SCENE, 3
            IMPORT_FAR_PTR_DATA _scene_6

        ; Stop Script
        VM_STOP
