.module trigger_22_interact

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

.globl _fade_frames_per_step, _camera_settings, ___bank_scene_8, _scene_8

.area _CODE_255

.LOCAL_ACTOR = -4

___bank_trigger_22_interact = 255
.globl ___bank_trigger_22_interact

_trigger_22_interact::
        VM_LOCK

        VM_RESERVE              4

GBVM$trigger_22_interact$4a9471e3_f922_4c45_92b6_1f860e907376$7cb69bbf_989e_4401_9f8b_38ddfae44607$trigger$94b7065d_1858_42f3_a016_e3766346b845$script = .
.globl GBVM$trigger_22_interact$4a9471e3_f922_4c45_92b6_1f860e907376$7cb69bbf_989e_4401_9f8b_38ddfae44607$trigger$94b7065d_1858_42f3_a016_e3766346b845$script
        ; Load Scene
        VM_SET_CONST_INT8       _fade_frames_per_step, 3
        VM_FADE_OUT             1
        ; -- Calculate coordinate values
        VM_RPN
            .R_INT16    3328
            .R_REF_SET  ^/(.LOCAL_ACTOR + 1)/
            .R_INT16    384
            .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_8

        ; Stop Script
        VM_STOP
