named most of the used events

This commit is contained in:
YamaArashi 2015-07-21 10:36:03 -07:00
parent cbcdb2ec2a
commit 73171bfff5
90 changed files with 485 additions and 468 deletions

View file

@ -1,12 +1,12 @@
const_value = 0 const_value = 0
const EVENT_STOPPED_FROM_LEAVING_PALLET const EVENT_FOLLOWED_OAK_INTO_LAB
const EVENT_001 const EVENT_001
const EVENT_002 const EVENT_002
const EVENT_003 const EVENT_003
const EVENT_004 const EVENT_004
const EVENT_005 const EVENT_005
const EVENT_006 const EVENT_PALLET_AFTER_GETTING_POKEBALLS
const EVENT_007 const EVENT_007
const EVENT_008 const EVENT_008
const EVENT_009 const EVENT_009
@ -24,24 +24,24 @@ const_value = 0
const EVENT_015 const EVENT_015
const EVENT_016 const EVENT_016
const EVENT_017 const EVENT_017
const EVENT_018 const EVENT_GOT_TOWN_MAP
const EVENT_019 const EVENT_ENTERED_BLUES_HOUSE
const EVENT_01A const EVENT_DAISY_WALKING
const EVENT_01B const EVENT_01B
const EVENT_01C const EVENT_01C
const EVENT_01D const EVENT_01D
const EVENT_01E const EVENT_01E
const EVENT_01F const EVENT_01F
const EVENT_FOLLOWED_OAK_INSIDE_LAB const EVENT_FOLLOWED_OAK_INTO_LAB_2
const EVENT_OAK_ASKED_TO_CHOOSE_MON const EVENT_OAK_ASKED_TO_CHOOSE_MON
const EVENT_GOT_STARTER const EVENT_GOT_STARTER
const EVENT_BATTLED_RIVAL_IN_OAKS_LAB const EVENT_BATTLED_RIVAL_IN_OAKS_LAB
const EVENT_GOT_POKEBALLS_FROM_OAK const EVENT_GOT_POKEBALLS_FROM_OAK
const EVENT_GOT_POKEDEX const EVENT_GOT_POKEDEX
const EVENT_026 const EVENT_PALLET_AFTER_GETTING_POKEBALLS_2
const EVENT_027 const EVENT_OAK_APPEARED_IN_PALLET
const EVENT_028 const EVENT_VIRIDIAN_GYM_OPEN
const EVENT_029 const EVENT_GOT_TM42
const EVENT_02A const EVENT_02A
const EVENT_02B const EVENT_02B
const EVENT_02C const EVENT_02C
@ -56,8 +56,8 @@ const_value = 0
const EVENT_035 const EVENT_035
const EVENT_036 const EVENT_036
const EVENT_037 const EVENT_037
const EVENT_038 const EVENT_OAK_GOT_PARCEL
const EVENT_039 const EVENT_GOT_OAKS_PARCEL
const EVENT_03A const EVENT_03A
const EVENT_03B const EVENT_03B
const EVENT_03C const EVENT_03C
@ -104,8 +104,8 @@ const_value = 0
const EVENT_065 const EVENT_065
const EVENT_066 const EVENT_066
const EVENT_067 const EVENT_067
const EVENT_068 const EVENT_BOUGHT_MUSEUM_TICKET
const EVENT_069 const EVENT_GOT_OLD_AMBER
const EVENT_06A const EVENT_06A
const EVENT_06B const EVENT_06B
const EVENT_06C const EVENT_06C
@ -152,7 +152,7 @@ const_value = 0
const EVENT_095 const EVENT_095
const EVENT_096 const EVENT_096
const EVENT_097 const EVENT_097
const EVENT_098 const EVENT_BEAT_CERULEAN_RIVAL
const EVENT_099 const EVENT_099
const EVENT_09A const EVENT_09A
const EVENT_09B const EVENT_09B
@ -167,7 +167,7 @@ const_value = 0
const EVENT_0A4 const EVENT_0A4
const EVENT_0A5 const EVENT_0A5
const EVENT_0A6 const EVENT_0A6
const EVENT_0A7 const EVENT_BEAT_CERULEAN_ROCKET_THIEF
const EVENT_0A8 const EVENT_0A8
const EVENT_0A9 const EVENT_0A9
const EVENT_0AA const EVENT_0AA
@ -192,7 +192,7 @@ const_value = 0
const EVENT_0BD const EVENT_0BD
const EVENT_GOT_TM11 const EVENT_GOT_TM11
const EVENT_BEAT_MISTY const EVENT_BEAT_MISTY
const EVENT_0C0 const EVENT_GOT_BICYCLE
const EVENT_0C1 const EVENT_0C1
const EVENT_0C2 const EVENT_0C2
const EVENT_0C3 const EVENT_0C3
@ -238,8 +238,8 @@ const_value = 0
const EVENT_0EB const EVENT_0EB
const EVENT_0EC const EVENT_0EC
const EVENT_0ED const EVENT_0ED
const EVENT_0EE const EVENT_POKEMON_TOWER_RIVAL_ON_LEFT
const EVENT_0EF const EVENT_BEAT_POKEMON_TOWER_RIVAL
const EVENT_0F0 const EVENT_0F0
const EVENT_BEAT_POKEMONTOWER_3_TRAINER_0 const EVENT_BEAT_POKEMONTOWER_3_TRAINER_0
const EVENT_BEAT_POKEMONTOWER_3_TRAINER_1 const EVENT_BEAT_POKEMONTOWER_3_TRAINER_1
@ -263,7 +263,7 @@ const_value = 0
const EVENT_BEAT_POKEMONTOWER_5_TRAINER_2 const EVENT_BEAT_POKEMONTOWER_5_TRAINER_2
const EVENT_BEAT_POKEMONTOWER_5_TRAINER_3 const EVENT_BEAT_POKEMONTOWER_5_TRAINER_3
const EVENT_106 const EVENT_106
const EVENT_107 const EVENT_IN_PURIFIED_ZONE
const EVENT_108 const EVENT_108
const EVENT_BEAT_POKEMONTOWER_6_TRAINER_0 const EVENT_BEAT_POKEMONTOWER_6_TRAINER_0
const EVENT_BEAT_POKEMONTOWER_6_TRAINER_1 const EVENT_BEAT_POKEMONTOWER_6_TRAINER_1
@ -271,7 +271,7 @@ const_value = 0
const EVENT_10C const EVENT_10C
const EVENT_10D const EVENT_10D
const EVENT_10E const EVENT_10E
const EVENT_10F const EVENT_BEAT_GHOST_MAROWAK
const EVENT_110 const EVENT_110
const EVENT_BEAT_POKEMONTOWER_7_TRAINER_0 const EVENT_BEAT_POKEMONTOWER_7_TRAINER_0
const EVENT_BEAT_POKEMONTOWER_7_TRAINER_1 const EVENT_BEAT_POKEMONTOWER_7_TRAINER_1
@ -279,7 +279,7 @@ const_value = 0
const EVENT_114 const EVENT_114
const EVENT_115 const EVENT_115
const EVENT_116 const EVENT_116
const EVENT_117 const EVENT_RESCUED_MR_FUJI_2
const EVENT_118 const EVENT_118
const EVENT_119 const EVENT_119
const EVENT_11A const EVENT_11A
@ -296,7 +296,7 @@ const_value = 0
const EVENT_125 const EVENT_125
const EVENT_126 const EVENT_126
const EVENT_127 const EVENT_127
const EVENT_128 const EVENT_GOT_POKE_FLUTE
const EVENT_129 const EVENT_129
const EVENT_12A const EVENT_12A
const EVENT_12B const EVENT_12B
@ -342,8 +342,8 @@ const_value = 0
const EVENT_153 const EVENT_153
const EVENT_154 const EVENT_154
const EVENT_155 const EVENT_155
const EVENT_156 const EVENT_SEEL_FAN_BOAST
const EVENT_157 const EVENT_PIKACHU_FAN_BOAST
const EVENT_158 const EVENT_158
const EVENT_159 const EVENT_159
const EVENT_15A const EVENT_15A
@ -384,7 +384,7 @@ const_value = 0
const EVENT_17D const EVENT_17D
const EVENT_17E const EVENT_17E
const EVENT_17F const EVENT_17F
const EVENT_180 const EVENT_GOT_TM41
const EVENT_181 const EVENT_181
const EVENT_182 const EVENT_182
const EVENT_183 const EVENT_183
@ -396,10 +396,10 @@ const_value = 0
const EVENT_189 const EVENT_189
const EVENT_18A const EVENT_18A
const EVENT_18B const EVENT_18B
const EVENT_18C const EVENT_GOT_TM13
const EVENT_18D const EVENT_GOT_TM48
const EVENT_18E const EVENT_GOT_TM49
const EVENT_18F const EVENT_GOT_TM18
const EVENT_190 const EVENT_190
const EVENT_191 const EVENT_191
const EVENT_192 const EVENT_192
@ -441,10 +441,10 @@ const_value = 0
const EVENT_1B6 const EVENT_1B6
const EVENT_1B7 const EVENT_1B7
const EVENT_1B8 const EVENT_1B8
const EVENT_1B9 const EVENT_FOUND_ROCKET_HIDEOUT
const EVENT_1BA const EVENT_GOT_10_COINS
const EVENT_1BB const EVENT_GOT_20_COINS
const EVENT_1BC const EVENT_GOT_20_COINS_2
const EVENT_1BD const EVENT_1BD
const EVENT_1BE const EVENT_1BE
const EVENT_1BF const EVENT_1BF
@ -480,7 +480,7 @@ const_value = 0
const EVENT_1DD const EVENT_1DD
const EVENT_1DE const EVENT_1DE
const EVENT_1DF const EVENT_1DF
const EVENT_1E0 const EVENT_GOT_COIN_CASE
const EVENT_1E1 const EVENT_1E1
const EVENT_1E2 const EVENT_1E2
const EVENT_1E3 const EVENT_1E3
@ -568,8 +568,8 @@ const_value = 0
const EVENT_235 const EVENT_235
const EVENT_236 const EVENT_236
const EVENT_237 const EVENT_237
const EVENT_238 const EVENT_GOT_HM04
const EVENT_239 const EVENT_GAVE_GOLD_TEETH
const EVENT_23A const EVENT_23A
const EVENT_23B const EVENT_23B
const EVENT_23C const EVENT_23C
@ -632,7 +632,7 @@ const_value = 0
const EVENT_275 const EVENT_275
const EVENT_276 const EVENT_276
const EVENT_277 const EVENT_277
const EVENT_278 const EVENT_MANSION_SWITCH_ON
const EVENT_279 const EVENT_279
const EVENT_27A const EVENT_27A
const EVENT_27B const EVENT_27B
@ -727,7 +727,7 @@ const_value = 0
const EVENT_2D4 const EVENT_2D4
const EVENT_2D5 const EVENT_2D5
const EVENT_2D6 const EVENT_2D6
const EVENT_2D7 const EVENT_GOT_TM35
const EVENT_2D8 const EVENT_2D8
const EVENT_2D9 const EVENT_2D9
const EVENT_2DA const EVENT_2DA
@ -736,9 +736,9 @@ const_value = 0
const EVENT_2DD const EVENT_2DD
const EVENT_2DE const EVENT_2DE
const EVENT_2DF const EVENT_2DF
const EVENT_2E0 const EVENT_GAVE_FOSSIL_TO_LAB
const EVENT_2E1 const EVENT_LAB_STILL_REVIVING_FOSSIL
const EVENT_2E2 const EVENT_LAB_HANDING_OVER_FOSSIL_MON
const EVENT_2E3 const EVENT_2E3
const EVENT_2E4 const EVENT_2E4
const EVENT_2E5 const EVENT_2E5
@ -832,7 +832,7 @@ const_value = 0
const EVENT_33D const EVENT_33D
const EVENT_33E const EVENT_33E
const EVENT_33F const EVENT_33F
const EVENT_340 const EVENT_GOT_TM31
const EVENT_341 const EVENT_341
const EVENT_342 const EVENT_342
const EVENT_343 const EVENT_343
@ -848,14 +848,14 @@ const_value = 0
const EVENT_34D const EVENT_34D
const EVENT_34E const EVENT_34E
const EVENT_34F const EVENT_34F
const EVENT_350 const EVENT_DEFEATED_FIGHTING_DOJO
const EVENT_351 const EVENT_BEAT_KARATE_MASTER
const EVENT_BEAT_FIGHTING_DOJO_TRAINER_0 const EVENT_BEAT_FIGHTING_DOJO_TRAINER_0
const EVENT_BEAT_FIGHTING_DOJO_TRAINER_1 const EVENT_BEAT_FIGHTING_DOJO_TRAINER_1
const EVENT_BEAT_FIGHTING_DOJO_TRAINER_2 const EVENT_BEAT_FIGHTING_DOJO_TRAINER_2
const EVENT_BEAT_FIGHTING_DOJO_TRAINER_3 const EVENT_BEAT_FIGHTING_DOJO_TRAINER_3
const EVENT_356 const EVENT_GOT_HITMONLEE
const EVENT_357 const EVENT_GOT_HITMONCHAN
const EVENT_358 const EVENT_358
const EVENT_359 const EVENT_359
const EVENT_35A const EVENT_35A
@ -919,7 +919,7 @@ const_value = 0
const EVENT_394 const EVENT_394
const EVENT_395 const EVENT_395
const EVENT_396 const EVENT_396
const EVENT_397 const EVENT_SILPH_CO_RECEPTIONIST_AT_DESK
const EVENT_398 const EVENT_398
const EVENT_399 const EVENT_399
const EVENT_39A const EVENT_39A
@ -944,7 +944,7 @@ const_value = 0
const EVENT_3AD const EVENT_3AD
const EVENT_3AE const EVENT_3AE
const EVENT_3AF const EVENT_3AF
const EVENT_3B0 const EVENT_GOT_TM29
const EVENT_3B1 const EVENT_3B1
const EVENT_3B2 const EVENT_3B2
const EVENT_3B3 const EVENT_3B3
@ -960,7 +960,7 @@ const_value = 0
const EVENT_3BD const EVENT_3BD
const EVENT_3BE const EVENT_3BE
const EVENT_3BF const EVENT_3BF
const EVENT_3C0 const EVENT_GOT_POTION_SAMPLE
const EVENT_3C1 const EVENT_3C1
const EVENT_3C2 const EVENT_3C2
const EVENT_3C3 const EVENT_3C3
@ -984,7 +984,7 @@ const_value = 0
const EVENT_3D5 const EVENT_3D5
const EVENT_3D6 const EVENT_3D6
const EVENT_3D7 const EVENT_3D7
const EVENT_3D8 const EVENT_GOT_HM05
const EVENT_3D9 const EVENT_3D9
const EVENT_3DA const EVENT_3DA
const EVENT_3DB const EVENT_3DB
@ -1151,8 +1151,8 @@ const_value = 0
const EVENT_47C const EVENT_47C
const EVENT_47D const EVENT_47D
const EVENT_47E const EVENT_47E
const EVENT_47F const EVENT_GOT_ITEMFINDER
const EVENT_480 const EVENT_GOT_TM39
const EVENT_481 const EVENT_481
const EVENT_BEAT_ROUTE_12_TRAINER_0 const EVENT_BEAT_ROUTE_12_TRAINER_0
const EVENT_BEAT_ROUTE_12_TRAINER_1 const EVENT_BEAT_ROUTE_12_TRAINER_1
@ -1200,7 +1200,7 @@ const_value = 0
const EVENT_4AD const EVENT_4AD
const EVENT_4AE const EVENT_4AE
const EVENT_4AF const EVENT_4AF
const EVENT_4B0 const EVENT_GOT_EXP_ALL
const EVENT_BEAT_ROUTE_15_TRAINER_0 const EVENT_BEAT_ROUTE_15_TRAINER_0
const EVENT_BEAT_ROUTE_15_TRAINER_1 const EVENT_BEAT_ROUTE_15_TRAINER_1
const EVENT_BEAT_ROUTE_15_TRAINER_2 const EVENT_BEAT_ROUTE_15_TRAINER_2
@ -1230,8 +1230,8 @@ const_value = 0
const EVENT_4CB const EVENT_4CB
const EVENT_4CC const EVENT_4CC
const EVENT_4CD const EVENT_4CD
const EVENT_4CE const EVENT_GOT_HM02
const EVENT_4CF const EVENT_RESCUED_MR_FUJI
const EVENT_4D0 const EVENT_4D0
const EVENT_BEAT_ROUTE_17_TRAINER_0 const EVENT_BEAT_ROUTE_17_TRAINER_0
const EVENT_BEAT_ROUTE_17_TRAINER_1 const EVENT_BEAT_ROUTE_17_TRAINER_1
@ -1280,7 +1280,7 @@ const_value = 0
const EVENT_4FD const EVENT_4FD
const EVENT_4FE const EVENT_4FE
const EVENT_4FF const EVENT_4FF
const EVENT_500 const EVENT_IN_SEAFOAM_ISLANDS
const EVENT_BEAT_ROUTE_20_TRAINER_0 const EVENT_BEAT_ROUTE_20_TRAINER_0
const EVENT_BEAT_ROUTE_20_TRAINER_2 const EVENT_BEAT_ROUTE_20_TRAINER_2
const EVENT_BEAT_ROUTE_20_TRAINER_3 const EVENT_BEAT_ROUTE_20_TRAINER_3
@ -1294,8 +1294,8 @@ const_value = 0
const EVENT_50B const EVENT_50B
const EVENT_50C const EVENT_50C
const EVENT_50D const EVENT_50D
const EVENT_50E const EVENT_SEAFOAM1_BOULDER1_DOWN_HOLE
const EVENT_50F const EVENT_SEAFOAM1_BOULDER2_DOWN_HOLE
const EVENT_510 const EVENT_510
const EVENT_BEAT_ROUTE_21_TRAINER_0 const EVENT_BEAT_ROUTE_21_TRAINER_0
const EVENT_BEAT_ROUTE_21_TRAINER_1 const EVENT_BEAT_ROUTE_21_TRAINER_1
@ -1312,14 +1312,14 @@ const_value = 0
const EVENT_51D const EVENT_51D
const EVENT_51E const EVENT_51E
const EVENT_51F const EVENT_51F
const EVENT_520 const EVENT_1ST_ROUTE22_RIVAL_BATTLE
const EVENT_521 const EVENT_2ND_ROUTE22_RIVAL_BATTLE
const EVENT_522 const EVENT_522
const EVENT_523 const EVENT_523
const EVENT_524 const EVENT_524
const EVENT_525 const EVENT_BEAT_ROUTE22_RIVAL_1ST_FIGHT
const EVENT_526 const EVENT_BEAT_ROUTE22_RIVAL_2ND_FIGHT
const EVENT_527 const EVENT_ROUTE22_RIVAL_WANTS_FIGHT
const EVENT_528 const EVENT_528
const EVENT_529 const EVENT_529
const EVENT_52A const EVENT_52A
@ -1328,24 +1328,24 @@ const_value = 0
const EVENT_52D const EVENT_52D
const EVENT_52E const EVENT_52E
const EVENT_52F const EVENT_52F
const EVENT_530 const EVENT_PASSED_CASCADEBADGE_CHECK
const EVENT_531 const EVENT_PASSED_THUNDERBADGE_CHECK
const EVENT_532 const EVENT_PASSED_RAINBOWBADGE_CHECK
const EVENT_533 const EVENT_PASSED_SOULBADGE_CHECK
const EVENT_534 const EVENT_PASSED_MARSHBADGE_CHECK
const EVENT_535 const EVENT_PASSED_VOLCANOBADGE_CHECK
const EVENT_536 const EVENT_PASSED_EARTHBADGE_CHECK
const EVENT_537 const EVENT_537
const EVENT_538 const EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1
const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_0 const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_0
const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_2 const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_2
const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_3 const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_3
const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_4 const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_4
const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_5 const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_5
const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_6 const EVENT_BEAT_VICTORY_ROAD_2_TRAINER_6
const EVENT_53F const EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2
const EVENT_540 const EVENT_GOT_NUGGET
const EVENT_541 const EVENT_BEAT_ROUTE24_ROCKET
const EVENT_BEAT_ROUTE_24_TRAINER_0 const EVENT_BEAT_ROUTE_24_TRAINER_0
const EVENT_BEAT_ROUTE_24_TRAINER_2 const EVENT_BEAT_ROUTE_24_TRAINER_2
const EVENT_BEAT_ROUTE_24_TRAINER_3 const EVENT_BEAT_ROUTE_24_TRAINER_3
@ -1353,14 +1353,14 @@ const_value = 0
const EVENT_BEAT_ROUTE_24_TRAINER_5 const EVENT_BEAT_ROUTE_24_TRAINER_5
const EVENT_BEAT_ROUTE_24_TRAINER_6 const EVENT_BEAT_ROUTE_24_TRAINER_6
const EVENT_548 const EVENT_548
const EVENT_549 const EVENT_NUGGET_REWARD_AVAILABLE
const EVENT_54A const EVENT_54A
const EVENT_54B const EVENT_54B
const EVENT_54C const EVENT_54C
const EVENT_54D const EVENT_54D
const EVENT_54E const EVENT_54E
const EVENT_54F const EVENT_54F
const EVENT_550 const EVENT_MET_BILL
const EVENT_BEAT_ROUTE_25_TRAINER_0 const EVENT_BEAT_ROUTE_25_TRAINER_0
const EVENT_BEAT_ROUTE_25_TRAINER_2 const EVENT_BEAT_ROUTE_25_TRAINER_2
const EVENT_BEAT_ROUTE_25_TRAINER_3 const EVENT_BEAT_ROUTE_25_TRAINER_3
@ -1371,11 +1371,11 @@ const_value = 0
const EVENT_BEAT_ROUTE_25_TRAINER_8 const EVENT_BEAT_ROUTE_25_TRAINER_8
const EVENT_BEAT_ROUTE_25_TRAINER_9 const EVENT_BEAT_ROUTE_25_TRAINER_9
const EVENT_55A const EVENT_55A
const EVENT_55B const EVENT_USED_CELL_SEPARATOR_ON_BILL
const EVENT_55C const EVENT_GOT_SS_TICKET
const EVENT_55D const EVENT_MET_BILL_2
const EVENT_55E const EVENT_BILL_SAID_USE_CELL_SEPARATOR
const EVENT_55F const EVENT_LEFT_BILLS_HOUSE_AFTER_HELPING
const EVENT_560 const EVENT_560
const EVENT_561 const EVENT_561
const EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_0 const EVENT_BEAT_VIRIDIAN_FOREST_TRAINER_0
@ -1401,13 +1401,13 @@ const_value = 0
const EVENT_BEAT_MT_MOON_1_TRAINER_6 const EVENT_BEAT_MT_MOON_1_TRAINER_6
const EVENT_BEAT_MT_MOON_1_TRAINER_7 const EVENT_BEAT_MT_MOON_1_TRAINER_7
const EVENT_578 const EVENT_578
const EVENT_579 const EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD
const EVENT_BEAT_MT_MOON_3_TRAINER_0 const EVENT_BEAT_MT_MOON_3_TRAINER_0
const EVENT_BEAT_MT_MOON_3_TRAINER_2 const EVENT_BEAT_MT_MOON_3_TRAINER_2
const EVENT_BEAT_MT_MOON_3_TRAINER_3 const EVENT_BEAT_MT_MOON_3_TRAINER_3
const EVENT_BEAT_MT_MOON_3_TRAINER_4 const EVENT_BEAT_MT_MOON_3_TRAINER_4
const EVENT_57E const EVENT_GOT_DOME_FOSSIL
const EVENT_57F const EVENT_GOT_HELIX_FOSSIL
const EVENT_580 const EVENT_580
const EVENT_581 const EVENT_581
const EVENT_582 const EVENT_582
@ -1504,12 +1504,12 @@ const_value = 0
const EVENT_5DD const EVENT_5DD
const EVENT_5DE const EVENT_5DE
const EVENT_5DF const EVENT_5DF
const EVENT_5E0 const EVENT_GOT_HM01
const EVENT_5E1 const EVENT_RUBBED_CAPTAINS_BACK
const EVENT_SS_ANNE_LEFT const EVENT_SS_ANNE_LEFT
const EVENT_5E3 const EVENT_WALKED_PAST_GUARD_AFTER_SS_ANNE_LEFT
const EVENT_5E4 const EVENT_STARTED_WALKING_OUT_OF_DOCK
const EVENT_5E5 const EVENT_WALKED_OUT_OF_DOCK
const EVENT_5E6 const EVENT_5E6
const EVENT_5E7 const EVENT_5E7
const EVENT_5E8 const EVENT_5E8
@ -1632,13 +1632,13 @@ const_value = 0
const EVENT_65D const EVENT_65D
const EVENT_65E const EVENT_65E
const EVENT_65F const EVENT_65F
const EVENT_660 const EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
const EVENT_BEAT_VICTORY_ROAD_3_TRAINER_0 const EVENT_BEAT_VICTORY_ROAD_3_TRAINER_0
const EVENT_BEAT_VICTORY_ROAD_3_TRAINER_2 const EVENT_BEAT_VICTORY_ROAD_3_TRAINER_2
const EVENT_BEAT_VICTORY_ROAD_3_TRAINER_3 const EVENT_BEAT_VICTORY_ROAD_3_TRAINER_3
const EVENT_BEAT_VICTORY_ROAD_3_TRAINER_4 const EVENT_BEAT_VICTORY_ROAD_3_TRAINER_4
const EVENT_665 const EVENT_665
const EVENT_666 const EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH2
const EVENT_667 const EVENT_667
const EVENT_668 const EVENT_668
const EVENT_669 const EVENT_669
@ -1701,9 +1701,9 @@ const_value = 0
const EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_0 const EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_0
const EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_2 const EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_2
const EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_3 const EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_3
const EVENT_6A5 const EVENT_ROCKET_HIDEOUT_4_DOOR_UNLOCKED
const EVENT_6A6 const EVENT_ROCKET_DROPPED_LIFT_KEY
const EVENT_6A7 const EVENT_BEAT_ROCKET_HIDEOUT_GIOVANNI
const EVENT_6A8 const EVENT_6A8
const EVENT_6A9 const EVENT_6A9
const EVENT_6AA const EVENT_6AA
@ -1789,9 +1789,9 @@ const_value = 0
const EVENT_6FA const EVENT_6FA
const EVENT_6FB const EVENT_6FB
const EVENT_6FC const EVENT_6FC
const EVENT_6FD const EVENT_SILPH_CO_2_UNLOCKED_DOOR1
const EVENT_6FE const EVENT_SILPH_CO_2_UNLOCKED_DOOR2
const EVENT_6FF const EVENT_GOT_TM36
const EVENT_700 const EVENT_700
const EVENT_701 const EVENT_701
const EVENT_BEAT_SILPH_CO_3F_TRAINER_0 const EVENT_BEAT_SILPH_CO_3F_TRAINER_0
@ -1800,8 +1800,8 @@ const_value = 0
const EVENT_705 const EVENT_705
const EVENT_706 const EVENT_706
const EVENT_707 const EVENT_707
const EVENT_708 const EVENT_SILPH_CO_3_UNLOCKED_DOOR1
const EVENT_709 const EVENT_SILPH_CO_3_UNLOCKED_DOOR2
const EVENT_70A const EVENT_70A
const EVENT_70B const EVENT_70B
const EVENT_70C const EVENT_70C
@ -1816,8 +1816,8 @@ const_value = 0
const EVENT_715 const EVENT_715
const EVENT_716 const EVENT_716
const EVENT_717 const EVENT_717
const EVENT_718 const EVENT_SILPH_CO_4_UNLOCKED_DOOR1
const EVENT_719 const EVENT_SILPH_CO_4_UNLOCKED_DOOR2
const EVENT_71A const EVENT_71A
const EVENT_71B const EVENT_71B
const EVENT_71C const EVENT_71C
@ -1832,9 +1832,9 @@ const_value = 0
const EVENT_BEAT_SILPH_CO_5F_TRAINER_4 const EVENT_BEAT_SILPH_CO_5F_TRAINER_4
const EVENT_726 const EVENT_726
const EVENT_727 const EVENT_727
const EVENT_728 const EVENT_SILPH_CO_5_UNLOCKED_DOOR1
const EVENT_729 const EVENT_SILPH_CO_5_UNLOCKED_DOOR2
const EVENT_72A const EVENT_SILPH_CO_5_UNLOCKED_DOOR3
const EVENT_72B const EVENT_72B
const EVENT_72C const EVENT_72C
const EVENT_72D const EVENT_72D
@ -1855,8 +1855,8 @@ const_value = 0
const EVENT_73C const EVENT_73C
const EVENT_73D const EVENT_73D
const EVENT_73E const EVENT_73E
const EVENT_73F const EVENT_SILPH_CO_6_UNLOCKED_DOOR
const EVENT_740 const EVENT_BEAT_SILPH_CO_RIVAL
const EVENT_741 const EVENT_741
const EVENT_742 const EVENT_742
const EVENT_743 const EVENT_743
@ -1868,9 +1868,9 @@ const_value = 0
const EVENT_749 const EVENT_749
const EVENT_74A const EVENT_74A
const EVENT_74B const EVENT_74B
const EVENT_74C const EVENT_SILPH_CO_7_UNLOCKED_DOOR1
const EVENT_74D const EVENT_SILPH_CO_7_UNLOCKED_DOOR2
const EVENT_74E const EVENT_SILPH_CO_7_UNLOCKED_DOOR3
const EVENT_74F const EVENT_74F
const EVENT_750 const EVENT_750
const EVENT_751 const EVENT_751
@ -1880,7 +1880,7 @@ const_value = 0
const EVENT_755 const EVENT_755
const EVENT_756 const EVENT_756
const EVENT_757 const EVENT_757
const EVENT_758 const EVENT_SILPH_CO_8_UNLOCKED_DOOR
const EVENT_759 const EVENT_759
const EVENT_75A const EVENT_75A
const EVENT_75B const EVENT_75B
@ -1896,10 +1896,10 @@ const_value = 0
const EVENT_765 const EVENT_765
const EVENT_766 const EVENT_766
const EVENT_767 const EVENT_767
const EVENT_768 const EVENT_SILPH_CO_9_UNLOCKED_DOOR1
const EVENT_769 const EVENT_SILPH_CO_9_UNLOCKED_DOOR2
const EVENT_76A const EVENT_SILPH_CO_9_UNLOCKED_DOOR3
const EVENT_76B const EVENT_SILPH_CO_9_UNLOCKED_DOOR4
const EVENT_76C const EVENT_76C
const EVENT_76D const EVENT_76D
const EVENT_76E const EVENT_76E
@ -1912,7 +1912,7 @@ const_value = 0
const EVENT_775 const EVENT_775
const EVENT_776 const EVENT_776
const EVENT_777 const EVENT_777
const EVENT_778 const EVENT_SILPH_CO_10_UNLOCKED_DOOR
const EVENT_779 const EVENT_779
const EVENT_77A const EVENT_77A
const EVENT_77B const EVENT_77B
@ -1928,14 +1928,14 @@ const_value = 0
const EVENT_BEAT_SILPH_CO_11F_TRAINER_1 const EVENT_BEAT_SILPH_CO_11F_TRAINER_1
const EVENT_786 const EVENT_786
const EVENT_787 const EVENT_787
const EVENT_788 const EVENT_SILPH_CO_11_UNLOCKED_DOOR
const EVENT_789 const EVENT_789
const EVENT_78A const EVENT_78A
const EVENT_78B const EVENT_78B
const EVENT_78C const EVENT_78C
const EVENT_78D const EVENT_GOT_MASTER_BALL
const EVENT_78E const EVENT_78E
const EVENT_78F const EVENT_BEAT_SILPH_CO_GIOVANNI
const EVENT_790 const EVENT_790
const EVENT_791 const EVENT_791
const EVENT_792 const EVENT_792
@ -2176,7 +2176,7 @@ const_value = 0
const EVENT_87D const EVENT_87D
const EVENT_87E const EVENT_87E
const EVENT_87F const EVENT_87F
const EVENT_880 const EVENT_GOT_HM03
const EVENT_881 const EVENT_881
const EVENT_882 const EVENT_882
const EVENT_883 const EVENT_883
@ -2272,13 +2272,13 @@ const_value = 0
const EVENT_8DD const EVENT_8DD
const EVENT_8DE const EVENT_8DE
const EVENT_8DF const EVENT_8DF
const EVENT_8E0 const EVENT_ELITE4_EVENTS_START
const EVENT_BEAT_LORELEIS_ROOM_TRAINER_0 const EVENT_BEAT_LORELEIS_ROOM_TRAINER_0
const EVENT_8E2 const EVENT_8E2
const EVENT_8E3 const EVENT_8E3
const EVENT_8E4 const EVENT_8E4
const EVENT_8E5 const EVENT_8E5
const EVENT_8E6 const EVENT_AUTOWALKED_INTO_LORELEIS_ROOM
const EVENT_8E7 const EVENT_8E7
const EVENT_8E8 const EVENT_8E8
const EVENT_BEAT_BRUNOS_ROOM_TRAINER_0 const EVENT_BEAT_BRUNOS_ROOM_TRAINER_0
@ -2286,7 +2286,7 @@ const_value = 0
const EVENT_8EB const EVENT_8EB
const EVENT_8EC const EVENT_8EC
const EVENT_8ED const EVENT_8ED
const EVENT_8EE const EVENT_AUTOWALKED_INTO_BRUNOS_ROOM
const EVENT_8EF const EVENT_8EF
const EVENT_8F0 const EVENT_8F0
const EVENT_BEAT_AGATHAS_ROOM_TRAINER_0 const EVENT_BEAT_AGATHAS_ROOM_TRAINER_0
@ -2294,7 +2294,7 @@ const_value = 0
const EVENT_8F3 const EVENT_8F3
const EVENT_8F4 const EVENT_8F4
const EVENT_8F5 const EVENT_8F5
const EVENT_8F6 const EVENT_AUTOWALKED_INTO_AGATHAS_ROOM
const EVENT_8F7 const EVENT_8F7
const EVENT_8F8 const EVENT_8F8
const EVENT_BEAT_LANCES_ROOM_TRAINER_0 const EVENT_BEAT_LANCES_ROOM_TRAINER_0
@ -2302,10 +2302,10 @@ const_value = 0
const EVENT_8FB const EVENT_8FB
const EVENT_8FC const EVENT_8FC
const EVENT_8FD const EVENT_8FD
const EVENT_8FE const EVENT_BEAT_LANCE
const EVENT_8FF const EVENT_LANCES_ROOM_LOCK_DOOR
const EVENT_900 const EVENT_900
const EVENT_901 const EVENT_BEAT_CHAMPION_RIVAL
const EVENT_902 const EVENT_902
const EVENT_903 const EVENT_903
const EVENT_904 const EVENT_904
@ -2327,7 +2327,7 @@ const_value = 0
const EVENT_914 const EVENT_914
const EVENT_915 const EVENT_915
const EVENT_916 const EVENT_916
const EVENT_917 const EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
const EVENT_918 const EVENT_918
const EVENT_919 const EVENT_919
const EVENT_91A const EVENT_91A
@ -2496,24 +2496,24 @@ const_value = 0
const EVENT_9BD const EVENT_9BD
const EVENT_9BE const EVENT_9BE
const EVENT_9BF const EVENT_9BF
const EVENT_9C0 const EVENT_SEAFOAM2_BOULDER1_DOWN_HOLE
const EVENT_9C1 const EVENT_SEAFOAM2_BOULDER2_DOWN_HOLE
const EVENT_9C2 const EVENT_9C2
const EVENT_9C3 const EVENT_9C3
const EVENT_9C4 const EVENT_9C4
const EVENT_9C5 const EVENT_9C5
const EVENT_9C6 const EVENT_9C6
const EVENT_9C7 const EVENT_9C7
const EVENT_9C8 const EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE
const EVENT_9C9 const EVENT_SEAFOAM3_BOULDER2_DOWN_HOLE
const EVENT_9CA const EVENT_9CA
const EVENT_9CB const EVENT_9CB
const EVENT_9CC const EVENT_9CC
const EVENT_9CD const EVENT_9CD
const EVENT_9CE const EVENT_9CE
const EVENT_9CF const EVENT_9CF
const EVENT_9D0 const EVENT_SEAFOAM4_BOULDER1_DOWN_HOLE
const EVENT_9D1 const EVENT_SEAFOAM4_BOULDER2_DOWN_HOLE
const EVENT_9D2 const EVENT_9D2
const EVENT_9D3 const EVENT_9D3
const EVENT_9D4 const EVENT_9D4

