pokeheartgold/files/fielddata/script/scr_seq/scr_seq_0122_D49.s
2021-12-31 08:36:36 -05:00

1150 lines
18 KiB
ArmAsm

#include "constants/scrcmd.h"
#include "fielddata/script/scr_seq/event_D49.h"
#include "msgdata/msg/msg_0137_D49.h"
.include "asm/macros/script.inc"
.rodata
scrdef scr_seq_D49_000
scrdef scr_seq_D49_001
scrdef scr_seq_D49_002
scrdef scr_seq_D49_003
scrdef scr_seq_D49_004
scrdef scr_seq_D49_005
scrdef scr_seq_D49_006
scrdef scr_seq_D49_007
scrdef scr_seq_D49_008
scrdef scr_seq_D49_009
scrdef scr_seq_D49_010
scrdef scr_seq_D49_011
scrdef scr_seq_D49_012
scrdef scr_seq_D49_013
scrdef scr_seq_D49_014
scrdef scr_seq_D49_015
scrdef scr_seq_D49_016
scrdef scr_seq_D49_017
scrdef scr_seq_D49_018
scrdef scr_seq_D49_019
scrdef scr_seq_D49_020
scrdef scr_seq_D49_021
scrdef scr_seq_D49_022
scrdef scr_seq_D49_023
scrdef_end
scr_seq_D49_018:
checkflag FLAG_UNK_189
gotoif FALSE, _0073
clearflag FLAG_UNK_189
end
_0073:
get_weekday VAR_TEMP_x4000
comparevartovalue VAR_TEMP_x4000, 1
gotoif eq, _00C2
comparevartovalue VAR_TEMP_x4000, 2
gotoif eq, _00C2
comparevartovalue VAR_TEMP_x4000, 3
gotoif eq, _00C2
comparevartovalue VAR_TEMP_x4000, 0
gotoif eq, _00CC
comparevartovalue VAR_UNK_40DB, 0
gotoif eq, _00CC
setflag FLAG_HIDE_CAMERON
clearflag FLAG_UNK_27F
end
_00C2:
clearflag FLAG_HIDE_CAMERON
setflag FLAG_UNK_27F
end
_00CC:
setflag FLAG_HIDE_CAMERON
setflag FLAG_UNK_27F
end
scr_seq_D49_000:
scrcmd_609
lockall
release obj_D49_tsure_poke_585
release obj_D49_gsboy2
apply_movement obj_D49_thlonowner, _0414
wait_movement
npc_msg msg_0137_D49_00000
closemsg
get_player_coords VAR_TEMP_x4000, VAR_TEMP_x4001
comparevartovalue VAR_TEMP_x4000, 40
gotoif ne, _011A
apply_movement obj_D49_thlonowner, _043C
apply_movement obj_D49_tsure_poke_590, _04A8
goto _01D9
_011A:
comparevartovalue VAR_TEMP_x4000, 41
gotoif ne, _013D
apply_movement obj_D49_thlonowner, _044C
apply_movement obj_D49_tsure_poke_590, _04BC
goto _01D9
_013D:
comparevartovalue VAR_TEMP_x4000, 42
gotoif ne, _0160
apply_movement obj_D49_thlonowner, _045C
apply_movement obj_D49_tsure_poke_590, _04D0
goto _01D9
_0160:
comparevartovalue VAR_TEMP_x4000, 43
gotoif ne, _0183
apply_movement obj_D49_thlonowner, _0464
apply_movement obj_D49_tsure_poke_590, _04DC
goto _01D9
_0183:
comparevartovalue VAR_TEMP_x4000, 44
gotoif ne, _01A6
apply_movement obj_D49_thlonowner, _0474
apply_movement obj_D49_tsure_poke_590, _04F0
goto _01D9
_01A6:
comparevartovalue VAR_TEMP_x4000, 39
gotoif ne, _01C9
apply_movement obj_D49_thlonowner, _042C
apply_movement obj_D49_tsure_poke_590, _0494
goto _01D9
_01C9:
apply_movement obj_D49_thlonowner, _0484
apply_movement obj_D49_tsure_poke_590, _0504
_01D9:
wait_movement
npc_msg msg_0137_D49_00006
closemsg
apply_movement obj_D49_thlonowner, _0424
apply_movement obj_D49_tsure_poke_590, _0424
wait_movement
scrcmd_184 32780
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif ne, _020C
npc_msg msg_0137_D49_00005
goto _0218
_020C:
get_lead_mon_index VAR_SPECIAL_x8000
buffer_mon_species_name 1, VAR_SPECIAL_x8000
npc_msg msg_0137_D49_00001
_0218:
closemsg
scrcmd_602 0
scrcmd_603
scrcmd_604 55
comparevartovalue VAR_TEMP_x4000, 40
gotoif ne, _024F
apply_movement obj_D49_thlonowner, _0528
apply_movement obj_D49_tsure_poke_590, _05A0
apply_movement obj_player, _0658
goto _033E
_024F:
comparevartovalue VAR_TEMP_x4000, 41
gotoif ne, _027A
apply_movement obj_D49_thlonowner, _0538
apply_movement obj_D49_tsure_poke_590, _05BC
apply_movement obj_player, _066C
goto _033E
_027A:
comparevartovalue VAR_TEMP_x4000, 42
gotoif ne, _02A5
apply_movement obj_D49_thlonowner, _0548
apply_movement obj_D49_tsure_poke_590, _05D8
apply_movement obj_player, _0680
goto _033E
_02A5:
comparevartovalue VAR_TEMP_x4000, 43
gotoif ne, _02D0
apply_movement obj_D49_thlonowner, _0554
apply_movement obj_D49_tsure_poke_590, _05F0
apply_movement obj_player, _068C
goto _033E
_02D0:
comparevartovalue VAR_TEMP_x4000, 44
gotoif ne, _02FB
apply_movement obj_D49_thlonowner, _0564
apply_movement obj_D49_tsure_poke_590, _060C
apply_movement obj_player, _06A0
goto _033E
_02FB:
comparevartovalue VAR_TEMP_x4000, 39
gotoif ne, _0326
apply_movement obj_D49_thlonowner, _0518
apply_movement obj_D49_tsure_poke_590, _0584
apply_movement obj_player, _0644
goto _033E
_0326:
apply_movement obj_D49_thlonowner, _0574
apply_movement obj_D49_tsure_poke_590, _0628
apply_movement obj_player, _06B4
_033E:
wait_movement
scrcmd_603
scrcmd_602 1
scrcmd_604 48
npc_msg msg_0137_D49_00002
closemsg
get_player_coords VAR_SPECIAL_x8004, VAR_SPECIAL_x8005
scrcmd_102 VAR_SPECIAL_x8004, VAR_SPECIAL_x8005
apply_movement 241, _0400
wait_movement
npc_msg msg_0137_D49_00003
closemsg
apply_movement 241, _0408
wait_movement
scrcmd_103
npc_msg msg_0137_D49_00004
closemsg
apply_movement obj_D49_thlonowner, _06C8
apply_movement obj_D49_tsure_poke_590, _06D0
wait_movement
scrcmd_307 1, 0, 10, 22, 77
scrcmd_310 77
scrcmd_308 77
apply_movement obj_D49_thlonowner, _06DC
apply_movement obj_D49_tsure_poke_590, _06E4
wait_movement
hide_person obj_D49_thlonowner
play_se SEQ_SE_DP_KAIDAN2
wait_se SEQ_SE_DP_KAIDAN2
apply_movement obj_D49_tsure_poke_590, _041C
wait_movement
play_cry SPECIES_POLIWRATH, 0
wait_cry
apply_movement obj_D49_tsure_poke_590, _06E4
wait_movement
hide_person obj_D49_tsure_poke_590
play_se SEQ_SE_DP_KAIDAN2
wait_se SEQ_SE_DP_KAIDAN2
scrcmd_311 77
scrcmd_308 77
scrcmd_309 77
releaseall
setvar VAR_UNK_40DB, 1
setflag FLAG_UNK_225
setflag FLAG_UNK_982
end
.byte 0x00
_0400:
step 12, 10
step_end
_0408:
step 66, 1
step 77, 10
step_end
_0414:
step 75, 1
step_end
_041C:
step 33, 1
step_end
_0424:
step 17, 1
step_end
_042C:
step 77, 2
step 78, 3
step 77, 1
step_end
_043C:
step 77, 2
step 78, 2
step 77, 1
step_end
_044C:
step 77, 2
step 78, 1
step 77, 1
step_end
_045C:
step 77, 3
step_end
_0464:
step 77, 2
step 79, 1
step 77, 1
step_end
_0474:
step 77, 2
step 79, 2
step 77, 1
step_end
_0484:
step 77, 2
step 79, 3
step 77, 1
step_end
_0494:
step 79, 1
step 77, 2
step 78, 3
step 33, 1
step_end
_04A8:
step 79, 1
step 77, 2
step 78, 2
step 33, 1
step_end
_04BC:
step 79, 1
step 77, 2
step 78, 1
step 33, 1
step_end
_04D0:
step 79, 1
step 77, 2
step_end
_04DC:
step 79, 1
step 77, 2
step 79, 1
step 33, 1
step_end
_04F0:
step 79, 1
step 77, 2
step 79, 2
step 33, 1
step_end
_0504:
step 79, 1
step 77, 2
step 79, 3
step 33, 1
step_end
_0518:
step 15, 3
step 12, 21
step 33, 1
step_end
_0528:
step 15, 2
step 12, 21
step 33, 1
step_end
_0538:
step 15, 1
step 12, 21
step 33, 1
step_end
_0548:
step 12, 21
step 33, 1
step_end
_0554:
step 14, 1
step 12, 21
step 33, 1
step_end
_0564:
step 14, 2
step 12, 21
step 33, 1
step_end
_0574:
step 14, 3
step 12, 21
step 33, 1
step_end
_0584:
step 13, 1
step 15, 3
step 12, 20
step 14, 1
step 12, 1
step 33, 1
step_end
_05A0:
step 13, 1
step 15, 2
step 12, 20
step 14, 1
step 12, 1
step 33, 1
step_end
_05BC:
step 13, 1
step 15, 1
step 12, 20
step 14, 1
step 12, 1
step 33, 1
step_end
_05D8:
step 13, 1
step 12, 20
step 14, 1
step 12, 1
step 33, 1
step_end
_05F0:
step 13, 1
step 14, 1
step 12, 20
step 14, 1
step 12, 1
step 33, 1
step_end
_060C:
step 13, 1
step 14, 2
step 12, 20
step 14, 1
step 12, 1
step 33, 1
step_end
_0628:
step 13, 1
step 14, 3
step 12, 20
step 14, 1
step 12, 1
step 33, 1
step_end
_0644:
step 63, 2
step 12, 1
step 15, 3
step 12, 19
step_end
_0658:
step 63, 2
step 12, 1
step 15, 2
step 12, 19
step_end
_066C:
step 63, 2
step 12, 1
step 15, 1
step 12, 19
step_end
_0680:
step 63, 2
step 12, 20
step_end
_068C:
step 63, 2
step 12, 1
step 14, 1
step 12, 19
step_end
_06A0:
step 63, 2
step 12, 1
step 14, 2
step 12, 19
step_end
_06B4:
step 63, 2
step 12, 1
step 14, 3
step 12, 19
step_end
_06C8:
step 12, 2
step_end
_06D0:
step 15, 1
step 12, 1
step_end
_06DC:
step 12, 1
step_end
_06E4:
step 12, 1
step_end
scr_seq_D49_001:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
npc_msg msg_0137_D49_00007
waitbutton
closemsg
releaseall
end
scr_seq_D49_007:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
play_cry SPECIES_ODDISH, 0
npc_msg msg_0137_D49_00008
wait_cry
waitbutton
closemsg
releaseall
end
scr_seq_D49_002:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
npc_msg msg_0137_D49_00009
waitbutton
closemsg
releaseall
end
scr_seq_D49_008:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
play_cry SPECIES_MEOWTH, 0
npc_msg msg_0137_D49_00010
wait_cry
waitbutton
closemsg
releaseall
end
scr_seq_D49_003:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
scrcmd_724 12, 16384
comparevartovalue VAR_TEMP_x4000, 1
gotoif ge, _076E
npc_msg msg_0137_D49_00011
waitbutton
closemsg
releaseall
end
_076E:
checkflag FLAG_UNK_154
gotoif TRUE, _07CB
npc_msg msg_0137_D49_00012
scrcmd_724 16, 16384
comparevartovalue VAR_TEMP_x4000, 1000
gotoif ge, _079A
npc_msg msg_0137_D49_00013
waitbutton
closemsg
releaseall
end
_079A:
npc_msg msg_0137_D49_00014
setvar VAR_SPECIAL_x8004, 50
setvar VAR_SPECIAL_x8005, 1
hasspaceforitem VAR_SPECIAL_x8004, VAR_SPECIAL_x8005, VAR_SPECIAL_x800C
comparevartovalue VAR_SPECIAL_x800C, 0
gotoif eq, _07D6
callstd std_give_item_verbose
scrcmd_725 0, 100
setflag FLAG_UNK_154
_07CB:
npc_msg msg_0137_D49_00015
waitbutton
closemsg
releaseall
end
_07D6:
callstd std_bag_is_full
closemsg
releaseall
end
scr_seq_D49_009:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
play_cry SPECIES_PIDGEY, 0
npc_msg msg_0137_D49_00016
wait_cry
waitbutton
closemsg
releaseall
end
scr_seq_D49_004:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
npc_msg msg_0137_D49_00017
waitbutton
closemsg
releaseall
end
scr_seq_D49_010:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
play_cry SPECIES_SLOWBRO, 0
npc_msg msg_0137_D49_00018
wait_cry
waitbutton
closemsg
releaseall
end
scr_seq_D49_005:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
npc_msg msg_0137_D49_00019
waitbutton
closemsg
releaseall
end
scr_seq_D49_011:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
play_cry SPECIES_MACHOP, 0
npc_msg msg_0137_D49_00020
wait_cry
waitbutton
closemsg
releaseall
end
scr_seq_D49_006:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
npc_msg msg_0137_D49_00021
waitbutton
closemsg
releaseall
end
scr_seq_D49_012:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
play_cry SPECIES_SLOWPOKE, 0
npc_msg msg_0137_D49_00022
wait_cry
waitbutton
closemsg
releaseall
end
scr_seq_D49_013:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
play_cry SPECIES_FARFETCHD, 0
npc_msg msg_0137_D49_00023
wait_cry
waitbutton
closemsg
releaseall
end
scr_seq_D49_014:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
play_cry SPECIES_PSYDUCK, 0
npc_msg msg_0137_D49_00024
wait_cry
waitbutton
closemsg
releaseall
end
scr_seq_D49_015:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
checkflag FLAG_UNK_997
gotoif FALSE, _093E
npc_msg msg_0137_D49_00025
_08D1:
touchscreen_menu_hide
menu_init_std_gmm 1, 1, 0, 1, VAR_SPECIAL_x800C
menu_item_add 326, 255, 0
menu_item_add 327, 255, 1
menu_item_add 157, 255, 2
menu_exec
touchscreen_menu_show
comparevartovalue VAR_SPECIAL_x800C, 0
gotoif eq, _091D
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif eq, _0928
goto _0933
.byte 0x35, 0x00, 0x61, 0x00, 0x02, 0x00
_091D:
npc_msg msg_0137_D49_00030
goto _08D1
.byte 0x02, 0x00
_0928:
npc_msg msg_0137_D49_00031
goto _08D1
.byte 0x02, 0x00
_0933:
npc_msg msg_0137_D49_00032
waitbutton
closemsg
releaseall
end
_093E:
npc_msg msg_0137_D49_00026
buffer_players_name 0
npc_msg msg_0137_D49_00027
play_fanfare SEQ_ME_KEYITEM
wait_fanfare
npc_msg msg_0137_D49_00028
setflag FLAG_UNK_997
npc_msg msg_0137_D49_00029
goto _08D1
.byte 0x02, 0x00
_095F:
apply_movement obj_D49_shopm1_2, _09D4
wait_movement
npc_msg msg_0137_D49_00039
closemsg
scrcmd_602 0
scrcmd_603
scrcmd_604 55
comparevartovalue VAR_TEMP_x4007, 0
gotoif ne, _0993
apply_movement obj_player, _09E0
goto _09B6
_0993:
comparevartovalue VAR_TEMP_x4007, 1
gotoif ne, _09AE
apply_movement obj_player, _09EC
goto _09B6
_09AE:
apply_movement obj_player, _09F8
_09B6:
wait_movement
scrcmd_603
scrcmd_602 1
scrcmd_604 48
apply_movement obj_D49_shopm1_2, _0BF4
wait_movement
goto _093E
.byte 0x02, 0x00
_09D4:
step 2, 1
step 75, 1
step_end
_09E0:
step 15, 3
step 32, 1
step_end
_09EC:
step 15, 2
step 32, 1
step_end
_09F8:
step 15, 1
step 32, 1
step_end
scr_seq_D49_019:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
setvar VAR_TEMP_x4007, 0
checkflag FLAG_UNK_997
gotoif FALSE, _095F
_0A1D:
scrcmd_113 21, 1
scrcmd_741 16391, 32768, 32769, 32770
apply_movement obj_D49_shopm1_2, _0BEC
wait_movement
npc_msg msg_0137_D49_00033
_0A3A:
touchscreen_menu_hide
menu_init_std_gmm 1, 1, 0, 1, VAR_SPECIAL_x800C
menu_item_add 328, 255, 0
menu_item_add 329, 255, 1
menu_item_add 44, 255, 2
menu_exec
touchscreen_menu_show
comparevartovalue VAR_SPECIAL_x800C, 2
gotoif eq, _0AD6
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif eq, _0AF6
hasenoughmoneyvar VAR_SPECIAL_x800C, VAR_SPECIAL_x8001
comparevartovalue VAR_SPECIAL_x800C, 0
gotoif eq, _0AEB
npc_msg msg_0137_D49_00034
closemsg
fade_screen 6, 1, 0, 0x00
wait_fade
scrcmd_114
scrcmd_740 32768, 32771
scrcmd_150
scrcmd_113 21, 1
fade_screen 6, 1, 1, 0x00
wait_fade
comparevartovalue VAR_SPECIAL_x8003, 0
gotoif ne, _0AD0
npc_msg msg_0137_D49_00036
goto _0AD9
_0AD0:
submoneyvar VAR_SPECIAL_x8001
scrcmd_115
_0AD6:
npc_msg msg_0137_D49_00035
_0AD9:
closemsg
scrcmd_114
apply_movement obj_D49_shopm1_2, _0BF4
wait_movement
releaseall
end
_0AEB:
npc_msg msg_0137_D49_00037
goto _0AD9
.byte 0x02, 0x00
_0AF6:
comparevartovalue VAR_SPECIAL_x8002, 2000
gotoif ge, _0B80
comparevartovalue VAR_SPECIAL_x8002, 1000
gotoif ge, _0B77
comparevartovalue VAR_SPECIAL_x8002, 500
gotoif ge, _0B6E
comparevartovalue VAR_SPECIAL_x8002, 300
gotoif ge, _0B65
comparevartovalue VAR_SPECIAL_x8002, 200
gotoif ge, _0B5C
comparevartovalue VAR_SPECIAL_x8002, 100
gotoif ge, _0B53
goto _0B4A
_0B4A:
npc_msg msg_0137_D49_00041
goto _0B89
_0B53:
npc_msg msg_0137_D49_00042
goto _0B89
_0B5C:
npc_msg msg_0137_D49_00043
goto _0B89
_0B65:
npc_msg msg_0137_D49_00044
goto _0B89
_0B6E:
npc_msg msg_0137_D49_00045
goto _0B89
_0B77:
npc_msg msg_0137_D49_00046
goto _0B89
_0B80:
npc_msg msg_0137_D49_00047
goto _0B89
_0B89:
npc_msg msg_0137_D49_00040
npc_msg msg_0137_D49_00038
goto _0A3A
.byte 0x02, 0x00
scr_seq_D49_020:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
setvar VAR_TEMP_x4007, 1
checkflag FLAG_UNK_997
gotoif FALSE, _095F
goto _0A1D
.byte 0x02, 0x00
scr_seq_D49_021:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
setvar VAR_TEMP_x4007, 2
checkflag FLAG_UNK_997
gotoif FALSE, _095F
goto _0A1D
.byte 0x02, 0x00
scr_seq_D49_022:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
npc_msg msg_0137_D49_00048
waitbutton
closemsg
releaseall
end
_0BEC:
step 34, 1
step_end
_0BF4:
step 33, 1
step_end
scr_seq_D49_016:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 0
touchscreen_menu_hide
getmenuchoice VAR_SPECIAL_x800C
touchscreen_menu_show
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif eq, _0E44
photo_album_is_full VAR_SPECIAL_x800C
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif eq, _0E58
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 1
closemsg
scrcmd_602 0
scrcmd_603
scrcmd_604 55
scrcmd_386 VAR_SPECIAL_x800C
comparevartovalue VAR_SPECIAL_x800C, 0
gotoif ne, _0C75
apply_movement obj_player, _0E6C
apply_movement obj_D49_gsmiddleman1, _0EB8
goto _0CC3
_0C75:
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif ne, _0C90
apply_movement obj_player, _0E84
goto _0CC3
_0C90:
comparevartovalue VAR_SPECIAL_x800C, 3
gotoif ne, _0CB3
apply_movement obj_player, _0EA4
apply_movement obj_D49_gsmiddleman1, _0EB8
goto _0CC3
_0CB3:
apply_movement obj_player, _0E90
apply_movement obj_D49_gsmiddleman1, _0EB8
_0CC3:
wait_movement
scrcmd_603
scrcmd_602 1
scrcmd_604 48
scrcmd_729 VAR_SPECIAL_x800C
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif ne, _0CEA
apply_movement obj_partner_poke, _0EC4
wait_movement
_0CEA:
setflag FLAG_UNK_189
fade_screen 6, 1, 0, 0x00
wait_fade
cameron_photo 13
lockall
fade_screen 6, 1, 1, 0x00
wait_fade
clearflag FLAG_UNK_189
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 2
waitbutton
closemsg
releaseall
end
scr_seq_D49_017:
play_se SEQ_SE_DP_SELECT
lockall
faceplayer
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 0
touchscreen_menu_hide
getmenuchoice VAR_SPECIAL_x800C
touchscreen_menu_show
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif eq, _0E44
photo_album_is_full VAR_SPECIAL_x800C
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif eq, _0E58
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 1
closemsg
scrcmd_602 0
scrcmd_603
scrcmd_604 55
scrcmd_386 VAR_SPECIAL_x800C
comparevartovalue VAR_SPECIAL_x800C, 0
gotoif ne, _0D9D
apply_movement obj_player, _0E6C
apply_movement obj_D49_gsmiddleman1_2, _0EB8
goto _0DEB
_0D9D:
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif ne, _0DB8
apply_movement obj_player, _0E84
goto _0DEB
_0DB8:
comparevartovalue VAR_SPECIAL_x800C, 3
gotoif ne, _0DDB
apply_movement obj_player, _0EA4
apply_movement obj_D49_gsmiddleman1_2, _0EB8
goto _0DEB
_0DDB:
apply_movement obj_player, _0E90
apply_movement obj_D49_gsmiddleman1_2, _0EB8
_0DEB:
wait_movement
scrcmd_603
scrcmd_602 1
scrcmd_604 48
scrcmd_729 VAR_SPECIAL_x800C
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif ne, _0E12
apply_movement obj_partner_poke, _0EC4
wait_movement
_0E12:
fade_screen 6, 1, 0, 0x00
wait_fade
cameron_photo 14
lockall
fade_screen 6, 1, 1, 0x00
wait_fade
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 2
waitbutton
closemsg
releaseall
end
_0E44:
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 5
waitbutton
closemsg
releaseall
end
_0E58:
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 3
waitbutton
closemsg
releaseall
end
_0E6C:
step 15, 1
step 12, 2
step 14, 1
step 12, 3
step 33, 1
step_end
_0E84:
step 12, 3
step 33, 1
step_end
_0E90:
step 12, 1
step 14, 1
step 12, 3
step 33, 1
step_end
_0EA4:
step 12, 1
step 15, 1
step 12, 3
step 33, 1
step_end
_0EB8:
step 63, 1
step 32, 1
step_end
_0EC4:
step 15, 1
step 12, 1
step 1, 1
step_end
scr_seq_D49_023:
scrcmd_056 2, 0
scrcmd_057 3
scrcmd_058
scrcmd_059 49, VAR_SPECIAL_x800C
callstd 2000
end
.balign 4, 0