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

149 lines
2.5 KiB
ArmAsm

#include "constants/scrcmd.h"
#include "fielddata/script/scr_seq/event_R48.h"
#include "msgdata/msg/msg_0408_R48.h"
.include "asm/macros/script.inc"
.rodata
scrdef scr_seq_R48_000
scrdef scr_seq_R48_001
scrdef scr_seq_R48_002
scrdef_end
scr_seq_R48_001:
checkflag FLAG_UNK_189
gotoif FALSE, _001F
clearflag FLAG_UNK_189
end
_001F:
get_weekday VAR_TEMP_x4000
comparevartovalue VAR_TEMP_x4000, 5
gotoif eq, _0043
comparevartovalue VAR_TEMP_x4000, 0
gotoif eq, _0043
setflag FLAG_HIDE_CAMERON
end
_0043:
clearflag FLAG_HIDE_CAMERON
end
scr_seq_R48_000:
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, _014E
photo_album_is_full VAR_SPECIAL_x800C
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif eq, _0162
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, _00C2
apply_movement obj_player, _0178
apply_movement obj_R48_gsmiddleman1, _01B0
goto _00ED
_00C2:
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif ne, _00DD
apply_movement obj_player, _0190
goto _00ED
_00DD:
apply_movement obj_player, _019C
apply_movement obj_R48_gsmiddleman1, _01B0
_00ED:
wait_movement
scrcmd_603
scrcmd_602 1
scrcmd_604 48
scrcmd_729 VAR_SPECIAL_x800C
comparevartovalue VAR_SPECIAL_x800C, 1
gotoif ne, _0114
apply_movement obj_partner_poke, _01BC
wait_movement
_0114:
setflag FLAG_UNK_189
fade_screen 6, 1, 0, 0x00
wait_fade
cameron_photo 37
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
_014E:
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 5
waitbutton
closemsg
releaseall
end
_0162:
get_std_msg_naix 2, VAR_SPECIAL_x800C
msgbox_extern VAR_SPECIAL_x800C, 3
waitbutton
closemsg
releaseall
end
.byte 0x00, 0x00
_0178:
step 15, 1
step 12, 2
step 14, 1
step 12, 3
step 33, 1
step_end
_0190:
step 12, 3
step 33, 1
step_end
_019C:
step 12, 1
step 14, 1
step 12, 3
step 33, 1
step_end
_01B0:
step 63, 1
step 32, 1
step_end
_01BC:
step 15, 1
step 12, 1
step 1, 1
step_end
scr_seq_R48_002:
scrcmd_055 0, 1, 13, VAR_SPECIAL_x800C
scrcmd_057 3
scrcmd_058
scrcmd_060 VAR_SPECIAL_x800C
callstd 2000
end
.balign 4, 0