View file

@ -19,7 +19,19 @@ event_byte = ((\1) / 8)
;\1 = event index ;\1 = event index
CheckEventReuseA: MACRO CheckEventReuseA: MACRO
IF event_byte != ((\1) / 8) IF event_byte != ((\1) / 8)
event_byte = ((\1) / 8)
ld a, [wEventFlags + event_byte]
ENDC
bit (\1) % 8, a
ENDM
;\1 = event index
;\2 = event index of the last event used before the branch
CheckEventAfterBranchReuseA: MACRO
event_byte = ((\2) / 8)
IF event_byte != ((\1) / 8)
event_byte = ((\1) / 8) event_byte = ((\1) / 8)
ld a, [wEventFlags + event_byte] ld a, [wEventFlags + event_byte]
ENDC ENDC
@ -355,11 +367,17 @@ event_fill_count = event_fill_count + 1
ENDM ENDM
; returns whether both events are set in Z flag ; returns whether both events are set in Z flag
; This is counter-intuitive because the other event checks set the Z flag when
; the event is not set, but this sets the Z flag when the event is set.
;\1 = event index 1 ;\1 = event index 1
;\2 = event index 2 ;\2 = event index 2
;\3 = try to reuse a (optional)
CheckBothEventsSet: MACRO CheckBothEventsSet: MACRO
IF ((\1) / 8) == ((\2) / 8) IF ((\1) / 8) == ((\2) / 8)
IF (_NARG < 3) || (((\1) / 8) != event_byte)
event_byte = ((\1) / 8)
ld a, [wEventFlags + ((\1) / 8)] ld a, [wEventFlags + ((\1) / 8)]
ENDC
and (1 << ((\1) % 8)) | (1 << ((\2) % 8)) and (1 << ((\1) % 8)) | (1 << ((\2) % 8))
cp (1 << ((\1) % 8)) | (1 << ((\2) % 8)) cp (1 << ((\1) % 8)) | (1 << ((\2) % 8))
ELSE ELSE

View file

@ -82,7 +82,7 @@ const_value = 0
const HS_MANSION_1_ITEM_2 ; 49 X const HS_MANSION_1_ITEM_2 ; 49 X
const HS_FIGHTING_DOJO_GIFT_1 ; 4A const HS_FIGHTING_DOJO_GIFT_1 ; 4A
const HS_FIGHTING_DOJO_GIFT_2 ; 4B const HS_FIGHTING_DOJO_GIFT_2 ; 4B
const HS_SILPH_CO_1F_1 ; 4C const HS_SILPH_CO_1F_RECEPTIONIST ; 4C
const HS_VOLTORB_1 ; 4D X const HS_VOLTORB_1 ; 4D X
const HS_VOLTORB_2 ; 4E X const HS_VOLTORB_2 ; 4E X
const HS_VOLTORB_3 ; 4F X const HS_VOLTORB_3 ; 4F X

View file

@ -152,7 +152,7 @@ CinnabarIslandPokecenterBenchGuyText: ; 624df (18:64df)
SaffronCityPokecenterBenchGuyText: ; 624e4 (18:64e4) SaffronCityPokecenterBenchGuyText: ; 624e4 (18:64e4)
TX_ASM TX_ASM
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
ld hl, SaffronCityPokecenterBenchGuyText2 ld hl, SaffronCityPokecenterBenchGuyText2
jr nz, .asm_624f2 jr nz, .asm_624f2
ld hl, SaffronCityPokecenterBenchGuyText1 ld hl, SaffronCityPokecenterBenchGuyText1

View file

@ -322,11 +322,11 @@ BillsHousePC: ; 1eb6e (7:6b6e)
ld a, [wSpriteStateData1 + 9] ld a, [wSpriteStateData1 + 9]
cp SPRITE_FACING_UP cp SPRITE_FACING_UP
ret nz ret nz
CheckEvent EVENT_55F CheckEvent EVENT_LEFT_BILLS_HOUSE_AFTER_HELPING
jr nz, .asm_1ebd2 jr nz, .asm_1ebd2
CheckEventReuseA EVENT_55B CheckEventReuseA EVENT_USED_CELL_SEPARATOR_ON_BILL
jr nz, .asm_1eb86 jr nz, .asm_1eb86
CheckEventReuseA EVENT_55E CheckEventReuseA EVENT_BILL_SAID_USE_CELL_SEPARATOR
jr nz, .asm_1eb8b jr nz, .asm_1eb8b
.asm_1eb86 .asm_1eb86
tx_pre_jump BillsHouseMonitorText tx_pre_jump BillsHouseMonitorText
@ -355,7 +355,7 @@ BillsHousePC: ; 1eb6e (7:6b6e)
call PlaySound call PlaySound
call WaitForSoundToFinish call WaitForSoundToFinish
call PlayDefaultMusic call PlayDefaultMusic
SetEvent EVENT_55B SetEvent EVENT_USED_CELL_SEPARATOR_ON_BILL
ret ret
.asm_1ebd2 .asm_1ebd2
ld a, $1 ld a, $1

View file

@ -432,7 +432,7 @@ ItemUseBall: ; d687 (3:5687)
call ClearSprites call ClearSprites
call SendNewMonToBox call SendNewMonToBox
ld hl,ItemUseBallText07 ld hl,ItemUseBallText07
CheckEvent EVENT_550 CheckEvent EVENT_MET_BILL
jr nz,.sendToBox2 jr nz,.sendToBox2
ld hl,ItemUseBallText08 ld hl,ItemUseBallText08
.sendToBox2 .sendToBox2

View file

@ -28,7 +28,7 @@ DisplayPCMainMenu:: ; 213c8 (8:53c8)
call UpdateSprites call UpdateSprites
ld a, 3 ld a, 3
ld [wMaxMenuItem], a ld [wMaxMenuItem], a
CheckEvent EVENT_550 CheckEvent EVENT_MET_BILL
jr nz, .metBill jr nz, .metBill
coord hl, 2, 2 coord hl, 2, 2
ld de, SomeonesPCText ld de, SomeonesPCText

View file

@ -74,7 +74,7 @@ BillsPC: ; 17ee4 (5:7ee4)
ld a, SFX_ENTER_PC ld a, SFX_ENTER_PC
call PlaySound call PlaySound
call WaitForSoundToFinish call WaitForSoundToFinish
CheckEvent EVENT_550 CheckEvent EVENT_MET_BILL
jr nz, .billsPC ;if you've met bill, use that bill's instead of someone's jr nz, .billsPC ;if you've met bill, use that bill's instead of someone's
ld hl, AccessedSomeonesPCText ld hl, AccessedSomeonesPCText
jr .printText jr .printText

View file

@ -65,7 +65,7 @@ GiveFossilToCinnabarLab: ; 61006 (18:5006)
callba RemoveItemByID callba RemoveItemByID
ld hl, LabFossil_610b8 ld hl, LabFossil_610b8
call PrintText call PrintText
SetEvents EVENT_2E0, EVENT_2E1 SetEvents EVENT_GAVE_FOSSIL_TO_LAB, EVENT_LAB_STILL_REVIVING_FOSSIL
ret ret
.asm_610a7 .asm_610a7
ld hl, LabFossil_610bd ld hl, LabFossil_610bd

View file

@ -2760,7 +2760,7 @@ CheckForForcedBikeSurf: ; cdc0 (3:4dc0)
ld a, [W_CURMAP] ld a, [W_CURMAP]
cp SEAFOAM_ISLANDS_5 cp SEAFOAM_ISLANDS_5
ret nz ret nz
CheckBothEventsSet EVENT_9D0, EVENT_9D1 CheckBothEventsSet EVENT_SEAFOAM4_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM4_BOULDER2_DOWN_HOLE
ret z ret z
ld hl, CoordsData_cdf7 ld hl, CoordsData_cdf7
call ArePlayerCoordsInArray call ArePlayerCoordsInArray

View file

@ -69,7 +69,7 @@ AgathaScript0: ; 76490 (1d:6490)
ld a, [wCoordIndex] ld a, [wCoordIndex]
cp $3 cp $3
jr c, .asm_764b4 jr c, .asm_764b4
CheckAndSetEvent EVENT_8F6 CheckAndSetEvent EVENT_AUTOWALKED_INTO_AGATHAS_ROOM
jr z, AgathaScript_76474 jr z, AgathaScript_76474
.asm_764b4 .asm_764b4
ld a, $2 ld a, $2

View file

