GROUP_N_A EQU -1 MAP_N_A EQU -1 GROUP_NONE EQU 0 MAP_NONE EQU 0 ; map group ids const_def newgroup mapgroup OLIVINE_POKECENTER_1F, 4, 5 mapgroup OLIVINE_GYM, 8, 5 mapgroup OLIVINE_VOLTORB_HOUSE, 4, 4 mapgroup OLIVINE_HOUSE_BETA, 4, 4 mapgroup OLIVINE_PUNISHMENT_SPEECH_HOUSE, 4, 4 mapgroup OLIVINE_GOOD_ROD_HOUSE, 4, 4 mapgroup OLIVINE_CAFE, 4, 4 mapgroup OLIVINE_MART, 4, 6 mapgroup ROUTE_38_ECRUTEAK_GATE, 4, 5 mapgroup ROUTE_39_BARN, 4, 4 mapgroup ROUTE_39_FARMHOUSE, 4, 4 mapgroup ROUTE_38, 9, 20 mapgroup ROUTE_39, 18, 10 mapgroup OLIVINE_CITY, 18, 20 newgroup mapgroup MAHOGANY_RED_GYARADOS_SPEECH_HOUSE, 4, 4 mapgroup MAHOGANY_GYM, 9, 5 mapgroup MAHOGANY_POKECENTER_1F, 4, 5 mapgroup ROUTE_42_ECRUTEAK_GATE, 4, 5 mapgroup ROUTE_42, 9, 30 mapgroup ROUTE_44, 9, 30 mapgroup MAHOGANY_TOWN, 9, 10 newgroup mapgroup SPROUT_TOWER_1F, 8, 10 mapgroup SPROUT_TOWER_2F, 8, 10 mapgroup SPROUT_TOWER_3F, 8, 10 mapgroup TIN_TOWER_1F, 9, 10 mapgroup TIN_TOWER_2F, 9, 10 mapgroup TIN_TOWER_3F, 9, 10 mapgroup TIN_TOWER_4F, 9, 10 mapgroup TIN_TOWER_5F, 9, 10 mapgroup TIN_TOWER_6F, 9, 10 mapgroup TIN_TOWER_7F, 9, 10 mapgroup TIN_TOWER_8F, 9, 10 mapgroup TIN_TOWER_9F, 9, 10 mapgroup BURNED_TOWER_1F, 9, 10 mapgroup BURNED_TOWER_B1F, 9, 10 mapgroup NATIONAL_PARK, 27, 20 mapgroup NATIONAL_PARK_BUG_CONTEST, 27, 20 mapgroup RADIO_TOWER_1F, 4, 9 mapgroup RADIO_TOWER_2F, 4, 9 mapgroup RADIO_TOWER_3F, 4, 9 mapgroup RADIO_TOWER_4F, 4, 9 mapgroup RADIO_TOWER_5F, 4, 9 mapgroup RUINS_OF_ALPH_OUTSIDE, 18, 10 mapgroup RUINS_OF_ALPH_HO_OH_CHAMBER, 5, 4 mapgroup RUINS_OF_ALPH_KABUTO_CHAMBER, 5, 4 mapgroup RUINS_OF_ALPH_OMANYTE_CHAMBER, 5, 4 mapgroup RUINS_OF_ALPH_AERODACTYL_CHAMBER, 5, 4 mapgroup RUINS_OF_ALPH_INNER_CHAMBER, 14, 10 mapgroup RUINS_OF_ALPH_RESEARCH_CENTER, 4, 4 mapgroup RUINS_OF_ALPH_HO_OH_ITEM_ROOM, 5, 4 mapgroup RUINS_OF_ALPH_KABUTO_ITEM_ROOM, 5, 4 mapgroup RUINS_OF_ALPH_OMANYTE_ITEM_ROOM, 5, 4 mapgroup RUINS_OF_ALPH_AERODACTYL_ITEM_ROOM, 5, 4 mapgroup RUINS_OF_ALPH_HO_OH_WORD_ROOM, 12, 10 mapgroup RUINS_OF_ALPH_KABUTO_WORD_ROOM, 7, 10 mapgroup RUINS_OF_ALPH_OMANYTE_WORD_ROOM, 8, 10 mapgroup RUINS_OF_ALPH_AERODACTYL_WORD_ROOM, 7, 10 mapgroup UNION_CAVE_1F, 18, 10 mapgroup UNION_CAVE_B1F, 18, 10 mapgroup UNION_CAVE_B2F, 18, 10 mapgroup SLOWPOKE_WELL_B1F, 9, 10 mapgroup SLOWPOKE_WELL_B2F, 9, 10 mapgroup OLIVINE_LIGHTHOUSE_1F, 9, 10 mapgroup OLIVINE_LIGHTHOUSE_2F, 9, 10 mapgroup OLIVINE_LIGHTHOUSE_3F, 9, 10 mapgroup OLIVINE_LIGHTHOUSE_4F, 9, 10 mapgroup OLIVINE_LIGHTHOUSE_5F, 9, 10 mapgroup OLIVINE_LIGHTHOUSE_6F, 9, 10 mapgroup MAHOGANY_MART_1F, 4, 4 mapgroup TEAM_ROCKET_BASE_B1F, 9, 15 mapgroup TEAM_ROCKET_BASE_B2F, 9, 15 mapgroup TEAM_ROCKET_BASE_B3F, 9, 15 mapgroup ILEX_FOREST, 27, 15 mapgroup WAREHOUSE_ENTRANCE, 18, 15 mapgroup UNDERGROUND_PATH_SWITCH_ROOM_ENTRANCES, 18, 15 mapgroup GOLDENROD_DEPT_STORE_B1F, 9, 10 mapgroup UNDERGROUND_WAREHOUSE, 9, 10 mapgroup MOUNT_MORTAR_1F_OUTSIDE, 18, 20 mapgroup MOUNT_MORTAR_1F_INSIDE, 27, 20 mapgroup MOUNT_MORTAR_2F_INSIDE, 18, 20 mapgroup MOUNT_MORTAR_B1F, 18, 20 mapgroup ICE_PATH_1F, 18, 20 mapgroup ICE_PATH_B1F, 18, 10 mapgroup ICE_PATH_B2F_MAHOGANY_SIDE, 9, 10 mapgroup ICE_PATH_B2F_BLACKTHORN_SIDE, 9, 5 mapgroup ICE_PATH_B3F, 9, 10 mapgroup WHIRL_ISLAND_NW, 9, 5 mapgroup WHIRL_ISLAND_NE, 9, 10 mapgroup WHIRL_ISLAND_SW, 9, 10 mapgroup WHIRL_ISLAND_CAVE, 9, 5 mapgroup WHIRL_ISLAND_SE, 9, 5 mapgroup WHIRL_ISLAND_B1F, 18, 20 mapgroup WHIRL_ISLAND_B2F, 18, 10 mapgroup WHIRL_ISLAND_LUGIA_CHAMBER, 9, 10 mapgroup SILVER_CAVE_ROOM_1, 18, 10 mapgroup SILVER_CAVE_ROOM_2, 18, 15 mapgroup SILVER_CAVE_ROOM_3, 18, 10 mapgroup SILVER_CAVE_ITEM_ROOMS, 9, 10 mapgroup DARK_CAVE_VIOLET_ENTRANCE, 18, 20 mapgroup DARK_CAVE_BLACKTHORN_ENTRANCE, 18, 15 mapgroup DRAGONS_DEN_1F, 9, 5 mapgroup DRAGONS_DEN_B1F, 18, 20 mapgroup DRAGON_SHRINE, 5, 5 mapgroup TOHJO_FALLS, 9, 15 mapgroup DIGLETTS_CAVE, 18, 10 mapgroup MOUNT_MOON, 9, 15 mapgroup UNDERGROUND, 14, 3 mapgroup ROCK_TUNNEL_1F, 18, 15 mapgroup ROCK_TUNNEL_B1F, 18, 15 mapgroup SAFARI_ZONE_FUCHSIA_GATE_BETA, 4, 5 mapgroup SAFARI_ZONE_BETA, 18, 10 mapgroup VICTORY_ROAD, 36, 10 newgroup mapgroup ECRUTEAK_HOUSE, 9, 10 mapgroup WISE_TRIOS_ROOM, 4, 4 mapgroup ECRUTEAK_POKECENTER_1F, 4, 5 mapgroup ECRUTEAK_LUGIA_SPEECH_HOUSE, 4, 4 mapgroup DANCE_THEATRE, 7, 6 mapgroup ECRUTEAK_MART, 4, 6 mapgroup ECRUTEAK_GYM, 9, 5 mapgroup ECRUTEAK_ITEMFINDER_HOUSE, 4, 4 mapgroup ECRUTEAK_CITY, 18, 20 newgroup mapgroup BLACKTHORN_GYM_1F, 9, 5 mapgroup BLACKTHORN_GYM_2F, 9, 5 mapgroup BLACKTHORN_DRAGON_SPEECH_HOUSE, 4, 4 mapgroup BLACKTHORN_DODRIO_TRADE_HOUSE, 4, 4 mapgroup BLACKTHORN_MART, 4, 6 mapgroup BLACKTHORN_POKECENTER_1F, 4, 5 mapgroup MOVE_DELETERS_HOUSE, 4, 4 mapgroup ROUTE_45, 45, 10 mapgroup ROUTE_46, 18, 10 mapgroup BLACKTHORN_CITY, 18, 20 newgroup mapgroup CINNABAR_POKECENTER_1F, 4, 5 mapgroup CINNABAR_POKECENTER_2F_BETA, 4, 8 mapgroup ROUTE_19___FUCHSIA_GATE, 4, 5 mapgroup SEAFOAM_GYM, 4, 5 mapgroup ROUTE_19, 18, 10 mapgroup ROUTE_20, 9, 30 mapgroup ROUTE_21, 18, 10 mapgroup CINNABAR_ISLAND, 9, 10 newgroup mapgroup CERULEAN_GYM_BADGE_SPEECH_HOUSE, 4, 4 mapgroup CERULEAN_POLICE_STATION, 4, 4 mapgroup CERULEAN_TRADE_SPEECH_HOUSE, 4, 4 mapgroup CERULEAN_POKECENTER_1F, 4, 5 mapgroup CERULEAN_POKECENTER_2F_BETA, 4, 8 mapgroup CERULEAN_GYM, 8, 5 mapgroup CERULEAN_MART, 4, 6 mapgroup ROUTE_10_POKECENTER_1F, 4, 5 mapgroup ROUTE_10_POKECENTER_2F_BETA, 4, 8 mapgroup POWER_PLANT, 9, 10 mapgroup BILLS_HOUSE, 4, 4 mapgroup ROUTE_4, 9, 20 mapgroup ROUTE_9, 9, 30 mapgroup ROUTE_10_NORTH, 9, 10 mapgroup ROUTE_24, 9, 10 mapgroup ROUTE_25, 9, 30 mapgroup CERULEAN_CITY, 18, 20 newgroup mapgroup AZALEA_POKECENTER_1F, 4, 5 mapgroup CHARCOAL_KILN, 4, 4 mapgroup AZALEA_MART, 4, 6 mapgroup KURTS_HOUSE, 4, 8 mapgroup AZALEA_GYM, 8, 5 mapgroup ROUTE_33, 9, 10 mapgroup AZALEA_TOWN, 9, 20 newgroup mapgroup LAKE_OF_RAGE_HIDDEN_POWER_HOUSE, 4, 4 mapgroup LAKE_OF_RAGE_MAGIKARP_HOUSE, 4, 4 mapgroup ROUTE_43_MAHOGANY_GATE, 4, 5 mapgroup ROUTE_43_GATE, 4, 5 mapgroup ROUTE_43, 27, 10 mapgroup LAKE_OF_RAGE, 18, 20 newgroup mapgroup ROUTE_32, 45, 10 mapgroup ROUTE_35, 18, 10 mapgroup ROUTE_36, 9, 30 mapgroup ROUTE_37, 9, 10 mapgroup VIOLET_CITY, 18, 20 mapgroup VIOLET_MART, 4, 6 mapgroup VIOLET_GYM, 8, 5 mapgroup EARLS_POKEMON_ACADEMY, 8, 4 mapgroup VIOLET_NICKNAME_SPEECH_HOUSE, 4, 4 mapgroup VIOLET_POKECENTER_1F, 4, 5 mapgroup VIOLET_ONIX_TRADE_HOUSE, 4, 4 mapgroup ROUTE_32_RUINS_OF_ALPH_GATE, 4, 5 mapgroup ROUTE_32_POKECENTER_1F, 4, 5 mapgroup ROUTE_35_GOLDENROD_GATE, 4, 5 mapgroup ROUTE_35_NATIONAL_PARK_GATE, 4, 4 mapgroup ROUTE_36_RUINS_OF_ALPH_GATE, 4, 5 mapgroup ROUTE_36_NATIONAL_PARK_GATE, 4, 5 newgroup mapgroup ROUTE_34, 27, 10 mapgroup GOLDENROD_CITY, 18, 20 mapgroup GOLDENROD_GYM, 9, 10 mapgroup GOLDENROD_BIKE_SHOP, 4, 4 mapgroup GOLDENROD_HAPPINESS_RATER, 4, 4 mapgroup GOLDENROD_BILLS_HOUSE, 4, 4 mapgroup GOLDENROD_MAGNET_TRAIN_STATION, 9, 10 mapgroup GOLDENROD_FLOWER_SHOP, 4, 4 mapgroup GOLDENROD_PP_SPEECH_HOUSE, 4, 4 mapgroup GOLDENROD_NAME_RATERS_HOUSE, 4, 4 mapgroup GOLDENROD_DEPT_STORE_1F, 4, 8 mapgroup GOLDENROD_DEPT_STORE_2F, 4, 8 mapgroup GOLDENROD_DEPT_STORE_3F, 4, 8 mapgroup GOLDENROD_DEPT_STORE_4F, 4, 8 mapgroup GOLDENROD_DEPT_STORE_5F, 4, 8 mapgroup GOLDENROD_DEPT_STORE_6F, 4, 8 mapgroup GOLDENROD_DEPT_STORE_ELEVATOR, 2, 2 mapgroup GOLDENROD_DEPT_STORE_ROOF, 4, 8 mapgroup GOLDENROD_GAME_CORNER, 7, 10 mapgroup GOLDENROD_POKECENTER_1F, 4, 5 mapgroup GOLDENROD_POKECOM_CENTER_2F_MOBILE, 16, 16 mapgroup ILEX_FOREST_AZALEA_GATE, 4, 5 mapgroup ROUTE_34_ILEX_FOREST_GATE, 4, 5 mapgroup DAYCARE, 4, 5 newgroup mapgroup ROUTE_6, 9, 10 mapgroup ROUTE_11, 9, 20 mapgroup VERMILION_CITY, 18, 20 mapgroup VERMILION_HOUSE_FISHING_SPEECH_HOUSE, 4, 4 mapgroup VERMILION_POKECENTER_1F, 4, 5 mapgroup VERMILION_POKECENTER_2F_BETA, 4, 8 mapgroup POKEMON_FAN_CLUB, 4, 5 mapgroup VERMILION_MAGNET_TRAIN_SPEECH_HOUSE, 4, 4 mapgroup VERMILION_MART, 4, 6 mapgroup VERMILION_HOUSE_DIGLETTS_CAVE_SPEECH_HOUSE, 4, 4 mapgroup VERMILION_GYM, 9, 5 mapgroup ROUTE_6_SAFFRON_GATE, 4, 5 mapgroup ROUTE_6_UNDERGROUND_ENTRANCE, 4, 4 newgroup mapgroup ROUTE_1, 18, 10 mapgroup PALLET_TOWN, 9, 10 mapgroup REDS_HOUSE_1F, 4, 4 mapgroup REDS_HOUSE_2F, 4, 4 mapgroup BLUES_HOUSE, 4, 4 mapgroup OAKS_LAB, 6, 5 newgroup mapgroup ROUTE_3, 9, 30 mapgroup PEWTER_CITY, 18, 20 mapgroup PEWTER_NIDORAN_SPEECH_HOUSE, 4, 4 mapgroup PEWTER_GYM, 7, 5 mapgroup PEWTER_MART, 4, 6 mapgroup PEWTER_POKECENTER_1F, 4, 5 mapgroup PEWTER_POKECENTER_2F_BETA, 4, 8 mapgroup PEWTER_SNOOZE_SPEECH_HOUSE, 4, 4 newgroup mapgroup OLIVINE_PORT, 18, 10 mapgroup VERMILION_PORT, 18, 10 mapgroup FAST_SHIP_1F, 9, 16 mapgroup FAST_SHIP_CABINS_NNW_NNE_NE, 16, 4 mapgroup FAST_SHIP_CABINS_SW_SSW_NW, 16, 4 mapgroup FAST_SHIP_CABINS_SE_SSE_CAPTAINS_CABIN, 17, 5 mapgroup FAST_SHIP_B1F, 8, 16 mapgroup OLIVINE_PORT_PASSAGE, 9, 10 mapgroup VERMILION_PORT_PASSAGE, 9, 10 mapgroup MOUNT_MOON_SQUARE, 9, 15 mapgroup MOUNT_MOON_GIFT_SHOP, 4, 4 mapgroup TIN_TOWER_ROOF, 9, 10 newgroup mapgroup ROUTE_23, 9, 10 mapgroup INDIGO_PLATEAU_POKECENTER_1F, 7, 9 mapgroup WILLS_ROOM, 9, 5 mapgroup KOGAS_ROOM, 9, 5 mapgroup BRUNOS_ROOM, 9, 5 mapgroup KARENS_ROOM, 9, 5 mapgroup LANCES_ROOM, 12, 5 mapgroup HALL_OF_FAME, 7, 5 newgroup mapgroup ROUTE_13, 9, 30 mapgroup ROUTE_14, 18, 10 mapgroup ROUTE_15, 9, 20 mapgroup ROUTE_18, 9, 10 mapgroup FUCHSIA_CITY, 18, 20 mapgroup FUCHSIA_MART, 4, 6 mapgroup SAFARI_ZONE_MAIN_OFFICE, 4, 4 mapgroup FUCHSIA_GYM, 9, 5 mapgroup FUCHSIA_BILL_SPEECH_HOUSE, 4, 4 mapgroup FUCHSIA_POKECENTER_1F, 4, 5 mapgroup FUCHSIA_POKECENTER_2F_BETA, 4, 8 mapgroup SAFARI_ZONE_WARDENS_HOME, 4, 5 mapgroup ROUTE_15_FUCHSIA_GATE, 4, 5 newgroup mapgroup ROUTE_8, 9, 20 mapgroup ROUTE_12, 27, 10 mapgroup ROUTE_10_SOUTH, 9, 10 mapgroup LAVENDER_TOWN, 9, 10 mapgroup LAVENDER_POKECENTER_1F, 4, 5 mapgroup LAVENDER_POKECENTER_2F_BETA, 4, 8 mapgroup MR_FUJIS_HOUSE, 4, 5 mapgroup LAVENDER_TOWN_SPEECH_HOUSE, 4, 4 mapgroup LAVENDER_NAME_RATER, 4, 4 mapgroup LAVENDER_MART, 4, 6 mapgroup SOUL_HOUSE, 4, 5 mapgroup LAV_RADIO_TOWER_1F, 4, 10 mapgroup ROUTE_8_SAFFRON_GATE, 4, 5 mapgroup ROUTE_12_SUPER_ROD_HOUSE, 4, 4 newgroup mapgroup ROUTE_28, 9, 20 mapgroup SILVER_CAVE_OUTSIDE, 18, 20 mapgroup SILVER_CAVE_POKECENTER_1F, 4, 5 mapgroup ROUTE_28_FAMOUS_SPEECH_HOUSE, 4, 4 newgroup mapgroup POKECENTER_2F, 4, 8 mapgroup TRADE_CENTER, 4, 5 mapgroup COLOSSEUM, 4, 5 mapgroup TIME_CAPSULE, 4, 5 mapgroup MOBILE_TRADE_ROOM_MOBILE, 4, 5 mapgroup MOBILE_BATTLE_ROOM, 4, 5 newgroup mapgroup ROUTE_7, 9, 10 mapgroup ROUTE_16, 9, 10 mapgroup ROUTE_17, 45, 10 mapgroup CELADON_CITY, 18, 20 mapgroup CELADON_DEPT_STORE_1F, 4, 8 mapgroup CELADON_DEPT_STORE_2F, 4, 8 mapgroup CELADON_DEPT_STORE_3F, 4, 8 mapgroup CELADON_DEPT_STORE_4F, 4, 8 mapgroup CELADON_DEPT_STORE_5F, 4, 8 mapgroup CELADON_DEPT_STORE_6F, 4, 8 mapgroup CELADON_DEPT_STORE_ELEVATOR, 2, 2 mapgroup CELADON_MANSION_1F, 5, 4 mapgroup CELADON_MANSION_2F, 5, 4 mapgroup CELADON_MANSION_3F, 5, 4 mapgroup CELADON_MANSION_ROOF, 5, 4 mapgroup CELADON_MANSION_ROOF_HOUSE, 4, 4 mapgroup CELADON_POKECENTER_1F, 4, 5 mapgroup CELADON_POKECENTER_2F_BETA, 4, 8 mapgroup CELADON_GAME_CORNER, 7, 10 mapgroup CELADON_GAME_CORNER_PRIZE_ROOM, 3, 3 mapgroup CELADON_GYM, 9, 5 mapgroup CELADON_CAFE, 4, 6 mapgroup ROUTE_16_FUCHSIA_SPEECH_HOUSE, 4, 4 mapgroup ROUTE_16_GATE, 4, 5 mapgroup ROUTE_7_SAFFRON_GATE, 4, 5 mapgroup ROUTE_17_18_GATE, 4, 5 newgroup mapgroup ROUTE_40, 18, 10 mapgroup ROUTE_41, 27, 25 mapgroup CIANWOOD_CITY, 27, 15 mapgroup MANIAS_HOUSE, 4, 4 mapgroup CIANWOOD_GYM, 9, 5 mapgroup CIANWOOD_POKECENTER_1F, 4, 5 mapgroup CIANWOOD_PHARMACY, 4, 4 mapgroup CIANWOOD_CITY_PHOTO_STUDIO, 4, 4 mapgroup CIANWOOD_LUGIA_SPEECH_HOUSE, 4, 4 mapgroup POKE_SEERS_HOUSE, 4, 4 mapgroup BATTLE_TOWER_1F, 5, 8 mapgroup BATTLE_TOWER_BATTLE_ROOM, 4, 4 mapgroup BATTLE_TOWER_ELEVATOR, 2, 2 mapgroup BATTLE_TOWER_HALLWAY, 2, 11 mapgroup ROUTE_40_BATTLE_TOWER_GATE, 4, 5 mapgroup BATTLE_TOWER_OUTSIDE, 14, 10 newgroup mapgroup ROUTE_2, 27, 10 mapgroup ROUTE_22, 9, 20 mapgroup VIRIDIAN_CITY, 18, 20 mapgroup VIRIDIAN_GYM, 9, 5 mapgroup VIRIDIAN_NICKNAME_SPEECH_HOUSE, 4, 4 mapgroup TRAINER_HOUSE_1F, 7, 5 mapgroup TRAINER_HOUSE_B1F, 8, 5 mapgroup VIRIDIAN_MART, 4, 6 mapgroup VIRIDIAN_POKECENTER_1F, 4, 5 mapgroup VIRIDIAN_POKECENTER_2F_BETA, 4, 8 mapgroup ROUTE_2_NUGGET_SPEECH_HOUSE, 4, 4 mapgroup ROUTE_2_GATE, 4, 5 mapgroup VICTORY_ROAD_GATE, 9, 10 newgroup mapgroup ROUTE_26, 54, 10 mapgroup ROUTE_27, 9, 40 mapgroup ROUTE_29, 9, 30 mapgroup NEW_BARK_TOWN, 9, 10 mapgroup ELMS_LAB, 6, 5 mapgroup KRISS_HOUSE_1F, 4, 5 mapgroup KRISS_HOUSE_2F, 3, 4 mapgroup KRISS_NEIGHBORS_HOUSE, 4, 4 mapgroup ELMS_HOUSE, 4, 4 mapgroup ROUTE_26_HEAL_SPEECH_HOUSE, 4, 4 mapgroup ROUTE_26_DAY_OF_WEEK_SIBLINGS_HOUSE, 4, 4 mapgroup ROUTE_27_SANDSTORM_HOUSE, 4, 4 mapgroup ROUTE_29_46_GATE, 4, 5 newgroup mapgroup ROUTE_5, 9, 10 mapgroup SAFFRON_CITY, 18, 20 mapgroup FIGHTING_DOJO, 6, 5 mapgroup SAFFRON_GYM, 9, 10 mapgroup SAFFRON_MART, 4, 6 mapgroup SAFFRON_POKECENTER_1F, 4, 5 mapgroup SAFFRON_POKECENTER_2F_BETA, 4, 8 mapgroup MR_PSYCHICS_HOUSE, 4, 4 mapgroup SAFFRON_TRAIN_STATION, 9, 10 mapgroup SILPH_CO_1F, 4, 8 mapgroup COPYCATS_HOUSE_1F, 4, 4 mapgroup COPYCATS_HOUSE_2F, 3, 5 mapgroup ROUTE_5_UNDERGROUND_ENTRANCE, 4, 4 mapgroup ROUTE_5_SAFFRON_CITY_GATE, 4, 5 mapgroup ROUTE_5_CLEANSE_TAG_SPEECH_HOUSE, 4, 4 newgroup mapgroup ROUTE_30, 27, 10 mapgroup ROUTE_31, 9, 20 mapgroup CHERRYGROVE_CITY, 9, 20 mapgroup CHERRYGROVE_MART, 4, 6 mapgroup CHERRYGROVE_POKECENTER_1F, 4, 5 mapgroup CHERRYGROVE_GYM_SPEECH_HOUSE, 4, 4 mapgroup GUIDE_GENTS_HOUSE, 4, 4 mapgroup CHERRYGROVE_EVOLUTION_SPEECH_HOUSE, 4, 4 mapgroup ROUTE_30_BERRY_SPEECH_HOUSE, 4, 4 mapgroup MR_POKEMONS_HOUSE, 4, 4 mapgroup ROUTE_31_VIOLET_GATE, 4, 5 ; elevator floors const_def const _B4F const _B3F const _B2F const _B1F const _1F const _2F const _3F const _4F const _5F const _6F const _7F const _8F const _9F const _10F const _11F const _ROOF ; connection directions const_def shift_const EAST shift_const WEST shift_const SOUTH shift_const NORTH ; sprites const_def const SPRITE_NONE ; 00 const SPRITE_CHRIS ; 01 const SPRITE_CHRIS_BIKE ; 02 const SPRITE_GAMEBOY_KID ; 03 const SPRITE_SILVER ; 04 const SPRITE_OAK ; 05 const SPRITE_RED ; 06 const SPRITE_BLUE ; 07 const SPRITE_BILL ; 08 const SPRITE_ELDER ; 09 const SPRITE_JANINE ; 0a const SPRITE_KURT ; 0b const SPRITE_MOM ; 0c const SPRITE_BLAINE ; 0d const SPRITE_REDS_MOM ; 0e const SPRITE_DAISY ; 0f const SPRITE_ELM ; 10 const SPRITE_WILL ; 11 const SPRITE_FALKNER ; 12 const SPRITE_WHITNEY ; 13 const SPRITE_BUGSY ; 14 const SPRITE_MORTY ; 15 const SPRITE_CHUCK ; 16 const SPRITE_JASMINE ; 17 const SPRITE_PRYCE ; 18 const SPRITE_CLAIR ; 19 const SPRITE_BROCK ; 1a const SPRITE_KAREN ; 1b const SPRITE_BRUNO ; 1c const SPRITE_MISTY ; 1d const SPRITE_LANCE ; 1e const SPRITE_SURGE ; 1f const SPRITE_ERIKA ; 20 const SPRITE_KOGA ; 21 const SPRITE_SABRINA ; 22 const SPRITE_COOLTRAINER_M ; 23 const SPRITE_COOLTRAINER_F ; 24 const SPRITE_BUG_CATCHER ; 25 const SPRITE_TWIN ; 26 const SPRITE_YOUNGSTER ; 27 const SPRITE_LASS ; 28 const SPRITE_TEACHER ; 29 const SPRITE_BUENA ; 2a const SPRITE_SUPER_NERD ; 2b const SPRITE_ROCKER ; 2c const SPRITE_POKEFAN_M ; 2d const SPRITE_POKEFAN_F ; 2e const SPRITE_GRAMPS ; 2f const SPRITE_GRANNY ; 30 const SPRITE_SWIMMER_GUY ; 31 const SPRITE_SWIMMER_GIRL ; 32 const SPRITE_BIG_SNORLAX ; 33 const SPRITE_SURFING_PIKACHU ; 34 const SPRITE_ROCKET ; 35 const SPRITE_ROCKET_GIRL ; 36 const SPRITE_NURSE ; 37 const SPRITE_LINK_RECEPTIONIST ; 38 const SPRITE_CLERK ; 39 const SPRITE_FISHER ; 3a const SPRITE_FISHING_GURU ; 3b const SPRITE_SCIENTIST ; 3c const SPRITE_KIMONO_GIRL ; 3d const SPRITE_SAGE ; 3e const SPRITE_UNUSED_GUY ; 3f const SPRITE_GENTLEMAN ; 40 const SPRITE_BLACK_BELT ; 41 const SPRITE_RECEPTIONIST ; 42 const SPRITE_OFFICER ; 43 const SPRITE_CAL ; 44 const SPRITE_SLOWPOKE ; 45 const SPRITE_CAPTAIN ; 46 const SPRITE_BIG_LAPRAS ; 47 const SPRITE_GYM_GUY ; 48 const SPRITE_SAILOR ; 49 const SPRITE_BIKER ; 4a const SPRITE_PHARMACIST ; 4b const SPRITE_MONSTER ; 4c const SPRITE_FAIRY ; 4d const SPRITE_BIRD ; 4e const SPRITE_DRAGON ; 4f const SPRITE_BIG_ONIX ; 50 const SPRITE_N64 ; 51 const SPRITE_SUDOWOODO ; 52 const SPRITE_SURF ; 53 const SPRITE_POKE_BALL ; 54 const SPRITE_POKEDEX ; 55 const SPRITE_PAPER ; 56 const SPRITE_VIRTUAL_BOY ; 57 const SPRITE_OLD_LINK_RECEPTIONIST ; 58 const SPRITE_ROCK ; 59 const SPRITE_BOULDER ; 5a const SPRITE_SNES ; 5b const SPRITE_FAMICOM ; 5c const SPRITE_FRUIT_TREE ; 5d const SPRITE_GOLD_TROPHY ; 5e const SPRITE_SILVER_TROPHY ; 5f const SPRITE_KRIS ; 60 const SPRITE_KRIS_BIKE ; 61 const SPRITE_KURT_OUTSIDE ; 62 const SPRITE_SUICUNE ; 63 const SPRITE_ENTEI ; 64 const SPRITE_RAIKOU ; 65 const SPRITE_STANDING_YOUNGSTER ; 66 const_value SET $80 SPRITE_POKEMON EQU const_value const SPRITE_UNOWN ; 80 const SPRITE_GEODUDE ; 81 const SPRITE_GROWLITHE ; 82 const SPRITE_WEEDLE ; 83 const SPRITE_SHELLDER ; 84 const SPRITE_ODDISH ; 85 const SPRITE_GENGAR ; 86 const SPRITE_ZUBAT ; 87 const SPRITE_MAGIKARP ; 88 const SPRITE_SQUIRTLE ; 89 const SPRITE_TOGEPI ; 8a const SPRITE_BUTTERFREE ; 8b const SPRITE_DIGLETT ; 8c const SPRITE_POLIWAG ; 8d const SPRITE_PIKACHU ; 8e const SPRITE_CLEFAIRY ; 8f const SPRITE_CHARMANDER ; 90 const SPRITE_JYNX ; 91 const SPRITE_STARMIE ; 92 const SPRITE_BULBASAUR ; 93 const SPRITE_JIGGLYPUFF ; 94 const SPRITE_GRIMER ; 95 const SPRITE_EKANS ; 96 const SPRITE_PARAS ; 97 const SPRITE_TENTACOOL ; 98 const SPRITE_TAUROS ; 99 const SPRITE_MACHOP ; 9a const SPRITE_VOLTORB ; 9b const SPRITE_LAPRAS ; 9c const SPRITE_RHYDON ; 9d const SPRITE_MOLTRES ; 9e const SPRITE_SNORLAX ; 9f const SPRITE_GYARADOS ; a0 const SPRITE_LUGIA ; a1 const SPRITE_HO_OH ; a2 const_value SET $e0 const SPRITE_DAYCARE_MON_1 ; e0 const SPRITE_DAYCARE_MON_2 ; e1 const_value SET $f0 SPRITE_VARS EQU const_value const SPRITE_CONSOLE ; f0 const SPRITE_DOLL_1 ; f1 const SPRITE_DOLL_2 ; f2 const SPRITE_BIG_DOLL ; f3 const SPRITE_WEIRD_TREE ; f4 const SPRITE_OLIVINE_RIVAL ; f5 const SPRITE_AZALEA_ROCKET ; f6 const SPRITE_FUCHSIA_GYM_1 ; f7 const SPRITE_FUCHSIA_GYM_2 ; f8 const SPRITE_FUCHSIA_GYM_3 ; f9 const SPRITE_FUCHSIA_GYM_4 ; fa const SPRITE_COPYCAT ; fb const SPRITE_JANINE_IMPERSONATOR ; fc ; sprite types const_value SET 1 const WALKING_SPRITE const STANDING_SPRITE const STILL_SPRITE ; sprite palettes const_def const PAL_OW_RED const PAL_OW_BLUE const PAL_OW_GREEN const PAL_OW_BROWN const PAL_OW_PINK const PAL_OW_SILVER const PAL_OW_TREE const PAL_OW_ROCK ; permissions const_value SET 1 const TOWN const ROUTE const INDOOR const CAVE const PERM_5 const GATE const DUNGEON ; object struct const_def const OBJECT_SPRITE const OBJECT_MAP_OBJECT_INDEX const OBJECT_SPRITE_TILE const OBJECT_03 const OBJECT_04 const OBJECT_FLAGS const OBJECT_PALETTE const OBJECT_DIRECTION_WALKING const OBJECT_FACING const OBJECT_09 const OBJECT_STEP_DURATION const OBJECT_11 const OBJECT_12 const OBJECT_FACING_STEP const OBJECT_STANDING_TILE const OBJECT_NEXT_TILE const OBJECT_MAP_X const OBJECT_MAP_Y const OBJECT_NEXT_MAP_X const OBJECT_NEXT_MAP_Y const OBJECT_20 const OBJECT_21 const OBJECT_22 const OBJECT_SPRITE_X const OBJECT_SPRITE_Y const OBJECT_SPRITE_X_OFFSET const OBJECT_SPRITE_Y_OFFSET const OBJECT_27 const OBJECT_28 const OBJECT_29 const OBJECT_30 const OBJECT_31 const OBJECT_32 ; 33-39 are not used ; map object struct const_def const MAPOBJECT_OBJECT_STRUCT_ID ; 0 const MAPOBJECT_SPRITE ; 1 const MAPOBJECT_Y_COORD ; 2 const MAPOBJECT_X_COORD ; 3 const MAPOBJECT_MOVEMENT ; 4 const MAPOBJECT_RADIUS ; 5 const MAPOBJECT_HOUR ; 6 const MAPOBJECT_TIMEOFDAY ; 7 const MAPOBJECT_COLOR ; 8 const MAPOBJECT_RANGE ; 9 const MAPOBJECT_SCRIPT_POINTER ; a const MAPOBJECT_POINTER_HI ; b const MAPOBJECT_EVENT_FLAG ; c const MAPOBJECT_FLAG_HI ; d const MAPOBJECT_E ; unused const MAPOBJECT_F ; unused MAPOBJECT_SCREEN_HEIGHT EQU 11 MAPOBJECT_SCREEN_WIDTH EQU 12 OBJECT_STRUCT_3_DATA_WIDTH EQU 6 OBJECT_STRUCT_3_DATA_HEIGHT EQU 37 OW_DOWN EQU $0 OW_UP EQU $4 OW_LEFT EQU $8 OW_RIGHT EQU $c const_def const EMOTE_SHOCK ; 0 const EMOTE_QUESTION ; 1 const EMOTE_HAPPY ; 2 const EMOTE_SAD ; 3 const EMOTE_HEART ; 4 const EMOTE_BOLT ; 5 const EMOTE_SLEEP ; 6 const EMOTE_FISH ; 7 const EMOTE_ROD_DOWN ; 8 const EMOTE_ROD_UP ; 9 const EMOTE_ROD_LEFT ; a const EMOTE_ROD_RIGHT ; b const_def const SIGNPOST_READ const SIGNPOST_UP const SIGNPOST_DOWN const SIGNPOST_RIGHT const SIGNPOST_LEFT const SIGNPOST_IFSET const SIGNPOST_IFNOTSET const SIGNPOST_ITEM const SIGNPOST_COPY ; I'm relocating spawn constants here, so that they can be used anywhere in the disassembly. const_value = -1 const SPAWN_N_A const SPAWN_HOME const SPAWN_DEBUG const SPAWN_PALLET const SPAWN_VIRIDIAN const SPAWN_PEWTER const SPAWN_CERULEAN const SPAWN_ROCK_TUNNEL const SPAWN_VERMILION const SPAWN_LAVENDER const SPAWN_SAFFRON const SPAWN_CELADON const SPAWN_FUCHSIA const SPAWN_CINNABAR const SPAWN_INDIGO const SPAWN_NEW_BARK const SPAWN_CHERRYGROVE const SPAWN_VIOLET const SPAWN_UNION_CAVE const SPAWN_AZALEA const SPAWN_CIANWOOD const SPAWN_GOLDENROD const SPAWN_OLIVINE const SPAWN_ECRUTEAK const SPAWN_MAHOGANY const SPAWN_LAKE const SPAWN_BLACKTHORN const SPAWN_MT_SILVER const SPAWN_FAST_SHIP NUM_SPAWNS EQU const_value const_def const SPRITEMOVEFN_00 const SPRITEMOVEFN_01 const SPRITEMOVEFN_02 const SPRITEMOVEFN_03 const SPRITEMOVEFN_04 const SPRITEMOVEFN_05 const SPRITEMOVEFN_06 const SPRITEMOVEFN_07 const SPRITEMOVEFN_08 const SPRITEMOVEFN_09 const SPRITEMOVEFN_0A const SPRITEMOVEFN_0B const SPRITEMOVEFN_0C const SPRITEMOVEFN_0D const SPRITEMOVEFN_0E const SPRITEMOVEFN_0F const SPRITEMOVEFN_10 const SPRITEMOVEFN_11 const SPRITEMOVEFN_12 const SPRITEMOVEFN_13 const SPRITEMOVEFN_14 const SPRITEMOVEFN_15 const SPRITEMOVEFN_16 const SPRITEMOVEFN_17 const SPRITEMOVEFN_18 const SPRITEMOVEFN_19 const SPRITEMOVEFN_1A const SPRITEMOVEFN_1B const SPRITEMOVEFN_1C const SPRITEMOVEFN_1D const SPRITEMOVEFN_1E const SPRITEMOVEFN_1F const SPRITEMOVEFN_20 const SPRITEMOVEFN_21 const_def const PALETTE_AUTO const PALETTE_DAY const PALETTE_NITE const PALETTE_MORN const PALETTE_DARK