mirror of
https://github.com/pret/pokeheartgold.git
synced 2026-06-02 21:54:45 -05:00
85 lines
1.7 KiB
ArmAsm
85 lines
1.7 KiB
ArmAsm
#include "constants/scrcmd.h"
|
|
#include "fielddata/script/scr_seq/event_T10R0301.h"
|
|
#include "msgdata/msg/msg_0524_T10R0301.h"
|
|
.include "asm/macros/script.inc"
|
|
|
|
.rodata
|
|
|
|
scrdef scr_seq_T10R0301_000
|
|
scrdef scr_seq_T10R0301_001
|
|
scrdef scr_seq_T10R0301_002
|
|
scrdef_end
|
|
|
|
scr_seq_T10R0301_002:
|
|
goto_if_set FLAG_DEFEATED_KOGA, _0023
|
|
make_object_visible obj_T10R0301_stop
|
|
make_object_visible obj_T10R0301_stop_2
|
|
end
|
|
|
|
_0023:
|
|
end
|
|
|
|
scr_seq_T10R0301_000:
|
|
scrcmd_609
|
|
lockall
|
|
toggle_following_pokemon_movement 0
|
|
wait_following_pokemon_movement
|
|
following_pokemon_movement 55
|
|
apply_movement obj_player, _0060
|
|
wait_movement
|
|
wait_following_pokemon_movement
|
|
toggle_following_pokemon_movement 1
|
|
following_pokemon_movement 48
|
|
play_se SEQ_SE_DP_KI_GASYAN
|
|
clearflag FLAG_HIDE_KOGAS_ROOM_RETREAT
|
|
show_person obj_T10R0301_babyboy1_11
|
|
setvar VAR_TEMP_x4001, 1
|
|
releaseall
|
|
end
|
|
|
|
.balign 4, 0
|
|
_0060:
|
|
step 12, 6
|
|
step_end
|
|
|
|
scr_seq_T10R0301_001:
|
|
play_se SEQ_SE_DP_SELECT
|
|
lockall
|
|
faceplayer
|
|
goto_if_set FLAG_DEFEATED_KOGA, _00D1
|
|
npc_msg msg_0524_T10R0301_00000
|
|
closemsg
|
|
compare VAR_UNK_4135, 8
|
|
goto_if_lt _009B
|
|
trainer_battle TRAINER_ELITE_FOUR_KOGA_KOGA_2, 0, 0, 0
|
|
goto _00A3
|
|
|
|
_009B:
|
|
trainer_battle TRAINER_ELITE_FOUR_KOGA_KOGA, 0, 0, 0
|
|
_00A3:
|
|
check_battle_won VAR_SPECIAL_RESULT
|
|
compare VAR_SPECIAL_RESULT, 0
|
|
goto_if_eq _00DC
|
|
setflag FLAG_DEFEATED_KOGA
|
|
npc_msg msg_0524_T10R0301_00001
|
|
closemsg
|
|
play_se SEQ_SE_DP_KI_GASYAN
|
|
hide_person obj_T10R0301_leag_door2
|
|
hide_person obj_T10R0301_stop
|
|
hide_person obj_T10R0301_stop_2
|
|
releaseall
|
|
end
|
|
|
|
_00D1:
|
|
npc_msg msg_0524_T10R0301_00002
|
|
wait_button_or_walk_away
|
|
closemsg
|
|
releaseall
|
|
end
|
|
|
|
_00DC:
|
|
white_out
|
|
releaseall
|
|
end
|
|
.balign 4, 0
|