.module trigger_9_interact

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

.area _CODE_255


___bank_trigger_9_interact = 255
.globl ___bank_trigger_9_interact

_trigger_9_interact::
        VM_LOCK

GBVM$trigger_9_interact$2db95ed1_a488_43bc_8431_1334cac48dd8$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script = .
.globl GBVM$trigger_9_interact$2db95ed1_a488_43bc_8431_1334cac48dd8$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script
        ; If
        ; -- If Truthy
        VM_IF_CONST             .NE, VAR_S0T4_POSTKEYGET, 0, 1$, 0
GBVM$trigger_9_interact$580d2cb3_9bc8_48a2_b36e_2f19a9ec22d9$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script = .
.globl GBVM$trigger_9_interact$580d2cb3_9bc8_48a2_b36e_2f19a9ec22d9$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script
        ; If
        ; -- If Truthy
        VM_IF_CONST             .NE, VAR_QUEST2_0, 0, 3$, 0
GBVM$trigger_9_interact$934ed60c_b3c2_4069_a2b5_a6035e6e3341$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script = .
.globl GBVM$trigger_9_interact$934ed60c_b3c2_4069_a2b5_a6035e6e3341$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script
        ; Text Dialogue
        VM_LOAD_TEXT            0
        .asciz "Seems to be a \012pebble"
        VM_OVERLAY_CLEAR        0, 0, 20, 4, .UI_COLOR_WHITE, .UI_DRAW_FRAME
        VM_OVERLAY_MOVE_TO      0, 18, .OVERLAY_SPEED_INSTANT
        VM_OVERLAY_MOVE_TO      0, 14, .OVERLAY_IN_SPEED
        VM_OVERLAY_SET_SCROLL   1, 1, 18, 5, .UI_COLOR_WHITE
        VM_DISPLAY_TEXT
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT | .UI_WAIT_BTN_A)/
        VM_LOAD_TEXT            0
        .asciz "on the road!"
        VM_OVERLAY_CLEAR        0, 0, 20, 4, .UI_COLOR_WHITE, .UI_DRAW_FRAME
        VM_DISPLAY_TEXT
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT | .UI_WAIT_BTN_A)/
        VM_OVERLAY_MOVE_TO      0, 18, .OVERLAY_OUT_SPEED
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT)/

        VM_JUMP                 4$
3$:
GBVM$trigger_9_interact$36ddffc8_a602_46b9_bd77_c28875a3cac1$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script = .
.globl GBVM$trigger_9_interact$36ddffc8_a602_46b9_bd77_c28875a3cac1$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script
        ; Text Dialogue
        VM_LOAD_TEXT            0
        .asciz "Seems to be a \012pebble"
        VM_OVERLAY_CLEAR        0, 0, 20, 4, .UI_COLOR_WHITE, .UI_DRAW_FRAME
        VM_OVERLAY_MOVE_TO      0, 18, .OVERLAY_SPEED_INSTANT
        VM_OVERLAY_MOVE_TO      0, 14, .OVERLAY_IN_SPEED
        VM_OVERLAY_SET_SCROLL   1, 1, 18, 5, .UI_COLOR_WHITE
        VM_DISPLAY_TEXT
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT | .UI_WAIT_BTN_ANY)/
        VM_LOAD_TEXT            0
        .asciz "on the road!"
        VM_OVERLAY_CLEAR        0, 0, 20, 4, .UI_COLOR_WHITE, .UI_DRAW_FRAME
        VM_DISPLAY_TEXT
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT | .UI_WAIT_BTN_ANY)/
        VM_LOAD_TEXT            0
        .asciz "There was a key\012under it!"
        VM_OVERLAY_CLEAR        0, 0, 20, 4, .UI_COLOR_WHITE, .UI_DRAW_FRAME
        VM_DISPLAY_TEXT
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT | .UI_WAIT_BTN_ANY)/
        VM_OVERLAY_MOVE_TO      0, 18, .OVERLAY_OUT_SPEED
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT)/

GBVM$trigger_9_interact$e3cc04fe_ee98_433d_ab4b_204daf28f709$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script = .
.globl GBVM$trigger_9_interact$e3cc04fe_ee98_433d_ab4b_204daf28f709$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script
        ; Variable Set To
        VM_SET_CONST            VAR_QUEST3_0, 1

GBVM$trigger_9_interact$03f750d5_0932_4ab7_9be9_97cdde1c9a23$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script = .
.globl GBVM$trigger_9_interact$03f750d5_0932_4ab7_9be9_97cdde1c9a23$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script
        ; Variable Set To
        VM_SET_CONST            VAR_S0T4_POSTKEYGET, 1

GBVM$trigger_9_interact$1d030731_07aa_4a4e_b398_51b418073f00$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script = .
.globl GBVM$trigger_9_interact$1d030731_07aa_4a4e_b398_51b418073f00$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script
        ; Variable Set To
        VM_SET_CONST            VAR_KUMACHAT, 1

GBVM$trigger_9_interact$f4d06c0b_c86d_4994_8574_ce4ea2d89a95$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script = .
.globl GBVM$trigger_9_interact$f4d06c0b_c86d_4994_8574_ce4ea2d89a95$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script
        ; Variable Set To
        VM_SET_CONST            VAR_KUMATEXTFIX, 0

4$:

GBVM_END$trigger_9_interact$580d2cb3_9bc8_48a2_b36e_2f19a9ec22d9 = .
.globl GBVM_END$trigger_9_interact$580d2cb3_9bc8_48a2_b36e_2f19a9ec22d9
        VM_JUMP                 2$
1$:
GBVM$trigger_9_interact$f6c48e29_7cce_47cb_80d9_5b44b3b46065$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script = .
.globl GBVM$trigger_9_interact$f6c48e29_7cce_47cb_80d9_5b44b3b46065$aae81f2f_404d_41db_a9fd_32c62d07c37e$trigger$7ae2b8e3_e89b_46d2_abeb_fffd8daad1e2$script
        ; Text Dialogue
        VM_LOAD_TEXT            0
        .asciz "Seems to be a \012pebble"
        VM_OVERLAY_CLEAR        0, 0, 20, 4, .UI_COLOR_WHITE, .UI_DRAW_FRAME
        VM_OVERLAY_MOVE_TO      0, 18, .OVERLAY_SPEED_INSTANT
        VM_OVERLAY_MOVE_TO      0, 14, .OVERLAY_IN_SPEED
        VM_OVERLAY_SET_SCROLL   1, 1, 18, 5, .UI_COLOR_WHITE
        VM_DISPLAY_TEXT
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT | .UI_WAIT_BTN_A)/
        VM_LOAD_TEXT            0
        .asciz "on the road!"
        VM_OVERLAY_CLEAR        0, 0, 20, 4, .UI_COLOR_WHITE, .UI_DRAW_FRAME
        VM_DISPLAY_TEXT
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT | .UI_WAIT_BTN_A)/
        VM_OVERLAY_MOVE_TO      0, 18, .OVERLAY_OUT_SPEED
        VM_OVERLAY_WAIT         .UI_MODAL, ^/(.UI_WAIT_WINDOW | .UI_WAIT_TEXT)/

2$:

GBVM_END$trigger_9_interact$2db95ed1_a488_43bc_8431_1334cac48dd8 = .
.globl GBVM_END$trigger_9_interact$2db95ed1_a488_43bc_8431_1334cac48dd8
        ; Stop Script
        VM_STOP