@ -8,7 +8,7 @@ BikeShopTextPointers: ; 1d73f (7:573f)
BikeShopText1: ; 1d745 (7:5745) BikeShopText1: ; 1d745 (7:5745)
TX_ASM TX_ASM
CheckEvent EVENT_0C0 CheckEvent EVENT_GOT_BICYCLE
jr z, .asm_260d4 jr z, .asm_260d4
ld hl, BikeShopText_1d82f ld hl, BikeShopText_1d82f
call PrintText call PrintText
@ -25,7 +25,7 @@ BikeShopText1: ; 1d745 (7:5745)
ld a, BIKE_VOUCHER ld a, BIKE_VOUCHER
ld [$ffdb], a ld [$ffdb], a
callba RemoveItemByID callba RemoveItemByID
SetEvent EVENT_0C0 SetEvent EVENT_GOT_BICYCLE
ld hl, BikeShopText_1d824 ld hl, BikeShopText_1d824
call PrintText call PrintText
jr .Done jr .Done
@ -129,7 +129,7 @@ BikeShopText_1d843: ; 1d843 (7:5843)
BikeShopText3: ; 1d848 (7:5848) BikeShopText3: ; 1d848 (7:5848)
TX_ASM TX_ASM
CheckEvent EVENT_0C0 CheckEvent EVENT_GOT_BICYCLE
ld hl, BikeShopText_1d861 ld hl, BikeShopText_1d861
jr nz, .asm_34d2d jr nz, .asm_34d2d
ld hl, BikeShopText_1d85c ld hl, BikeShopText_1d85c

View file

@ -51,7 +51,7 @@ BillsHouseScript2: ; 1e7a6 (7:67a6)
ld a, HS_BILL_POKEMON ld a, HS_BILL_POKEMON
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject
SetEvent EVENT_55E SetEvent EVENT_BILL_SAID_USE_CELL_SEPARATOR
xor a xor a
ld [wJoyIgnore], a ld [wJoyIgnore], a
ld a, $3 ld a, $3
@ -59,7 +59,7 @@ BillsHouseScript2: ; 1e7a6 (7:67a6)
ret ret
BillsHouseScript3: ; 1e7c5 (7:67c5) BillsHouseScript3: ; 1e7c5 (7:67c5)
CheckEvent EVENT_55B CheckEvent EVENT_USED_CELL_SEPARATOR_ON_BILL
ret z ret z
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
@ -101,8 +101,8 @@ BillsHouseScript4: ; 1e80d (7:680d)
ret nz ret nz
xor a xor a
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEvent EVENT_55D SetEvent EVENT_MET_BILL_2 ; this event seems redundant
SetEvent EVENT_550 SetEvent EVENT_MET_BILL
ld a, $0 ld a, $0
ld [W_BILLSHOUSECURSCRIPT], a ld [W_BILLSHOUSECURSCRIPT], a
ret ret
@ -159,7 +159,7 @@ BillsHouseText_1e86f: ; 1e86f (7:686f)
BillsHouseText2: ; 1e874 (7:6874) BillsHouseText2: ; 1e874 (7:6874)
TX_ASM TX_ASM
CheckEvent EVENT_55C CheckEvent EVENT_GOT_SS_TICKET
jr nz, .asm_1e8a9 jr nz, .asm_1e8a9
ld hl, BillThankYouText ld hl, BillThankYouText
call PrintText call PrintText
@ -168,7 +168,7 @@ BillsHouseText2: ; 1e874 (7:6874)
jr nc, .BagFull jr nc, .BagFull
ld hl, SSTicketReceivedText ld hl, SSTicketReceivedText
call PrintText call PrintText
SetEvent EVENT_55C SetEvent EVENT_GOT_SS_TICKET
ld a, HS_CERULEAN_GUARD_1 ld a, HS_CERULEAN_GUARD_1
ld [wcc4d], a ld [wcc4d], a
predef ShowObject predef ShowObject

View file

@ -9,7 +9,7 @@ BluesHouseScriptPointers: ; 19b47 (6:5b47)
dw BluesHouseScript1 dw BluesHouseScript1
BluesHouseScript0: ; 19b4b (6:5b4b) BluesHouseScript0: ; 19b4b (6:5b4b)
SetEvent EVENT_019 SetEvent EVENT_ENTERED_BLUES_HOUSE
; trigger the next script ; trigger the next script
ld a,1 ld a,1
@ -26,7 +26,7 @@ BluesHouseTextPointers: ; 19b57 (6:5b57)
BluesHouseText1: ; 19b5d (6:5b5d) BluesHouseText1: ; 19b5d (6:5b5d)
TX_ASM TX_ASM
CheckEvent EVENT_018 CheckEvent EVENT_GOT_TOWN_MAP
jr nz,.GotMap jr nz,.GotMap
CheckEvent EVENT_GOT_POKEDEX CheckEvent EVENT_GOT_POKEDEX
jr nz,.GiveMap jr nz,.GiveMap
@ -44,7 +44,7 @@ BluesHouseText1: ; 19b5d (6:5b5d)
predef HideObject ; hide table map object predef HideObject ; hide table map object
ld hl,GotMapText ld hl,GotMapText
call PrintText call PrintText
SetEvent EVENT_018 SetEvent EVENT_GOT_TOWN_MAP
jr .done jr .done
.GotMap .GotMap
ld hl,DaisyUseMapText ld hl,DaisyUseMapText

View file

@ -69,7 +69,7 @@ BrunoScript0: ; 76339 (1d:6339)
ld a, [wCoordIndex] ld a, [wCoordIndex]
cp $3 cp $3
jr c, .asm_7635d jr c, .asm_7635d
CheckAndSetEvent EVENT_8EE CheckAndSetEvent EVENT_AUTOWALKED_INTO_BRUNOS_ROOM
jr z, BrunoScript_7631d jr z, BrunoScript_7631d
.asm_7635d .asm_7635d
ld a, $2 ld a, $2

View file

@ -42,7 +42,7 @@ CeladonCityText4: ; 19999 (6:5999)
CeladonCityText5: ; 1999e (6:599e) CeladonCityText5: ; 1999e (6:599e)
TX_ASM TX_ASM
CheckEvent EVENT_180 CheckEvent EVENT_GOT_TM41
jr nz, .asm_7053f jr nz, .asm_7053f
ld hl, TM41PreText ld hl, TM41PreText
call PrintText call PrintText
@ -55,7 +55,7 @@ CeladonCityText5: ; 1999e (6:599e)
.Success .Success
ld hl, ReceivedTM41Text ld hl, ReceivedTM41Text
call PrintText call PrintText
SetEvent EVENT_180 SetEvent EVENT_GOT_TM41
jr .Done jr .Done
.asm_7053f .asm_7053f
ld hl, TM41ExplanationText ld hl, TM41ExplanationText

View file

@ -27,14 +27,14 @@ CeladonDinerText4: ; 4916e (12:516e)
CeladonDinerText5: ; 49173 (12:5173) CeladonDinerText5: ; 49173 (12:5173)
TX_ASM TX_ASM
CheckEvent EVENT_1E0 CheckEvent EVENT_GOT_COIN_CASE
jr nz, .asm_eb14d jr nz, .asm_eb14d
ld hl, CeladonDinerText_491a7 ld hl, CeladonDinerText_491a7
call PrintText call PrintText
ld bc, (COIN_CASE << 8) | 1 ld bc, (COIN_CASE << 8) | 1
call GiveItem call GiveItem
jr nc, .BagFull jr nc, .BagFull
SetEvent EVENT_1E0 SetEvent EVENT_GOT_COIN_CASE
ld hl, ReceivedCoinCaseText ld hl, ReceivedCoinCaseText
call PrintText call PrintText
jr .asm_68b61 jr .asm_68b61

View file

@ -28,7 +28,7 @@ CeladonGameCornerScript_48bec: ; 48bec (12:4bec)
bit 5, [hl] bit 5, [hl]
res 5, [hl] res 5, [hl]
ret z ret z
CheckEvent EVENT_1B9 CheckEvent EVENT_FOUND_ROCKET_HIDEOUT
ret nz ret nz
ld a, $2a ld a, $2a
ld [wd09f], a ld [wd09f], a
@ -226,7 +226,7 @@ CeladonGameCornerText4: ; 48d45 (12:4d45)
CeladonGameCornerText5: ; 48d4a (12:4d4a) CeladonGameCornerText5: ; 48d4a (12:4d4a)
TX_ASM TX_ASM
CheckEvent EVENT_1BA CheckEvent EVENT_GOT_10_COINS
jr nz, .asm_48d89 jr nz, .asm_48d89
ld hl, CeladonGameCornerText_48d9c ld hl, CeladonGameCornerText_48d9c
call PrintText call PrintText
@ -244,7 +244,7 @@ CeladonGameCornerText5: ; 48d4a (12:4d4a)
ld hl, hCoins + 1 ld hl, hCoins + 1
ld c, $2 ld c, $2
predef AddBCDPredef predef AddBCDPredef
SetEvent EVENT_1BA SetEvent EVENT_GOT_10_COINS
ld a, $1 ld a, $1
ld [wDoNotWaitForButtonPressAfterDisplayingText], a ld [wDoNotWaitForButtonPressAfterDisplayingText], a
ld hl, Received10CoinsText ld hl, Received10CoinsText
@ -305,7 +305,7 @@ CeladonGameCornerText8: ; 48dd4 (12:4dd4)
CeladonGameCornerText9: ; 48dd9 (12:4dd9) CeladonGameCornerText9: ; 48dd9 (12:4dd9)
TX_ASM TX_ASM
CheckEvent EVENT_1BC CheckEvent EVENT_GOT_20_COINS_2
jr nz, .asm_48e13 jr nz, .asm_48e13
ld hl, CeladonGameCornerText_48e26 ld hl, CeladonGameCornerText_48e26
call PrintText call PrintText
@ -323,7 +323,7 @@ CeladonGameCornerText9: ; 48dd9 (12:4dd9)
ld hl, hCoins + 1 ld hl, hCoins + 1
ld c, $2 ld c, $2
predef AddBCDPredef predef AddBCDPredef
SetEvent EVENT_1BC SetEvent EVENT_GOT_20_COINS_2
ld hl, Received20CoinsText ld hl, Received20CoinsText
jr .asm_48e20 jr .asm_48e20
.asm_48e13 .asm_48e13
@ -356,7 +356,7 @@ CeladonGameCornerText_48e36: ; 48e36 (12:4e36)
CeladonGameCornerText10: ; 48e3b (12:4e3b) CeladonGameCornerText10: ; 48e3b (12:4e3b)
TX_ASM TX_ASM
CheckEvent EVENT_1BB CheckEvent EVENT_GOT_20_COINS
jr nz, .asm_48e75 jr nz, .asm_48e75
ld hl, CeladonGameCornerText_48e88 ld hl, CeladonGameCornerText_48e88
call PrintText call PrintText
@ -374,7 +374,7 @@ CeladonGameCornerText10: ; 48e3b (12:4e3b)
ld hl, hCoins + 1 ld hl, hCoins + 1
ld c, $2 ld c, $2
predef AddBCDPredef predef AddBCDPredef
SetEvent EVENT_1BB SetEvent EVENT_GOT_20_COINS
ld hl, CeladonGameCornerText_48e8d ld hl, CeladonGameCornerText_48e8d
jr .asm_48e82 jr .asm_48e82
.asm_48e75 .asm_48e75
@ -449,7 +449,7 @@ CeladonGameCornerText12: ; 48edd (12:4edd)
ld a, SFX_GO_INSIDE ld a, SFX_GO_INSIDE
call PlaySound call PlaySound
call WaitForSoundToFinish call WaitForSoundToFinish
SetEvent EVENT_1B9 SetEvent EVENT_FOUND_ROCKET_HIDEOUT
ld a, $43 ld a, $43
ld [wd09f], a ld [wd09f], a
ld bc, $0208 ld bc, $0208

View file

@ -22,14 +22,14 @@ CeladonMart3TextPointers: ; 48228 (12:4228)
CeladonMart3Text1: ; 4824a (12:424a) CeladonMart3Text1: ; 4824a (12:424a)
TX_ASM TX_ASM
CheckEvent EVENT_18F CheckEvent EVENT_GOT_TM18
jr nz, .asm_a5463 jr nz, .asm_a5463
ld hl, TM18PreReceiveText ld hl, TM18PreReceiveText
call PrintText call PrintText
ld bc, (TM_18 << 8) | 1 ld bc, (TM_18 << 8) | 1
call GiveItem call GiveItem
jr nc, .BagFull jr nc, .BagFull
SetEvent EVENT_18F SetEvent EVENT_GOT_TM18
ld hl, ReceivedTM18Text ld hl, ReceivedTM18Text
jr .asm_81359 jr .asm_81359
.BagFull .BagFull

View file

@ -83,7 +83,7 @@ CeladonMartRoofScript_4840c: ; 4840c (12:440c)
jr z, .asm_484b6 jr z, .asm_484b6
cp SODA_POP cp SODA_POP
jr z, .asm_48492 jr z, .asm_48492
CheckEvent EVENT_18E CheckEvent EVENT_GOT_TM49
jr nz, .asm_484e0 jr nz, .asm_484e0
ld hl, CeladonMartRoofText_48515 ld hl, CeladonMartRoofText_48515
call PrintText call PrintText
@ -93,10 +93,10 @@ CeladonMartRoofScript_4840c: ; 4840c (12:440c)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedTM49Text ld hl, ReceivedTM49Text
call PrintText call PrintText
SetEvent EVENT_18E SetEvent EVENT_GOT_TM49
ret ret
.asm_48492 .asm_48492
CheckEvent EVENT_18D CheckEvent EVENT_GOT_TM48
jr nz, .asm_484e0 jr nz, .asm_484e0
ld hl, CeladonMartRoofText_48504 ld hl, CeladonMartRoofText_48504
call PrintText call PrintText
@ -106,10 +106,10 @@ CeladonMartRoofScript_4840c: ; 4840c (12:440c)
jr nc, .BagFull jr nc, .BagFull
ld hl, CeladonMartRoofText_4850a ld hl, CeladonMartRoofText_4850a
call PrintText call PrintText
SetEvent EVENT_18D SetEvent EVENT_GOT_TM48
ret ret
.asm_484b6 .asm_484b6
CheckEvent EVENT_18C CheckEvent EVENT_GOT_TM13
jr nz, .asm_484e0 jr nz, .asm_484e0
ld hl, CeladonMartRoofText_484f3 ld hl, CeladonMartRoofText_484f3
call PrintText call PrintText
@ -119,7 +119,7 @@ CeladonMartRoofScript_4840c: ; 4840c (12:440c)
jr nc, .BagFull jr nc, .BagFull
ld hl, CeladonMartRoofText_484f9 ld hl, CeladonMartRoofText_484f9
call PrintText call PrintText
SetEvent EVENT_18C SetEvent EVENT_GOT_TM13
ret ret
.BagFull .BagFull
ld hl, CeladonMartRoofText_48526 ld hl, CeladonMartRoofText_48526

View file

@ -25,7 +25,7 @@ CeruleanCityScript4: ; 194a7 (6:54a7)
jp z, CeruleanCityScript_1948c jp z, CeruleanCityScript_1948c
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEvent EVENT_0A7 SetEvent EVENT_BEAT_CERULEAN_ROCKET_THIEF
ld a, $2 ld a, $2
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
@ -35,7 +35,7 @@ CeruleanCityScript4: ; 194a7 (6:54a7)
ret ret
CeruleanCityScript0: ; 194c8 (6:54c8) CeruleanCityScript0: ; 194c8 (6:54c8)
CheckEvent EVENT_0A7 CheckEvent EVENT_BEAT_CERULEAN_ROCKET_THIEF
jr nz, .asm_194f7 jr nz, .asm_194f7
ld hl, CeruleanCityCoords1 ld hl, CeruleanCityCoords1
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -56,7 +56,7 @@ CeruleanCityScript0: ; 194c8 (6:54c8)
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
jp DisplayTextID jp DisplayTextID
.asm_194f7 .asm_194f7
CheckEvent EVENT_098 CheckEvent EVENT_BEAT_CERULEAN_RIVAL
ret nz ret nz
ld hl, CeruleanCityCoords2 ld hl, CeruleanCityCoords2
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -167,7 +167,7 @@ CeruleanCityScript2: ; 195b1 (6:55b1)
call CeruleanCityScript_1955d call CeruleanCityScript_1955d
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEvent EVENT_098 SetEvent EVENT_BEAT_CERULEAN_RIVAL
ld a, $1 ld a, $1
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
@ -248,7 +248,7 @@ CeruleanCityTextPointers: ; 1962d (6:562d)
CeruleanCityText1: ; 1964f (6:564f) CeruleanCityText1: ; 1964f (6:564f)
TX_ASM TX_ASM
CheckEvent EVENT_098 CheckEvent EVENT_BEAT_CERULEAN_RIVAL
; do pre-battle text ; do pre-battle text
jr z, .PreBattleText jr z, .PreBattleText
; or talk about bill ; or talk about bill
@ -279,7 +279,7 @@ CeruleanCityText_19677: ; 19677 (6:5677)
CeruleanCityText2: ; 1967c (6:567c) CeruleanCityText2: ; 1967c (6:567c)
TX_ASM TX_ASM
CheckEvent EVENT_0A7 CheckEvent EVENT_BEAT_CERULEAN_ROCKET_THIEF
jr nz, .asm_4ca20 jr nz, .asm_4ca20
ld hl, CeruleanCityText_196d9 ld hl, CeruleanCityText_196d9
call PrintText call PrintText

View file

@ -2,8 +2,8 @@ CinnabarIslandScript: ; 1ca19 (7:4a19)
call EnableAutoTextBoxDrawing call EnableAutoTextBoxDrawing
ld hl, wd126 ld hl, wd126
set 5, [hl] set 5, [hl]
ResetEvent EVENT_278 ResetEvent EVENT_MANSION_SWITCH_ON
ResetEvent EVENT_2E1 ResetEvent EVENT_LAB_STILL_REVIVING_FOSSIL
ld hl, CinnabarIslandScriptPointers ld hl, CinnabarIslandScriptPointers
ld a, [W_CINNABARISLANDCURSCRIPT] ld a, [W_CINNABARISLANDCURSCRIPT]
jp CallFunctionInTable jp CallFunctionInTable

View file

@ -12,7 +12,7 @@ CopycatsHouse2FTextPointers: ; 5cc74 (17:4c74)
CopycatsHouse2FText1: ; 5cc82 (17:4c82) CopycatsHouse2FText1: ; 5cc82 (17:4c82)
TX_ASM TX_ASM
CheckEvent EVENT_340 CheckEvent EVENT_GOT_TM31
jr nz, .asm_7ccf3 jr nz, .asm_7ccf3
ld a, $1 ld a, $1
ld [wDoNotWaitForButtonPressAfterDisplayingText], a ld [wDoNotWaitForButtonPressAfterDisplayingText], a
@ -31,7 +31,7 @@ CopycatsHouse2FText1: ; 5cc82 (17:4c82)
ld a, POKE_DOLL ld a, POKE_DOLL
ld [$ffdb], a ld [$ffdb], a
callba RemoveItemByID callba RemoveItemByID
SetEvent EVENT_340 SetEvent EVENT_GOT_TM31
jr .asm_62ecd jr .asm_62ecd
.BagFull .BagFull
ld hl, TM31NoRoomText ld hl, TM31NoRoomText

View file

@ -24,16 +24,16 @@ FanClubTextPointers: ; 59b84 (16:5b84)
FanClubText1: FanClubText1:
; pikachu fan ; pikachu fan
TX_ASM TX_ASM
CheckEvent EVENT_157 CheckEvent EVENT_PIKACHU_FAN_BOAST
jr nz, .mineisbetter jr nz, .mineisbetter
ld hl, .normaltext ld hl, .normaltext
call PrintText call PrintText
SetEvent EVENT_156 SetEvent EVENT_SEEL_FAN_BOAST
jr .done jr .done
.mineisbetter .mineisbetter
ld hl, .bettertext ld hl, .bettertext
call PrintText call PrintText
ResetEvent EVENT_157 ResetEvent EVENT_PIKACHU_FAN_BOAST
.done .done
jp TextScriptEnd jp TextScriptEnd
@ -48,16 +48,16 @@ FanClubText1:
FanClubText2: FanClubText2:
; seel fan ; seel fan
TX_ASM TX_ASM
CheckEvent EVENT_156 CheckEvent EVENT_SEEL_FAN_BOAST
jr nz, .mineisbetter jr nz, .mineisbetter
ld hl, .normaltext ld hl, .normaltext
call PrintText call PrintText
SetEvent EVENT_157 SetEvent EVENT_PIKACHU_FAN_BOAST
jr .done jr .done
.mineisbetter .mineisbetter
ld hl, .bettertext ld hl, .bettertext
call PrintText call PrintText
ResetEvent EVENT_156 ResetEvent EVENT_SEEL_FAN_BOAST
.done .done
jp TextScriptEnd jp TextScriptEnd

View file

@ -21,13 +21,13 @@ FightingDojoScriptPointers: ; 5cd7b (17:4d7b)
dw FightingDojoScript3 dw FightingDojoScript3
FightingDojoScript1: ; 5cd83 (17:4d83) FightingDojoScript1: ; 5cd83 (17:4d83)
CheckEvent EVENT_350 CheckEvent EVENT_DEFEATED_FIGHTING_DOJO
ret nz ret nz
call CheckFightingMapTrainers call CheckFightingMapTrainers
ld a, [wTrainerHeaderFlagBit] ld a, [wTrainerHeaderFlagBit]
and a and a
ret nz ret nz
CheckEvent EVENT_351 CheckEvent EVENT_BEAT_KARATE_MASTER
ret nz ret nz
xor a xor a
ld [hJoyHeld], a ld [hJoyHeld], a
@ -70,7 +70,7 @@ FightingDojoScript3: ; 5cdc6 (17:4dc6)
.asm_5cde4 .asm_5cde4
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEventRange EVENT_351, EVENT_BEAT_FIGHTING_DOJO_TRAINER_3 SetEventRange EVENT_BEAT_KARATE_MASTER, EVENT_BEAT_FIGHTING_DOJO_TRAINER_3
ld a, $8 ld a, $8
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
@ -131,9 +131,9 @@ FightingDojoTrainerHeader3: ; 5ce37 (17:4e37)
FightingDojoText1: ; 5ce44 (17:4e44) FightingDojoText1: ; 5ce44 (17:4e44)
TX_ASM TX_ASM
CheckEvent EVENT_350 CheckEvent EVENT_DEFEATED_FIGHTING_DOJO
jp nz, .continue1 jp nz, .continue1
CheckEventReuseA EVENT_351 CheckEventReuseA EVENT_BEAT_KARATE_MASTER
jp nz, .continue2 jp nz, .continue2
ld hl, FightingDojoText_5ce8e ld hl, FightingDojoText_5ce8e
call PrintText call PrintText
@ -252,7 +252,7 @@ FightingDojoAfterBattleText4: ; 5cf01 (17:4f01)
FightingDojoText6: ; 5cf06 (17:4f06) FightingDojoText6: ; 5cf06 (17:4f06)
; Hitmonlee Poké Ball ; Hitmonlee Poké Ball
TX_ASM TX_ASM
CheckEitherEventSet EVENT_356, EVENT_357 CheckEitherEventSet EVENT_GOT_HITMONLEE, EVENT_GOT_HITMONCHAN
jr z, .GetMon jr z, .GetMon
ld hl, OtherHitmonText ld hl, OtherHitmonText
call PrintText call PrintText
@ -276,7 +276,7 @@ FightingDojoText6: ; 5cf06 (17:4f06)
ld a, HS_FIGHTING_DOJO_GIFT_1 ld a, HS_FIGHTING_DOJO_GIFT_1
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject
SetEvents EVENT_356, EVENT_350 SetEvents EVENT_GOT_HITMONLEE, EVENT_DEFEATED_FIGHTING_DOJO
.done .done
jp TextScriptEnd jp TextScriptEnd
@ -287,7 +287,7 @@ WantHitmonleeText: ; 5cf49 (17:4f49)
FightingDojoText7: ; 5cf4e (17:4f4e) FightingDojoText7: ; 5cf4e (17:4f4e)
; Hitmonchan Poké Ball ; Hitmonchan Poké Ball
TX_ASM TX_ASM
CheckEitherEventSet EVENT_356, EVENT_357 CheckEitherEventSet EVENT_GOT_HITMONLEE, EVENT_GOT_HITMONCHAN
jr z, .GetMon jr z, .GetMon
ld hl, OtherHitmonText ld hl, OtherHitmonText
call PrintText call PrintText
@ -306,7 +306,7 @@ FightingDojoText7: ; 5cf4e (17:4f4e)
ld c,30 ld c,30
call GivePokemon call GivePokemon
jr nc, .done jr nc, .done
SetEvents EVENT_357, EVENT_350 SetEvents EVENT_GOT_HITMONCHAN, EVENT_DEFEATED_FIGHTING_DOJO
; once Poké Ball is taken, hide sprite ; once Poké Ball is taken, hide sprite
ld a, HS_FIGHTING_DOJO_GIFT_2 ld a, HS_FIGHTING_DOJO_GIFT_2

View file

@ -135,9 +135,9 @@ FuchsiaCityLaprasText: ; 19aef (6:5aef)
FuchsiaCityText24: ; 19af4 (6:5af4) FuchsiaCityText24: ; 19af4 (6:5af4)
TX_ASM TX_ASM
CheckEvent EVENT_57E CheckEvent EVENT_GOT_DOME_FOSSIL
jr nz, .asm_3b4e8 jr nz, .asm_3b4e8
CheckEventReuseA EVENT_57F CheckEventReuseA EVENT_GOT_HELIX_FOSSIL
jr nz, .asm_667d5 jr nz, .asm_667d5
ld hl, FuchsiaCityText_19b2a ld hl, FuchsiaCityText_19b2a
call PrintText call PrintText

View file

@ -10,12 +10,12 @@ FuchsiaHouse2TextPointers: ; 750b8 (1d:50b8)
FuchsiaHouse2Text1: ; 750c2 (1d:50c2) FuchsiaHouse2Text1: ; 750c2 (1d:50c2)
TX_ASM TX_ASM
CheckEvent EVENT_238 CheckEvent EVENT_GOT_HM04
jr nz, .subtract jr nz, .subtract
ld b,GOLD_TEETH ld b,GOLD_TEETH
call IsItemInBag call IsItemInBag
jr nz, .asm_3f30f jr nz, .asm_3f30f
CheckEvent EVENT_239 CheckEvent EVENT_GAVE_GOLD_TEETH
jr nz, .asm_60cba jr nz, .asm_60cba
ld hl, WardenGibberishText1 ld hl, WardenGibberishText1
call PrintText call PrintText
@ -34,7 +34,7 @@ FuchsiaHouse2Text1: ; 750c2 (1d:50c2)
ld a, GOLD_TEETH ld a, GOLD_TEETH
ld [$ffdb], a ld [$ffdb], a
callba RemoveItemByID callba RemoveItemByID
SetEvent EVENT_239 SetEvent EVENT_GAVE_GOLD_TEETH
.asm_60cba .asm_60cba
ld hl, WardenThankYouText ld hl, WardenThankYouText
call PrintText call PrintText
@ -43,7 +43,7 @@ FuchsiaHouse2Text1: ; 750c2 (1d:50c2)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedHM04Text ld hl, ReceivedHM04Text
call PrintText call PrintText
SetEvent EVENT_238 SetEvent EVENT_GOT_HM04
jr .asm_52039 jr .asm_52039
.subtract .subtract
ld hl, HM04ExplanationText ld hl, HM04ExplanationText

View file

@ -94,7 +94,7 @@ GaryScript3: ; 75fbb (1d:5fbb)
cp $ff cp $ff
jp z, GaryScript_75f29 jp z, GaryScript_75f29
call UpdateSprites call UpdateSprites
SetEvent EVENT_901 SetEvent EVENT_BEAT_CHAMPION_RIVAL
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
ld a, $1 ld a, $1
@ -248,7 +248,7 @@ GaryTextPointers: ; 760d6 (1d:60d6)
GaryText1: ; 760e0 (1d:60e0) GaryText1: ; 760e0 (1d:60e0)
TX_ASM TX_ASM
CheckEvent EVENT_901 CheckEvent EVENT_BEAT_CHAMPION_RIVAL
ld hl, GaryText_760f4 ld hl, GaryText_760f4
jr z, .asm_17e9f jr z, .asm_17e9f
ld hl, GaryText_76103 ld hl, GaryText_76103

View file

@ -40,7 +40,7 @@ HallofFameRoomScript2: ; 5a4bb (16:64bb)
ld [W_LANCECURSCRIPT], a ld [W_LANCECURSCRIPT], a
ld [W_HALLOFFAMEROOMCURSCRIPT], a ld [W_HALLOFFAMEROOMCURSCRIPT], a
; Elite 4 events ; Elite 4 events
ResetEventRange EVENT_8E0, EVENT_907, 1 ResetEventRange EVENT_ELITE4_EVENTS_START, EVENT_907, 1
xor a xor a
ld [W_HALLOFFAMEROOMCURSCRIPT], a ld [W_HALLOFFAMEROOMCURSCRIPT], a
ld a, PALLET_TOWN ld a, PALLET_TOWN

View file

@ -5,13 +5,13 @@ IndigoPlateauLobbyScript: ; 19c5b (6:5c5b)
bit 6, [hl] bit 6, [hl]
res 6, [hl] res 6, [hl]
ret z ret z
ResetEvent EVENT_917 ResetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
ld hl, wd734 ld hl, wd734
bit 1, [hl] bit 1, [hl]
res 1, [hl] res 1, [hl]
ret z ret z
; Elite 4 events ; Elite 4 events
ResetEventRange EVENT_8E0, EVENT_8FF ResetEventRange EVENT_ELITE4_EVENTS_START, EVENT_LANCES_ROOM_LOCK_DOOR
ret ret
IndigoPlateauLobbyTextPointers: ; 19c7f (6:5c7f) IndigoPlateauLobbyTextPointers: ; 19c7f (6:5c7f)

View file

@ -10,7 +10,7 @@ Lab3TextPointers: ; 75c8a (1d:5c8a)
Lab3Text1: ; 75c94 (1d:5c94) Lab3Text1: ; 75c94 (1d:5c94)
TX_ASM TX_ASM
CheckEvent EVENT_2D7 CheckEvent EVENT_GOT_TM35
jr nz, .asm_e551a jr nz, .asm_e551a
ld hl, TM35PreReceiveText ld hl, TM35PreReceiveText
call PrintText call PrintText
@ -19,7 +19,7 @@ Lab3Text1: ; 75c94 (1d:5c94)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedTM35Text ld hl, ReceivedTM35Text
call PrintText call PrintText
SetEvent EVENT_2D7 SetEvent EVENT_GOT_TM35
jr .asm_eb896 jr .asm_eb896
.BagFull .BagFull
ld hl, TM35NoRoomText ld hl, TM35NoRoomText

View file

@ -49,7 +49,7 @@ FossilsList: ; 75d68 (1d:5d68)
Lab4Text1: ; 75d6c (1d:5d6c) Lab4Text1: ; 75d6c (1d:5d6c)
TX_ASM TX_ASM
CheckEvent EVENT_2E0 CheckEvent EVENT_GAVE_FOSSIL_TO_LAB
jr nz, .asm_75d96 jr nz, .asm_75d96
ld hl, Lab4Text_75dc6 ld hl, Lab4Text_75dc6
call PrintText call PrintText
@ -65,7 +65,7 @@ Lab4Text1: ; 75d6c (1d:5d6c)
.asm_75d93 .asm_75d93
jp TextScriptEnd jp TextScriptEnd
.asm_75d96 .asm_75d96
bit 1, a CheckEventAfterBranchReuseA EVENT_LAB_STILL_REVIVING_FOSSIL, EVENT_GAVE_FOSSIL_TO_LAB
jr z, .asm_75da2 jr z, .asm_75da2
ld hl, Lab4Text_75dd0 ld hl, Lab4Text_75dd0
call PrintText call PrintText
@ -74,13 +74,13 @@ Lab4Text1: ; 75d6c (1d:5d6c)
call LoadFossilItemAndMonNameBank1D call LoadFossilItemAndMonNameBank1D
ld hl, Lab4Text_75dd5 ld hl, Lab4Text_75dd5
call PrintText call PrintText
SetEvent EVENT_2E2 SetEvent EVENT_LAB_HANDING_OVER_FOSSIL_MON
ld a, [W_FOSSILMON] ld a, [W_FOSSILMON]
ld b, a ld b, a
ld c, 30 ld c, 30
call GivePokemon call GivePokemon
jr nc, .asm_75d93 jr nc, .asm_75d93
ResetEvents EVENT_2E0, EVENT_2E1, EVENT_2E2 ResetEvents EVENT_GAVE_FOSSIL_TO_LAB, EVENT_LAB_STILL_REVIVING_FOSSIL, EVENT_LAB_HANDING_OVER_FOSSIL_MON
jr .asm_75d93 jr .asm_75d93
Lab4Text_75dc6: ; 75dc6 (1d:5dc6) Lab4Text_75dc6: ; 75dc6 (1d:5dc6)

View file

@ -13,7 +13,7 @@ LanceScript_5a2c4: ; 5a2c4 (16:62c4)
bit 5, [hl] bit 5, [hl]
res 5, [hl] res 5, [hl]
ret z ret z
CheckEvent EVENT_8FF CheckEvent EVENT_LANCES_ROOM_LOCK_DOOR
jr nz, .asm_5a2da jr nz, .asm_5a2da
ld a, $31 ld a, $31
ld b, $32 ld b, $32
@ -51,7 +51,7 @@ LanceScript4: ; 5a304 (16:6304)
ret ret
LanceScript0: ; 5a305 (16:6305) LanceScript0: ; 5a305 (16:6305)
CheckEvent EVENT_8FE CheckEvent EVENT_BEAT_LANCE
ret nz ret nz
ld hl, CoordsData_5a33e ld hl, CoordsData_5a33e
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -67,7 +67,7 @@ LanceScript0: ; 5a305 (16:6305)
.asm_5a325 .asm_5a325
cp $5 cp $5
jr z, LanceScript_5a35b jr z, LanceScript_5a35b
CheckAndSetEvent EVENT_8FF CheckAndSetEvent EVENT_LANCES_ROOM_LOCK_DOOR
ret nz ret nz
ld hl, wd126 ld hl, wd126
set 5, [hl] set 5, [hl]
@ -156,5 +156,5 @@ LanceEndBattleText: ; 5a3b3 (16:63b3)
LanceAfterBattleText: ; 5a3b8 (16:63b8) LanceAfterBattleText: ; 5a3b8 (16:63b8)
TX_FAR _LanceAfterBattleText TX_FAR _LanceAfterBattleText
TX_ASM TX_ASM
SetEvent EVENT_8FE SetEvent EVENT_BEAT_LANCE
jp TextScriptEnd jp TextScriptEnd

View file

@ -12,7 +12,7 @@ LavenderHouse1TextPointers: ; 1d8ac (7:58ac)
LavenderHouse1Text1: ; 1d8b8 (7:58b8) LavenderHouse1Text1: ; 1d8b8 (7:58b8)
TX_ASM TX_ASM
CheckEvent EVENT_4CF CheckEvent EVENT_RESCUED_MR_FUJI
jr nz, .asm_72e5d jr nz, .asm_72e5d
ld hl, LavenderHouse1Text_1d8d1 ld hl, LavenderHouse1Text_1d8d1
call PrintText call PrintText
@ -33,7 +33,7 @@ LavenderHouse1Text_1d8d6: ; 1d8d6 (7:58d6)
LavenderHouse1Text2: ; 1d8db (7:58db) LavenderHouse1Text2: ; 1d8db (7:58db)
TX_ASM TX_ASM
CheckEvent EVENT_4CF CheckEvent EVENT_RESCUED_MR_FUJI
jr nz, .asm_06470 jr nz, .asm_06470
ld hl, LavenderHouse1Text_1d8f4 ld hl, LavenderHouse1Text_1d8f4
call PrintText call PrintText
@ -68,7 +68,7 @@ LavenderHouse1Text4: ; 1d90b (7:590b)
LavenderHouse1Text5: ; 1d918 (7:5918) LavenderHouse1Text5: ; 1d918 (7:5918)
TX_ASM TX_ASM
CheckEvent EVENT_128 CheckEvent EVENT_GOT_POKE_FLUTE
jr nz, .asm_15ac2 jr nz, .asm_15ac2
ld hl, LavenderHouse1Text_1d94c ld hl, LavenderHouse1Text_1d94c
call PrintText call PrintText
@ -77,7 +77,7 @@ LavenderHouse1Text5: ; 1d918 (7:5918)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedFluteText ld hl, ReceivedFluteText
call PrintText call PrintText
SetEvent EVENT_128 SetEvent EVENT_GOT_POKE_FLUTE
jr .asm_da749 jr .asm_da749
.BagFull .BagFull
ld hl, FluteNoRoomText ld hl, FluteNoRoomText

View file

@ -15,7 +15,7 @@ LavenderHouse2Text1: ; 1d9b6 (7:59b6)
LavenderHouse2Text2: ; 1d9c3 (7:59c3) LavenderHouse2Text2: ; 1d9c3 (7:59c3)
TX_ASM TX_ASM
CheckEvent EVENT_4CF CheckEvent EVENT_RESCUED_MR_FUJI
jr nz, .asm_65711 jr nz, .asm_65711
ld hl, LavenderHouse2Text_1d9dc ld hl, LavenderHouse2Text_1d9dc
call PrintText call PrintText

View file

@ -12,7 +12,7 @@ LavenderMartText2: ; 5c935 (17:4935)
LavenderMartText3: ; 5c93a (17:493a) LavenderMartText3: ; 5c93a (17:493a)
TX_ASM TX_ASM
CheckEvent EVENT_4CF CheckEvent EVENT_RESCUED_MR_FUJI
jr nz, .asm_c88d4 jr nz, .asm_c88d4
ld hl, LavenderMart_5c953 ld hl, LavenderMart_5c953
call PrintText call PrintText

View file

@ -70,7 +70,7 @@ LoreleiScript0: ; 761e2 (1d:61e2)
ld a, [wCoordIndex] ld a, [wCoordIndex]
cp $3 cp $3
jr c, .asm_76206 jr c, .asm_76206
CheckAndSetEvent EVENT_8E6 CheckAndSetEvent EVENT_AUTOWALKED_INTO_LORELEIS_ROOM
jr z, LoreleiScript_761c6 jr z, LoreleiScript_761c6
.asm_76206 .asm_76206
ld a, $2 ld a, $2

View file

@ -13,7 +13,7 @@ Mansion1Subscript1: ; 442c5 (11:42c5)
bit 5, [hl] bit 5, [hl]
res 5, [hl] res 5, [hl]
ret z ret z
CheckEvent EVENT_278 CheckEvent EVENT_MANSION_SWITCH_ON
jr nz, .asm_442ec jr nz, .asm_442ec
ld bc, $060c ld bc, $060c
call Mansion1Script_4430b call Mansion1Script_4430b
@ -112,9 +112,9 @@ Mansion1Text4: ; 4435a (11:435a)
call PrintText call PrintText
ld a, SFX_GO_INSIDE ld a, SFX_GO_INSIDE
call PlaySound call PlaySound
CheckAndSetEvent EVENT_278 CheckAndSetEvent EVENT_MANSION_SWITCH_ON
jr z, .asm_44392 jr z, .asm_44392
ResetEventReuseHL EVENT_278 ResetEventReuseHL EVENT_MANSION_SWITCH_ON
jr .asm_44392 jr .asm_44392
.asm_4438c .asm_4438c
ld hl, MansionSwitchNotPressedText ld hl, MansionSwitchNotPressedText

View file

@ -13,7 +13,7 @@ Mansion2Script_51fee: ; 51fee (14:5fee)
bit 5, [hl] bit 5, [hl]
res 5, [hl] res 5, [hl]
ret z ret z
CheckEvent EVENT_278 CheckEvent EVENT_MANSION_SWITCH_ON
jr nz, .asm_52016 jr nz, .asm_52016
ld a, $e ld a, $e
ld bc, $204 ld bc, $204
@ -118,9 +118,9 @@ Mansion2Text5: ; 52087 (14:6087)
call PrintText call PrintText
ld a, SFX_GO_INSIDE ld a, SFX_GO_INSIDE
call PlaySound call PlaySound
CheckAndSetEvent EVENT_278 CheckAndSetEvent EVENT_MANSION_SWITCH_ON
jr z, .asm_520bf jr z, .asm_520bf
ResetEventReuseHL EVENT_278 ResetEventReuseHL EVENT_MANSION_SWITCH_ON
jr .asm_520bf jr .asm_520bf
.asm_520b9 .asm_520b9
ld hl, Mansion2Text_520cc ld hl, Mansion2Text_520cc

View file

@ -13,7 +13,7 @@ Mansion3Script_52204: ; 52204 (14:6204)
bit 5, [hl] bit 5, [hl]
res 5, [hl] res 5, [hl]
ret z ret z
CheckEvent EVENT_278 CheckEvent EVENT_MANSION_SWITCH_ON
jr nz, .asm_52224 jr nz, .asm_52224
ld a, $e ld a, $e
ld bc, $207 ld bc, $207

View file

@ -13,7 +13,7 @@ Mansion4Script_523cf: ; 523cf (14:63cf)
bit 5, [hl] bit 5, [hl]
res 5, [hl] res 5, [hl]
ret z ret z
CheckEvent EVENT_278 CheckEvent EVENT_MANSION_SWITCH_ON
jr nz, .asm_523ff jr nz, .asm_523ff
ld a, $e ld a, $e
ld bc, $80d ld bc, $80d

View file

@ -5,7 +5,7 @@ MtMoon3Script: ; 49d0b (12:5d0b)
ld a, [W_MTMOON3CURSCRIPT] ld a, [W_MTMOON3CURSCRIPT]
call ExecuteCurMapScriptInTable call ExecuteCurMapScriptInTable
ld [W_MTMOON3CURSCRIPT], a ld [W_MTMOON3CURSCRIPT], a
CheckEvent EVENT_579 CheckEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD
ret z ret z
ld hl, CoordsData_49d37 ld hl, CoordsData_49d37
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -53,7 +53,7 @@ MtMoon3ScriptPointers: ; 49d63 (12:5d63)
dw MtMoon3Script5 dw MtMoon3Script5
MtMoon3Script0: ; 49d6f (12:5d6f) MtMoon3Script0: ; 49d6f (12:5d6f)
CheckEvent EVENT_579 CheckEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD
jp nz, MtMoon3Script_49d91 jp nz, MtMoon3Script_49d91
ld a, [W_YCOORD] ld a, [W_YCOORD]
cp $8 cp $8
@ -68,7 +68,7 @@ MtMoon3Script0: ; 49d6f (12:5d6f)
jp DisplayTextID jp DisplayTextID
MtMoon3Script_49d91: ; 49d91 (12:5d91) MtMoon3Script_49d91: ; 49d91 (12:5d91)
CheckEitherEventSet EVENT_57E, EVENT_57F CheckEitherEventSet EVENT_GOT_DOME_FOSSIL, EVENT_GOT_HELIX_FOSSIL
jp z, CheckFightingMapTrainers jp z, CheckFightingMapTrainers
ret ret
@ -78,7 +78,7 @@ MtMoon3Script3: ; 49d9a (12:5d9a)
jp z, MtMoon3Script_49d58 jp z, MtMoon3Script_49d58
call UpdateSprites call UpdateSprites
call Delay3 call Delay3
SetEvent EVENT_579 SetEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD
xor a xor a
ld [wJoyIgnore], a ld [wJoyIgnore], a
ld a, $0 ld a, $0
@ -138,7 +138,7 @@ MtMoon3Script5: ; 49dfb (12:5dfb)
ld a, $a ld a, $a
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
CheckEvent EVENT_57E CheckEvent EVENT_GOT_DOME_FOSSIL
jr z, .asm_49e1d jr z, .asm_49e1d
ld a, HS_MT_MOON_3_FOSSIL_2 ld a, HS_MT_MOON_3_FOSSIL_2
jr .asm_49e1f jr .asm_49e1f
@ -207,7 +207,7 @@ MtMoon3TrainerHeader4: ; 49e6c (12:5e6c)
MtMoon3Text1: ; 49e79 (12:5e79) MtMoon3Text1: ; 49e79 (12:5e79)
TX_ASM TX_ASM
CheckEvent EVENT_579 CheckEvent EVENT_BEAT_MT_MOON_EXIT_SUPER_NERD
jr z, .asm_49e8d jr z, .asm_49e8d
and $c0 and $c0
jr nz, .asm_49eb8 jr nz, .asm_49eb8
@ -278,7 +278,7 @@ MtMoon3Text6: ; 49ee9 (12:5ee9)
ld a, HS_MT_MOON_3_FOSSIL_1 ld a, HS_MT_MOON_3_FOSSIL_1
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject
SetEvent EVENT_57E SetEvent EVENT_GOT_DOME_FOSSIL
ld a, $4 ld a, $4
ld [W_MTMOON3CURSCRIPT], a ld [W_MTMOON3CURSCRIPT], a
ld [W_CURMAPSCRIPT], a ld [W_CURMAPSCRIPT], a
@ -306,7 +306,7 @@ MtMoon3Text7: ; 49f29 (12:5f29)
ld a, HS_MT_MOON_3_FOSSIL_2 ld a, HS_MT_MOON_3_FOSSIL_2
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject
SetEvent EVENT_57F SetEvent EVENT_GOT_HELIX_FOSSIL
ld a, $4 ld a, $4
ld [W_MTMOON3CURSCRIPT], a ld [W_MTMOON3CURSCRIPT], a
ld [W_CURMAPSCRIPT], a ld [W_CURMAPSCRIPT], a

View file

@ -54,13 +54,13 @@ Museum1FText1: ; 5c135 (17:4135)
cp $c cp $c
jp z, Museum1FScript_5c1f9 jp z, Museum1FScript_5c1f9
.asm_d49e7 .asm_d49e7
CheckEvent EVENT_068 CheckEvent EVENT_BOUGHT_MUSEUM_TICKET
jr nz, .asm_31a16 jr nz, .asm_31a16
ld hl, Museum1FText_5c23d ld hl, Museum1FText_5c23d
call PrintText call PrintText
jp Museum1FScriptEnd jp Museum1FScriptEnd
.asm_b8709 .asm_b8709
CheckEvent EVENT_068 CheckEvent EVENT_BOUGHT_MUSEUM_TICKET
jr z, .asm_3ded4 jr z, .asm_3ded4
.asm_31a16 .asm_31a16
ld hl, Museum1FText_5c242 ld hl, Museum1FText_5c242
@ -91,7 +91,7 @@ Museum1FText1: ; 5c135 (17:4135)
.asm_0f3e3 .asm_0f3e3
ld hl, Museum1FText_5c224 ld hl, Museum1FText_5c224
call PrintText call PrintText
SetEvent EVENT_068 SetEvent EVENT_BOUGHT_MUSEUM_TICKET
xor a xor a
ld [wPriceTemp], a ld [wPriceTemp], a
ld [wPriceTemp + 1], a ld [wPriceTemp + 1], a
@ -187,14 +187,14 @@ Museum1FText_5c251: ; 5c251 (17:4251)
Museum1FText3: ; 5c256 (17:4256) Museum1FText3: ; 5c256 (17:4256)
TX_ASM TX_ASM
CheckEvent EVENT_069 CheckEvent EVENT_GOT_OLD_AMBER
jr nz, .asm_5c285 jr nz, .asm_5c285
ld hl, Museum1FText_5c28e ld hl, Museum1FText_5c28e
call PrintText call PrintText
ld bc, (OLD_AMBER << 8) | 1 ld bc, (OLD_AMBER << 8) | 1
call GiveItem call GiveItem
jr nc, .BagFull jr nc, .BagFull
SetEvent EVENT_069 SetEvent EVENT_GOT_OLD_AMBER
ld a, HS_OLD_AMBER ld a, HS_OLD_AMBER
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject

View file

@ -1,5 +1,5 @@
OaksLabScript: ; 1cb0e (7:4b0e) OaksLabScript: ; 1cb0e (7:4b0e)
CheckEvent EVENT_026 CheckEvent EVENT_PALLET_AFTER_GETTING_POKEBALLS_2
call nz, OaksLabScript_1d076 call nz, OaksLabScript_1d076
ld a, $1 ld a, $1
ld [wAutoTextBoxDrawingControl], a ld [wAutoTextBoxDrawingControl], a
@ -31,7 +31,7 @@ OaksLabScriptPointers: ; 1cb28 (7:4b28)
dw OaksLabScript18 dw OaksLabScript18
OaksLabScript0: ; 1cb4e (7:4b4e) OaksLabScript0: ; 1cb4e (7:4b4e)
CheckEvent EVENT_027 CheckEvent EVENT_OAK_APPEARED_IN_PALLET
ret z ret z
ld a, [wNPCMovementScriptFunctionNum] ld a, [wNPCMovementScriptFunctionNum]
and a and a
@ -108,8 +108,8 @@ OaksLabScript4: ; 1cbd2 (7:4bd2)
ld a, [wSimulatedJoypadStatesIndex] ld a, [wSimulatedJoypadStatesIndex]
and a and a
ret nz ret nz
SetEvent EVENT_STOPPED_FROM_LEAVING_PALLET SetEvent EVENT_FOLLOWED_OAK_INTO_LAB
SetEvent EVENT_FOLLOWED_OAK_INSIDE_LAB SetEvent EVENT_FOLLOWED_OAK_INTO_LAB_2
ld a, $1 ld a, $1
ld [H_SPRITEINDEX], a ld [H_SPRITEINDEX], a
ld a, SPRITE_FACING_UP ld a, SPRITE_FACING_UP
@ -597,7 +597,7 @@ OaksLabScript16: ; 1cf12 (7:4f12)
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
SetEvent EVENT_GOT_POKEDEX SetEvent EVENT_GOT_POKEDEX
SetEvent EVENT_038 SetEvent EVENT_OAK_GOT_PARCEL
ld a, HS_LYING_OLD_MAN ld a, HS_LYING_OLD_MAN
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject
@ -632,9 +632,9 @@ OaksLabScript17: ; 1cfd4 (7:4fd4)
ld a, HS_OAKS_LAB_RIVAL ld a, HS_OAKS_LAB_RIVAL
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject
SetEvent EVENT_520 SetEvent EVENT_1ST_ROUTE22_RIVAL_BATTLE
ResetEventReuseHL EVENT_521 ResetEventReuseHL EVENT_2ND_ROUTE22_RIVAL_BATTLE
SetEventReuseHL EVENT_527 SetEventReuseHL EVENT_ROUTE22_RIVAL_WANTS_FIGHT
ld a, HS_ROUTE_22_RIVAL_1 ld a, HS_ROUTE_22_RIVAL_1
ld [wcc4d], a ld [wcc4d], a
predef ShowObject predef ShowObject
@ -650,19 +650,19 @@ OaksLabScript17: ; 1cfd4 (7:4fd4)
OaksLabScript18: ; 1d009 (7:5009) OaksLabScript18: ; 1d009 (7:5009)
ret ret
OaksLabScript_1d00a: ; 1d00a (7:500a) OaksLabScript_RemoveParcel: ; 1d00a (7:500a)
ld hl, wBagItems ld hl, wBagItems
ld bc, $0000 ld bc, $0000
.asm_1d010 .loop
ld a, [hli] ld a, [hli]
cp $ff cp $ff
ret z ret z
cp OAKS_PARCEL cp OAKS_PARCEL
jr z, .GotParcel jr z, .foundParcel
inc hl inc hl
inc c inc c
jr .asm_1d010 jr .loop
.GotParcel .foundParcel
ld hl, wNumBagItems ld hl, wNumBagItems
ld a, c ld a, c
ld [wWhichPokemon], a ld [wWhichPokemon], a
@ -762,7 +762,7 @@ OaksLabTextPointers: ; 1d082 (7:5082)
OaksLabText28: ; 1d0ce (7:50ce) OaksLabText28: ; 1d0ce (7:50ce)
OaksLabText1: ; 1d0ce (7:50ce) OaksLabText1: ; 1d0ce (7:50ce)
TX_ASM TX_ASM
CheckEvent EVENT_FOLLOWED_OAK_INSIDE_LAB CheckEvent EVENT_FOLLOWED_OAK_INTO_LAB_2
jr nz, .asm_1d0de jr nz, .asm_1d0de
ld hl, OaksLabGaryText1 ld hl, OaksLabGaryText1
call PrintText call PrintText
@ -964,7 +964,7 @@ OaksLabLastMonText: ; 1d243 (7:5243)
OaksLabText32: ; 1d248 (7:5248) OaksLabText32: ; 1d248 (7:5248)
OaksLabText5: ; 1d248 (7:5248) OaksLabText5: ; 1d248 (7:5248)
TX_ASM TX_ASM
CheckEvent EVENT_006 CheckEvent EVENT_PALLET_AFTER_GETTING_POKEBALLS
jr nz, .asm_1d266 jr nz, .asm_1d266
ld hl, wPokedexOwned ld hl, wPokedexOwned
ld b, wPokedexOwnedEnd - wPokedexOwned ld b, wPokedexOwnedEnd - wPokedexOwned
@ -985,7 +985,7 @@ OaksLabText5: ; 1d248 (7:5248)
ld b,POKE_BALL ld b,POKE_BALL
call IsItemInBag call IsItemInBag
jr nz, .asm_1d2e7 jr nz, .asm_1d2e7
CheckEvent EVENT_525 CheckEvent EVENT_BEAT_ROUTE22_RIVAL_1ST_FIGHT
jr nz, .asm_1d2d0 jr nz, .asm_1d2d0
CheckEvent EVENT_GOT_POKEDEX CheckEvent EVENT_GOT_POKEDEX
jr nz, .asm_1d2c8 jr nz, .asm_1d2c8
@ -1011,7 +1011,7 @@ OaksLabText5: ; 1d248 (7:5248)
.asm_1d2b8 .asm_1d2b8
ld hl, OaksLabDeliverParcelText ld hl, OaksLabDeliverParcelText
call PrintText call PrintText
call OaksLabScript_1d00a call OaksLabScript_RemoveParcel
ld a, $f ld a, $f
ld [W_OAKSLABCURSCRIPT], a ld [W_OAKSLABCURSCRIPT], a
jr .asm_1d2ed jr .asm_1d2ed

View file

@ -1,7 +1,7 @@
PalletTownScript: ; 18e5b (6:4e5b) PalletTownScript: ; 18e5b (6:4e5b)
CheckEvent EVENT_GOT_POKEBALLS_FROM_OAK CheckEvent EVENT_GOT_POKEBALLS_FROM_OAK
jr z,.next jr z,.next
SetEvent EVENT_006 SetEvent EVENT_PALLET_AFTER_GETTING_POKEBALLS
.next .next
call EnableAutoTextBoxDrawing call EnableAutoTextBoxDrawing
ld hl,PalletTownScriptPointers ld hl,PalletTownScriptPointers
@ -18,7 +18,7 @@ PalletTownScriptPointers: ; 18e73 (6:4e73)
dw PalletTownScript6 dw PalletTownScript6
PalletTownScript0: ; 18e81 (6:4e81) PalletTownScript0: ; 18e81 (6:4e81)
CheckEvent EVENT_STOPPED_FROM_LEAVING_PALLET CheckEvent EVENT_FOLLOWED_OAK_INTO_LAB
ret nz ret nz
ld a,[W_YCOORD] ld a,[W_YCOORD]
cp 1 ; is player near north exit? cp 1 ; is player near north exit?
@ -35,7 +35,7 @@ PalletTownScript0: ; 18e81 (6:4e81)
call PlayMusic call PlayMusic
ld a,$FC ld a,$FC
ld [wJoyIgnore],a ld [wJoyIgnore],a
SetEvent EVENT_027 SetEvent EVENT_OAK_APPEARED_IN_PALLET
; trigger the next script ; trigger the next script
ld a,1 ld a,1
@ -130,12 +130,11 @@ PalletTownScript4: ; 18f4b (6:4f4b)
ret ret
PalletTownScript5: ; 18f56 (6:4f56) PalletTownScript5: ; 18f56 (6:4f56)
CheckEvent EVENT_01A CheckEvent EVENT_DAISY_WALKING
jr nz,.next jr nz,.next
and 3 CheckBothEventsSet EVENT_GOT_TOWN_MAP, EVENT_ENTERED_BLUES_HOUSE, 1
cp 3
jr nz,.next jr nz,.next
SetEvent EVENT_01A SetEvent EVENT_DAISY_WALKING
ld a,HS_DAISY_SITTING ld a,HS_DAISY_SITTING
ld [wcc4d],a ld [wcc4d],a
predef HideObject predef HideObject
@ -145,7 +144,7 @@ PalletTownScript5: ; 18f56 (6:4f56)
.next .next
CheckEvent EVENT_GOT_POKEBALLS_FROM_OAK CheckEvent EVENT_GOT_POKEBALLS_FROM_OAK
ret z ret z
SetEvent EVENT_026 SetEvent EVENT_PALLET_AFTER_GETTING_POKEBALLS_2
PalletTownScript6: ; 18f87 (6:4f87) PalletTownScript6: ; 18f87 (6:4f87)
ret ret

View file

@ -16,7 +16,7 @@ PewterCityScriptPointers: ; 19243 (6:5243)
PewterCityScript0: ; 19251 (6:5251) PewterCityScript0: ; 19251 (6:5251)
xor a xor a
ld [W_MUSEUM1FCURSCRIPT], a ld [W_MUSEUM1FCURSCRIPT], a
ResetEvent EVENT_068 ResetEvent EVENT_BOUGHT_MUSEUM_TICKET
call PewterCityScript_1925e call PewterCityScript_1925e
ret ret

View file

@ -72,7 +72,7 @@ PewterGymScript_5c3df: ; 5c3df (17:43df)
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject
ResetEvents EVENT_520, EVENT_527 ResetEvents EVENT_1ST_ROUTE22_RIVAL_BATTLE, EVENT_ROUTE22_RIVAL_WANTS_FIGHT
; deactivate gym trainers ; deactivate gym trainers
SetEvent EVENT_BEAT_PEWTER_GYM_TRAINER_0 SetEvent EVENT_BEAT_PEWTER_GYM_TRAINER_0

View file

@ -17,7 +17,7 @@ PokemonTower2ScriptPointers: ; 60509 (18:4509)
dw PokemonTower2Script2 dw PokemonTower2Script2
PokemonTower2Script0: ; 6050f (18:450f) PokemonTower2Script0: ; 6050f (18:450f)
CheckEvent EVENT_0EF CheckEvent EVENT_BEAT_POKEMON_TOWER_RIVAL
ret nz ret nz
ld hl, CoordsData_6055e ld hl, CoordsData_6055e
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -28,13 +28,14 @@ PokemonTower2Script0: ; 6050f (18:450f)
ld c, BANK(Music_MeetRival) ld c, BANK(Music_MeetRival)
ld a, MUSIC_MEET_RIVAL ld a, MUSIC_MEET_RIVAL
call PlayMusic call PlayMusic
ResetEvent EVENT_0EE ResetEvent EVENT_POKEMON_TOWER_RIVAL_ON_LEFT
ld a, [wCoordIndex] ld a, [wCoordIndex]
cp $1 cp $1
ld a, PLAYER_DIR_UP ld a, PLAYER_DIR_UP
ld b, SPRITE_FACING_DOWN ld b, SPRITE_FACING_DOWN
jr nz, .asm_60544 jr nz, .asm_60544
SetEvent EVENT_0EE ; the rival is on the left side and the player is on the right side
SetEvent EVENT_POKEMON_TOWER_RIVAL_ON_LEFT
ld a, PLAYER_DIR_LEFT ld a, PLAYER_DIR_LEFT
ld b, SPRITE_FACING_RIGHT ld b, SPRITE_FACING_RIGHT
.asm_60544 .asm_60544
@ -63,12 +64,12 @@ PokemonTower2Script1: ; 60563 (18:4563)
jp z, PokemonTower2Script_604fe jp z, PokemonTower2Script_604fe
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEvent EVENT_0EF SetEvent EVENT_BEAT_POKEMON_TOWER_RIVAL
ld a, $1 ld a, $1
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
ld de, MovementData_605b2 ld de, MovementData_605b2
CheckEvent EVENT_0EE CheckEvent EVENT_POKEMON_TOWER_RIVAL_ON_LEFT
jr nz, .asm_60589 jr nz, .asm_60589
ld de, MovementData_605a9 ld de, MovementData_605a9
.asm_60589 .asm_60589
@ -127,7 +128,7 @@ PokemonTower2TextPointers: ; 605db (18:45db)
PokemonTower2Text1: ; 605df (18:45df) PokemonTower2Text1: ; 605df (18:45df)
TX_ASM TX_ASM
CheckEvent EVENT_0EF CheckEvent EVENT_BEAT_POKEMON_TOWER_RIVAL
jr z, .asm_16f24 jr z, .asm_16f24
ld hl, PokemonTower2Text_6063c ld hl, PokemonTower2Text_6063c
call PrintText call PrintText

View file

@ -18,10 +18,10 @@ PokemonTower5Script0: ; 6094b (18:494b)
jr c, .asm_60960 jr c, .asm_60960
ld hl, wd72e ld hl, wd72e
res 4, [hl] res 4, [hl]
ResetEvent EVENT_107 ResetEvent EVENT_IN_PURIFIED_ZONE
jp CheckFightingMapTrainers jp CheckFightingMapTrainers
.asm_60960 .asm_60960
CheckAndSetEvent EVENT_107 CheckAndSetEvent EVENT_IN_PURIFIED_ZONE
ret nz ret nz
xor a xor a
ld [hJoyHeld], a ld [hJoyHeld], a

View file

@ -22,7 +22,7 @@ PokemonTower6ScriptPointers: ; 60b0d (18:4b0d)
dw PokemonTower6Script4 dw PokemonTower6Script4
PokemonTower6Script0: ; 60b17 (18:4b17) PokemonTower6Script0: ; 60b17 (18:4b17)
CheckEvent EVENT_10F CheckEvent EVENT_BEAT_GHOST_MAROWAK
jp nz, CheckFightingMapTrainers jp nz, CheckFightingMapTrainers
ld hl, CoordsData_60b45 ld hl, CoordsData_60b45
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -59,7 +59,7 @@ PokemonTower6Script4: ; 60b48 (18:4b48)
ld a, [wBattleResult] ld a, [wBattleResult]
and a and a
jr nz, .asm_60b82 jr nz, .asm_60b82
SetEvent EVENT_10F SetEvent EVENT_BEAT_GHOST_MAROWAK
ld a, $7 ld a, $7
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID

View file

@ -256,8 +256,8 @@ PokemonTower7FujiText:
TX_ASM TX_ASM
ld hl, TowerRescueFujiText ld hl, TowerRescueFujiText
call PrintText call PrintText
SetEvent EVENT_4CF SetEvent EVENT_RESCUED_MR_FUJI
SetEvent EVENT_117 SetEvent EVENT_RESCUED_MR_FUJI_2
ld a, HS_LAVENDER_HOUSE_1_MR_FUJI ld a, HS_LAVENDER_HOUSE_1_MR_FUJI
ld [wcc4d], a ld [wcc4d], a
predef ShowObject predef ShowObject

View file

@ -13,17 +13,16 @@ RocketHideout4Script_45473: ; 45473 (11:5473)
bit 5, [hl] bit 5, [hl]
res 5, [hl] res 5, [hl]
ret z ret z
CheckEvent EVENT_6A5 CheckEvent EVENT_ROCKET_HIDEOUT_4_DOOR_UNLOCKED
jr nz, .asm_45496 jr nz, .asm_45496
and $c CheckBothEventsSet EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_0, EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_2, 1
cp $c
jr z, .asm_4548c jr z, .asm_4548c
ld a, $2d ld a, $2d
jr .asm_45498 jr .asm_45498
.asm_4548c .asm_4548c
ld a, SFX_GO_INSIDE ld a, SFX_GO_INSIDE
call PlaySound call PlaySound
SetEvent EVENT_6A5 SetEvent EVENT_ROCKET_HIDEOUT_4_DOOR_UNLOCKED
.asm_45496 .asm_45496
ld a, $e ld a, $e
.asm_45498 .asm_45498
@ -51,7 +50,7 @@ RocketHideout4Script3: ; 454b6 (11:54b6)
call UpdateSprites call UpdateSprites
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEvent EVENT_6A7 SetEvent EVENT_BEAT_ROCKET_HIDEOUT_GIOVANNI
ld a, $a ld a, $a
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
@ -117,7 +116,7 @@ RocketHideout4TrainerHeader3: ; 4552d (11:552d)
RocketHideout4Text1: ; 4553a (11:553a) RocketHideout4Text1: ; 4553a (11:553a)
TX_ASM TX_ASM
CheckEvent EVENT_6A7 CheckEvent EVENT_BEAT_ROCKET_HIDEOUT_GIOVANNI
jp nz, .asm_545571 jp nz, .asm_545571
ld hl, RocketHideout4Text_4557a ld hl, RocketHideout4Text_4557a
call PrintText call PrintText
@ -209,7 +208,7 @@ RocketHideout4AfterBattleText4: ; 455cf (11:55cf)
TX_ASM TX_ASM
ld hl, RocketHideout4Text_455ec ld hl, RocketHideout4Text_455ec
call PrintText call PrintText
CheckAndSetEvent EVENT_6A6 CheckAndSetEvent EVENT_ROCKET_DROPPED_LIFT_KEY
jr nz, .asm_455e9 jr nz, .asm_455e9
ld a, HS_ROCKET_HIDEOUT_4_ITEM_5 ld a, HS_ROCKET_HIDEOUT_4_ITEM_5
ld [wcc4d], a ld [wcc4d], a

View file

@ -8,7 +8,7 @@ Route1TextPointers: ; 1cab2 (7:4ab2)
Route1Text1: ; 1cab8 (7:4ab8) Route1Text1: ; 1cab8 (7:4ab8)
TX_ASM TX_ASM
CheckAndSetEvent EVENT_3C0 CheckAndSetEvent EVENT_GOT_POTION_SAMPLE
jr nz, .asm_1cada jr nz, .asm_1cada
ld hl, Route1ViridianMartSampleText ld hl, Route1ViridianMartSampleText
call PrintText call PrintText

View file

@ -17,7 +17,7 @@ Route11GateUpstairsScriptEnd: ; 49469 (12:5469)
Route11GateUpstairsText2: ; 4946c (12:546c) Route11GateUpstairsText2: ; 4946c (12:546c)
TX_ASM TX_ASM
CheckEvent EVENT_47F, 1 CheckEvent EVENT_GOT_ITEMFINDER, 1
jr c, .asm_4949b jr c, .asm_4949b
ld a, 30 ; pokemon needed ld a, 30 ; pokemon needed
ld [$ffdb], a ld [$ffdb], a
@ -34,7 +34,7 @@ Route11GateUpstairsText2: ; 4946c (12:546c)
ld a, [$ffdb] ld a, [$ffdb]
dec a dec a
jr nz, .asm_494a1 jr nz, .asm_494a1
SetEvent EVENT_47F SetEvent EVENT_GOT_ITEMFINDER
.asm_4949b .asm_4949b
ld hl, Route11GateUpstairsText_494a3 ld hl, Route11GateUpstairsText_494a3
call PrintText call PrintText

View file

@ -8,7 +8,7 @@ Route12GateUpstairsTextPointers: ; 49563 (12:5563)
Route12GateUpstairsText1: ; 49569 (12:5569) Route12GateUpstairsText1: ; 49569 (12:5569)
TX_ASM TX_ASM
CheckEvent EVENT_480, 1 CheckEvent EVENT_GOT_TM39, 1
jr c, .asm_0ad3c jr c, .asm_0ad3c
ld hl, TM39PreReceiveText ld hl, TM39PreReceiveText
call PrintText call PrintText
@ -17,7 +17,7 @@ Route12GateUpstairsText1: ; 49569 (12:5569)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedTM39Text ld hl, ReceivedTM39Text
call PrintText call PrintText
SetEvent EVENT_480 SetEvent EVENT_GOT_TM39
jr .asm_4ba56 jr .asm_4ba56
.BagFull .BagFull
ld hl, TM39NoRoomText ld hl, TM39NoRoomText

View file

@ -7,7 +7,7 @@ Route15GateUpstairsTextPointers: ; 4964d (12:564d)
Route15GateUpstairsText1: ; 49651 (12:5651) Route15GateUpstairsText1: ; 49651 (12:5651)
TX_ASM TX_ASM
CheckEvent EVENT_4B0 CheckEvent EVENT_GOT_EXP_ALL
jr nz, .asm_49683 jr nz, .asm_49683
ld a, 50 ; pokemon needed ld a, 50 ; pokemon needed
ld [$ffdb], a ld [$ffdb], a
@ -23,7 +23,7 @@ Route15GateUpstairsText1: ; 49651 (12:5651)
ld a, [$ffdb] ld a, [$ffdb]
cp $1 cp $1
jr nz, .asm_49689 jr nz, .asm_49689
SetEvent EVENT_4B0 SetEvent EVENT_GOT_EXP_ALL
.asm_49683 .asm_49683
ld hl, Route15GateUpstairsText_4968c ld hl, Route15GateUpstairsText_4968c
call PrintText call PrintText

View file

@ -7,7 +7,7 @@ Route16HouseTextPointers: ; 1e5fb (7:65fb)
Route16HouseText1: ; 1e5ff (7:65ff) Route16HouseText1: ; 1e5ff (7:65ff)
TX_ASM TX_ASM
CheckEvent EVENT_4CE CheckEvent EVENT_GOT_HM02
ld hl, HM02ExplanationText ld hl, HM02ExplanationText
jr nz, .asm_13616 jr nz, .asm_13616
ld hl, Route16HouseText3 ld hl, Route16HouseText3
@ -15,7 +15,7 @@ Route16HouseText1: ; 1e5ff (7:65ff)
ld bc, (HM_02 << 8) | 1 ld bc, (HM_02 << 8) | 1
call GiveItem call GiveItem
jr nc, .BagFull jr nc, .BagFull
SetEvent EVENT_4CE SetEvent EVENT_GOT_HM02
ld hl, ReceivedHM02Text ld hl, ReceivedHM02Text
jr .asm_13616 jr .asm_13616
.BagFull .BagFull

View file

@ -1,5 +1,5 @@
Route20Script: ; 50ca9 (14:4ca9) Route20Script: ; 50ca9 (14:4ca9)
CheckAndResetEvent EVENT_500 CheckAndResetEvent EVENT_IN_SEAFOAM_ISLANDS
call nz, Route20Script_50cc6 call nz, Route20Script_50cc6
call EnableAutoTextBoxDrawing call EnableAutoTextBoxDrawing
ld hl, Route20TrainerHeader0 ld hl, Route20TrainerHeader0
@ -10,7 +10,7 @@ Route20Script: ; 50ca9 (14:4ca9)
ret ret
Route20Script_50cc6: ; 50cc6 (14:4cc6) Route20Script_50cc6: ; 50cc6 (14:4cc6)
CheckBothEventsSet EVENT_9C8, EVENT_9C9 CheckBothEventsSet EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM3_BOULDER2_DOWN_HOLE
jr z, .asm_50cef jr z, .asm_50cef
ld a, HS_SEAFOAM_ISLANDS_1_BOULDER_1 ld a, HS_SEAFOAM_ISLANDS_1_BOULDER_1
call Route20Script_50d0c call Route20Script_50d0c
@ -36,7 +36,7 @@ Route20Script_50cc6: ; 50cc6 (14:4cc6)
db $FF db $FF
.asm_50cef .asm_50cef
CheckBothEventsSet EVENT_9D0, EVENT_9D1 CheckBothEventsSet EVENT_SEAFOAM4_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM4_BOULDER2_DOWN_HOLE
ret z ret z
ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_1 ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_1
call Route20Script_50d0c call Route20Script_50d0c

View file

@ -55,7 +55,7 @@ Route22RivalMovementData: ; 50efb (14:4efb)
db $FF db $FF
Route22Script0: ; 50f00 (14:4f00) Route22Script0: ; 50f00 (14:4f00)
CheckEvent EVENT_527 CheckEvent EVENT_ROUTE22_RIVAL_WANTS_FIGHT
ret z ret z
ld hl, .Route22RivalBattleCoords ld hl, .Route22RivalBattleCoords
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -68,9 +68,9 @@ Route22Script0: ; 50f00 (14:4f00)
ld [wJoyIgnore], a ld [wJoyIgnore], a
ld a, PLAYER_DIR_LEFT ld a, PLAYER_DIR_LEFT
ld [wPlayerMovingDirection], a ld [wPlayerMovingDirection], a
CheckEvent EVENT_520 CheckEvent EVENT_1ST_ROUTE22_RIVAL_BATTLE
jr nz, .firstRivalBattle jr nz, .firstRivalBattle
CheckEventReuseA EVENT_521 ; is this the rival at the end of the game? CheckEventReuseA EVENT_2ND_ROUTE22_RIVAL_BATTLE ; is this the rival at the end of the game?
jp nz, Route22Script_5104e jp nz, Route22Script_5104e
ret ret
@ -163,7 +163,7 @@ Route22Script2: ; 50fb5 (14:4fb5)
call SetSpriteFacingDirectionAndDelay call SetSpriteFacingDirectionAndDelay
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEvent EVENT_525 SetEvent EVENT_BEAT_ROUTE22_RIVAL_1ST_FIGHT
ld a, $1 ld a, $1
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
@ -227,7 +227,7 @@ Route22Script3: ; 5102a (14:502a)
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject
call PlayDefaultMusic call PlayDefaultMusic
ResetEvents EVENT_520, EVENT_527 ResetEvents EVENT_1ST_ROUTE22_RIVAL_BATTLE, EVENT_ROUTE22_RIVAL_WANTS_FIGHT
ld a, $0 ld a, $0
ld [W_ROUTE22CURSCRIPT], a ld [W_ROUTE22CURSCRIPT], a
ret ret
@ -322,7 +322,7 @@ Route22Script5: ; 510df (14:50df)
call SetSpriteFacingDirectionAndDelay call SetSpriteFacingDirectionAndDelay
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEvent EVENT_526 SetEvent EVENT_BEAT_ROUTE22_RIVAL_2ND_FIGHT
ld a, $2 ld a, $2
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
@ -372,7 +372,7 @@ Route22Script6: ; 51151 (14:5151)
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject
call PlayDefaultMusic call PlayDefaultMusic
ResetEvents EVENT_521, EVENT_527 ResetEvents EVENT_2ND_ROUTE22_RIVAL_BATTLE, EVENT_ROUTE22_RIVAL_WANTS_FIGHT
ld a, $7 ld a, $7
ld [W_ROUTE22CURSCRIPT], a ld [W_ROUTE22CURSCRIPT], a
ret ret
@ -384,7 +384,7 @@ Route22TextPointers: ; 51175 (14:5175)
Route22Text1: ; 5117b (14:517b) Route22Text1: ; 5117b (14:517b)
TX_ASM TX_ASM
CheckEvent EVENT_525 CheckEvent EVENT_BEAT_ROUTE22_RIVAL_1ST_FIGHT
jr z, .asm_5118b jr z, .asm_5118b
ld hl, Route22RivalAfterBattleText1 ld hl, Route22RivalAfterBattleText1
call PrintText call PrintText
@ -397,7 +397,7 @@ Route22Text1: ; 5117b (14:517b)
Route22Text2: ; 51194 (14:5194) Route22Text2: ; 51194 (14:5194)
TX_ASM TX_ASM
CheckEvent EVENT_526 CheckEvent EVENT_BEAT_ROUTE22_RIVAL_2ND_FIGHT
jr z, .asm_511a4 jr z, .asm_511a4
ld hl, Route22RivalAfterBattleText2 ld hl, Route22RivalAfterBattleText2
call PrintText call PrintText

View file

@ -10,8 +10,8 @@ Route23Script_511e9: ; 511e9 (14:51e9)
bit 6, [hl] bit 6, [hl]
res 6, [hl] res 6, [hl]
ret z ret z
ResetEvents EVENT_538, EVENT_53F ResetEvents EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1, EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2
ResetEvents EVENT_660, EVENT_666 ResetEvents EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1, EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH2
ld a, HS_VICTORY_ROAD_3_BOULDER ld a, HS_VICTORY_ROAD_3_BOULDER
ld [wcc4d], a ld [wcc4d], a
predef ShowObject predef ShowObject
@ -29,7 +29,7 @@ Route23Script0: ; 51219 (14:5219)
ld a, [W_YCOORD] ld a, [W_YCOORD]
ld b, a ld b, a
ld e, $0 ld e, $0
EventFlagBit c, EVENT_536 + 1, EVENT_530 EventFlagBit c, EVENT_PASSED_EARTHBADGE_CHECK + 1, EVENT_PASSED_CASCADEBADGE_CHECK
.asm_51224 .asm_51224
ld a, [hli] ld a, [hli]
cp $ff cp $ff
@ -49,7 +49,7 @@ Route23Script0: ; 51219 (14:5219)
ld a, c ld a, c
ld [wWhichBadge], a ld [wWhichBadge], a
ld b, FLAG_TEST ld b, FLAG_TEST
EventFlagAddress hl, EVENT_530 EventFlagAddress hl, EVENT_PASSED_CASCADEBADGE_CHECK
predef FlagActionPredef predef FlagActionPredef
ld a, c ld a, c
and a and a
@ -143,43 +143,43 @@ Route23TextPointers: ; 512f7 (14:52f7)
Route23Text1: ; 51307 (14:5307) Route23Text1: ; 51307 (14:5307)
TX_ASM TX_ASM
EventFlagBit a, EVENT_536, EVENT_530 EventFlagBit a, EVENT_PASSED_EARTHBADGE_CHECK, EVENT_PASSED_CASCADEBADGE_CHECK
call Route23Script_51346 call Route23Script_51346
jp TextScriptEnd jp TextScriptEnd
Route23Text2: ; 51310 (14:5310) Route23Text2: ; 51310 (14:5310)
TX_ASM TX_ASM
EventFlagBit a, EVENT_535, EVENT_530 EventFlagBit a, EVENT_PASSED_VOLCANOBADGE_CHECK, EVENT_PASSED_CASCADEBADGE_CHECK
call Route23Script_51346 call Route23Script_51346
jp TextScriptEnd jp TextScriptEnd
Route23Text3: ; 51319 (14:5319) Route23Text3: ; 51319 (14:5319)
TX_ASM TX_ASM
EventFlagBit a, EVENT_534, EVENT_530 EventFlagBit a, EVENT_PASSED_MARSHBADGE_CHECK, EVENT_PASSED_CASCADEBADGE_CHECK
call Route23Script_51346 call Route23Script_51346
jp TextScriptEnd jp TextScriptEnd
Route23Text4: ; 51322 (14:5322) Route23Text4: ; 51322 (14:5322)
TX_ASM TX_ASM
EventFlagBit a, EVENT_533, EVENT_530 EventFlagBit a, EVENT_PASSED_SOULBADGE_CHECK, EVENT_PASSED_CASCADEBADGE_CHECK
call Route23Script_51346 call Route23Script_51346
jp TextScriptEnd jp TextScriptEnd
Route23Text5: ; 5132b (14:532b) Route23Text5: ; 5132b (14:532b)
TX_ASM TX_ASM
EventFlagBit a, EVENT_532, EVENT_530 EventFlagBit a, EVENT_PASSED_RAINBOWBADGE_CHECK, EVENT_PASSED_CASCADEBADGE_CHECK
call Route23Script_51346 call Route23Script_51346
jp TextScriptEnd jp TextScriptEnd
Route23Text6: ; 51334 (14:5334) Route23Text6: ; 51334 (14:5334)
TX_ASM TX_ASM
EventFlagBit a, EVENT_531, EVENT_530 EventFlagBit a, EVENT_PASSED_THUNDERBADGE_CHECK, EVENT_PASSED_CASCADEBADGE_CHECK
call Route23Script_51346 call Route23Script_51346
jp TextScriptEnd jp TextScriptEnd
Route23Text7: ; 5133d (14:533d) Route23Text7: ; 5133d (14:533d)
TX_ASM TX_ASM
EventFlagBit a, EVENT_530 EventFlagBit a, EVENT_PASSED_CASCADEBADGE_CHECK
call Route23Script_51346 call Route23Script_51346
jp TextScriptEnd jp TextScriptEnd
@ -207,7 +207,7 @@ Route23Script_51346: ; 51346 (14:5346)
ld a, [wWhichBadge] ld a, [wWhichBadge]
ld c, a ld c, a
ld b, FLAG_SET ld b, FLAG_SET
EventFlagAddress hl, EVENT_530 EventFlagAddress hl, EVENT_PASSED_CASCADEBADGE_CHECK
predef FlagActionPredef predef FlagActionPredef
ld a, $2 ld a, $2
ld [W_ROUTE23CURSCRIPT], a ld [W_ROUTE23CURSCRIPT], a

View file

@ -22,7 +22,7 @@ Route24ScriptPointers: ; 513cb (14:53cb)
dw Route24Script4 dw Route24Script4
Route24Script0: ; 513d5 (14:53d5) Route24Script0: ; 513d5 (14:53d5)
CheckEvent EVENT_540 CheckEvent EVENT_GOT_NUGGET
jp nz, CheckFightingMapTrainers jp nz, CheckFightingMapTrainers
ld hl, CoordsData_5140e ld hl, CoordsData_5140e
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -32,7 +32,7 @@ Route24Script0: ; 513d5 (14:53d5)
ld a, $1 ld a, $1
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
CheckAndResetEvent EVENT_549 CheckAndResetEvent EVENT_NUGGET_REWARD_AVAILABLE
ret z ret z
ld a, D_DOWN ld a, D_DOWN
ld [wSimulatedJoypadStatesEnd], a ld [wSimulatedJoypadStatesEnd], a
@ -64,7 +64,7 @@ Route24Script3: ; 51422 (14:5422)
call UpdateSprites call UpdateSprites
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEvent EVENT_541 SetEvent EVENT_BEAT_ROUTE24_ROCKET
ld a, $1 ld a, $1
ld [hSpriteIndexOrTextID], a ld [hSpriteIndexOrTextID], a
call DisplayTextID call DisplayTextID
@ -144,15 +144,15 @@ Route24TrainerHeader6: ; 51497 (14:5497)
Route24Text1: ; 514a4 (14:54a4) Route24Text1: ; 514a4 (14:54a4)
TX_ASM TX_ASM
ResetEvent EVENT_549 ResetEvent EVENT_NUGGET_REWARD_AVAILABLE
CheckEvent EVENT_540 CheckEvent EVENT_GOT_NUGGET
jr nz, .asm_514f9 jr nz, .asm_514f9
ld hl, Route24Text_51510 ld hl, Route24Text_51510
call PrintText call PrintText
ld bc, (NUGGET << 8) | 1 ld bc, (NUGGET << 8) | 1
call GiveItem call GiveItem
jr nc, .BagFull jr nc, .BagFull
SetEvent EVENT_540 SetEvent EVENT_GOT_NUGGET
ld hl, Route24Text_5151a ld hl, Route24Text_5151a
call PrintText call PrintText
ld hl, Route24Text_51526 ld hl, Route24Text_51526
@ -180,7 +180,7 @@ Route24Text1: ; 514a4 (14:54a4)
.BagFull .BagFull
ld hl, Route24Text_51521 ld hl, Route24Text_51521
call PrintText call PrintText
SetEvent EVENT_549 SetEvent EVENT_NUGGET_REWARD_AVAILABLE
jp TextScriptEnd jp TextScriptEnd
Route24Text_51510: ; 51510 (14:5510) Route24Text_51510: ; 51510 (14:5510)

View file

@ -13,18 +13,18 @@ Route25Script_515e1: ; 515e1 (14:55e1)
bit 6, [hl] bit 6, [hl]
res 6, [hl] res 6, [hl]
ret z ret z
CheckEventHL EVENT_55F CheckEventHL EVENT_LEFT_BILLS_HOUSE_AFTER_HELPING
ret nz ret nz
CheckEventReuseHL EVENT_55D CheckEventReuseHL EVENT_MET_BILL_2
jr nz, .asm_515ff jr nz, .asm_515ff
ResetEventReuseHL EVENT_55E ResetEventReuseHL EVENT_BILL_SAID_USE_CELL_SEPARATOR
ld a, HS_BILL_POKEMON ld a, HS_BILL_POKEMON
ld [wcc4d], a ld [wcc4d], a
predef_jump ShowObject predef_jump ShowObject
.asm_515ff .asm_515ff
CheckEventAfterBranchReuseHL EVENT_55C, EVENT_55D CheckEventAfterBranchReuseHL EVENT_GOT_SS_TICKET, EVENT_MET_BILL_2
ret z ret z
SetEventReuseHL EVENT_55F SetEventReuseHL EVENT_LEFT_BILLS_HOUSE_AFTER_HELPING
ld a, HS_NUGGET_BRIDGE_GUY ld a, HS_NUGGET_BRIDGE_GUY
ld [wcc4d], a ld [wcc4d], a
predef HideObject predef HideObject

View file

@ -7,7 +7,7 @@ Route2GateTextPointers: ; 5d5d7 (17:55d7)
Route2GateText1: ; 5d5db (17:55db) Route2GateText1: ; 5d5db (17:55db)
TX_ASM TX_ASM
CheckEvent EVENT_3D8 CheckEvent EVENT_GOT_HM05
jr nz, .asm_5d60d jr nz, .asm_5d60d
ld a, 10 ; pokemon needed ld a, 10 ; pokemon needed
ld [$ffdb], a ld [$ffdb], a
@ -23,7 +23,7 @@ Route2GateText1: ; 5d5db (17:55db)
ld a, [$ffdb] ld a, [$ffdb]
cp $1 cp $1
jr nz, .asm_5d613 jr nz, .asm_5d613
SetEvent EVENT_3D8 SetEvent EVENT_GOT_HM05
.asm_5d60d .asm_5d60d
ld hl, Route2GateText_5d616 ld hl, Route2GateText_5d616
call PrintText call PrintText

View file

@ -6,7 +6,7 @@ SafariZoneSecretHouseTextPointers: ; 4a31a (12:631a)
SafariZoneSecretHouseText1: ; 4a31c (12:631c) SafariZoneSecretHouseText1: ; 4a31c (12:631c)
TX_ASM TX_ASM
CheckEvent EVENT_880 CheckEvent EVENT_GOT_HM03
jr nz, .asm_20a9b jr nz, .asm_20a9b
ld hl, SafariZoneSecretHouseText_4a350 ld hl, SafariZoneSecretHouseText_4a350
call PrintText call PrintText
@ -15,7 +15,7 @@ SafariZoneSecretHouseText1: ; 4a31c (12:631c)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedHM03Text ld hl, ReceivedHM03Text
call PrintText call PrintText
SetEvent EVENT_880 SetEvent EVENT_GOT_HM03
jr .asm_8f1fc jr .asm_8f1fc
.BagFull .BagFull
ld hl, HM03NoRoomText ld hl, HM03NoRoomText

View file

@ -6,7 +6,7 @@ SaffronHouse2TextPointers: ; 1de3f (7:5e3f)
SaffronHouse2Text1: ; 1de41 (7:5e41) SaffronHouse2Text1: ; 1de41 (7:5e41)
TX_ASM TX_ASM
CheckEvent EVENT_3B0 CheckEvent EVENT_GOT_TM29
jr nz, .asm_9e72b jr nz, .asm_9e72b
ld hl, TM29PreReceiveText ld hl, TM29PreReceiveText
call PrintText call PrintText
@ -15,7 +15,7 @@ SaffronHouse2Text1: ; 1de41 (7:5e41)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedTM29Text ld hl, ReceivedTM29Text
call PrintText call PrintText
SetEvent EVENT_3B0 SetEvent EVENT_GOT_TM29
jr .asm_fe4e1 jr .asm_fe4e1
.BagFull .BagFull
ld hl, TM29NoRoomText ld hl, TM29NoRoomText

View file

@ -1,6 +1,6 @@
SeafoamIslands1Script: ; 447e9 (11:47e9) SeafoamIslands1Script: ; 447e9 (11:47e9)
call EnableAutoTextBoxDrawing call EnableAutoTextBoxDrawing
SetEvent EVENT_500 SetEvent EVENT_IN_SEAFOAM_ISLANDS
ld hl, wFlags_0xcd60 ld hl, wFlags_0xcd60
bit 7, [hl] bit 7, [hl]
res 7, [hl] res 7, [hl]
@ -8,18 +8,18 @@ SeafoamIslands1Script: ; 447e9 (11:47e9)
ld hl, Seafoam1HolesCoords ld hl, Seafoam1HolesCoords
call CheckBoulderCoords call CheckBoulderCoords
ret nc ret nc
EventFlagAddress hl, EVENT_50E EventFlagAddress hl, EVENT_SEAFOAM1_BOULDER1_DOWN_HOLE
ld a, [wCoordIndex] ld a, [wCoordIndex]
cp $1 cp $1
jr nz, .asm_44819 jr nz, .asm_44819
SetEventReuseHL EVENT_50E SetEventReuseHL EVENT_SEAFOAM1_BOULDER1_DOWN_HOLE
ld a, HS_SEAFOAM_ISLANDS_1_BOULDER_1 ld a, HS_SEAFOAM_ISLANDS_1_BOULDER_1
ld [wd079], a ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_1 ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_1
ld [wd07a], a ld [wd07a], a
jr .asm_44825 jr .asm_44825
.asm_44819 .asm_44819
SetEventAfterBranchReuseHL EVENT_50F, EVENT_50E SetEventAfterBranchReuseHL EVENT_SEAFOAM1_BOULDER2_DOWN_HOLE, EVENT_SEAFOAM1_BOULDER1_DOWN_HOLE
ld a, HS_SEAFOAM_ISLANDS_1_BOULDER_2 ld a, HS_SEAFOAM_ISLANDS_1_BOULDER_2
ld [wd079], a ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_2 ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_2

View file

@ -7,18 +7,18 @@ SeafoamIslands2Script: ; 46315 (11:6315)
ld hl, Seafoam2HolesCoords ld hl, Seafoam2HolesCoords
call CheckBoulderCoords call CheckBoulderCoords
ret nc ret nc
EventFlagAddress hl, EVENT_9C0 EventFlagAddress hl, EVENT_SEAFOAM2_BOULDER1_DOWN_HOLE
ld a, [wCoordIndex] ld a, [wCoordIndex]
cp $1 cp $1
jr nz, .asm_46340 jr nz, .asm_46340
SetEventReuseHL EVENT_9C0 SetEventReuseHL EVENT_SEAFOAM2_BOULDER1_DOWN_HOLE
ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_1 ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_1
ld [wd079], a ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_3_BOULDER_1 ld a, HS_SEAFOAM_ISLANDS_3_BOULDER_1
ld [wd07a], a ld [wd07a], a
jr .asm_4634c jr .asm_4634c
.asm_46340 .asm_46340
SetEventAfterBranchReuseHL EVENT_9C1, EVENT_9C0 SetEventAfterBranchReuseHL EVENT_SEAFOAM2_BOULDER2_DOWN_HOLE, EVENT_SEAFOAM2_BOULDER1_DOWN_HOLE
ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_2 ld a, HS_SEAFOAM_ISLANDS_2_BOULDER_2
ld [wd079], a ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_3_BOULDER_2 ld a, HS_SEAFOAM_ISLANDS_3_BOULDER_2

