Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Script_BeginGame: ; d52e (3:552e)
- start_script
- do_frames 60
- walk_player_to_mason_lab
- do_frames 120
- enter_map $02, MASON_LABORATORY, 14, 26, NORTH
- quit_script_fully
- ; 0xd53b
- ; gap from 0xd53b to 0xd57d
- Script_ChallengeMachine: ; d57d (3:557d)
- start_script
- print_text ItsTheChallengeMachineText
- challenge_machine
- quit_script_fully
- ; 0xd583
- ; gap from 0xd583 to 0xd597
- Script_d597: ; d597 (3:5597)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Tech1MasterMedalExplanationText, Tech1AutoDeckMachineExplanationText
- quit_script_fully
- ; 0xd5a2
- ; gap from 0xd5a2 to 0xd5b5
- Script_d5b5: ; d5b5 (3:55b5)
- start_script
- print_npc_text Tech1FewEnergyCardsText
- pause_song
- play_song MUSIC_BOOSTER_PACK
- print_npc_text Tech1ReceivedEnergyCardsText
- wait_for_song_to_finish
- resume_song
- print_text_quit_fully Tech1GoodbyeText
- ; 0xd5c4
- ; gap from 0xd5c4 to 0xd5ca
- Script_Tech2: ; d5ca (3:55ca)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Tech2LegendaryCardsExplanationText, Tech2LegendaryCardsCongratsText
- quit_script_fully
- ; 0xd5d5
- Script_Tech3: ; d5d5 (3:55d5)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Tech3BoosterPackExplanationText, Tech3LegendaryCardsCongratsText
- quit_script_fully
- ; 0xd5e0
- Script_Tech4: ; d5e0 (3:55e0)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Tech4ClubsExplanationText, Tech4DefeatedTheGrandMastersText
- quit_script_fully
- ; 0xd5eb
- ; gap from 0xd5eb to 0xd5f9
- Script_Tech5: ; d5f9 (3:55f9)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Tech5DiaryAndEmailExplanationText, Tech5ChallengeMachineExplanationText
- quit_script_fully
- ; 0xd604
- ; gap from 0xd604 to 0xd61d
- Script_Sam: ; d61d (3:561d)
- start_script
- show_sam_normal_multichoice
- close_text_box
- jump_if_flag_equal EVENT_FLAG_75, $00, .ows_d63b
- jump_if_flag_equal EVENT_FLAG_75, $02, Script_LostToSam.ows_d6b0
- jump_if_flag_equal EVENT_FLAG_75, $03, .ows_d637
- print_npc_text Text05cb
- ask_question_jump Text05cc, .ows_d647
- .ows_d637
- print_npc_text Text05cd
- quit_script_fully
- ; 0xd63b
- .ows_d63b
- print_npc_text Text05ce
- ask_question_jump Text05cf, .ows_d647
- print_npc_text Text05d0
- quit_script_fully
- ; 0xd647
- .ows_d647
- close_text_box
- jump_if_player_coords_match 4, 12, .ows_above_sam
- jump_if_player_coords_match 2, 14, .ows_left_of_sam
- set_player_direction WEST
- move_player WEST, 1
- set_player_direction NORTH
- move_player NORTH, 1
- .ows_left_of_sam
- set_player_direction NORTH
- move_player NORTH, 1
- set_player_direction EAST
- move_player EAST, 1
- .ows_above_sam
- set_player_direction EAST
- move_player EAST, 1
- move_player EAST, 1
- move_player EAST, 1
- set_player_direction SOUTH
- move_player SOUTH, 1
- set_player_direction WEST
- move_active_npc NPCMovement_d889
- jump_if_flag_equal EVENT_FLAG_75, $00, .ows_d685
- start_duel PRIZES_2, SAMS_PRACTICE_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xd685
- .ows_d685
- start_duel PRIZES_2, SAMS_NORMAL_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xd68a
- Script_BeatSam: ; d68a (3:568a)
- start_script
- jump_if_flag_equal EVENT_FLAG_3E, $01, Script_EnterLabFirstTime.ows_d82d
- jump_if_flag_equal EVENT_FLAG_75, $01, Script_LostToSam.ows_d6ad
- print_npc_text Text05d1
- give_booster_packs BOOSTER_ENERGY_RANDOM, NO_BOOSTER, NO_BOOSTER
- print_text_quit_fully Text05d2
- ; 0xd69f
- Script_LostToSam: ; d69f (3:569f)
- start_script
- jump_if_flag_equal EVENT_FLAG_3E, $01, Script_EnterLabFirstTime.ows_d82d
- jump_if_flag_equal EVENT_FLAG_75, $01, .ows_d6ad
- print_text_quit_fully Text05d3
- ; 0xd6ad
- .ows_d6ad
- print_text_quit_fully Text05d4
- ; 0xd6b0
- .ows_d6b0
- print_npc_text Text05d5
- .ows_d6b3
- close_text_box
- show_sam_tutorial_multichoice
- close_text_box
- jump_if_flag_equal EVENT_FLAG_75, $07, Script_Sam.ows_d637
- jump_if_flag_equal EVENT_FLAG_75, $01, .ows_d6df
- jump_if_flag_equal EVENT_FLAG_75, $02, .ows_d6e5
- jump_if_flag_equal EVENT_FLAG_75, $03, .ows_d6eb
- jump_if_flag_equal EVENT_FLAG_75, $04, .ows_d6f1
- jump_if_flag_equal EVENT_FLAG_75, $05, .ows_d6f7
- jump_if_flag_equal EVENT_FLAG_75, $06, .ows_d6fd
- print_npc_text Text05d6
- script_jump .ows_d6b3
- ; 0xd6df
- .ows_d6df
- print_npc_text Text05d7
- script_jump .ows_d6b3
- ; 0xd6e5
- .ows_d6e5
- print_npc_text Text05d8
- script_jump .ows_d6b3
- ; 0xd6eb
- .ows_d6eb
- print_npc_text Text05d9
- script_jump .ows_d6b3
- ; 0xd6f1
- .ows_d6f1
- print_npc_text Text05da
- script_jump .ows_d6b3
- ; 0xd6f7
- .ows_d6f7
- print_npc_text Text05db
- script_jump .ows_d6b3
- ; 0xd6fd
- .ows_d6fd
- print_npc_text Text05dc
- script_jump .ows_d6b3
- ; 0xd703
- ; gap from 0xd703 to 0xd727
- Script_DrMason: ; d727 (3:5727)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_4B, .ows_d72f
- print_text_quit_fully Text05dd
- ; 0xd72f
- .ows_d72f
- try_give_medal_pc_packs
- jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $02, .ows_d738
- print_text_quit_fully Text05de
- ; 0xd738
- .ows_d738
- jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $07, .ows_d740
- print_text_quit_fully Text05df
- ; 0xd740
- .ows_d740
- jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_d747
- print_text_quit_fully Text05e0
- ; 0xd747
- .ows_d747
- jump_if_flag_nonzero_2 EVENT_FLAG_3D, .ows_d750
- max_out_flag_value EVENT_FLAG_3D
- print_text_quit_fully Text05e1
- ; 0xd750
- .ows_d750
- print_text_quit_fully Text05e2
- ; 0xd753
- Script_EnterLabFirstTime: ; d753 (3:5753)
- start_script
- move_player NORTH, 2
- move_player NORTH, 2
- move_player NORTH, 2
- move_player NORTH, 2
- move_player NORTH, 2
- move_player NORTH, 2
- move_player NORTH, 2
- move_player NORTH, 2
- move_player NORTH, 2
- print_npc_text Text05e3
- close_advanced_text_box
- set_next_npc_and_script NPC_SAM, .ows_d779
- end_script
- ret
- ; 0xd779
- .ows_d779
- start_script
- move_active_npc NPCMovement_d880
- print_npc_text Text05e4
- set_dialog_npc NPC_DRMASON
- print_npc_text Text05e5
- close_text_box
- move_active_npc NPCMovement_d882
- set_active_npc_direction EAST
- set_player_direction WEST
- close_advanced_text_box
- set_next_npc_and_script NPC_DRMASON, .ows_d794
- end_script
- ret
- ; 0xd794
- .ows_d794
- start_script
- move_active_npc NPCMovement_d88b
- do_frames 40
- print_npc_text Text05e6
- close_text_box
- move_player WEST, 1
- move_player WEST, 1
- set_player_direction SOUTH
- move_player SOUTH, 1
- move_player SOUTH, 1
- move_player SOUTH, 1
- set_player_direction WEST
- move_active_npc NPCMovement_d894
- print_npc_text Text05e7
- set_dialog_npc NPC_SAM
- print_npc_text Text05e8
- .ows_d7bc
- close_text_box
- show_sam_tutorial_multichoice
- close_text_box
- jump_if_flag_equal EVENT_FLAG_75, $07, .ows_d80c
- jump_if_flag_equal EVENT_FLAG_75, $01, .ows_d7e8
- jump_if_flag_equal EVENT_FLAG_75, $02, .ows_d7ee
- jump_if_flag_equal EVENT_FLAG_75, $03, .ows_d7f4
- jump_if_flag_equal EVENT_FLAG_75, $04, .ows_d7fa
- jump_if_flag_equal EVENT_FLAG_75, $05, .ows_d800
- jump_if_flag_equal EVENT_FLAG_75, $06, .ows_d806
- print_npc_text Text05d6
- script_jump .ows_d7bc
- ; 0xd7e8
- .ows_d7e8
- print_npc_text Text05d7
- script_jump .ows_d7bc
- ; 0xd7ee
- .ows_d7ee
- print_npc_text Text05d8
- script_jump .ows_d7bc
- ; 0xd7f4
- .ows_d7f4
- print_npc_text Text05d9
- script_jump .ows_d7bc
- ; 0xd7fa
- .ows_d7fa
- print_npc_text Text05da
- script_jump .ows_d7bc
- ; 0xd800
- .ows_d800
- print_npc_text Text05db
- script_jump .ows_d7bc
- ; 0xd806
- .ows_d806
- print_npc_text Text05dc
- script_jump .ows_d7bc
- ; 0xd80c
- .ows_d80c
- print_npc_text Text05e9
- ask_question_jump_default_yes NULL, .ows_d817
- script_jump .ows_d7bc
- ; 0xd817
- .ows_d817
- set_dialog_npc NPC_DRMASON
- print_npc_text Text05ea
- script_nop
- script_set_flag_value EVENT_FLAG_3E, $01
- close_advanced_text_box
- set_next_npc_and_script NPC_SAM, .ows_d827
- end_script
- ret
- ; 0xd827
- .ows_d827
- start_script
- start_duel PRIZES_2, SAMS_PRACTICE_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xd82d
- .ows_d82d
- close_advanced_text_box
- set_next_npc_and_script NPC_DRMASON, Script_AfterPracticeDuel
- end_script
- ret
- ; 0xd834
- Script_AfterPracticeDuel: ; d834 (3:5834)
- start_script
- print_npc_text Text05eb
- print_npc_text Text05ef
- close_text_box
- move_active_npc NPCMovement_d896
- set_player_direction NORTH
- move_player NORTH, 1
- move_player NORTH, 1
- move_player NORTH, 1
- set_player_direction EAST
- move_player EAST, 1
- move_player EAST, 1
- set_player_direction NORTH
- print_npc_text Text05f0
- close_text_box
- print_text Text05f1
- close_text_box
- print_npc_text Text05f2
- .ows_d85f
- choose_starter_deck
- close_text_box
- ask_question_jump Text05f3, .ows_d869
- script_jump .ows_d85f
- ; 0xd869
- .ows_d869
- print_npc_text Text05f4
- close_text_box
- pause_song
- play_song MUSIC_BOOSTER_PACK
- print_text Text05f5
- wait_for_song_to_finish
- resume_song
- close_text_box
- script_set_flag_value EVENT_FLAG_3E, $03
- give_stater_deck
- print_npc_text Text05f6
- save_game $00
- quit_script_fully
- ; 0xd880
- NPCMovement_d880: ; d880 (3:5880)
- db EAST
- db $ff
- NPCMovement_d882: ; d882 (3:5882)
- db SOUTH
- db SOUTH
- db WEST
- db WEST
- db WEST
- db WEST
- db SOUTH
- NPCMovement_d889: ; d889 (3:5889)
- db EAST | NO_MOVE
- db $ff
- NPCMovement_d88b: ; d88b (3:588b)
- db WEST
- db SOUTH
- db SOUTH
- db SOUTH
- db WEST
- db WEST
- db WEST
- db EAST | NO_MOVE
- db $ff
- NPCMovement_d894: ; d894 (3:5894)
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_d896: ; d896 (3:5896)
- db NORTH
- db NORTH
- db NORTH
- db EAST
- db EAST
- db EAST
- db EAST
- db SOUTH | NO_MOVE
- db $ff
- ; gap from 0xd89f to 0xd8bb
- Script_Tech6: ; d8bb (3:58bb)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text05f7, Text05f8
- quit_script_fully
- ; 0xd8c6
- Script_Tech7: ; d8c6 (3:58c6)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text05f9, Text05fa
- quit_script_fully
- ; 0xd8d1
- Script_Tech8: ; d8d1 (3:58d1)
- start_script
- jump_if_flag_not_equal EVENT_FLAG_62, $ff, NULL
- print_variable_npc_text Text05fb, Text05fc
- quit_script_fully
- ; 0xd8dd
- Script_Aaron: ; d8dd (3:58dd)
- start_script
- print_npc_text Text05fd
- ask_question_jump Text05fe, .ows_d8e9
- .ows_d8e6
- print_text_quit_fully Text05ff
- ; 0xd8e9
- .ows_d8e9
- print_npc_text Text0600
- choose_deck_to_duel_against
- close_text_box
- jump_if_flag_equal EVENT_FLAG_76, $03, .ows_d8e6
- ask_question_jump Text0601, .ows_d8fb
- script_jump .ows_d8e6
- ; 0xd8fb
- .ows_d8fb
- print_npc_text Text0602
- start_duel PRIZES_4, $ff, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xd903
- ; gap from 0xd903 to 0xd90b
- Script_d90b: ; d90b (3:590b)
- start_script
- print_npc_text Text0603
- jump_if_flag_equal EVENT_FLAG_73, $01, .ows_d920
- jump_if_flag_equal EVENT_FLAG_73, $02, .ows_d927
- give_booster_packs BOOSTER_ENERGY_RANDOM, NO_BOOSTER, NO_BOOSTER
- script_jump Script_LostToAaron.ows_d92f
- ; 0xd920
- .ows_d920
- give_booster_packs BOOSTER_ENERGY_RANDOM, NO_BOOSTER, NO_BOOSTER
- script_jump Script_LostToAaron.ows_d92f
- ; 0xd927
- .ows_d927
- give_booster_packs BOOSTER_ENERGY_RANDOM, NO_BOOSTER, NO_BOOSTER
- script_jump Script_LostToAaron.ows_d92f
- ; 0xd92e
- Script_LostToAaron: ; d92e (3:592e)
- start_script
- .ows_d92f
- print_text_quit_fully Text0604
- ; 0xd932
- Script_d932: ; d932 (3:5932)
- start_script
- print_text Text0605
- ask_question_jump_default_yes Text0606, .ows_d93c
- quit_script_fully
- ; 0xd93c
- .ows_d93c
- open_deck_machine $09
- quit_script_fully
- ; 0xd93f
- ; gap from 0xd93f to 0xd944
- Script_d944: ; d944 (3:5944)
- start_script
- print_text Text0607
- jump_if_flag_nonzero_2 EVENT_FLAG_5A, .ows_d963
- print_text Text0608
- jump_if_flag_nonzero_2 EVENT_FLAG_0F, .ows_d954
- quit_script_fully
- ; 0xd954
- .ows_d954
- ask_question_jump_default_yes Text0609, .ows_d95a
- quit_script_fully
- ; 0xd95a
- .ows_d95a
- play_sfx SFX_5A
- max_out_flag_value EVENT_FLAG_5A
- replace_map_blocks $02
- print_text Text060a
- .ows_d963
- ask_question_jump_default_yes Text060b, .ows_d969
- quit_script_fully
- ; 0xd969
- .ows_d969
- open_deck_machine $01
- quit_script_fully
- ; 0xd96c
- ; gap from 0xd96c to 0xd99a
- Script_d99a: ; d99a (3:599a)
- start_script
- print_text Text0607
- jump_if_flag_nonzero_2 EVENT_FLAG_5B, .ows_d9b9
- print_text Text0608
- jump_if_flag_nonzero_2 EVENT_FLAG_0E, .ows_d9aa
- quit_script_fully
- ; 0xd9aa
- .ows_d9aa
- ask_question_jump_default_yes Text0609, .ows_d9b0
- quit_script_fully
- ; 0xd9b0
- .ows_d9b0
- play_sfx SFX_5A
- max_out_flag_value EVENT_FLAG_5B
- replace_map_blocks $03
- print_text Text060a
- .ows_d9b9
- ask_question_jump_default_yes Text060b, .ows_d9bf
- quit_script_fully
- ; 0xd9bf
- .ows_d9bf
- open_deck_machine $02
- quit_script_fully
- ; 0xd9c2
- ; gap from 0xd9c2 to 0xd9c7
- Script_d9c7: ; d9c7 (3:59c7)
- start_script
- print_text Text0607
- jump_if_flag_nonzero_2 EVENT_FLAG_5C, .ows_d9e6
- print_text Text0608
- jump_if_flag_nonzero_2 EVENT_BEAT_AMY, .ows_d9d7
- quit_script_fully
- ; 0xd9d7
- .ows_d9d7
- ask_question_jump_default_yes Text0609, .ows_d9dd
- quit_script_fully
- ; 0xd9dd
- .ows_d9dd
- play_sfx SFX_5A
- max_out_flag_value EVENT_FLAG_5C
- replace_map_blocks $04
- print_text Text060a
- .ows_d9e6
- ask_question_jump_default_yes Text060b, .ows_d9ec
- quit_script_fully
- ; 0xd9ec
- .ows_d9ec
- open_deck_machine $03
- quit_script_fully
- ; 0xd9ef
- ; gap from 0xd9ef to 0xd9f4
- Script_d9f4: ; d9f4 (3:59f4)
- start_script
- print_text Text0607
- jump_if_flag_nonzero_2 EVENT_FLAG_5D, .ows_da13
- print_text Text0608
- jump_if_flag_nonzero_2 EVENT_FLAG_0C, .ows_da04
- quit_script_fully
- ; 0xda04
- .ows_da04
- ask_question_jump_default_yes Text0609, .ows_da0a
- quit_script_fully
- ; 0xda0a
- .ows_da0a
- play_sfx SFX_5A
- max_out_flag_value EVENT_FLAG_5D
- replace_map_blocks $05
- print_text Text060a
- .ows_da13
- ask_question_jump_default_yes Text060b, .ows_da19
- quit_script_fully
- ; 0xda19
- .ows_da19
- open_deck_machine $04
- quit_script_fully
- ; 0xda1c
- ; gap from 0xda1c to 0xda21
- Script_da21: ; da21 (3:5a21)
- start_script
- print_text Text0607
- jump_if_flag_nonzero_2 EVENT_FLAG_5E, .ows_da40
- print_text Text0608
- jump_if_flag_nonzero_2 EVENT_FLAG_08, .ows_da31
- quit_script_fully
- ; 0xda31
- .ows_da31
- ask_question_jump_default_yes Text0609, .ows_da37
- quit_script_fully
- ; 0xda37
- .ows_da37
- play_sfx SFX_5A
- max_out_flag_value EVENT_FLAG_5E
- replace_map_blocks $06
- print_text Text060a
- .ows_da40
- ask_question_jump_default_yes Text060b, .ows_da46
- quit_script_fully
- ; 0xda46
- .ows_da46
- open_deck_machine $05
- quit_script_fully
- ; 0xda49
- ; gap from 0xda49 to 0xda4e
- Script_da4e: ; da4e (3:5a4e)
- start_script
- print_text Text0607
- jump_if_flag_nonzero_2 EVENT_FLAG_5F, .ows_da6d
- print_text Text0608
- jump_if_flag_nonzero_2 EVENT_FLAG_0D, .ows_da5e
- quit_script_fully
- ; 0xda5e
- .ows_da5e
- ask_question_jump_default_yes Text0609, .ows_da64
- quit_script_fully
- ; 0xda64
- .ows_da64
- play_sfx SFX_5A
- max_out_flag_value EVENT_FLAG_5F
- replace_map_blocks $07
- print_text Text060a
- .ows_da6d
- ask_question_jump_default_yes Text060b, .ows_da73
- quit_script_fully
- ; 0xda73
- .ows_da73
- open_deck_machine $06
- quit_script_fully
- ; 0xda76
- ; gap from 0xda76 to 0xda7b
- Script_da7b: ; da7b (3:5a7b)
- start_script
- print_text Text0607
- jump_if_flag_nonzero_2 EVENT_FLAG_60, .ows_da9a
- print_text Text0608
- jump_if_flag_nonzero_2 EVENT_FLAG_09, .ows_da8b
- quit_script_fully
- ; 0xda8b
- .ows_da8b
- ask_question_jump_default_yes Text0609, .ows_da91
- quit_script_fully
- ; 0xda91
- .ows_da91
- play_sfx SFX_5A
- max_out_flag_value EVENT_FLAG_60
- replace_map_blocks $08
- print_text Text060a
- .ows_da9a
- ask_question_jump_default_yes Text060b, .ows_daa0
- quit_script_fully
- ; 0xdaa0
- .ows_daa0
- open_deck_machine $07
- quit_script_fully
- ; 0xdaa3
- ; gap from 0xdaa3 to 0xdaa8
- Script_daa8: ; daa8 (3:5aa8)
- start_script
- print_text Text0607
- jump_if_flag_nonzero_2 EVENT_FLAG_61, .ows_dac7
- print_text Text0608
- jump_if_flag_nonzero_2 EVENT_FLAG_0A, .ows_dab8
- quit_script_fully
- ; 0xdab8
- .ows_dab8
- ask_question_jump_default_yes Text0609, .ows_dabe
- quit_script_fully
- ; 0xdabe
- .ows_dabe
- play_sfx SFX_5A
- max_out_flag_value EVENT_FLAG_61
- replace_map_blocks $09
- print_text Text060a
- .ows_dac7
- ask_question_jump_default_yes Text060b, .ows_dacd
- quit_script_fully
- ; 0xdacd
- .ows_dacd
- open_deck_machine $08
- quit_script_fully
- ; 0xdad0
- Script_dad0: ; dad0 (3:5ad0)
- start_script
- print_text Text060c
- ask_question_jump_default_yes Text060d, .ows_dada
- quit_script_fully
- ; 0xdada
- .ows_dada
- open_deck_machine $00
- quit_script_fully
- ; 0xdadd
- ; gap from 0xdadd to 0xdae9
- Script_dae9: ; dae9 (3:5ae9)
- start_script
- print_npc_text Text0723
- script_set_flag_value EVENT_FLAG_35, $02
- close_text_box
- jump_if_npc_loaded NPC_ISHIHARA, .ows_dafb
- move_active_npc_by_direction NPCMovementTable_db24
- script_jump .ows_db0f
- ; 0xdafb
- .ows_dafb
- move_active_npc_by_direction NPCMovementTable_db11
- print_npc_text Text0724
- set_dialog_npc NPC_ISHIHARA
- print_npc_text Text0725
- set_dialog_npc NPC_NIKKI
- print_npc_text Text0726
- close_text_box
- move_active_npc NPCMovement_db31
- .ows_db0f
- unload_active_npc
- quit_script_fully
- ; 0xdb11
- NPCMovementTable_db11: ; db11 (3:5b11)
- dw NPCMovement_db19
- dw NPCMovement_db20
- dw NPCMovement_db19
- dw NPCMovement_db19
- NPCMovement_db19: ; db19 (3:5b19)
- db EAST
- db SOUTH
- db SOUTH
- db SOUTH
- db EAST
- db NORTH | NO_MOVE
- db $ff
- NPCMovement_db20: ; db20 (3:5b20)
- db SOUTH
- db EAST
- db $fe, -8
- NPCMovementTable_db24: ; db24 (3:5b24)
- dw NPCMovement_db2c
- dw NPCMovement_db39
- dw NPCMovement_db2c
- dw NPCMovement_db2c
- NPCMovement_db2c: ; db2c (3:5b2c)
- db EAST
- db SOUTH
- db SOUTH
- db SOUTH
- db EAST
- NPCMovement_db31: ; db31 (3:5b31)
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db $ff
- NPCMovement_db39: ; db39 (3:5b39)
- db SOUTH
- db EAST
- db $fe, -14
- ; gap from 0xdb3d to 0xdb4a
- Script_Ishihara: ; db4a (3:5b4a)
- start_script
- max_out_flag_value EVENT_FLAG_1D
- jump_if_flag_equal EVENT_FLAG_1F, $00, .ows_db80
- jump_if_flag_nonzero_2 EVENT_FLAG_39, .ows_db5a
- jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_dc3e
- .ows_db5a
- jump_if_flag_nonzero_2 EVENT_FLAG_00, .ows_db90
- jump_if_flag_zero_2 EVENT_FLAG_38, .ows_db90
- jump_if_flag_equal EVENT_FLAG_1F, $01, .ows_db93
- jump_if_flag_equal EVENT_FLAG_1F, $02, .ows_db93
- jump_if_flag_equal EVENT_FLAG_1F, $03, .ows_dbcc
- jump_if_flag_equal EVENT_FLAG_1F, $04, .ows_dbcc
- jump_if_flag_equal EVENT_FLAG_1F, $05, .ows_dc05
- jump_if_flag_equal EVENT_FLAG_1F, $06, .ows_dc05
- .ows_db80
- max_out_flag_value EVENT_FLAG_00
- script_set_flag_value EVENT_FLAG_1F, $01
- zero_out_flag_value EVENT_FLAG_38
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_db8d
- max_out_flag_value EVENT_FLAG_39
- .ows_db8d
- print_text_quit_fully Text0727
- ; 0xdb90
- .ows_db90
- print_text_quit_fully Text0728
- ; 0xdb93
- .ows_db93
- jump_if_flag_equal EVENT_FLAG_1F, $01, NULL
- print_variable_npc_text Text0729, Text072a
- script_set_flag_value EVENT_FLAG_1F, $02
- ask_question_jump Text072b, .check_if_clefable_owned
- print_text_quit_fully Text072c
- ; 0xdba8
- .check_if_clefable_owned
- jump_if_card_owned CLEFABLE, .check_if_clefable_in_collection
- print_text_quit_fully Text072d
- ; 0xdbaf
- .check_if_clefable_in_collection
- jump_if_card_in_collection CLEFABLE, .do_clefable_trade
- print_text_quit_fully Text072e
- ; 0xdbb6
- .do_clefable_trade
- max_out_flag_value EVENT_FLAG_00
- script_set_flag_value EVENT_FLAG_1F, $03
- zero_out_flag_value EVENT_FLAG_38
- print_npc_text Text072f
- print_text Text0730
- take_card CLEFABLE
- give_card SURFING_PIKACHU1
- show_card_received_screen SURFING_PIKACHU1
- print_text_quit_fully Text0731
- ; 0xdbcc
- .ows_dbcc
- jump_if_flag_equal EVENT_FLAG_1F, $03, NULL
- print_variable_npc_text Text0732, Text0733
- script_set_flag_value EVENT_FLAG_1F, $04
- ask_question_jump Text072b, .check_if_ditto_owned
- print_text_quit_fully Text072c
- ; 0xdbe1
- .check_if_ditto_owned
- jump_if_card_owned DITTO, .check_if_ditto_in_collection
- print_text_quit_fully Text0734
- ; 0xdbe8
- .check_if_ditto_in_collection
- jump_if_card_in_collection DITTO, .do_ditto_trade
- print_text_quit_fully Text0735
- ; 0xdbef
- .do_ditto_trade
- max_out_flag_value EVENT_FLAG_00
- script_set_flag_value EVENT_FLAG_1F, $05
- zero_out_flag_value EVENT_FLAG_38
- print_npc_text Text072f
- print_text Text0736
- take_card DITTO
- give_card FLYING_PIKACHU
- show_card_received_screen FLYING_PIKACHU
- print_text_quit_fully Text0737
- ; 0xdc05
- .ows_dc05
- jump_if_flag_equal EVENT_FLAG_1F, $05, NULL
- print_variable_npc_text Text0738, Text0739
- script_set_flag_value EVENT_FLAG_1F, $06
- ask_question_jump Text072b, .check_if_chansey_owned
- print_text_quit_fully Text072c
- ; 0xdc1a
- .check_if_chansey_owned
- jump_if_card_owned CHANSEY, .check_if_chansey_in_collection
- print_text_quit_fully Text073a
- ; 0xdc21
- .check_if_chansey_in_collection
- jump_if_card_in_collection CHANSEY, .do_chansey_trade
- print_text_quit_fully Text073b
- ; 0xdc28
- .do_chansey_trade
- max_out_flag_value EVENT_FLAG_00
- script_set_flag_value EVENT_FLAG_1F, $07
- zero_out_flag_value EVENT_FLAG_38
- print_npc_text Text072f
- print_text Text073c
- take_card CHANSEY
- give_card SURFING_PIKACHU2
- show_card_received_screen SURFING_PIKACHU2
- print_text_quit_fully Text073d
- ; 0xdc3e
- .ows_dc3e
- max_out_flag_value EVENT_FLAG_39
- print_text_quit_fully Text073e
- ; 0xdc43
- ; gap from 0xdc43 to 0xdc4b
- Script_Ronald: ; dc4b (3:5c4b)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_4E, .ows_dc55
- max_out_flag_value EVENT_FLAG_4E
- print_text_quit_fully Text073f
- ; 0xdc55
- .ows_dc55
- print_npc_text Text0740
- ask_question_jump Text0741, .ows_dc60
- print_text_quit_fully Text0742
- ; 0xdc60
- .ows_dc60
- print_text_quit_fully Text0743
- ret
- ; 0xdc64
- Script_Clerk1: ; dc64 (3:5c64)
- start_script
- print_text_quit_fully Text045a
- ; 0xdc68
- ; gap from 0xdc68 to 0xdc76
- Script_Man1: ; dc76 (3:5c76)
- start_script
- jump_if_flag_equal EVENT_FLAG_2C, $06, .ows_dce8
- jump_if_flag_nonzero_2 EVENT_FLAG_01, .ows_dce5
- jump_if_flag_nonzero_2 EVENT_FLAG_29, .ows_dc91
- max_out_flag_value EVENT_FLAG_29
- pick_next_man1_requested_card
- load_man1_requested_card_into_txram_slot $00
- print_npc_text Text045b
- max_out_flag_value EVENT_FLAG_2A
- script_jump .ows_dca5
- ; 0xdc91
- .ows_dc91
- jump_if_flag_zero_2 EVENT_FLAG_2A, .ows_dc9d
- load_man1_requested_card_into_txram_slot $00
- print_npc_text Text045c
- script_jump .ows_dca5
- ; 0xdc9d
- .ows_dc9d
- pick_next_man1_requested_card
- load_man1_requested_card_into_txram_slot $00
- print_npc_text Text045d
- max_out_flag_value EVENT_FLAG_2A
- .ows_dca5
- load_man1_requested_card_into_txram_slot $00
- ask_question_jump Text045e, .ows_dcaf
- print_text_quit_fully Text045f
- ; 0xdcaf
- .ows_dcaf
- jump_if_man1_requested_card_owned .ows_dcb9
- load_man1_requested_card_into_txram_slot $00
- load_man1_requested_card_into_txram_slot $01
- print_text_quit_fully Text0460
- ; 0xdcb9
- .ows_dcb9
- jump_if_man1_requested_card_in_collection .ows_dcc3
- load_man1_requested_card_into_txram_slot $00
- load_man1_requested_card_into_txram_slot $01
- print_text_quit_fully Text0461
- ; 0xdcc3
- .ows_dcc3
- load_man1_requested_card_into_txram_slot $00
- load_man1_requested_card_into_txram_slot $01
- print_npc_text Text0462
- remove_man1_requested_card_from_collection
- max_out_flag_value EVENT_FLAG_01
- zero_out_flag_value EVENT_FLAG_2A
- increment_flag_value EVENT_FLAG_2C
- jump_if_flag_equal EVENT_FLAG_2C, $05, .ows_dcd7
- quit_script_fully
- ; 0xdcd7
- .ows_dcd7
- print_npc_text Text0463
- give_card PIKACHU4
- show_card_received_screen PIKACHU4
- print_npc_text Text0464
- script_set_flag_value EVENT_FLAG_2C, $06
- quit_script_fully
- ; 0xdce5
- .ows_dce5
- print_text_quit_fully Text0465
- ; 0xdce8
- .ows_dce8
- print_text_quit_fully Text0466
- ; 0xdceb
- ; gap from 0xdceb to 0xdd0d
- Script_Imakuni: ; dd0d (3:5d0d)
- start_script
- script_set_flag_value EVENT_IMAKUNI_STATE, $02
- jump_if_flag_zero_2 EVENT_TEMP_TALKED_TO_IMAKUNI, NULL
- print_variable_npc_text Text0467, Text0468
- max_out_flag_value EVENT_TEMP_TALKED_TO_IMAKUNI
- ask_question_jump Text0469, .start_duel
- print_npc_text Text046a
- quit_script_fully
- ; 0xdd25
- .start_duel
- print_npc_text Text046b
- start_duel PRIZES_6, IMAKUNI_DECK_ID, MUSIC_IMAKUNI
- quit_script_fully
- ; 0xdd2d
- Script_BeatImakuni: ; dd2d (3:5d2d)
- start_script
- jump_if_flag_equal EVENT_IMAKUNI_WIN_COUNT, $07, .give_boosters
- increment_flag_value EVENT_IMAKUNI_WIN_COUNT
- jump_if_flag_equal EVENT_IMAKUNI_WIN_COUNT, $03, .three_wins
- jump_if_flag_equal EVENT_IMAKUNI_WIN_COUNT, $06, .six_wins
- .give_boosters
- print_npc_text Text046c
- give_one_of_each_trainer_booster
- script_jump .done
- ; 0xdd46
- .three_wins
- print_npc_text Text046d
- script_jump .give_imakuni_card
- ; 0xdd4c
- .six_wins
- print_npc_text Text046e
- .give_imakuni_card
- print_npc_text Text046f
- give_card IMAKUNI_CARD
- show_card_received_screen IMAKUNI_CARD
- .done
- print_npc_text Text0470
- script_jump Script_LostToImakuni.imakuni_common
- ; 0xdd5c
- Script_LostToImakuni: ; dd5c (3:5d5c)
- start_script
- print_npc_text Text0471
- .imakuni_common
- close_text_box
- jump_if_player_coords_match 18, 4, .ows_dd69
- script_jump .ows_dd6e
- ; 0xdd69
- .ows_dd69
- set_player_direction EAST
- move_player WEST, 1
- .ows_dd6e
- move_active_npc NPCMovement_dd78
- unload_active_npc
- max_out_flag_value EVENT_TEMP_DUELED_IMAKUNI
- set_default_song MUSIC_OVERWORLD
- play_default_song
- quit_script_fully
- ; 0xdd78
- NPCMovement_dd78: ; dd78 (3:5d78)
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db EAST
- db EAST
- db EAST
- db EAST
- db EAST
- db $ff
- Script_Specs1: ; dd82 (3:5d82)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0472, Text0473
- quit_script_fully
- ; 0xdd8d
- Script_Butch: ; dd8d (3:5d8d)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0474, Text0475
- quit_script_fully
- ; 0xdd98
- ; gap from 0xdd98 to 0xdd9f
- Script_Granny1: ; dd9f (3:5d9f)
- start_script
- print_text_quit_fully Text0476
- ; 0xdda3
- ; gap from 0xdda3 to 0xddc3
- Script_Mitch: ; ddc3 (3:5dc3)
- start_script
- try_give_pc_pack $02
- jump_if_flag_nonzero_2 EVENT_FLAG_0F, Script_Mitch_AlreadyHaveMedal
- fight_club_pupil_jump .first_interaction, .three_pupils_remaining, .two_pupils_remaining, .one_pupil_remaining, .all_pupils_defeated
- .first_interaction
- print_npc_text Text0477
- script_set_flag_value EVENT_FLAG_11, $01
- script_set_flag_value EVENT_FLAG_17, $01
- script_set_flag_value EVENT_FLAG_20, $01
- quit_script_fully
- ; 0xdde2
- .three_pupils_remaining
- print_text_quit_fully Text0478
- ; 0xdde5
- .two_pupils_remaining
- print_text_quit_fully Text0479
- ; 0xdde8
- .one_pupil_remaining
- print_text_quit_fully Text047a
- ; 0xddeb
- .all_pupils_defeated
- print_npc_text Text047b
- ask_question_jump Text047c, .start_duel
- print_npc_text Text047d
- quit_script_fully
- ; 0xddf7
- .start_duel
- print_npc_text Text047e
- start_duel PRIZES_6, FIRST_STRIKE_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xddff
- Script_BeatMitch: ; ddff (3:5dff)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_0F, Script_Mitch_GiveBoosters
- print_npc_text Text047f
- max_out_flag_value EVENT_FLAG_0F
- try_give_medal_pc_packs
- show_medal_received_screen EVENT_FLAG_0F
- record_master_win $01
- print_npc_text Text0480
- give_booster_packs BOOSTER_LABORATORY_NEUTRAL, BOOSTER_LABORATORY_NEUTRAL, NO_BOOSTER
- print_npc_text Text0481
- quit_script_fully
- ; 0xde19
- Script_LostToMitch: ; de19 (3:5e19)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_0F, Script_Mitch_PrintTrainHarderText
- print_text_quit_fully Text0482
- ; 0xde21
- Script_Mitch_AlreadyHaveMedal: ; de21 (3:5e21)
- print_npc_text Text0483
- ask_question_jump Text047c, .start_duel
- print_npc_text Text0484
- quit_script_fully
- ; 0xde2d
- .start_duel
- print_npc_text Text0485
- start_duel PRIZES_6, FIRST_STRIKE_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xde35
- Script_Mitch_GiveBoosters: ; de35 (3:5e35)
- print_npc_text Text0486
- give_booster_packs BOOSTER_LABORATORY_NEUTRAL, BOOSTER_LABORATORY_NEUTRAL, NO_BOOSTER
- print_npc_text Text0487
- quit_script_fully
- ; 0xde40
- Script_Mitch_PrintTrainHarderText: ; de40 (3:5e40)
- print_text_quit_fully Text0488
- ; 0xde43
- ; gap from 0xde43 to 0xde4b
- Script_de4b: ; de4b (3:5e4b)
- jump_if_flag_equal EVENT_FLAG_17, $08, NULL
- print_variable_npc_text Text0489, Text048a
- script_set_flag_value EVENT_FLAG_17, $09
- ask_question_jump Text048b, .ows_de61
- print_npc_text Text048c
- quit_script_fully
- ; 0xde61
- .ows_de61
- print_npc_text Text048d
- start_duel PRIZES_4, MUSCLES_FOR_BRAINS_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xde69
- Script_BeatChrisInFightingClub: ; de69 (3:5e69)
- start_script
- print_npc_text Text048e
- give_booster_packs BOOSTER_EVOLUTION_FIGHTING, BOOSTER_EVOLUTION_FIGHTING, NO_BOOSTER
- print_npc_text Text048f
- quit_script_fully
- ; 0xde75
- Script_LostToChrisInFightingClub: ; de75 (3:5e75)
- start_script
- print_text_quit_fully Text0490
- ; 0xde79
- ; gap from 0xde79 to 0xde81
- Script_de81: ; de81 (3:5e81)
- print_npc_text Text0491
- ask_question_jump Text0492, .ows_de8d
- print_npc_text Text0493
- quit_script_fully
- ; 0xde8d
- .ows_de8d
- print_npc_text Text0494
- start_duel PRIZES_4, HEATED_BATTLE_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xde95
- Script_BeatMichaelInFightingClub: ; de95 (3:5e95)
- start_script
- print_npc_text Text0495
- give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
- print_npc_text Text0496
- quit_script_fully
- ; 0xdea1
- Script_LostToMichaelInFightingClub: ; dea1 (3:5ea1)
- start_script
- print_text_quit_fully Text0497
- ; 0xdea5
- ; gap from 0xdea5 to 0xdead
- Script_dead: ; dead (3:5ead)
- print_npc_text Text0498
- ask_question_jump Text0499, .ows_deb9
- print_npc_text Text049a
- quit_script_fully
- ; 0xdeb9
- .ows_deb9
- print_npc_text Text049b
- start_duel PRIZES_4, LOVE_TO_BATTLE_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xdec1
- Script_BeatJessicaInFightingClub: ; dec1 (3:5ec1)
- start_script
- print_npc_text Text049c
- give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
- print_npc_text Text049d
- quit_script_fully
- ; 0xdecd
- Script_LostToJessicaInFightingClub: ; decd (3:5ecd)
- start_script
- print_text_quit_fully Text049e
- ; 0xded1
- Script_Clerk2: ; ded1 (3:5ed1)
- start_script
- print_text_quit_fully Text0779
- ; 0xded5
- ; gap from 0xded5 to 0xdef2
- Script_Chris: ; def2 (3:5ef2)
- start_script
- jump_if_flag_not_less_than EVENT_FLAG_17, $08, Script_de4b
- print_npc_text Text077a
- ask_question_jump Text077b, .ows_df04
- print_npc_text Text077c
- quit_script_fully
- ; 0xdf04
- .ows_df04
- print_npc_text Text077d
- start_duel PRIZES_4, MUSCLES_FOR_BRAINS_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xdf0c
- Script_BeatChrisInRockClubLobby: ; df0c (3:5f0c)
- start_script
- script_set_flag_value EVENT_FLAG_17, $08
- print_npc_text Text077e
- give_booster_packs BOOSTER_EVOLUTION_FIGHTING, BOOSTER_EVOLUTION_FIGHTING, NO_BOOSTER
- print_npc_text Text077f
- close_text_box
- move_active_npc_by_direction NPCMovementTable_df24
- unload_active_npc
- quit_script_fully
- ; 0xdf20
- Script_LostToChrisInRockClubLobby: ; df20 (3:5f20)
- start_script
- print_text_quit_fully Text0780
- ; 0xdf24
- NPCMovementTable_df24: ; df24 (3:5f24)
- dw NPCMovement_df2c
- dw NPCMovement_df2c
- dw NPCMovement_df34
- dw NPCMovement_df2c
- NPCMovement_df2c: ; df2c (3:5f2c)
- db SOUTH
- db SOUTH
- db EAST
- db EAST
- db EAST
- db EAST
- db EAST
- db $ff
- NPCMovement_df34: ; df34 (3:5f34)
- db EAST
- db SOUTH
- db SOUTH
- db $fe, -9
- Script_Matthew: ; df39 (3:5f39)
- start_script
- try_give_pc_pack $03
- jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_df4c
- jump_if_flag_zero_1 EVENT_FLAG_18, NULL
- print_variable_npc_text Text0781, Text0782
- script_jump .ows_df4f
- ; 0xdf4c
- .ows_df4c
- print_npc_text Text0783
- .ows_df4f
- script_set_flag_value EVENT_FLAG_18, $01
- ask_question_jump Text0784, .ows_df5b
- print_npc_text Text0785
- quit_script_fully
- ; 0xdf5b
- .ows_df5b
- print_npc_text Text0786
- start_duel PRIZES_4, HARD_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xdf63
- Script_BeatMatthew: ; df63 (3:5f63)
- start_script
- script_set_flag_value EVENT_FLAG_18, $02
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0787, Text0788
- give_booster_packs BOOSTER_MYSTERY_FIGHTING_COLORLESS, BOOSTER_MYSTERY_FIGHTING_COLORLESS, NO_BOOSTER
- print_npc_text Text0789
- quit_script_fully
- ; 0xdf78
- Script_LostToMatthew: ; df78 (3:5f78)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text078a, Text078b
- quit_script_fully
- ; 0xdf83
- Script_Woman1: ; df83 (3:5f83)
- start_script
- jump_if_flag_not_less_than EVENT_FLAG_1F, $07, .ows_dfba
- jump_if_flag_nonzero_2 EVENT_FLAG_1D, .ows_df96
- max_out_flag_value EVENT_FLAG_1C
- max_out_flag_value EVENT_FLAG_1E
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text078c
- ; 0xdf96
- .ows_df96
- jump_if_flag_nonzero_2 EVENT_FLAG_00, .ows_dfb7
- jump_if_flag_not_less_than EVENT_FLAG_1F, $05, .ows_dfae
- jump_if_flag_not_less_than EVENT_FLAG_1F, $03, .ows_dfa9
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text078d
- ; 0xdfa9
- .ows_dfa9
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text078e
- ; 0xdfae
- .ows_dfae
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_dfb7
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text078f
- ; 0xdfb7
- .ows_dfb7
- print_text_quit_fully Text0790
- ; 0xdfba
- .ows_dfba
- script_set_flag_value EVENT_FLAG_1F, $08
- print_text_quit_fully Text0791
- ; 0xdfc0
- Script_Chap1: ; dfc0 (3:5fc0)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0792, Text0793
- quit_script_fully
- ; 0xdfcb
- ; gap from 0xdfcb to 0xdfd2
- Script_Lass3: ; dfd2 (3:5fd2)
- start_script
- print_text_quit_fully Text0794
- ; 0xdfd6
- ; gap from 0xdfd6 to 0xdff0
- Script_Ryan: ; dff0 (3:5ff0)
- start_script
- try_give_pc_pack $03
- print_npc_text Text0795
- ask_question_jump Text0796, .ows_dfff
- print_npc_text Text0797
- quit_script_fully
- ; 0xdfff
- .ows_dfff
- print_npc_text Text0798
- start_duel PRIZES_3, EXCAVATION_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe007
- Script_BeatRyan: ; e007 (3:6007)
- start_script
- print_npc_text Text0799
- give_booster_packs BOOSTER_EVOLUTION_FIGHTING, BOOSTER_EVOLUTION_FIGHTING, NO_BOOSTER
- print_npc_text Text079a
- quit_script_fully
- ; 0xe013
- Script_LostToRyan: ; e013 (3:6013)
- start_script
- print_text_quit_fully Text079b
- ; 0xe017
- Script_Andrew: ; e017 (3:6017)
- start_script
- try_give_pc_pack $03
- print_npc_text Text079c
- ask_question_jump Text079d, .ows_e026
- print_npc_text Text079e
- quit_script_fully
- ; 0xe026
- .ows_e026
- print_npc_text Text079f
- start_duel PRIZES_4, BLISTERING_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe02e
- Script_BeatAndrew: ; e02e (3:602e)
- start_script
- print_npc_text Text07a0
- give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
- print_npc_text Text07a1
- quit_script_fully
- ; 0xe03a
- Script_LostToAndrew: ; e03a (3:603a)
- start_script
- print_text_quit_fully Text07a2
- ; 0xe03e
- Script_Gene: ; e03e (3:603e)
- start_script
- try_give_pc_pack $03
- jump_if_flag_nonzero_2 EVENT_FLAG_0E, Script_LostToGene.ows_e07b
- print_npc_text Text07a3
- ask_question_jump Text07a4, .ows_e051
- print_npc_text Text07a5
- quit_script_fully
- ; 0xe051
- .ows_e051
- print_npc_text Text07a6
- start_duel PRIZES_6, ROCK_CRUSHER_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xe059
- Script_BeatGene: ; e059 (3:6059)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_0E, Script_LostToGene.ows_e08f
- print_npc_text Text07a7
- max_out_flag_value EVENT_FLAG_0E
- try_give_medal_pc_packs
- show_medal_received_screen EVENT_FLAG_0E
- record_master_win $02
- print_npc_text Text07a8
- give_booster_packs BOOSTER_MYSTERY_FIGHTING_COLORLESS, BOOSTER_MYSTERY_FIGHTING_COLORLESS, NO_BOOSTER
- print_npc_text Text07a9
- quit_script_fully
- ; 0xe073
- Script_LostToGene: ; e073 (3:6073)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_0E, .ows_e09a
- print_text_quit_fully Text07aa
- ; 0xe07b
- .ows_e07b
- print_npc_text Text07ab
- ask_question_jump Text07a4, .ows_e087
- print_npc_text Text07ac
- quit_script_fully
- ; 0xe087
- .ows_e087
- print_npc_text Text07ad
- start_duel PRIZES_6, ROCK_CRUSHER_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xe08f
- .ows_e08f
- print_npc_text Text07ae
- give_booster_packs BOOSTER_MYSTERY_FIGHTING_COLORLESS, BOOSTER_MYSTERY_FIGHTING_COLORLESS, NO_BOOSTER
- print_npc_text Text07af
- quit_script_fully
- ; 0xe09a
- .ows_e09a
- print_text_quit_fully Text07b0
- ret
- ; 0xe09e
- Script_Clerk3: ; e09e (3:609e)
- start_script
- print_text_quit_fully Text041c
- ; 0xe0a2
- ; gap from 0xe0a2 to 0xe0cf
- Script_Gal1: ; e0cf (3:60cf)
- start_script
- jump_if_flag_equal EVENT_FLAG_12, $02, .ows_e10e
- jump_if_flag_equal EVENT_FLAG_12, $00, NULL
- print_variable_npc_text Gal1WantToTrade1Text, Gal1WantToTrade2Text
- script_set_flag_value EVENT_FLAG_12, $01
- ask_question_jump Gal1WouldYouLikeToTradeText, .ows_e0eb
- print_npc_text Gal1DeclinedTradeText
- quit_script_fully
- ; 0xe0eb
- .ows_e0eb
- jump_if_card_owned LAPRAS, .ows_e0f3
- print_npc_text Gal1DontOwnCardText
- quit_script_fully
- ; 0xe0f3
- .ows_e0f3
- jump_if_card_in_collection LAPRAS, .ows_e0fb
- print_npc_text Gal1CardInDeckText
- quit_script_fully
- ; 0xe0fb
- .ows_e0fb
- script_set_flag_value EVENT_FLAG_12, $02
- print_npc_text Gal1LetsTradeText
- print_text Gal1TradeCompleteText
- take_card LAPRAS
- give_card ARCANINE1
- show_card_received_screen ARCANINE1
- print_npc_text Gal1ThanksText
- quit_script_fully
- ; 0xe10e
- .ows_e10e
- print_text_quit_fully Gal1AfterTradeText
- ; 0xe111
- Script_Lass1: ; e111 (3:6111)
- start_script
- jump_if_flag_equal EVENT_FLAG_14, $01, .ows_e121
- print_npc_text Text0427
- script_set_flag_value EVENT_FLAG_14, $01
- script_set_flag_value EVENT_IMAKUNI_STATE, $01
- quit_script_fully
- ; 0xe121
- .ows_e121
- jump_if_flag_not_equal EVENT_IMAKUNI_ROOM, $03, .ows_e12d
- jump_if_flag_nonzero_2 EVENT_TEMP_DUELED_IMAKUNI, .ows_e12d
- print_text_quit_fully Text0428
- ; 0xe12d
- .ows_e12d
- print_text_quit_fully Text0429
- ; 0xe130
- ; gap from 0xe130 to 0xe137
- Script_Man2: ; e137 (3:6137)
- start_script
- print_text_quit_fully Text042a
- ; 0xe13b
- Script_Pappy2: ; e13b (3:613b)
- start_script
- print_text_quit_fully Text042b
- ; 0xe13f
- ; gap from 0xe13f to 0xe177
- Script_Sara: ; e177 (3:6177)
- start_script
- print_npc_text Text042c
- ask_question_jump Text042d, .start_duel
- print_npc_text Text042e
- quit_script_fully
- ; 0xe184
- .start_duel
- print_npc_text Text042f
- start_duel PRIZES_2, WATERFRONT_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe18c
- Script_BeatSara: ; e18c (3:618c)
- start_script
- max_out_flag_value EVENT_BEAT_SARA
- print_npc_text Text0430
- give_booster_packs BOOSTER_COLOSSEUM_WATER, BOOSTER_COLOSSEUM_WATER, NO_BOOSTER
- print_npc_text Text0431
- quit_script_fully
- ; 0xe19a
- Script_LostToSara: ; e19a (3:619a)
- start_script
- print_text_quit_fully Text0432
- ; 0xe19e
- Script_Amanda: ; e19e (3:619e)
- start_script
- print_npc_text Text0433
- ask_question_jump Text0434, .start_duel
- print_npc_text Text0435
- quit_script_fully
- ; 0xe1ab
- .start_duel
- print_npc_text Text0436
- start_duel PRIZES_3, LONELY_FRIENDS_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe1b3
- Script_BeatAmanda: ; e1b3 (3:61b3)
- start_script
- max_out_flag_value EVENT_BEAT_AMANDA
- print_npc_text Text0437
- give_booster_packs BOOSTER_MYSTERY_LIGHTNING_COLORLESS, BOOSTER_MYSTERY_LIGHTNING_COLORLESS, NO_BOOSTER
- print_npc_text Text0438
- quit_script_fully
- ; 0xe1c1
- Script_LostToAmanda: ; e1c1 (3:61c1)
- start_script
- print_text_quit_fully Text0439
- ; 0xe1c5
- Script_NotReadyToSeeAmy: ; e1c5 (3:61c5)
- start_script
- jump_if_player_coords_match 18, 8, .ows_e1ec
- jump_if_player_coords_match 20, 8, .ows_e1f2
- jump_if_player_coords_match 24, 8, .ows_e1f8
- .ows_e1d5
- move_player SOUTH, 4
- move_active_npc NPCMovement_e213
- print_npc_text Text043a
- jump_if_player_coords_match 18, 10, .ows_e1fe
- jump_if_player_coords_match 20, 10, .ows_e202
- move_active_npc NPCMovement_e215
- quit_script_fully
- ; 0xe1ec
- .ows_e1ec
- move_active_npc NPCMovement_e206
- script_jump .ows_e1d5
- ; 0xe1f2
- .ows_e1f2
- move_active_npc NPCMovement_e20b
- script_jump .ows_e1d5
- ; 0xe1f8
- .ows_e1f8
- move_active_npc NPCMovement_e20f
- script_jump .ows_e1d5
- ; 0xe1fe
- .ows_e1fe
- move_active_npc NPCMovement_e218
- quit_script_fully
- ; 0xe202
- .ows_e202
- move_active_npc NPCMovement_e219
- quit_script_fully
- ; 0xe206
- NPCMovement_e206: ; e206 (3:6206)
- db NORTH
- db WEST
- db WEST
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_e20b: ; e20b (3:620b)
- db NORTH
- db WEST
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_e20f: ; e20f (3:620f)
- db NORTH
- db EAST
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_e213: ; e213 (3:6213)
- db SOUTH
- db $ff
- NPCMovement_e215: ; e215 (3:6215)
- db WEST
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_e218: ; e218 (3:6218)
- db EAST
- NPCMovement_e219: ; e219 (3:6219)
- db EAST
- db SOUTH | NO_MOVE
- db $ff
- Script_Joshua: ; e21c (3:621c)
- start_script
- jump_if_flag_zero_2 EVENT_BEAT_AMANDA, .sara_and_amanda_not_beaten
- jump_if_flag_zero_2 EVENT_BEAT_SARA, .sara_and_amanda_not_beaten
- script_jump .beat_sara_and_amanda
- ; 0xe228
- .sara_and_amanda_not_beaten
- script_set_flag_value EVENT_JOSHUA_STATE, $01
- print_npc_text Text043b
- quit_script_fully
- ; 0xe22f
- .beat_sara_and_amanda
- jump_if_flag_nonzero_1 EVENT_JOSHUA_STATE, .already_talked
- script_set_flag_value EVENT_JOSHUA_STATE, $01
- print_npc_text Text043b
- print_npc_text Text043c
- .already_talked
- jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
- print_variable_npc_text Text043d, Text043e
- ask_question_jump Text043f, .start_duel
- jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
- print_variable_npc_text Text0440, Text0441
- quit_script_fully
- ; 0xe256
- .start_duel
- print_npc_text Text0442
- try_give_pc_pack $04
- start_duel PRIZES_4, SOUND_OF_THE_WAVES_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe260
- Script_LostToJoshua: ; e260 (3:6260)
- start_script
- jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
- print_variable_npc_text Text0443, Text0444
- quit_script_fully
- ; 0xe26c
- Script_BeatJoshua: ; e26c (3:626c)
- start_script
- jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
- print_variable_npc_text Text0445, Text0446
- give_booster_packs BOOSTER_MYSTERY_WATER_COLORLESS, BOOSTER_MYSTERY_WATER_COLORLESS, NO_BOOSTER
- jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
- print_variable_npc_text Text0447, Text0448
- jump_if_flag_not_equal EVENT_JOSHUA_STATE, $02, .first_joshua_win
- quit_script_fully
- ; 0xe28b
- .first_joshua_win
- script_set_flag_value EVENT_JOSHUA_STATE, $02
- print_npc_text Text0449
- close_text_box
- move_active_npc_by_direction NPCMovementTable_e2a1
- print_npc_text Text044a
- set_active_npc_direction NORTH
- close_advanced_text_box
- set_next_npc_and_script NPC_AMY, Script_MeetAmy
- end_script
- ret
- ; 0xe2a1
- NPCMovementTable_e2a1: ; e2a1 (3:62a1)
- dw NPCMovement_e2a9
- dw NPCMovement_e2a9
- dw NPCMovement_e2a9
- dw NPCMovement_e2a9
- NPCMovement_e2a9: ; e2a9 (3:62a9)
- db NORTH
- db $ff
- NPCMovement_e2ab: ; e2ab (3:62ab)
- db SOUTH
- db $ff
- ; gap from 0xe2ad to 0xe2d1
- Script_MeetAmy: ; e2d1 (3:62d1)
- start_script
- print_npc_text Text044b
- set_dialog_npc NPC_JOSHUA
- print_npc_text Text044c
- set_dialog_npc NPC_AMY
- print_npc_text Text044d
- close_text_box
- set_sprite_attributes $09, $2f, $10
- do_frames 32
- set_sprite_attributes $04, $0e, $00
- set_active_npc_coords 20, 4
- set_player_direction WEST
- move_player WEST, 1
- set_player_direction NORTH
- move_player NORTH, 1
- move_player NORTH, 1
- move_npc NPC_JOSHUA, NPCMovement_e2ab
- print_npc_text Text044e
- script_jump Script_Amy.ask_for_duel
- ; 0xe304
- Script_Amy: ; e304 (3:6304)
- start_script
- jump_if_flag_nonzero_2 EVENT_BEAT_AMY, Script_Amy_AlreadyHaveMedal
- print_npc_text Text044f
- .ask_for_duel
- ask_question_jump Text0450, .start_duel
- .deny_duel
- print_npc_text Text0451
- jump_if_active_npc_coords_match 20, 4, Script_LostToAmy.ows_e34e
- quit_script_fully
- ; 0xe31a
- .start_duel
- print_npc_text Text0452
- start_duel PRIZES_6, GO_GO_RAIN_DANCE_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xe322
- Script_BeatAmy: ; e322 (3:6322)
- start_script
- print_npc_text Text0453
- jump_if_flag_nonzero_2 EVENT_BEAT_AMY, .give_booster_packs
- print_npc_text Text0454
- max_out_flag_value EVENT_BEAT_AMY
- try_give_medal_pc_packs
- show_medal_received_screen EVENT_BEAT_AMY
- record_master_win $03
- print_npc_text Text0455
- .give_booster_packs
- give_booster_packs BOOSTER_LABORATORY_WATER, BOOSTER_LABORATORY_WATER, NO_BOOSTER
- print_npc_text Text0456
- jump_if_active_npc_coords_match 20, 4, Script_LostToAmy.ows_e34e
- quit_script_fully
- ; 0xe344
- Script_LostToAmy: ; e344 (3:6344)
- start_script
- print_npc_text Text0457
- jump_if_active_npc_coords_match 20, 4, .ows_e34e
- quit_script_fully
- ; 0xe34e
- .ows_e34e
- set_sprite_attributes $08, $2e, $10
- set_active_npc_coords 22, 4
- quit_script_fully
- ; 0xe356
- Script_Amy_AlreadyHaveMedal: ; e356 (3:6356)
- print_npc_text Text0458
- ask_question_jump Text0450, .start_duel
- script_jump Script_Amy.deny_duel
- ; 0xe361
- .start_duel
- print_npc_text Text0459
- start_duel PRIZES_6, GO_GO_RAIN_DANCE_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xe369
- Script_Clerk4: ; e369 (3:6369)
- start_script
- print_text_quit_fully Text060e
- ; 0xe36d
- ; gap from 0xe36d to 0xe39a
- Script_Chap2: ; e39a (3:639a)
- start_script
- jump_if_flag_equal EVENT_FLAG_19, $02, .ows_e3d6
- jump_if_flag_equal EVENT_FLAG_19, $00, NULL
- print_variable_npc_text Text060f, Text0610
- script_set_flag_value EVENT_FLAG_19, $01
- ask_question_jump Text0611, .ows_e3b6
- print_npc_text Text0612
- quit_script_fully
- ; 0xe3b6
- .ows_e3b6
- jump_if_card_owned ELECTABUZZ2, .ows_e3be
- print_npc_text Text0613
- quit_script_fully
- ; 0xe3be
- .ows_e3be
- jump_if_card_in_collection ELECTABUZZ2, .ows_e3c6
- print_npc_text Text0614
- quit_script_fully
- ; 0xe3c6
- .ows_e3c6
- script_set_flag_value EVENT_FLAG_19, $02
- print_npc_text Text0615
- take_card ELECTABUZZ2
- give_card ELECTABUZZ1
- show_card_received_screen ELECTABUZZ1
- print_npc_text Text0616
- quit_script_fully
- ; 0xe3d6
- .ows_e3d6
- print_text_quit_fully Text0617
- ; 0xe3d9
- Script_Lass4: ; e3d9 (3:63d9)
- start_script
- print_text_quit_fully Text0618
- ; 0xe3dd
- Script_Hood1: ; e3dd (3:63dd)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0619, Text061a
- quit_script_fully
- ; 0xe3e8
- ; gap from 0xe3e8 to 0xe408
- Script_Jennifer: ; e408 (3:6408)
- start_script
- print_npc_text Text061b
- ask_question_jump Text061c, .ows_e415
- print_npc_text Text061d
- quit_script_fully
- ; 0xe415
- .ows_e415
- print_npc_text Text061e
- start_duel PRIZES_4, PIKACHU_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe41d
- Script_BeatJennifer: ; e41d (3:641d)
- start_script
- max_out_flag_value EVENT_FLAG_25
- print_npc_text Text061f
- give_booster_packs BOOSTER_MYSTERY_LIGHTNING_COLORLESS, BOOSTER_MYSTERY_LIGHTNING_COLORLESS, NO_BOOSTER
- print_npc_text Text0620
- quit_script_fully
- ; 0xe42b
- Script_LostToJennifer: ; e42b (3:642b)
- start_script
- print_text_quit_fully Text0621
- ; 0xe42f
- Script_Nicholas: ; e42f (3:642f)
- start_script
- print_npc_text Text0622
- ask_question_jump Text0623, .ows_e43c
- print_npc_text Text0624
- quit_script_fully
- ; 0xe43c
- .ows_e43c
- print_npc_text Text0625
- start_duel PRIZES_4, BOOM_BOOM_SELFDESTRUCT_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe444
- Script_BeatNicholas: ; e444 (3:6444)
- start_script
- max_out_flag_value EVENT_FLAG_26
- print_npc_text Text0626
- give_booster_packs BOOSTER_COLOSSEUM_LIGHTNING, BOOSTER_COLOSSEUM_LIGHTNING, NO_BOOSTER
- print_npc_text Text0627
- quit_script_fully
- ; 0xe452
- Script_LostToNicholas: ; e452 (3:6452)
- start_script
- print_text_quit_fully Text0628
- ; 0xe456
- Script_Brandon: ; e456 (3:6456)
- start_script
- jump_if_flag_zero_2 EVENT_FLAG_25, .ows_e469
- jump_if_flag_zero_2 EVENT_FLAG_26, .ows_e469
- jump_if_flag_zero_2 EVENT_FLAG_27, .ows_e469
- print_npc_text Text0629
- script_jump .ows_e46c
- ; 0xe469
- .ows_e469
- print_npc_text Text062a
- .ows_e46c
- print_npc_text Text062b
- ask_question_jump Text062c, .ows_e478
- print_npc_text Text062d
- quit_script_fully
- ; 0xe478
- .ows_e478
- print_npc_text Text062e
- start_duel PRIZES_4, POWER_GENERATOR_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe480
- Script_BeatBrandon: ; e480 (3:6480)
- start_script
- try_give_pc_pack $05
- max_out_flag_value EVENT_FLAG_27
- print_npc_text Text062f
- give_booster_packs BOOSTER_COLOSSEUM_LIGHTNING, BOOSTER_COLOSSEUM_LIGHTNING, NO_BOOSTER
- print_npc_text Text0630
- quit_script_fully
- ; 0xe490
- Script_LostToBrandon: ; e490 (3:6490)
- start_script
- print_text_quit_fully Text0631
- ; 0xe494
- ; gap from 0xe494 to 0xe4ad
- Script_Isaac: ; e4ad (3:64ad)
- start_script
- jump_if_flag_zero_2 EVENT_FLAG_25, .ows_e4bd
- jump_if_flag_zero_2 EVENT_FLAG_26, .ows_e4bd
- jump_if_flag_zero_2 EVENT_FLAG_27, .ows_e4bd
- script_jump .ows_e4c1
- ; 0xe4bd
- .ows_e4bd
- print_npc_text Text0632
- quit_script_fully
- ; 0xe4c1
- .ows_e4c1
- jump_if_flag_nonzero_2 EVENT_FLAG_0C, Script_LostToIsaac.ows_e503
- jump_if_flag_zero_2 EVENT_FLAG_28, NULL
- print_variable_npc_text Text0633, Text0634
- max_out_flag_value EVENT_FLAG_28
- ask_question_jump Text0635, .ows_e4d9
- print_npc_text Text0636
- quit_script_fully
- ; 0xe4d9
- .ows_e4d9
- print_npc_text Text0637
- start_duel PRIZES_6, ZAPPING_SELFDESTRUCT_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xe4e1
- Script_BeatIsaac: ; e4e1 (3:64e1)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_0C, Script_LostToIsaac.ows_e517
- print_npc_text Text0638
- max_out_flag_value EVENT_FLAG_0C
- try_give_medal_pc_packs
- show_medal_received_screen EVENT_FLAG_0C
- record_master_win $04
- print_npc_text Text0639
- give_booster_packs BOOSTER_MYSTERY_LIGHTNING_COLORLESS, BOOSTER_MYSTERY_LIGHTNING_COLORLESS, NO_BOOSTER
- print_npc_text Text063a
- quit_script_fully
- ; 0xe4fb
- Script_LostToIsaac: ; e4fb (3:64fb)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_0C, .ows_e522
- print_text_quit_fully Text063b
- ; 0xe503
- .ows_e503
- print_npc_text Text063c
- ask_question_jump Text0635, .ows_e50f
- print_npc_text Text063d
- quit_script_fully
- ; 0xe50f
- .ows_e50f
- print_npc_text Text063e
- start_duel PRIZES_6, ZAPPING_SELFDESTRUCT_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xe517
- .ows_e517
- print_npc_text Text063f
- give_booster_packs BOOSTER_MYSTERY_LIGHTNING_COLORLESS, BOOSTER_MYSTERY_LIGHTNING_COLORLESS, NO_BOOSTER
- print_npc_text Text0640
- quit_script_fully
- ; 0xe522
- .ows_e522
- print_text_quit_fully Text0641
- ; 0xe525
- ; gap from 0xe525 to 0xe566
- Script_Clerk5: ; e566 (3:6566)
- start_script
- print_text_quit_fully Text06d7
- ; 0xe56a
- ; gap from 0xe56a to 0xe573
- Script_Michael: ; e573 (3:6573)
- start_script
- jump_if_flag_not_less_than EVENT_FLAG_11, $08, Script_de81
- jump_if_flag_equal EVENT_FLAG_11, $01, NULL
- print_variable_npc_text Text06d8, Text06d9
- script_set_flag_value EVENT_FLAG_11, $02
- ask_question_jump Text06da, .ows_e58f
- print_npc_text Text06db
- quit_script_fully
- ; 0xe58f
- .ows_e58f
- print_npc_text Text06dc
- start_duel PRIZES_4, HEATED_BATTLE_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe597
- Script_BeatMichaelInGrassClubEntrance: ; e597 (3:6597)
- start_script
- script_set_flag_value EVENT_FLAG_11, $08
- print_npc_text Text06dd
- give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
- print_npc_text Text06de
- close_text_box
- move_active_npc_by_direction NPCMovementTable_e5af
- unload_active_npc
- quit_script_fully
- ; 0xe5ab
- Script_LostToMichaelInGrassClubEntrance: ; e5ab (3:65ab)
- start_script
- print_text_quit_fully Text06df
- ; 0xe5af
- NPCMovementTable_e5af: ; e5af (3:65af)
- dw NPCMovement_e5b7
- dw NPCMovement_e5b7
- dw NPCMovement_e5b7
- dw NPCMovement_e5bf
- NPCMovement_e5b7: ; e5b7 (3:65b7)
- db WEST
- db WEST
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db $ff
- NPCMovement_e5bf: ; e5bf (3:65bf)
- db SOUTH
- db WEST
- db WEST
- db $fe, -9
- ; gap from 0xe5c4 to 0xe5d2
- Script_Brittany: ; e5d2 (3:65d2)
- start_script
- jump_if_flag_less_than EVENT_FLAG_35, $01, NULL
- print_variable_npc_text Text06e0, Text06e1
- ask_question_jump Text06e2, .start_duel
- print_npc_text Text06e3
- quit_script_fully
- ; 0xe5e6
- .start_duel
- print_npc_text Text06e4
- start_duel PRIZES_4, ETCETERA_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe5ee
- Script_BeatBrittany: ; e5ee (3:65ee)
- start_script
- print_npc_text Text06e5
- give_booster_packs BOOSTER_MYSTERY_GRASS_COLORLESS, BOOSTER_MYSTERY_GRASS_COLORLESS, NO_BOOSTER
- jump_if_flag_less_than EVENT_FLAG_35, $02, NULL
- print_variable_npc_text Text06e6, Text06e7
- max_out_flag_value EVENT_BEAT_BRITTANY
- jump_if_flag_not_less_than EVENT_FLAG_35, $02, .quit
- jump_if_flag_zero_2 EVENT_FLAG_3A, .quit
- jump_if_flag_zero_2 EVENT_FLAG_3B, .quit
- script_set_flag_value EVENT_FLAG_35, $01
- max_out_flag_value EVENT_FLAG_1E
- print_npc_text Text06e8
- .quit
- quit_script_fully
- ; 0xe618
- Script_LostToBrittany: ; e618 (3:6618)
- start_script
- print_text_quit_fully Text06e9
- ; 0xe61c
- Script_e61c: ; e61c (3:661c)
- print_text_quit_fully Text06ea
- ; 0xe61f
- Script_Lass2: ; e61f (3:661f)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_04, Script_e61c
- jump_if_flag_not_less_than EVENT_FLAG_37, $06, Script_e61c
- jump_if_flag_not_less_than EVENT_FLAG_37, $04, .ows_e6a1
- jump_if_flag_not_less_than EVENT_FLAG_37, $02, .ows_e66a
- jump_if_flag_equal EVENT_FLAG_37, $00, NULL
- print_variable_npc_text Text06eb, Text06ec
- script_set_flag_value EVENT_FLAG_37, $01
- ask_question_jump Text06ed, .ows_e648
- print_text_quit_fully Text06ee
- ; 0xe648
- .ows_e648
- jump_if_card_owned ODDISH, .ows_e64f
- print_text_quit_fully Text06ef
- ; 0xe64f
- .ows_e64f
- jump_if_card_in_collection ODDISH, .ows_e656
- print_text_quit_fully Text06f0
- ; 0xe656
- .ows_e656
- max_out_flag_value EVENT_FLAG_04
- script_set_flag_value EVENT_FLAG_37, $02
- print_npc_text Text06f1
- print_text Text06f2
- take_card ODDISH
- give_card VILEPLUME
- show_card_received_screen VILEPLUME
- print_text_quit_fully Text06f3
- ; 0xe66a
- .ows_e66a
- jump_if_flag_equal EVENT_FLAG_37, $02, NULL
- print_variable_npc_text Text06f4, Text06f5
- script_set_flag_value EVENT_FLAG_37, $03
- ask_question_jump Text06ed, .ows_e67f
- print_text_quit_fully Text06f6
- ; 0xe67f
- .ows_e67f
- jump_if_card_owned CLEFAIRY, .ows_e686
- print_text_quit_fully Text06f7
- ; 0xe686
- .ows_e686
- jump_if_card_in_collection CLEFAIRY, .ows_e68d
- print_text_quit_fully Text06f8
- ; 0xe68d
- .ows_e68d
- max_out_flag_value EVENT_FLAG_04
- script_set_flag_value EVENT_FLAG_37, $04
- print_npc_text Text06f9
- print_text Text06fa
- take_card CLEFAIRY
- give_card PIKACHU3
- show_card_received_screen PIKACHU3
- print_text_quit_fully Text06f3
- ; 0xe6a1
- .ows_e6a1
- jump_if_flag_equal EVENT_FLAG_37, $04, NULL
- print_variable_npc_text Text06fb, Text06fc
- script_set_flag_value EVENT_FLAG_37, $05
- ask_question_jump Text06ed, .ows_e6b6
- print_text_quit_fully Text06fd
- ; 0xe6b6
- .ows_e6b6
- jump_if_card_owned CHARIZARD, .ows_e6bd
- print_text_quit_fully Text06fe
- ; 0xe6bd
- .ows_e6bd
- jump_if_card_in_collection CHARIZARD, .ows_e6c4
- print_text_quit_fully Text06ff
- ; 0xe6c4
- .ows_e6c4
- max_out_flag_value EVENT_FLAG_04
- script_set_flag_value EVENT_FLAG_37, $06
- print_npc_text Text0700
- print_text Text0701
- take_card CHARIZARD
- give_card BLASTOISE
- show_card_received_screen BLASTOISE
- print_text_quit_fully Text06f3
- ; 0xe6d8
- Script_Granny2: ; e6d8 (3:66d8)
- start_script
- print_text_quit_fully Text0702
- ; 0xe6dc
- ; gap from 0xe6dc to 0xe6e3
- Script_Gal2: ; e6e3 (3:66e3)
- start_script
- print_text_quit_fully Text0703
- ; 0xe6e7
- ; gap from 0xe6e7 to 0xe701
- Script_Kristin: ; e701 (3:6701)
- start_script
- jump_if_flag_less_than EVENT_FLAG_35, $01, NULL
- print_variable_npc_text Text0704, Text0705
- ask_question_jump Text0706, .ows_e714
- print_text_quit_fully Text0707
- ; 0xe714
- .ows_e714
- print_npc_text Text0708
- start_duel PRIZES_4, FLOWER_GARDEN_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe71c
- Script_BeatKristin: ; e71c (3:671c)
- start_script
- try_give_pc_pack $06
- print_npc_text Text0709
- give_booster_packs BOOSTER_EVOLUTION_GRASS, BOOSTER_EVOLUTION_GRASS, NO_BOOSTER
- print_npc_text Text070a
- max_out_flag_value EVENT_FLAG_3A
- jump_if_flag_not_less_than EVENT_FLAG_35, $02, .ows_e740
- jump_if_flag_zero_2 EVENT_BEAT_BRITTANY, .ows_e740
- jump_if_flag_zero_2 EVENT_FLAG_3B, .ows_e740
- script_set_flag_value EVENT_FLAG_35, $01
- max_out_flag_value EVENT_FLAG_1E
- print_npc_text Text070b
- .ows_e740
- quit_script_fully
- ; 0xe741
- Script_LostToKristin: ; e741 (3:6741)
- start_script
- print_text_quit_fully Text070c
- ; 0xe745
- Script_Heather: ; e745 (3:6745)
- start_script
- jump_if_flag_less_than EVENT_FLAG_35, $01, NULL
- print_variable_npc_text Text070d, Text070e
- ask_question_jump Text070f, .ows_e758
- print_text_quit_fully Text0710
- ; 0xe758
- .ows_e758
- print_npc_text Text0711
- start_duel PRIZES_4, KALEIDOSCOPE_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe760
- Script_BeatHeather: ; e760 (3:6760)
- start_script
- jump_if_flag_less_than EVENT_FLAG_35, $02, NULL
- print_variable_npc_text Text0712, Text0713
- give_booster_packs BOOSTER_COLOSSEUM_GRASS, BOOSTER_COLOSSEUM_GRASS, NO_BOOSTER
- print_npc_text Text0714
- max_out_flag_value EVENT_FLAG_3B
- jump_if_flag_not_less_than EVENT_FLAG_35, $02, .ows_e789
- jump_if_flag_zero_2 EVENT_BEAT_BRITTANY, .ows_e789
- jump_if_flag_zero_2 EVENT_FLAG_3A, .ows_e789
- script_set_flag_value EVENT_FLAG_35, $01
- max_out_flag_value EVENT_FLAG_1E
- print_npc_text Text0715
- .ows_e789
- quit_script_fully
- ; 0xe78a
- Script_LostToHeather: ; e78a (3:678a)
- start_script
- jump_if_flag_less_than EVENT_FLAG_35, $02, NULL
- print_variable_npc_text Text0716, Text0717
- quit_script_fully
- ; 0xe796
- ; gap from 0xe796 to 0xe7a6
- Script_e7a6: ; e7a6 (3:67a6)
- start_script
- jump_if_flag_zero_2 EVENT_FLAG_08, NULL
- print_variable_npc_text Text0718, Text0719
- ask_question_jump Text071a, .ows_e7bf
- jump_if_flag_zero_2 EVENT_FLAG_08, NULL
- print_variable_npc_text Text071b, Text071c
- quit_script_fully
- ; 0xe7bf
- .ows_e7bf
- jump_if_flag_nonzero_2 EVENT_FLAG_08, .ows_e7cb
- print_npc_text Text071d
- start_duel PRIZES_6, FLOWER_POWER_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xe7cb
- .ows_e7cb
- print_npc_text Text071e
- start_duel PRIZES_6, FLOWER_POWER_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xe7d3
- Script_BeatNikki: ; e7d3 (3:67d3)
- start_script
- jump_if_flag_zero_2 EVENT_FLAG_08, NULL
- print_variable_npc_text Text071f, Text0720
- jump_if_flag_nonzero_2 EVENT_FLAG_08, .ows_e7eb
- max_out_flag_value EVENT_FLAG_08
- try_give_medal_pc_packs
- show_medal_received_screen EVENT_FLAG_08
- record_master_win $05
- print_npc_text Text0721
- .ows_e7eb
- give_booster_packs BOOSTER_LABORATORY_NEUTRAL, BOOSTER_LABORATORY_NEUTRAL, NO_BOOSTER
- script_jump Script_LostToNikki.ows_e7f3
- ; 0xe7f2
- Script_LostToNikki: ; e7f2 (3:67f2)
- start_script
- .ows_e7f3
- print_text_quit_fully Text0722
- ; 0xe7f6
- ; gap from 0xe7f6 to 0xe84c
- Script_Clerk6: ; e84c (3:684c)
- start_script
- print_text_quit_fully Text0642
- ; 0xe850
- Script_Lad3: ; e850 (3:6850)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0643, Text0644
- quit_script_fully
- ; 0xe85b
- ; gap from 0xe85b to 0xe862
- Script_FirstRonaldEncounter: ; e862 (3:6862)
- start_script
- max_out_flag_value EVENT_FLAG_4B
- move_active_npc NPCMovement_e894
- load_current_map_name_into_txram_slot $00
- print_npc_text Text0645
- close_text_box
- move_player NORTH, 1
- move_player NORTH, 1
- print_npc_text Text0646
- ask_question_jump_default_yes NULL, .ows_e882
- print_npc_text Text0647
- script_jump .ows_e885
- ; 0xe882
- .ows_e882
- print_npc_text Text0648
- .ows_e885
- print_npc_text Text0649
- close_text_box
- set_player_direction WEST
- move_player EAST, 4
- move_active_npc NPCMovement_e894
- unload_active_npc
- play_default_song
- quit_script_fully
- ; 0xe894
- NPCMovement_e894: ; e894 (3:6894)
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db $ff
- ; gap from 0xe89a to 0xe8c0
- Script_FirstRonaldFight: ; e8c0 (3:68c0)
- start_script
- move_active_npc NPCMovement_e905
- do_frames 60
- move_active_npc NPCMovement_e90d
- print_npc_text Text064a
- jump_if_player_coords_match 8, 2, .ows_e8d6
- set_player_direction WEST
- move_player WEST, 1
- .ows_e8d6
- set_player_direction SOUTH
- move_player SOUTH, 1
- move_player SOUTH, 1
- print_npc_text Text064b
- script_set_flag_value EVENT_FLAG_4C, $01
- start_duel PRIZES_6, IM_RONALD_DECK_ID, MUSIC_RONALD
- quit_script_fully
- ; 0xe8e9
- Script_BeatFirstRonaldFight: ; e8e9 (3:68e9)
- start_script
- print_npc_text Text064c
- give_card JIGGLYPUFF1
- show_card_received_screen JIGGLYPUFF1
- print_npc_text Text064d
- script_jump Script_LostToFirstRonaldFight.ows_e8fb
- ; 0xe8f7
- Script_LostToFirstRonaldFight: ; e8f7 (3:68f7)
- start_script
- print_npc_text Text064e
- .ows_e8fb
- script_set_flag_value EVENT_FLAG_4C, $02
- close_text_box
- move_active_npc NPCMovement_e90f
- unload_active_npc
- play_default_song
- quit_script_fully
- ; 0xe905
- NPCMovement_e905: ; e905 (3:6905)
- db EAST
- db EAST
- db EAST
- db EAST
- db EAST
- db SOUTH
- db NORTH | NO_MOVE
- db $ff
- NPCMovement_e90d: ; e90d (3:690d)
- db NORTH
- db $ff
- NPCMovement_e90f: ; e90f (3:690f)
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db $ff
- ; gap from 0xe915 to 0xe91e
- Script_SecondRonaldFight: ; e91e (3:691e)
- start_script
- move_active_npc NPCMovement_e905
- do_frames 60
- move_active_npc NPCMovement_e90d
- print_npc_text Text064f
- jump_if_player_coords_match 8, 2, .ows_6934
- set_player_direction WEST
- move_player WEST, 1
- .ows_6934
- set_player_direction SOUTH
- move_player SOUTH, 1
- move_player SOUTH, 1
- print_npc_text Text0650
- script_set_flag_value EVENT_FLAG_4D, $01
- start_duel PRIZES_6, POWERFUL_RONALD_DECK_ID, MUSIC_RONALD
- quit_script_fully
- ; 0xe947
- Script_BeatSecondRonaldFight: ; e947 (3:6947)
- start_script
- print_npc_text Text0651
- give_card SUPER_ENERGY_RETRIEVAL
- show_card_received_screen SUPER_ENERGY_RETRIEVAL
- print_npc_text Text0652
- script_jump Script_LostToSecondRonaldFight.ows_e959
- ; 0xe955
- Script_LostToSecondRonaldFight: ; e955 (3:6955)
- start_script
- print_npc_text Text0653
- .ows_e959
- script_set_flag_value EVENT_FLAG_4D, $02
- close_text_box
- move_active_npc NPCMovement_e90f
- unload_active_npc
- play_default_song
- quit_script_fully
- ; 0xe963
- ; gap from 0xe963 to 0xe980
- Script_Robert: ; e980 (3:6980)
- start_script
- print_npc_text Text0654
- ask_question_jump Text0655, .ows_e98d
- print_npc_text Text0656
- quit_script_fully
- ; 0xe98d
- .ows_e98d
- print_npc_text Text0657
- start_duel PRIZES_4, GHOST_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xe995
- Script_BeatRobert: ; e995 (3:6995)
- start_script
- print_npc_text Text0658
- give_booster_packs BOOSTER_EVOLUTION_PSYCHIC, BOOSTER_EVOLUTION_PSYCHIC, NO_BOOSTER
- print_npc_text Text0659
- quit_script_fully
- ; 0xe9a1
- Script_LostToRobert: ; e9a1 (3:69a1)
- start_script
- print_text_quit_fully Text065a
- ; 0xe9a5
- Script_Pappy1: ; e9a5 (3:69a5)
- start_script
- jump_if_flag_equal EVENT_FLAG_31, $03, .ows_e9de
- jump_if_flag_nonzero_2 EVENT_FLAG_0D, .ows_e9cb
- jump_if_flag_equal EVENT_FLAG_31, $02, .ows_e9c8
- script_set_flag_value EVENT_FLAG_31, $01
- print_npc_text Text065b
- ask_question_jump_default_yes Text065c, .ows_e9c2
- print_text_quit_fully Text065d
- ; 0xe9c2
- .ows_e9c2
- script_set_flag_value EVENT_FLAG_31, $02
- print_text_quit_fully Text065e
- ; 0xe9c8
- .ows_e9c8
- print_text_quit_fully Text065f
- ; 0xe9cb
- .ows_e9cb
- jump_if_flag_zero_1 EVENT_FLAG_31, NULL
- print_variable_npc_text Text0660, Text0661
- give_card MEWTWO3
- show_card_received_screen MEWTWO3
- script_set_flag_value EVENT_FLAG_31, $03
- print_text_quit_fully Text0662
- ; 0xe9de
- .ows_e9de
- print_text_quit_fully Text0663
- ; 0xe9e1
- ; gap from 0xe9e1 to 0xea02
- Script_ea02: ; ea02 (3:6a02)
- start_script
- move_active_npc_by_direction NPCMovementTable_ea1a
- max_out_flag_value EVENT_FLAG_32
- print_npc_text Text0664
- close_text_box
- set_player_direction SOUTH
- move_player NORTH, 4
- move_player NORTH, 1
- move_active_npc_by_direction NPCMovementTable_ea22
- unload_active_npc
- play_default_song
- quit_script_fully
- ; 0xea1a
- NPCMovementTable_ea1a: ; ea1a (3:6a1a)
- dw NPCMovement_ea2a
- dw NPCMovement_ea2a
- dw NPCMovement_ea2a
- dw NPCMovement_ea2a
- NPCMovementTable_ea22: ; ea22 (3:6a22)
- dw NPCMovement_ea2c
- dw NPCMovement_ea2c
- dw NPCMovement_ea2c
- dw NPCMovement_ea2c
- NPCMovement_ea2a: ; ea2a (3:6a2a)
- db EAST
- db EAST
- NPCMovement_ea2c: ; ea2c (3:6a2c)
- db EAST
- db EAST
- db EAST
- db $ff
- Script_Gal3: ; ea30 (3:6a30)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0665, Text0666
- quit_script_fully
- ; 0xea3b
- Script_Chap4: ; ea3b (3:6a3b)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0667, Text0668
- quit_script_fully
- ; 0xea46
- ; gap from 0xea46 to 0xea60
- Script_Daniel: ; ea60 (3:6a60)
- start_script
- try_give_medal_pc_packs
- jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $04, .ows_ea7e
- jump_if_flag_nonzero_2 EVENT_FLAG_2F, .ows_ea70
- max_out_flag_value EVENT_FLAG_2F
- print_npc_text Text0669
- .ows_ea70
- jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $01, .ows_ea78
- print_text_quit_fully Text066a
- ; 0xea78
- .ows_ea78
- print_npc_text Text066b
- script_jump .ows_ea81
- ; 0xea7e
- .ows_ea7e
- print_npc_text Text066c
- .ows_ea81
- ask_question_jump Text066d, .ows_ea8a
- print_npc_text Text066e
- quit_script_fully
- ; 0xea8a
- .ows_ea8a
- print_npc_text Text066f
- start_duel PRIZES_4, NAP_TIME_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xea92
- Script_BeatDaniel: ; ea92 (3:6a92)
- start_script
- print_npc_text Text0670
- give_booster_packs BOOSTER_EVOLUTION_PSYCHIC, BOOSTER_EVOLUTION_PSYCHIC, NO_BOOSTER
- print_npc_text Text0671
- quit_script_fully
- ; 0xea9e
- Script_LostToDaniel: ; ea9e (3:6a9e)
- start_script
- print_text_quit_fully Text0672
- ; 0xeaa2
- Script_Stephanie: ; eaa2 (3:6aa2)
- start_script
- try_give_medal_pc_packs
- jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $02, .ows_eaac
- print_text_quit_fully Text0673
- ; 0xeaac
- .ows_eaac
- print_npc_text Text0674
- ask_question_jump Text0675, .ows_eab8
- print_npc_text Text0676
- quit_script_fully
- ; 0xeab8
- .ows_eab8
- print_npc_text Text0677
- start_duel PRIZES_4, STRANGE_POWER_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xeac0
- Script_BeatStephanie: ; eac0 (3:6ac0)
- start_script
- print_npc_text Text0678
- give_booster_packs BOOSTER_LABORATORY_PSYCHIC, BOOSTER_LABORATORY_PSYCHIC, NO_BOOSTER
- print_npc_text Text0679
- quit_script_fully
- ; 0xeacc
- Script_LostToStephanie: ; eacc (3:6acc)
- start_script
- print_text_quit_fully Text067a
- ; 0xead0
- ; gap from 0xead0 to 0xeadf
- Script_Murray: ; eadf (3:6adf)
- start_script
- try_give_pc_pack $07
- try_give_medal_pc_packs
- jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $04, .ows_eaef
- print_npc_text Text067b
- print_text Text067c
- quit_script_fully
- ; 0xeaef
- .ows_eaef
- jump_if_flag_nonzero_2 EVENT_FLAG_0D, Script_LostToMurray.ows_eb31
- jump_if_flag_zero_2 EVENT_FLAG_30, NULL
- print_variable_npc_text Text067d, Text067e
- max_out_flag_value EVENT_FLAG_30
- ask_question_jump Text067f, .ows_eb07
- print_npc_text Text0680
- quit_script_fully
- ; 0xeb07
- .ows_eb07
- print_npc_text Text0681
- start_duel PRIZES_6, STRANGE_PSYSHOCK_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xeb0f
- Script_BeatMurray: ; eb0f (3:6b0f)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_0D, Script_LostToMurray.ows_eb45
- print_npc_text Text0682
- max_out_flag_value EVENT_FLAG_0D
- try_give_medal_pc_packs
- show_medal_received_screen EVENT_FLAG_0D
- record_master_win $06
- print_npc_text Text0683
- give_booster_packs BOOSTER_LABORATORY_PSYCHIC, BOOSTER_LABORATORY_PSYCHIC, NO_BOOSTER
- print_npc_text Text0684
- quit_script_fully
- ; 0xeb29
- Script_LostToMurray: ; eb29 (3:6b29)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_0D, .ows_eb50
- print_text_quit_fully Text0685
- ; 0xeb31
- .ows_eb31
- print_npc_text Text0686
- ask_question_jump Text067f, .ows_eb3d
- print_npc_text Text0687
- quit_script_fully
- ; 0xeb3d
- .ows_eb3d
- print_npc_text Text0688
- start_duel PRIZES_6, STRANGE_PSYSHOCK_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xeb45
- .ows_eb45
- print_npc_text Text0689
- give_booster_packs BOOSTER_LABORATORY_PSYCHIC, BOOSTER_LABORATORY_PSYCHIC, NO_BOOSTER
- print_npc_text Text068a
- quit_script_fully
- ; 0xeb50
- .ows_eb50
- print_text_quit_fully Text068b
- ; 0xeb53
- Script_Clerk7: ; eb53 (3:6b53)
- start_script
- print_text_quit_fully Text0744
- ; 0xeb57
- ; gap from 0xeb57 to 0xeb84
- Script_Lad1: ; eb84 (3:6b84)
- start_script
- jump_if_flag_not_less_than EVENT_FLAG_1F, $07, .ows_ebbb
- jump_if_flag_nonzero_2 EVENT_FLAG_1D, .ows_eb97
- max_out_flag_value EVENT_FLAG_1C
- max_out_flag_value EVENT_FLAG_1E
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text0745
- ; 0xeb97
- .ows_eb97
- jump_if_flag_nonzero_2 EVENT_FLAG_00, .ows_ebb8
- jump_if_flag_not_less_than EVENT_FLAG_1F, $05, .ows_ebaf
- jump_if_flag_not_less_than EVENT_FLAG_1F, $03, .ows_ebaa
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text0746
- ; 0xebaa
- .ows_ebaa
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text0747
- ; 0xebaf
- .ows_ebaf
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_ebb8
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text0748
- ; 0xebb8
- .ows_ebb8
- print_text_quit_fully Text0749
- ; 0xebbb
- .ows_ebbb
- script_set_flag_value EVENT_FLAG_1F, $08
- print_text_quit_fully Text074a
- ; 0xebc1
- Script_Man3: ; ebc1 (3:6bc1)
- start_script
- print_text_quit_fully Text074b
- ; 0xebc5
- ; gap from 0xebc5 to 0xebdd
- Script_ebdd: ; ebdd (3:6bdd)
- start_script
- print_npc_text Text074c
- move_active_npc NPCMovement_ebeb
- print_text_quit_fully Text074d
- ; 0xebe7
- ; gap from 0xebe7 to 0xebeb
- NPCMovement_ebeb: ; ebeb (3:6beb)
- db WEST | NO_MOVE
- db $ff
- Script_Specs3: ; ebed (3:6bed)
- start_script
- print_text_quit_fully Text074e
- ; 0xebf1
- ; gap from 0xebf1 to 0xec11
- Script_David: ; ec11 (3:6c11)
- start_script
- jump_if_flag_zero_1 EVENT_FLAG_1A, NULL
- print_variable_npc_text Text074f, Text0750
- script_set_flag_value EVENT_FLAG_1A, $01
- ask_question_jump Text0751, .ows_ec27
- print_npc_text Text0752
- quit_script_fully
- ; 0xec27
- .ows_ec27
- print_npc_text Text0753
- start_duel PRIZES_4, LOVELY_NIDORAN_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xec2f
- Script_BeatDavid: ; ec2f (3:6c2f)
- start_script
- script_set_flag_value EVENT_FLAG_1A, $02
- print_npc_text Text0754
- give_booster_packs BOOSTER_MYSTERY_GRASS_COLORLESS, BOOSTER_MYSTERY_GRASS_COLORLESS, NO_BOOSTER
- print_npc_text Text0755
- quit_script_fully
- ; 0xec3e
- Script_LostToDavid: ; ec3e (3:6c3e)
- start_script
- print_text_quit_fully Text0756
- ; 0xec42
- Script_Erik: ; ec42 (3:6c42)
- start_script
- print_npc_text Text0757
- ask_question_jump Text0758, .ows_ec4f
- print_npc_text Text0759
- quit_script_fully
- ; 0xec4f
- .ows_ec4f
- print_npc_text Text075a
- start_duel PRIZES_4, POISON_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xec57
- Script_BeatErik: ; ec57 (3:6c57)
- start_script
- print_npc_text Text075b
- give_booster_packs BOOSTER_EVOLUTION_GRASS, BOOSTER_EVOLUTION_GRASS, NO_BOOSTER
- print_npc_text Text075c
- quit_script_fully
- ; 0xec63
- Script_LostToErik: ; ec63 (3:6c63)
- start_script
- print_text_quit_fully Text075d
- ; 0xec67
- Script_Rick: ; ec67 (3:6c67)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_09, Script_LostToRick.ows_eca2
- print_npc_text Text075e
- ask_question_jump Text075f, .ows_ec78
- print_npc_text Text0760
- quit_script_fully
- ; 0xec78
- .ows_ec78
- print_npc_text Text0761
- start_duel PRIZES_6, WONDERS_OF_SCIENCE_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xec80
- Script_BeatRick: ; ec80 (3:6c80)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_09, Script_LostToRick.ows_ecb6
- print_npc_text Text0762
- max_out_flag_value EVENT_FLAG_09
- try_give_medal_pc_packs
- show_medal_received_screen EVENT_FLAG_09
- record_master_win $07
- print_npc_text Text0763
- give_booster_packs BOOSTER_LABORATORY_GRASS, BOOSTER_LABORATORY_GRASS, NO_BOOSTER
- print_npc_text Text0764
- quit_script_fully
- ; 0xec9a
- Script_LostToRick: ; ec9a (3:6c9a)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_09, .ows_ecc1
- print_text_quit_fully Text0765
- ; 0xeca2
- .ows_eca2
- print_npc_text Text0766
- ask_question_jump Text075f, .ows_ecae
- print_npc_text Text0767
- quit_script_fully
- ; 0xecae
- .ows_ecae
- print_npc_text Text0768
- start_duel PRIZES_6, WONDERS_OF_SCIENCE_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xecb6
- .ows_ecb6
- print_npc_text Text0769
- give_booster_packs BOOSTER_LABORATORY_GRASS, BOOSTER_LABORATORY_GRASS, NO_BOOSTER
- print_npc_text Text076a
- quit_script_fully
- ; 0xecc1
- .ows_ecc1
- print_text_quit_fully Text076b
- ; 0xecc4
- ; gap from 0xecc4 to 0xecdb
- Script_Joseph: ; ecdb (3:6cdb)
- start_script
- try_give_pc_pack $08
- jump_if_flag_nonzero_2 EVENT_FLAG_1B, Script_LostToJoseph.ows_ed24
- print_npc_text Text076c
- ask_question_jump Text076d, .ows_ecee
- print_npc_text Text076e
- quit_script_fully
- ; 0xecee
- .ows_ecee
- print_npc_text Text076f
- start_duel PRIZES_4, FLYIN_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xecf6
- Script_BeatJoseph: ; ecf6 (3:6cf6)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_1B, Script_LostToJoseph.ows_ed37
- print_npc_text Text0770
- close_text_box
- move_active_npc_by_direction NPCMovementTable_ed11
- set_active_npc_direction WEST
- max_out_flag_value EVENT_FLAG_1B
- print_npc_text Text0771
- give_booster_packs BOOSTER_LABORATORY_GRASS, BOOSTER_LABORATORY_GRASS, NO_BOOSTER
- print_npc_text Text0772
- quit_script_fully
- ; 0xed11
- NPCMovementTable_ed11: ; ed11 (3:6d11)
- dw NPCMovement_ed19
- dw NPCMovement_ed19
- dw NPCMovement_ed19
- dw NPCMovement_ed19
- NPCMovement_ed19: ; ed19 (3:6d19)
- db EAST
- db WEST | NO_MOVE
- db $ff
- Script_LostToJoseph: ; ed1c (3:6d1c)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_1B, .ows_ed42
- print_text_quit_fully Text0773
- ; 0xed24
- .ows_ed24
- print_npc_text Text0774
- ask_question_jump Text076d, .ows_ed2f
- print_text_quit_fully Text076e
- ; 0xed2f
- .ows_ed2f
- print_npc_text Text0775
- start_duel PRIZES_4, FLYIN_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xed37
- .ows_ed37
- print_npc_text Text0776
- give_booster_packs BOOSTER_LABORATORY_GRASS, BOOSTER_LABORATORY_GRASS, NO_BOOSTER
- print_npc_text Text0777
- quit_script_fully
- ; 0xed42
- .ows_ed42
- print_text_quit_fully Text0778
- ; 0xed45
- Script_Clerk8: ; ed45 (3:6d45)
- start_script
- print_text_quit_fully Text068c
- ; 0xed49
- ; gap from 0xed49 to 0xed96
- Script_Jessica: ; ed96 (3:6d96)
- start_script
- jump_if_flag_not_less_than EVENT_FLAG_20, $08, Script_dead
- jump_if_flag_equal EVENT_FLAG_20, $01, NULL
- print_variable_npc_text Text068d, Text068e
- script_set_flag_value EVENT_FLAG_20, $02
- ask_question_jump Text068f, .ows_edb2
- print_npc_text Text0690
- quit_script_fully
- ; 0xedb2
- .ows_edb2
- print_npc_text Text0691
- start_duel PRIZES_4, LOVE_TO_BATTLE_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xedba
- Script_BeatJessicaInFireClubLobby: ; edba (3:6dba)
- start_script
- script_set_flag_value EVENT_FLAG_20, $08
- print_npc_text Text0692
- give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
- print_npc_text Text0693
- close_text_box
- move_active_npc_by_direction NPCMovementTable_edd2
- unload_active_npc
- quit_script_fully
- ; 0xedce
- Script_LostToJessicaInFireClubLobby: ; edce (3:6dce)
- start_script
- print_text_quit_fully Text0694
- ; 0xedd2
- NPCMovementTable_edd2: ; edd2 (3:6dd2)
- dw NPCMovement_edda
- dw NPCMovement_ede4
- dw NPCMovement_edda
- dw NPCMovement_edda
- NPCMovement_edda: ; edda (3:6dda)
- db EAST
- db NORTH
- db EAST
- db EAST
- db EAST
- db EAST
- db EAST
- db EAST
- db EAST
- db $ff
- NPCMovement_ede4: ; ede4 (3:6de4)
- db NORTH
- db EAST
- db $fe, -11
- Script_Chap3: ; ede8 (3:6de8)
- start_script
- jump_if_flag_not_less_than EVENT_FLAG_1F, $07, .ows_ee1f
- jump_if_flag_nonzero_2 EVENT_FLAG_1D, .ows_edfb
- max_out_flag_value EVENT_FLAG_1C
- max_out_flag_value EVENT_FLAG_1E
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text0695
- ; 0xedfb
- .ows_edfb
- jump_if_flag_nonzero_2 EVENT_FLAG_00, .ows_ee1c
- jump_if_flag_not_less_than EVENT_FLAG_1F, $05, .ows_ee13
- jump_if_flag_not_less_than EVENT_FLAG_1F, $03, .ows_ee0e
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text0696
- ; 0xee0e
- .ows_ee0e
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text0697
- ; 0xee13
- .ows_ee13
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_ee1c
- max_out_flag_value EVENT_FLAG_38
- print_text_quit_fully Text0698
- ; 0xee1c
- .ows_ee1c
- print_text_quit_fully Text0699
- ; 0xee1f
- .ows_ee1f
- script_set_flag_value EVENT_FLAG_1F, $08
- print_text_quit_fully Text069a
- ; 0xee25
- ; gap from 0xee25 to 0xee2c
- Script_Lad2: ; ee2c (3:6e2c)
- start_script
- try_give_medal_pc_packs
- jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $03, .ows_ee36
- print_text_quit_fully Text069b
- ; 0xee36
- .ows_ee36
- print_npc_text Text069c
- ask_question_jump Text069d, .ows_ee4a
- print_npc_text Text069e
- script_set_flag_value EVENT_FLAG_21, $02
- close_text_box
- move_active_npc_by_direction NPCMovementTable_ee61
- unload_active_npc
- quit_script_fully
- ; 0xee4a
- .ows_ee4a
- jump_if_any_energy_cards_in_collection .ows_ee51
- print_npc_text Text069f
- quit_script_fully
- ; 0xee51
- .ows_ee51
- remove_all_energy_cards_from_collection
- print_text Text06a0
- print_npc_text Text06a1
- script_set_flag_value EVENT_FLAG_21, $01
- close_text_box
- move_active_npc_by_direction NPCMovementTable_ee61
- unload_active_npc
- quit_script_fully
- ; 0xee61
- NPCMovementTable_ee61: ; ee61 (3:6e61)
- dw NPCMovement_ee69
- dw NPCMovement_ee72
- dw NPCMovement_ee69
- dw NPCMovement_ee69
- NPCMovement_ee69: ; ee69 (3:6e69)
- db EAST
- db SOUTH
- db SOUTH
- db SOUTH
- db EAST
- db EAST
- db EAST
- db EAST
- db $ff
- NPCMovement_ee72: ; ee72 (3:6e72)
- db SOUTH
- db EAST
- db $fe, -10
- Script_ee76: ; ee76 (3:6e76)
- start_script
- jump_if_flag_equal EVENT_FLAG_21, $01, .ows_ee7d
- quit_script_fully
- ; 0xee7d
- .ows_ee7d
- script_set_flag_value EVENT_FLAG_21, $02
- print_text FoundLv9SlowpokeText
- give_card SLOWPOKE1
- show_card_received_screen SLOWPOKE1
- quit_script_fully
- ; 0xee88
- Script_Mania: ; ee88 (3:6e88)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text06a3, Text06a4
- quit_script_fully
- ; 0xee93
- ; gap from 0xee93 to 0xeeb3
- Script_John: ; eeb3 (3:6eb3)
- start_script
- print_npc_text Text06a5
- ask_question_jump Text06a6, .ows_eec0
- print_npc_text Text06a7
- quit_script_fully
- ; 0xeec0
- .ows_eec0
- print_npc_text Text06a8
- start_duel PRIZES_4, ANGER_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xeec8
- Script_BeatJohn: ; eec8 (3:6ec8)
- start_script
- print_npc_text Text06a9
- give_booster_packs BOOSTER_EVOLUTION_FIRE, BOOSTER_EVOLUTION_FIRE, NO_BOOSTER
- print_npc_text Text06aa
- quit_script_fully
- ; 0xeed4
- Script_LostToJohn: ; eed4 (3:6ed4)
- start_script
- print_text_quit_fully Text06ab
- ; 0xeed8
- Script_Adam: ; eed8 (3:6ed8)
- start_script
- print_npc_text Text06ac
- ask_question_jump Text06ad, .ows_eee5
- print_npc_text Text06ae
- quit_script_fully
- ; 0xeee5
- .ows_eee5
- print_npc_text Text06af
- start_duel PRIZES_4, FLAMETHROWER_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xeeed
- Script_BeatAdam: ; eeed (3:6eed)
- start_script
- print_npc_text Text06b0
- give_booster_packs BOOSTER_COLOSSEUM_FIRE, BOOSTER_COLOSSEUM_FIRE, NO_BOOSTER
- print_npc_text Text06b1
- quit_script_fully
- ; 0xeef9
- Script_LostToAdam: ; eef9 (3:6ef9)
- start_script
- print_text_quit_fully Text06b2
- ; 0xeefd
- Script_Jonathan: ; eefd (3:6efd)
- start_script
- print_npc_text Text06b3
- ask_question_jump Text06b4, .ows_ef0a
- print_npc_text Text06b5
- quit_script_fully
- ; 0xef0a
- .ows_ef0a
- print_npc_text Text06b6
- start_duel PRIZES_4, RESHUFFLE_DECK_ID, MUSIC_DUEL_THEME_1
- quit_script_fully
- ; 0xef12
- Script_BeatJonathan: ; ef12 (3:6f12)
- start_script
- print_npc_text Text06b7
- give_booster_packs BOOSTER_COLOSSEUM_FIRE, BOOSTER_COLOSSEUM_FIRE, NO_BOOSTER
- print_npc_text Text06b8
- quit_script_fully
- ; 0xef1e
- Script_LostToJonathan: ; ef1e (3:6f1e)
- start_script
- print_text_quit_fully Text06b9
- ; 0xef22
- Script_Ken: ; ef22 (3:6f22)
- start_script
- try_give_pc_pack $09
- jump_if_flag_nonzero_2 EVENT_FLAG_23, .have_300_cards
- jump_if_enough_cards_owned 300, .have_300_cards
- jump_if_flag_zero_1 EVENT_FLAG_24, NULL
- print_variable_npc_text Text06ba, Text06bb
- script_set_flag_value EVENT_FLAG_24, $01
- quit_script_fully
- ; 0xef3b
- .have_300_cards
- max_out_flag_value EVENT_FLAG_23
- jump_if_flag_nonzero_2 EVENT_FLAG_0A, Script_Ken_AlreadyHaveMedal
- jump_if_flag_zero_1 EVENT_FLAG_24, NULL
- print_variable_npc_text Text06bc, Text06bd
- script_set_flag_value EVENT_FLAG_24, $01
- ask_question_jump Text06be, .start_duel
- print_npc_text Text06bf
- quit_script_fully
- ; 0xef56
- .start_duel
- print_npc_text Text06c0
- start_duel PRIZES_6, FIRE_CHARGE_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xef5e
- Script_BeatKen: ; ef5e (3:6f5e)
- start_script
- print_npc_text Text06c1
- jump_if_flag_nonzero_2 EVENT_FLAG_0A, .give_booster_packs
- max_out_flag_value EVENT_FLAG_0A
- try_give_medal_pc_packs
- show_medal_received_screen EVENT_FLAG_0A
- record_master_win $08
- print_npc_text Text06c2
- .give_booster_packs
- give_booster_packs BOOSTER_MYSTERY_NEUTRAL, BOOSTER_MYSTERY_NEUTRAL, NO_BOOSTER
- print_npc_text Text06c3
- quit_script_fully
- ; 0xef78
- Script_LostToKen: ; ef78 (3:6f78)
- start_script
- jump_if_flag_zero_2 EVENT_FLAG_0A, NULL
- print_variable_npc_text Text06c4, Text06c5
- quit_script_fully
- ; 0xef83
- Script_Ken_AlreadyHaveMedal: ; ef83 (3:6f83)
- print_npc_text Text06c6
- ask_question_jump Text06be, .start_duel
- print_text_quit_fully Text06bf
- ; 0xef8e
- .start_duel
- print_npc_text Text06c7
- start_duel PRIZES_6, FIRE_CHARGE_DECK_ID, MUSIC_DUEL_THEME_2
- quit_script_fully
- ; 0xef96
- ; gap from 0xef96 to 0xf025
- Script_Clerk9: ; f025 (3:7025)
- start_script
- jump_if_flag_zero_1 EVENT_FLAG_3F, .ows_f066
- jump_if_flag_equal EVENT_FLAG_41, $07, .ows_f069
- jump_if_flag_equal EVENT_FLAG_41, $03, .ows_f06f
- jump_if_flag_equal EVENT_FLAG_41, $02, .ows_f072
- jump_if_flag_equal EVENT_FLAG_41, $01, .ows_f06c
- jump_if_flag_equal EVENT_FLAG_40, $07, .ows_f069
- jump_if_flag_equal EVENT_FLAG_40, $03, .ows_f06f
- jump_if_flag_equal EVENT_FLAG_40, $02, .ows_f072
- jump_if_flag_equal EVENT_FLAG_40, $01, .ows_f06c
- jump_if_flag_equal EVENT_FLAG_3F, $07, .ows_f069
- jump_if_flag_equal EVENT_FLAG_3F, $03, .ows_f06f
- jump_if_flag_equal EVENT_FLAG_3F, $02, .ows_f072
- jump_if_flag_equal EVENT_FLAG_3F, $01, .ows_f06c
- .ows_f066
- print_text_quit_fully Text050a
- ; 0xf069
- .ows_f069
- print_text_quit_fully Text050b
- ; 0xf06c
- .ows_f06c
- print_text_quit_fully Text050c
- ; 0xf06f
- .ows_f06f
- print_text_quit_fully Text050d
- ; 0xf072
- .ows_f072
- print_text_quit_fully Text050e
- ; 0xf075
- ; gap from 0xf075 to 0xf09c
- Script_Pappy3: ; f09c (3:709c)
- start_script
- print_text_quit_fully Text050f
- ; 0xf0a0
- Script_Gal4: ; f0a0 (3:70a0)
- start_script
- print_text_quit_fully Text0510
- ; 0xf0a4
- Script_Champ: ; f0a4 (3:70a4)
- start_script
- print_text_quit_fully Text0511
- ; 0xf0a8
- Script_Hood2: ; f0a8 (3:70a8)
- start_script
- print_text_quit_fully Text0512
- ; 0xf0ac
- Script_Lass5: ; f0ac (3:70ac)
- start_script
- print_text_quit_fully Text0513
- ; 0xf0b0
- Script_Chap5: ; f0b0 (3:70b0)
- start_script
- print_text_quit_fully Text0514
- ; 0xf0b4
- ; gap from 0xf0b4 to 0xf166
- Script_f166: ; f166 (3:7166)
- start_script
- move_active_npc NPCMovement_f232
- jump_if_flag_equal EVENT_FLAG_58, $01, .ows_f192
- jump_if_flag_equal EVENT_FLAG_58, $02, .ows_f1a5
- jump_if_flag_equal EVENT_FLAG_58, $03, .ows_f1b8
- jump_if_flag_equal EVENT_FLAG_58, $04, .ows_f1cb
- jump_if_flag_equal EVENT_FLAG_58, $05, .ows_f1de
- jump_if_flag_equal EVENT_FLAG_58, $06, .ows_f1f1
- jump_if_flag_equal EVENT_FLAG_58, $07, .ows_f204
- jump_if_flag_equal EVENT_FLAG_58, $08, .ows_f217
- .ows_f192
- print_npc_text Text0515
- close_text_box
- move_player WEST, 1
- move_player WEST, 1
- move_player WEST, 1
- print_npc_text Text0516
- script_jump .ows_f227
- ; 0xf1a5
- .ows_f1a5
- print_npc_text Text0517
- close_text_box
- move_player WEST, 1
- move_player WEST, 1
- move_player WEST, 1
- print_npc_text Text0518
- script_jump .ows_f227
- ; 0xf1b8
- .ows_f1b8
- print_npc_text Text0519
- close_text_box
- move_player WEST, 1
- move_player WEST, 1
- move_player WEST, 1
- print_npc_text Text051a
- script_jump .ows_f227
- ; 0xf1cb
- .ows_f1cb
- print_npc_text Text051b
- close_text_box
- move_player WEST, 1
- move_player WEST, 1
- move_player WEST, 1
- print_npc_text Text051c
- script_jump .ows_f227
- ; 0xf1de
- .ows_f1de
- print_npc_text Text051d
- close_text_box
- move_player WEST, 1
- move_player WEST, 1
- move_player WEST, 1
- print_npc_text Text051e
- script_jump .ows_f227
- ; 0xf1f1
- .ows_f1f1
- print_npc_text Text051f
- close_text_box
- move_player WEST, 1
- move_player WEST, 1
- move_player WEST, 1
- print_npc_text Text0520
- script_jump .ows_f227
- ; 0xf204
- .ows_f204
- print_npc_text Text0521
- close_text_box
- move_player WEST, 1
- move_player WEST, 1
- move_player WEST, 1
- print_npc_text Text0522
- script_jump .ows_f227
- ; 0xf217
- .ows_f217
- print_npc_text Text0523
- close_text_box
- move_player WEST, 1
- move_player WEST, 1
- move_player WEST, 1
- print_npc_text Text0524
- .ows_f227
- close_text_box
- set_player_direction SOUTH
- move_player NORTH, 4
- move_active_npc NPCMovement_f232
- unload_active_npc
- quit_script_fully
- ; 0xf232
- NPCMovement_f232: ; f232 (3:7232)
- db EAST
- db EAST
- db EAST
- db EAST
- db EAST
- db EAST
- db $ff
- ; gap from 0xf239 to 0xf26c
- Script_Clerk13: ; f26c (3:726c)
- start_script
- print_text_quit_fully Text0525
- ; 0xf270
- ; gap from 0xf270 to 0xf283
- Script_Guide: ; f283 (3:7283)
- start_script
- jump_if_flag_zero_2 EVENT_FLAG_42, .ows_f28b
- print_text_quit_fully Text0526
- ; 0xf28b
- .ows_f28b
- jump_if_flag_zero_1 EVENT_FLAG_3F, .ows_f292
- print_text_quit_fully Text0527
- ; 0xf292
- .ows_f292
- print_text_quit_fully Text0528
- ; 0xf295
- Script_Clerk12: ; f295 (3:7295)
- start_script
- jump_if_flag_equal EVENT_FLAG_41, $03, .ows_f2c4
- jump_if_flag_equal EVENT_FLAG_41, $02, .ows_f2c1
- jump_if_flag_equal EVENT_FLAG_40, $03, .ows_f2c4
- jump_if_flag_equal EVENT_FLAG_40, $02, .ows_f2c1
- jump_if_flag_equal EVENT_FLAG_3F, $03, .ows_f2c4
- jump_if_flag_equal EVENT_FLAG_3F, $02, .ows_f2c1
- jump_if_flag_equal EVENT_FLAG_44, $02, .ows_f2cd
- jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f2d3
- script_jump .ows_f2c7
- ; 0xf2c1
- .ows_f2c1
- print_text_quit_fully Text0529
- ; 0xf2c4
- .ows_f2c4
- print_text_quit_fully Text052a
- ; 0xf2c7
- .ows_f2c7
- print_npc_text Text052b
- script_jump .ows_f2d6
- ; 0xf2cd
- .ows_f2cd
- print_npc_text Text052c
- script_jump .ows_f2d6
- ; 0xf2d3
- .ows_f2d3
- print_npc_text Text052d
- .ows_f2d6
- print_npc_text Text052e
- ask_question_jump Text052f, .ows_f2e1
- print_text_quit_fully Text0530
- ; 0xf2e1
- .ows_f2e1
- max_out_flag_value EVENT_FLAG_59
- print_npc_text Text0531
- close_text_box
- move_active_npc NPCMovement_f349
- jump_if_player_coords_match 8, 18, .ows_f2fa
- jump_if_player_coords_match 12, 18, .ows_f302
- move_player NORTH, 2
- script_jump .ows_f307
- ; 0xf2fa
- .ows_f2fa
- set_player_direction EAST
- move_player EAST, 2
- script_jump .ows_f307
- ; 0xf302
- .ows_f302
- set_player_direction WEST
- move_player WEST, 2
- .ows_f307
- set_player_direction NORTH
- move_player NORTH, 1
- move_player NORTH, 1
- move_player NORTH, 1
- move_player NORTH, 1
- move_player NORTH, 1
- jump_if_flag_nonzero_2 EVENT_FLAG_43, .ows_f33a
- max_out_flag_value EVENT_FLAG_43
- move_player NORTH, 1
- move_player NORTH, 1
- set_player_direction EAST
- do_frames 30
- set_player_direction SOUTH
- do_frames 20
- set_player_direction EAST
- do_frames 20
- set_player_direction SOUTH
- do_frames 30
- move_player SOUTH, 1
- move_player SOUTH, 1
- .ows_f33a
- set_player_direction EAST
- move_player EAST, 1
- move_active_npc NPCMovement_f34e
- close_advanced_text_box
- set_next_npc_and_script NPC_HOST, Script_f353
- end_script
- ret
- ; 0xf349
- NPCMovement_f349: ; f349 (3:7349)
- db NORTH
- db NORTH
- db EAST
- NPCMovement_f34c: ; f34c (3:734c)
- db WEST | NO_MOVE
- db $ff
- NPCMovement_f34e: ; f34e (3:734e)
- db WEST
- db SOUTH
- db SOUTH
- db $ff
- ; gap from 0xf352 to 0xf353
- Script_f353: ; f353 (3:7353)
- start_script
- do_frames 20
- move_active_npc NPCMovement_f37d
- do_frames 20
- move_active_npc NPCMovement_f390
- load_active_npc_name_into_txram_slot $00
- print_npc_text Text0532
- close_text_box
- move_active_npc NPCMovement_f37f
- print_npc_text Text0533
- close_text_box
- move_active_npc NPCMovement_f388
- print_npc_text Text0534
- close_text_box
- move_active_npc NPCMovement_f38e
- print_npc_text Text0535
- start_challenge_hall_duel PRIZES_4, SAMS_PRACTICE_DECK_ID, MUSIC_STOP
- quit_script_fully
- ; 0xf37d
- NPCMovement_f37d: ; f37d (3:737d)
- db EAST | NO_MOVE
- db $ff
- NPCMovement_f37f: ; f37f (3:737f)
- db EAST
- db EAST
- db SOUTH
- db $ff
- NPCMovement_f383: ; f383 (3:7383)
- db NORTH
- db WEST
- db WEST
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_f388: ; f388 (3:7388)
- db NORTH
- db WEST
- db WEST
- NPCMovement_f38b: ; f38b (3:738b)
- db WEST
- db SOUTH
- db $ff
- NPCMovement_f38e: ; f38e (3:738e)
- db NORTH
- db EAST
- NPCMovement_f390: ; f390 (3:7390)
- db SOUTH | NO_MOVE
- db $ff
- Script_LostAtChallengeHall: ; f392 (3:7392)
- start_script
- do_frames 20
- move_active_npc NPCMovement_f37d
- do_frames 20
- move_active_npc NPCMovement_f390
- jump_if_flag_equal EVENT_FLAG_45, $02, Script_f410
- jump_if_flag_equal EVENT_FLAG_45, $03, Script_f410.ows_f41a
- load_active_npc_name_into_txram_slot $00
- load_active_npc_name_into_txram_slot $01
- print_npc_text Text0536
- .ows_f3ae
- close_text_box
- move_active_npc NPCMovement_f38b
- print_npc_text Text0537
- close_text_box
- move_active_npc NPCMovement_f38e
- jump_if_flag_equal EVENT_FLAG_44, $02, .ows_f3ce
- jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f3d9
- script_set_flag_value EVENT_FLAG_3F, $03
- script_set_flag_value EVENT_FLAG_48, $03
- zero_out_flag_value EVENT_FLAG_51
- script_jump .ows_f3e2
- ; 0xf3ce
- .ows_f3ce
- script_set_flag_value EVENT_FLAG_40, $03
- script_set_flag_value EVENT_FLAG_49, $03
- zero_out_flag_value EVENT_FLAG_55
- script_jump .ows_f3e2
- ; 0xf3d9
- .ows_f3d9
- script_set_flag_value EVENT_FLAG_41, $03
- script_set_flag_value EVENT_FLAG_4A, $03
- script_jump .ows_f3e2
- ; 0xf3e2
- .ows_f3e2
- close_advanced_text_box
- set_next_npc_and_script NPC_CLERK12, Script_f3e9
- end_script
- ret
- ; 0xf3e9
- Script_f3e9: ; f3e9 (3:73e9)
- start_script
- move_active_npc NPCMovement_f40a
- set_player_direction WEST
- move_player WEST, 1
- set_player_direction SOUTH
- move_player SOUTH, 1
- move_player SOUTH, 1
- move_player SOUTH, 1
- move_player SOUTH, 1
- move_player SOUTH, 1
- move_player SOUTH, 1
- move_active_npc NPCMovement_f40d
- quit_script_fully
- ; 0xf40a
- NPCMovement_f40a: ; f40a (3:740a)
- db WEST
- db EAST | NO_MOVE
- db $ff
- NPCMovement_f40d: ; f40d (3:740d)
- db EAST
- db SOUTH | NO_MOVE
- db $ff
- Script_f410: ; f410 (3:7410)
- load_active_npc_name_into_txram_slot $00
- load_active_npc_name_into_txram_slot $01
- print_npc_text Text0538
- script_jump Script_LostAtChallengeHall.ows_f3ae
- ; 0xf41a
- .ows_f41a
- print_npc_text Text0539
- set_dialog_npc NPC_RONALD1
- jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f42e
- jump_if_flag_equal EVENT_FLAG_44, $01, NULL
- print_variable_npc_text Text053a, Text053b
- .ows_f42e
- set_dialog_npc NPC_HOST
- script_jump Script_LostAtChallengeHall.ows_f3ae
- ; 0xf433
- Script_f433: ; f433 (3:7433)
- start_script
- do_frames 20
- move_active_npc NPCMovement_f37d
- do_frames 20
- move_active_npc NPCMovement_f390
- script_jump Script_WonAtChallengeHall.ows_f4a4
- ; 0xf441
- Script_WonAtChallengeHall: ; f441 (3:7441)
- start_script
- do_frames 20
- move_active_npc NPCMovement_f37d
- do_frames 20
- move_active_npc NPCMovement_f390
- jump_if_flag_equal EVENT_FLAG_45, $03, Script_f4db
- jump_if_flag_equal EVENT_FLAG_45, $02, .ows_f456
- .ows_f456
- jump_if_flag_equal EVENT_FLAG_45, $01, NULL
- print_variable_npc_text Text053c, Text053d
- move_active_npc NPCMovement_f37f
- load_active_npc_name_into_txram_slot $00
- print_npc_text Text053e
- close_text_box
- move_challenge_hall_npc NPCMovement_f4c8
- unload_challenge_hall_npc
- print_npc_text Text053f
- close_text_box
- pick_challenge_hall_opponent
- set_challenge_hall_npc_coords 20, 20
- move_challenge_hall_npc NPCMovement_f4d0
- load_active_npc_name_into_txram_slot $00
- jump_if_flag_equal EVENT_FLAG_45, $02, NULL
- print_variable_npc_text Text0540, Text0541
- move_active_npc NPCMovement_f383
- jump_if_flag_equal EVENT_FLAG_45, $02, .ows_f4a4
- jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f4a1
- close_text_box
- set_dialog_npc NPC_RONALD1
- jump_if_flag_equal EVENT_FLAG_44, $01, NULL
- print_variable_npc_text Text0542, Text0543
- set_dialog_npc NPC_HOST
- close_text_box
- .ows_f4a1
- print_npc_text Text0544
- .ows_f4a4
- zero_out_flag_value EVENT_FLAG_47
- print_npc_text Text0545
- ask_question_jump_default_yes Text0546, .ows_f4bd
- jump_if_flag_equal EVENT_FLAG_45, $02, NULL
- print_variable_npc_text Text0547, Text0548
- start_challenge_hall_duel PRIZES_4, SAMS_PRACTICE_DECK_ID, MUSIC_STOP
- quit_script_fully
- ; 0xf4bd
- .ows_f4bd
- print_npc_text Text0549
- close_text_box
- max_out_flag_value EVENT_FLAG_47
- open_menu
- close_text_box
- script_jump .ows_f4a4
- ; 0xf4c8
- NPCMovement_f4c8: ; f4c8 (3:74c8)
- db EAST
- NPCMovement_f4c9: ; f4c9 (3:74c9)
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db $ff
- NPCMovement_f4d0: ; f4d0 (3:74d0)
- db NORTH
- db NORTH
- db NORTH
- db NORTH
- db NORTH
- db NORTH
- db WEST
- db $ff
- NPCMovement_f4d8: ; f4d8 (3:74d8)
- db EAST
- db SOUTH | NO_MOVE
- db $ff
- Script_f4db: ; f4db (3:74db)
- print_npc_text Text054a
- move_active_npc NPCMovement_f37f
- load_active_npc_name_into_txram_slot $00
- print_npc_text Text054b
- close_text_box
- jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f513
- set_dialog_npc NPC_RONALD1
- jump_if_flag_equal EVENT_FLAG_44, $01, NULL
- print_variable_npc_text Text054c, Text054d
- move_challenge_hall_npc NPCMovement_f4d8
- do_frames 40
- move_challenge_hall_npc NPCMovement_f34c
- jump_if_flag_equal EVENT_FLAG_44, $01, NULL
- print_variable_npc_text Text054e, Text054f
- set_dialog_npc NPC_HOST
- close_text_box
- move_challenge_hall_npc NPCMovement_f4c9
- script_jump .ows_f516
- ; 0xf513
- .ows_f513
- move_challenge_hall_npc NPCMovement_f4c8
- .ows_f516
- unload_challenge_hall_npc
- move_active_npc NPCMovement_f383
- print_npc_text Text0550
- close_text_box
- move_active_npc NPCMovement_f38b
- pick_challenge_cup_prize_card
- print_npc_text Text0551
- give_card VARIABLE_CARD
- show_card_received_screen VARIABLE_CARD
- print_npc_text Text0552
- close_text_box
- jump_if_flag_equal EVENT_FLAG_44, $02, .ows_f540
- jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f549
- script_set_flag_value EVENT_FLAG_3F, $02
- script_set_flag_value EVENT_FLAG_48, $02
- script_jump .ows_f552
- ; 0xf540
- .ows_f540
- script_set_flag_value EVENT_FLAG_40, $02
- script_set_flag_value EVENT_FLAG_49, $02
- script_jump .ows_f552
- ; 0xf549
- .ows_f549
- script_set_flag_value EVENT_FLAG_41, $02
- script_set_flag_value EVENT_FLAG_4A, $02
- script_jump .ows_f552
- ; 0xf552
- .ows_f552
- close_advanced_text_box
- set_next_npc_and_script NPC_CLERK12, Script_f3e9
- end_script
- ret
- ; 0xf559
- ; gap from 0xf559 to 0xf631
- Script_f631: ; f631 (3:7631)
- start_script
- print_npc_text Text0508
- close_advanced_text_box
- set_next_npc_and_script NPC_RONALD1, .ows_f63c
- end_script
- ret
- ; 0xf63c
- .ows_f63c
- ; gap from 0xf63c to 0xf651
- Script_f651: ; f651 (3:7651)
- start_script
- jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $07, .ows_f69b
- jump_if_flag_zero_2 EVENT_FLAG_4B, .ows_f69b
- jump_if_flag_nonzero_2 EVENT_FLAG_4F, .ows_f69b
- override_song MUSIC_RONALD
- max_out_flag_value EVENT_FLAG_4F
- jump_if_player_coords_match 18, 2, .ows_f66e
- move_active_npc NPCMovement_f69c
- script_jump .ows_f671
- ; 0xf66e
- .ows_f66e
- move_active_npc NPCMovement_f69d
- .ows_f671
- print_npc_text Text0553
- close_text_box
- set_player_direction SOUTH
- move_player SOUTH, 1
- print_npc_text Text0554
- ask_question_jump_default_yes NULL, .ows_f688
- print_npc_text Text0555
- script_jump .ows_f695
- ; 0xf688
- .ows_f688
- jump_if_flag_zero_1 EVENT_MEDAL_COUNT, .ows_f692
- print_npc_text Text0556
- script_jump .ows_f695
- ; 0xf692
- .ows_f692
- print_npc_text Text0557
- .ows_f695
- close_text_box
- move_active_npc NPCMovement_f6a6
- unload_active_npc
- play_default_song
- .ows_f69b
- quit_script_fully
- ; 0xf69c
- NPCMovement_f69c: ; f69c (3:769c)
- db EAST
- NPCMovement_f69d: ; f69d (3:769d)
- db NORTH
- db NORTH
- db NORTH
- db NORTH
- db EAST
- db EAST
- db NORTH
- db NORTH
- db $ff
- NPCMovement_f6a6: ; f6a6 (3:76a6)
- db WEST
- db WEST
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db $ff
- Script_f6af: ; f6af (3:76af)
- start_script
- try_give_medal_pc_packs
- jump_if_flag_equal EVENT_MEDAL_COUNT, $08, .ows_f6b9
- print_text_quit_fully Text0558
- ; 0xf6b9
- .ows_f6b9
- print_npc_text Text0559
- play_sfx SFX_0F
- replace_map_blocks $00
- do_frames 30
- move_player NORTH, 1
- quit_script_fully
- ; 0xf6c6
- ; gap from 0xf6c6 to 0xf71f
- Script_Courtney: ; f71f (3:771f)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text055a, Text055b
- quit_script_fully
- ; 0xf72a
- Script_Steve: ; f72a (3:772a)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text055c, Text055d
- quit_script_fully
- ; 0xf735
- Script_Jack: ; f735 (3:7735)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text055e, Text055f
- quit_script_fully
- ; 0xf740
- Script_Rod: ; f740 (3:7740)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0560, Text0561
- quit_script_fully
- ; 0xf74b
- ; gap from 0xf74b to 0xf7ed
- Script_f7ed: ; f7ed (3:77ed)
- jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_f7f9
- print_npc_text Text0562
- .ows_f7f4
- close_text_box
- move_player NORTH, 2
- quit_script_fully
- ; 0xf7f9
- .ows_f7f9
- print_npc_text Text0563
- ask_question_jump Text0564, .ows_f804
- script_jump .ows_f7f4
- ; 0xf804
- .ows_f804
- enter_map $0c, POKEMON_DOME_ENTRANCE, 22, 4, NORTH
- quit_script_fully
- ; 0xf80b
- Script_f80b: ; f80b (3:780b)
- start_script
- jump_if_flag_equal EVENT_FLAG_69, $01, .ows_f820
- jump_if_flag_equal EVENT_FLAG_6A, $01, .ows_f82b
- jump_if_flag_equal EVENT_FLAG_6B, $01, .ows_f836
- jump_if_flag_equal EVENT_FLAG_6C, $01, .ows_f841
- .ows_f820
- close_advanced_text_box
- set_next_npc_and_script NPC_STEVE, .ows_f827
- end_script
- ret
- ; 0xf827
- .ows_f827
- start_script
- script_jump Script_BeatCourtney.ows_f996
- ; 0xf82b
- .ows_f82b
- close_advanced_text_box
- set_next_npc_and_script NPC_JACK, .ows_f832
- end_script
- ret
- ; 0xf832
- .ows_f832
- start_script
- script_jump Script_BeatSteve.ows_fa02
- ; 0xf836
- .ows_f836
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, .ows_f83d
- end_script
- ret
- ; 0xf83d
- .ows_f83d
- start_script
- script_jump Script_BeatJack.ows_fa78
- ; 0xf841
- .ows_f841
- close_advanced_text_box
- set_next_npc_and_script NPC_RONALD1, .ows_f848
- end_script
- ret
- ; 0xf848
- .ows_f848
- start_script
- script_jump Script_BeatRod.ows_fb20
- ; 0xf84c
- Script_f84c: ; f84c (3:784c)
- start_script
- jump_if_flag_nonzero_2 EVENT_FLAG_63, Script_f7ed
- print_npc_text Text0565
- ask_question_jump Text0566, .ows_f85f
- print_npc_text Text0567
- script_jump Script_f7ed.ows_f804
- ; 0xf85f
- .ows_f85f
- print_npc_text Text0568
- close_text_box
- jump_if_player_coords_match 14, 22, .ows_f86f
- set_player_direction WEST
- move_player WEST, 1
- set_player_direction NORTH
- .ows_f86f
- move_player NORTH, 1
- move_player NORTH, 1
- set_player_direction WEST
- move_player WEST, 1
- move_player WEST, 1
- set_player_direction NORTH
- move_player NORTH, 1
- move_player NORTH, 1
- move_player NORTH, 1
- move_player NORTH, 1
- set_player_direction EAST
- move_player EAST, 1
- move_player EAST, 1
- set_player_direction NORTH
- jump_if_flag_zero_2 EVENT_FLAG_64, NULL
- print_variable_npc_text Text0569, Text056a
- move_active_npc NPCMovement_fb8c
- jump_if_flag_nonzero_2 EVENT_FLAG_64, .ows_f8ef
- print_npc_text Text056b
- close_advanced_text_box
- set_next_npc_and_script NPC_COURTNEY, .ows_f8af
- end_script
- ret
- ; 0xf8af
- .ows_f8af
- start_script
- move_active_npc NPCMovement_fb8e
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, .ows_f8ba
- end_script
- ret
- ; 0xf8ba
- .ows_f8ba
- start_script
- print_npc_text Text056c
- close_advanced_text_box
- set_next_npc_and_script NPC_STEVE, .ows_f8c5
- end_script
- ret
- ; 0xf8c5
- .ows_f8c5
- start_script
- move_active_npc NPCMovement_fb8e
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, .ows_f8d0
- end_script
- ret
- ; 0xf8d0
- .ows_f8d0
- start_script
- print_npc_text Text056d
- close_advanced_text_box
- set_next_npc_and_script NPC_JACK, .ows_f8db
- end_script
- ret
- ; 0xf8db
- .ows_f8db
- start_script
- move_active_npc NPCMovement_fb8e
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, .ows_f8e6
- end_script
- ret
- ; 0xf8e6
- .ows_f8e6
- start_script
- max_out_flag_value EVENT_FLAG_64
- print_npc_text Text056e
- script_jump .ows_f8f8
- ; 0xf8ef
- .ows_f8ef
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text056f, Text0570
- .ows_f8f8
- print_npc_text Text0571
- close_text_box
- set_player_direction WEST
- move_player WEST, 1
- set_player_direction SOUTH
- move_player SOUTH, 1
- move_player SOUTH, 1
- set_player_direction EAST
- move_active_npc NPCMovement_fb8d
- script_set_flag_value EVENT_FLAG_65, $01
- close_advanced_text_box
- set_next_npc_and_script NPC_COURTNEY, .ows_f918
- end_script
- ret
- ; 0xf918
- .ows_f918
- start_script
- try_give_pc_pack $0e
- script_set_flag_value EVENT_FLAG_68, $01
- set_dialog_npc NPC_ROD
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0572, Text0573
- close_text_box
- set_dialog_npc NPC_COURTNEY
- move_active_npc NPCMovement_fba6
- set_active_npc_direction WEST
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0574, Text0575
- start_duel PRIZES_6, LEGENDARY_MOLTRES_DECK_ID, MUSIC_DUEL_THEME_3
- quit_script_fully
- ; 0xf93f
- Script_LostToCourtney: ; f93f (3:793f)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0576, Text0577
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, .ows_f950
- end_script
- ret
- ; 0xf950
- .ows_f950
- start_script
- move_active_npc NPCMovement_fba1
- print_npc_text Text0578
- script_jump Script_f7ed.ows_f804
- ; 0xf95a
- Script_BeatCourtney: ; f95a (3:795a)
- start_script
- script_set_flag_value EVENT_FLAG_68, $02
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0579, Text057a
- close_text_box
- move_active_npc NPCMovement_fbb7
- set_active_npc_direction WEST
- close_advanced_text_box
- set_next_npc_and_script NPC_STEVE, .ows_f974
- end_script
- ret
- ; 0xf974
- .ows_f974
- start_script
- try_give_pc_pack $0f
- script_set_flag_value EVENT_FLAG_69, $01
- set_dialog_npc NPC_ROD
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text057b, Text057c
- close_text_box
- set_dialog_npc NPC_STEVE
- move_active_npc NPCMovement_fba4
- set_active_npc_direction WEST
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text057d, Text057e
- .ows_f996
- zero_out_flag_value EVENT_FLAG_66
- set_dialog_npc NPC_ROD
- print_npc_text Text057f
- ask_question_jump_default_yes Text0580, .ows_f9af
- print_npc_text Text0581
- set_dialog_npc NPC_STEVE
- print_npc_text Text0582
- start_duel PRIZES_6, LEGENDARY_ZAPDOS_DECK_ID, MUSIC_DUEL_THEME_3
- quit_script_fully
- ; 0xf9af
- .ows_f9af
- close_text_box
- max_out_flag_value EVENT_FLAG_66
- open_menu
- close_text_box
- script_jump .ows_f996
- ; 0xf9b7
- Script_LostToSteve: ; f9b7 (3:79b7)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0583, Text0584
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, Script_LostToCourtney.ows_f950
- end_script
- ret
- ; 0xf9c8
- Script_BeatSteve: ; f9c8 (3:79c8)
- start_script
- script_set_flag_value EVENT_FLAG_69, $02
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0585, Text0586
- close_text_box
- move_active_npc NPCMovement_fbb8
- set_active_npc_direction WEST
- close_advanced_text_box
- set_next_npc_and_script NPC_JACK, .ows_f9e2
- end_script
- ret
- ; 0xf9e2
- .ows_f9e2
- start_script
- script_set_flag_value EVENT_FLAG_6A, $01
- set_dialog_npc NPC_ROD
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0587, Text0588
- close_text_box
- set_dialog_npc NPC_JACK
- move_active_npc NPCMovement_fbbc
- set_active_npc_direction WEST
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0589, Text058a
- .ows_fa02
- zero_out_flag_value EVENT_FLAG_66
- set_dialog_npc NPC_ROD
- print_npc_text Text058b
- ask_question_jump_default_yes Text058c, .ows_fa1b
- print_npc_text Text058d
- set_dialog_npc NPC_JACK
- print_npc_text Text058e
- start_duel PRIZES_6, LEGENDARY_ARTICUNO_DECK_ID, MUSIC_DUEL_THEME_3
- quit_script_fully
- ; 0xfa1b
- .ows_fa1b
- close_text_box
- max_out_flag_value EVENT_FLAG_66
- open_menu
- close_text_box
- script_jump .ows_fa02
- ; 0xfa23
- Script_LostToJack: ; fa23 (3:7a23)
- start_script
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text058f, Text0590
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, Script_LostToCourtney.ows_f950
- end_script
- ret
- ; 0xfa34
- Script_BeatJack: ; fa34 (3:7a34)
- start_script
- script_set_flag_value EVENT_FLAG_6A, $02
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0591, Text0592
- close_text_box
- move_active_npc NPCMovement_fbc2
- set_active_npc_direction WEST
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, .ows_fa52
- move_npc NPC_ROD, NPCMovement_f390
- end_script
- ret
- ; 0xfa52
- .ows_fa52
- start_script
- script_set_flag_value EVENT_FLAG_6B, $01
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text0593, Text0594
- close_text_box
- move_active_npc NPCMovement_fbaf
- set_active_npc_direction WEST
- jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_fa75
- jump_if_flag_zero_2 EVENT_FLAG_67, NULL
- print_variable_npc_text Text0595, Text0596
- script_jump .ows_fa78
- ; 0xfa75
- .ows_fa75
- print_npc_text Text0597
- .ows_fa78
- zero_out_flag_value EVENT_FLAG_66
- print_npc_text Text0598
- ask_question_jump_default_yes Text0599, .ows_fa90
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text059a, Text059b
- start_duel PRIZES_6, LEGENDARY_DRAGONITE_DECK_ID, MUSIC_DUEL_THEME_3
- quit_script_fully
- ; 0xfa90
- .ows_fa90
- close_text_box
- max_out_flag_value EVENT_FLAG_66
- open_menu
- close_text_box
- script_jump .ows_fa78
- ; 0xfa98
- Script_LostToRod: ; fa98 (3:7a98)
- start_script
- print_npc_text Text059c
- close_text_box
- move_active_npc NPCMovement_fb9d
- set_active_npc_direction SOUTH
- jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
- print_variable_npc_text Text059d, Text059e
- script_jump Script_f7ed.ows_f804
- ; 0xfaae
- Script_BeatRod: ; faae (3:7aae)
- start_script
- script_set_flag_value EVENT_FLAG_6B, $02
- jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_fad5
- jump_if_flag_zero_2 EVENT_FLAG_67, NULL
- print_variable_npc_text Text059f, Text05a0
- close_text_box
- move_active_npc NPCMovement_fb90
- set_active_npc_direction SOUTH
- jump_if_flag_zero_2 EVENT_FLAG_67, NULL
- print_variable_npc_text Text05a1, Text05a2
- close_advanced_text_box
- set_next_npc_and_script NPC_RONALD1, .ows_fae9
- end_script
- ret
- ; 0xfad5
- .ows_fad5
- print_npc_text Text05a3
- move_active_npc NPCMovement_fb96
- set_active_npc_direction SOUTH
- play_sfx SFX_0F
- replace_map_blocks $01
- script_set_flag_value EVENT_FLAG_65, $02
- max_out_flag_value EVENT_FLAG_63
- print_text_quit_fully Text05a4
- ; 0xfae9
- .ows_fae9
- start_script
- override_song MUSIC_STOP
- script_set_flag_value EVENT_FLAG_6C, $01
- play_sfx SFX_0F
- replace_map_blocks $01
- move_active_npc NPCMovement_fbd2
- set_default_song MUSIC_RONALD
- play_default_song
- jump_if_flag_nonzero_2 EVENT_FLAG_67, .ows_fb15
- print_npc_text Text05a5
- set_dialog_npc NPC_ROD
- move_npc NPC_ROD, NPCMovement_fb9b
- print_npc_text Text05a6
- set_dialog_npc NPC_RONALD1
- print_npc_text Text05a7
- move_npc NPC_ROD, NPCMovement_fb99
- script_jump .ows_fb18
- ; 0xfb15
- .ows_fb15
- print_npc_text Text05a8
- .ows_fb18
- close_text_box
- move_active_npc NPCMovement_fba8
- set_active_npc_direction WEST
- max_out_flag_value EVENT_FLAG_67
- .ows_fb20
- zero_out_flag_value EVENT_FLAG_66
- set_dialog_npc NPC_ROD
- print_npc_text Text05a9
- ask_question_jump_default_yes Text05aa, .ows_fb40
- print_npc_text Text05ab
- set_dialog_npc NPC_RONALD1
- print_npc_text Text05ac
- set_dialog_npc NPC_ROD
- print_npc_text Text05ad
- set_dialog_npc NPC_RONALD1
- start_duel PRIZES_6, LEGENDARY_RONALD_DECK_ID, MUSIC_DUEL_THEME_3
- quit_script_fully
- ; 0xfb40
- .ows_fb40
- close_text_box
- max_out_flag_value EVENT_FLAG_66
- open_menu
- close_text_box
- script_jump .ows_fb20
- ; 0xfb48
- Script_LostToRonald1InPokemonDome: ; fb48 (3:7b48)
- start_script
- print_npc_text Text05ae
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, Script_LostToCourtney.ows_f950
- end_script
- ret
- ; 0xfb53
- Script_BeatRonald1InPokemonDome: ; fb53 (3:7b53)
- start_script
- script_set_flag_value EVENT_FLAG_6C, $02
- print_npc_text Text05af
- set_dialog_npc NPC_ROD
- print_npc_text Text05b0
- print_text Text05b1
- set_dialog_npc NPC_RONALD1
- print_npc_text Text05b2
- close_text_box
- move_active_npc NPCMovement_fbc7
- unload_active_npc
- set_default_song MUSIC_HALL_OF_HONOR
- play_default_song
- close_advanced_text_box
- set_next_npc_and_script NPC_ROD, .ows_fb76
- end_script
- ret
- ; 0xfb76
- .ows_fb76
- start_script
- move_active_npc NPCMovement_fba1
- set_player_direction NORTH
- print_npc_text Text05b3
- move_active_npc NPCMovement_fbb2
- script_set_flag_value EVENT_FLAG_65, $02
- max_out_flag_value EVENT_FLAG_63
- record_master_win $0a
- print_text_quit_fully Text05b4
- ; 0xfb8c
- NPCMovement_fb8c: ; fb8c (3:7b8c)
- db EAST
- NPCMovement_fb8d: ; fb8d (3:7b8d)
- db SOUTH
- NPCMovement_fb8e: ; fb8e (3:7b8e)
- db SOUTH
- db $ff
- NPCMovement_fb90: ; fb90 (3:7b90)
- db NORTH
- db NORTH
- db WEST
- db WEST
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_fb96: ; fb96 (3:7b96)
- db NORTH
- db NORTH
- db WEST
- NPCMovement_fb99: ; fb99 (3:7b99)
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_fb9b: ; fb9b (3:7b9b)
- db NORTH | NO_MOVE
- db $ff
- NPCMovement_fb9d: ; fb9d (3:7b9d)
- db NORTH
- db NORTH
- db WEST
- db WEST
- NPCMovement_fba1: ; fba1 (3:7ba1)
- db WEST
- db SOUTH
- db $ff
- NPCMovement_fba4: ; fba4 (3:7ba4)
- db WEST
- db WEST
- NPCMovement_fba6: ; fba6 (3:7ba6)
- db WEST
- db SOUTH
- NPCMovement_fba8: ; fba8 (3:7ba8)
- db SOUTH
- db SOUTH
- db EAST
- db SOUTH
- db SOUTH
- db WEST | NO_MOVE
- db $ff
- NPCMovement_fbaf: ; fbaf (3:7baf)
- db EAST
- db $fe, -7
- NPCMovement_fbb2: ; fbb2 (3:7bb2)
- db NORTH
- db EAST
- db EAST
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_fbb7: ; fbb7 (3:7bb7)
- db NORTH
- NPCMovement_fbb8: ; fbb8 (3:7bb8)
- db EAST
- db EAST
- db WEST | NO_MOVE
- db $ff
- NPCMovement_fbbc: ; fbbc (3:7bbc)
- db EAST
- db EAST
- db EAST
- db EAST
- db $fe, -26
- NPCMovement_fbc2: ; fbc2 (3:7bc2)
- db NORTH
- db NORTH
- db EAST
- db WEST | NO_MOVE
- db $ff
- NPCMovement_fbc7: ; fbc7 (3:7bc7)
- db SOUTH
- db SOUTH
- db WEST
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db SOUTH
- db $ff
- NPCMovement_fbd2: ; fbd2 (3:7bd2)
- db WEST
- db WEST
- db WEST
- db WEST
- db WEST
- db WEST
- db WEST
- db $fe, -12
- ; gap from 0xfbdb to 0xfbe1
- Script_fbe1: ; fbe1 (3:7be1)
- start_script
- print_text Text05b5
- ask_question_jump_default_yes Text05b6, .ows_fbee
- print_text Text05b7
- quit_script_fully
- ; 0xfbee
- .ows_fbee
- open_deck_machine $0a
- quit_script_fully
- ; 0xfbf1
- Script_fbf1: ; fbf1 (3:7bf1)
- start_script
- jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_fc10
- max_out_flag_value EVENT_RECEIVED_LEGENDARY_CARD
- print_text Text05b8
- give_card ZAPDOS3
- give_card MOLTRES2
- give_card ARTICUNO2
- give_card DRAGONITE1
- show_card_received_screen $ff
- .ows_fc05
- flash_screen $00
- print_text Text05b9
- .ows_fc0a
- flash_screen $01
- save_game $01
- play_credits
- quit_script_fully
- ; 0xfc10
- .ows_fc10
- jump_if_flag_equal EVENT_FLAG_71, $0f, .ows_fc20
- pick_legendary_card
- print_text Text05ba
- give_card VARIABLE_CARD
- show_card_received_screen VARIABLE_CARD
- script_jump .ows_fc05
- ; 0xfc20
- .ows_fc20
- print_text Text05bb
- flash_screen $00
- print_text Text05bc
- script_jump .ows_fc0a
- ; 0xfc2b
- ; gap from 0xfc2b to 0xfc52
- Script_fc52: ; fc52 (3:7c52)
- start_script
- print_npc_text Text06c8
- ask_question_jump_default_yes NULL, .ows_fc5e
- print_text_quit_fully Text06c9
- ; 0xfc5e
- .ows_fc5e
- battle_center
- quit_script_fully
- ; 0xfc60
- Script_fc60: ; fc60 (3:7c60)
- start_script
- print_text_quit_fully Text06ca
- ; 0xfc64
- Script_fc64: ; fc64 (3:7c64)
- start_script
- print_text_quit_fully Text06cb
- ; 0xfc68
- Script_fc68: ; fc68 (3:7c68)
- start_script
- print_text_quit_fully Text06cc
- ; 0xfc6c
- ; gap from 0xfc6c to 0xfc82
- Script_fc82: ; fc82 (3:7c82)
- start_script
- jump_if_flag_not_equal EVENT_FLAG_74, $02, Script_fcb5.ows_fcd5
- print_npc_text Text06cd
- gift_center $00
- jump_if_flag_not_less_than EVENT_FLAG_72, $04, .ows_fcaa
- print_npc_text Text06ce
- ask_question_jump_default_yes Text06cf, .ows_fca0
- print_npc_text Text06d0
- script_jump .ows_fcaa
- ; 0xfca0
- .ows_fca0
- save_game $00
- play_sfx SFX_56
- print_text Text06d1
- gift_center $01
- quit_script_fully
- ; 0xfcaa
- .ows_fcaa
- print_text_quit_fully Text06d2
- ; 0xfcad
- ; gap from 0xfcad to 0xfcb5
- Script_fcb5: ; fcb5 (3:7cb5)
- start_script
- play_sfx SFX_56
- save_game $00
- jump_if_flag_equal EVENT_FLAG_72, $00, .ows_fccc
- jump_if_flag_equal EVENT_FLAG_72, $02, .ows_fccf
- jump_if_flag_equal EVENT_FLAG_72, $03, .ows_fcd2
- script_jump Script_fc82.ows_fcaa
- ; 0xfccc
- .ows_fccc
- print_text_quit_fully Text06d3
- ; 0xfccf
- .ows_fccf
- print_text_quit_fully Text06d4
- ; 0xfcd2
- .ows_fcd2
- print_text_quit_fully Text06d5
- ; 0xfcd5
- .ows_fcd5
- move_npc NPC_GIFT_CENTER_CLERK, NPCMovement_fce1
- print_npc_text Text06d6
- move_npc NPC_GIFT_CENTER_CLERK, NPCMovement_fce3
- quit_script_fully
- ; 0xfce1
- NPCMovement_fce1: ; fce1 (3:7ce1)
- db SOUTH | NO_MOVE
- db $ff
- NPCMovement_fce3: ; fce3 (3:7ce3)
- db NORTH | NO_MOVE
- db $ff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement