.module trigger_17_interact

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

.globl _fade_frames_per_step, _camera_settings, ___bank_scene_9, _scene_9

.area _CODE_255

.LOCAL_ACTOR = -4

___bank_trigger_17_interact = 255
.globl ___bank_trigger_17_interact

_trigger_17_interact::
        VM_LOCK

        VM_RESERVE              4

GBVM$trigger_17_interact$6ebaa0e6_1498_46b4_9391_ff6146b9ffbe$921aae93_e5d5_4664_b838_f38008dd14a7$trigger$3fb2ff62_e326_4610_a5b8_29c96f93c3a7$script = .
.globl GBVM$trigger_17_interact$6ebaa0e6_1498_46b4_9391_ff6146b9ffbe$921aae93_e5d5_4664_b838_f38008dd14a7$trigger$3fb2ff62_e326_4610_a5b8_29c96f93c3a7$script
        ; Load Scene
        VM_SET_CONST_INT8       _fade_frames_per_step, 3
        VM_FADE_OUT             1
        ; -- Calculate coordinate values
        VM_RPN
            .R_INT16    1792
            .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_9

        ; Stop Script
        VM_STOP