View file

@ -7,18 +7,18 @@ SeafoamIslands3Script: ; 46451 (11:6451)
ld hl, Seafoam3HolesCoords ld hl, Seafoam3HolesCoords
call CheckBoulderCoords call CheckBoulderCoords
ret nc ret nc
EventFlagAddress hl, EVENT_9C8 EventFlagAddress hl, EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE
ld a, [wCoordIndex] ld a, [wCoordIndex]
cp $1 cp $1
jr nz, .asm_4647c jr nz, .asm_4647c
SetEventReuseHL EVENT_9C8 SetEventReuseHL EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE
ld a, HS_SEAFOAM_ISLANDS_3_BOULDER_1 ld a, HS_SEAFOAM_ISLANDS_3_BOULDER_1
ld [wd079], a ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_3 ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_3
ld [wd07a], a ld [wd07a], a
jr .asm_46488 jr .asm_46488
.asm_4647c .asm_4647c
SetEventAfterBranchReuseHL EVENT_9C9, EVENT_9C8 SetEventAfterBranchReuseHL EVENT_SEAFOAM3_BOULDER2_DOWN_HOLE, EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE
ld a, HS_SEAFOAM_ISLANDS_3_BOULDER_2 ld a, HS_SEAFOAM_ISLANDS_3_BOULDER_2
ld [wd079], a ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_4 ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_4

View file

@ -7,18 +7,18 @@ SeafoamIslands4Script: ; 4658d (11:658d)
ld hl, Seafoam4HolesCoords ld hl, Seafoam4HolesCoords
call CheckBoulderCoords call CheckBoulderCoords
ret nc ret nc
EventFlagAddress hl, EVENT_9D0 EventFlagAddress hl, EVENT_SEAFOAM4_BOULDER1_DOWN_HOLE
ld a, [wCoordIndex] ld a, [wCoordIndex]
cp $1 cp $1
jr nz, .asm_465b8 jr nz, .asm_465b8
SetEventReuseHL EVENT_9D0 SetEventReuseHL EVENT_SEAFOAM4_BOULDER1_DOWN_HOLE
ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_1 ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_1
ld [wd079], a ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_5_BOULDER_1 ld a, HS_SEAFOAM_ISLANDS_5_BOULDER_1
ld [wd07a], a ld [wd07a], a
jr .asm_465c4 jr .asm_465c4
.asm_465b8 .asm_465b8
SetEventAfterBranchReuseHL EVENT_9D1, EVENT_9D0 SetEventAfterBranchReuseHL EVENT_SEAFOAM4_BOULDER2_DOWN_HOLE, EVENT_SEAFOAM4_BOULDER1_DOWN_HOLE
ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_2 ld a, HS_SEAFOAM_ISLANDS_4_BOULDER_2
ld [wd079], a ld [wd079], a
ld a, HS_SEAFOAM_ISLANDS_5_BOULDER_2 ld a, HS_SEAFOAM_ISLANDS_5_BOULDER_2
@ -56,7 +56,7 @@ SeafoamIslands4ScriptPointers: ; 465fb (11:65fb)
dw SeafoamIslands4Script3 dw SeafoamIslands4Script3
SeafoamIslands4Script0: ; 46603 (11:6603) SeafoamIslands4Script0: ; 46603 (11:6603)
CheckBothEventsSet EVENT_9C8, EVENT_9C9 CheckBothEventsSet EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM3_BOULDER2_DOWN_HOLE
ret z ret z
ld a, [W_YCOORD] ld a, [W_YCOORD]
cp $8 cp $8
@ -91,7 +91,7 @@ SeafoamIslands4Script1: ; 46639 (11:6639)
ret ret
SeafoamIslands4Script2: ; 46644 (11:6644) SeafoamIslands4Script2: ; 46644 (11:6644)
CheckBothEventsSet EVENT_9C8, EVENT_9C9 CheckBothEventsSet EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM3_BOULDER2_DOWN_HOLE
ret z ret z
ld a, [W_XCOORD] ld a, [W_XCOORD]
cp $12 cp $12

View file

@ -27,7 +27,7 @@ SeafoamIslands5Script4: ; 467b7 (11:67b7)
ret ret
SeafoamIslands5Script0: ; 467c7 (11:67c7) SeafoamIslands5Script0: ; 467c7 (11:67c7)
CheckBothEventsSet EVENT_9C8, EVENT_9C9 CheckBothEventsSet EVENT_SEAFOAM3_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM3_BOULDER2_DOWN_HOLE
ret z ret z
ld hl, CoordsData_467fe ld hl, CoordsData_467fe
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -70,7 +70,7 @@ SeafoamIslands5Script1: ; 46807 (11:6807)
ret ret
SeafoamIslands5Script2: ; 46816 (11:6816) SeafoamIslands5Script2: ; 46816 (11:6816)
CheckBothEventsSet EVENT_9D0, EVENT_9D1 CheckBothEventsSet EVENT_SEAFOAM4_BOULDER1_DOWN_HOLE, EVENT_SEAFOAM4_BOULDER2_DOWN_HOLE
ld a, $0 ld a, $0
jr z, .asm_46849 jr z, .asm_46849
ld hl, CoordsData_4684d ld hl, CoordsData_4684d

View file

@ -1,10 +1,10 @@
SilphCo1Script: ; 5d44e (17:544e) SilphCo1Script: ; 5d44e (17:544e)
call EnableAutoTextBoxDrawing call EnableAutoTextBoxDrawing
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
ret z ret z
CheckAndSetEvent EVENT_397 CheckAndSetEvent EVENT_SILPH_CO_RECEPTIONIST_AT_DESK
ret nz ret nz
ld a, HS_SILPH_CO_1F_1 ld a, HS_SILPH_CO_1F_RECEPTIONIST
ld [wcc4d], a ld [wcc4d], a
predef_jump ShowObject predef_jump ShowObject

View file

@ -16,7 +16,7 @@ SilphCo10Script_5a14f: ; 5a14f (16:614f)
ld hl, DataTable_5a173 ld hl, DataTable_5a173
call SilphCo2Script_59d43 call SilphCo2Script_59d43
call SilphCo10Text_5a176 call SilphCo10Text_5a176
CheckEvent EVENT_778 CheckEvent EVENT_SILPH_CO_10_UNLOCKED_DOOR
ret nz ret nz
ld a, $54 ld a, $54
ld [wd09f], a ld [wd09f], a
@ -30,7 +30,7 @@ SilphCo10Text_5a176: ; 5a176 (16:6176)
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
SetEvent EVENT_778 SetEvent EVENT_SILPH_CO_10_UNLOCKED_DOOR
ret ret
SilphCo10ScriptPointers: ; 5a180 (16:6180) SilphCo10ScriptPointers: ; 5a180 (16:6180)
@ -81,7 +81,7 @@ SilphCo10Text2: ; 5a1b5 (16:61b5)
SilphCo10Text3: ; 5a1bf (16:61bf) SilphCo10Text3: ; 5a1bf (16:61bf)
TX_ASM TX_ASM
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
ld hl, SilphCo10Text_5a1d8 ld hl, SilphCo10Text_5a1d8
jr nz, .asm_cf85f jr nz, .asm_cf85f
ld hl, SilphCo10Text_5a1d3 ld hl, SilphCo10Text_5a1d3

View file

@ -16,7 +16,7 @@ SilphCo11Script_62110: ; 62110 (18:6110)
ld hl, DataTable_62134 ld hl, DataTable_62134
call SilphCo11Script_62137 call SilphCo11Script_62137
call SilphCo11Script_62163 call SilphCo11Script_62163
CheckEvent EVENT_788 CheckEvent EVENT_SILPH_CO_11_UNLOCKED_DOOR
ret nz ret nz
ld a, $20 ld a, $20
ld [wd09f], a ld [wd09f], a
@ -66,7 +66,7 @@ SilphCo11Script_62163: ; 62163 (18:6163)
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
SetEvent EVENT_788 SetEvent EVENT_SILPH_CO_11_UNLOCKED_DOOR
ret ret
SilphCo11Script_6216d: ; 6216d (18:616d) SilphCo11Script_6216d: ; 6216d (18:616d)
@ -162,7 +162,7 @@ SilphCo11ScriptPointers: ; 621cf (18:61cf)
dw SilphCo11Script5 dw SilphCo11Script5
SilphCo11Script0: ; 621db (18:61db) SilphCo11Script0: ; 621db (18:61db)
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
ret nz ret nz
ld hl, CoordsData_62211 ld hl, CoordsData_62211
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -228,7 +228,7 @@ SilphCo11Script5: ; 62227 (18:6227)
call UpdateSprites call UpdateSprites
call Delay3 call Delay3
call GBFadeInFromBlack call GBFadeInFromBlack
SetEvent EVENT_78F SetEvent EVENT_BEAT_SILPH_CO_GIOVANNI
xor a xor a
ld [wJoyIgnore], a ld [wJoyIgnore], a
jp SilphCo11Script_621c8 jp SilphCo11Script_621c8
@ -302,7 +302,7 @@ SilphCo11TrainerHeader1: ; 622cf (18:62cf)
SilphCo11Text1: ; 622dc (18:62dc) SilphCo11Text1: ; 622dc (18:62dc)
TX_ASM TX_ASM
CheckEvent EVENT_78D CheckEvent EVENT_GOT_MASTER_BALL
jp nz, .asm_62308 jp nz, .asm_62308
ld hl, SilphCoPresidentText ld hl, SilphCoPresidentText
call PrintText call PrintText
@ -311,7 +311,7 @@ SilphCo11Text1: ; 622dc (18:62dc)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedSilphCoMasterBallText ld hl, ReceivedSilphCoMasterBallText
call PrintText call PrintText
SetEvent EVENT_78D SetEvent EVENT_GOT_MASTER_BALL
jr .asm_6230e jr .asm_6230e
.BagFull .BagFull
ld hl, SilphCoMasterBallNoRoomText ld hl, SilphCoMasterBallNoRoomText

View file

@ -16,7 +16,7 @@ SilphCo2Script_59d07: ; 59d07 (16:5d07)
ld hl, DataTable_59d3e ld hl, DataTable_59d3e
call SilphCo2Script_59d43 call SilphCo2Script_59d43
call SilphCo2Script_59d6f call SilphCo2Script_59d6f
CheckEvent EVENT_6FD CheckEvent EVENT_SILPH_CO_2_UNLOCKED_DOOR1
jr nz, .asm_59d2e jr nz, .asm_59d2e
push af push af
ld a, $54 ld a, $54
@ -25,7 +25,7 @@ SilphCo2Script_59d07: ; 59d07 (16:5d07)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_59d2e .asm_59d2e
bit 6, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_2_UNLOCKED_DOOR2, EVENT_SILPH_CO_2_UNLOCKED_DOOR1
ret nz ret nz
ld a, $54 ld a, $54
ld [wd09f], a ld [wd09f], a
@ -72,16 +72,16 @@ SilphCo2Script_59d43: ; 59d43 (16:5d43)
ret ret
SilphCo2Script_59d6f: ; 59d6f (16:5d6f) SilphCo2Script_59d6f: ; 59d6f (16:5d6f)
EventFlagAddress hl, EVENT_6FD EventFlagAddress hl, EVENT_SILPH_CO_2_UNLOCKED_DOOR1
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
cp $1 cp $1
jr nz, .next jr nz, .next
SetEventReuseHL EVENT_6FD SetEventReuseHL EVENT_SILPH_CO_2_UNLOCKED_DOOR1
ret ret
.next .next
SetEventAfterBranchReuseHL EVENT_6FE, EVENT_6FD SetEventAfterBranchReuseHL EVENT_SILPH_CO_2_UNLOCKED_DOOR2, EVENT_SILPH_CO_2_UNLOCKED_DOOR1
ret ret
SilphCo2ScriptPointers: ; 59d80 (16:5d80) SilphCo2ScriptPointers: ; 59d80 (16:5d80)
@ -137,7 +137,7 @@ SilphCo2TrainerHeader3: ; 59db4 (16:5db4)
SilphCo2Text1: ; 59dc1 (16:5dc1) SilphCo2Text1: ; 59dc1 (16:5dc1)
TX_ASM TX_ASM
CheckEvent EVENT_6FF CheckEvent EVENT_GOT_TM36
jr nz, .asm_59de4 jr nz, .asm_59de4
ld hl, SilphCo2Text_59ded ld hl, SilphCo2Text_59ded
call PrintText call PrintText
@ -145,7 +145,7 @@ SilphCo2Text1: ; 59dc1 (16:5dc1)
call GiveItem call GiveItem
ld hl, TM36NoRoomText ld hl, TM36NoRoomText
jr nc, .asm_59de7 jr nc, .asm_59de7
SetEvent EVENT_6FF SetEvent EVENT_GOT_TM36
ld hl, ReceivedTM36Text ld hl, ReceivedTM36Text
jr .asm_59de7 jr .asm_59de7
.asm_59de4 .asm_59de4

View file

@ -16,7 +16,7 @@ SilphCo3Script_59f71: ; 59f71 (16:5f71)
ld hl, DataTable_59fa8 ld hl, DataTable_59fa8
call SilphCo2Script_59d43 call SilphCo2Script_59d43
call SilphCo3Script_59fad call SilphCo3Script_59fad
CheckEvent EVENT_708 CheckEvent EVENT_SILPH_CO_3_UNLOCKED_DOOR1
jr nz, .asm_59f98 jr nz, .asm_59f98
push af push af
ld a, $5f ld a, $5f
@ -25,7 +25,7 @@ SilphCo3Script_59f71: ; 59f71 (16:5f71)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_59f98 .asm_59f98
bit 1, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_3_UNLOCKED_DOOR2, EVENT_SILPH_CO_3_UNLOCKED_DOOR1
ret nz ret nz
ld a, $5f ld a, $5f
ld [wd09f], a ld [wd09f], a
@ -36,16 +36,16 @@ DataTable_59fa8: ; 59fa8 (16:5fa8)
db $04,$04,$04,$08,$FF db $04,$04,$04,$08,$FF
SilphCo3Script_59fad: ; 59fad (16:5fad) SilphCo3Script_59fad: ; 59fad (16:5fad)
EventFlagAddress hl, EVENT_708 EventFlagAddress hl, EVENT_SILPH_CO_3_UNLOCKED_DOOR1
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
cp $1 cp $1
jr nz, .next jr nz, .next
SetEventReuseHL EVENT_708 SetEventReuseHL EVENT_SILPH_CO_3_UNLOCKED_DOOR1
ret ret
.next .next
SetEventAfterBranchReuseHL EVENT_709, EVENT_708 SetEventAfterBranchReuseHL EVENT_SILPH_CO_3_UNLOCKED_DOOR2, EVENT_SILPH_CO_3_UNLOCKED_DOOR1
ret ret
SilphCo3ScriptPointers: ; 59fbe (16:5fbe) SilphCo3ScriptPointers: ; 59fbe (16:5fbe)
@ -82,7 +82,7 @@ SilphCo3TrainerHeader1: ; 59fd8 (16:5fd8)
SilphCo3Text1: ; 59fe5 (16:5fe5) SilphCo3Text1: ; 59fe5 (16:5fe5)
TX_ASM TX_ASM
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
ld hl, SilphCo3Text_59ffe ld hl, SilphCo3Text_59ffe
jr nz, .asm_59fee jr nz, .asm_59fee
ld hl, SilphCo3Text_59ff9 ld hl, SilphCo3Text_59ff9

View file

@ -16,7 +16,7 @@ SilphCo4Script_19d21: ; 19d21 (6:5d21)
ld hl, SilphCo4Data19d58 ld hl, SilphCo4Data19d58
call SilphCo4Script_19d5d call SilphCo4Script_19d5d
call SilphCo4Script_19d89 call SilphCo4Script_19d89
CheckEvent EVENT_718 CheckEvent EVENT_SILPH_CO_4_UNLOCKED_DOOR1
jr nz, .asm_19d48 jr nz, .asm_19d48
push af push af
ld a, $54 ld a, $54
@ -25,7 +25,7 @@ SilphCo4Script_19d21: ; 19d21 (6:5d21)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_19d48 .asm_19d48
bit 1, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_4_UNLOCKED_DOOR2, EVENT_SILPH_CO_4_UNLOCKED_DOOR1
ret nz ret nz
ld a, $54 ld a, $54
ld [wd09f], a ld [wd09f], a
@ -72,16 +72,16 @@ SilphCo4Script_19d5d: ; 19d5d (6:5d5d)
ret ret
SilphCo4Script_19d89: ; 19d89 (6:5d89) SilphCo4Script_19d89: ; 19d89 (6:5d89)
EventFlagAddress hl, EVENT_718 EventFlagAddress hl, EVENT_SILPH_CO_4_UNLOCKED_DOOR1
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
cp $1 cp $1
jr nz, .next jr nz, .next
SetEventReuseHL EVENT_718 SetEventReuseHL EVENT_SILPH_CO_4_UNLOCKED_DOOR1
ret ret
.next .next
SetEventAfterBranchReuseHL EVENT_719, EVENT_718 SetEventAfterBranchReuseHL EVENT_SILPH_CO_4_UNLOCKED_DOOR2, EVENT_SILPH_CO_4_UNLOCKED_DOOR1
ret ret
SilphCo4ScriptPointers: ; 19d9a (6:5d9a) SilphCo4ScriptPointers: ; 19d9a (6:5d9a)

View file

@ -16,7 +16,7 @@ SilphCo5Script_19f4d: ; 19f4d (6:5f4d)
ld hl, SilphCo5Coords ld hl, SilphCo5Coords
call SilphCo4Script_19d5d call SilphCo4Script_19d5d
call SilphCo5Script_19f9e call SilphCo5Script_19f9e
CheckEvent EVENT_728 CheckEvent EVENT_SILPH_CO_5_UNLOCKED_DOOR1
jr nz, .asm_19f74 jr nz, .asm_19f74
push af push af
ld a, $5f ld a, $5f
@ -25,7 +25,7 @@ SilphCo5Script_19f4d: ; 19f4d (6:5f4d)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_19f74 .asm_19f74
bit 1, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_5_UNLOCKED_DOOR2, EVENT_SILPH_CO_5_UNLOCKED_DOOR1
jr nz, .asm_19f87 jr nz, .asm_19f87
push af push af
ld a, $5f ld a, $5f
@ -34,7 +34,7 @@ SilphCo5Script_19f4d: ; 19f4d (6:5f4d)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_19f87 .asm_19f87
bit 2, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_5_UNLOCKED_DOOR3, EVENT_SILPH_CO_5_UNLOCKED_DOOR2
ret nz ret nz
ld a, $5f ld a, $5f
ld [wd09f], a ld [wd09f], a
@ -45,21 +45,21 @@ SilphCo5Coords: ; 19f97 (6:5f97)
db $02, $03, $06, $03, $05, $07, $ff db $02, $03, $06, $03, $05, $07, $ff
SilphCo5Script_19f9e: ; 19f9e (6:5f9e) SilphCo5Script_19f9e: ; 19f9e (6:5f9e)
EventFlagAddress hl, EVENT_728 EventFlagAddress hl, EVENT_SILPH_CO_5_UNLOCKED_DOOR1
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
cp $1 cp $1
jr nz, .next1 jr nz, .next1
SetEventReuseHL EVENT_728 SetEventReuseHL EVENT_SILPH_CO_5_UNLOCKED_DOOR1
ret ret
.next1 .next1
cp $2 cp $2
jr nz, .next2 jr nz, .next2
SetEventAfterBranchReuseHL EVENT_729, EVENT_728 SetEventAfterBranchReuseHL EVENT_SILPH_CO_5_UNLOCKED_DOOR2, EVENT_SILPH_CO_5_UNLOCKED_DOOR1
ret ret
.next2 .next2
SetEventAfterBranchReuseHL EVENT_72A, EVENT_728 SetEventAfterBranchReuseHL EVENT_SILPH_CO_5_UNLOCKED_DOOR3, EVENT_SILPH_CO_5_UNLOCKED_DOOR1
ret ret
SilphCo5ScriptPointers: ; 19fb6 (6:5fb6) SilphCo5ScriptPointers: ; 19fb6 (6:5fb6)

View file

@ -16,7 +16,7 @@ SilphCo6Script_1a1bf: ; 1a1bf (6:61bf)
ld hl, SilphCo6Coords1 ld hl, SilphCo6Coords1
call SilphCo4Script_19d5d call SilphCo4Script_19d5d
call SilphCo6Script_1a1e6 call SilphCo6Script_1a1e6
CheckEvent EVENT_73F CheckEvent EVENT_SILPH_CO_6_UNLOCKED_DOOR
ret nz ret nz
ld a, $5f ld a, $5f
ld [wd09f], a ld [wd09f], a
@ -31,7 +31,7 @@ SilphCo6Script_1a1e6: ; 1a1e6 (6:61e6)
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
SetEvent EVENT_73F SetEvent EVENT_SILPH_CO_6_UNLOCKED_DOOR
ret ret
SilphCo6ScriptPointers: ; 1a1f0 (6:61f0) SilphCo6ScriptPointers: ; 1a1f0 (6:61f0)
@ -82,7 +82,7 @@ SilphCo6TrainerHeader3: ; 1a222 (6:6222)
db $ff db $ff
SilphCo6Script_1a22f: ; 1a22f (6:622f) SilphCo6Script_1a22f: ; 1a22f (6:622f)
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
jr nz, .asm_1a238 jr nz, .asm_1a238
jr .asm_1a23a jr .asm_1a23a
.asm_1a238 .asm_1a238

View file

