Advertisement
dannye33

TCG Scripts

Jan 12th, 2021 (edited)
1,930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Script_BeginGame: ; d52e (3:552e)
  2.     start_script
  3.     do_frames 60
  4.     walk_player_to_mason_lab
  5.     do_frames 120
  6.     enter_map $02, MASON_LABORATORY, 14, 26, NORTH
  7.     quit_script_fully
  8. ; 0xd53b
  9.  
  10. ; gap from 0xd53b to 0xd57d
  11.  
  12. Script_ChallengeMachine: ; d57d (3:557d)
  13.     start_script
  14.     print_text ItsTheChallengeMachineText
  15.     challenge_machine
  16.     quit_script_fully
  17. ; 0xd583
  18.  
  19. ; gap from 0xd583 to 0xd597
  20.  
  21. Script_d597: ; d597 (3:5597)
  22.     start_script
  23.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  24.     print_variable_npc_text Tech1MasterMedalExplanationText, Tech1AutoDeckMachineExplanationText
  25.     quit_script_fully
  26. ; 0xd5a2
  27.  
  28. ; gap from 0xd5a2 to 0xd5b5
  29.  
  30. Script_d5b5: ; d5b5 (3:55b5)
  31.     start_script
  32.     print_npc_text Tech1FewEnergyCardsText
  33.     pause_song
  34.     play_song MUSIC_BOOSTER_PACK
  35.     print_npc_text Tech1ReceivedEnergyCardsText
  36.     wait_for_song_to_finish
  37.     resume_song
  38.     print_text_quit_fully Tech1GoodbyeText
  39. ; 0xd5c4
  40.  
  41. ; gap from 0xd5c4 to 0xd5ca
  42.  
  43. Script_Tech2: ; d5ca (3:55ca)
  44.     start_script
  45.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  46.     print_variable_npc_text Tech2LegendaryCardsExplanationText, Tech2LegendaryCardsCongratsText
  47.     quit_script_fully
  48. ; 0xd5d5
  49.  
  50. Script_Tech3: ; d5d5 (3:55d5)
  51.     start_script
  52.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  53.     print_variable_npc_text Tech3BoosterPackExplanationText, Tech3LegendaryCardsCongratsText
  54.     quit_script_fully
  55. ; 0xd5e0
  56.  
  57. Script_Tech4: ; d5e0 (3:55e0)
  58.     start_script
  59.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  60.     print_variable_npc_text Tech4ClubsExplanationText, Tech4DefeatedTheGrandMastersText
  61.     quit_script_fully
  62. ; 0xd5eb
  63.  
  64. ; gap from 0xd5eb to 0xd5f9
  65.  
  66. Script_Tech5: ; d5f9 (3:55f9)
  67.     start_script
  68.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  69.     print_variable_npc_text Tech5DiaryAndEmailExplanationText, Tech5ChallengeMachineExplanationText
  70.     quit_script_fully
  71. ; 0xd604
  72.  
  73. ; gap from 0xd604 to 0xd61d
  74.  
  75. Script_Sam: ; d61d (3:561d)
  76.     start_script
  77.     show_sam_normal_multichoice
  78.     close_text_box
  79.     jump_if_flag_equal EVENT_FLAG_75, $00, .ows_d63b
  80.     jump_if_flag_equal EVENT_FLAG_75, $02, Script_LostToSam.ows_d6b0
  81.     jump_if_flag_equal EVENT_FLAG_75, $03, .ows_d637
  82.     print_npc_text Text05cb
  83.     ask_question_jump Text05cc, .ows_d647
  84. .ows_d637
  85.     print_npc_text Text05cd
  86.     quit_script_fully
  87. ; 0xd63b
  88.  
  89. .ows_d63b
  90.     print_npc_text Text05ce
  91.     ask_question_jump Text05cf, .ows_d647
  92.     print_npc_text Text05d0
  93.     quit_script_fully
  94. ; 0xd647
  95.  
  96. .ows_d647
  97.     close_text_box
  98.     jump_if_player_coords_match 4, 12, .ows_above_sam
  99.     jump_if_player_coords_match 2, 14, .ows_left_of_sam
  100.     set_player_direction WEST
  101.     move_player WEST, 1
  102.     set_player_direction NORTH
  103.     move_player NORTH, 1
  104. .ows_left_of_sam
  105.     set_player_direction NORTH
  106.     move_player NORTH, 1
  107.     set_player_direction EAST
  108.     move_player EAST, 1
  109. .ows_above_sam
  110.     set_player_direction EAST
  111.     move_player EAST, 1
  112.     move_player EAST, 1
  113.     move_player EAST, 1
  114.     set_player_direction SOUTH
  115.     move_player SOUTH, 1
  116.     set_player_direction WEST
  117.     move_active_npc NPCMovement_d889
  118.     jump_if_flag_equal EVENT_FLAG_75, $00, .ows_d685
  119.     start_duel PRIZES_2, SAMS_PRACTICE_DECK_ID, MUSIC_DUEL_THEME_1
  120.     quit_script_fully
  121. ; 0xd685
  122.  
  123. .ows_d685
  124.     start_duel PRIZES_2, SAMS_NORMAL_DECK_ID, MUSIC_DUEL_THEME_1
  125.     quit_script_fully
  126. ; 0xd68a
  127.  
  128. Script_BeatSam: ; d68a (3:568a)
  129.     start_script
  130.     jump_if_flag_equal EVENT_FLAG_3E, $01, Script_EnterLabFirstTime.ows_d82d
  131.     jump_if_flag_equal EVENT_FLAG_75, $01, Script_LostToSam.ows_d6ad
  132.     print_npc_text Text05d1
  133.     give_booster_packs BOOSTER_ENERGY_RANDOM, NO_BOOSTER, NO_BOOSTER
  134.     print_text_quit_fully Text05d2
  135. ; 0xd69f
  136.  
  137. Script_LostToSam: ; d69f (3:569f)
  138.     start_script
  139.     jump_if_flag_equal EVENT_FLAG_3E, $01, Script_EnterLabFirstTime.ows_d82d
  140.     jump_if_flag_equal EVENT_FLAG_75, $01, .ows_d6ad
  141.     print_text_quit_fully Text05d3
  142. ; 0xd6ad
  143.  
  144. .ows_d6ad
  145.     print_text_quit_fully Text05d4
  146. ; 0xd6b0
  147.  
  148. .ows_d6b0
  149.     print_npc_text Text05d5
  150. .ows_d6b3
  151.     close_text_box
  152.     show_sam_tutorial_multichoice
  153.     close_text_box
  154.     jump_if_flag_equal EVENT_FLAG_75, $07, Script_Sam.ows_d637
  155.     jump_if_flag_equal EVENT_FLAG_75, $01, .ows_d6df
  156.     jump_if_flag_equal EVENT_FLAG_75, $02, .ows_d6e5
  157.     jump_if_flag_equal EVENT_FLAG_75, $03, .ows_d6eb
  158.     jump_if_flag_equal EVENT_FLAG_75, $04, .ows_d6f1
  159.     jump_if_flag_equal EVENT_FLAG_75, $05, .ows_d6f7
  160.     jump_if_flag_equal EVENT_FLAG_75, $06, .ows_d6fd
  161.     print_npc_text Text05d6
  162.     script_jump .ows_d6b3
  163. ; 0xd6df
  164.  
  165. .ows_d6df
  166.     print_npc_text Text05d7
  167.     script_jump .ows_d6b3
  168. ; 0xd6e5
  169.  
  170. .ows_d6e5
  171.     print_npc_text Text05d8
  172.     script_jump .ows_d6b3
  173. ; 0xd6eb
  174.  
  175. .ows_d6eb
  176.     print_npc_text Text05d9
  177.     script_jump .ows_d6b3
  178. ; 0xd6f1
  179.  
  180. .ows_d6f1
  181.     print_npc_text Text05da
  182.     script_jump .ows_d6b3
  183. ; 0xd6f7
  184.  
  185. .ows_d6f7
  186.     print_npc_text Text05db
  187.     script_jump .ows_d6b3
  188. ; 0xd6fd
  189.  
  190. .ows_d6fd
  191.     print_npc_text Text05dc
  192.     script_jump .ows_d6b3
  193. ; 0xd703
  194.  
  195. ; gap from 0xd703 to 0xd727
  196.  
  197. Script_DrMason: ; d727 (3:5727)
  198.     start_script
  199.     jump_if_flag_nonzero_2 EVENT_FLAG_4B, .ows_d72f
  200.     print_text_quit_fully Text05dd
  201. ; 0xd72f
  202.  
  203. .ows_d72f
  204.     try_give_medal_pc_packs
  205.     jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $02, .ows_d738
  206.     print_text_quit_fully Text05de
  207. ; 0xd738
  208.  
  209. .ows_d738
  210.     jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $07, .ows_d740
  211.     print_text_quit_fully Text05df
  212. ; 0xd740
  213.  
  214. .ows_d740
  215.     jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_d747
  216.     print_text_quit_fully Text05e0
  217. ; 0xd747
  218.  
  219. .ows_d747
  220.     jump_if_flag_nonzero_2 EVENT_FLAG_3D, .ows_d750
  221.     max_out_flag_value EVENT_FLAG_3D
  222.     print_text_quit_fully Text05e1
  223. ; 0xd750
  224.  
  225. .ows_d750
  226.     print_text_quit_fully Text05e2
  227. ; 0xd753
  228.  
  229. Script_EnterLabFirstTime: ; d753 (3:5753)
  230.     start_script
  231.     move_player NORTH, 2
  232.     move_player NORTH, 2
  233.     move_player NORTH, 2
  234.     move_player NORTH, 2
  235.     move_player NORTH, 2
  236.     move_player NORTH, 2
  237.     move_player NORTH, 2
  238.     move_player NORTH, 2
  239.     move_player NORTH, 2
  240.     print_npc_text Text05e3
  241.     close_advanced_text_box
  242.     set_next_npc_and_script NPC_SAM, .ows_d779
  243.     end_script
  244.     ret
  245. ; 0xd779
  246.  
  247. .ows_d779
  248.     start_script
  249.     move_active_npc NPCMovement_d880
  250.     print_npc_text Text05e4
  251.     set_dialog_npc NPC_DRMASON
  252.     print_npc_text Text05e5
  253.     close_text_box
  254.     move_active_npc NPCMovement_d882
  255.     set_active_npc_direction EAST
  256.     set_player_direction WEST
  257.     close_advanced_text_box
  258.     set_next_npc_and_script NPC_DRMASON, .ows_d794
  259.     end_script
  260.     ret
  261. ; 0xd794
  262.  
  263. .ows_d794
  264.     start_script
  265.     move_active_npc NPCMovement_d88b
  266.     do_frames 40
  267.     print_npc_text Text05e6
  268.     close_text_box
  269.     move_player WEST, 1
  270.     move_player WEST, 1
  271.     set_player_direction SOUTH
  272.     move_player SOUTH, 1
  273.     move_player SOUTH, 1
  274.     move_player SOUTH, 1
  275.     set_player_direction WEST
  276.     move_active_npc NPCMovement_d894
  277.     print_npc_text Text05e7
  278.     set_dialog_npc NPC_SAM
  279.     print_npc_text Text05e8
  280. .ows_d7bc
  281.     close_text_box
  282.     show_sam_tutorial_multichoice
  283.     close_text_box
  284.     jump_if_flag_equal EVENT_FLAG_75, $07, .ows_d80c
  285.     jump_if_flag_equal EVENT_FLAG_75, $01, .ows_d7e8
  286.     jump_if_flag_equal EVENT_FLAG_75, $02, .ows_d7ee
  287.     jump_if_flag_equal EVENT_FLAG_75, $03, .ows_d7f4
  288.     jump_if_flag_equal EVENT_FLAG_75, $04, .ows_d7fa
  289.     jump_if_flag_equal EVENT_FLAG_75, $05, .ows_d800
  290.     jump_if_flag_equal EVENT_FLAG_75, $06, .ows_d806
  291.     print_npc_text Text05d6
  292.     script_jump .ows_d7bc
  293. ; 0xd7e8
  294.  
  295. .ows_d7e8
  296.     print_npc_text Text05d7
  297.     script_jump .ows_d7bc
  298. ; 0xd7ee
  299.  
  300. .ows_d7ee
  301.     print_npc_text Text05d8
  302.     script_jump .ows_d7bc
  303. ; 0xd7f4
  304.  
  305. .ows_d7f4
  306.     print_npc_text Text05d9
  307.     script_jump .ows_d7bc
  308. ; 0xd7fa
  309.  
  310. .ows_d7fa
  311.     print_npc_text Text05da
  312.     script_jump .ows_d7bc
  313. ; 0xd800
  314.  
  315. .ows_d800
  316.     print_npc_text Text05db
  317.     script_jump .ows_d7bc
  318. ; 0xd806
  319.  
  320. .ows_d806
  321.     print_npc_text Text05dc
  322.     script_jump .ows_d7bc
  323. ; 0xd80c
  324.  
  325. .ows_d80c
  326.     print_npc_text Text05e9
  327.     ask_question_jump_default_yes NULL, .ows_d817
  328.     script_jump .ows_d7bc
  329. ; 0xd817
  330.  
  331. .ows_d817
  332.     set_dialog_npc NPC_DRMASON
  333.     print_npc_text Text05ea
  334.     script_nop
  335.     script_set_flag_value EVENT_FLAG_3E, $01
  336.     close_advanced_text_box
  337.     set_next_npc_and_script NPC_SAM, .ows_d827
  338.     end_script
  339.     ret
  340. ; 0xd827
  341.  
  342. .ows_d827
  343.     start_script
  344.     start_duel PRIZES_2, SAMS_PRACTICE_DECK_ID, MUSIC_DUEL_THEME_1
  345.     quit_script_fully
  346. ; 0xd82d
  347.  
  348. .ows_d82d
  349.     close_advanced_text_box
  350.     set_next_npc_and_script NPC_DRMASON, Script_AfterPracticeDuel
  351.     end_script
  352.     ret
  353. ; 0xd834
  354.  
  355. Script_AfterPracticeDuel: ; d834 (3:5834)
  356.     start_script
  357.     print_npc_text Text05eb
  358.     print_npc_text Text05ef
  359.     close_text_box
  360.     move_active_npc NPCMovement_d896
  361.     set_player_direction NORTH
  362.     move_player NORTH, 1
  363.     move_player NORTH, 1
  364.     move_player NORTH, 1
  365.     set_player_direction EAST
  366.     move_player EAST, 1
  367.     move_player EAST, 1
  368.     set_player_direction NORTH
  369.     print_npc_text Text05f0
  370.     close_text_box
  371.     print_text Text05f1
  372.     close_text_box
  373.     print_npc_text Text05f2
  374. .ows_d85f
  375.     choose_starter_deck
  376.     close_text_box
  377.     ask_question_jump Text05f3, .ows_d869
  378.     script_jump .ows_d85f
  379. ; 0xd869
  380.  
  381. .ows_d869
  382.     print_npc_text Text05f4
  383.     close_text_box
  384.     pause_song
  385.     play_song MUSIC_BOOSTER_PACK
  386.     print_text Text05f5
  387.     wait_for_song_to_finish
  388.     resume_song
  389.     close_text_box
  390.     script_set_flag_value EVENT_FLAG_3E, $03
  391.     give_stater_deck
  392.     print_npc_text Text05f6
  393.     save_game $00
  394.     quit_script_fully
  395. ; 0xd880
  396.  
  397. NPCMovement_d880: ; d880 (3:5880)
  398.     db EAST
  399.     db $ff
  400.  
  401. NPCMovement_d882: ; d882 (3:5882)
  402.     db SOUTH
  403.     db SOUTH
  404.     db WEST
  405.     db WEST
  406.     db WEST
  407.     db WEST
  408.     db SOUTH
  409. NPCMovement_d889: ; d889 (3:5889)
  410.     db EAST | NO_MOVE
  411.     db $ff
  412.  
  413. NPCMovement_d88b: ; d88b (3:588b)
  414.     db WEST
  415.     db SOUTH
  416.     db SOUTH
  417.     db SOUTH
  418.     db WEST
  419.     db WEST
  420.     db WEST
  421.     db EAST | NO_MOVE
  422.     db $ff
  423.  
  424. NPCMovement_d894: ; d894 (3:5894)
  425.     db SOUTH | NO_MOVE
  426.     db $ff
  427.  
  428. NPCMovement_d896: ; d896 (3:5896)
  429.     db NORTH
  430.     db NORTH
  431.     db NORTH
  432.     db EAST
  433.     db EAST
  434.     db EAST
  435.     db EAST
  436.     db SOUTH | NO_MOVE
  437.     db $ff
  438.  
  439. ; gap from 0xd89f to 0xd8bb
  440.  
  441. Script_Tech6: ; d8bb (3:58bb)
  442.     start_script
  443.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  444.     print_variable_npc_text Text05f7, Text05f8
  445.     quit_script_fully
  446. ; 0xd8c6
  447.  
  448. Script_Tech7: ; d8c6 (3:58c6)
  449.     start_script
  450.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  451.     print_variable_npc_text Text05f9, Text05fa
  452.     quit_script_fully
  453. ; 0xd8d1
  454.  
  455. Script_Tech8: ; d8d1 (3:58d1)
  456.     start_script
  457.     jump_if_flag_not_equal EVENT_FLAG_62, $ff, NULL
  458.     print_variable_npc_text Text05fb, Text05fc
  459.     quit_script_fully
  460. ; 0xd8dd
  461.  
  462. Script_Aaron: ; d8dd (3:58dd)
  463.     start_script
  464.     print_npc_text Text05fd
  465.     ask_question_jump Text05fe, .ows_d8e9
  466. .ows_d8e6
  467.     print_text_quit_fully Text05ff
  468. ; 0xd8e9
  469.  
  470. .ows_d8e9
  471.     print_npc_text Text0600
  472.     choose_deck_to_duel_against
  473.     close_text_box
  474.     jump_if_flag_equal EVENT_FLAG_76, $03, .ows_d8e6
  475.     ask_question_jump Text0601, .ows_d8fb
  476.     script_jump .ows_d8e6
  477. ; 0xd8fb
  478.  
  479. .ows_d8fb
  480.     print_npc_text Text0602
  481.     start_duel PRIZES_4, $ff, MUSIC_DUEL_THEME_1
  482.     quit_script_fully
  483. ; 0xd903
  484.  
  485. ; gap from 0xd903 to 0xd90b
  486.  
  487. Script_d90b: ; d90b (3:590b)
  488.     start_script
  489.     print_npc_text Text0603
  490.     jump_if_flag_equal EVENT_FLAG_73, $01, .ows_d920
  491.     jump_if_flag_equal EVENT_FLAG_73, $02, .ows_d927
  492.     give_booster_packs BOOSTER_ENERGY_RANDOM, NO_BOOSTER, NO_BOOSTER
  493.     script_jump Script_LostToAaron.ows_d92f
  494. ; 0xd920
  495.  
  496. .ows_d920
  497.     give_booster_packs BOOSTER_ENERGY_RANDOM, NO_BOOSTER, NO_BOOSTER
  498.     script_jump Script_LostToAaron.ows_d92f
  499. ; 0xd927
  500.  
  501. .ows_d927
  502.     give_booster_packs BOOSTER_ENERGY_RANDOM, NO_BOOSTER, NO_BOOSTER
  503.     script_jump Script_LostToAaron.ows_d92f
  504. ; 0xd92e
  505.  
  506. Script_LostToAaron: ; d92e (3:592e)
  507.     start_script
  508. .ows_d92f
  509.     print_text_quit_fully Text0604
  510. ; 0xd932
  511.  
  512. Script_d932: ; d932 (3:5932)
  513.     start_script
  514.     print_text Text0605
  515.     ask_question_jump_default_yes Text0606, .ows_d93c
  516.     quit_script_fully
  517. ; 0xd93c
  518.  
  519. .ows_d93c
  520.     open_deck_machine $09
  521.     quit_script_fully
  522. ; 0xd93f
  523.  
  524. ; gap from 0xd93f to 0xd944
  525.  
  526. Script_d944: ; d944 (3:5944)
  527.     start_script
  528.     print_text Text0607
  529.     jump_if_flag_nonzero_2 EVENT_FLAG_5A, .ows_d963
  530.     print_text Text0608
  531.     jump_if_flag_nonzero_2 EVENT_FLAG_0F, .ows_d954
  532.     quit_script_fully
  533. ; 0xd954
  534.  
  535. .ows_d954
  536.     ask_question_jump_default_yes Text0609, .ows_d95a
  537.     quit_script_fully
  538. ; 0xd95a
  539.  
  540. .ows_d95a
  541.     play_sfx SFX_5A
  542.     max_out_flag_value EVENT_FLAG_5A
  543.     replace_map_blocks $02
  544.     print_text Text060a
  545. .ows_d963
  546.     ask_question_jump_default_yes Text060b, .ows_d969
  547.     quit_script_fully
  548. ; 0xd969
  549.  
  550. .ows_d969
  551.     open_deck_machine $01
  552.     quit_script_fully
  553. ; 0xd96c
  554.  
  555. ; gap from 0xd96c to 0xd99a
  556.  
  557. Script_d99a: ; d99a (3:599a)
  558.     start_script
  559.     print_text Text0607
  560.     jump_if_flag_nonzero_2 EVENT_FLAG_5B, .ows_d9b9
  561.     print_text Text0608
  562.     jump_if_flag_nonzero_2 EVENT_FLAG_0E, .ows_d9aa
  563.     quit_script_fully
  564. ; 0xd9aa
  565.  
  566. .ows_d9aa
  567.     ask_question_jump_default_yes Text0609, .ows_d9b0
  568.     quit_script_fully
  569. ; 0xd9b0
  570.  
  571. .ows_d9b0
  572.     play_sfx SFX_5A
  573.     max_out_flag_value EVENT_FLAG_5B
  574.     replace_map_blocks $03
  575.     print_text Text060a
  576. .ows_d9b9
  577.     ask_question_jump_default_yes Text060b, .ows_d9bf
  578.     quit_script_fully
  579. ; 0xd9bf
  580.  
  581. .ows_d9bf
  582.     open_deck_machine $02
  583.     quit_script_fully
  584. ; 0xd9c2
  585.  
  586. ; gap from 0xd9c2 to 0xd9c7
  587.  
  588. Script_d9c7: ; d9c7 (3:59c7)
  589.     start_script
  590.     print_text Text0607
  591.     jump_if_flag_nonzero_2 EVENT_FLAG_5C, .ows_d9e6
  592.     print_text Text0608
  593.     jump_if_flag_nonzero_2 EVENT_BEAT_AMY, .ows_d9d7
  594.     quit_script_fully
  595. ; 0xd9d7
  596.  
  597. .ows_d9d7
  598.     ask_question_jump_default_yes Text0609, .ows_d9dd
  599.     quit_script_fully
  600. ; 0xd9dd
  601.  
  602. .ows_d9dd
  603.     play_sfx SFX_5A
  604.     max_out_flag_value EVENT_FLAG_5C
  605.     replace_map_blocks $04
  606.     print_text Text060a
  607. .ows_d9e6
  608.     ask_question_jump_default_yes Text060b, .ows_d9ec
  609.     quit_script_fully
  610. ; 0xd9ec
  611.  
  612. .ows_d9ec
  613.     open_deck_machine $03
  614.     quit_script_fully
  615. ; 0xd9ef
  616.  
  617. ; gap from 0xd9ef to 0xd9f4
  618.  
  619. Script_d9f4: ; d9f4 (3:59f4)
  620.     start_script
  621.     print_text Text0607
  622.     jump_if_flag_nonzero_2 EVENT_FLAG_5D, .ows_da13
  623.     print_text Text0608
  624.     jump_if_flag_nonzero_2 EVENT_FLAG_0C, .ows_da04
  625.     quit_script_fully
  626. ; 0xda04
  627.  
  628. .ows_da04
  629.     ask_question_jump_default_yes Text0609, .ows_da0a
  630.     quit_script_fully
  631. ; 0xda0a
  632.  
  633. .ows_da0a
  634.     play_sfx SFX_5A
  635.     max_out_flag_value EVENT_FLAG_5D
  636.     replace_map_blocks $05
  637.     print_text Text060a
  638. .ows_da13
  639.     ask_question_jump_default_yes Text060b, .ows_da19
  640.     quit_script_fully
  641. ; 0xda19
  642.  
  643. .ows_da19
  644.     open_deck_machine $04
  645.     quit_script_fully
  646. ; 0xda1c
  647.  
  648. ; gap from 0xda1c to 0xda21
  649.  
  650. Script_da21: ; da21 (3:5a21)
  651.     start_script
  652.     print_text Text0607
  653.     jump_if_flag_nonzero_2 EVENT_FLAG_5E, .ows_da40
  654.     print_text Text0608
  655.     jump_if_flag_nonzero_2 EVENT_FLAG_08, .ows_da31
  656.     quit_script_fully
  657. ; 0xda31
  658.  
  659. .ows_da31
  660.     ask_question_jump_default_yes Text0609, .ows_da37
  661.     quit_script_fully
  662. ; 0xda37
  663.  
  664. .ows_da37
  665.     play_sfx SFX_5A
  666.     max_out_flag_value EVENT_FLAG_5E
  667.     replace_map_blocks $06
  668.     print_text Text060a
  669. .ows_da40
  670.     ask_question_jump_default_yes Text060b, .ows_da46
  671.     quit_script_fully
  672. ; 0xda46
  673.  
  674. .ows_da46
  675.     open_deck_machine $05
  676.     quit_script_fully
  677. ; 0xda49
  678.  
  679. ; gap from 0xda49 to 0xda4e
  680.  
  681. Script_da4e: ; da4e (3:5a4e)
  682.     start_script
  683.     print_text Text0607
  684.     jump_if_flag_nonzero_2 EVENT_FLAG_5F, .ows_da6d
  685.     print_text Text0608
  686.     jump_if_flag_nonzero_2 EVENT_FLAG_0D, .ows_da5e
  687.     quit_script_fully
  688. ; 0xda5e
  689.  
  690. .ows_da5e
  691.     ask_question_jump_default_yes Text0609, .ows_da64
  692.     quit_script_fully
  693. ; 0xda64
  694.  
  695. .ows_da64
  696.     play_sfx SFX_5A
  697.     max_out_flag_value EVENT_FLAG_5F
  698.     replace_map_blocks $07
  699.     print_text Text060a
  700. .ows_da6d
  701.     ask_question_jump_default_yes Text060b, .ows_da73
  702.     quit_script_fully
  703. ; 0xda73
  704.  
  705. .ows_da73
  706.     open_deck_machine $06
  707.     quit_script_fully
  708. ; 0xda76
  709.  
  710. ; gap from 0xda76 to 0xda7b
  711.  
  712. Script_da7b: ; da7b (3:5a7b)
  713.     start_script
  714.     print_text Text0607
  715.     jump_if_flag_nonzero_2 EVENT_FLAG_60, .ows_da9a
  716.     print_text Text0608
  717.     jump_if_flag_nonzero_2 EVENT_FLAG_09, .ows_da8b
  718.     quit_script_fully
  719. ; 0xda8b
  720.  
  721. .ows_da8b
  722.     ask_question_jump_default_yes Text0609, .ows_da91
  723.     quit_script_fully
  724. ; 0xda91
  725.  
  726. .ows_da91
  727.     play_sfx SFX_5A
  728.     max_out_flag_value EVENT_FLAG_60
  729.     replace_map_blocks $08
  730.     print_text Text060a
  731. .ows_da9a
  732.     ask_question_jump_default_yes Text060b, .ows_daa0
  733.     quit_script_fully
  734. ; 0xdaa0
  735.  
  736. .ows_daa0
  737.     open_deck_machine $07
  738.     quit_script_fully
  739. ; 0xdaa3
  740.  
  741. ; gap from 0xdaa3 to 0xdaa8
  742.  
  743. Script_daa8: ; daa8 (3:5aa8)
  744.     start_script
  745.     print_text Text0607
  746.     jump_if_flag_nonzero_2 EVENT_FLAG_61, .ows_dac7
  747.     print_text Text0608
  748.     jump_if_flag_nonzero_2 EVENT_FLAG_0A, .ows_dab8
  749.     quit_script_fully
  750. ; 0xdab8
  751.  
  752. .ows_dab8
  753.     ask_question_jump_default_yes Text0609, .ows_dabe
  754.     quit_script_fully
  755. ; 0xdabe
  756.  
  757. .ows_dabe
  758.     play_sfx SFX_5A
  759.     max_out_flag_value EVENT_FLAG_61
  760.     replace_map_blocks $09
  761.     print_text Text060a
  762. .ows_dac7
  763.     ask_question_jump_default_yes Text060b, .ows_dacd
  764.     quit_script_fully
  765. ; 0xdacd
  766.  
  767. .ows_dacd
  768.     open_deck_machine $08
  769.     quit_script_fully
  770. ; 0xdad0
  771.  
  772. Script_dad0: ; dad0 (3:5ad0)
  773.     start_script
  774.     print_text Text060c
  775.     ask_question_jump_default_yes Text060d, .ows_dada
  776.     quit_script_fully
  777. ; 0xdada
  778.  
  779. .ows_dada
  780.     open_deck_machine $00
  781.     quit_script_fully
  782. ; 0xdadd
  783.  
  784. ; gap from 0xdadd to 0xdae9
  785.  
  786. Script_dae9: ; dae9 (3:5ae9)
  787.     start_script
  788.     print_npc_text Text0723
  789.     script_set_flag_value EVENT_FLAG_35, $02
  790.     close_text_box
  791.     jump_if_npc_loaded NPC_ISHIHARA, .ows_dafb
  792.     move_active_npc_by_direction NPCMovementTable_db24
  793.     script_jump .ows_db0f
  794. ; 0xdafb
  795.  
  796. .ows_dafb
  797.     move_active_npc_by_direction NPCMovementTable_db11
  798.     print_npc_text Text0724
  799.     set_dialog_npc NPC_ISHIHARA
  800.     print_npc_text Text0725
  801.     set_dialog_npc NPC_NIKKI
  802.     print_npc_text Text0726
  803.     close_text_box
  804.     move_active_npc NPCMovement_db31
  805. .ows_db0f
  806.     unload_active_npc
  807.     quit_script_fully
  808. ; 0xdb11
  809.  
  810. NPCMovementTable_db11: ; db11 (3:5b11)
  811.     dw NPCMovement_db19
  812.     dw NPCMovement_db20
  813.     dw NPCMovement_db19
  814.     dw NPCMovement_db19
  815.  
  816. NPCMovement_db19: ; db19 (3:5b19)
  817.     db EAST
  818.     db SOUTH
  819.     db SOUTH
  820.     db SOUTH
  821.     db EAST
  822.     db NORTH | NO_MOVE
  823.     db $ff
  824.  
  825. NPCMovement_db20: ; db20 (3:5b20)
  826.     db SOUTH
  827.     db EAST
  828.     db $fe, -8
  829.  
  830. NPCMovementTable_db24: ; db24 (3:5b24)
  831.     dw NPCMovement_db2c
  832.     dw NPCMovement_db39
  833.     dw NPCMovement_db2c
  834.     dw NPCMovement_db2c
  835.  
  836. NPCMovement_db2c: ; db2c (3:5b2c)
  837.     db EAST
  838.     db SOUTH
  839.     db SOUTH
  840.     db SOUTH
  841.     db EAST
  842. NPCMovement_db31: ; db31 (3:5b31)
  843.     db SOUTH
  844.     db SOUTH
  845.     db SOUTH
  846.     db SOUTH
  847.     db SOUTH
  848.     db SOUTH
  849.     db SOUTH
  850.     db $ff
  851.  
  852. NPCMovement_db39: ; db39 (3:5b39)
  853.     db SOUTH
  854.     db EAST
  855.     db $fe, -14
  856.  
  857. ; gap from 0xdb3d to 0xdb4a
  858.  
  859. Script_Ishihara: ; db4a (3:5b4a)
  860.     start_script
  861.     max_out_flag_value EVENT_FLAG_1D
  862.     jump_if_flag_equal EVENT_FLAG_1F, $00, .ows_db80
  863.     jump_if_flag_nonzero_2 EVENT_FLAG_39, .ows_db5a
  864.     jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_dc3e
  865. .ows_db5a
  866.     jump_if_flag_nonzero_2 EVENT_FLAG_00, .ows_db90
  867.     jump_if_flag_zero_2 EVENT_FLAG_38, .ows_db90
  868.     jump_if_flag_equal EVENT_FLAG_1F, $01, .ows_db93
  869.     jump_if_flag_equal EVENT_FLAG_1F, $02, .ows_db93
  870.     jump_if_flag_equal EVENT_FLAG_1F, $03, .ows_dbcc
  871.     jump_if_flag_equal EVENT_FLAG_1F, $04, .ows_dbcc
  872.     jump_if_flag_equal EVENT_FLAG_1F, $05, .ows_dc05
  873.     jump_if_flag_equal EVENT_FLAG_1F, $06, .ows_dc05
  874. .ows_db80
  875.     max_out_flag_value EVENT_FLAG_00
  876.     script_set_flag_value EVENT_FLAG_1F, $01
  877.     zero_out_flag_value EVENT_FLAG_38
  878.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_db8d
  879.     max_out_flag_value EVENT_FLAG_39
  880. .ows_db8d
  881.     print_text_quit_fully Text0727
  882. ; 0xdb90
  883.  
  884. .ows_db90
  885.     print_text_quit_fully Text0728
  886. ; 0xdb93
  887.  
  888. .ows_db93
  889.     jump_if_flag_equal EVENT_FLAG_1F, $01, NULL
  890.     print_variable_npc_text Text0729, Text072a
  891.     script_set_flag_value EVENT_FLAG_1F, $02
  892.     ask_question_jump Text072b, .check_if_clefable_owned
  893.     print_text_quit_fully Text072c
  894. ; 0xdba8
  895.  
  896. .check_if_clefable_owned
  897.     jump_if_card_owned CLEFABLE, .check_if_clefable_in_collection
  898.     print_text_quit_fully Text072d
  899. ; 0xdbaf
  900.  
  901. .check_if_clefable_in_collection
  902.     jump_if_card_in_collection CLEFABLE, .do_clefable_trade
  903.     print_text_quit_fully Text072e
  904. ; 0xdbb6
  905.  
  906. .do_clefable_trade
  907.     max_out_flag_value EVENT_FLAG_00
  908.     script_set_flag_value EVENT_FLAG_1F, $03
  909.     zero_out_flag_value EVENT_FLAG_38
  910.     print_npc_text Text072f
  911.     print_text Text0730
  912.     take_card CLEFABLE
  913.     give_card SURFING_PIKACHU1
  914.     show_card_received_screen SURFING_PIKACHU1
  915.     print_text_quit_fully Text0731
  916. ; 0xdbcc
  917.  
  918. .ows_dbcc
  919.     jump_if_flag_equal EVENT_FLAG_1F, $03, NULL
  920.     print_variable_npc_text Text0732, Text0733
  921.     script_set_flag_value EVENT_FLAG_1F, $04
  922.     ask_question_jump Text072b, .check_if_ditto_owned
  923.     print_text_quit_fully Text072c
  924. ; 0xdbe1
  925.  
  926. .check_if_ditto_owned
  927.     jump_if_card_owned DITTO, .check_if_ditto_in_collection
  928.     print_text_quit_fully Text0734
  929. ; 0xdbe8
  930.  
  931. .check_if_ditto_in_collection
  932.     jump_if_card_in_collection DITTO, .do_ditto_trade
  933.     print_text_quit_fully Text0735
  934. ; 0xdbef
  935.  
  936. .do_ditto_trade
  937.     max_out_flag_value EVENT_FLAG_00
  938.     script_set_flag_value EVENT_FLAG_1F, $05
  939.     zero_out_flag_value EVENT_FLAG_38
  940.     print_npc_text Text072f
  941.     print_text Text0736
  942.     take_card DITTO
  943.     give_card FLYING_PIKACHU
  944.     show_card_received_screen FLYING_PIKACHU
  945.     print_text_quit_fully Text0737
  946. ; 0xdc05
  947.  
  948. .ows_dc05
  949.     jump_if_flag_equal EVENT_FLAG_1F, $05, NULL
  950.     print_variable_npc_text Text0738, Text0739
  951.     script_set_flag_value EVENT_FLAG_1F, $06
  952.     ask_question_jump Text072b, .check_if_chansey_owned
  953.     print_text_quit_fully Text072c
  954. ; 0xdc1a
  955.  
  956. .check_if_chansey_owned
  957.     jump_if_card_owned CHANSEY, .check_if_chansey_in_collection
  958.     print_text_quit_fully Text073a
  959. ; 0xdc21
  960.  
  961. .check_if_chansey_in_collection
  962.     jump_if_card_in_collection CHANSEY, .do_chansey_trade
  963.     print_text_quit_fully Text073b
  964. ; 0xdc28
  965.  
  966. .do_chansey_trade
  967.     max_out_flag_value EVENT_FLAG_00
  968.     script_set_flag_value EVENT_FLAG_1F, $07
  969.     zero_out_flag_value EVENT_FLAG_38
  970.     print_npc_text Text072f
  971.     print_text Text073c
  972.     take_card CHANSEY
  973.     give_card SURFING_PIKACHU2
  974.     show_card_received_screen SURFING_PIKACHU2
  975.     print_text_quit_fully Text073d
  976. ; 0xdc3e
  977.  
  978. .ows_dc3e
  979.     max_out_flag_value EVENT_FLAG_39
  980.     print_text_quit_fully Text073e
  981. ; 0xdc43
  982.  
  983. ; gap from 0xdc43 to 0xdc4b
  984.  
  985. Script_Ronald: ; dc4b (3:5c4b)
  986.     start_script
  987.     jump_if_flag_nonzero_2 EVENT_FLAG_4E, .ows_dc55
  988.     max_out_flag_value EVENT_FLAG_4E
  989.     print_text_quit_fully Text073f
  990. ; 0xdc55
  991.  
  992. .ows_dc55
  993.     print_npc_text Text0740
  994.     ask_question_jump Text0741, .ows_dc60
  995.     print_text_quit_fully Text0742
  996. ; 0xdc60
  997.  
  998. .ows_dc60
  999.     print_text_quit_fully Text0743
  1000.     ret
  1001. ; 0xdc64
  1002.  
  1003. Script_Clerk1: ; dc64 (3:5c64)
  1004.     start_script
  1005.     print_text_quit_fully Text045a
  1006. ; 0xdc68
  1007.  
  1008. ; gap from 0xdc68 to 0xdc76
  1009.  
  1010. Script_Man1: ; dc76 (3:5c76)
  1011.     start_script
  1012.     jump_if_flag_equal EVENT_FLAG_2C, $06, .ows_dce8
  1013.     jump_if_flag_nonzero_2 EVENT_FLAG_01, .ows_dce5
  1014.     jump_if_flag_nonzero_2 EVENT_FLAG_29, .ows_dc91
  1015.     max_out_flag_value EVENT_FLAG_29
  1016.     pick_next_man1_requested_card
  1017.     load_man1_requested_card_into_txram_slot $00
  1018.     print_npc_text Text045b
  1019.     max_out_flag_value EVENT_FLAG_2A
  1020.     script_jump .ows_dca5
  1021. ; 0xdc91
  1022.  
  1023. .ows_dc91
  1024.     jump_if_flag_zero_2 EVENT_FLAG_2A, .ows_dc9d
  1025.     load_man1_requested_card_into_txram_slot $00
  1026.     print_npc_text Text045c
  1027.     script_jump .ows_dca5
  1028. ; 0xdc9d
  1029.  
  1030. .ows_dc9d
  1031.     pick_next_man1_requested_card
  1032.     load_man1_requested_card_into_txram_slot $00
  1033.     print_npc_text Text045d
  1034.     max_out_flag_value EVENT_FLAG_2A
  1035. .ows_dca5
  1036.     load_man1_requested_card_into_txram_slot $00
  1037.     ask_question_jump Text045e, .ows_dcaf
  1038.     print_text_quit_fully Text045f
  1039. ; 0xdcaf
  1040.  
  1041. .ows_dcaf
  1042.     jump_if_man1_requested_card_owned .ows_dcb9
  1043.     load_man1_requested_card_into_txram_slot $00
  1044.     load_man1_requested_card_into_txram_slot $01
  1045.     print_text_quit_fully Text0460
  1046. ; 0xdcb9
  1047.  
  1048. .ows_dcb9
  1049.     jump_if_man1_requested_card_in_collection .ows_dcc3
  1050.     load_man1_requested_card_into_txram_slot $00
  1051.     load_man1_requested_card_into_txram_slot $01
  1052.     print_text_quit_fully Text0461
  1053. ; 0xdcc3
  1054.  
  1055. .ows_dcc3
  1056.     load_man1_requested_card_into_txram_slot $00
  1057.     load_man1_requested_card_into_txram_slot $01
  1058.     print_npc_text Text0462
  1059.     remove_man1_requested_card_from_collection
  1060.     max_out_flag_value EVENT_FLAG_01
  1061.     zero_out_flag_value EVENT_FLAG_2A
  1062.     increment_flag_value EVENT_FLAG_2C
  1063.     jump_if_flag_equal EVENT_FLAG_2C, $05, .ows_dcd7
  1064.     quit_script_fully
  1065. ; 0xdcd7
  1066.  
  1067. .ows_dcd7
  1068.     print_npc_text Text0463
  1069.     give_card PIKACHU4
  1070.     show_card_received_screen PIKACHU4
  1071.     print_npc_text Text0464
  1072.     script_set_flag_value EVENT_FLAG_2C, $06
  1073.     quit_script_fully
  1074. ; 0xdce5
  1075.  
  1076. .ows_dce5
  1077.     print_text_quit_fully Text0465
  1078. ; 0xdce8
  1079.  
  1080. .ows_dce8
  1081.     print_text_quit_fully Text0466
  1082. ; 0xdceb
  1083.  
  1084. ; gap from 0xdceb to 0xdd0d
  1085.  
  1086. Script_Imakuni: ; dd0d (3:5d0d)
  1087.     start_script
  1088.     script_set_flag_value EVENT_IMAKUNI_STATE, $02
  1089.     jump_if_flag_zero_2 EVENT_TEMP_TALKED_TO_IMAKUNI, NULL
  1090.     print_variable_npc_text Text0467, Text0468
  1091.     max_out_flag_value EVENT_TEMP_TALKED_TO_IMAKUNI
  1092.     ask_question_jump Text0469, .start_duel
  1093.     print_npc_text Text046a
  1094.     quit_script_fully
  1095. ; 0xdd25
  1096.  
  1097. .start_duel
  1098.     print_npc_text Text046b
  1099.     start_duel PRIZES_6, IMAKUNI_DECK_ID, MUSIC_IMAKUNI
  1100.     quit_script_fully
  1101. ; 0xdd2d
  1102.  
  1103. Script_BeatImakuni: ; dd2d (3:5d2d)
  1104.     start_script
  1105.     jump_if_flag_equal EVENT_IMAKUNI_WIN_COUNT, $07, .give_boosters
  1106.     increment_flag_value EVENT_IMAKUNI_WIN_COUNT
  1107.     jump_if_flag_equal EVENT_IMAKUNI_WIN_COUNT, $03, .three_wins
  1108.     jump_if_flag_equal EVENT_IMAKUNI_WIN_COUNT, $06, .six_wins
  1109. .give_boosters
  1110.     print_npc_text Text046c
  1111.     give_one_of_each_trainer_booster
  1112.     script_jump .done
  1113. ; 0xdd46
  1114.  
  1115. .three_wins
  1116.     print_npc_text Text046d
  1117.     script_jump .give_imakuni_card
  1118. ; 0xdd4c
  1119.  
  1120. .six_wins
  1121.     print_npc_text Text046e
  1122. .give_imakuni_card
  1123.     print_npc_text Text046f
  1124.     give_card IMAKUNI_CARD
  1125.     show_card_received_screen IMAKUNI_CARD
  1126. .done
  1127.     print_npc_text Text0470
  1128.     script_jump Script_LostToImakuni.imakuni_common
  1129. ; 0xdd5c
  1130.  
  1131. Script_LostToImakuni: ; dd5c (3:5d5c)
  1132.     start_script
  1133.     print_npc_text Text0471
  1134. .imakuni_common
  1135.     close_text_box
  1136.     jump_if_player_coords_match 18, 4, .ows_dd69
  1137.     script_jump .ows_dd6e
  1138. ; 0xdd69
  1139.  
  1140. .ows_dd69
  1141.     set_player_direction EAST
  1142.     move_player WEST, 1
  1143. .ows_dd6e
  1144.     move_active_npc NPCMovement_dd78
  1145.     unload_active_npc
  1146.     max_out_flag_value EVENT_TEMP_DUELED_IMAKUNI
  1147.     set_default_song MUSIC_OVERWORLD
  1148.     play_default_song
  1149.     quit_script_fully
  1150. ; 0xdd78
  1151.  
  1152. NPCMovement_dd78: ; dd78 (3:5d78)
  1153.     db SOUTH
  1154.     db SOUTH
  1155.     db SOUTH
  1156.     db SOUTH
  1157.     db EAST
  1158.     db EAST
  1159.     db EAST
  1160.     db EAST
  1161.     db EAST
  1162.     db $ff
  1163.  
  1164. Script_Specs1: ; dd82 (3:5d82)
  1165.     start_script
  1166.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  1167.     print_variable_npc_text Text0472, Text0473
  1168.     quit_script_fully
  1169. ; 0xdd8d
  1170.  
  1171. Script_Butch: ; dd8d (3:5d8d)
  1172.     start_script
  1173.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  1174.     print_variable_npc_text Text0474, Text0475
  1175.     quit_script_fully
  1176. ; 0xdd98
  1177.  
  1178. ; gap from 0xdd98 to 0xdd9f
  1179.  
  1180. Script_Granny1: ; dd9f (3:5d9f)
  1181.     start_script
  1182.     print_text_quit_fully Text0476
  1183. ; 0xdda3
  1184.  
  1185. ; gap from 0xdda3 to 0xddc3
  1186.  
  1187. Script_Mitch: ; ddc3 (3:5dc3)
  1188.     start_script
  1189.     try_give_pc_pack $02
  1190.     jump_if_flag_nonzero_2 EVENT_FLAG_0F, Script_Mitch_AlreadyHaveMedal
  1191.     fight_club_pupil_jump .first_interaction, .three_pupils_remaining, .two_pupils_remaining, .one_pupil_remaining, .all_pupils_defeated
  1192. .first_interaction
  1193.     print_npc_text Text0477
  1194.     script_set_flag_value EVENT_FLAG_11, $01
  1195.     script_set_flag_value EVENT_FLAG_17, $01
  1196.     script_set_flag_value EVENT_FLAG_20, $01
  1197.     quit_script_fully
  1198. ; 0xdde2
  1199.  
  1200. .three_pupils_remaining
  1201.     print_text_quit_fully Text0478
  1202. ; 0xdde5
  1203.  
  1204. .two_pupils_remaining
  1205.     print_text_quit_fully Text0479
  1206. ; 0xdde8
  1207.  
  1208. .one_pupil_remaining
  1209.     print_text_quit_fully Text047a
  1210. ; 0xddeb
  1211.  
  1212. .all_pupils_defeated
  1213.     print_npc_text Text047b
  1214.     ask_question_jump Text047c, .start_duel
  1215.     print_npc_text Text047d
  1216.     quit_script_fully
  1217. ; 0xddf7
  1218.  
  1219. .start_duel
  1220.     print_npc_text Text047e
  1221.     start_duel PRIZES_6, FIRST_STRIKE_DECK_ID, MUSIC_DUEL_THEME_2
  1222.     quit_script_fully
  1223. ; 0xddff
  1224.  
  1225. Script_BeatMitch: ; ddff (3:5dff)
  1226.     start_script
  1227.     jump_if_flag_nonzero_2 EVENT_FLAG_0F, Script_Mitch_GiveBoosters
  1228.     print_npc_text Text047f
  1229.     max_out_flag_value EVENT_FLAG_0F
  1230.     try_give_medal_pc_packs
  1231.     show_medal_received_screen EVENT_FLAG_0F
  1232.     record_master_win $01
  1233.     print_npc_text Text0480
  1234.     give_booster_packs BOOSTER_LABORATORY_NEUTRAL, BOOSTER_LABORATORY_NEUTRAL, NO_BOOSTER
  1235.     print_npc_text Text0481
  1236.     quit_script_fully
  1237. ; 0xde19
  1238.  
  1239. Script_LostToMitch: ; de19 (3:5e19)
  1240.     start_script
  1241.     jump_if_flag_nonzero_2 EVENT_FLAG_0F, Script_Mitch_PrintTrainHarderText
  1242.     print_text_quit_fully Text0482
  1243. ; 0xde21
  1244.  
  1245. Script_Mitch_AlreadyHaveMedal: ; de21 (3:5e21)
  1246.     print_npc_text Text0483
  1247.     ask_question_jump Text047c, .start_duel
  1248.     print_npc_text Text0484
  1249.     quit_script_fully
  1250. ; 0xde2d
  1251.  
  1252. .start_duel
  1253.     print_npc_text Text0485
  1254.     start_duel PRIZES_6, FIRST_STRIKE_DECK_ID, MUSIC_DUEL_THEME_2
  1255.     quit_script_fully
  1256. ; 0xde35
  1257.  
  1258. Script_Mitch_GiveBoosters: ; de35 (3:5e35)
  1259.     print_npc_text Text0486
  1260.     give_booster_packs BOOSTER_LABORATORY_NEUTRAL, BOOSTER_LABORATORY_NEUTRAL, NO_BOOSTER
  1261.     print_npc_text Text0487
  1262.     quit_script_fully
  1263. ; 0xde40
  1264.  
  1265. Script_Mitch_PrintTrainHarderText: ; de40 (3:5e40)
  1266.     print_text_quit_fully Text0488
  1267. ; 0xde43
  1268.  
  1269. ; gap from 0xde43 to 0xde4b
  1270.  
  1271. Script_de4b: ; de4b (3:5e4b)
  1272.     jump_if_flag_equal EVENT_FLAG_17, $08, NULL
  1273.     print_variable_npc_text Text0489, Text048a
  1274.     script_set_flag_value EVENT_FLAG_17, $09
  1275.     ask_question_jump Text048b, .ows_de61
  1276.     print_npc_text Text048c
  1277.     quit_script_fully
  1278. ; 0xde61
  1279.  
  1280. .ows_de61
  1281.     print_npc_text Text048d
  1282.     start_duel PRIZES_4, MUSCLES_FOR_BRAINS_DECK_ID, MUSIC_DUEL_THEME_1
  1283.     quit_script_fully
  1284. ; 0xde69
  1285.  
  1286. Script_BeatChrisInFightingClub: ; de69 (3:5e69)
  1287.     start_script
  1288.     print_npc_text Text048e
  1289.     give_booster_packs BOOSTER_EVOLUTION_FIGHTING, BOOSTER_EVOLUTION_FIGHTING, NO_BOOSTER
  1290.     print_npc_text Text048f
  1291.     quit_script_fully
  1292. ; 0xde75
  1293.  
  1294. Script_LostToChrisInFightingClub: ; de75 (3:5e75)
  1295.     start_script
  1296.     print_text_quit_fully Text0490
  1297. ; 0xde79
  1298.  
  1299. ; gap from 0xde79 to 0xde81
  1300.  
  1301. Script_de81: ; de81 (3:5e81)
  1302.     print_npc_text Text0491
  1303.     ask_question_jump Text0492, .ows_de8d
  1304.     print_npc_text Text0493
  1305.     quit_script_fully
  1306. ; 0xde8d
  1307.  
  1308. .ows_de8d
  1309.     print_npc_text Text0494
  1310.     start_duel PRIZES_4, HEATED_BATTLE_DECK_ID, MUSIC_DUEL_THEME_1
  1311.     quit_script_fully
  1312. ; 0xde95
  1313.  
  1314. Script_BeatMichaelInFightingClub: ; de95 (3:5e95)
  1315.     start_script
  1316.     print_npc_text Text0495
  1317.     give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
  1318.     print_npc_text Text0496
  1319.     quit_script_fully
  1320. ; 0xdea1
  1321.  
  1322. Script_LostToMichaelInFightingClub: ; dea1 (3:5ea1)
  1323.     start_script
  1324.     print_text_quit_fully Text0497
  1325. ; 0xdea5
  1326.  
  1327. ; gap from 0xdea5 to 0xdead
  1328.  
  1329. Script_dead: ; dead (3:5ead)
  1330.     print_npc_text Text0498
  1331.     ask_question_jump Text0499, .ows_deb9
  1332.     print_npc_text Text049a
  1333.     quit_script_fully
  1334. ; 0xdeb9
  1335.  
  1336. .ows_deb9
  1337.     print_npc_text Text049b
  1338.     start_duel PRIZES_4, LOVE_TO_BATTLE_DECK_ID, MUSIC_DUEL_THEME_1
  1339.     quit_script_fully
  1340. ; 0xdec1
  1341.  
  1342. Script_BeatJessicaInFightingClub: ; dec1 (3:5ec1)
  1343.     start_script
  1344.     print_npc_text Text049c
  1345.     give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
  1346.     print_npc_text Text049d
  1347.     quit_script_fully
  1348. ; 0xdecd
  1349.  
  1350. Script_LostToJessicaInFightingClub: ; decd (3:5ecd)
  1351.     start_script
  1352.     print_text_quit_fully Text049e
  1353. ; 0xded1
  1354.  
  1355. Script_Clerk2: ; ded1 (3:5ed1)
  1356.     start_script
  1357.     print_text_quit_fully Text0779
  1358. ; 0xded5
  1359.  
  1360. ; gap from 0xded5 to 0xdef2
  1361.  
  1362. Script_Chris: ; def2 (3:5ef2)
  1363.     start_script
  1364.     jump_if_flag_not_less_than EVENT_FLAG_17, $08, Script_de4b
  1365.     print_npc_text Text077a
  1366.     ask_question_jump Text077b, .ows_df04
  1367.     print_npc_text Text077c
  1368.     quit_script_fully
  1369. ; 0xdf04
  1370.  
  1371. .ows_df04
  1372.     print_npc_text Text077d
  1373.     start_duel PRIZES_4, MUSCLES_FOR_BRAINS_DECK_ID, MUSIC_DUEL_THEME_1
  1374.     quit_script_fully
  1375. ; 0xdf0c
  1376.  
  1377. Script_BeatChrisInRockClubLobby: ; df0c (3:5f0c)
  1378.     start_script
  1379.     script_set_flag_value EVENT_FLAG_17, $08
  1380.     print_npc_text Text077e
  1381.     give_booster_packs BOOSTER_EVOLUTION_FIGHTING, BOOSTER_EVOLUTION_FIGHTING, NO_BOOSTER
  1382.     print_npc_text Text077f
  1383.     close_text_box
  1384.     move_active_npc_by_direction NPCMovementTable_df24
  1385.     unload_active_npc
  1386.     quit_script_fully
  1387. ; 0xdf20
  1388.  
  1389. Script_LostToChrisInRockClubLobby: ; df20 (3:5f20)
  1390.     start_script
  1391.     print_text_quit_fully Text0780
  1392. ; 0xdf24
  1393.  
  1394. NPCMovementTable_df24: ; df24 (3:5f24)
  1395.     dw NPCMovement_df2c
  1396.     dw NPCMovement_df2c
  1397.     dw NPCMovement_df34
  1398.     dw NPCMovement_df2c
  1399.  
  1400. NPCMovement_df2c: ; df2c (3:5f2c)
  1401.     db SOUTH
  1402.     db SOUTH
  1403.     db EAST
  1404.     db EAST
  1405.     db EAST
  1406.     db EAST
  1407.     db EAST
  1408.     db $ff
  1409.  
  1410. NPCMovement_df34: ; df34 (3:5f34)
  1411.     db EAST
  1412.     db SOUTH
  1413.     db SOUTH
  1414.     db $fe, -9
  1415.  
  1416. Script_Matthew: ; df39 (3:5f39)
  1417.     start_script
  1418.     try_give_pc_pack $03
  1419.     jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_df4c
  1420.     jump_if_flag_zero_1 EVENT_FLAG_18, NULL
  1421.     print_variable_npc_text Text0781, Text0782
  1422.     script_jump .ows_df4f
  1423. ; 0xdf4c
  1424.  
  1425. .ows_df4c
  1426.     print_npc_text Text0783
  1427. .ows_df4f
  1428.     script_set_flag_value EVENT_FLAG_18, $01
  1429.     ask_question_jump Text0784, .ows_df5b
  1430.     print_npc_text Text0785
  1431.     quit_script_fully
  1432. ; 0xdf5b
  1433.  
  1434. .ows_df5b
  1435.     print_npc_text Text0786
  1436.     start_duel PRIZES_4, HARD_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
  1437.     quit_script_fully
  1438. ; 0xdf63
  1439.  
  1440. Script_BeatMatthew: ; df63 (3:5f63)
  1441.     start_script
  1442.     script_set_flag_value EVENT_FLAG_18, $02
  1443.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  1444.     print_variable_npc_text Text0787, Text0788
  1445.     give_booster_packs BOOSTER_MYSTERY_FIGHTING_COLORLESS, BOOSTER_MYSTERY_FIGHTING_COLORLESS, NO_BOOSTER
  1446.     print_npc_text Text0789
  1447.     quit_script_fully
  1448. ; 0xdf78
  1449.  
  1450. Script_LostToMatthew: ; df78 (3:5f78)
  1451.     start_script
  1452.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  1453.     print_variable_npc_text Text078a, Text078b
  1454.     quit_script_fully
  1455. ; 0xdf83
  1456.  
  1457. Script_Woman1: ; df83 (3:5f83)
  1458.     start_script
  1459.     jump_if_flag_not_less_than EVENT_FLAG_1F, $07, .ows_dfba
  1460.     jump_if_flag_nonzero_2 EVENT_FLAG_1D, .ows_df96
  1461.     max_out_flag_value EVENT_FLAG_1C
  1462.     max_out_flag_value EVENT_FLAG_1E
  1463.     max_out_flag_value EVENT_FLAG_38
  1464.     print_text_quit_fully Text078c
  1465. ; 0xdf96
  1466.  
  1467. .ows_df96
  1468.     jump_if_flag_nonzero_2 EVENT_FLAG_00, .ows_dfb7
  1469.     jump_if_flag_not_less_than EVENT_FLAG_1F, $05, .ows_dfae
  1470.     jump_if_flag_not_less_than EVENT_FLAG_1F, $03, .ows_dfa9
  1471.     max_out_flag_value EVENT_FLAG_38
  1472.     print_text_quit_fully Text078d
  1473. ; 0xdfa9
  1474.  
  1475. .ows_dfa9
  1476.     max_out_flag_value EVENT_FLAG_38
  1477.     print_text_quit_fully Text078e
  1478. ; 0xdfae
  1479.  
  1480. .ows_dfae
  1481.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_dfb7
  1482.     max_out_flag_value EVENT_FLAG_38
  1483.     print_text_quit_fully Text078f
  1484. ; 0xdfb7
  1485.  
  1486. .ows_dfb7
  1487.     print_text_quit_fully Text0790
  1488. ; 0xdfba
  1489.  
  1490. .ows_dfba
  1491.     script_set_flag_value EVENT_FLAG_1F, $08
  1492.     print_text_quit_fully Text0791
  1493. ; 0xdfc0
  1494.  
  1495. Script_Chap1: ; dfc0 (3:5fc0)
  1496.     start_script
  1497.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  1498.     print_variable_npc_text Text0792, Text0793
  1499.     quit_script_fully
  1500. ; 0xdfcb
  1501.  
  1502. ; gap from 0xdfcb to 0xdfd2
  1503.  
  1504. Script_Lass3: ; dfd2 (3:5fd2)
  1505.     start_script
  1506.     print_text_quit_fully Text0794
  1507. ; 0xdfd6
  1508.  
  1509. ; gap from 0xdfd6 to 0xdff0
  1510.  
  1511. Script_Ryan: ; dff0 (3:5ff0)
  1512.     start_script
  1513.     try_give_pc_pack $03
  1514.     print_npc_text Text0795
  1515.     ask_question_jump Text0796, .ows_dfff
  1516.     print_npc_text Text0797
  1517.     quit_script_fully
  1518. ; 0xdfff
  1519.  
  1520. .ows_dfff
  1521.     print_npc_text Text0798
  1522.     start_duel PRIZES_3, EXCAVATION_DECK_ID, MUSIC_DUEL_THEME_1
  1523.     quit_script_fully
  1524. ; 0xe007
  1525.  
  1526. Script_BeatRyan: ; e007 (3:6007)
  1527.     start_script
  1528.     print_npc_text Text0799
  1529.     give_booster_packs BOOSTER_EVOLUTION_FIGHTING, BOOSTER_EVOLUTION_FIGHTING, NO_BOOSTER
  1530.     print_npc_text Text079a
  1531.     quit_script_fully
  1532. ; 0xe013
  1533.  
  1534. Script_LostToRyan: ; e013 (3:6013)
  1535.     start_script
  1536.     print_text_quit_fully Text079b
  1537. ; 0xe017
  1538.  
  1539. Script_Andrew: ; e017 (3:6017)
  1540.     start_script
  1541.     try_give_pc_pack $03
  1542.     print_npc_text Text079c
  1543.     ask_question_jump Text079d, .ows_e026
  1544.     print_npc_text Text079e
  1545.     quit_script_fully
  1546. ; 0xe026
  1547.  
  1548. .ows_e026
  1549.     print_npc_text Text079f
  1550.     start_duel PRIZES_4, BLISTERING_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
  1551.     quit_script_fully
  1552. ; 0xe02e
  1553.  
  1554. Script_BeatAndrew: ; e02e (3:602e)
  1555.     start_script
  1556.     print_npc_text Text07a0
  1557.     give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
  1558.     print_npc_text Text07a1
  1559.     quit_script_fully
  1560. ; 0xe03a
  1561.  
  1562. Script_LostToAndrew: ; e03a (3:603a)
  1563.     start_script
  1564.     print_text_quit_fully Text07a2
  1565. ; 0xe03e
  1566.  
  1567. Script_Gene: ; e03e (3:603e)
  1568.     start_script
  1569.     try_give_pc_pack $03
  1570.     jump_if_flag_nonzero_2 EVENT_FLAG_0E, Script_LostToGene.ows_e07b
  1571.     print_npc_text Text07a3
  1572.     ask_question_jump Text07a4, .ows_e051
  1573.     print_npc_text Text07a5
  1574.     quit_script_fully
  1575. ; 0xe051
  1576.  
  1577. .ows_e051
  1578.     print_npc_text Text07a6
  1579.     start_duel PRIZES_6, ROCK_CRUSHER_DECK_ID, MUSIC_DUEL_THEME_2
  1580.     quit_script_fully
  1581. ; 0xe059
  1582.  
  1583. Script_BeatGene: ; e059 (3:6059)
  1584.     start_script
  1585.     jump_if_flag_nonzero_2 EVENT_FLAG_0E, Script_LostToGene.ows_e08f
  1586.     print_npc_text Text07a7
  1587.     max_out_flag_value EVENT_FLAG_0E
  1588.     try_give_medal_pc_packs
  1589.     show_medal_received_screen EVENT_FLAG_0E
  1590.     record_master_win $02
  1591.     print_npc_text Text07a8
  1592.     give_booster_packs BOOSTER_MYSTERY_FIGHTING_COLORLESS, BOOSTER_MYSTERY_FIGHTING_COLORLESS, NO_BOOSTER
  1593.     print_npc_text Text07a9
  1594.     quit_script_fully
  1595. ; 0xe073
  1596.  
  1597. Script_LostToGene: ; e073 (3:6073)
  1598.     start_script
  1599.     jump_if_flag_nonzero_2 EVENT_FLAG_0E, .ows_e09a
  1600.     print_text_quit_fully Text07aa
  1601. ; 0xe07b
  1602.  
  1603. .ows_e07b
  1604.     print_npc_text Text07ab
  1605.     ask_question_jump Text07a4, .ows_e087
  1606.     print_npc_text Text07ac
  1607.     quit_script_fully
  1608. ; 0xe087
  1609.  
  1610. .ows_e087
  1611.     print_npc_text Text07ad
  1612.     start_duel PRIZES_6, ROCK_CRUSHER_DECK_ID, MUSIC_DUEL_THEME_2
  1613.     quit_script_fully
  1614. ; 0xe08f
  1615.  
  1616. .ows_e08f
  1617.     print_npc_text Text07ae
  1618.     give_booster_packs BOOSTER_MYSTERY_FIGHTING_COLORLESS, BOOSTER_MYSTERY_FIGHTING_COLORLESS, NO_BOOSTER
  1619.     print_npc_text Text07af
  1620.     quit_script_fully
  1621. ; 0xe09a
  1622.  
  1623. .ows_e09a
  1624.     print_text_quit_fully Text07b0
  1625.     ret
  1626. ; 0xe09e
  1627.  
  1628. Script_Clerk3: ; e09e (3:609e)
  1629.     start_script
  1630.     print_text_quit_fully Text041c
  1631. ; 0xe0a2
  1632.  
  1633. ; gap from 0xe0a2 to 0xe0cf
  1634.  
  1635. Script_Gal1: ; e0cf (3:60cf)
  1636.     start_script
  1637.     jump_if_flag_equal EVENT_FLAG_12, $02, .ows_e10e
  1638.     jump_if_flag_equal EVENT_FLAG_12, $00, NULL
  1639.     print_variable_npc_text Gal1WantToTrade1Text, Gal1WantToTrade2Text
  1640.     script_set_flag_value EVENT_FLAG_12, $01
  1641.     ask_question_jump Gal1WouldYouLikeToTradeText, .ows_e0eb
  1642.     print_npc_text Gal1DeclinedTradeText
  1643.     quit_script_fully
  1644. ; 0xe0eb
  1645.  
  1646. .ows_e0eb
  1647.     jump_if_card_owned LAPRAS, .ows_e0f3
  1648.     print_npc_text Gal1DontOwnCardText
  1649.     quit_script_fully
  1650. ; 0xe0f3
  1651.  
  1652. .ows_e0f3
  1653.     jump_if_card_in_collection LAPRAS, .ows_e0fb
  1654.     print_npc_text Gal1CardInDeckText
  1655.     quit_script_fully
  1656. ; 0xe0fb
  1657.  
  1658. .ows_e0fb
  1659.     script_set_flag_value EVENT_FLAG_12, $02
  1660.     print_npc_text Gal1LetsTradeText
  1661.     print_text Gal1TradeCompleteText
  1662.     take_card LAPRAS
  1663.     give_card ARCANINE1
  1664.     show_card_received_screen ARCANINE1
  1665.     print_npc_text Gal1ThanksText
  1666.     quit_script_fully
  1667. ; 0xe10e
  1668.  
  1669. .ows_e10e
  1670.     print_text_quit_fully Gal1AfterTradeText
  1671. ; 0xe111
  1672.  
  1673. Script_Lass1: ; e111 (3:6111)
  1674.     start_script
  1675.     jump_if_flag_equal EVENT_FLAG_14, $01, .ows_e121
  1676.     print_npc_text Text0427
  1677.     script_set_flag_value EVENT_FLAG_14, $01
  1678.     script_set_flag_value EVENT_IMAKUNI_STATE, $01
  1679.     quit_script_fully
  1680. ; 0xe121
  1681.  
  1682. .ows_e121
  1683.     jump_if_flag_not_equal EVENT_IMAKUNI_ROOM, $03, .ows_e12d
  1684.     jump_if_flag_nonzero_2 EVENT_TEMP_DUELED_IMAKUNI, .ows_e12d
  1685.     print_text_quit_fully Text0428
  1686. ; 0xe12d
  1687.  
  1688. .ows_e12d
  1689.     print_text_quit_fully Text0429
  1690. ; 0xe130
  1691.  
  1692. ; gap from 0xe130 to 0xe137
  1693.  
  1694. Script_Man2: ; e137 (3:6137)
  1695.     start_script
  1696.     print_text_quit_fully Text042a
  1697. ; 0xe13b
  1698.  
  1699. Script_Pappy2: ; e13b (3:613b)
  1700.     start_script
  1701.     print_text_quit_fully Text042b
  1702. ; 0xe13f
  1703.  
  1704. ; gap from 0xe13f to 0xe177
  1705.  
  1706. Script_Sara: ; e177 (3:6177)
  1707.     start_script
  1708.     print_npc_text Text042c
  1709.     ask_question_jump Text042d, .start_duel
  1710.     print_npc_text Text042e
  1711.     quit_script_fully
  1712. ; 0xe184
  1713.  
  1714. .start_duel
  1715.     print_npc_text Text042f
  1716.     start_duel PRIZES_2, WATERFRONT_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
  1717.     quit_script_fully
  1718. ; 0xe18c
  1719.  
  1720. Script_BeatSara: ; e18c (3:618c)
  1721.     start_script
  1722.     max_out_flag_value EVENT_BEAT_SARA
  1723.     print_npc_text Text0430
  1724.     give_booster_packs BOOSTER_COLOSSEUM_WATER, BOOSTER_COLOSSEUM_WATER, NO_BOOSTER
  1725.     print_npc_text Text0431
  1726.     quit_script_fully
  1727. ; 0xe19a
  1728.  
  1729. Script_LostToSara: ; e19a (3:619a)
  1730.     start_script
  1731.     print_text_quit_fully Text0432
  1732. ; 0xe19e
  1733.  
  1734. Script_Amanda: ; e19e (3:619e)
  1735.     start_script
  1736.     print_npc_text Text0433
  1737.     ask_question_jump Text0434, .start_duel
  1738.     print_npc_text Text0435
  1739.     quit_script_fully
  1740. ; 0xe1ab
  1741.  
  1742. .start_duel
  1743.     print_npc_text Text0436
  1744.     start_duel PRIZES_3, LONELY_FRIENDS_DECK_ID, MUSIC_DUEL_THEME_1
  1745.     quit_script_fully
  1746. ; 0xe1b3
  1747.  
  1748. Script_BeatAmanda: ; e1b3 (3:61b3)
  1749.     start_script
  1750.     max_out_flag_value EVENT_BEAT_AMANDA
  1751.     print_npc_text Text0437
  1752.     give_booster_packs BOOSTER_MYSTERY_LIGHTNING_COLORLESS, BOOSTER_MYSTERY_LIGHTNING_COLORLESS, NO_BOOSTER
  1753.     print_npc_text Text0438
  1754.     quit_script_fully
  1755. ; 0xe1c1
  1756.  
  1757. Script_LostToAmanda: ; e1c1 (3:61c1)
  1758.     start_script
  1759.     print_text_quit_fully Text0439
  1760. ; 0xe1c5
  1761.  
  1762. Script_NotReadyToSeeAmy: ; e1c5 (3:61c5)
  1763.     start_script
  1764.     jump_if_player_coords_match 18, 8, .ows_e1ec
  1765.     jump_if_player_coords_match 20, 8, .ows_e1f2
  1766.     jump_if_player_coords_match 24, 8, .ows_e1f8
  1767. .ows_e1d5
  1768.     move_player SOUTH, 4
  1769.     move_active_npc NPCMovement_e213
  1770.     print_npc_text Text043a
  1771.     jump_if_player_coords_match 18, 10, .ows_e1fe
  1772.     jump_if_player_coords_match 20, 10, .ows_e202
  1773.     move_active_npc NPCMovement_e215
  1774.     quit_script_fully
  1775. ; 0xe1ec
  1776.  
  1777. .ows_e1ec
  1778.     move_active_npc NPCMovement_e206
  1779.     script_jump .ows_e1d5
  1780. ; 0xe1f2
  1781.  
  1782. .ows_e1f2
  1783.     move_active_npc NPCMovement_e20b
  1784.     script_jump .ows_e1d5
  1785. ; 0xe1f8
  1786.  
  1787. .ows_e1f8
  1788.     move_active_npc NPCMovement_e20f
  1789.     script_jump .ows_e1d5
  1790. ; 0xe1fe
  1791.  
  1792. .ows_e1fe
  1793.     move_active_npc NPCMovement_e218
  1794.     quit_script_fully
  1795. ; 0xe202
  1796.  
  1797. .ows_e202
  1798.     move_active_npc NPCMovement_e219
  1799.     quit_script_fully
  1800. ; 0xe206
  1801.  
  1802. NPCMovement_e206: ; e206 (3:6206)
  1803.     db NORTH
  1804.     db WEST
  1805.     db WEST
  1806.     db SOUTH | NO_MOVE
  1807.     db $ff
  1808.  
  1809. NPCMovement_e20b: ; e20b (3:620b)
  1810.     db NORTH
  1811.     db WEST
  1812.     db SOUTH | NO_MOVE
  1813.     db $ff
  1814.  
  1815. NPCMovement_e20f: ; e20f (3:620f)
  1816.     db NORTH
  1817.     db EAST
  1818.     db SOUTH | NO_MOVE
  1819.     db $ff
  1820.  
  1821. NPCMovement_e213: ; e213 (3:6213)
  1822.     db SOUTH
  1823.     db $ff
  1824.  
  1825. NPCMovement_e215: ; e215 (3:6215)
  1826.     db WEST
  1827.     db SOUTH | NO_MOVE
  1828.     db $ff
  1829.  
  1830. NPCMovement_e218: ; e218 (3:6218)
  1831.     db EAST
  1832. NPCMovement_e219: ; e219 (3:6219)
  1833.     db EAST
  1834.     db SOUTH | NO_MOVE
  1835.     db $ff
  1836.  
  1837. Script_Joshua: ; e21c (3:621c)
  1838.     start_script
  1839.     jump_if_flag_zero_2 EVENT_BEAT_AMANDA, .sara_and_amanda_not_beaten
  1840.     jump_if_flag_zero_2 EVENT_BEAT_SARA, .sara_and_amanda_not_beaten
  1841.     script_jump .beat_sara_and_amanda
  1842. ; 0xe228
  1843.  
  1844. .sara_and_amanda_not_beaten
  1845.     script_set_flag_value EVENT_JOSHUA_STATE, $01
  1846.     print_npc_text Text043b
  1847.     quit_script_fully
  1848. ; 0xe22f
  1849.  
  1850. .beat_sara_and_amanda
  1851.     jump_if_flag_nonzero_1 EVENT_JOSHUA_STATE, .already_talked
  1852.     script_set_flag_value EVENT_JOSHUA_STATE, $01
  1853.     print_npc_text Text043b
  1854.     print_npc_text Text043c
  1855. .already_talked
  1856.     jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
  1857.     print_variable_npc_text Text043d, Text043e
  1858.     ask_question_jump Text043f, .start_duel
  1859.     jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
  1860.     print_variable_npc_text Text0440, Text0441
  1861.     quit_script_fully
  1862. ; 0xe256
  1863.  
  1864. .start_duel
  1865.     print_npc_text Text0442
  1866.     try_give_pc_pack $04
  1867.     start_duel PRIZES_4, SOUND_OF_THE_WAVES_DECK_ID, MUSIC_DUEL_THEME_1
  1868.     quit_script_fully
  1869. ; 0xe260
  1870.  
  1871. Script_LostToJoshua: ; e260 (3:6260)
  1872.     start_script
  1873.     jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
  1874.     print_variable_npc_text Text0443, Text0444
  1875.     quit_script_fully
  1876. ; 0xe26c
  1877.  
  1878. Script_BeatJoshua: ; e26c (3:626c)
  1879.     start_script
  1880.     jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
  1881.     print_variable_npc_text Text0445, Text0446
  1882.     give_booster_packs BOOSTER_MYSTERY_WATER_COLORLESS, BOOSTER_MYSTERY_WATER_COLORLESS, NO_BOOSTER
  1883.     jump_if_flag_equal EVENT_JOSHUA_STATE, $01, NULL
  1884.     print_variable_npc_text Text0447, Text0448
  1885.     jump_if_flag_not_equal EVENT_JOSHUA_STATE, $02, .first_joshua_win
  1886.     quit_script_fully
  1887. ; 0xe28b
  1888.  
  1889. .first_joshua_win
  1890.     script_set_flag_value EVENT_JOSHUA_STATE, $02
  1891.     print_npc_text Text0449
  1892.     close_text_box
  1893.     move_active_npc_by_direction NPCMovementTable_e2a1
  1894.     print_npc_text Text044a
  1895.     set_active_npc_direction NORTH
  1896.     close_advanced_text_box
  1897.     set_next_npc_and_script NPC_AMY, Script_MeetAmy
  1898.     end_script
  1899.     ret
  1900. ; 0xe2a1
  1901.  
  1902. NPCMovementTable_e2a1: ; e2a1 (3:62a1)
  1903.     dw NPCMovement_e2a9
  1904.     dw NPCMovement_e2a9
  1905.     dw NPCMovement_e2a9
  1906.     dw NPCMovement_e2a9
  1907.  
  1908. NPCMovement_e2a9: ; e2a9 (3:62a9)
  1909.     db NORTH
  1910.     db $ff
  1911.  
  1912. NPCMovement_e2ab: ; e2ab (3:62ab)
  1913.     db SOUTH
  1914.     db $ff
  1915.  
  1916. ; gap from 0xe2ad to 0xe2d1
  1917.  
  1918. Script_MeetAmy: ; e2d1 (3:62d1)
  1919.     start_script
  1920.     print_npc_text Text044b
  1921.     set_dialog_npc NPC_JOSHUA
  1922.     print_npc_text Text044c
  1923.     set_dialog_npc NPC_AMY
  1924.     print_npc_text Text044d
  1925.     close_text_box
  1926.     set_sprite_attributes $09, $2f, $10
  1927.     do_frames 32
  1928.     set_sprite_attributes $04, $0e, $00
  1929.     set_active_npc_coords 20, 4
  1930.     set_player_direction WEST
  1931.     move_player WEST, 1
  1932.     set_player_direction NORTH
  1933.     move_player NORTH, 1
  1934.     move_player NORTH, 1
  1935.     move_npc NPC_JOSHUA, NPCMovement_e2ab
  1936.     print_npc_text Text044e
  1937.     script_jump Script_Amy.ask_for_duel
  1938. ; 0xe304
  1939.  
  1940. Script_Amy: ; e304 (3:6304)
  1941.     start_script
  1942.     jump_if_flag_nonzero_2 EVENT_BEAT_AMY, Script_Amy_AlreadyHaveMedal
  1943.     print_npc_text Text044f
  1944. .ask_for_duel
  1945.     ask_question_jump Text0450, .start_duel
  1946. .deny_duel
  1947.     print_npc_text Text0451
  1948.     jump_if_active_npc_coords_match 20, 4, Script_LostToAmy.ows_e34e
  1949.     quit_script_fully
  1950. ; 0xe31a
  1951.  
  1952. .start_duel
  1953.     print_npc_text Text0452
  1954.     start_duel PRIZES_6, GO_GO_RAIN_DANCE_DECK_ID, MUSIC_DUEL_THEME_2
  1955.     quit_script_fully
  1956. ; 0xe322
  1957.  
  1958. Script_BeatAmy: ; e322 (3:6322)
  1959.     start_script
  1960.     print_npc_text Text0453
  1961.     jump_if_flag_nonzero_2 EVENT_BEAT_AMY, .give_booster_packs
  1962.     print_npc_text Text0454
  1963.     max_out_flag_value EVENT_BEAT_AMY
  1964.     try_give_medal_pc_packs
  1965.     show_medal_received_screen EVENT_BEAT_AMY
  1966.     record_master_win $03
  1967.     print_npc_text Text0455
  1968. .give_booster_packs
  1969.     give_booster_packs BOOSTER_LABORATORY_WATER, BOOSTER_LABORATORY_WATER, NO_BOOSTER
  1970.     print_npc_text Text0456
  1971.     jump_if_active_npc_coords_match 20, 4, Script_LostToAmy.ows_e34e
  1972.     quit_script_fully
  1973. ; 0xe344
  1974.  
  1975. Script_LostToAmy: ; e344 (3:6344)
  1976.     start_script
  1977.     print_npc_text Text0457
  1978.     jump_if_active_npc_coords_match 20, 4, .ows_e34e
  1979.     quit_script_fully
  1980. ; 0xe34e
  1981.  
  1982. .ows_e34e
  1983.     set_sprite_attributes $08, $2e, $10
  1984.     set_active_npc_coords 22, 4
  1985.     quit_script_fully
  1986. ; 0xe356
  1987.  
  1988. Script_Amy_AlreadyHaveMedal: ; e356 (3:6356)
  1989.     print_npc_text Text0458
  1990.     ask_question_jump Text0450, .start_duel
  1991.     script_jump Script_Amy.deny_duel
  1992. ; 0xe361
  1993.  
  1994. .start_duel
  1995.     print_npc_text Text0459
  1996.     start_duel PRIZES_6, GO_GO_RAIN_DANCE_DECK_ID, MUSIC_DUEL_THEME_2
  1997.     quit_script_fully
  1998. ; 0xe369
  1999.  
  2000. Script_Clerk4: ; e369 (3:6369)
  2001.     start_script
  2002.     print_text_quit_fully Text060e
  2003. ; 0xe36d
  2004.  
  2005. ; gap from 0xe36d to 0xe39a
  2006.  
  2007. Script_Chap2: ; e39a (3:639a)
  2008.     start_script
  2009.     jump_if_flag_equal EVENT_FLAG_19, $02, .ows_e3d6
  2010.     jump_if_flag_equal EVENT_FLAG_19, $00, NULL
  2011.     print_variable_npc_text Text060f, Text0610
  2012.     script_set_flag_value EVENT_FLAG_19, $01
  2013.     ask_question_jump Text0611, .ows_e3b6
  2014.     print_npc_text Text0612
  2015.     quit_script_fully
  2016. ; 0xe3b6
  2017.  
  2018. .ows_e3b6
  2019.     jump_if_card_owned ELECTABUZZ2, .ows_e3be
  2020.     print_npc_text Text0613
  2021.     quit_script_fully
  2022. ; 0xe3be
  2023.  
  2024. .ows_e3be
  2025.     jump_if_card_in_collection ELECTABUZZ2, .ows_e3c6
  2026.     print_npc_text Text0614
  2027.     quit_script_fully
  2028. ; 0xe3c6
  2029.  
  2030. .ows_e3c6
  2031.     script_set_flag_value EVENT_FLAG_19, $02
  2032.     print_npc_text Text0615
  2033.     take_card ELECTABUZZ2
  2034.     give_card ELECTABUZZ1
  2035.     show_card_received_screen ELECTABUZZ1
  2036.     print_npc_text Text0616
  2037.     quit_script_fully
  2038. ; 0xe3d6
  2039.  
  2040. .ows_e3d6
  2041.     print_text_quit_fully Text0617
  2042. ; 0xe3d9
  2043.  
  2044. Script_Lass4: ; e3d9 (3:63d9)
  2045.     start_script
  2046.     print_text_quit_fully Text0618
  2047. ; 0xe3dd
  2048.  
  2049. Script_Hood1: ; e3dd (3:63dd)
  2050.     start_script
  2051.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  2052.     print_variable_npc_text Text0619, Text061a
  2053.     quit_script_fully
  2054. ; 0xe3e8
  2055.  
  2056. ; gap from 0xe3e8 to 0xe408
  2057.  
  2058. Script_Jennifer: ; e408 (3:6408)
  2059.     start_script
  2060.     print_npc_text Text061b
  2061.     ask_question_jump Text061c, .ows_e415
  2062.     print_npc_text Text061d
  2063.     quit_script_fully
  2064. ; 0xe415
  2065.  
  2066. .ows_e415
  2067.     print_npc_text Text061e
  2068.     start_duel PRIZES_4, PIKACHU_DECK_ID, MUSIC_DUEL_THEME_1
  2069.     quit_script_fully
  2070. ; 0xe41d
  2071.  
  2072. Script_BeatJennifer: ; e41d (3:641d)
  2073.     start_script
  2074.     max_out_flag_value EVENT_FLAG_25
  2075.     print_npc_text Text061f
  2076.     give_booster_packs BOOSTER_MYSTERY_LIGHTNING_COLORLESS, BOOSTER_MYSTERY_LIGHTNING_COLORLESS, NO_BOOSTER
  2077.     print_npc_text Text0620
  2078.     quit_script_fully
  2079. ; 0xe42b
  2080.  
  2081. Script_LostToJennifer: ; e42b (3:642b)
  2082.     start_script
  2083.     print_text_quit_fully Text0621
  2084. ; 0xe42f
  2085.  
  2086. Script_Nicholas: ; e42f (3:642f)
  2087.     start_script
  2088.     print_npc_text Text0622
  2089.     ask_question_jump Text0623, .ows_e43c
  2090.     print_npc_text Text0624
  2091.     quit_script_fully
  2092. ; 0xe43c
  2093.  
  2094. .ows_e43c
  2095.     print_npc_text Text0625
  2096.     start_duel PRIZES_4, BOOM_BOOM_SELFDESTRUCT_DECK_ID, MUSIC_DUEL_THEME_1
  2097.     quit_script_fully
  2098. ; 0xe444
  2099.  
  2100. Script_BeatNicholas: ; e444 (3:6444)
  2101.     start_script
  2102.     max_out_flag_value EVENT_FLAG_26
  2103.     print_npc_text Text0626
  2104.     give_booster_packs BOOSTER_COLOSSEUM_LIGHTNING, BOOSTER_COLOSSEUM_LIGHTNING, NO_BOOSTER
  2105.     print_npc_text Text0627
  2106.     quit_script_fully
  2107. ; 0xe452
  2108.  
  2109. Script_LostToNicholas: ; e452 (3:6452)
  2110.     start_script
  2111.     print_text_quit_fully Text0628
  2112. ; 0xe456
  2113.  
  2114. Script_Brandon: ; e456 (3:6456)
  2115.     start_script
  2116.     jump_if_flag_zero_2 EVENT_FLAG_25, .ows_e469
  2117.     jump_if_flag_zero_2 EVENT_FLAG_26, .ows_e469
  2118.     jump_if_flag_zero_2 EVENT_FLAG_27, .ows_e469
  2119.     print_npc_text Text0629
  2120.     script_jump .ows_e46c
  2121. ; 0xe469
  2122.  
  2123. .ows_e469
  2124.     print_npc_text Text062a
  2125. .ows_e46c
  2126.     print_npc_text Text062b
  2127.     ask_question_jump Text062c, .ows_e478
  2128.     print_npc_text Text062d
  2129.     quit_script_fully
  2130. ; 0xe478
  2131.  
  2132. .ows_e478
  2133.     print_npc_text Text062e
  2134.     start_duel PRIZES_4, POWER_GENERATOR_DECK_ID, MUSIC_DUEL_THEME_1
  2135.     quit_script_fully
  2136. ; 0xe480
  2137.  
  2138. Script_BeatBrandon: ; e480 (3:6480)
  2139.     start_script
  2140.     try_give_pc_pack $05
  2141.     max_out_flag_value EVENT_FLAG_27
  2142.     print_npc_text Text062f
  2143.     give_booster_packs BOOSTER_COLOSSEUM_LIGHTNING, BOOSTER_COLOSSEUM_LIGHTNING, NO_BOOSTER
  2144.     print_npc_text Text0630
  2145.     quit_script_fully
  2146. ; 0xe490
  2147.  
  2148. Script_LostToBrandon: ; e490 (3:6490)
  2149.     start_script
  2150.     print_text_quit_fully Text0631
  2151. ; 0xe494
  2152.  
  2153. ; gap from 0xe494 to 0xe4ad
  2154.  
  2155. Script_Isaac: ; e4ad (3:64ad)
  2156.     start_script
  2157.     jump_if_flag_zero_2 EVENT_FLAG_25, .ows_e4bd
  2158.     jump_if_flag_zero_2 EVENT_FLAG_26, .ows_e4bd
  2159.     jump_if_flag_zero_2 EVENT_FLAG_27, .ows_e4bd
  2160.     script_jump .ows_e4c1
  2161. ; 0xe4bd
  2162.  
  2163. .ows_e4bd
  2164.     print_npc_text Text0632
  2165.     quit_script_fully
  2166. ; 0xe4c1
  2167.  
  2168. .ows_e4c1
  2169.     jump_if_flag_nonzero_2 EVENT_FLAG_0C, Script_LostToIsaac.ows_e503
  2170.     jump_if_flag_zero_2 EVENT_FLAG_28, NULL
  2171.     print_variable_npc_text Text0633, Text0634
  2172.     max_out_flag_value EVENT_FLAG_28
  2173.     ask_question_jump Text0635, .ows_e4d9
  2174.     print_npc_text Text0636
  2175.     quit_script_fully
  2176. ; 0xe4d9
  2177.  
  2178. .ows_e4d9
  2179.     print_npc_text Text0637
  2180.     start_duel PRIZES_6, ZAPPING_SELFDESTRUCT_DECK_ID, MUSIC_DUEL_THEME_2
  2181.     quit_script_fully
  2182. ; 0xe4e1
  2183.  
  2184. Script_BeatIsaac: ; e4e1 (3:64e1)
  2185.     start_script
  2186.     jump_if_flag_nonzero_2 EVENT_FLAG_0C, Script_LostToIsaac.ows_e517
  2187.     print_npc_text Text0638
  2188.     max_out_flag_value EVENT_FLAG_0C
  2189.     try_give_medal_pc_packs
  2190.     show_medal_received_screen EVENT_FLAG_0C
  2191.     record_master_win $04
  2192.     print_npc_text Text0639
  2193.     give_booster_packs BOOSTER_MYSTERY_LIGHTNING_COLORLESS, BOOSTER_MYSTERY_LIGHTNING_COLORLESS, NO_BOOSTER
  2194.     print_npc_text Text063a
  2195.     quit_script_fully
  2196. ; 0xe4fb
  2197.  
  2198. Script_LostToIsaac: ; e4fb (3:64fb)
  2199.     start_script
  2200.     jump_if_flag_nonzero_2 EVENT_FLAG_0C, .ows_e522
  2201.     print_text_quit_fully Text063b
  2202. ; 0xe503
  2203.  
  2204. .ows_e503
  2205.     print_npc_text Text063c
  2206.     ask_question_jump Text0635, .ows_e50f
  2207.     print_npc_text Text063d
  2208.     quit_script_fully
  2209. ; 0xe50f
  2210.  
  2211. .ows_e50f
  2212.     print_npc_text Text063e
  2213.     start_duel PRIZES_6, ZAPPING_SELFDESTRUCT_DECK_ID, MUSIC_DUEL_THEME_2
  2214.     quit_script_fully
  2215. ; 0xe517
  2216.  
  2217. .ows_e517
  2218.     print_npc_text Text063f
  2219.     give_booster_packs BOOSTER_MYSTERY_LIGHTNING_COLORLESS, BOOSTER_MYSTERY_LIGHTNING_COLORLESS, NO_BOOSTER
  2220.     print_npc_text Text0640
  2221.     quit_script_fully
  2222. ; 0xe522
  2223.  
  2224. .ows_e522
  2225.     print_text_quit_fully Text0641
  2226. ; 0xe525
  2227.  
  2228. ; gap from 0xe525 to 0xe566
  2229.  
  2230. Script_Clerk5: ; e566 (3:6566)
  2231.     start_script
  2232.     print_text_quit_fully Text06d7
  2233. ; 0xe56a
  2234.  
  2235. ; gap from 0xe56a to 0xe573
  2236.  
  2237. Script_Michael: ; e573 (3:6573)
  2238.     start_script
  2239.     jump_if_flag_not_less_than EVENT_FLAG_11, $08, Script_de81
  2240.     jump_if_flag_equal EVENT_FLAG_11, $01, NULL
  2241.     print_variable_npc_text Text06d8, Text06d9
  2242.     script_set_flag_value EVENT_FLAG_11, $02
  2243.     ask_question_jump Text06da, .ows_e58f
  2244.     print_npc_text Text06db
  2245.     quit_script_fully
  2246. ; 0xe58f
  2247.  
  2248. .ows_e58f
  2249.     print_npc_text Text06dc
  2250.     start_duel PRIZES_4, HEATED_BATTLE_DECK_ID, MUSIC_DUEL_THEME_1
  2251.     quit_script_fully
  2252. ; 0xe597
  2253.  
  2254. Script_BeatMichaelInGrassClubEntrance: ; e597 (3:6597)
  2255.     start_script
  2256.     script_set_flag_value EVENT_FLAG_11, $08
  2257.     print_npc_text Text06dd
  2258.     give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
  2259.     print_npc_text Text06de
  2260.     close_text_box
  2261.     move_active_npc_by_direction NPCMovementTable_e5af
  2262.     unload_active_npc
  2263.     quit_script_fully
  2264. ; 0xe5ab
  2265.  
  2266. Script_LostToMichaelInGrassClubEntrance: ; e5ab (3:65ab)
  2267.     start_script
  2268.     print_text_quit_fully Text06df
  2269. ; 0xe5af
  2270.  
  2271. NPCMovementTable_e5af: ; e5af (3:65af)
  2272.     dw NPCMovement_e5b7
  2273.     dw NPCMovement_e5b7
  2274.     dw NPCMovement_e5b7
  2275.     dw NPCMovement_e5bf
  2276.  
  2277. NPCMovement_e5b7: ; e5b7 (3:65b7)
  2278.     db WEST
  2279.     db WEST
  2280.     db SOUTH
  2281.     db SOUTH
  2282.     db SOUTH
  2283.     db SOUTH
  2284.     db SOUTH
  2285.     db $ff
  2286.  
  2287. NPCMovement_e5bf: ; e5bf (3:65bf)
  2288.     db SOUTH
  2289.     db WEST
  2290.     db WEST
  2291.     db $fe, -9
  2292.  
  2293. ; gap from 0xe5c4 to 0xe5d2
  2294.  
  2295. Script_Brittany: ; e5d2 (3:65d2)
  2296.     start_script
  2297.     jump_if_flag_less_than EVENT_FLAG_35, $01, NULL
  2298.     print_variable_npc_text Text06e0, Text06e1
  2299.     ask_question_jump Text06e2, .start_duel
  2300.     print_npc_text Text06e3
  2301.     quit_script_fully
  2302. ; 0xe5e6
  2303.  
  2304. .start_duel
  2305.     print_npc_text Text06e4
  2306.     start_duel PRIZES_4, ETCETERA_DECK_ID, MUSIC_DUEL_THEME_1
  2307.     quit_script_fully
  2308. ; 0xe5ee
  2309.  
  2310. Script_BeatBrittany: ; e5ee (3:65ee)
  2311.     start_script
  2312.     print_npc_text Text06e5
  2313.     give_booster_packs BOOSTER_MYSTERY_GRASS_COLORLESS, BOOSTER_MYSTERY_GRASS_COLORLESS, NO_BOOSTER
  2314.     jump_if_flag_less_than EVENT_FLAG_35, $02, NULL
  2315.     print_variable_npc_text Text06e6, Text06e7
  2316.     max_out_flag_value EVENT_BEAT_BRITTANY
  2317.     jump_if_flag_not_less_than EVENT_FLAG_35, $02, .quit
  2318.     jump_if_flag_zero_2 EVENT_FLAG_3A, .quit
  2319.     jump_if_flag_zero_2 EVENT_FLAG_3B, .quit
  2320.     script_set_flag_value EVENT_FLAG_35, $01
  2321.     max_out_flag_value EVENT_FLAG_1E
  2322.     print_npc_text Text06e8
  2323. .quit
  2324.     quit_script_fully
  2325. ; 0xe618
  2326.  
  2327. Script_LostToBrittany: ; e618 (3:6618)
  2328.     start_script
  2329.     print_text_quit_fully Text06e9
  2330. ; 0xe61c
  2331.  
  2332. Script_e61c: ; e61c (3:661c)
  2333.     print_text_quit_fully Text06ea
  2334. ; 0xe61f
  2335.  
  2336. Script_Lass2: ; e61f (3:661f)
  2337.     start_script
  2338.     jump_if_flag_nonzero_2 EVENT_FLAG_04, Script_e61c
  2339.     jump_if_flag_not_less_than EVENT_FLAG_37, $06, Script_e61c
  2340.     jump_if_flag_not_less_than EVENT_FLAG_37, $04, .ows_e6a1
  2341.     jump_if_flag_not_less_than EVENT_FLAG_37, $02, .ows_e66a
  2342.     jump_if_flag_equal EVENT_FLAG_37, $00, NULL
  2343.     print_variable_npc_text Text06eb, Text06ec
  2344.     script_set_flag_value EVENT_FLAG_37, $01
  2345.     ask_question_jump Text06ed, .ows_e648
  2346.     print_text_quit_fully Text06ee
  2347. ; 0xe648
  2348.  
  2349. .ows_e648
  2350.     jump_if_card_owned ODDISH, .ows_e64f
  2351.     print_text_quit_fully Text06ef
  2352. ; 0xe64f
  2353.  
  2354. .ows_e64f
  2355.     jump_if_card_in_collection ODDISH, .ows_e656
  2356.     print_text_quit_fully Text06f0
  2357. ; 0xe656
  2358.  
  2359. .ows_e656
  2360.     max_out_flag_value EVENT_FLAG_04
  2361.     script_set_flag_value EVENT_FLAG_37, $02
  2362.     print_npc_text Text06f1
  2363.     print_text Text06f2
  2364.     take_card ODDISH
  2365.     give_card VILEPLUME
  2366.     show_card_received_screen VILEPLUME
  2367.     print_text_quit_fully Text06f3
  2368. ; 0xe66a
  2369.  
  2370. .ows_e66a
  2371.     jump_if_flag_equal EVENT_FLAG_37, $02, NULL
  2372.     print_variable_npc_text Text06f4, Text06f5
  2373.     script_set_flag_value EVENT_FLAG_37, $03
  2374.     ask_question_jump Text06ed, .ows_e67f
  2375.     print_text_quit_fully Text06f6
  2376. ; 0xe67f
  2377.  
  2378. .ows_e67f
  2379.     jump_if_card_owned CLEFAIRY, .ows_e686
  2380.     print_text_quit_fully Text06f7
  2381. ; 0xe686
  2382.  
  2383. .ows_e686
  2384.     jump_if_card_in_collection CLEFAIRY, .ows_e68d
  2385.     print_text_quit_fully Text06f8
  2386. ; 0xe68d
  2387.  
  2388. .ows_e68d
  2389.     max_out_flag_value EVENT_FLAG_04
  2390.     script_set_flag_value EVENT_FLAG_37, $04
  2391.     print_npc_text Text06f9
  2392.     print_text Text06fa
  2393.     take_card CLEFAIRY
  2394.     give_card PIKACHU3
  2395.     show_card_received_screen PIKACHU3
  2396.     print_text_quit_fully Text06f3
  2397. ; 0xe6a1
  2398.  
  2399. .ows_e6a1
  2400.     jump_if_flag_equal EVENT_FLAG_37, $04, NULL
  2401.     print_variable_npc_text Text06fb, Text06fc
  2402.     script_set_flag_value EVENT_FLAG_37, $05
  2403.     ask_question_jump Text06ed, .ows_e6b6
  2404.     print_text_quit_fully Text06fd
  2405. ; 0xe6b6
  2406.  
  2407. .ows_e6b6
  2408.     jump_if_card_owned CHARIZARD, .ows_e6bd
  2409.     print_text_quit_fully Text06fe
  2410. ; 0xe6bd
  2411.  
  2412. .ows_e6bd
  2413.     jump_if_card_in_collection CHARIZARD, .ows_e6c4
  2414.     print_text_quit_fully Text06ff
  2415. ; 0xe6c4
  2416.  
  2417. .ows_e6c4
  2418.     max_out_flag_value EVENT_FLAG_04
  2419.     script_set_flag_value EVENT_FLAG_37, $06
  2420.     print_npc_text Text0700
  2421.     print_text Text0701
  2422.     take_card CHARIZARD
  2423.     give_card BLASTOISE
  2424.     show_card_received_screen BLASTOISE
  2425.     print_text_quit_fully Text06f3
  2426. ; 0xe6d8
  2427.  
  2428. Script_Granny2: ; e6d8 (3:66d8)
  2429.     start_script
  2430.     print_text_quit_fully Text0702
  2431. ; 0xe6dc
  2432.  
  2433. ; gap from 0xe6dc to 0xe6e3
  2434.  
  2435. Script_Gal2: ; e6e3 (3:66e3)
  2436.     start_script
  2437.     print_text_quit_fully Text0703
  2438. ; 0xe6e7
  2439.  
  2440. ; gap from 0xe6e7 to 0xe701
  2441.  
  2442. Script_Kristin: ; e701 (3:6701)
  2443.     start_script
  2444.     jump_if_flag_less_than EVENT_FLAG_35, $01, NULL
  2445.     print_variable_npc_text Text0704, Text0705
  2446.     ask_question_jump Text0706, .ows_e714
  2447.     print_text_quit_fully Text0707
  2448. ; 0xe714
  2449.  
  2450. .ows_e714
  2451.     print_npc_text Text0708
  2452.     start_duel PRIZES_4, FLOWER_GARDEN_DECK_ID, MUSIC_DUEL_THEME_1
  2453.     quit_script_fully
  2454. ; 0xe71c
  2455.  
  2456. Script_BeatKristin: ; e71c (3:671c)
  2457.     start_script
  2458.     try_give_pc_pack $06
  2459.     print_npc_text Text0709
  2460.     give_booster_packs BOOSTER_EVOLUTION_GRASS, BOOSTER_EVOLUTION_GRASS, NO_BOOSTER
  2461.     print_npc_text Text070a
  2462.     max_out_flag_value EVENT_FLAG_3A
  2463.     jump_if_flag_not_less_than EVENT_FLAG_35, $02, .ows_e740
  2464.     jump_if_flag_zero_2 EVENT_BEAT_BRITTANY, .ows_e740
  2465.     jump_if_flag_zero_2 EVENT_FLAG_3B, .ows_e740
  2466.     script_set_flag_value EVENT_FLAG_35, $01
  2467.     max_out_flag_value EVENT_FLAG_1E
  2468.     print_npc_text Text070b
  2469. .ows_e740
  2470.     quit_script_fully
  2471. ; 0xe741
  2472.  
  2473. Script_LostToKristin: ; e741 (3:6741)
  2474.     start_script
  2475.     print_text_quit_fully Text070c
  2476. ; 0xe745
  2477.  
  2478. Script_Heather: ; e745 (3:6745)
  2479.     start_script
  2480.     jump_if_flag_less_than EVENT_FLAG_35, $01, NULL
  2481.     print_variable_npc_text Text070d, Text070e
  2482.     ask_question_jump Text070f, .ows_e758
  2483.     print_text_quit_fully Text0710
  2484. ; 0xe758
  2485.  
  2486. .ows_e758
  2487.     print_npc_text Text0711
  2488.     start_duel PRIZES_4, KALEIDOSCOPE_DECK_ID, MUSIC_DUEL_THEME_1
  2489.     quit_script_fully
  2490. ; 0xe760
  2491.  
  2492. Script_BeatHeather: ; e760 (3:6760)
  2493.     start_script
  2494.     jump_if_flag_less_than EVENT_FLAG_35, $02, NULL
  2495.     print_variable_npc_text Text0712, Text0713
  2496.     give_booster_packs BOOSTER_COLOSSEUM_GRASS, BOOSTER_COLOSSEUM_GRASS, NO_BOOSTER
  2497.     print_npc_text Text0714
  2498.     max_out_flag_value EVENT_FLAG_3B
  2499.     jump_if_flag_not_less_than EVENT_FLAG_35, $02, .ows_e789
  2500.     jump_if_flag_zero_2 EVENT_BEAT_BRITTANY, .ows_e789
  2501.     jump_if_flag_zero_2 EVENT_FLAG_3A, .ows_e789
  2502.     script_set_flag_value EVENT_FLAG_35, $01
  2503.     max_out_flag_value EVENT_FLAG_1E
  2504.     print_npc_text Text0715
  2505. .ows_e789
  2506.     quit_script_fully
  2507. ; 0xe78a
  2508.  
  2509. Script_LostToHeather: ; e78a (3:678a)
  2510.     start_script
  2511.     jump_if_flag_less_than EVENT_FLAG_35, $02, NULL
  2512.     print_variable_npc_text Text0716, Text0717
  2513.     quit_script_fully
  2514. ; 0xe796
  2515.  
  2516. ; gap from 0xe796 to 0xe7a6
  2517.  
  2518. Script_e7a6: ; e7a6 (3:67a6)
  2519.     start_script
  2520.     jump_if_flag_zero_2 EVENT_FLAG_08, NULL
  2521.     print_variable_npc_text Text0718, Text0719
  2522.     ask_question_jump Text071a, .ows_e7bf
  2523.     jump_if_flag_zero_2 EVENT_FLAG_08, NULL
  2524.     print_variable_npc_text Text071b, Text071c
  2525.     quit_script_fully
  2526. ; 0xe7bf
  2527.  
  2528. .ows_e7bf
  2529.     jump_if_flag_nonzero_2 EVENT_FLAG_08, .ows_e7cb
  2530.     print_npc_text Text071d
  2531.     start_duel PRIZES_6, FLOWER_POWER_DECK_ID, MUSIC_DUEL_THEME_2
  2532.     quit_script_fully
  2533. ; 0xe7cb
  2534.  
  2535. .ows_e7cb
  2536.     print_npc_text Text071e
  2537.     start_duel PRIZES_6, FLOWER_POWER_DECK_ID, MUSIC_DUEL_THEME_2
  2538.     quit_script_fully
  2539. ; 0xe7d3
  2540.  
  2541. Script_BeatNikki: ; e7d3 (3:67d3)
  2542.     start_script
  2543.     jump_if_flag_zero_2 EVENT_FLAG_08, NULL
  2544.     print_variable_npc_text Text071f, Text0720
  2545.     jump_if_flag_nonzero_2 EVENT_FLAG_08, .ows_e7eb
  2546.     max_out_flag_value EVENT_FLAG_08
  2547.     try_give_medal_pc_packs
  2548.     show_medal_received_screen EVENT_FLAG_08
  2549.     record_master_win $05
  2550.     print_npc_text Text0721
  2551. .ows_e7eb
  2552.     give_booster_packs BOOSTER_LABORATORY_NEUTRAL, BOOSTER_LABORATORY_NEUTRAL, NO_BOOSTER
  2553.     script_jump Script_LostToNikki.ows_e7f3
  2554. ; 0xe7f2
  2555.  
  2556. Script_LostToNikki: ; e7f2 (3:67f2)
  2557.     start_script
  2558. .ows_e7f3
  2559.     print_text_quit_fully Text0722
  2560. ; 0xe7f6
  2561.  
  2562. ; gap from 0xe7f6 to 0xe84c
  2563.  
  2564. Script_Clerk6: ; e84c (3:684c)
  2565.     start_script
  2566.     print_text_quit_fully Text0642
  2567. ; 0xe850
  2568.  
  2569. Script_Lad3: ; e850 (3:6850)
  2570.     start_script
  2571.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  2572.     print_variable_npc_text Text0643, Text0644
  2573.     quit_script_fully
  2574. ; 0xe85b
  2575.  
  2576. ; gap from 0xe85b to 0xe862
  2577.  
  2578. Script_FirstRonaldEncounter: ; e862 (3:6862)
  2579.     start_script
  2580.     max_out_flag_value EVENT_FLAG_4B
  2581.     move_active_npc NPCMovement_e894
  2582.     load_current_map_name_into_txram_slot $00
  2583.     print_npc_text Text0645
  2584.     close_text_box
  2585.     move_player NORTH, 1
  2586.     move_player NORTH, 1
  2587.     print_npc_text Text0646
  2588.     ask_question_jump_default_yes NULL, .ows_e882
  2589.     print_npc_text Text0647
  2590.     script_jump .ows_e885
  2591. ; 0xe882
  2592.  
  2593. .ows_e882
  2594.     print_npc_text Text0648
  2595. .ows_e885
  2596.     print_npc_text Text0649
  2597.     close_text_box
  2598.     set_player_direction WEST
  2599.     move_player EAST, 4
  2600.     move_active_npc NPCMovement_e894
  2601.     unload_active_npc
  2602.     play_default_song
  2603.     quit_script_fully
  2604. ; 0xe894
  2605.  
  2606. NPCMovement_e894: ; e894 (3:6894)
  2607.     db SOUTH
  2608.     db SOUTH
  2609.     db SOUTH
  2610.     db SOUTH
  2611.     db SOUTH
  2612.     db $ff
  2613.  
  2614. ; gap from 0xe89a to 0xe8c0
  2615.  
  2616. Script_FirstRonaldFight: ; e8c0 (3:68c0)
  2617.     start_script
  2618.     move_active_npc NPCMovement_e905
  2619.     do_frames 60
  2620.     move_active_npc NPCMovement_e90d
  2621.     print_npc_text Text064a
  2622.     jump_if_player_coords_match 8, 2, .ows_e8d6
  2623.     set_player_direction WEST
  2624.     move_player WEST, 1
  2625. .ows_e8d6
  2626.     set_player_direction SOUTH
  2627.     move_player SOUTH, 1
  2628.     move_player SOUTH, 1
  2629.     print_npc_text Text064b
  2630.     script_set_flag_value EVENT_FLAG_4C, $01
  2631.     start_duel PRIZES_6, IM_RONALD_DECK_ID, MUSIC_RONALD
  2632.     quit_script_fully
  2633. ; 0xe8e9
  2634.  
  2635. Script_BeatFirstRonaldFight: ; e8e9 (3:68e9)
  2636.     start_script
  2637.     print_npc_text Text064c
  2638.     give_card JIGGLYPUFF1
  2639.     show_card_received_screen JIGGLYPUFF1
  2640.     print_npc_text Text064d
  2641.     script_jump Script_LostToFirstRonaldFight.ows_e8fb
  2642. ; 0xe8f7
  2643.  
  2644. Script_LostToFirstRonaldFight: ; e8f7 (3:68f7)
  2645.     start_script
  2646.     print_npc_text Text064e
  2647. .ows_e8fb
  2648.     script_set_flag_value EVENT_FLAG_4C, $02
  2649.     close_text_box
  2650.     move_active_npc NPCMovement_e90f
  2651.     unload_active_npc
  2652.     play_default_song
  2653.     quit_script_fully
  2654. ; 0xe905
  2655.  
  2656. NPCMovement_e905: ; e905 (3:6905)
  2657.     db EAST
  2658.     db EAST
  2659.     db EAST
  2660.     db EAST
  2661.     db EAST
  2662.     db SOUTH
  2663.     db NORTH | NO_MOVE
  2664.     db $ff
  2665.  
  2666. NPCMovement_e90d: ; e90d (3:690d)
  2667.     db NORTH
  2668.     db $ff
  2669.  
  2670. NPCMovement_e90f: ; e90f (3:690f)
  2671.     db SOUTH
  2672.     db SOUTH
  2673.     db SOUTH
  2674.     db SOUTH
  2675.     db SOUTH
  2676.     db $ff
  2677.  
  2678. ; gap from 0xe915 to 0xe91e
  2679.  
  2680. Script_SecondRonaldFight: ; e91e (3:691e)
  2681.     start_script
  2682.     move_active_npc NPCMovement_e905
  2683.     do_frames 60
  2684.     move_active_npc NPCMovement_e90d
  2685.     print_npc_text Text064f
  2686.     jump_if_player_coords_match 8, 2, .ows_6934
  2687.     set_player_direction WEST
  2688.     move_player WEST, 1
  2689. .ows_6934
  2690.     set_player_direction SOUTH
  2691.     move_player SOUTH, 1
  2692.     move_player SOUTH, 1
  2693.     print_npc_text Text0650
  2694.     script_set_flag_value EVENT_FLAG_4D, $01
  2695.     start_duel PRIZES_6, POWERFUL_RONALD_DECK_ID, MUSIC_RONALD
  2696.     quit_script_fully
  2697. ; 0xe947
  2698.  
  2699. Script_BeatSecondRonaldFight: ; e947 (3:6947)
  2700.     start_script
  2701.     print_npc_text Text0651
  2702.     give_card SUPER_ENERGY_RETRIEVAL
  2703.     show_card_received_screen SUPER_ENERGY_RETRIEVAL
  2704.     print_npc_text Text0652
  2705.     script_jump Script_LostToSecondRonaldFight.ows_e959
  2706. ; 0xe955
  2707.  
  2708. Script_LostToSecondRonaldFight: ; e955 (3:6955)
  2709.     start_script
  2710.     print_npc_text Text0653
  2711. .ows_e959
  2712.     script_set_flag_value EVENT_FLAG_4D, $02
  2713.     close_text_box
  2714.     move_active_npc NPCMovement_e90f
  2715.     unload_active_npc
  2716.     play_default_song
  2717.     quit_script_fully
  2718. ; 0xe963
  2719.  
  2720. ; gap from 0xe963 to 0xe980
  2721.  
  2722. Script_Robert: ; e980 (3:6980)
  2723.     start_script
  2724.     print_npc_text Text0654
  2725.     ask_question_jump Text0655, .ows_e98d
  2726.     print_npc_text Text0656
  2727.     quit_script_fully
  2728. ; 0xe98d
  2729.  
  2730. .ows_e98d
  2731.     print_npc_text Text0657
  2732.     start_duel PRIZES_4, GHOST_DECK_ID, MUSIC_DUEL_THEME_1
  2733.     quit_script_fully
  2734. ; 0xe995
  2735.  
  2736. Script_BeatRobert: ; e995 (3:6995)
  2737.     start_script
  2738.     print_npc_text Text0658
  2739.     give_booster_packs BOOSTER_EVOLUTION_PSYCHIC, BOOSTER_EVOLUTION_PSYCHIC, NO_BOOSTER
  2740.     print_npc_text Text0659
  2741.     quit_script_fully
  2742. ; 0xe9a1
  2743.  
  2744. Script_LostToRobert: ; e9a1 (3:69a1)
  2745.     start_script
  2746.     print_text_quit_fully Text065a
  2747. ; 0xe9a5
  2748.  
  2749. Script_Pappy1: ; e9a5 (3:69a5)
  2750.     start_script
  2751.     jump_if_flag_equal EVENT_FLAG_31, $03, .ows_e9de
  2752.     jump_if_flag_nonzero_2 EVENT_FLAG_0D, .ows_e9cb
  2753.     jump_if_flag_equal EVENT_FLAG_31, $02, .ows_e9c8
  2754.     script_set_flag_value EVENT_FLAG_31, $01
  2755.     print_npc_text Text065b
  2756.     ask_question_jump_default_yes Text065c, .ows_e9c2
  2757.     print_text_quit_fully Text065d
  2758. ; 0xe9c2
  2759.  
  2760. .ows_e9c2
  2761.     script_set_flag_value EVENT_FLAG_31, $02
  2762.     print_text_quit_fully Text065e
  2763. ; 0xe9c8
  2764.  
  2765. .ows_e9c8
  2766.     print_text_quit_fully Text065f
  2767. ; 0xe9cb
  2768.  
  2769. .ows_e9cb
  2770.     jump_if_flag_zero_1 EVENT_FLAG_31, NULL
  2771.     print_variable_npc_text Text0660, Text0661
  2772.     give_card MEWTWO3
  2773.     show_card_received_screen MEWTWO3
  2774.     script_set_flag_value EVENT_FLAG_31, $03
  2775.     print_text_quit_fully Text0662
  2776. ; 0xe9de
  2777.  
  2778. .ows_e9de
  2779.     print_text_quit_fully Text0663
  2780. ; 0xe9e1
  2781.  
  2782. ; gap from 0xe9e1 to 0xea02
  2783.  
  2784. Script_ea02: ; ea02 (3:6a02)
  2785.     start_script
  2786.     move_active_npc_by_direction NPCMovementTable_ea1a
  2787.     max_out_flag_value EVENT_FLAG_32
  2788.     print_npc_text Text0664
  2789.     close_text_box
  2790.     set_player_direction SOUTH
  2791.     move_player NORTH, 4
  2792.     move_player NORTH, 1
  2793.     move_active_npc_by_direction NPCMovementTable_ea22
  2794.     unload_active_npc
  2795.     play_default_song
  2796.     quit_script_fully
  2797. ; 0xea1a
  2798.  
  2799. NPCMovementTable_ea1a: ; ea1a (3:6a1a)
  2800.     dw NPCMovement_ea2a
  2801.     dw NPCMovement_ea2a
  2802.     dw NPCMovement_ea2a
  2803.     dw NPCMovement_ea2a
  2804.  
  2805. NPCMovementTable_ea22: ; ea22 (3:6a22)
  2806.     dw NPCMovement_ea2c
  2807.     dw NPCMovement_ea2c
  2808.     dw NPCMovement_ea2c
  2809.     dw NPCMovement_ea2c
  2810.  
  2811. NPCMovement_ea2a: ; ea2a (3:6a2a)
  2812.     db EAST
  2813.     db EAST
  2814. NPCMovement_ea2c: ; ea2c (3:6a2c)
  2815.     db EAST
  2816.     db EAST
  2817.     db EAST
  2818.     db $ff
  2819.  
  2820. Script_Gal3: ; ea30 (3:6a30)
  2821.     start_script
  2822.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  2823.     print_variable_npc_text Text0665, Text0666
  2824.     quit_script_fully
  2825. ; 0xea3b
  2826.  
  2827. Script_Chap4: ; ea3b (3:6a3b)
  2828.     start_script
  2829.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  2830.     print_variable_npc_text Text0667, Text0668
  2831.     quit_script_fully
  2832. ; 0xea46
  2833.  
  2834. ; gap from 0xea46 to 0xea60
  2835.  
  2836. Script_Daniel: ; ea60 (3:6a60)
  2837.     start_script
  2838.     try_give_medal_pc_packs
  2839.     jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $04, .ows_ea7e
  2840.     jump_if_flag_nonzero_2 EVENT_FLAG_2F, .ows_ea70
  2841.     max_out_flag_value EVENT_FLAG_2F
  2842.     print_npc_text Text0669
  2843. .ows_ea70
  2844.     jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $01, .ows_ea78
  2845.     print_text_quit_fully Text066a
  2846. ; 0xea78
  2847.  
  2848. .ows_ea78
  2849.     print_npc_text Text066b
  2850.     script_jump .ows_ea81
  2851. ; 0xea7e
  2852.  
  2853. .ows_ea7e
  2854.     print_npc_text Text066c
  2855. .ows_ea81
  2856.     ask_question_jump Text066d, .ows_ea8a
  2857.     print_npc_text Text066e
  2858.     quit_script_fully
  2859. ; 0xea8a
  2860.  
  2861. .ows_ea8a
  2862.     print_npc_text Text066f
  2863.     start_duel PRIZES_4, NAP_TIME_DECK_ID, MUSIC_DUEL_THEME_1
  2864.     quit_script_fully
  2865. ; 0xea92
  2866.  
  2867. Script_BeatDaniel: ; ea92 (3:6a92)
  2868.     start_script
  2869.     print_npc_text Text0670
  2870.     give_booster_packs BOOSTER_EVOLUTION_PSYCHIC, BOOSTER_EVOLUTION_PSYCHIC, NO_BOOSTER
  2871.     print_npc_text Text0671
  2872.     quit_script_fully
  2873. ; 0xea9e
  2874.  
  2875. Script_LostToDaniel: ; ea9e (3:6a9e)
  2876.     start_script
  2877.     print_text_quit_fully Text0672
  2878. ; 0xeaa2
  2879.  
  2880. Script_Stephanie: ; eaa2 (3:6aa2)
  2881.     start_script
  2882.     try_give_medal_pc_packs
  2883.     jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $02, .ows_eaac
  2884.     print_text_quit_fully Text0673
  2885. ; 0xeaac
  2886.  
  2887. .ows_eaac
  2888.     print_npc_text Text0674
  2889.     ask_question_jump Text0675, .ows_eab8
  2890.     print_npc_text Text0676
  2891.     quit_script_fully
  2892. ; 0xeab8
  2893.  
  2894. .ows_eab8
  2895.     print_npc_text Text0677
  2896.     start_duel PRIZES_4, STRANGE_POWER_DECK_ID, MUSIC_DUEL_THEME_1
  2897.     quit_script_fully
  2898. ; 0xeac0
  2899.  
  2900. Script_BeatStephanie: ; eac0 (3:6ac0)
  2901.     start_script
  2902.     print_npc_text Text0678
  2903.     give_booster_packs BOOSTER_LABORATORY_PSYCHIC, BOOSTER_LABORATORY_PSYCHIC, NO_BOOSTER
  2904.     print_npc_text Text0679
  2905.     quit_script_fully
  2906. ; 0xeacc
  2907.  
  2908. Script_LostToStephanie: ; eacc (3:6acc)
  2909.     start_script
  2910.     print_text_quit_fully Text067a
  2911. ; 0xead0
  2912.  
  2913. ; gap from 0xead0 to 0xeadf
  2914.  
  2915. Script_Murray: ; eadf (3:6adf)
  2916.     start_script
  2917.     try_give_pc_pack $07
  2918.     try_give_medal_pc_packs
  2919.     jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $04, .ows_eaef
  2920.     print_npc_text Text067b
  2921.     print_text Text067c
  2922.     quit_script_fully
  2923. ; 0xeaef
  2924.  
  2925. .ows_eaef
  2926.     jump_if_flag_nonzero_2 EVENT_FLAG_0D, Script_LostToMurray.ows_eb31
  2927.     jump_if_flag_zero_2 EVENT_FLAG_30, NULL
  2928.     print_variable_npc_text Text067d, Text067e
  2929.     max_out_flag_value EVENT_FLAG_30
  2930.     ask_question_jump Text067f, .ows_eb07
  2931.     print_npc_text Text0680
  2932.     quit_script_fully
  2933. ; 0xeb07
  2934.  
  2935. .ows_eb07
  2936.     print_npc_text Text0681
  2937.     start_duel PRIZES_6, STRANGE_PSYSHOCK_DECK_ID, MUSIC_DUEL_THEME_2
  2938.     quit_script_fully
  2939. ; 0xeb0f
  2940.  
  2941. Script_BeatMurray: ; eb0f (3:6b0f)
  2942.     start_script
  2943.     jump_if_flag_nonzero_2 EVENT_FLAG_0D, Script_LostToMurray.ows_eb45
  2944.     print_npc_text Text0682
  2945.     max_out_flag_value EVENT_FLAG_0D
  2946.     try_give_medal_pc_packs
  2947.     show_medal_received_screen EVENT_FLAG_0D
  2948.     record_master_win $06
  2949.     print_npc_text Text0683
  2950.     give_booster_packs BOOSTER_LABORATORY_PSYCHIC, BOOSTER_LABORATORY_PSYCHIC, NO_BOOSTER
  2951.     print_npc_text Text0684
  2952.     quit_script_fully
  2953. ; 0xeb29
  2954.  
  2955. Script_LostToMurray: ; eb29 (3:6b29)
  2956.     start_script
  2957.     jump_if_flag_nonzero_2 EVENT_FLAG_0D, .ows_eb50
  2958.     print_text_quit_fully Text0685
  2959. ; 0xeb31
  2960.  
  2961. .ows_eb31
  2962.     print_npc_text Text0686
  2963.     ask_question_jump Text067f, .ows_eb3d
  2964.     print_npc_text Text0687
  2965.     quit_script_fully
  2966. ; 0xeb3d
  2967.  
  2968. .ows_eb3d
  2969.     print_npc_text Text0688
  2970.     start_duel PRIZES_6, STRANGE_PSYSHOCK_DECK_ID, MUSIC_DUEL_THEME_2
  2971.     quit_script_fully
  2972. ; 0xeb45
  2973.  
  2974. .ows_eb45
  2975.     print_npc_text Text0689
  2976.     give_booster_packs BOOSTER_LABORATORY_PSYCHIC, BOOSTER_LABORATORY_PSYCHIC, NO_BOOSTER
  2977.     print_npc_text Text068a
  2978.     quit_script_fully
  2979. ; 0xeb50
  2980.  
  2981. .ows_eb50
  2982.     print_text_quit_fully Text068b
  2983. ; 0xeb53
  2984.  
  2985. Script_Clerk7: ; eb53 (3:6b53)
  2986.     start_script
  2987.     print_text_quit_fully Text0744
  2988. ; 0xeb57
  2989.  
  2990. ; gap from 0xeb57 to 0xeb84
  2991.  
  2992. Script_Lad1: ; eb84 (3:6b84)
  2993.     start_script
  2994.     jump_if_flag_not_less_than EVENT_FLAG_1F, $07, .ows_ebbb
  2995.     jump_if_flag_nonzero_2 EVENT_FLAG_1D, .ows_eb97
  2996.     max_out_flag_value EVENT_FLAG_1C
  2997.     max_out_flag_value EVENT_FLAG_1E
  2998.     max_out_flag_value EVENT_FLAG_38
  2999.     print_text_quit_fully Text0745
  3000. ; 0xeb97
  3001.  
  3002. .ows_eb97
  3003.     jump_if_flag_nonzero_2 EVENT_FLAG_00, .ows_ebb8
  3004.     jump_if_flag_not_less_than EVENT_FLAG_1F, $05, .ows_ebaf
  3005.     jump_if_flag_not_less_than EVENT_FLAG_1F, $03, .ows_ebaa
  3006.     max_out_flag_value EVENT_FLAG_38
  3007.     print_text_quit_fully Text0746
  3008. ; 0xebaa
  3009.  
  3010. .ows_ebaa
  3011.     max_out_flag_value EVENT_FLAG_38
  3012.     print_text_quit_fully Text0747
  3013. ; 0xebaf
  3014.  
  3015. .ows_ebaf
  3016.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_ebb8
  3017.     max_out_flag_value EVENT_FLAG_38
  3018.     print_text_quit_fully Text0748
  3019. ; 0xebb8
  3020.  
  3021. .ows_ebb8
  3022.     print_text_quit_fully Text0749
  3023. ; 0xebbb
  3024.  
  3025. .ows_ebbb
  3026.     script_set_flag_value EVENT_FLAG_1F, $08
  3027.     print_text_quit_fully Text074a
  3028. ; 0xebc1
  3029.  
  3030. Script_Man3: ; ebc1 (3:6bc1)
  3031.     start_script
  3032.     print_text_quit_fully Text074b
  3033. ; 0xebc5
  3034.  
  3035. ; gap from 0xebc5 to 0xebdd
  3036.  
  3037. Script_ebdd: ; ebdd (3:6bdd)
  3038.     start_script
  3039.     print_npc_text Text074c
  3040.     move_active_npc NPCMovement_ebeb
  3041.     print_text_quit_fully Text074d
  3042. ; 0xebe7
  3043.  
  3044. ; gap from 0xebe7 to 0xebeb
  3045.  
  3046. NPCMovement_ebeb: ; ebeb (3:6beb)
  3047.     db WEST | NO_MOVE
  3048.     db $ff
  3049.  
  3050. Script_Specs3: ; ebed (3:6bed)
  3051.     start_script
  3052.     print_text_quit_fully Text074e
  3053. ; 0xebf1
  3054.  
  3055. ; gap from 0xebf1 to 0xec11
  3056.  
  3057. Script_David: ; ec11 (3:6c11)
  3058.     start_script
  3059.     jump_if_flag_zero_1 EVENT_FLAG_1A, NULL
  3060.     print_variable_npc_text Text074f, Text0750
  3061.     script_set_flag_value EVENT_FLAG_1A, $01
  3062.     ask_question_jump Text0751, .ows_ec27
  3063.     print_npc_text Text0752
  3064.     quit_script_fully
  3065. ; 0xec27
  3066.  
  3067. .ows_ec27
  3068.     print_npc_text Text0753
  3069.     start_duel PRIZES_4, LOVELY_NIDORAN_DECK_ID, MUSIC_DUEL_THEME_1
  3070.     quit_script_fully
  3071. ; 0xec2f
  3072.  
  3073. Script_BeatDavid: ; ec2f (3:6c2f)
  3074.     start_script
  3075.     script_set_flag_value EVENT_FLAG_1A, $02
  3076.     print_npc_text Text0754
  3077.     give_booster_packs BOOSTER_MYSTERY_GRASS_COLORLESS, BOOSTER_MYSTERY_GRASS_COLORLESS, NO_BOOSTER
  3078.     print_npc_text Text0755
  3079.     quit_script_fully
  3080. ; 0xec3e
  3081.  
  3082. Script_LostToDavid: ; ec3e (3:6c3e)
  3083.     start_script
  3084.     print_text_quit_fully Text0756
  3085. ; 0xec42
  3086.  
  3087. Script_Erik: ; ec42 (3:6c42)
  3088.     start_script
  3089.     print_npc_text Text0757
  3090.     ask_question_jump Text0758, .ows_ec4f
  3091.     print_npc_text Text0759
  3092.     quit_script_fully
  3093. ; 0xec4f
  3094.  
  3095. .ows_ec4f
  3096.     print_npc_text Text075a
  3097.     start_duel PRIZES_4, POISON_DECK_ID, MUSIC_DUEL_THEME_1
  3098.     quit_script_fully
  3099. ; 0xec57
  3100.  
  3101. Script_BeatErik: ; ec57 (3:6c57)
  3102.     start_script
  3103.     print_npc_text Text075b
  3104.     give_booster_packs BOOSTER_EVOLUTION_GRASS, BOOSTER_EVOLUTION_GRASS, NO_BOOSTER
  3105.     print_npc_text Text075c
  3106.     quit_script_fully
  3107. ; 0xec63
  3108.  
  3109. Script_LostToErik: ; ec63 (3:6c63)
  3110.     start_script
  3111.     print_text_quit_fully Text075d
  3112. ; 0xec67
  3113.  
  3114. Script_Rick: ; ec67 (3:6c67)
  3115.     start_script
  3116.     jump_if_flag_nonzero_2 EVENT_FLAG_09, Script_LostToRick.ows_eca2
  3117.     print_npc_text Text075e
  3118.     ask_question_jump Text075f, .ows_ec78
  3119.     print_npc_text Text0760
  3120.     quit_script_fully
  3121. ; 0xec78
  3122.  
  3123. .ows_ec78
  3124.     print_npc_text Text0761
  3125.     start_duel PRIZES_6, WONDERS_OF_SCIENCE_DECK_ID, MUSIC_DUEL_THEME_2
  3126.     quit_script_fully
  3127. ; 0xec80
  3128.  
  3129. Script_BeatRick: ; ec80 (3:6c80)
  3130.     start_script
  3131.     jump_if_flag_nonzero_2 EVENT_FLAG_09, Script_LostToRick.ows_ecb6
  3132.     print_npc_text Text0762
  3133.     max_out_flag_value EVENT_FLAG_09
  3134.     try_give_medal_pc_packs
  3135.     show_medal_received_screen EVENT_FLAG_09
  3136.     record_master_win $07
  3137.     print_npc_text Text0763
  3138.     give_booster_packs BOOSTER_LABORATORY_GRASS, BOOSTER_LABORATORY_GRASS, NO_BOOSTER
  3139.     print_npc_text Text0764
  3140.     quit_script_fully
  3141. ; 0xec9a
  3142.  
  3143. Script_LostToRick: ; ec9a (3:6c9a)
  3144.     start_script
  3145.     jump_if_flag_nonzero_2 EVENT_FLAG_09, .ows_ecc1
  3146.     print_text_quit_fully Text0765
  3147. ; 0xeca2
  3148.  
  3149. .ows_eca2
  3150.     print_npc_text Text0766
  3151.     ask_question_jump Text075f, .ows_ecae
  3152.     print_npc_text Text0767
  3153.     quit_script_fully
  3154. ; 0xecae
  3155.  
  3156. .ows_ecae
  3157.     print_npc_text Text0768
  3158.     start_duel PRIZES_6, WONDERS_OF_SCIENCE_DECK_ID, MUSIC_DUEL_THEME_2
  3159.     quit_script_fully
  3160. ; 0xecb6
  3161.  
  3162. .ows_ecb6
  3163.     print_npc_text Text0769
  3164.     give_booster_packs BOOSTER_LABORATORY_GRASS, BOOSTER_LABORATORY_GRASS, NO_BOOSTER
  3165.     print_npc_text Text076a
  3166.     quit_script_fully
  3167. ; 0xecc1
  3168.  
  3169. .ows_ecc1
  3170.     print_text_quit_fully Text076b
  3171. ; 0xecc4
  3172.  
  3173. ; gap from 0xecc4 to 0xecdb
  3174.  
  3175. Script_Joseph: ; ecdb (3:6cdb)
  3176.     start_script
  3177.     try_give_pc_pack $08
  3178.     jump_if_flag_nonzero_2 EVENT_FLAG_1B, Script_LostToJoseph.ows_ed24
  3179.     print_npc_text Text076c
  3180.     ask_question_jump Text076d, .ows_ecee
  3181.     print_npc_text Text076e
  3182.     quit_script_fully
  3183. ; 0xecee
  3184.  
  3185. .ows_ecee
  3186.     print_npc_text Text076f
  3187.     start_duel PRIZES_4, FLYIN_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
  3188.     quit_script_fully
  3189. ; 0xecf6
  3190.  
  3191. Script_BeatJoseph: ; ecf6 (3:6cf6)
  3192.     start_script
  3193.     jump_if_flag_nonzero_2 EVENT_FLAG_1B, Script_LostToJoseph.ows_ed37
  3194.     print_npc_text Text0770
  3195.     close_text_box
  3196.     move_active_npc_by_direction NPCMovementTable_ed11
  3197.     set_active_npc_direction WEST
  3198.     max_out_flag_value EVENT_FLAG_1B
  3199.     print_npc_text Text0771
  3200.     give_booster_packs BOOSTER_LABORATORY_GRASS, BOOSTER_LABORATORY_GRASS, NO_BOOSTER
  3201.     print_npc_text Text0772
  3202.     quit_script_fully
  3203. ; 0xed11
  3204.  
  3205. NPCMovementTable_ed11: ; ed11 (3:6d11)
  3206.     dw NPCMovement_ed19
  3207.     dw NPCMovement_ed19
  3208.     dw NPCMovement_ed19
  3209.     dw NPCMovement_ed19
  3210.  
  3211. NPCMovement_ed19: ; ed19 (3:6d19)
  3212.     db EAST
  3213.     db WEST | NO_MOVE
  3214.     db $ff
  3215.  
  3216. Script_LostToJoseph: ; ed1c (3:6d1c)
  3217.     start_script
  3218.     jump_if_flag_nonzero_2 EVENT_FLAG_1B, .ows_ed42
  3219.     print_text_quit_fully Text0773
  3220. ; 0xed24
  3221.  
  3222. .ows_ed24
  3223.     print_npc_text Text0774
  3224.     ask_question_jump Text076d, .ows_ed2f
  3225.     print_text_quit_fully Text076e
  3226. ; 0xed2f
  3227.  
  3228. .ows_ed2f
  3229.     print_npc_text Text0775
  3230.     start_duel PRIZES_4, FLYIN_POKEMON_DECK_ID, MUSIC_DUEL_THEME_1
  3231.     quit_script_fully
  3232. ; 0xed37
  3233.  
  3234. .ows_ed37
  3235.     print_npc_text Text0776
  3236.     give_booster_packs BOOSTER_LABORATORY_GRASS, BOOSTER_LABORATORY_GRASS, NO_BOOSTER
  3237.     print_npc_text Text0777
  3238.     quit_script_fully
  3239. ; 0xed42
  3240.  
  3241. .ows_ed42
  3242.     print_text_quit_fully Text0778
  3243. ; 0xed45
  3244.  
  3245. Script_Clerk8: ; ed45 (3:6d45)
  3246.     start_script
  3247.     print_text_quit_fully Text068c
  3248. ; 0xed49
  3249.  
  3250. ; gap from 0xed49 to 0xed96
  3251.  
  3252. Script_Jessica: ; ed96 (3:6d96)
  3253.     start_script
  3254.     jump_if_flag_not_less_than EVENT_FLAG_20, $08, Script_dead
  3255.     jump_if_flag_equal EVENT_FLAG_20, $01, NULL
  3256.     print_variable_npc_text Text068d, Text068e
  3257.     script_set_flag_value EVENT_FLAG_20, $02
  3258.     ask_question_jump Text068f, .ows_edb2
  3259.     print_npc_text Text0690
  3260.     quit_script_fully
  3261. ; 0xedb2
  3262.  
  3263. .ows_edb2
  3264.     print_npc_text Text0691
  3265.     start_duel PRIZES_4, LOVE_TO_BATTLE_DECK_ID, MUSIC_DUEL_THEME_1
  3266.     quit_script_fully
  3267. ; 0xedba
  3268.  
  3269. Script_BeatJessicaInFireClubLobby: ; edba (3:6dba)
  3270.     start_script
  3271.     script_set_flag_value EVENT_FLAG_20, $08
  3272.     print_npc_text Text0692
  3273.     give_booster_packs BOOSTER_COLOSSEUM_FIGHTING, BOOSTER_COLOSSEUM_FIGHTING, NO_BOOSTER
  3274.     print_npc_text Text0693
  3275.     close_text_box
  3276.     move_active_npc_by_direction NPCMovementTable_edd2
  3277.     unload_active_npc
  3278.     quit_script_fully
  3279. ; 0xedce
  3280.  
  3281. Script_LostToJessicaInFireClubLobby: ; edce (3:6dce)
  3282.     start_script
  3283.     print_text_quit_fully Text0694
  3284. ; 0xedd2
  3285.  
  3286. NPCMovementTable_edd2: ; edd2 (3:6dd2)
  3287.     dw NPCMovement_edda
  3288.     dw NPCMovement_ede4
  3289.     dw NPCMovement_edda
  3290.     dw NPCMovement_edda
  3291.  
  3292. NPCMovement_edda: ; edda (3:6dda)
  3293.     db EAST
  3294.     db NORTH
  3295.     db EAST
  3296.     db EAST
  3297.     db EAST
  3298.     db EAST
  3299.     db EAST
  3300.     db EAST
  3301.     db EAST
  3302.     db $ff
  3303.  
  3304. NPCMovement_ede4: ; ede4 (3:6de4)
  3305.     db NORTH
  3306.     db EAST
  3307.     db $fe, -11
  3308.  
  3309. Script_Chap3: ; ede8 (3:6de8)
  3310.     start_script
  3311.     jump_if_flag_not_less_than EVENT_FLAG_1F, $07, .ows_ee1f
  3312.     jump_if_flag_nonzero_2 EVENT_FLAG_1D, .ows_edfb
  3313.     max_out_flag_value EVENT_FLAG_1C
  3314.     max_out_flag_value EVENT_FLAG_1E
  3315.     max_out_flag_value EVENT_FLAG_38
  3316.     print_text_quit_fully Text0695
  3317. ; 0xedfb
  3318.  
  3319. .ows_edfb
  3320.     jump_if_flag_nonzero_2 EVENT_FLAG_00, .ows_ee1c
  3321.     jump_if_flag_not_less_than EVENT_FLAG_1F, $05, .ows_ee13
  3322.     jump_if_flag_not_less_than EVENT_FLAG_1F, $03, .ows_ee0e
  3323.     max_out_flag_value EVENT_FLAG_38
  3324.     print_text_quit_fully Text0696
  3325. ; 0xee0e
  3326.  
  3327. .ows_ee0e
  3328.     max_out_flag_value EVENT_FLAG_38
  3329.     print_text_quit_fully Text0697
  3330. ; 0xee13
  3331.  
  3332. .ows_ee13
  3333.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_ee1c
  3334.     max_out_flag_value EVENT_FLAG_38
  3335.     print_text_quit_fully Text0698
  3336. ; 0xee1c
  3337.  
  3338. .ows_ee1c
  3339.     print_text_quit_fully Text0699
  3340. ; 0xee1f
  3341.  
  3342. .ows_ee1f
  3343.     script_set_flag_value EVENT_FLAG_1F, $08
  3344.     print_text_quit_fully Text069a
  3345. ; 0xee25
  3346.  
  3347. ; gap from 0xee25 to 0xee2c
  3348.  
  3349. Script_Lad2: ; ee2c (3:6e2c)
  3350.     start_script
  3351.     try_give_medal_pc_packs
  3352.     jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $03, .ows_ee36
  3353.     print_text_quit_fully Text069b
  3354. ; 0xee36
  3355.  
  3356. .ows_ee36
  3357.     print_npc_text Text069c
  3358.     ask_question_jump Text069d, .ows_ee4a
  3359.     print_npc_text Text069e
  3360.     script_set_flag_value EVENT_FLAG_21, $02
  3361.     close_text_box
  3362.     move_active_npc_by_direction NPCMovementTable_ee61
  3363.     unload_active_npc
  3364.     quit_script_fully
  3365. ; 0xee4a
  3366.  
  3367. .ows_ee4a
  3368.     jump_if_any_energy_cards_in_collection .ows_ee51
  3369.     print_npc_text Text069f
  3370.     quit_script_fully
  3371. ; 0xee51
  3372.  
  3373. .ows_ee51
  3374.     remove_all_energy_cards_from_collection
  3375.     print_text Text06a0
  3376.     print_npc_text Text06a1
  3377.     script_set_flag_value EVENT_FLAG_21, $01
  3378.     close_text_box
  3379.     move_active_npc_by_direction NPCMovementTable_ee61
  3380.     unload_active_npc
  3381.     quit_script_fully
  3382. ; 0xee61
  3383.  
  3384. NPCMovementTable_ee61: ; ee61 (3:6e61)
  3385.     dw NPCMovement_ee69
  3386.     dw NPCMovement_ee72
  3387.     dw NPCMovement_ee69
  3388.     dw NPCMovement_ee69
  3389.  
  3390. NPCMovement_ee69: ; ee69 (3:6e69)
  3391.     db EAST
  3392.     db SOUTH
  3393.     db SOUTH
  3394.     db SOUTH
  3395.     db EAST
  3396.     db EAST
  3397.     db EAST
  3398.     db EAST
  3399.     db $ff
  3400.  
  3401. NPCMovement_ee72: ; ee72 (3:6e72)
  3402.     db SOUTH
  3403.     db EAST
  3404.     db $fe, -10
  3405.  
  3406. Script_ee76: ; ee76 (3:6e76)
  3407.     start_script
  3408.     jump_if_flag_equal EVENT_FLAG_21, $01, .ows_ee7d
  3409.     quit_script_fully
  3410. ; 0xee7d
  3411.  
  3412. .ows_ee7d
  3413.     script_set_flag_value EVENT_FLAG_21, $02
  3414.     print_text FoundLv9SlowpokeText
  3415.     give_card SLOWPOKE1
  3416.     show_card_received_screen SLOWPOKE1
  3417.     quit_script_fully
  3418. ; 0xee88
  3419.  
  3420. Script_Mania: ; ee88 (3:6e88)
  3421.     start_script
  3422.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  3423.     print_variable_npc_text Text06a3, Text06a4
  3424.     quit_script_fully
  3425. ; 0xee93
  3426.  
  3427. ; gap from 0xee93 to 0xeeb3
  3428.  
  3429. Script_John: ; eeb3 (3:6eb3)
  3430.     start_script
  3431.     print_npc_text Text06a5
  3432.     ask_question_jump Text06a6, .ows_eec0
  3433.     print_npc_text Text06a7
  3434.     quit_script_fully
  3435. ; 0xeec0
  3436.  
  3437. .ows_eec0
  3438.     print_npc_text Text06a8
  3439.     start_duel PRIZES_4, ANGER_DECK_ID, MUSIC_DUEL_THEME_1
  3440.     quit_script_fully
  3441. ; 0xeec8
  3442.  
  3443. Script_BeatJohn: ; eec8 (3:6ec8)
  3444.     start_script
  3445.     print_npc_text Text06a9
  3446.     give_booster_packs BOOSTER_EVOLUTION_FIRE, BOOSTER_EVOLUTION_FIRE, NO_BOOSTER
  3447.     print_npc_text Text06aa
  3448.     quit_script_fully
  3449. ; 0xeed4
  3450.  
  3451. Script_LostToJohn: ; eed4 (3:6ed4)
  3452.     start_script
  3453.     print_text_quit_fully Text06ab
  3454. ; 0xeed8
  3455.  
  3456. Script_Adam: ; eed8 (3:6ed8)
  3457.     start_script
  3458.     print_npc_text Text06ac
  3459.     ask_question_jump Text06ad, .ows_eee5
  3460.     print_npc_text Text06ae
  3461.     quit_script_fully
  3462. ; 0xeee5
  3463.  
  3464. .ows_eee5
  3465.     print_npc_text Text06af
  3466.     start_duel PRIZES_4, FLAMETHROWER_DECK_ID, MUSIC_DUEL_THEME_1
  3467.     quit_script_fully
  3468. ; 0xeeed
  3469.  
  3470. Script_BeatAdam: ; eeed (3:6eed)
  3471.     start_script
  3472.     print_npc_text Text06b0
  3473.     give_booster_packs BOOSTER_COLOSSEUM_FIRE, BOOSTER_COLOSSEUM_FIRE, NO_BOOSTER
  3474.     print_npc_text Text06b1
  3475.     quit_script_fully
  3476. ; 0xeef9
  3477.  
  3478. Script_LostToAdam: ; eef9 (3:6ef9)
  3479.     start_script
  3480.     print_text_quit_fully Text06b2
  3481. ; 0xeefd
  3482.  
  3483. Script_Jonathan: ; eefd (3:6efd)
  3484.     start_script
  3485.     print_npc_text Text06b3
  3486.     ask_question_jump Text06b4, .ows_ef0a
  3487.     print_npc_text Text06b5
  3488.     quit_script_fully
  3489. ; 0xef0a
  3490.  
  3491. .ows_ef0a
  3492.     print_npc_text Text06b6
  3493.     start_duel PRIZES_4, RESHUFFLE_DECK_ID, MUSIC_DUEL_THEME_1
  3494.     quit_script_fully
  3495. ; 0xef12
  3496.  
  3497. Script_BeatJonathan: ; ef12 (3:6f12)
  3498.     start_script
  3499.     print_npc_text Text06b7
  3500.     give_booster_packs BOOSTER_COLOSSEUM_FIRE, BOOSTER_COLOSSEUM_FIRE, NO_BOOSTER
  3501.     print_npc_text Text06b8
  3502.     quit_script_fully
  3503. ; 0xef1e
  3504.  
  3505. Script_LostToJonathan: ; ef1e (3:6f1e)
  3506.     start_script
  3507.     print_text_quit_fully Text06b9
  3508. ; 0xef22
  3509.  
  3510. Script_Ken: ; ef22 (3:6f22)
  3511.     start_script
  3512.     try_give_pc_pack $09
  3513.     jump_if_flag_nonzero_2 EVENT_FLAG_23, .have_300_cards
  3514.     jump_if_enough_cards_owned 300, .have_300_cards
  3515.     jump_if_flag_zero_1 EVENT_FLAG_24, NULL
  3516.     print_variable_npc_text Text06ba, Text06bb
  3517.     script_set_flag_value EVENT_FLAG_24, $01
  3518.     quit_script_fully
  3519. ; 0xef3b
  3520.  
  3521. .have_300_cards
  3522.     max_out_flag_value EVENT_FLAG_23
  3523.     jump_if_flag_nonzero_2 EVENT_FLAG_0A, Script_Ken_AlreadyHaveMedal
  3524.     jump_if_flag_zero_1 EVENT_FLAG_24, NULL
  3525.     print_variable_npc_text Text06bc, Text06bd
  3526.     script_set_flag_value EVENT_FLAG_24, $01
  3527.     ask_question_jump Text06be, .start_duel
  3528.     print_npc_text Text06bf
  3529.     quit_script_fully
  3530. ; 0xef56
  3531.  
  3532. .start_duel
  3533.     print_npc_text Text06c0
  3534.     start_duel PRIZES_6, FIRE_CHARGE_DECK_ID, MUSIC_DUEL_THEME_2
  3535.     quit_script_fully
  3536. ; 0xef5e
  3537.  
  3538. Script_BeatKen: ; ef5e (3:6f5e)
  3539.     start_script
  3540.     print_npc_text Text06c1
  3541.     jump_if_flag_nonzero_2 EVENT_FLAG_0A, .give_booster_packs
  3542.     max_out_flag_value EVENT_FLAG_0A
  3543.     try_give_medal_pc_packs
  3544.     show_medal_received_screen EVENT_FLAG_0A
  3545.     record_master_win $08
  3546.     print_npc_text Text06c2
  3547. .give_booster_packs
  3548.     give_booster_packs BOOSTER_MYSTERY_NEUTRAL, BOOSTER_MYSTERY_NEUTRAL, NO_BOOSTER
  3549.     print_npc_text Text06c3
  3550.     quit_script_fully
  3551. ; 0xef78
  3552.  
  3553. Script_LostToKen: ; ef78 (3:6f78)
  3554.     start_script
  3555.     jump_if_flag_zero_2 EVENT_FLAG_0A, NULL
  3556.     print_variable_npc_text Text06c4, Text06c5
  3557.     quit_script_fully
  3558. ; 0xef83
  3559.  
  3560. Script_Ken_AlreadyHaveMedal: ; ef83 (3:6f83)
  3561.     print_npc_text Text06c6
  3562.     ask_question_jump Text06be, .start_duel
  3563.     print_text_quit_fully Text06bf
  3564. ; 0xef8e
  3565.  
  3566. .start_duel
  3567.     print_npc_text Text06c7
  3568.     start_duel PRIZES_6, FIRE_CHARGE_DECK_ID, MUSIC_DUEL_THEME_2
  3569.     quit_script_fully
  3570. ; 0xef96
  3571.  
  3572. ; gap from 0xef96 to 0xf025
  3573.  
  3574. Script_Clerk9: ; f025 (3:7025)
  3575.     start_script
  3576.     jump_if_flag_zero_1 EVENT_FLAG_3F, .ows_f066
  3577.     jump_if_flag_equal EVENT_FLAG_41, $07, .ows_f069
  3578.     jump_if_flag_equal EVENT_FLAG_41, $03, .ows_f06f
  3579.     jump_if_flag_equal EVENT_FLAG_41, $02, .ows_f072
  3580.     jump_if_flag_equal EVENT_FLAG_41, $01, .ows_f06c
  3581.     jump_if_flag_equal EVENT_FLAG_40, $07, .ows_f069
  3582.     jump_if_flag_equal EVENT_FLAG_40, $03, .ows_f06f
  3583.     jump_if_flag_equal EVENT_FLAG_40, $02, .ows_f072
  3584.     jump_if_flag_equal EVENT_FLAG_40, $01, .ows_f06c
  3585.     jump_if_flag_equal EVENT_FLAG_3F, $07, .ows_f069
  3586.     jump_if_flag_equal EVENT_FLAG_3F, $03, .ows_f06f
  3587.     jump_if_flag_equal EVENT_FLAG_3F, $02, .ows_f072
  3588.     jump_if_flag_equal EVENT_FLAG_3F, $01, .ows_f06c
  3589. .ows_f066
  3590.     print_text_quit_fully Text050a
  3591. ; 0xf069
  3592.  
  3593. .ows_f069
  3594.     print_text_quit_fully Text050b
  3595. ; 0xf06c
  3596.  
  3597. .ows_f06c
  3598.     print_text_quit_fully Text050c
  3599. ; 0xf06f
  3600.  
  3601. .ows_f06f
  3602.     print_text_quit_fully Text050d
  3603. ; 0xf072
  3604.  
  3605. .ows_f072
  3606.     print_text_quit_fully Text050e
  3607. ; 0xf075
  3608.  
  3609. ; gap from 0xf075 to 0xf09c
  3610.  
  3611. Script_Pappy3: ; f09c (3:709c)
  3612.     start_script
  3613.     print_text_quit_fully Text050f
  3614. ; 0xf0a0
  3615.  
  3616. Script_Gal4: ; f0a0 (3:70a0)
  3617.     start_script
  3618.     print_text_quit_fully Text0510
  3619. ; 0xf0a4
  3620.  
  3621. Script_Champ: ; f0a4 (3:70a4)
  3622.     start_script
  3623.     print_text_quit_fully Text0511
  3624. ; 0xf0a8
  3625.  
  3626. Script_Hood2: ; f0a8 (3:70a8)
  3627.     start_script
  3628.     print_text_quit_fully Text0512
  3629. ; 0xf0ac
  3630.  
  3631. Script_Lass5: ; f0ac (3:70ac)
  3632.     start_script
  3633.     print_text_quit_fully Text0513
  3634. ; 0xf0b0
  3635.  
  3636. Script_Chap5: ; f0b0 (3:70b0)
  3637.     start_script
  3638.     print_text_quit_fully Text0514
  3639. ; 0xf0b4
  3640.  
  3641. ; gap from 0xf0b4 to 0xf166
  3642.  
  3643. Script_f166: ; f166 (3:7166)
  3644.     start_script
  3645.     move_active_npc NPCMovement_f232
  3646.     jump_if_flag_equal EVENT_FLAG_58, $01, .ows_f192
  3647.     jump_if_flag_equal EVENT_FLAG_58, $02, .ows_f1a5
  3648.     jump_if_flag_equal EVENT_FLAG_58, $03, .ows_f1b8
  3649.     jump_if_flag_equal EVENT_FLAG_58, $04, .ows_f1cb
  3650.     jump_if_flag_equal EVENT_FLAG_58, $05, .ows_f1de
  3651.     jump_if_flag_equal EVENT_FLAG_58, $06, .ows_f1f1
  3652.     jump_if_flag_equal EVENT_FLAG_58, $07, .ows_f204
  3653.     jump_if_flag_equal EVENT_FLAG_58, $08, .ows_f217
  3654. .ows_f192
  3655.     print_npc_text Text0515
  3656.     close_text_box
  3657.     move_player WEST, 1
  3658.     move_player WEST, 1
  3659.     move_player WEST, 1
  3660.     print_npc_text Text0516
  3661.     script_jump .ows_f227
  3662. ; 0xf1a5
  3663.  
  3664. .ows_f1a5
  3665.     print_npc_text Text0517
  3666.     close_text_box
  3667.     move_player WEST, 1
  3668.     move_player WEST, 1
  3669.     move_player WEST, 1
  3670.     print_npc_text Text0518
  3671.     script_jump .ows_f227
  3672. ; 0xf1b8
  3673.  
  3674. .ows_f1b8
  3675.     print_npc_text Text0519
  3676.     close_text_box
  3677.     move_player WEST, 1
  3678.     move_player WEST, 1
  3679.     move_player WEST, 1
  3680.     print_npc_text Text051a
  3681.     script_jump .ows_f227
  3682. ; 0xf1cb
  3683.  
  3684. .ows_f1cb
  3685.     print_npc_text Text051b
  3686.     close_text_box
  3687.     move_player WEST, 1
  3688.     move_player WEST, 1
  3689.     move_player WEST, 1
  3690.     print_npc_text Text051c
  3691.     script_jump .ows_f227
  3692. ; 0xf1de
  3693.  
  3694. .ows_f1de
  3695.     print_npc_text Text051d
  3696.     close_text_box
  3697.     move_player WEST, 1
  3698.     move_player WEST, 1
  3699.     move_player WEST, 1
  3700.     print_npc_text Text051e
  3701.     script_jump .ows_f227
  3702. ; 0xf1f1
  3703.  
  3704. .ows_f1f1
  3705.     print_npc_text Text051f
  3706.     close_text_box
  3707.     move_player WEST, 1
  3708.     move_player WEST, 1
  3709.     move_player WEST, 1
  3710.     print_npc_text Text0520
  3711.     script_jump .ows_f227
  3712. ; 0xf204
  3713.  
  3714. .ows_f204
  3715.     print_npc_text Text0521
  3716.     close_text_box
  3717.     move_player WEST, 1
  3718.     move_player WEST, 1
  3719.     move_player WEST, 1
  3720.     print_npc_text Text0522
  3721.     script_jump .ows_f227
  3722. ; 0xf217
  3723.  
  3724. .ows_f217
  3725.     print_npc_text Text0523
  3726.     close_text_box
  3727.     move_player WEST, 1
  3728.     move_player WEST, 1
  3729.     move_player WEST, 1
  3730.     print_npc_text Text0524
  3731. .ows_f227
  3732.     close_text_box
  3733.     set_player_direction SOUTH
  3734.     move_player NORTH, 4
  3735.     move_active_npc NPCMovement_f232
  3736.     unload_active_npc
  3737.     quit_script_fully
  3738. ; 0xf232
  3739.  
  3740. NPCMovement_f232: ; f232 (3:7232)
  3741.     db EAST
  3742.     db EAST
  3743.     db EAST
  3744.     db EAST
  3745.     db EAST
  3746.     db EAST
  3747.     db $ff
  3748.  
  3749. ; gap from 0xf239 to 0xf26c
  3750.  
  3751. Script_Clerk13: ; f26c (3:726c)
  3752.     start_script
  3753.     print_text_quit_fully Text0525
  3754. ; 0xf270
  3755.  
  3756. ; gap from 0xf270 to 0xf283
  3757.  
  3758. Script_Guide: ; f283 (3:7283)
  3759.     start_script
  3760.     jump_if_flag_zero_2 EVENT_FLAG_42, .ows_f28b
  3761.     print_text_quit_fully Text0526
  3762. ; 0xf28b
  3763.  
  3764. .ows_f28b
  3765.     jump_if_flag_zero_1 EVENT_FLAG_3F, .ows_f292
  3766.     print_text_quit_fully Text0527
  3767. ; 0xf292
  3768.  
  3769. .ows_f292
  3770.     print_text_quit_fully Text0528
  3771. ; 0xf295
  3772.  
  3773. Script_Clerk12: ; f295 (3:7295)
  3774.     start_script
  3775.     jump_if_flag_equal EVENT_FLAG_41, $03, .ows_f2c4
  3776.     jump_if_flag_equal EVENT_FLAG_41, $02, .ows_f2c1
  3777.     jump_if_flag_equal EVENT_FLAG_40, $03, .ows_f2c4
  3778.     jump_if_flag_equal EVENT_FLAG_40, $02, .ows_f2c1
  3779.     jump_if_flag_equal EVENT_FLAG_3F, $03, .ows_f2c4
  3780.     jump_if_flag_equal EVENT_FLAG_3F, $02, .ows_f2c1
  3781.     jump_if_flag_equal EVENT_FLAG_44, $02, .ows_f2cd
  3782.     jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f2d3
  3783.     script_jump .ows_f2c7
  3784. ; 0xf2c1
  3785.  
  3786. .ows_f2c1
  3787.     print_text_quit_fully Text0529
  3788. ; 0xf2c4
  3789.  
  3790. .ows_f2c4
  3791.     print_text_quit_fully Text052a
  3792. ; 0xf2c7
  3793.  
  3794. .ows_f2c7
  3795.     print_npc_text Text052b
  3796.     script_jump .ows_f2d6
  3797. ; 0xf2cd
  3798.  
  3799. .ows_f2cd
  3800.     print_npc_text Text052c
  3801.     script_jump .ows_f2d6
  3802. ; 0xf2d3
  3803.  
  3804. .ows_f2d3
  3805.     print_npc_text Text052d
  3806. .ows_f2d6
  3807.     print_npc_text Text052e
  3808.     ask_question_jump Text052f, .ows_f2e1
  3809.     print_text_quit_fully Text0530
  3810. ; 0xf2e1
  3811.  
  3812. .ows_f2e1
  3813.     max_out_flag_value EVENT_FLAG_59
  3814.     print_npc_text Text0531
  3815.     close_text_box
  3816.     move_active_npc NPCMovement_f349
  3817.     jump_if_player_coords_match 8, 18, .ows_f2fa
  3818.     jump_if_player_coords_match 12, 18, .ows_f302
  3819.     move_player NORTH, 2
  3820.     script_jump .ows_f307
  3821. ; 0xf2fa
  3822.  
  3823. .ows_f2fa
  3824.     set_player_direction EAST
  3825.     move_player EAST, 2
  3826.     script_jump .ows_f307
  3827. ; 0xf302
  3828.  
  3829. .ows_f302
  3830.     set_player_direction WEST
  3831.     move_player WEST, 2
  3832. .ows_f307
  3833.     set_player_direction NORTH
  3834.     move_player NORTH, 1
  3835.     move_player NORTH, 1
  3836.     move_player NORTH, 1
  3837.     move_player NORTH, 1
  3838.     move_player NORTH, 1
  3839.     jump_if_flag_nonzero_2 EVENT_FLAG_43, .ows_f33a
  3840.     max_out_flag_value EVENT_FLAG_43
  3841.     move_player NORTH, 1
  3842.     move_player NORTH, 1
  3843.     set_player_direction EAST
  3844.     do_frames 30
  3845.     set_player_direction SOUTH
  3846.     do_frames 20
  3847.     set_player_direction EAST
  3848.     do_frames 20
  3849.     set_player_direction SOUTH
  3850.     do_frames 30
  3851.     move_player SOUTH, 1
  3852.     move_player SOUTH, 1
  3853. .ows_f33a
  3854.     set_player_direction EAST
  3855.     move_player EAST, 1
  3856.     move_active_npc NPCMovement_f34e
  3857.     close_advanced_text_box
  3858.     set_next_npc_and_script NPC_HOST, Script_f353
  3859.     end_script
  3860.     ret
  3861. ; 0xf349
  3862.  
  3863. NPCMovement_f349: ; f349 (3:7349)
  3864.     db NORTH
  3865.     db NORTH
  3866.     db EAST
  3867. NPCMovement_f34c: ; f34c (3:734c)
  3868.     db WEST | NO_MOVE
  3869.     db $ff
  3870.  
  3871. NPCMovement_f34e: ; f34e (3:734e)
  3872.     db WEST
  3873.     db SOUTH
  3874.     db SOUTH
  3875.     db $ff
  3876.  
  3877. ; gap from 0xf352 to 0xf353
  3878.  
  3879. Script_f353: ; f353 (3:7353)
  3880.     start_script
  3881.     do_frames 20
  3882.     move_active_npc NPCMovement_f37d
  3883.     do_frames 20
  3884.     move_active_npc NPCMovement_f390
  3885.     load_active_npc_name_into_txram_slot $00
  3886.     print_npc_text Text0532
  3887.     close_text_box
  3888.     move_active_npc NPCMovement_f37f
  3889.     print_npc_text Text0533
  3890.     close_text_box
  3891.     move_active_npc NPCMovement_f388
  3892.     print_npc_text Text0534
  3893.     close_text_box
  3894.     move_active_npc NPCMovement_f38e
  3895.     print_npc_text Text0535
  3896.     start_challenge_hall_duel PRIZES_4, SAMS_PRACTICE_DECK_ID, MUSIC_STOP
  3897.     quit_script_fully
  3898. ; 0xf37d
  3899.  
  3900. NPCMovement_f37d: ; f37d (3:737d)
  3901.     db EAST | NO_MOVE
  3902.     db $ff
  3903.  
  3904. NPCMovement_f37f: ; f37f (3:737f)
  3905.     db EAST
  3906.     db EAST
  3907.     db SOUTH
  3908.     db $ff
  3909.  
  3910. NPCMovement_f383: ; f383 (3:7383)
  3911.     db NORTH
  3912.     db WEST
  3913.     db WEST
  3914.     db SOUTH | NO_MOVE
  3915.     db $ff
  3916.  
  3917. NPCMovement_f388: ; f388 (3:7388)
  3918.     db NORTH
  3919.     db WEST
  3920.     db WEST
  3921. NPCMovement_f38b: ; f38b (3:738b)
  3922.     db WEST
  3923.     db SOUTH
  3924.     db $ff
  3925.  
  3926. NPCMovement_f38e: ; f38e (3:738e)
  3927.     db NORTH
  3928.     db EAST
  3929. NPCMovement_f390: ; f390 (3:7390)
  3930.     db SOUTH | NO_MOVE
  3931.     db $ff
  3932.  
  3933. Script_LostAtChallengeHall: ; f392 (3:7392)
  3934.     start_script
  3935.     do_frames 20
  3936.     move_active_npc NPCMovement_f37d
  3937.     do_frames 20
  3938.     move_active_npc NPCMovement_f390
  3939.     jump_if_flag_equal EVENT_FLAG_45, $02, Script_f410
  3940.     jump_if_flag_equal EVENT_FLAG_45, $03, Script_f410.ows_f41a
  3941.     load_active_npc_name_into_txram_slot $00
  3942.     load_active_npc_name_into_txram_slot $01
  3943.     print_npc_text Text0536
  3944. .ows_f3ae
  3945.     close_text_box
  3946.     move_active_npc NPCMovement_f38b
  3947.     print_npc_text Text0537
  3948.     close_text_box
  3949.     move_active_npc NPCMovement_f38e
  3950.     jump_if_flag_equal EVENT_FLAG_44, $02, .ows_f3ce
  3951.     jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f3d9
  3952.     script_set_flag_value EVENT_FLAG_3F, $03
  3953.     script_set_flag_value EVENT_FLAG_48, $03
  3954.     zero_out_flag_value EVENT_FLAG_51
  3955.     script_jump .ows_f3e2
  3956. ; 0xf3ce
  3957.  
  3958. .ows_f3ce
  3959.     script_set_flag_value EVENT_FLAG_40, $03
  3960.     script_set_flag_value EVENT_FLAG_49, $03
  3961.     zero_out_flag_value EVENT_FLAG_55
  3962.     script_jump .ows_f3e2
  3963. ; 0xf3d9
  3964.  
  3965. .ows_f3d9
  3966.     script_set_flag_value EVENT_FLAG_41, $03
  3967.     script_set_flag_value EVENT_FLAG_4A, $03
  3968.     script_jump .ows_f3e2
  3969. ; 0xf3e2
  3970.  
  3971. .ows_f3e2
  3972.     close_advanced_text_box
  3973.     set_next_npc_and_script NPC_CLERK12, Script_f3e9
  3974.     end_script
  3975.     ret
  3976. ; 0xf3e9
  3977.  
  3978. Script_f3e9: ; f3e9 (3:73e9)
  3979.     start_script
  3980.     move_active_npc NPCMovement_f40a
  3981.     set_player_direction WEST
  3982.     move_player WEST, 1
  3983.     set_player_direction SOUTH
  3984.     move_player SOUTH, 1
  3985.     move_player SOUTH, 1
  3986.     move_player SOUTH, 1
  3987.     move_player SOUTH, 1
  3988.     move_player SOUTH, 1
  3989.     move_player SOUTH, 1
  3990.     move_active_npc NPCMovement_f40d
  3991.     quit_script_fully
  3992. ; 0xf40a
  3993.  
  3994. NPCMovement_f40a: ; f40a (3:740a)
  3995.     db WEST
  3996.     db EAST | NO_MOVE
  3997.     db $ff
  3998.  
  3999. NPCMovement_f40d: ; f40d (3:740d)
  4000.     db EAST
  4001.     db SOUTH | NO_MOVE
  4002.     db $ff
  4003.  
  4004. Script_f410: ; f410 (3:7410)
  4005.     load_active_npc_name_into_txram_slot $00
  4006.     load_active_npc_name_into_txram_slot $01
  4007.     print_npc_text Text0538
  4008.     script_jump Script_LostAtChallengeHall.ows_f3ae
  4009. ; 0xf41a
  4010.  
  4011. .ows_f41a
  4012.     print_npc_text Text0539
  4013.     set_dialog_npc NPC_RONALD1
  4014.     jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f42e
  4015.     jump_if_flag_equal EVENT_FLAG_44, $01, NULL
  4016.     print_variable_npc_text Text053a, Text053b
  4017. .ows_f42e
  4018.     set_dialog_npc NPC_HOST
  4019.     script_jump Script_LostAtChallengeHall.ows_f3ae
  4020. ; 0xf433
  4021.  
  4022. Script_f433: ; f433 (3:7433)
  4023.     start_script
  4024.     do_frames 20
  4025.     move_active_npc NPCMovement_f37d
  4026.     do_frames 20
  4027.     move_active_npc NPCMovement_f390
  4028.     script_jump Script_WonAtChallengeHall.ows_f4a4
  4029. ; 0xf441
  4030.  
  4031. Script_WonAtChallengeHall: ; f441 (3:7441)
  4032.     start_script
  4033.     do_frames 20
  4034.     move_active_npc NPCMovement_f37d
  4035.     do_frames 20
  4036.     move_active_npc NPCMovement_f390
  4037.     jump_if_flag_equal EVENT_FLAG_45, $03, Script_f4db
  4038.     jump_if_flag_equal EVENT_FLAG_45, $02, .ows_f456
  4039. .ows_f456
  4040.     jump_if_flag_equal EVENT_FLAG_45, $01, NULL
  4041.     print_variable_npc_text Text053c, Text053d
  4042.     move_active_npc NPCMovement_f37f
  4043.     load_active_npc_name_into_txram_slot $00
  4044.     print_npc_text Text053e
  4045.     close_text_box
  4046.     move_challenge_hall_npc NPCMovement_f4c8
  4047.     unload_challenge_hall_npc
  4048.     print_npc_text Text053f
  4049.     close_text_box
  4050.     pick_challenge_hall_opponent
  4051.     set_challenge_hall_npc_coords 20, 20
  4052.     move_challenge_hall_npc NPCMovement_f4d0
  4053.     load_active_npc_name_into_txram_slot $00
  4054.     jump_if_flag_equal EVENT_FLAG_45, $02, NULL
  4055.     print_variable_npc_text Text0540, Text0541
  4056.     move_active_npc NPCMovement_f383
  4057.     jump_if_flag_equal EVENT_FLAG_45, $02, .ows_f4a4
  4058.     jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f4a1
  4059.     close_text_box
  4060.     set_dialog_npc NPC_RONALD1
  4061.     jump_if_flag_equal EVENT_FLAG_44, $01, NULL
  4062.     print_variable_npc_text Text0542, Text0543
  4063.     set_dialog_npc NPC_HOST
  4064.     close_text_box
  4065. .ows_f4a1
  4066.     print_npc_text Text0544
  4067. .ows_f4a4
  4068.     zero_out_flag_value EVENT_FLAG_47
  4069.     print_npc_text Text0545
  4070.     ask_question_jump_default_yes Text0546, .ows_f4bd
  4071.     jump_if_flag_equal EVENT_FLAG_45, $02, NULL
  4072.     print_variable_npc_text Text0547, Text0548
  4073.     start_challenge_hall_duel PRIZES_4, SAMS_PRACTICE_DECK_ID, MUSIC_STOP
  4074.     quit_script_fully
  4075. ; 0xf4bd
  4076.  
  4077. .ows_f4bd
  4078.     print_npc_text Text0549
  4079.     close_text_box
  4080.     max_out_flag_value EVENT_FLAG_47
  4081.     open_menu
  4082.     close_text_box
  4083.     script_jump .ows_f4a4
  4084. ; 0xf4c8
  4085.  
  4086. NPCMovement_f4c8: ; f4c8 (3:74c8)
  4087.     db EAST
  4088. NPCMovement_f4c9: ; f4c9 (3:74c9)
  4089.     db SOUTH
  4090.     db SOUTH
  4091.     db SOUTH
  4092.     db SOUTH
  4093.     db SOUTH
  4094.     db SOUTH
  4095.     db $ff
  4096.  
  4097. NPCMovement_f4d0: ; f4d0 (3:74d0)
  4098.     db NORTH
  4099.     db NORTH
  4100.     db NORTH
  4101.     db NORTH
  4102.     db NORTH
  4103.     db NORTH
  4104.     db WEST
  4105.     db $ff
  4106.  
  4107. NPCMovement_f4d8: ; f4d8 (3:74d8)
  4108.     db EAST
  4109.     db SOUTH | NO_MOVE
  4110.     db $ff
  4111.  
  4112. Script_f4db: ; f4db (3:74db)
  4113.     print_npc_text Text054a
  4114.     move_active_npc NPCMovement_f37f
  4115.     load_active_npc_name_into_txram_slot $00
  4116.     print_npc_text Text054b
  4117.     close_text_box
  4118.     jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f513
  4119.     set_dialog_npc NPC_RONALD1
  4120.     jump_if_flag_equal EVENT_FLAG_44, $01, NULL
  4121.     print_variable_npc_text Text054c, Text054d
  4122.     move_challenge_hall_npc NPCMovement_f4d8
  4123.     do_frames 40
  4124.     move_challenge_hall_npc NPCMovement_f34c
  4125.     jump_if_flag_equal EVENT_FLAG_44, $01, NULL
  4126.     print_variable_npc_text Text054e, Text054f
  4127.     set_dialog_npc NPC_HOST
  4128.     close_text_box
  4129.     move_challenge_hall_npc NPCMovement_f4c9
  4130.     script_jump .ows_f516
  4131. ; 0xf513
  4132.  
  4133. .ows_f513
  4134.     move_challenge_hall_npc NPCMovement_f4c8
  4135. .ows_f516
  4136.     unload_challenge_hall_npc
  4137.     move_active_npc NPCMovement_f383
  4138.     print_npc_text Text0550
  4139.     close_text_box
  4140.     move_active_npc NPCMovement_f38b
  4141.     pick_challenge_cup_prize_card
  4142.     print_npc_text Text0551
  4143.     give_card VARIABLE_CARD
  4144.     show_card_received_screen VARIABLE_CARD
  4145.     print_npc_text Text0552
  4146.     close_text_box
  4147.     jump_if_flag_equal EVENT_FLAG_44, $02, .ows_f540
  4148.     jump_if_flag_equal EVENT_FLAG_44, $03, .ows_f549
  4149.     script_set_flag_value EVENT_FLAG_3F, $02
  4150.     script_set_flag_value EVENT_FLAG_48, $02
  4151.     script_jump .ows_f552
  4152. ; 0xf540
  4153.  
  4154. .ows_f540
  4155.     script_set_flag_value EVENT_FLAG_40, $02
  4156.     script_set_flag_value EVENT_FLAG_49, $02
  4157.     script_jump .ows_f552
  4158. ; 0xf549
  4159.  
  4160. .ows_f549
  4161.     script_set_flag_value EVENT_FLAG_41, $02
  4162.     script_set_flag_value EVENT_FLAG_4A, $02
  4163.     script_jump .ows_f552
  4164. ; 0xf552
  4165.  
  4166. .ows_f552
  4167.     close_advanced_text_box
  4168.     set_next_npc_and_script NPC_CLERK12, Script_f3e9
  4169.     end_script
  4170.     ret
  4171. ; 0xf559
  4172.  
  4173. ; gap from 0xf559 to 0xf631
  4174.  
  4175. Script_f631: ; f631 (3:7631)
  4176.     start_script
  4177.     print_npc_text Text0508
  4178.     close_advanced_text_box
  4179.     set_next_npc_and_script NPC_RONALD1, .ows_f63c
  4180.     end_script
  4181.     ret
  4182. ; 0xf63c
  4183.  
  4184. .ows_f63c
  4185. ; gap from 0xf63c to 0xf651
  4186.  
  4187. Script_f651: ; f651 (3:7651)
  4188.     start_script
  4189.     jump_if_flag_not_less_than EVENT_MEDAL_COUNT, $07, .ows_f69b
  4190.     jump_if_flag_zero_2 EVENT_FLAG_4B, .ows_f69b
  4191.     jump_if_flag_nonzero_2 EVENT_FLAG_4F, .ows_f69b
  4192.     override_song MUSIC_RONALD
  4193.     max_out_flag_value EVENT_FLAG_4F
  4194.     jump_if_player_coords_match 18, 2, .ows_f66e
  4195.     move_active_npc NPCMovement_f69c
  4196.     script_jump .ows_f671
  4197. ; 0xf66e
  4198.  
  4199. .ows_f66e
  4200.     move_active_npc NPCMovement_f69d
  4201. .ows_f671
  4202.     print_npc_text Text0553
  4203.     close_text_box
  4204.     set_player_direction SOUTH
  4205.     move_player SOUTH, 1
  4206.     print_npc_text Text0554
  4207.     ask_question_jump_default_yes NULL, .ows_f688
  4208.     print_npc_text Text0555
  4209.     script_jump .ows_f695
  4210. ; 0xf688
  4211.  
  4212. .ows_f688
  4213.     jump_if_flag_zero_1 EVENT_MEDAL_COUNT, .ows_f692
  4214.     print_npc_text Text0556
  4215.     script_jump .ows_f695
  4216. ; 0xf692
  4217.  
  4218. .ows_f692
  4219.     print_npc_text Text0557
  4220. .ows_f695
  4221.     close_text_box
  4222.     move_active_npc NPCMovement_f6a6
  4223.     unload_active_npc
  4224.     play_default_song
  4225. .ows_f69b
  4226.     quit_script_fully
  4227. ; 0xf69c
  4228.  
  4229. NPCMovement_f69c: ; f69c (3:769c)
  4230.     db EAST
  4231. NPCMovement_f69d: ; f69d (3:769d)
  4232.     db NORTH
  4233.     db NORTH
  4234.     db NORTH
  4235.     db NORTH
  4236.     db EAST
  4237.     db EAST
  4238.     db NORTH
  4239.     db NORTH
  4240.     db $ff
  4241.  
  4242. NPCMovement_f6a6: ; f6a6 (3:76a6)
  4243.     db WEST
  4244.     db WEST
  4245.     db SOUTH
  4246.     db SOUTH
  4247.     db SOUTH
  4248.     db SOUTH
  4249.     db SOUTH
  4250.     db SOUTH
  4251.     db $ff
  4252.  
  4253. Script_f6af: ; f6af (3:76af)
  4254.     start_script
  4255.     try_give_medal_pc_packs
  4256.     jump_if_flag_equal EVENT_MEDAL_COUNT, $08, .ows_f6b9
  4257.     print_text_quit_fully Text0558
  4258. ; 0xf6b9
  4259.  
  4260. .ows_f6b9
  4261.     print_npc_text Text0559
  4262.     play_sfx SFX_0F
  4263.     replace_map_blocks $00
  4264.     do_frames 30
  4265.     move_player NORTH, 1
  4266.     quit_script_fully
  4267. ; 0xf6c6
  4268.  
  4269. ; gap from 0xf6c6 to 0xf71f
  4270.  
  4271. Script_Courtney: ; f71f (3:771f)
  4272.     start_script
  4273.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4274.     print_variable_npc_text Text055a, Text055b
  4275.     quit_script_fully
  4276. ; 0xf72a
  4277.  
  4278. Script_Steve: ; f72a (3:772a)
  4279.     start_script
  4280.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4281.     print_variable_npc_text Text055c, Text055d
  4282.     quit_script_fully
  4283. ; 0xf735
  4284.  
  4285. Script_Jack: ; f735 (3:7735)
  4286.     start_script
  4287.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4288.     print_variable_npc_text Text055e, Text055f
  4289.     quit_script_fully
  4290. ; 0xf740
  4291.  
  4292. Script_Rod: ; f740 (3:7740)
  4293.     start_script
  4294.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4295.     print_variable_npc_text Text0560, Text0561
  4296.     quit_script_fully
  4297. ; 0xf74b
  4298.  
  4299. ; gap from 0xf74b to 0xf7ed
  4300.  
  4301. Script_f7ed: ; f7ed (3:77ed)
  4302.     jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_f7f9
  4303.     print_npc_text Text0562
  4304. .ows_f7f4
  4305.     close_text_box
  4306.     move_player NORTH, 2
  4307.     quit_script_fully
  4308. ; 0xf7f9
  4309.  
  4310. .ows_f7f9
  4311.     print_npc_text Text0563
  4312.     ask_question_jump Text0564, .ows_f804
  4313.     script_jump .ows_f7f4
  4314. ; 0xf804
  4315.  
  4316. .ows_f804
  4317.     enter_map $0c, POKEMON_DOME_ENTRANCE, 22, 4, NORTH
  4318.     quit_script_fully
  4319. ; 0xf80b
  4320.  
  4321. Script_f80b: ; f80b (3:780b)
  4322.     start_script
  4323.     jump_if_flag_equal EVENT_FLAG_69, $01, .ows_f820
  4324.     jump_if_flag_equal EVENT_FLAG_6A, $01, .ows_f82b
  4325.     jump_if_flag_equal EVENT_FLAG_6B, $01, .ows_f836
  4326.     jump_if_flag_equal EVENT_FLAG_6C, $01, .ows_f841
  4327. .ows_f820
  4328.     close_advanced_text_box
  4329.     set_next_npc_and_script NPC_STEVE, .ows_f827
  4330.     end_script
  4331.     ret
  4332. ; 0xf827
  4333.  
  4334. .ows_f827
  4335.     start_script
  4336.     script_jump Script_BeatCourtney.ows_f996
  4337. ; 0xf82b
  4338.  
  4339. .ows_f82b
  4340.     close_advanced_text_box
  4341.     set_next_npc_and_script NPC_JACK, .ows_f832
  4342.     end_script
  4343.     ret
  4344. ; 0xf832
  4345.  
  4346. .ows_f832
  4347.     start_script
  4348.     script_jump Script_BeatSteve.ows_fa02
  4349. ; 0xf836
  4350.  
  4351. .ows_f836
  4352.     close_advanced_text_box
  4353.     set_next_npc_and_script NPC_ROD, .ows_f83d
  4354.     end_script
  4355.     ret
  4356. ; 0xf83d
  4357.  
  4358. .ows_f83d
  4359.     start_script
  4360.     script_jump Script_BeatJack.ows_fa78
  4361. ; 0xf841
  4362.  
  4363. .ows_f841
  4364.     close_advanced_text_box
  4365.     set_next_npc_and_script NPC_RONALD1, .ows_f848
  4366.     end_script
  4367.     ret
  4368. ; 0xf848
  4369.  
  4370. .ows_f848
  4371.     start_script
  4372.     script_jump Script_BeatRod.ows_fb20
  4373. ; 0xf84c
  4374.  
  4375. Script_f84c: ; f84c (3:784c)
  4376.     start_script
  4377.     jump_if_flag_nonzero_2 EVENT_FLAG_63, Script_f7ed
  4378.     print_npc_text Text0565
  4379.     ask_question_jump Text0566, .ows_f85f
  4380.     print_npc_text Text0567
  4381.     script_jump Script_f7ed.ows_f804
  4382. ; 0xf85f
  4383.  
  4384. .ows_f85f
  4385.     print_npc_text Text0568
  4386.     close_text_box
  4387.     jump_if_player_coords_match 14, 22, .ows_f86f
  4388.     set_player_direction WEST
  4389.     move_player WEST, 1
  4390.     set_player_direction NORTH
  4391. .ows_f86f
  4392.     move_player NORTH, 1
  4393.     move_player NORTH, 1
  4394.     set_player_direction WEST
  4395.     move_player WEST, 1
  4396.     move_player WEST, 1
  4397.     set_player_direction NORTH
  4398.     move_player NORTH, 1
  4399.     move_player NORTH, 1
  4400.     move_player NORTH, 1
  4401.     move_player NORTH, 1
  4402.     set_player_direction EAST
  4403.     move_player EAST, 1
  4404.     move_player EAST, 1
  4405.     set_player_direction NORTH
  4406.     jump_if_flag_zero_2 EVENT_FLAG_64, NULL
  4407.     print_variable_npc_text Text0569, Text056a
  4408.     move_active_npc NPCMovement_fb8c
  4409.     jump_if_flag_nonzero_2 EVENT_FLAG_64, .ows_f8ef
  4410.     print_npc_text Text056b
  4411.     close_advanced_text_box
  4412.     set_next_npc_and_script NPC_COURTNEY, .ows_f8af
  4413.     end_script
  4414.     ret
  4415. ; 0xf8af
  4416.  
  4417. .ows_f8af
  4418.     start_script
  4419.     move_active_npc NPCMovement_fb8e
  4420.     close_advanced_text_box
  4421.     set_next_npc_and_script NPC_ROD, .ows_f8ba
  4422.     end_script
  4423.     ret
  4424. ; 0xf8ba
  4425.  
  4426. .ows_f8ba
  4427.     start_script
  4428.     print_npc_text Text056c
  4429.     close_advanced_text_box
  4430.     set_next_npc_and_script NPC_STEVE, .ows_f8c5
  4431.     end_script
  4432.     ret
  4433. ; 0xf8c5
  4434.  
  4435. .ows_f8c5
  4436.     start_script
  4437.     move_active_npc NPCMovement_fb8e
  4438.     close_advanced_text_box
  4439.     set_next_npc_and_script NPC_ROD, .ows_f8d0
  4440.     end_script
  4441.     ret
  4442. ; 0xf8d0
  4443.  
  4444. .ows_f8d0
  4445.     start_script
  4446.     print_npc_text Text056d
  4447.     close_advanced_text_box
  4448.     set_next_npc_and_script NPC_JACK, .ows_f8db
  4449.     end_script
  4450.     ret
  4451. ; 0xf8db
  4452.  
  4453. .ows_f8db
  4454.     start_script
  4455.     move_active_npc NPCMovement_fb8e
  4456.     close_advanced_text_box
  4457.     set_next_npc_and_script NPC_ROD, .ows_f8e6
  4458.     end_script
  4459.     ret
  4460. ; 0xf8e6
  4461.  
  4462. .ows_f8e6
  4463.     start_script
  4464.     max_out_flag_value EVENT_FLAG_64
  4465.     print_npc_text Text056e
  4466.     script_jump .ows_f8f8
  4467. ; 0xf8ef
  4468.  
  4469. .ows_f8ef
  4470.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4471.     print_variable_npc_text Text056f, Text0570
  4472. .ows_f8f8
  4473.     print_npc_text Text0571
  4474.     close_text_box
  4475.     set_player_direction WEST
  4476.     move_player WEST, 1
  4477.     set_player_direction SOUTH
  4478.     move_player SOUTH, 1
  4479.     move_player SOUTH, 1
  4480.     set_player_direction EAST
  4481.     move_active_npc NPCMovement_fb8d
  4482.     script_set_flag_value EVENT_FLAG_65, $01
  4483.     close_advanced_text_box
  4484.     set_next_npc_and_script NPC_COURTNEY, .ows_f918
  4485.     end_script
  4486.     ret
  4487. ; 0xf918
  4488.  
  4489. .ows_f918
  4490.     start_script
  4491.     try_give_pc_pack $0e
  4492.     script_set_flag_value EVENT_FLAG_68, $01
  4493.     set_dialog_npc NPC_ROD
  4494.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4495.     print_variable_npc_text Text0572, Text0573
  4496.     close_text_box
  4497.     set_dialog_npc NPC_COURTNEY
  4498.     move_active_npc NPCMovement_fba6
  4499.     set_active_npc_direction WEST
  4500.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4501.     print_variable_npc_text Text0574, Text0575
  4502.     start_duel PRIZES_6, LEGENDARY_MOLTRES_DECK_ID, MUSIC_DUEL_THEME_3
  4503.     quit_script_fully
  4504. ; 0xf93f
  4505.  
  4506. Script_LostToCourtney: ; f93f (3:793f)
  4507.     start_script
  4508.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4509.     print_variable_npc_text Text0576, Text0577
  4510.     close_advanced_text_box
  4511.     set_next_npc_and_script NPC_ROD, .ows_f950
  4512.     end_script
  4513.     ret
  4514. ; 0xf950
  4515.  
  4516. .ows_f950
  4517.     start_script
  4518.     move_active_npc NPCMovement_fba1
  4519.     print_npc_text Text0578
  4520.     script_jump Script_f7ed.ows_f804
  4521. ; 0xf95a
  4522.  
  4523. Script_BeatCourtney: ; f95a (3:795a)
  4524.     start_script
  4525.     script_set_flag_value EVENT_FLAG_68, $02
  4526.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4527.     print_variable_npc_text Text0579, Text057a
  4528.     close_text_box
  4529.     move_active_npc NPCMovement_fbb7
  4530.     set_active_npc_direction WEST
  4531.     close_advanced_text_box
  4532.     set_next_npc_and_script NPC_STEVE, .ows_f974
  4533.     end_script
  4534.     ret
  4535. ; 0xf974
  4536.  
  4537. .ows_f974
  4538.     start_script
  4539.     try_give_pc_pack $0f
  4540.     script_set_flag_value EVENT_FLAG_69, $01
  4541.     set_dialog_npc NPC_ROD
  4542.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4543.     print_variable_npc_text Text057b, Text057c
  4544.     close_text_box
  4545.     set_dialog_npc NPC_STEVE
  4546.     move_active_npc NPCMovement_fba4
  4547.     set_active_npc_direction WEST
  4548.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4549.     print_variable_npc_text Text057d, Text057e
  4550. .ows_f996
  4551.     zero_out_flag_value EVENT_FLAG_66
  4552.     set_dialog_npc NPC_ROD
  4553.     print_npc_text Text057f
  4554.     ask_question_jump_default_yes Text0580, .ows_f9af
  4555.     print_npc_text Text0581
  4556.     set_dialog_npc NPC_STEVE
  4557.     print_npc_text Text0582
  4558.     start_duel PRIZES_6, LEGENDARY_ZAPDOS_DECK_ID, MUSIC_DUEL_THEME_3
  4559.     quit_script_fully
  4560. ; 0xf9af
  4561.  
  4562. .ows_f9af
  4563.     close_text_box
  4564.     max_out_flag_value EVENT_FLAG_66
  4565.     open_menu
  4566.     close_text_box
  4567.     script_jump .ows_f996
  4568. ; 0xf9b7
  4569.  
  4570. Script_LostToSteve: ; f9b7 (3:79b7)
  4571.     start_script
  4572.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4573.     print_variable_npc_text Text0583, Text0584
  4574.     close_advanced_text_box
  4575.     set_next_npc_and_script NPC_ROD, Script_LostToCourtney.ows_f950
  4576.     end_script
  4577.     ret
  4578. ; 0xf9c8
  4579.  
  4580. Script_BeatSteve: ; f9c8 (3:79c8)
  4581.     start_script
  4582.     script_set_flag_value EVENT_FLAG_69, $02
  4583.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4584.     print_variable_npc_text Text0585, Text0586
  4585.     close_text_box
  4586.     move_active_npc NPCMovement_fbb8
  4587.     set_active_npc_direction WEST
  4588.     close_advanced_text_box
  4589.     set_next_npc_and_script NPC_JACK, .ows_f9e2
  4590.     end_script
  4591.     ret
  4592. ; 0xf9e2
  4593.  
  4594. .ows_f9e2
  4595.     start_script
  4596.     script_set_flag_value EVENT_FLAG_6A, $01
  4597.     set_dialog_npc NPC_ROD
  4598.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4599.     print_variable_npc_text Text0587, Text0588
  4600.     close_text_box
  4601.     set_dialog_npc NPC_JACK
  4602.     move_active_npc NPCMovement_fbbc
  4603.     set_active_npc_direction WEST
  4604.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4605.     print_variable_npc_text Text0589, Text058a
  4606. .ows_fa02
  4607.     zero_out_flag_value EVENT_FLAG_66
  4608.     set_dialog_npc NPC_ROD
  4609.     print_npc_text Text058b
  4610.     ask_question_jump_default_yes Text058c, .ows_fa1b
  4611.     print_npc_text Text058d
  4612.     set_dialog_npc NPC_JACK
  4613.     print_npc_text Text058e
  4614.     start_duel PRIZES_6, LEGENDARY_ARTICUNO_DECK_ID, MUSIC_DUEL_THEME_3
  4615.     quit_script_fully
  4616. ; 0xfa1b
  4617.  
  4618. .ows_fa1b
  4619.     close_text_box
  4620.     max_out_flag_value EVENT_FLAG_66
  4621.     open_menu
  4622.     close_text_box
  4623.     script_jump .ows_fa02
  4624. ; 0xfa23
  4625.  
  4626. Script_LostToJack: ; fa23 (3:7a23)
  4627.     start_script
  4628.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4629.     print_variable_npc_text Text058f, Text0590
  4630.     close_advanced_text_box
  4631.     set_next_npc_and_script NPC_ROD, Script_LostToCourtney.ows_f950
  4632.     end_script
  4633.     ret
  4634. ; 0xfa34
  4635.  
  4636. Script_BeatJack: ; fa34 (3:7a34)
  4637.     start_script
  4638.     script_set_flag_value EVENT_FLAG_6A, $02
  4639.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4640.     print_variable_npc_text Text0591, Text0592
  4641.     close_text_box
  4642.     move_active_npc NPCMovement_fbc2
  4643.     set_active_npc_direction WEST
  4644.     close_advanced_text_box
  4645.     set_next_npc_and_script NPC_ROD, .ows_fa52
  4646.     move_npc NPC_ROD, NPCMovement_f390
  4647.     end_script
  4648.     ret
  4649. ; 0xfa52
  4650.  
  4651. .ows_fa52
  4652.     start_script
  4653.     script_set_flag_value EVENT_FLAG_6B, $01
  4654.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4655.     print_variable_npc_text Text0593, Text0594
  4656.     close_text_box
  4657.     move_active_npc NPCMovement_fbaf
  4658.     set_active_npc_direction WEST
  4659.     jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_fa75
  4660.     jump_if_flag_zero_2 EVENT_FLAG_67, NULL
  4661.     print_variable_npc_text Text0595, Text0596
  4662.     script_jump .ows_fa78
  4663. ; 0xfa75
  4664.  
  4665. .ows_fa75
  4666.     print_npc_text Text0597
  4667. .ows_fa78
  4668.     zero_out_flag_value EVENT_FLAG_66
  4669.     print_npc_text Text0598
  4670.     ask_question_jump_default_yes Text0599, .ows_fa90
  4671.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4672.     print_variable_npc_text Text059a, Text059b
  4673.     start_duel PRIZES_6, LEGENDARY_DRAGONITE_DECK_ID, MUSIC_DUEL_THEME_3
  4674.     quit_script_fully
  4675. ; 0xfa90
  4676.  
  4677. .ows_fa90
  4678.     close_text_box
  4679.     max_out_flag_value EVENT_FLAG_66
  4680.     open_menu
  4681.     close_text_box
  4682.     script_jump .ows_fa78
  4683. ; 0xfa98
  4684.  
  4685. Script_LostToRod: ; fa98 (3:7a98)
  4686.     start_script
  4687.     print_npc_text Text059c
  4688.     close_text_box
  4689.     move_active_npc NPCMovement_fb9d
  4690.     set_active_npc_direction SOUTH
  4691.     jump_if_flag_zero_2 EVENT_RECEIVED_LEGENDARY_CARD, NULL
  4692.     print_variable_npc_text Text059d, Text059e
  4693.     script_jump Script_f7ed.ows_f804
  4694. ; 0xfaae
  4695.  
  4696. Script_BeatRod: ; faae (3:7aae)
  4697.     start_script
  4698.     script_set_flag_value EVENT_FLAG_6B, $02
  4699.     jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_fad5
  4700.     jump_if_flag_zero_2 EVENT_FLAG_67, NULL
  4701.     print_variable_npc_text Text059f, Text05a0
  4702.     close_text_box
  4703.     move_active_npc NPCMovement_fb90
  4704.     set_active_npc_direction SOUTH
  4705.     jump_if_flag_zero_2 EVENT_FLAG_67, NULL
  4706.     print_variable_npc_text Text05a1, Text05a2
  4707.     close_advanced_text_box
  4708.     set_next_npc_and_script NPC_RONALD1, .ows_fae9
  4709.     end_script
  4710.     ret
  4711. ; 0xfad5
  4712.  
  4713. .ows_fad5
  4714.     print_npc_text Text05a3
  4715.     move_active_npc NPCMovement_fb96
  4716.     set_active_npc_direction SOUTH
  4717.     play_sfx SFX_0F
  4718.     replace_map_blocks $01
  4719.     script_set_flag_value EVENT_FLAG_65, $02
  4720.     max_out_flag_value EVENT_FLAG_63
  4721.     print_text_quit_fully Text05a4
  4722. ; 0xfae9
  4723.  
  4724. .ows_fae9
  4725.     start_script
  4726.     override_song MUSIC_STOP
  4727.     script_set_flag_value EVENT_FLAG_6C, $01
  4728.     play_sfx SFX_0F
  4729.     replace_map_blocks $01
  4730.     move_active_npc NPCMovement_fbd2
  4731.     set_default_song MUSIC_RONALD
  4732.     play_default_song
  4733.     jump_if_flag_nonzero_2 EVENT_FLAG_67, .ows_fb15
  4734.     print_npc_text Text05a5
  4735.     set_dialog_npc NPC_ROD
  4736.     move_npc NPC_ROD, NPCMovement_fb9b
  4737.     print_npc_text Text05a6
  4738.     set_dialog_npc NPC_RONALD1
  4739.     print_npc_text Text05a7
  4740.     move_npc NPC_ROD, NPCMovement_fb99
  4741.     script_jump .ows_fb18
  4742. ; 0xfb15
  4743.  
  4744. .ows_fb15
  4745.     print_npc_text Text05a8
  4746. .ows_fb18
  4747.     close_text_box
  4748.     move_active_npc NPCMovement_fba8
  4749.     set_active_npc_direction WEST
  4750.     max_out_flag_value EVENT_FLAG_67
  4751. .ows_fb20
  4752.     zero_out_flag_value EVENT_FLAG_66
  4753.     set_dialog_npc NPC_ROD
  4754.     print_npc_text Text05a9
  4755.     ask_question_jump_default_yes Text05aa, .ows_fb40
  4756.     print_npc_text Text05ab
  4757.     set_dialog_npc NPC_RONALD1
  4758.     print_npc_text Text05ac
  4759.     set_dialog_npc NPC_ROD
  4760.     print_npc_text Text05ad
  4761.     set_dialog_npc NPC_RONALD1
  4762.     start_duel PRIZES_6, LEGENDARY_RONALD_DECK_ID, MUSIC_DUEL_THEME_3
  4763.     quit_script_fully
  4764. ; 0xfb40
  4765.  
  4766. .ows_fb40
  4767.     close_text_box
  4768.     max_out_flag_value EVENT_FLAG_66
  4769.     open_menu
  4770.     close_text_box
  4771.     script_jump .ows_fb20
  4772. ; 0xfb48
  4773.  
  4774. Script_LostToRonald1InPokemonDome: ; fb48 (3:7b48)
  4775.     start_script
  4776.     print_npc_text Text05ae
  4777.     close_advanced_text_box
  4778.     set_next_npc_and_script NPC_ROD, Script_LostToCourtney.ows_f950
  4779.     end_script
  4780.     ret
  4781. ; 0xfb53
  4782.  
  4783. Script_BeatRonald1InPokemonDome: ; fb53 (3:7b53)
  4784.     start_script
  4785.     script_set_flag_value EVENT_FLAG_6C, $02
  4786.     print_npc_text Text05af
  4787.     set_dialog_npc NPC_ROD
  4788.     print_npc_text Text05b0
  4789.     print_text Text05b1
  4790.     set_dialog_npc NPC_RONALD1
  4791.     print_npc_text Text05b2
  4792.     close_text_box
  4793.     move_active_npc NPCMovement_fbc7
  4794.     unload_active_npc
  4795.     set_default_song MUSIC_HALL_OF_HONOR
  4796.     play_default_song
  4797.     close_advanced_text_box
  4798.     set_next_npc_and_script NPC_ROD, .ows_fb76
  4799.     end_script
  4800.     ret
  4801. ; 0xfb76
  4802.  
  4803. .ows_fb76
  4804.     start_script
  4805.     move_active_npc NPCMovement_fba1
  4806.     set_player_direction NORTH
  4807.     print_npc_text Text05b3
  4808.     move_active_npc NPCMovement_fbb2
  4809.     script_set_flag_value EVENT_FLAG_65, $02
  4810.     max_out_flag_value EVENT_FLAG_63
  4811.     record_master_win $0a
  4812.     print_text_quit_fully Text05b4
  4813. ; 0xfb8c
  4814.  
  4815. NPCMovement_fb8c: ; fb8c (3:7b8c)
  4816.     db EAST
  4817. NPCMovement_fb8d: ; fb8d (3:7b8d)
  4818.     db SOUTH
  4819. NPCMovement_fb8e: ; fb8e (3:7b8e)
  4820.     db SOUTH
  4821.     db $ff
  4822.  
  4823. NPCMovement_fb90: ; fb90 (3:7b90)
  4824.     db NORTH
  4825.     db NORTH
  4826.     db WEST
  4827.     db WEST
  4828.     db SOUTH | NO_MOVE
  4829.     db $ff
  4830.  
  4831. NPCMovement_fb96: ; fb96 (3:7b96)
  4832.     db NORTH
  4833.     db NORTH
  4834.     db WEST
  4835. NPCMovement_fb99: ; fb99 (3:7b99)
  4836.     db SOUTH | NO_MOVE
  4837.     db $ff
  4838.  
  4839. NPCMovement_fb9b: ; fb9b (3:7b9b)
  4840.     db NORTH | NO_MOVE
  4841.     db $ff
  4842.  
  4843. NPCMovement_fb9d: ; fb9d (3:7b9d)
  4844.     db NORTH
  4845.     db NORTH
  4846.     db WEST
  4847.     db WEST
  4848. NPCMovement_fba1: ; fba1 (3:7ba1)
  4849.     db WEST
  4850.     db SOUTH
  4851.     db $ff
  4852.  
  4853. NPCMovement_fba4: ; fba4 (3:7ba4)
  4854.     db WEST
  4855.     db WEST
  4856. NPCMovement_fba6: ; fba6 (3:7ba6)
  4857.     db WEST
  4858.     db SOUTH
  4859. NPCMovement_fba8: ; fba8 (3:7ba8)
  4860.     db SOUTH
  4861.     db SOUTH
  4862.     db EAST
  4863.     db SOUTH
  4864.     db SOUTH
  4865.     db WEST | NO_MOVE
  4866.     db $ff
  4867.  
  4868. NPCMovement_fbaf: ; fbaf (3:7baf)
  4869.     db EAST
  4870.     db $fe, -7
  4871.  
  4872. NPCMovement_fbb2: ; fbb2 (3:7bb2)
  4873.     db NORTH
  4874.     db EAST
  4875.     db EAST
  4876.     db SOUTH | NO_MOVE
  4877.     db $ff
  4878.  
  4879. NPCMovement_fbb7: ; fbb7 (3:7bb7)
  4880.     db NORTH
  4881. NPCMovement_fbb8: ; fbb8 (3:7bb8)
  4882.     db EAST
  4883.     db EAST
  4884.     db WEST | NO_MOVE
  4885.     db $ff
  4886.  
  4887. NPCMovement_fbbc: ; fbbc (3:7bbc)
  4888.     db EAST
  4889.     db EAST
  4890.     db EAST
  4891.     db EAST
  4892.     db $fe, -26
  4893.  
  4894. NPCMovement_fbc2: ; fbc2 (3:7bc2)
  4895.     db NORTH
  4896.     db NORTH
  4897.     db EAST
  4898.     db WEST | NO_MOVE
  4899.     db $ff
  4900.  
  4901. NPCMovement_fbc7: ; fbc7 (3:7bc7)
  4902.     db SOUTH
  4903.     db SOUTH
  4904.     db WEST
  4905.     db SOUTH
  4906.     db SOUTH
  4907.     db SOUTH
  4908.     db SOUTH
  4909.     db SOUTH
  4910.     db SOUTH
  4911.     db SOUTH
  4912.     db $ff
  4913.  
  4914. NPCMovement_fbd2: ; fbd2 (3:7bd2)
  4915.     db WEST
  4916.     db WEST
  4917.     db WEST
  4918.     db WEST
  4919.     db WEST
  4920.     db WEST
  4921.     db WEST
  4922.     db $fe, -12
  4923.  
  4924. ; gap from 0xfbdb to 0xfbe1
  4925.  
  4926. Script_fbe1: ; fbe1 (3:7be1)
  4927.     start_script
  4928.     print_text Text05b5
  4929.     ask_question_jump_default_yes Text05b6, .ows_fbee
  4930.     print_text Text05b7
  4931.     quit_script_fully
  4932. ; 0xfbee
  4933.  
  4934. .ows_fbee
  4935.     open_deck_machine $0a
  4936.     quit_script_fully
  4937. ; 0xfbf1
  4938.  
  4939. Script_fbf1: ; fbf1 (3:7bf1)
  4940.     start_script
  4941.     jump_if_flag_nonzero_2 EVENT_RECEIVED_LEGENDARY_CARD, .ows_fc10
  4942.     max_out_flag_value EVENT_RECEIVED_LEGENDARY_CARD
  4943.     print_text Text05b8
  4944.     give_card ZAPDOS3
  4945.     give_card MOLTRES2
  4946.     give_card ARTICUNO2
  4947.     give_card DRAGONITE1
  4948.     show_card_received_screen $ff
  4949. .ows_fc05
  4950.     flash_screen $00
  4951.     print_text Text05b9
  4952. .ows_fc0a
  4953.     flash_screen $01
  4954.     save_game $01
  4955.     play_credits
  4956.     quit_script_fully
  4957. ; 0xfc10
  4958.  
  4959. .ows_fc10
  4960.     jump_if_flag_equal EVENT_FLAG_71, $0f, .ows_fc20
  4961.     pick_legendary_card
  4962.     print_text Text05ba
  4963.     give_card VARIABLE_CARD
  4964.     show_card_received_screen VARIABLE_CARD
  4965.     script_jump .ows_fc05
  4966. ; 0xfc20
  4967.  
  4968. .ows_fc20
  4969.     print_text Text05bb
  4970.     flash_screen $00
  4971.     print_text Text05bc
  4972.     script_jump .ows_fc0a
  4973. ; 0xfc2b
  4974.  
  4975. ; gap from 0xfc2b to 0xfc52
  4976.  
  4977. Script_fc52: ; fc52 (3:7c52)
  4978.     start_script
  4979.     print_npc_text Text06c8
  4980.     ask_question_jump_default_yes NULL, .ows_fc5e
  4981.     print_text_quit_fully Text06c9
  4982. ; 0xfc5e
  4983.  
  4984. .ows_fc5e
  4985.     battle_center
  4986.     quit_script_fully
  4987. ; 0xfc60
  4988.  
  4989. Script_fc60: ; fc60 (3:7c60)
  4990.     start_script
  4991.     print_text_quit_fully Text06ca
  4992. ; 0xfc64
  4993.  
  4994. Script_fc64: ; fc64 (3:7c64)
  4995.     start_script
  4996.     print_text_quit_fully Text06cb
  4997. ; 0xfc68
  4998.  
  4999. Script_fc68: ; fc68 (3:7c68)
  5000.     start_script
  5001.     print_text_quit_fully Text06cc
  5002. ; 0xfc6c
  5003.  
  5004. ; gap from 0xfc6c to 0xfc82
  5005.  
  5006. Script_fc82: ; fc82 (3:7c82)
  5007.     start_script
  5008.     jump_if_flag_not_equal EVENT_FLAG_74, $02, Script_fcb5.ows_fcd5
  5009.     print_npc_text Text06cd
  5010.     gift_center $00
  5011.     jump_if_flag_not_less_than EVENT_FLAG_72, $04, .ows_fcaa
  5012.     print_npc_text Text06ce
  5013.     ask_question_jump_default_yes Text06cf, .ows_fca0
  5014.     print_npc_text Text06d0
  5015.     script_jump .ows_fcaa
  5016. ; 0xfca0
  5017.  
  5018. .ows_fca0
  5019.     save_game $00
  5020.     play_sfx SFX_56
  5021.     print_text Text06d1
  5022.     gift_center $01
  5023.     quit_script_fully
  5024. ; 0xfcaa
  5025.  
  5026. .ows_fcaa
  5027.     print_text_quit_fully Text06d2
  5028. ; 0xfcad
  5029.  
  5030. ; gap from 0xfcad to 0xfcb5
  5031.  
  5032. Script_fcb5: ; fcb5 (3:7cb5)
  5033.     start_script
  5034.     play_sfx SFX_56
  5035.     save_game $00
  5036.     jump_if_flag_equal EVENT_FLAG_72, $00, .ows_fccc
  5037.     jump_if_flag_equal EVENT_FLAG_72, $02, .ows_fccf
  5038.     jump_if_flag_equal EVENT_FLAG_72, $03, .ows_fcd2
  5039.     script_jump Script_fc82.ows_fcaa
  5040. ; 0xfccc
  5041.  
  5042. .ows_fccc
  5043.     print_text_quit_fully Text06d3
  5044. ; 0xfccf
  5045.  
  5046. .ows_fccf
  5047.     print_text_quit_fully Text06d4
  5048. ; 0xfcd2
  5049.  
  5050. .ows_fcd2
  5051.     print_text_quit_fully Text06d5
  5052. ; 0xfcd5
  5053.  
  5054. .ows_fcd5
  5055.     move_npc NPC_GIFT_CENTER_CLERK, NPCMovement_fce1
  5056.     print_npc_text Text06d6
  5057.     move_npc NPC_GIFT_CENTER_CLERK, NPCMovement_fce3
  5058.     quit_script_fully
  5059. ; 0xfce1
  5060.  
  5061. NPCMovement_fce1: ; fce1 (3:7ce1)
  5062.     db SOUTH | NO_MOVE
  5063.     db $ff
  5064.  
  5065. NPCMovement_fce3: ; fce3 (3:7ce3)
  5066.     db NORTH | NO_MOVE
  5067.     db $ff
  5068.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement