.module trigger_3_interact

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

.globl _fade_frames_per_step, _camera_settings, ___bank_scene_1, _scene_1

.area _CODE_255

.LOCAL_ACTOR = -4

___bank_trigger_3_interact = 255
.globl ___bank_trigger_3_interact

_trigger_3_interact::
        VM_LOCK

        VM_RESERVE              4

GBVM$trigger_3_interact$d52daab9_409b_43ed_9905_77008ea7e6c3$7bc0030f_222d_4ec1_9d1e_e82ce34b52b9$trigger$8d094c89_55b9_427a_b486_080d5717cc69$script = .
.globl GBVM$trigger_3_interact$d52daab9_409b_43ed_9905_77008ea7e6c3$7bc0030f_222d_4ec1_9d1e_e82ce34b52b9$trigger$8d094c89_55b9_427a_b486_080d5717cc69$script
        ; Load Scene
        VM_SET_CONST_INT8       _fade_frames_per_step, 3
        VM_FADE_OUT             1
        ; -- Calculate coordinate values
        VM_RPN
            .R_INT16    8704
            .R_REF_SET  ^/(.LOCAL_ACTOR + 1)/
            .R_INT16    1664
            .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_1

        ; Stop Script
        VM_STOP
