.module trigger_24_interact

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

.globl _fade_frames_per_step, _camera_settings, ___bank_scene_17, _scene_17

.area _CODE_255

.LOCAL_ACTOR = -4

___bank_trigger_24_interact = 255
.globl ___bank_trigger_24_interact

_trigger_24_interact::
        VM_LOCK

        VM_RESERVE              4

GBVM$trigger_24_interact$f182511b_0cf9_4336_83bf_25036acbd726$a1bfb5e1_0f44_49f4_8c94_62e2ab871548$trigger$e905907d_76a4_456f_ae59_daef84155f98$script = .
.globl GBVM$trigger_24_interact$f182511b_0cf9_4336_83bf_25036acbd726$a1bfb5e1_0f44_49f4_8c94_62e2ab871548$trigger$e905907d_76a4_456f_ae59_daef84155f98$script
        ; Load Scene
        VM_SET_CONST_INT8       _fade_frames_per_step, 3
        VM_FADE_OUT             1
        ; -- Calculate coordinate values
        VM_RPN
            .R_INT16    640
            .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_LEFT
        VM_SET_CONST_INT8       _camera_settings, .CAMERA_LOCK
        VM_RAISE                EXCEPTION_CHANGE_SCENE, 3
            IMPORT_FAR_PTR_DATA _scene_17

        ; Stop Script
        VM_STOP