@ -16,7 +16,7 @@ SilphCo7Script_51b77: ; 51b77 (14:5b77)
ld hl, DataTable_51bc1 ld hl, DataTable_51bc1
call SilphCo7Text_51bc8 call SilphCo7Text_51bc8
call SilphCo7Text_51bf4 call SilphCo7Text_51bf4
CheckEvent EVENT_74C CheckEvent EVENT_SILPH_CO_7_UNLOCKED_DOOR1
jr nz, .asm_51b9e jr nz, .asm_51b9e
push af push af
ld a, $54 ld a, $54
@ -25,7 +25,7 @@ SilphCo7Script_51b77: ; 51b77 (14:5b77)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_51b9e .asm_51b9e
bit 5, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_7_UNLOCKED_DOOR2, EVENT_SILPH_CO_7_UNLOCKED_DOOR1
jr nz, .asm_51bb1 jr nz, .asm_51bb1
push af push af
ld a, $54 ld a, $54
@ -34,7 +34,7 @@ SilphCo7Script_51b77: ; 51b77 (14:5b77)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_51bb1 .asm_51bb1
bit 6, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_7_UNLOCKED_DOOR3, EVENT_SILPH_CO_7_UNLOCKED_DOOR2
ret nz ret nz
ld a, $54 ld a, $54
ld [wd09f], a ld [wd09f], a
@ -81,21 +81,21 @@ SilphCo7Text_51bc8: ; 51bc8 (14:5bc8)
ret ret
SilphCo7Text_51bf4: ; 51bf4 (14:5bf4) SilphCo7Text_51bf4: ; 51bf4 (14:5bf4)
EventFlagAddress hl, EVENT_74C EventFlagAddress hl, EVENT_SILPH_CO_7_UNLOCKED_DOOR1
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
cp $1 cp $1
jr nz, .next1 jr nz, .next1
SetEventReuseHL EVENT_74C SetEventReuseHL EVENT_SILPH_CO_7_UNLOCKED_DOOR1
ret ret
.next1 .next1
cp $2 cp $2
jr nz, .next2 jr nz, .next2
SetEventAfterBranchReuseHL EVENT_74D, EVENT_74C SetEventAfterBranchReuseHL EVENT_SILPH_CO_7_UNLOCKED_DOOR2, EVENT_SILPH_CO_7_UNLOCKED_DOOR1
ret ret
.next2 .next2
SetEventAfterBranchReuseHL EVENT_74E, EVENT_74C SetEventAfterBranchReuseHL EVENT_SILPH_CO_7_UNLOCKED_DOOR3, EVENT_SILPH_CO_7_UNLOCKED_DOOR1
ret ret
SilphCo7Text_51c0c: ; 51c0c (14:5c0c) SilphCo7Text_51c0c: ; 51c0c (14:5c0c)
@ -116,7 +116,7 @@ SilphCo7ScriptPointers: ; 51c17 (14:5c17)
dw SilphCo7Script5 dw SilphCo7Script5
SilphCo7Script0: ; 51c23 (14:5c23) SilphCo7Script0: ; 51c23 (14:5c23)
CheckEvent EVENT_740 CheckEvent EVENT_BEAT_SILPH_CO_RIVAL
jp nz, CheckFightingMapTrainers jp nz, CheckFightingMapTrainers
ld hl, CoordsData_51c78 ld hl, CoordsData_51c78
call ArePlayerCoordsInArray call ArePlayerCoordsInArray
@ -205,7 +205,7 @@ SilphCo7Script4: ; 51cc8 (14:5cc8)
jp z, SilphCo7Text_51c0c jp z, SilphCo7Text_51c0c
ld a, $f0 ld a, $f0
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEvent EVENT_740 SetEvent EVENT_BEAT_SILPH_CO_RIVAL
ld a, PLAYER_DIR_DOWN ld a, PLAYER_DIR_DOWN
ld [wPlayerMovingDirection], a ld [wPlayerMovingDirection], a
ld a, $9 ld a, $9
@ -321,7 +321,7 @@ SilphCo7Text1:
ld a, [wd72e] ld a, [wd72e]
bit 0, a ; got lapras? bit 0, a ; got lapras?
jr z, .givelapras jr z, .givelapras
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
jr nz, .savedsilph jr nz, .savedsilph
ld hl, .LaprasGuyText ld hl, .LaprasGuyText
call PrintText call PrintText
@ -365,7 +365,7 @@ SilphCo7Text1:
SilphCo7Text2: SilphCo7Text2:
TX_ASM TX_ASM
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
jr nz, .savedsilph jr nz, .savedsilph
ld hl, .rockettext ld hl, .rockettext
call PrintText call PrintText
@ -386,7 +386,7 @@ SilphCo7Text2:
SilphCo7Text3: SilphCo7Text3:
TX_ASM TX_ASM
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
jr nz, .savedsilph jr nz, .savedsilph
ld hl, .rockettext ld hl, .rockettext
call PrintText call PrintText
@ -407,7 +407,7 @@ SilphCo7Text3:
SilphCo7Text4: SilphCo7Text4:
TX_ASM TX_ASM
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
jr nz, .savedsilph jr nz, .savedsilph
ld hl, .rockettext ld hl, .rockettext
call PrintText call PrintText

View file

@ -16,7 +16,7 @@ SilphCo8Script_5651a: ; 5651a (15:651a)
ld hl, DataTable_5653e ld hl, DataTable_5653e
call SilphCo8Script_56541 call SilphCo8Script_56541
call SilphCo8Script_5656d call SilphCo8Script_5656d
CheckEvent EVENT_758 CheckEvent EVENT_SILPH_CO_8_UNLOCKED_DOOR
ret nz ret nz
ld a, $5f ld a, $5f
ld [wd09f], a ld [wd09f], a
@ -66,7 +66,7 @@ SilphCo8Script_5656d: ; 5656d (15:656d)
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
SetEvent EVENT_758 SetEvent EVENT_SILPH_CO_8_UNLOCKED_DOOR
ret ret
SilphCo8ScriptPointers: ; 56577 (15:6577) SilphCo8ScriptPointers: ; 56577 (15:6577)
@ -112,7 +112,7 @@ SilphCo8TrainerHeader2: ; 5659d (15:659d)
SilphCo8Text1: ; 565aa (15:65aa) SilphCo8Text1: ; 565aa (15:65aa)
TX_ASM TX_ASM
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
ld hl, SilphCo8Text_565c3 ld hl, SilphCo8Text_565c3
jr nz, .asm_565b8 jr nz, .asm_565b8
ld hl, SilphCo8Text_565be ld hl, SilphCo8Text_565be

View file

@ -16,7 +16,7 @@ SilphCo9Script_5d7d1: ; 5d7d1 (17:57d1)
ld hl, DataTable_5d82e ld hl, DataTable_5d82e
call SilphCo9Script_5d837 call SilphCo9Script_5d837
call SilphCo9Script_5d863 call SilphCo9Script_5d863
CheckEvent EVENT_768 CheckEvent EVENT_SILPH_CO_9_UNLOCKED_DOOR1
jr nz, .asm_5d7f8 jr nz, .asm_5d7f8
push af push af
ld a, $5f ld a, $5f
@ -25,7 +25,7 @@ SilphCo9Script_5d7d1: ; 5d7d1 (17:57d1)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_5d7f8 .asm_5d7f8
bit 1, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_9_UNLOCKED_DOOR2, EVENT_SILPH_CO_9_UNLOCKED_DOOR1
jr nz, .asm_5d80b jr nz, .asm_5d80b
push af push af
ld a, $54 ld a, $54
@ -34,7 +34,7 @@ SilphCo9Script_5d7d1: ; 5d7d1 (17:57d1)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_5d80b .asm_5d80b
bit 2, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_9_UNLOCKED_DOOR3, EVENT_SILPH_CO_9_UNLOCKED_DOOR2
jr nz, .asm_5d81e jr nz, .asm_5d81e
push af push af
ld a, $54 ld a, $54
@ -43,7 +43,7 @@ SilphCo9Script_5d7d1: ; 5d7d1 (17:57d1)
predef ReplaceTileBlock predef ReplaceTileBlock
pop af pop af
.asm_5d81e .asm_5d81e
bit 3, a CheckEventAfterBranchReuseA EVENT_SILPH_CO_9_UNLOCKED_DOOR4, EVENT_SILPH_CO_9_UNLOCKED_DOOR3
ret nz ret nz
ld a, $5f ld a, $5f
ld [wd09f], a ld [wd09f], a
@ -90,28 +90,28 @@ SilphCo9Script_5d837: ; 5d837 (17:5837)
ret ret
SilphCo9Script_5d863: ; 5d863 (17:5863) SilphCo9Script_5d863: ; 5d863 (17:5863)
EventFlagAddress hl, EVENT_768 EventFlagAddress hl, EVENT_SILPH_CO_9_UNLOCKED_DOOR1
ld a, [$ffe0] ld a, [$ffe0]
and a and a
ret z ret z
cp $1 cp $1
jr nz, .next1 jr nz, .next1
SetEventReuseHL EVENT_768 SetEventReuseHL EVENT_SILPH_CO_9_UNLOCKED_DOOR1
ret ret
.next1 .next1
cp $2 cp $2
jr nz, .next2 jr nz, .next2
SetEventAfterBranchReuseHL EVENT_769, EVENT_768 SetEventAfterBranchReuseHL EVENT_SILPH_CO_9_UNLOCKED_DOOR2, EVENT_SILPH_CO_9_UNLOCKED_DOOR1
ret ret
.next2 .next2
cp $3 cp $3
jr nz, .next3 jr nz, .next3
SetEventAfterBranchReuseHL EVENT_76A, EVENT_768 SetEventAfterBranchReuseHL EVENT_SILPH_CO_9_UNLOCKED_DOOR3, EVENT_SILPH_CO_9_UNLOCKED_DOOR1
ret ret
.next3 .next3
cp $4 cp $4
ret nz ret nz
SetEventAfterBranchReuseHL EVENT_76B, EVENT_768 SetEventAfterBranchReuseHL EVENT_SILPH_CO_9_UNLOCKED_DOOR4, EVENT_SILPH_CO_9_UNLOCKED_DOOR1
ret ret
SilphCo9ScriptPointers: ; 5d885 (17:5885) SilphCo9ScriptPointers: ; 5d885 (17:5885)
@ -157,7 +157,7 @@ SilphCo9TrainerHeader2: ; 5d8ab (17:58ab)
SilphCo9Text1: ; 5d8b8 (17:58b8) SilphCo9Text1: ; 5d8b8 (17:58b8)
TX_ASM TX_ASM
CheckEvent EVENT_78F CheckEvent EVENT_BEAT_SILPH_CO_GIOVANNI
jr nz, .asm_5d8dc jr nz, .asm_5d8dc
ld hl, SilphCo9Text_5d8e5 ld hl, SilphCo9Text_5d8e5
call PrintText call PrintText

View file

@ -3,7 +3,7 @@ SSAnne7Script: ; 61895 (18:5895)
jp EnableAutoTextBoxDrawing jp EnableAutoTextBoxDrawing
SSAnne7Script_6189b: ; 6189b (18:589b) SSAnne7Script_6189b: ; 6189b (18:589b)
CheckEvent EVENT_5E1 CheckEvent EVENT_RUBBED_CAPTAINS_BACK
ret nz ret nz
ld hl, wd72d ld hl, wd72d
set 5, [hl] set 5, [hl]
@ -16,7 +16,7 @@ SSAnne7TextPointers: ; 618a7 (18:58a7)
SSAnne7Text1: ; 618ad (18:58ad) SSAnne7Text1: ; 618ad (18:58ad)
TX_ASM TX_ASM
CheckEvent EVENT_5E0 CheckEvent EVENT_GOT_HM01
jr nz, .asm_797c4 jr nz, .asm_797c4
ld hl, SSAnne7RubText ld hl, SSAnne7RubText
call PrintText call PrintText
@ -27,7 +27,7 @@ SSAnne7Text1: ; 618ad (18:58ad)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedHM01Text ld hl, ReceivedHM01Text
call PrintText call PrintText
SetEvent EVENT_5E0 SetEvent EVENT_GOT_HM01
jr .asm_0faf5 jr .asm_0faf5
.BagFull .BagFull
ld hl, HM01NoRoomText ld hl, HM01NoRoomText
@ -62,7 +62,7 @@ SSAnne7RubText: ; 618ec (18:58ec)
cp MUSIC_PKMN_HEALED cp MUSIC_PKMN_HEALED
jr z, .asm_61910 jr z, .asm_61910
call PlayDefaultMusic call PlayDefaultMusic
SetEvent EVENT_5E1 SetEvent EVENT_RUBBED_CAPTAINS_BACK
ld hl, wd72d ld hl, wd72d
res 5, [hl] res 5, [hl]
jp TextScriptEnd jp TextScriptEnd

View file

@ -23,8 +23,8 @@ VermilionCityScript_197c0: ; 197c0 (6:57c0)
VermilionCityScript_197cb: ; 197cb (6:57cb) VermilionCityScript_197cb: ; 197cb (6:57cb)
CheckEventHL EVENT_SS_ANNE_LEFT CheckEventHL EVENT_SS_ANNE_LEFT
ret z ret z
CheckEventReuseHL EVENT_5E3 CheckEventReuseHL EVENT_WALKED_PAST_GUARD_AFTER_SS_ANNE_LEFT
SetEventReuseHL EVENT_5E3 SetEventReuseHL EVENT_WALKED_PAST_GUARD_AFTER_SS_ANNE_LEFT
ret nz ret nz
ld a, $2 ld a, $2
ld [W_VERMILIONCITYCURSCRIPT], a ld [W_VERMILIONCITYCURSCRIPT], a

View file

@ -1,20 +1,20 @@
VermilionDockScript: ; 1db52 (7:5b52) VermilionDockScript: ; 1db52 (7:5b52)
call EnableAutoTextBoxDrawing call EnableAutoTextBoxDrawing
CheckEventHL EVENT_5E4 CheckEventHL EVENT_STARTED_WALKING_OUT_OF_DOCK
jr nz, .asm_1db8d jr nz, .asm_1db8d
CheckEventReuseHL EVENT_5E0 CheckEventReuseHL EVENT_GOT_HM01
ret z ret z
ld a, [wDestinationWarpID] ld a, [wDestinationWarpID]
cp $1 cp $1
ret nz ret nz
CheckEventReuseHL EVENT_SS_ANNE_LEFT CheckEventReuseHL EVENT_SS_ANNE_LEFT
jp z, VermilionDock_1db9b jp z, VermilionDock_1db9b
SetEventReuseHL EVENT_5E4 SetEventReuseHL EVENT_STARTED_WALKING_OUT_OF_DOCK
call Delay3 call Delay3
ld hl, wd730 ld hl, wd730
set 7, [hl] set 7, [hl]
ld hl, wSimulatedJoypadStatesEnd ld hl, wSimulatedJoypadStatesEnd
ld a, $40 ld a, D_UP
ld [hli], a ld [hli], a
ld [hli], a ld [hli], a
ld [hl], a ld [hl], a
@ -27,13 +27,13 @@ VermilionDockScript: ; 1db52 (7:5b52)
ld [wJoyIgnore], a ld [wJoyIgnore], a
ret ret
.asm_1db8d .asm_1db8d
CheckEventAfterBranchReuseHL EVENT_5E5, EVENT_5E4 CheckEventAfterBranchReuseHL EVENT_WALKED_OUT_OF_DOCK, EVENT_STARTED_WALKING_OUT_OF_DOCK
ret nz ret nz
ld a, [wSimulatedJoypadStatesIndex] ld a, [wSimulatedJoypadStatesIndex]
and a and a
ret nz ret nz
ld [wJoyIgnore], a ld [wJoyIgnore], a
SetEventReuseHL EVENT_5E5 SetEventReuseHL EVENT_WALKED_OUT_OF_DOCK
ret ret
VermilionDock_1db9b: ; 1db9b (7:5b9b) VermilionDock_1db9b: ; 1db9b (7:5b9b)

View file

@ -11,7 +11,7 @@ VictoryRoad1Script: ; 5da0a (17:5a0a)
ld [W_VICTORYROAD1CURSCRIPT], a ld [W_VICTORYROAD1CURSCRIPT], a
ret ret
.next .next
CheckEvent EVENT_917 CheckEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
ret z ret z
ld a, $1d ld a, $1d
ld [wd09f], a ld [wd09f], a
@ -24,14 +24,14 @@ VictoryRoad1ScriptPointers: ; 5da3a (17:5a3a)
dw EndTrainerBattle dw EndTrainerBattle
VictoryRoad1Script0: ; 5da40 (17:5a40) VictoryRoad1Script0: ; 5da40 (17:5a40)
CheckEvent EVENT_917 CheckEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
jp nz, CheckFightingMapTrainers jp nz, CheckFightingMapTrainers
ld hl, CoordsData_5da5c ld hl, CoordsData_5da5c
call CheckBoulderCoords call CheckBoulderCoords
jp nc, CheckFightingMapTrainers jp nc, CheckFightingMapTrainers
ld hl, wd126 ld hl, wd126
set 5, [hl] set 5, [hl]
SetEvent EVENT_917 SetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
ret ret
CoordsData_5da5c: ; 5da5c (17:5a5c) CoordsData_5da5c: ; 5da5c (17:5a5c)

View file

@ -16,10 +16,10 @@ VictoryRoad2Script: ; 5179d (14:579d)
ret ret
VictoryRoad2Script_517c4: ; 517c4 (14:57c4) VictoryRoad2Script_517c4: ; 517c4 (14:57c4)
ResetEvent EVENT_917 ResetEvent EVENT_VICTORY_ROAD_1_BOULDER_ON_SWITCH
VictoryRoad2Script_517c9: ; 517c9 (14:57c9) VictoryRoad2Script_517c9: ; 517c9 (14:57c9)
CheckEvent EVENT_538 CheckEvent EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1
jr z, .asm_517da jr z, .asm_517da
push af push af
ld a, $15 ld a, $15
@ -46,17 +46,17 @@ VictoryRoad2Script0: ; 517f1 (14:57f1)
ld hl, CoordsData_51816 ld hl, CoordsData_51816
call CheckBoulderCoords call CheckBoulderCoords
jp nc, CheckFightingMapTrainers jp nc, CheckFightingMapTrainers
EventFlagAddress hl, EVENT_538 EventFlagAddress hl, EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1
ld a, [wCoordIndex] ld a, [wCoordIndex]
cp $2 cp $2
jr z, .asm_5180b jr z, .asm_5180b
CheckEventReuseHL EVENT_538 CheckEventReuseHL EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1
SetEventReuseHL EVENT_538 SetEventReuseHL EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1
ret nz ret nz
jr .asm_51810 jr .asm_51810
.asm_5180b .asm_5180b
CheckEventAfterBranchReuseHL EVENT_53F, EVENT_538 CheckEventAfterBranchReuseHL EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2, EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH1
SetEventReuseHL EVENT_53F SetEventReuseHL EVENT_VICTORY_ROAD_2_BOULDER_ON_SWITCH2
ret nz ret nz
.asm_51810 .asm_51810
ld hl, wd126 ld hl, wd126

View file

@ -13,7 +13,7 @@ VictoryRoad3Script_44996: ; 44996 (11:4996)
bit 5, [hl] bit 5, [hl]
res 5, [hl] res 5, [hl]
ret z ret z
CheckEventHL EVENT_660 CheckEventHL EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
ret z ret z
ld a, $1d ld a, $1d
ld [wd09f], a ld [wd09f], a
@ -38,10 +38,10 @@ VictoryRoad3Script0: ; 449b7 (11:49b7)
jr nz, .asm_449dc jr nz, .asm_449dc
ld hl, wd126 ld hl, wd126
set 5, [hl] set 5, [hl]
SetEvent EVENT_660 SetEvent EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
ret ret
.asm_449dc .asm_449dc
CheckAndSetEvent EVENT_666 CheckAndSetEvent EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH2
jr nz, .asm_449fe jr nz, .asm_449fe
ld a, HS_VICTORY_ROAD_3_BOULDER ld a, HS_VICTORY_ROAD_3_BOULDER
ld [wcc4d], a ld [wcc4d], a

View file

@ -15,12 +15,12 @@ ViridianCityScript0: ; 19005 (6:5005)
jp ViridianCityScript_1903d jp ViridianCityScript_1903d
ViridianCityScript_1900b: ; 1900b (6:500b) ViridianCityScript_1900b: ; 1900b (6:500b)
CheckEvent EVENT_028 CheckEvent EVENT_VIRIDIAN_GYM_OPEN
ret nz ret nz
ld a, [W_OBTAINEDBADGES] ld a, [W_OBTAINEDBADGES]
cp %01111111 cp %01111111
jr nz, .asm_1901e jr nz, .asm_1901e
SetEvent EVENT_028 SetEvent EVENT_VIRIDIAN_GYM_OPEN
ret ret
.asm_1901e .asm_1901e
ld a, [W_YCOORD] ld a, [W_YCOORD]
@ -231,7 +231,7 @@ ViridianCityText_19191: ; 19191 (6:5191)
ViridianCityText6: ; 19196 (6:5196) ViridianCityText6: ; 19196 (6:5196)
TX_ASM TX_ASM
CheckEvent EVENT_029 CheckEvent EVENT_GOT_TM42
jr nz, .asm_4e5a0 jr nz, .asm_4e5a0
ld hl, ViridianCityText_191ca ld hl, ViridianCityText_191ca
call PrintText call PrintText
@ -240,7 +240,7 @@ ViridianCityText6: ; 19196 (6:5196)
jr nc, .BagFull jr nc, .BagFull
ld hl, ReceivedTM42Text ld hl, ReceivedTM42Text
call PrintText call PrintText
SetEvent EVENT_029 SetEvent EVENT_GOT_TM42
jr .asm_3c73c jr .asm_3c73c
.BagFull .BagFull
ld hl, TM42NoRoomText ld hl, TM42NoRoomText

View file

@ -165,7 +165,7 @@ ViridianGymScript3_74995: ; 74995 (1d:4995)
ld a, HS_ROUTE_22_RIVAL_2 ld a, HS_ROUTE_22_RIVAL_2
ld [wcc4d], a ld [wcc4d], a
predef ShowObject predef ShowObject
SetEvents EVENT_521, EVENT_527 SetEvents EVENT_2ND_ROUTE22_RIVAL_BATTLE, EVENT_ROUTE22_RIVAL_WANTS_FIGHT
jp ViridianGymScript_748d6 jp ViridianGymScript_748d6
ViridianGymTextPointers: ; 749ec (1d:49ec) ViridianGymTextPointers: ; 749ec (1d:49ec)

View file

@ -6,7 +6,7 @@ ViridianMartScript: ; 1d46e (7:546e)
jp CallFunctionInTable jp CallFunctionInTable
ViridianMartScript_1d47d: ; 1d47d (7:547d) ViridianMartScript_1d47d: ; 1d47d (7:547d)
CheckEvent EVENT_038 CheckEvent EVENT_OAK_GOT_PARCEL
jr nz, .asm_1d489 jr nz, .asm_1d489
ld hl, ViridianMartTextPointers ld hl, ViridianMartTextPointers
jr .asm_1d48c jr .asm_1d48c
@ -54,7 +54,7 @@ ViridianMartScript1: ; 1d4c0 (7:54c0)
call DisplayTextID call DisplayTextID
ld bc, (OAKS_PARCEL << 8) + 1 ld bc, (OAKS_PARCEL << 8) + 1
call GiveItem call GiveItem
SetEvent EVENT_039 SetEvent EVENT_GOT_OAKS_PARCEL
ld a, $2 ld a, $2
ld [W_VIRIDIANMARKETCURSCRIPT], a ld [W_VIRIDIANMARKETCURSCRIPT], a
; fallthrough ; fallthrough