summaryrefslogtreecommitdiff
path: root/data/maps
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-06-20 17:47:16 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-06-20 17:47:16 -0500
commit6dc3c869391bb56f5d6f872cf51ab717dfca9f31 (patch)
tree246f6d176dd8b041071c4f4a2057e66833faab9b /data/maps
parent931feeb9b720ea5151a781905967fedb170b67b1 (diff)
Move map scripts into 'data/maps/<mapname>/scripts.inc'
Diffstat (limited to 'data/maps')
-rw-r--r--data/maps/AbandonedShip_CaptainsOffice/scripts.inc24
-rw-r--r--data/maps/AbandonedShip_Corridors_1F/scripts.inc11
-rw-r--r--data/maps/AbandonedShip_Corridors_B1F/scripts.inc55
-rw-r--r--data/maps/AbandonedShip_Deck/scripts.inc7
-rw-r--r--data/maps/AbandonedShip_HiddenFloorCorridors/scripts.inc136
-rw-r--r--data/maps/AbandonedShip_HiddenFloorRooms/scripts.inc143
-rw-r--r--data/maps/AbandonedShip_Room_B1F/scripts.inc2
-rw-r--r--data/maps/AbandonedShip_Rooms2_1F/scripts.inc28
-rw-r--r--data/maps/AbandonedShip_Rooms2_B1F/scripts.inc6
-rw-r--r--data/maps/AbandonedShip_Rooms_1F/scripts.inc6
-rw-r--r--data/maps/AbandonedShip_Rooms_B1F/scripts.inc11
-rw-r--r--data/maps/AbandonedShip_Underwater1/scripts.inc7
-rw-r--r--data/maps/AbandonedShip_Underwater2/scripts.inc7
-rw-r--r--data/maps/AncientTomb/scripts.inc68
-rw-r--r--data/maps/AquaHideout_1F/scripts.inc46
-rw-r--r--data/maps/AquaHideout_B1F/scripts.inc44
-rw-r--r--data/maps/AquaHideout_B2F/scripts.inc101
-rw-r--r--data/maps/BattleTower_BattleRoom/scripts.inc165
-rw-r--r--data/maps/BattleTower_Corridor/scripts.inc58
-rw-r--r--data/maps/BattleTower_Elevator/scripts.inc57
-rw-r--r--data/maps/BattleTower_Lobby/scripts.inc424
-rw-r--r--data/maps/BattleTower_Outside/scripts.inc94
-rw-r--r--data/maps/CaveOfOrigin_1F/scripts.inc7
-rw-r--r--data/maps/CaveOfOrigin_B1F/scripts.inc7
-rw-r--r--data/maps/CaveOfOrigin_B2F/scripts.inc7
-rw-r--r--data/maps/CaveOfOrigin_B3F/scripts.inc7
-rw-r--r--data/maps/CaveOfOrigin_B4F/scripts.inc97
-rw-r--r--data/maps/CaveOfOrigin_Entrance/scripts.inc2
-rw-r--r--data/maps/DesertRuins/scripts.inc68
-rw-r--r--data/maps/DewfordTown/scripts.inc642
-rw-r--r--data/maps/DewfordTown_Gym/scripts.inc192
-rw-r--r--data/maps/DewfordTown_Hall/scripts.inc267
-rw-r--r--data/maps/DewfordTown_House1/scripts.inc20
-rw-r--r--data/maps/DewfordTown_House2/scripts.inc28
-rw-r--r--data/maps/DewfordTown_PokemonCenter_1F/scripts.inc24
-rw-r--r--data/maps/DewfordTown_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/DoubleBattleColosseum/scripts.inc2
-rw-r--r--data/maps/EverGrandeCity/scripts.inc24
-rw-r--r--data/maps/EverGrandeCity_ChampionsRoom/scripts.inc226
-rw-r--r--data/maps/EverGrandeCity_Corridor1/scripts.inc11
-rw-r--r--data/maps/EverGrandeCity_Corridor2/scripts.inc11
-rw-r--r--data/maps/EverGrandeCity_Corridor3/scripts.inc11
-rw-r--r--data/maps/EverGrandeCity_Corridor4/scripts.inc11
-rw-r--r--data/maps/EverGrandeCity_Corridor5/scripts.inc11
-rw-r--r--data/maps/EverGrandeCity_DrakesRoom/scripts.inc62
-rw-r--r--data/maps/EverGrandeCity_GlaciasRoom/scripts.inc60
-rw-r--r--data/maps/EverGrandeCity_HallOfFame/scripts.inc84
-rw-r--r--data/maps/EverGrandeCity_PhoebesRoom/scripts.inc60
-rw-r--r--data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc24
-rw-r--r--data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/EverGrandeCity_PokemonLeague/scripts.inc121
-rw-r--r--data/maps/EverGrandeCity_SidneysRoom/scripts.inc61
-rw-r--r--data/maps/FallarborTown/scripts.inc55
-rw-r--r--data/maps/FallarborTown_ContestHall/scripts.inc18
-rw-r--r--data/maps/FallarborTown_ContestLobby/scripts.inc120
-rw-r--r--data/maps/FallarborTown_House1/scripts.inc72
-rw-r--r--data/maps/FallarborTown_House2/scripts.inc62
-rw-r--r--data/maps/FallarborTown_Mart/scripts.inc48
-rw-r--r--data/maps/FallarborTown_PokemonCenter_1F/scripts.inc81
-rw-r--r--data/maps/FallarborTown_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/FieryPath/scripts.inc7
-rw-r--r--data/maps/FortreeCity/scripts.inc90
-rw-r--r--data/maps/FortreeCity_DecorationShop/scripts.inc58
-rw-r--r--data/maps/FortreeCity_Gym/scripts.inc99
-rw-r--r--data/maps/FortreeCity_House1/scripts.inc64
-rw-r--r--data/maps/FortreeCity_House2/scripts.inc43
-rw-r--r--data/maps/FortreeCity_House3/scripts.inc10
-rw-r--r--data/maps/FortreeCity_House4/scripts.inc64
-rw-r--r--data/maps/FortreeCity_House5/scripts.inc20
-rw-r--r--data/maps/FortreeCity_Mart/scripts.inc40
-rw-r--r--data/maps/FortreeCity_PokemonCenter_1F/scripts.inc27
-rw-r--r--data/maps/FortreeCity_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/GraniteCave_1F/scripts.inc18
-rw-r--r--data/maps/GraniteCave_B1F/scripts.inc10
-rw-r--r--data/maps/GraniteCave_B2F/scripts.inc2
-rw-r--r--data/maps/GraniteCave_StevensRoom/scripts.inc62
-rw-r--r--data/maps/InsideOfTruck/scripts.inc52
-rw-r--r--data/maps/IslandCave/scripts.inc87
-rw-r--r--data/maps/JaggedPass/scripts.inc49
-rw-r--r--data/maps/LavaridgeTown/scripts.inc320
-rw-r--r--data/maps/LavaridgeTown_Gym_1F/scripts.inc157
-rw-r--r--data/maps/LavaridgeTown_Gym_B1F/scripts.inc2
-rw-r--r--data/maps/LavaridgeTown_HerbShop/scripts.inc43
-rw-r--r--data/maps/LavaridgeTown_House/scripts.inc16
-rw-r--r--data/maps/LavaridgeTown_Mart/scripts.inc35
-rw-r--r--data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc28
-rw-r--r--data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/LilycoveCity/scripts.inc408
-rw-r--r--data/maps/LilycoveCity_ContestHall/scripts.inc255
-rw-r--r--data/maps/LilycoveCity_ContestLobby/scripts.inc766
-rw-r--r--data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc74
-rw-r--r--data/maps/LilycoveCity_CoveLilyMotel_2F/scripts.inc53
-rw-r--r--data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc83
-rw-r--r--data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc202
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc144
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc67
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc60
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc54
-rw-r--r--data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc118
-rw-r--r--data/maps/LilycoveCity_EmptyMap/scripts.inc2
-rw-r--r--data/maps/LilycoveCity_Harbor/scripts.inc166
-rw-r--r--data/maps/LilycoveCity_House1/scripts.inc16
-rw-r--r--data/maps/LilycoveCity_House2/scripts.inc20
-rw-r--r--data/maps/LilycoveCity_House3/scripts.inc99
-rw-r--r--data/maps/LilycoveCity_House4/scripts.inc10
-rw-r--r--data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc162
-rw-r--r--data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc220
-rw-r--r--data/maps/LilycoveCity_MoveDeletersHouse/scripts.inc63
-rw-r--r--data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc32
-rw-r--r--data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc436
-rw-r--r--data/maps/LilycoveCity_UnusedMart/scripts.inc2
-rw-r--r--data/maps/LinkContestRoom1/scripts.inc1
-rw-r--r--data/maps/LinkContestRoom2/scripts.inc1
-rw-r--r--data/maps/LinkContestRoom3/scripts.inc1
-rw-r--r--data/maps/LinkContestRoom4/scripts.inc1
-rw-r--r--data/maps/LinkContestRoom5/scripts.inc1
-rw-r--r--data/maps/LinkContestRoom6/scripts.inc1
-rw-r--r--data/maps/LittlerootTown/scripts.inc877
-rw-r--r--data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc123
-rw-r--r--data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc89
-rw-r--r--data/maps/LittlerootTown_MaysHouse_1F/scripts.inc168
-rw-r--r--data/maps/LittlerootTown_MaysHouse_2F/scripts.inc219
-rw-r--r--data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc214
-rw-r--r--data/maps/MagmaHideout_1F/scripts.inc2
-rw-r--r--data/maps/MagmaHideout_B1F/scripts.inc11
-rw-r--r--data/maps/MagmaHideout_B2F/scripts.inc2
-rw-r--r--data/maps/MauvilleCity/scripts.inc312
-rw-r--r--data/maps/MauvilleCity_BikeShop/scripts.inc182
-rw-r--r--data/maps/MauvilleCity_GameCorner/scripts.inc655
-rw-r--r--data/maps/MauvilleCity_Gym/scripts.inc216
-rw-r--r--data/maps/MauvilleCity_House1/scripts.inc18
-rw-r--r--data/maps/MauvilleCity_House2/scripts.inc44
-rw-r--r--data/maps/MauvilleCity_Mart/scripts.inc38
-rw-r--r--data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc33
-rw-r--r--data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/MeteorFalls_1F_1R/scripts.inc227
-rw-r--r--data/maps/MeteorFalls_1F_2R/scripts.inc41
-rw-r--r--data/maps/MeteorFalls_B1F_1R/scripts.inc2
-rw-r--r--data/maps/MeteorFalls_B1F_2R/scripts.inc2
-rw-r--r--data/maps/MossdeepCity/scripts.inc90
-rw-r--r--data/maps/MossdeepCity_GameCorner_1F/scripts.inc186
-rw-r--r--data/maps/MossdeepCity_GameCorner_B1F/scripts.inc77
-rw-r--r--data/maps/MossdeepCity_Gym/scripts.inc239
-rw-r--r--data/maps/MossdeepCity_House1/scripts.inc23
-rw-r--r--data/maps/MossdeepCity_House2/scripts.inc54
-rw-r--r--data/maps/MossdeepCity_House3/scripts.inc26
-rw-r--r--data/maps/MossdeepCity_House4/scripts.inc41
-rw-r--r--data/maps/MossdeepCity_Mart/scripts.inc39
-rw-r--r--data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc23
-rw-r--r--data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc21
-rw-r--r--data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc62
-rw-r--r--data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc14
-rw-r--r--data/maps/MossdeepCity_StevensHouse/scripts.inc128
-rw-r--r--data/maps/MtChimney/scripts.inc465
-rw-r--r--data/maps/MtChimney_CableCarStation/scripts.inc87
-rw-r--r--data/maps/MtPyre_1F/scripts.inc27
-rw-r--r--data/maps/MtPyre_2F/scripts.inc33
-rw-r--r--data/maps/MtPyre_3F/scripts.inc12
-rw-r--r--data/maps/MtPyre_4F/scripts.inc7
-rw-r--r--data/maps/MtPyre_5F/scripts.inc7
-rw-r--r--data/maps/MtPyre_6F/scripts.inc15
-rw-r--r--data/maps/MtPyre_Exterior/scripts.inc27
-rw-r--r--data/maps/MtPyre_Summit/scripts.inc365
-rw-r--r--data/maps/NewMauville_Entrance/scripts.inc50
-rw-r--r--data/maps/NewMauville_Inside/scripts.inc206
-rw-r--r--data/maps/OldaleTown/scripts.inc318
-rw-r--r--data/maps/OldaleTown_House1/scripts.inc6
-rw-r--r--data/maps/OldaleTown_House2/scripts.inc10
-rw-r--r--data/maps/OldaleTown_Mart/scripts.inc57
-rw-r--r--data/maps/OldaleTown_PokemonCenter_1F/scripts.inc37
-rw-r--r--data/maps/OldaleTown_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/PacifidlogTown/scripts.inc28
-rw-r--r--data/maps/PacifidlogTown_House1/scripts.inc10
-rw-r--r--data/maps/PacifidlogTown_House2/scripts.inc96
-rw-r--r--data/maps/PacifidlogTown_House3/scripts.inc54
-rw-r--r--data/maps/PacifidlogTown_House4/scripts.inc30
-rw-r--r--data/maps/PacifidlogTown_House5/scripts.inc21
-rw-r--r--data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc27
-rw-r--r--data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/PetalburgCity/scripts.inc428
-rw-r--r--data/maps/PetalburgCity_Gym/scripts.inc1027
-rw-r--r--data/maps/PetalburgCity_House1/scripts.inc10
-rw-r--r--data/maps/PetalburgCity_House2/scripts.inc10
-rw-r--r--data/maps/PetalburgCity_Mart/scripts.inc67
-rw-r--r--data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc56
-rw-r--r--data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/PetalburgCity_WallysHouse/scripts.inc61
-rw-r--r--data/maps/PetalburgWoods/scripts.inc282
-rw-r--r--data/maps/RecordCorner/scripts.inc2
-rw-r--r--data/maps/Route101/scripts.inc246
-rw-r--r--data/maps/Route102/scripts.inc46
-rw-r--r--data/maps/Route103/scripts.inc216
-rw-r--r--data/maps/Route104/scripts.inc454
-rw-r--r--data/maps/Route104_MrBrineysHouse/scripts.inc95
-rw-r--r--data/maps/Route104_PrettyPetalFlowerShop/scripts.inc103
-rw-r--r--data/maps/Route104_Prototype/scripts.inc98
-rw-r--r--data/maps/Route104_PrototypePrettyPetalFlowerShop/scripts.inc6
-rw-r--r--data/maps/Route105/scripts.inc37
-rw-r--r--data/maps/Route106/scripts.inc34
-rw-r--r--data/maps/Route107/scripts.inc40
-rw-r--r--data/maps/Route108/scripts.inc22
-rw-r--r--data/maps/Route109/scripts.inc444
-rw-r--r--data/maps/Route109_SeashoreHouse/scripts.inc103
-rw-r--r--data/maps/Route110/scripts.inc539
-rw-r--r--data/maps/Route110_SeasideCyclingRoadNorthEntrance/scripts.inc61
-rw-r--r--data/maps/Route110_SeasideCyclingRoadSouthEntrance/scripts.inc38
-rw-r--r--data/maps/Route110_TrickHouseCorridor/scripts.inc7
-rw-r--r--data/maps/Route110_TrickHouseEnd/scripts.inc251
-rw-r--r--data/maps/Route110_TrickHouseEntrance/scripts.inc759
-rw-r--r--data/maps/Route110_TrickHousePuzzle1/scripts.inc39
-rw-r--r--data/maps/Route110_TrickHousePuzzle2/scripts.inc105
-rw-r--r--data/maps/Route110_TrickHousePuzzle3/scripts.inc396
-rw-r--r--data/maps/Route110_TrickHousePuzzle4/scripts.inc29
-rw-r--r--data/maps/Route110_TrickHousePuzzle5/scripts.inc725
-rw-r--r--data/maps/Route110_TrickHousePuzzle6/scripts.inc43
-rw-r--r--data/maps/Route110_TrickHousePuzzle7/scripts.inc234
-rw-r--r--data/maps/Route110_TrickHousePuzzle8/scripts.inc29
-rw-r--r--data/maps/Route111/scripts.inc442
-rw-r--r--data/maps/Route111_OldLadysRestStop/scripts.inc33
-rw-r--r--data/maps/Route111_WinstrateFamilysHouse/scripts.inc58
-rw-r--r--data/maps/Route112/scripts.inc60
-rw-r--r--data/maps/Route112_CableCarStation/scripts.inc88
-rw-r--r--data/maps/Route113/scripts.inc100
-rw-r--r--data/maps/Route113_GlassWorkshop/scripts.inc308
-rw-r--r--data/maps/Route114/scripts.inc130
-rw-r--r--data/maps/Route114_FossilManiacsHouse/scripts.inc32
-rw-r--r--data/maps/Route114_FossilManiacsTunnel/scripts.inc26
-rw-r--r--data/maps/Route114_LanettesHouse/scripts.inc53
-rw-r--r--data/maps/Route115/scripts.inc68
-rw-r--r--data/maps/Route116/scripts.inc271
-rw-r--r--data/maps/Route116_TunnelersRestHouse/scripts.inc28
-rw-r--r--data/maps/Route117/scripts.inc121
-rw-r--r--data/maps/Route117_PokemonDayCare/scripts.inc7
-rw-r--r--data/maps/Route118/scripts.inc205
-rw-r--r--data/maps/Route119/scripts.inc382
-rw-r--r--data/maps/Route119_House/scripts.inc16
-rw-r--r--data/maps/Route119_WeatherInstitute_1F/scripts.inc55
-rw-r--r--data/maps/Route119_WeatherInstitute_2F/scripts.inc92
-rw-r--r--data/maps/Route120/scripts.inc351
-rw-r--r--data/maps/Route121/scripts.inc113
-rw-r--r--data/maps/Route121_SafariZoneEntrance/scripts.inc138
-rw-r--r--data/maps/Route122/scripts.inc2
-rw-r--r--data/maps/Route123/scripts.inc101
-rw-r--r--data/maps/Route123_BerryMastersHouse/scripts.inc145
-rw-r--r--data/maps/Route124/scripts.inc70
-rw-r--r--data/maps/Route124_DivingTreasureHuntersHouse/scripts.inc294
-rw-r--r--data/maps/Route125/scripts.inc50
-rw-r--r--data/maps/Route126/scripts.inc27
-rw-r--r--data/maps/Route127/scripts.inc42
-rw-r--r--data/maps/Route128/scripts.inc221
-rw-r--r--data/maps/Route129/scripts.inc22
-rw-r--r--data/maps/Route130/scripts.inc40
-rw-r--r--data/maps/Route131/scripts.inc41
-rw-r--r--data/maps/Route132/scripts.inc22
-rw-r--r--data/maps/Route133/scripts.inc27
-rw-r--r--data/maps/Route134/scripts.inc32
-rw-r--r--data/maps/RustboroCity/scripts.inc584
-rw-r--r--data/maps/RustboroCity_CuttersHouse/scripts.inc22
-rw-r--r--data/maps/RustboroCity_DevonCorp_1F/scripts.inc71
-rw-r--r--data/maps/RustboroCity_DevonCorp_2F/scripts.inc175
-rw-r--r--data/maps/RustboroCity_DevonCorp_3F/scripts.inc194
-rw-r--r--data/maps/RustboroCity_Flat1_1F/scripts.inc10
-rw-r--r--data/maps/RustboroCity_Flat1_2F/scripts.inc6
-rw-r--r--data/maps/RustboroCity_Flat2_1F/scripts.inc16
-rw-r--r--data/maps/RustboroCity_Flat2_2F/scripts.inc23
-rw-r--r--data/maps/RustboroCity_Flat2_3F/scripts.inc10
-rw-r--r--data/maps/RustboroCity_Gym/scripts.inc79
-rw-r--r--data/maps/RustboroCity_House1/scripts.inc53
-rw-r--r--data/maps/RustboroCity_House2/scripts.inc10
-rw-r--r--data/maps/RustboroCity_House3/scripts.inc20
-rw-r--r--data/maps/RustboroCity_Mart/scripts.inc69
-rw-r--r--data/maps/RustboroCity_PokemonCenter_1F/scripts.inc28
-rw-r--r--data/maps/RustboroCity_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/RustboroCity_PokemonSchool/scripts.inc164
-rw-r--r--data/maps/RusturfTunnel/scripts.inc420
-rw-r--r--data/maps/SSTidalCorridor/scripts.inc189
-rw-r--r--data/maps/SSTidalLowerDeck/scripts.inc12
-rw-r--r--data/maps/SSTidalRooms/scripts.inc64
-rw-r--r--data/maps/SafariZone_Northeast/scripts.inc10
-rw-r--r--data/maps/SafariZone_Northwest/scripts.inc6
-rw-r--r--data/maps/SafariZone_RestHouse/scripts.inc14
-rw-r--r--data/maps/SafariZone_Southeast/scripts.inc118
-rw-r--r--data/maps/SafariZone_Southwest/scripts.inc10
-rw-r--r--data/maps/ScorchedSlab/scripts.inc7
-rw-r--r--data/maps/SeafloorCavern_Entrance/scripts.inc8
-rw-r--r--data/maps/SeafloorCavern_Room1/scripts.inc17
-rw-r--r--data/maps/SeafloorCavern_Room2/scripts.inc2
-rw-r--r--data/maps/SeafloorCavern_Room3/scripts.inc12
-rw-r--r--data/maps/SeafloorCavern_Room4/scripts.inc12
-rw-r--r--data/maps/SeafloorCavern_Room5/scripts.inc2
-rw-r--r--data/maps/SeafloorCavern_Room6/scripts.inc2
-rw-r--r--data/maps/SeafloorCavern_Room7/scripts.inc2
-rw-r--r--data/maps/SeafloorCavern_Room8/scripts.inc2
-rw-r--r--data/maps/SeafloorCavern_Room9/scripts.inc291
-rw-r--r--data/maps/SealedChamber_InnerRoom/scripts.inc87
-rw-r--r--data/maps/SealedChamber_OuterRoom/scripts.inc129
-rw-r--r--data/maps/SecretBase_BlueCave1/scripts.inc1
-rw-r--r--data/maps/SecretBase_BlueCave2/scripts.inc1
-rw-r--r--data/maps/SecretBase_BlueCave3/scripts.inc1
-rw-r--r--data/maps/SecretBase_BlueCave4/scripts.inc1
-rw-r--r--data/maps/SecretBase_BrownCave1/scripts.inc1
-rw-r--r--data/maps/SecretBase_BrownCave2/scripts.inc1
-rw-r--r--data/maps/SecretBase_BrownCave3/scripts.inc1
-rw-r--r--data/maps/SecretBase_BrownCave4/scripts.inc1
-rw-r--r--data/maps/SecretBase_RedCave1/scripts.inc1
-rw-r--r--data/maps/SecretBase_RedCave2/scripts.inc1
-rw-r--r--data/maps/SecretBase_RedCave3/scripts.inc1
-rw-r--r--data/maps/SecretBase_RedCave4/scripts.inc1
-rw-r--r--data/maps/SecretBase_Shrub1/scripts.inc1
-rw-r--r--data/maps/SecretBase_Shrub2/scripts.inc1
-rw-r--r--data/maps/SecretBase_Shrub3/scripts.inc1
-rw-r--r--data/maps/SecretBase_Shrub4/scripts.inc1
-rw-r--r--data/maps/SecretBase_Tree1/scripts.inc1
-rw-r--r--data/maps/SecretBase_Tree2/scripts.inc1
-rw-r--r--data/maps/SecretBase_Tree3/scripts.inc1
-rw-r--r--data/maps/SecretBase_Tree4/scripts.inc1
-rw-r--r--data/maps/SecretBase_YellowCave1/scripts.inc1
-rw-r--r--data/maps/SecretBase_YellowCave2/scripts.inc1
-rw-r--r--data/maps/SecretBase_YellowCave3/scripts.inc1
-rw-r--r--data/maps/SecretBase_YellowCave4/scripts.inc23
-rw-r--r--data/maps/ShoalCave_HighTideEntranceRoom/scripts.inc2
-rw-r--r--data/maps/ShoalCave_HighTideInnerRoom/scripts.inc2
-rw-r--r--data/maps/ShoalCave_LowTideEntranceRoom/scripts.inc100
-rw-r--r--data/maps/ShoalCave_LowTideIceRoom/scripts.inc2
-rw-r--r--data/maps/ShoalCave_LowTideInnerRoom/scripts.inc142
-rw-r--r--data/maps/ShoalCave_LowTideLowerRoom/scripts.inc49
-rw-r--r--data/maps/ShoalCave_LowTideStairsRoom/scripts.inc32
-rw-r--r--data/maps/SingleBattleColosseum/scripts.inc2
-rw-r--r--data/maps/SkyPillar_1F/scripts.inc2
-rw-r--r--data/maps/SkyPillar_2F/scripts.inc10
-rw-r--r--data/maps/SkyPillar_3F/scripts.inc2
-rw-r--r--data/maps/SkyPillar_4F/scripts.inc10
-rw-r--r--data/maps/SkyPillar_5F/scripts.inc2
-rw-r--r--data/maps/SkyPillar_Entrance/scripts.inc7
-rw-r--r--data/maps/SkyPillar_Outside/scripts.inc2
-rw-r--r--data/maps/SkyPillar_Top/scripts.inc27
-rw-r--r--data/maps/SlateportCity/scripts.inc641
-rw-r--r--data/maps/SlateportCity_ContestHall/scripts.inc112
-rw-r--r--data/maps/SlateportCity_ContestLobby/scripts.inc134
-rw-r--r--data/maps/SlateportCity_Harbor/scripts.inc369
-rw-r--r--data/maps/SlateportCity_House1/scripts.inc72
-rw-r--r--data/maps/SlateportCity_House2/scripts.inc21
-rw-r--r--data/maps/SlateportCity_Mart/scripts.inc35
-rw-r--r--data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc217
-rw-r--r--data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc272
-rw-r--r--data/maps/SlateportCity_PokemonCenter_1F/scripts.inc24
-rw-r--r--data/maps/SlateportCity_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/SlateportCity_PokemonFanClub/scripts.inc252
-rw-r--r--data/maps/SlateportCity_SternsShipyard_1F/scripts.inc63
-rw-r--r--data/maps/SlateportCity_SternsShipyard_2F/scripts.inc10
-rw-r--r--data/maps/SootopolisCity/scripts.inc458
-rw-r--r--data/maps/SootopolisCity_Gym_1F/scripts.inc155
-rw-r--r--data/maps/SootopolisCity_Gym_B1F/scripts.inc42
-rw-r--r--data/maps/SootopolisCity_House1/scripts.inc28
-rw-r--r--data/maps/SootopolisCity_House2/scripts.inc21
-rw-r--r--data/maps/SootopolisCity_House3/scripts.inc21
-rw-r--r--data/maps/SootopolisCity_House4/scripts.inc20
-rw-r--r--data/maps/SootopolisCity_House5/scripts.inc10
-rw-r--r--data/maps/SootopolisCity_House6/scripts.inc34
-rw-r--r--data/maps/SootopolisCity_House7/scripts.inc10
-rw-r--r--data/maps/SootopolisCity_House8/scripts.inc114
-rw-r--r--data/maps/SootopolisCity_Mart/scripts.inc55
-rw-r--r--data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc43
-rw-r--r--data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc17
-rw-r--r--data/maps/SouthernIsland_Exterior/scripts.inc54
-rw-r--r--data/maps/SouthernIsland_Interior/scripts.inc110
-rw-r--r--data/maps/TradeCenter/scripts.inc2
-rw-r--r--data/maps/Underwater1/scripts.inc2
-rw-r--r--data/maps/Underwater2/scripts.inc2
-rw-r--r--data/maps/Underwater3/scripts.inc2
-rw-r--r--data/maps/Underwater4/scripts.inc2
-rw-r--r--data/maps/Underwater_Route134/scripts.inc7
-rw-r--r--data/maps/Underwater_SeafloorCavern/scripts.inc43
-rw-r--r--data/maps/Underwater_SealedChamber/scripts.inc27
-rw-r--r--data/maps/Underwater_SootopolisCity/scripts.inc7
-rw-r--r--data/maps/UnknownMap_25_29/scripts.inc1
-rw-r--r--data/maps/UnknownMap_25_30/scripts.inc1
-rw-r--r--data/maps/UnknownMap_25_31/scripts.inc1
-rw-r--r--data/maps/UnknownMap_25_32/scripts.inc1
-rw-r--r--data/maps/UnknownMap_25_33/scripts.inc1
-rw-r--r--data/maps/UnknownMap_25_34/scripts.inc429
-rw-r--r--data/maps/VerdanturfTown/scripts.inc63
-rw-r--r--data/maps/VerdanturfTown_ContestHall/scripts.inc20
-rw-r--r--data/maps/VerdanturfTown_ContestLobby/scripts.inc128
-rw-r--r--data/maps/VerdanturfTown_FriendshipRatersHouse/scripts.inc63
-rw-r--r--data/maps/VerdanturfTown_House/scripts.inc10
-rw-r--r--data/maps/VerdanturfTown_Mart/scripts.inc41
-rw-r--r--data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc25
-rw-r--r--data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc19
-rw-r--r--data/maps/VerdanturfTown_WandasHouse/scripts.inc83
-rw-r--r--data/maps/VictoryRoad_1F/scripts.inc119
-rw-r--r--data/maps/VictoryRoad_B1F/scripts.inc17
-rw-r--r--data/maps/VictoryRoad_B2F/scripts.inc22
394 files changed, 35121 insertions, 0 deletions
diff --git a/data/maps/AbandonedShip_CaptainsOffice/scripts.inc b/data/maps/AbandonedShip_CaptainsOffice/scripts.inc
new file mode 100644
index 000000000..22c76847a
--- /dev/null
+++ b/data/maps/AbandonedShip_CaptainsOffice/scripts.inc
@@ -0,0 +1,24 @@
+AbandonedShip_CaptainsOffice_MapScripts:: @ 815EAF4
+ .byte 0
+
+AbandonedShip_CaptainsOffice_EventScript_15EAF5:: @ 815EAF5
+ lock
+ faceplayer
+ goto_if_set FLAG_EXCHANGED_SCANNER, AbandonedShip_CaptainsOffice_EventScript_15EB2D
+ checkitem ITEM_SCANNER, 1
+ compare RESULT, 1
+ goto_if_eq AbandonedShip_CaptainsOffice_EventScript_15EB23
+ goto_if_set FLAG_ITEM_ABANDONED_SHIP_HIDDEN_FLOOR_ROOMS_2, AbandonedShip_CaptainsOffice_EventScript_15EB2D
+ msgbox AbandonedShip_CaptainsOffice_Text_198C85, 4
+ release
+ end
+
+AbandonedShip_CaptainsOffice_EventScript_15EB23:: @ 815EB23
+ msgbox AbandonedShip_CaptainsOffice_Text_198D00, 4
+ release
+ end
+
+AbandonedShip_CaptainsOffice_EventScript_15EB2D:: @ 815EB2D
+ msgbox AbandonedShip_CaptainsOffice_Text_198D7B, 4
+ release
+ end
diff --git a/data/maps/AbandonedShip_Corridors_1F/scripts.inc b/data/maps/AbandonedShip_Corridors_1F/scripts.inc
new file mode 100644
index 000000000..0c7278f3b
--- /dev/null
+++ b/data/maps/AbandonedShip_Corridors_1F/scripts.inc
@@ -0,0 +1,11 @@
+AbandonedShip_Corridors_1F_MapScripts:: @ 815E964
+ .byte 0
+
+AbandonedShip_Corridors_1F_EventScript_15E965:: @ 815E965
+ msgbox AbandonedShip_Corridors_1F_Text_1984D8, 2
+ end
+
+AbandonedShip_Corridors_1F_EventScript_15E96E:: @ 815E96E
+ trainerbattle 0, OPPONENT_CHARLIE, 0, AbandonedShip_Corridors_1F_Text_19843D, AbandonedShip_Corridors_1F_Text_198479
+ msgbox AbandonedShip_Corridors_1F_Text_198493, 6
+ end
diff --git a/data/maps/AbandonedShip_Corridors_B1F/scripts.inc b/data/maps/AbandonedShip_Corridors_B1F/scripts.inc
new file mode 100644
index 000000000..c34f2c28b
--- /dev/null
+++ b/data/maps/AbandonedShip_Corridors_B1F/scripts.inc
@@ -0,0 +1,55 @@
+AbandonedShip_Corridors_B1F_MapScripts:: @ 815E98F
+ map_script 5, AbandonedShip_Corridors_B1F_MapScript1_15E99A
+ map_script 1, AbandonedShip_Corridors_B1F_MapScript1_15E9A3
+ .byte 0
+
+AbandonedShip_Corridors_B1F_MapScript1_15E99A:: @ 815E99A
+ setdivewarp MAP_ABANDONED_SHIP_UNDERWATER1, 255, 5, 4
+ end
+
+AbandonedShip_Corridors_B1F_MapScript1_15E9A3:: @ 815E9A3
+ call_if_unset FLAG_USED_STORAGE_KEY, AbandonedShip_Corridors_B1F_EventScript_15E9B6
+ call_if_set FLAG_USED_STORAGE_KEY, AbandonedShip_Corridors_B1F_EventScript_15E9C0
+ end
+
+AbandonedShip_Corridors_B1F_EventScript_15E9B6:: @ 815E9B6
+ setmetatile 11, 4, 563, 1
+ return
+
+AbandonedShip_Corridors_B1F_EventScript_15E9C0:: @ 815E9C0
+ setmetatile 11, 4, 555, 1
+ return
+
+AbandonedShip_Corridors_B1F_EventScript_15E9CA:: @ 815E9CA
+ msgbox AbandonedShip_Corridors_B1F_Text_19864A, 2
+ end
+
+AbandonedShip_Corridors_B1F_EventScript_15E9D3:: @ 815E9D3
+ lockall
+ goto_if_set FLAG_USED_STORAGE_KEY, AbandonedShip_Corridors_B1F_EventScript_15EA14
+ checkitem ITEM_STORAGE_KEY, 1
+ compare RESULT, 0
+ goto_if_eq AbandonedShip_Corridors_B1F_EventScript_15EA0A
+ msgbox AbandonedShip_Corridors_B1F_Text_198692, 4
+ playse SE_PIN
+ takeitem ITEM_STORAGE_KEY, 1
+ setflag FLAG_USED_STORAGE_KEY
+ call AbandonedShip_Corridors_B1F_EventScript_15E9C0
+ special DrawWholeMapView
+ releaseall
+ end
+
+AbandonedShip_Corridors_B1F_EventScript_15EA0A:: @ 815EA0A
+ msgbox AbandonedShip_Corridors_B1F_Text_19865C, 4
+ releaseall
+ end
+
+AbandonedShip_Corridors_B1F_EventScript_15EA14:: @ 815EA14
+ msgbox AbandonedShip_Corridors_B1F_Text_1986EC, 4
+ releaseall
+ end
+
+AbandonedShip_Corridors_B1F_EventScript_15EA1E:: @ 815EA1E
+ trainerbattle 0, OPPONENT_DUNCAN, 0, AbandonedShip_Corridors_B1F_Text_19856F, AbandonedShip_Corridors_B1F_Text_1985C5
+ msgbox AbandonedShip_Corridors_B1F_Text_1985D7, 6
+ end
diff --git a/data/maps/AbandonedShip_Deck/scripts.inc b/data/maps/AbandonedShip_Deck/scripts.inc
new file mode 100644
index 000000000..68d872f01
--- /dev/null
+++ b/data/maps/AbandonedShip_Deck/scripts.inc
@@ -0,0 +1,7 @@
+AbandonedShip_Deck_MapScripts:: @ 815E95A
+ map_script 3, AbandonedShip_Deck_MapScript1_15E960
+ .byte 0
+
+AbandonedShip_Deck_MapScript1_15E960:: @ 815E960
+ setflag FLAG_LANDMARK_ABANDONED_SHIP
+ end
diff --git a/data/maps/AbandonedShip_HiddenFloorCorridors/scripts.inc b/data/maps/AbandonedShip_HiddenFloorCorridors/scripts.inc
new file mode 100644
index 000000000..e8e48a6f6
--- /dev/null
+++ b/data/maps/AbandonedShip_HiddenFloorCorridors/scripts.inc
@@ -0,0 +1,136 @@
+AbandonedShip_HiddenFloorCorridors_MapScripts:: @ 815EB46
+ map_script 5, AbandonedShip_HiddenFloorCorridors_MapScript1_15EB51
+ map_script 1, AbandonedShip_HiddenFloorCorridors_MapScript1_15EB5A
+ .byte 0
+
+AbandonedShip_HiddenFloorCorridors_MapScript1_15EB51:: @ 815EB51
+ setdivewarp MAP_ABANDONED_SHIP_UNDERWATER1, 255, 5, 4
+ end
+
+AbandonedShip_HiddenFloorCorridors_MapScript1_15EB5A:: @ 815EB5A
+ call_if_unset FLAG_USED_ROOM_1_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBCB
+ call_if_unset FLAG_USED_ROOM_2_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBD5
+ call_if_unset FLAG_USED_ROOM_4_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBDF
+ call_if_unset FLAG_USED_ROOM_6_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9
+ call_if_set FLAG_USED_ROOM_1_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
+ call_if_set FLAG_USED_ROOM_2_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
+ call_if_set FLAG_USED_ROOM_4_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
+ call_if_set FLAG_USED_ROOM_6_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
+ end
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3:: @ 815EBA3
+ setmetatile 3, 8, 555, 1
+ return
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD:: @ 815EBAD
+ setmetatile 6, 8, 555, 1
+ return
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7:: @ 815EBB7
+ setmetatile 3, 3, 538, 0
+ return
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1:: @ 815EBC1
+ setmetatile 9, 3, 538, 0
+ return
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EBCB:: @ 815EBCB
+ setmetatile 3, 8, 563, 1
+ return
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EBD5:: @ 815EBD5
+ setmetatile 6, 8, 563, 1
+ return
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EBDF:: @ 815EBDF
+ setmetatile 3, 3, 564, 0
+ return
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9:: @ 815EBE9
+ setmetatile 9, 3, 564, 0
+ return
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EBF3:: @ 815EBF3
+ lockall
+ goto_if_set FLAG_USED_ROOM_1_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
+ checkitem ITEM_ROOM_1_KEY, 1
+ compare RESULT, 0
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECCF
+ msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
+ playse SE_PIN
+ takeitem ITEM_ROOM_1_KEY, 1
+ setflag FLAG_USED_ROOM_1_KEY
+ call AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
+ special DrawWholeMapView
+ releaseall
+ end
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EC2A:: @ 815EC2A
+ lockall
+ goto_if_set FLAG_USED_ROOM_2_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
+ checkitem ITEM_ROOM_2_KEY, 1
+ compare RESULT, 0
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECD9
+ msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
+ playse SE_PIN
+ takeitem ITEM_ROOM_2_KEY, 1
+ setflag FLAG_USED_ROOM_2_KEY
+ call AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
+ special DrawWholeMapView
+ releaseall
+ end
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EC61:: @ 815EC61
+ lockall
+ goto_if_set FLAG_USED_ROOM_4_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
+ checkitem ITEM_ROOM_4_KEY, 1
+ compare RESULT, 0
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECE3
+ msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
+ playse SE_PIN
+ takeitem ITEM_ROOM_4_KEY, 1
+ setflag FLAG_USED_ROOM_4_KEY
+ call AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
+ special DrawWholeMapView
+ releaseall
+ end
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15EC98:: @ 815EC98
+ lockall
+ goto_if_set FLAG_USED_ROOM_6_KEY, AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
+ checkitem ITEM_ROOM_6_KEY, 1
+ compare RESULT, 0
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECED
+ msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
+ playse SE_PIN
+ takeitem ITEM_ROOM_6_KEY, 1
+ setflag FLAG_USED_ROOM_6_KEY
+ call AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
+ special DrawWholeMapView
+ releaseall
+ end
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15ECCF:: @ 815ECCF
+ msgbox AbandonedShip_HiddenFloorCorridors_Text_198DC0, 4
+ releaseall
+ end
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15ECD9:: @ 815ECD9
+ msgbox AbandonedShip_HiddenFloorCorridors_Text_198DF4, 4
+ releaseall
+ end
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15ECE3:: @ 815ECE3
+ msgbox AbandonedShip_HiddenFloorCorridors_Text_198E28, 4
+ releaseall
+ end
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15ECED:: @ 815ECED
+ msgbox AbandonedShip_HiddenFloorCorridors_Text_198E5C, 4
+ releaseall
+ end
+
+AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7:: @ 815ECF7
+ msgbox AbandonedShip_HiddenFloorCorridors_Text_1986EC, 4
+ releaseall
+ end
diff --git a/data/maps/AbandonedShip_HiddenFloorRooms/scripts.inc b/data/maps/AbandonedShip_HiddenFloorRooms/scripts.inc
new file mode 100644
index 000000000..5a5ab3005
--- /dev/null
+++ b/data/maps/AbandonedShip_HiddenFloorRooms/scripts.inc
@@ -0,0 +1,143 @@
+AbandonedShip_HiddenFloorRooms_MapScripts:: @ 815ED01
+ map_script 2, AbandonedShip_HiddenFloorRooms_MapScript2_15ED07
+ .byte 0
+
+AbandonedShip_HiddenFloorRooms_MapScript2_15ED07:: @ 815ED07
+ map_script_2 VAR_TEMP_1, 0, AbandonedShip_HiddenFloorRooms_EventScript_15ED11
+ .2byte 0
+
+AbandonedShip_HiddenFloorRooms_EventScript_15ED11:: @ 815ED11
+ setvar VAR_TEMP_1, 1
+ getplayerxy VAR_TEMP_2, VAR_TEMP_3
+ setvar VAR_TEMP_4, 1
+ compare VAR_TEMP_2, 21
+ call_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15ED89
+ compare VAR_TEMP_2, 36
+ call_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15ED8F
+ compare VAR_TEMP_3, 2
+ call_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15ED95
+ switch VAR_TEMP_4
+ case 1, AbandonedShip_HiddenFloorRooms_EventScript_15ED9B
+ case 2, AbandonedShip_HiddenFloorRooms_EventScript_15EDC4
+ case 3, AbandonedShip_HiddenFloorRooms_EventScript_15EDC5
+ case 4, AbandonedShip_HiddenFloorRooms_EventScript_15EDEB
+ case 5, AbandonedShip_HiddenFloorRooms_EventScript_15EE23
+ case 6, AbandonedShip_HiddenFloorRooms_EventScript_15EE6A
+ end
+
+AbandonedShip_HiddenFloorRooms_EventScript_15ED89:: @ 815ED89
+ addvar VAR_TEMP_4, 1
+ return
+
+AbandonedShip_HiddenFloorRooms_EventScript_15ED8F:: @ 815ED8F
+ addvar VAR_TEMP_4, 2
+ return
+
+AbandonedShip_HiddenFloorRooms_EventScript_15ED95:: @ 815ED95
+ addvar VAR_TEMP_4, 3
+ return
+
+AbandonedShip_HiddenFloorRooms_EventScript_15ED9B:: @ 815ED9B
+ delay 20
+ setfieldeffectargument 0, 10
+ setfieldeffectargument 1, 10
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ specialvar RESULT, FoundAbandonedShipRoom4Key
+ compare RESULT, 0
+ call_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15EE8B
+ waitfieldeffect FLDEFF_SPARKLE
+ delay 10
+ end
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EDC4:: @ 815EDC4
+ end
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EDC5:: @ 815EDC5
+ specialvar RESULT, FoundAbandonedShipRoom1Key
+ compare RESULT, 1
+ goto_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15EDEA
+ delay 20
+ compare RESULT, 0
+ call_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15EE6B
+ waitfieldeffect FLDEFF_SPARKLE
+ delay 10
+ end
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EDEA:: @ 815EDEA
+ end
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EDEB:: @ 815EDEB
+ delay 20
+ setfieldeffectargument 0, 8
+ setfieldeffectargument 1, 5
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ setfieldeffectargument 0, 11
+ setfieldeffectargument 1, 3
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ specialvar RESULT, FoundAbandonedShipRoom6Key
+ compare RESULT, 0
+ call_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15EE9B
+ waitfieldeffect FLDEFF_SPARKLE
+ delay 10
+ end
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EE23:: @ 815EE23
+ delay 20
+ setfieldeffectargument 0, 16
+ setfieldeffectargument 1, 3
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ setfieldeffectargument 0, 25
+ setfieldeffectargument 1, 2
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ setfieldeffectargument 0, 24
+ setfieldeffectargument 1, 6
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ specialvar RESULT, FoundAbandonedShipRoom2Key
+ compare RESULT, 0
+ call_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15EE7B
+ waitfieldeffect FLDEFF_SPARKLE
+ delay 10
+ end
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EE6A:: @ 815EE6A
+ end
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EE6B:: @ 815EE6B
+ setfieldeffectargument 0, 42
+ setfieldeffectargument 1, 10
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ return
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EE7B:: @ 815EE7B
+ setfieldeffectargument 0, 20
+ setfieldeffectargument 1, 5
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ return
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EE8B:: @ 815EE8B
+ setfieldeffectargument 0, 1
+ setfieldeffectargument 1, 12
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ return
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EE9B:: @ 815EE9B
+ setfieldeffectargument 0, 1
+ setfieldeffectargument 1, 2
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ return
+
+AbandonedShip_HiddenFloorRooms_EventScript_15EEAB:: @ 815EEAB
+ lockall
+ msgbox AbandonedShip_HiddenFloorRooms_Text_198EE2, 4
+ releaseall
+ end
diff --git a/data/maps/AbandonedShip_Room_B1F/scripts.inc b/data/maps/AbandonedShip_Room_B1F/scripts.inc
new file mode 100644
index 000000000..4cdc8bbd1
--- /dev/null
+++ b/data/maps/AbandonedShip_Room_B1F/scripts.inc
@@ -0,0 +1,2 @@
+AbandonedShip_Room_B1F_MapScripts:: @ 815EA66
+ .byte 0
diff --git a/data/maps/AbandonedShip_Rooms2_1F/scripts.inc b/data/maps/AbandonedShip_Rooms2_1F/scripts.inc
new file mode 100644
index 000000000..e1e903cc0
--- /dev/null
+++ b/data/maps/AbandonedShip_Rooms2_1F/scripts.inc
@@ -0,0 +1,28 @@
+AbandonedShip_Rooms2_1F_MapScripts:: @ 815EA67
+ .byte 0
+
+AbandonedShip_Rooms2_1F_EventScript_15EA68:: @ 815EA68
+ trainerbattle 4, OPPONENT_LOIS_AND_HAL_1, 0, AbandonedShip_Rooms2_1F_Text_1987C1, AbandonedShip_Rooms2_1F_Text_1987FE, AbandonedShip_Rooms2_1F_Text_19887F
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq AbandonedShip_Rooms2_1F_EventScript_15EA93
+ msgbox AbandonedShip_Rooms2_1F_Text_198835, 6
+ end
+
+AbandonedShip_Rooms2_1F_EventScript_15EA93:: @ 815EA93
+ trainerbattle 7, OPPONENT_LOIS_AND_HAL_1, 0, AbandonedShip_Rooms2_1F_Text_1989DF, AbandonedShip_Rooms2_1F_Text_198A53, AbandonedShip_Rooms2_1F_Text_198AEE
+ msgbox AbandonedShip_Rooms2_1F_Text_198A70, 6
+ end
+
+AbandonedShip_Rooms2_1F_EventScript_15EAAE:: @ 815EAAE
+ trainerbattle 4, OPPONENT_LOIS_AND_HAL_1, 0, AbandonedShip_Rooms2_1F_Text_1988CC, AbandonedShip_Rooms2_1F_Text_198916, AbandonedShip_Rooms2_1F_Text_19899A
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq AbandonedShip_Rooms2_1F_EventScript_15EAD9
+ msgbox AbandonedShip_Rooms2_1F_Text_198934, 6
+ end
+
+AbandonedShip_Rooms2_1F_EventScript_15EAD9:: @ 815EAD9
+ trainerbattle 7, OPPONENT_LOIS_AND_HAL_1, 0, AbandonedShip_Rooms2_1F_Text_198B3B, AbandonedShip_Rooms2_1F_Text_198BCF, AbandonedShip_Rooms2_1F_Text_198C40
+ msgbox AbandonedShip_Rooms2_1F_Text_198BEA, 6
+ end
diff --git a/data/maps/AbandonedShip_Rooms2_B1F/scripts.inc b/data/maps/AbandonedShip_Rooms2_B1F/scripts.inc
new file mode 100644
index 000000000..0c8f3ffc9
--- /dev/null
+++ b/data/maps/AbandonedShip_Rooms2_B1F/scripts.inc
@@ -0,0 +1,6 @@
+AbandonedShip_Rooms2_B1F_MapScripts:: @ 815EA4D
+ .byte 0
+
+AbandonedShip_Rooms2_B1F_EventScript_15EA4E:: @ 815EA4E
+ msgbox AbandonedShip_Rooms2_B1F_Text_198759, 2
+ end
diff --git a/data/maps/AbandonedShip_Rooms_1F/scripts.inc b/data/maps/AbandonedShip_Rooms_1F/scripts.inc
new file mode 100644
index 000000000..c5f9ad3f5
--- /dev/null
+++ b/data/maps/AbandonedShip_Rooms_1F/scripts.inc
@@ -0,0 +1,6 @@
+AbandonedShip_Rooms_1F_MapScripts:: @ 815E985
+ .byte 0
+
+AbandonedShip_Rooms_1F_EventScript_15E986:: @ 815E986
+ msgbox AbandonedShip_Rooms_1F_Text_19850A, 2
+ end
diff --git a/data/maps/AbandonedShip_Rooms_B1F/scripts.inc b/data/maps/AbandonedShip_Rooms_B1F/scripts.inc
new file mode 100644
index 000000000..4299c7da4
--- /dev/null
+++ b/data/maps/AbandonedShip_Rooms_B1F/scripts.inc
@@ -0,0 +1,11 @@
+AbandonedShip_Rooms_B1F_MapScripts:: @ 815EA35
+ map_script 5, AbandonedShip_Rooms_B1F_MapScript1_15EA3B
+ .byte 0
+
+AbandonedShip_Rooms_B1F_MapScript1_15EA3B:: @ 815EA3B
+ setdivewarp MAP_ABANDONED_SHIP_UNDERWATER2, 255, 17, 4
+ end
+
+AbandonedShip_Rooms_B1F_EventScript_15EA44:: @ 815EA44
+ msgbox AbandonedShip_Rooms_B1F_Text_1986FE, 2
+ end
diff --git a/data/maps/AbandonedShip_Underwater1/scripts.inc b/data/maps/AbandonedShip_Underwater1/scripts.inc
new file mode 100644
index 000000000..52ba61136
--- /dev/null
+++ b/data/maps/AbandonedShip_Underwater1/scripts.inc
@@ -0,0 +1,7 @@
+AbandonedShip_Underwater1_MapScripts:: @ 815EA57
+ map_script 5, AbandonedShip_Underwater1_MapScript1_15EA5D
+ .byte 0
+
+AbandonedShip_Underwater1_MapScript1_15EA5D:: @ 815EA5D
+ setdivewarp MAP_ABANDONED_SHIP_HIDDEN_FLOOR_CORRIDORS, 255, 0, 10
+ end
diff --git a/data/maps/AbandonedShip_Underwater2/scripts.inc b/data/maps/AbandonedShip_Underwater2/scripts.inc
new file mode 100644
index 000000000..22113661a
--- /dev/null
+++ b/data/maps/AbandonedShip_Underwater2/scripts.inc
@@ -0,0 +1,7 @@
+AbandonedShip_Underwater2_MapScripts:: @ 815EB37
+ map_script 5, AbandonedShip_Underwater2_MapScript1_15EB3D
+ .byte 0
+
+AbandonedShip_Underwater2_MapScript1_15EB3D:: @ 815EB3D
+ setdivewarp MAP_ABANDONED_SHIP_ROOMS_B1F, 255, 13, 7
+ end
diff --git a/data/maps/AncientTomb/scripts.inc b/data/maps/AncientTomb/scripts.inc
new file mode 100644
index 000000000..8ff39c0a4
--- /dev/null
+++ b/data/maps/AncientTomb/scripts.inc
@@ -0,0 +1,68 @@
+AncientTomb_MapScripts:: @ 815EFBE
+ map_script 5, AncientTomb_MapScript1_15EFCE
+ map_script 1, AncientTomb_MapScript1_15EFE0
+ map_script 3, AncientTomb_MapScript1_15EFDC
+ .byte 0
+
+AncientTomb_MapScript1_15EFCE:: @ 815EFCE
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, AncientTomb_EventScript_15EFD8
+ end
+
+AncientTomb_EventScript_15EFD8:: @ 815EFD8
+ removeobject LAST_TALKED
+ return
+
+AncientTomb_MapScript1_15EFDC:: @ 815EFDC
+ setflag FLAG_LANDMARK_ANCIENT_TOMB
+ end
+
+AncientTomb_MapScript1_15EFE0:: @ 815EFE0
+ call_if_unset FLAG_SYS_BRAILLE_FLY, AncientTomb_EventScript_15EFEA
+ end
+
+AncientTomb_EventScript_15EFEA:: @ 815EFEA
+ setmetatile 7, 19, 553, 1
+ setmetatile 8, 19, 553, 1
+ setmetatile 9, 19, 553, 1
+ setmetatile 7, 20, 565, 1
+ setmetatile 8, 20, 565, 1
+ setmetatile 9, 20, 565, 1
+ return
+
+AncientTomb_EventScript_15F021:: @ 815F021
+ lockall
+ goto_if_set FLAG_SYS_BRAILLE_FLY, AncientTomb_EventScript_15F038
+ braillemessage AncientTomb_Braille_1C552E
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+AncientTomb_EventScript_15F038:: @ 815F038
+ msgbox AncientTomb_Text_1A13BE, 4
+ releaseall
+ end
+
+AncientTomb_EventScript_15F042:: @ 815F042
+ lockall
+ braillemessage AncientTomb_Braille_1C552E
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+AncientTomb_EventScript_15F050:: @ 815F050
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_REGISTEEL, 2
+ delay 40
+ waitmoncry
+ setwildbattle SPECIES_REGISTEEL, 40, ITEM_NONE
+ setflag FLAG_HIDE_REGISTEEL
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ special ScrSpecial_StartRegiBattle
+ waitstate
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ release
+ end
diff --git a/data/maps/AquaHideout_1F/scripts.inc b/data/maps/AquaHideout_1F/scripts.inc
new file mode 100644
index 000000000..ee49ba695
--- /dev/null
+++ b/data/maps/AquaHideout_1F/scripts.inc
@@ -0,0 +1,46 @@
+AquaHideout_1F_MapScripts:: @ 815D7C2
+ map_script 3, AquaHideout_1F_MapScript1_15D7C8
+ .byte 0
+
+AquaHideout_1F_MapScript1_15D7C8:: @ 815D7C8
+ call AquaHideout_1F_EventScript_1A0196
+ end
+
+AquaHideout_1F_EventScript_15D7CE:: @ 815D7CE
+MagmaHideout_1F_EventScript_15D7CE:: @ 815D7CE
+ lock
+ faceplayer
+ goto_if_set FLAG_MT_PYRE_ORB_STOLEN, AquaHideout_1F_EventScript_15D7E3
+ msgbox AquaHideout_1F_Text_196AFD, 4
+ release
+ end
+
+AquaHideout_1F_EventScript_15D7E3:: @ 815D7E3
+ msgbox AquaHideout_1F_Text_196BC5, 4
+ release
+ end
+
+AquaHideout_1F_EventScript_15D7ED:: @ 815D7ED
+MagmaHideout_1F_EventScript_15D7ED:: @ 815D7ED
+ lock
+ faceplayer
+ goto_if_set FLAG_MT_PYRE_ORB_STOLEN, AquaHideout_1F_EventScript_15D802
+ msgbox AquaHideout_1F_Text_196C83, 4
+ release
+ end
+
+AquaHideout_1F_EventScript_15D802:: @ 815D802
+ msgbox AquaHideout_1F_Text_196D46, 4
+ release
+ end
+
+AquaHideout_1F_EventScript_15D80C:: @ 815D80C
+MagmaHideout_1F_EventScript_15D80C:: @ 815D80C
+ trainerbattle 2, OPPONENT_HIDEOUT_1F_GRUNT, 0, AquaHideout_1F_Text_196E01, AquaHideout_1F_Text_196E28, AquaHideout_1F_EventScript_15D827
+ msgbox AquaHideout_1F_Text_196E3D, 6
+ end
+
+AquaHideout_1F_EventScript_15D827:: @ 815D827
+ msgbox AquaHideout_1F_Text_196E3D, 4
+ release
+ end
diff --git a/data/maps/AquaHideout_B1F/scripts.inc b/data/maps/AquaHideout_B1F/scripts.inc
new file mode 100644
index 000000000..3be8d487d
--- /dev/null
+++ b/data/maps/AquaHideout_B1F/scripts.inc
@@ -0,0 +1,44 @@
+AquaHideout_B1F_MapScripts:: @ 815D831
+ map_script 5, AquaHideout_B1F_MapScript1_15D83C
+ map_script 3, AquaHideout_B1F_MapScript1_15D84A
+ .byte 0
+
+AquaHideout_B1F_MapScript1_15D83C:: @ 815D83C
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, AquaHideout_B1F_EventScript_15D846
+ end
+
+AquaHideout_B1F_EventScript_15D846:: @ 815D846
+ removeobject LAST_TALKED
+ return
+
+AquaHideout_B1F_MapScript1_15D84A:: @ 815D84A
+ call AquaHideout_B1F_EventScript_1A0196
+ end
+
+AquaHideout_B1F_EventScript_15D850:: @ 815D850
+MagmaHideout_B1F_EventScript_15D850:: @ 815D850
+ trainerbattle 2, OPPONENT_HIDEOUT_B1F_GRUNT_1, 0, AquaHideout_B1F_Text_196E6F, AquaHideout_B1F_Text_196EB6, AquaHideout_B1F_EventScript_15D86B
+ msgbox AquaHideout_B1F_Text_196ECC, 6
+ end
+
+AquaHideout_B1F_EventScript_15D86B:: @ 815D86B
+ msgbox AquaHideout_B1F_Text_196ECC, 4
+ release
+ end
+
+AquaHideout_B1F_EventScript_15D875:: @ 815D875
+MagmaHideout_B1F_EventScript_15D875:: @ 815D875
+ trainerbattle 2, OPPONENT_HIDEOUT_B1F_GRUNT_2, 0, AquaHideout_B1F_Text_196F39, AquaHideout_B1F_Text_196F9B, AquaHideout_B1F_EventScript_15D890
+ msgbox AquaHideout_B1F_Text_196FB5, 6
+ end
+
+AquaHideout_B1F_EventScript_15D890:: @ 815D890
+ msgbox AquaHideout_B1F_Text_196FB5, 4
+ release
+ end
+
+AquaHideout_B1F_EventScript_15D89A:: @ 815D89A
+MagmaHideout_B1F_EventScript_15D89A:: @ 815D89A
+ trainerbattle 0, OPPONENT_HIDEOUT_B1F_GRUNT_3, 0, AquaHideout_B1F_Text_196FFD, AquaHideout_B1F_Text_197040
+ msgbox AquaHideout_B1F_Text_197056, 6
+ end
diff --git a/data/maps/AquaHideout_B2F/scripts.inc b/data/maps/AquaHideout_B2F/scripts.inc
new file mode 100644
index 000000000..37830a00e
--- /dev/null
+++ b/data/maps/AquaHideout_B2F/scripts.inc
@@ -0,0 +1,101 @@
+AquaHideout_B2F_MapScripts:: @ 815D8B1
+ map_script 3, AquaHideout_B2F_MapScript1_15D8B7
+ .byte 0
+
+AquaHideout_B2F_MapScript1_15D8B7:: @ 815D8B7
+ call AquaHideout_B2F_EventScript_1A0196
+ end
+
+AquaHideout_B2F_EventScript_15D8BD:: @ 815D8BD
+MagmaHideout_B2F_EventScript_15D8BD:: @ 815D8BD
+ lockall
+ setvar VAR_SPECIAL_8, 1
+ playse SE_PIN
+ applymovement VAR_SPECIAL_8, AquaHideout_B2F_Movement_1A0833
+ waitmovement 0
+ .ifdef SAPPHIRE
+ applymovement VAR_SPECIAL_8, AquaHideout_B2F_Movement_1A0839
+ .else
+ applymovement VAR_SPECIAL_8, AquaHideout_B2F_Movement_1A0841
+ .endif
+ waitmovement 0
+ setvar VAR_TEMP_1, 1
+ releaseall
+ end
+
+AquaHideout_B2F_EventScript_15D8E1:: @ 815D8E1
+MagmaHideout_B2F_EventScript_15D8E1:: @ 815D8E1
+ trainerbattle 2, OPPONENT_HIDEOUT_B2F_GRUNT_1, 0, AquaHideout_B2F_Text_197093, AquaHideout_B2F_Text_197145, AquaHideout_B2F_EventScript_15D8FD
+ msgbox AquaHideout_B2F_Text_1971AE, 4
+ release
+ end
+
+AquaHideout_B2F_EventScript_15D8FD:: @ 815D8FD
+ setvar VAR_SPECIAL_8, 1
+ .ifdef SAPPHIRE
+ setvar VAR_SPECIAL_9, 4
+ .else
+ setvar VAR_SPECIAL_9, 3
+ .endif
+ .ifdef SAPPHIRE
+ applymovement VAR_SPECIAL_8, Movement_1A083F
+ .else
+ applymovement VAR_SPECIAL_8, AquaHideout_B2F_Movement_1A0843
+ .endif
+ waitmovement 0
+ delay 20
+ applymovement VAR_SPECIAL_8, AquaHideout_B2F_Movement_1A0839
+ waitmovement 0
+ msgbox AquaHideout_B2F_Text_197162, 4
+ closemessage
+ .ifdef SAPPHIRE
+ applymovement VAR_SPECIAL_8, Movement_1A083F
+ .else
+ applymovement VAR_SPECIAL_8, AquaHideout_B2F_Movement_1A0843
+ .endif
+ .ifdef SAPPHIRE
+ applymovement VAR_SPECIAL_9, AquaHideout_B2F_Movement_15D958
+ .else
+ applymovement VAR_SPECIAL_9, AquaHideout_B2F_Movement_15D95D
+ .endif
+ waitmovement 0
+ removeobject VAR_SPECIAL_9
+ delay 20
+ applymovement VAR_SPECIAL_8, AquaHideout_B2F_Movement_1A0839
+ waitmovement 0
+ msgbox AquaHideout_B2F_Text_1971AE, 4
+ setflag FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE
+ setflag FLAG_HIDE_GRUNTS_LILYCOVE
+ release
+ end
+
+AquaHideout_B2F_Movement_15D958:: @ 815D958
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+AquaHideout_B2F_Movement_15D95D:: @ 815D95D
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+AquaHideout_B2F_EventScript_15D962:: @ 815D962
+MagmaHideout_B2F_EventScript_15D962:: @ 815D962
+ trainerbattle 2, OPPONENT_HIDEOUT_B2F_GRUNT_2, 0, AquaHideout_B2F_Text_197270, AquaHideout_B2F_Text_1972AC, AquaHideout_B2F_EventScript_15D97D
+ msgbox AquaHideout_B2F_Text_1972D2, 6
+ end
+
+AquaHideout_B2F_EventScript_15D97D:: @ 815D97D
+ msgbox AquaHideout_B2F_Text_1972D2, 4
+ release
+ end
+
+AquaHideout_B2F_EventScript_15D987:: @ 815D987
+MagmaHideout_B2F_EventScript_15D987:: @ 815D987
+ trainerbattle 0, OPPONENT_HIDEOUT_B2F_GRUNT_3, 0, AquaHideout_B2F_Text_1972EF, AquaHideout_B2F_Text_197390
+ msgbox AquaHideout_B2F_Text_1973C0, 6
+ end
diff --git a/data/maps/BattleTower_BattleRoom/scripts.inc b/data/maps/BattleTower_BattleRoom/scripts.inc
new file mode 100644
index 000000000..f540777ee
--- /dev/null
+++ b/data/maps/BattleTower_BattleRoom/scripts.inc
@@ -0,0 +1,165 @@
+BattleTower_BattleRoom_MapScripts:: @ 81608DB
+ map_script 2, BattleTower_BattleRoom_MapScript2_1608E1
+ .byte 0
+
+BattleTower_BattleRoom_MapScript2_1608E1:: @ 81608E1
+ map_script_2 VAR_TEMP_0, 0, BattleTower_BattleRoom_EventScript_1608EB
+ .2byte 0
+
+BattleTower_BattleRoom_EventScript_1608EB:: @ 81608EB
+ setvar VAR_TEMP_0, 1
+ applymovement 255, BattleTower_BattleRoom_Movement_160AB7
+ waitmovement 0
+
+BattleTower_BattleRoom_EventScript_1608FA:: @ 81608FA
+ special sub_81347F8
+ addobject 1
+ applymovement 1, BattleTower_BattleRoom_Movement_160AC0
+ waitmovement 0
+ special PrintBattleTowerTrainerGreeting
+ msgbox gStringVar4, 4
+ waitmessage
+ closemessage
+ special ScrSpecial_HealPlayerParty
+ setvar VAR_SPECIAL_4, 0
+ setvar VAR_SPECIAL_5, 0
+ special StartSpecialBattle
+ waitstate
+ switch RESULT
+ case 1, BattleTower_BattleRoom_EventScript_160961
+ special LoadPlayerParty
+ setvar VAR_SPECIAL_4, 0
+ setvar VAR_SPECIAL_5, 5
+ special SetBattleTowerProperty
+ setvar VAR_SPECIAL_4, 14
+ special SetBattleTowerProperty
+ setvar VAR_SPECIAL_4, 3
+ special sub_810FF60
+ warp MAP_BATTLE_TOWER_LOBBY, 255, 6, 6
+ waitstate
+
+BattleTower_BattleRoom_EventScript_160961:: @ 8160961
+ setvar VAR_SPECIAL_4, 6
+ special SetBattleTowerProperty
+ switch RESULT
+ case 8, BattleTower_BattleRoom_EventScript_160A56
+ applymovement 1, BattleTower_BattleRoom_Movement_160AC6
+ waitmovement 0
+ removeobject 1
+ applymovement 2, BattleTower_BattleRoom_Movement_160ACB
+ waitmovement 0
+ applymovement 255, BattleTower_BattleRoom_Movement_160ABC
+ waitmovement 0
+ msgbox BattleTower_BattleRoom_Text_19ACDC, 4
+ special LoadPlayerParty
+ special SavePlayerParty
+ special SetBattleTowerParty
+ playfanfare BGM_ME_ASA
+ waitfanfare
+ special ScrSpecial_HealPlayerParty
+
+BattleTower_BattleRoom_EventScript_1609B2:: @ 81609B2
+ msgbox BattleTower_BattleRoom_Text_19AD09, MSGBOX_YESNO
+ switch RESULT
+ case NO, BattleTower_BattleRoom_EventScript_1609E0
+ case YES, BattleTower_BattleRoom_EventScript_160A3C
+ case 127, BattleTower_BattleRoom_EventScript_1609E0
+
+BattleTower_BattleRoom_EventScript_1609E0:: @ 81609E0
+ msgbox BattleTower_BattleRoom_Text_19AD3C, MSGBOX_YESNO
+ switch RESULT
+ case NO, BattleTower_BattleRoom_EventScript_160A0E
+ case YES, BattleTower_BattleRoom_EventScript_160A94
+ case 127, BattleTower_BattleRoom_EventScript_160A0E
+
+BattleTower_BattleRoom_EventScript_160A0E:: @ 8160A0E
+ msgbox BattleTower_BattleRoom_Text_19AD66, MSGBOX_YESNO
+ switch RESULT
+ case NO, BattleTower_BattleRoom_EventScript_1609B2
+ case YES, BattleTower_BattleRoom_EventScript_160AB1
+ case 127, BattleTower_BattleRoom_EventScript_1609B2
+
+BattleTower_BattleRoom_EventScript_160A3C:: @ 8160A3C
+ closemessage
+ applymovement 255, BattleTower_BattleRoom_Movement_160ABE
+ waitmovement 0
+ applymovement 2, BattleTower_BattleRoom_Movement_160AD0
+ waitmovement 0
+ goto BattleTower_BattleRoom_EventScript_1608FA
+
+BattleTower_BattleRoom_EventScript_160A56:: @ 8160A56
+ special LoadPlayerParty
+ setvar VAR_SPECIAL_4, 0
+ setvar VAR_SPECIAL_5, 4
+ special SetBattleTowerProperty
+ setvar VAR_SPECIAL_4, 2
+ setvar VAR_SPECIAL_5, 1
+ special SetBattleTowerProperty
+ setvar VAR_SPECIAL_4, 7
+ special SetBattleTowerProperty
+ setvar VAR_SPECIAL_4, 14
+ special SetBattleTowerProperty
+ setvar VAR_SPECIAL_4, 3
+ special sub_810FF60
+ warp MAP_BATTLE_TOWER_LOBBY, 255, 6, 6
+ waitstate
+
+BattleTower_BattleRoom_EventScript_160A94:: @ 8160A94
+ setvar VAR_SPECIAL_4, 2
+ special SaveBattleTowerProgress
+ message BattleTower_BattleRoom_Text_1C6CE1
+ delay 60
+ waitmessage
+ playse SE_SAVE
+ waitse
+ msgbox BattleTower_BattleRoom_Text_1C6D05, 4
+
+BattleTower_BattleRoom_EventScript_160AB1:: @ 8160AB1
+ fadescreen 1
+ special BattleTower_SoftReset
+ end
+
+BattleTower_BattleRoom_Movement_160AB7:: @ 8160AB7
+ walk_up
+ walk_up
+ walk_up
+ face_right
+ end_movement
+
+BattleTower_BattleRoom_Movement_160ABC:: @ 8160ABC
+ face_down
+ end_movement
+
+BattleTower_BattleRoom_Movement_160ABE:: @ 8160ABE
+ face_right
+ end_movement
+
+BattleTower_BattleRoom_Movement_160AC0:: @ 8160AC0
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ face_left
+ end_movement
+
+BattleTower_BattleRoom_Movement_160AC6:: @ 8160AC6
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+BattleTower_BattleRoom_Movement_160ACB:: @ 8160ACB
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ end_movement
+
+BattleTower_BattleRoom_Movement_160AD0:: @ 8160AD0
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ face_right
+ end_movement
diff --git a/data/maps/BattleTower_Corridor/scripts.inc b/data/maps/BattleTower_Corridor/scripts.inc
new file mode 100644
index 000000000..d9d73b832
--- /dev/null
+++ b/data/maps/BattleTower_Corridor/scripts.inc
@@ -0,0 +1,58 @@
+BattleTower_Corridor_MapScripts:: @ 8160845
+ map_script 1, BattleTower_Corridor_MapScript1_160850
+ map_script 2, BattleTower_Corridor_MapScript2_160881
+ .byte 0
+
+BattleTower_Corridor_MapScript1_160850:: @ 8160850
+ compare VAR_SPECIAL_6, 1
+ goto_if_eq BattleTower_Corridor_EventScript_16086E
+ setmetatile 12, 0, 519, 0
+ setmetatile 12, 1, 527, 0
+ end
+
+BattleTower_Corridor_EventScript_16086E:: @ 816086E
+ setmetatile 15, 0, 519, 0
+ setmetatile 15, 1, 527, 0
+ end
+
+BattleTower_Corridor_MapScript2_160881:: @ 8160881
+ map_script_2 VAR_TEMP_0, 0, BattleTower_Corridor_EventScript_16088B
+ .2byte 0
+
+BattleTower_Corridor_EventScript_16088B:: @ 816088B
+ setvar VAR_TEMP_0, 1
+ compare VAR_SPECIAL_6, 1
+ goto_if_eq BattleTower_Corridor_EventScript_1608B1
+ applymovement 1, BattleTower_Corridor_Movement_1608D5
+ applymovement 255, BattleTower_Corridor_Movement_1608D4
+ waitmovement 0
+ goto BattleTower_Corridor_EventScript_1608C2
+
+BattleTower_Corridor_EventScript_1608B1:: @ 81608B1
+ applymovement 1, BattleTower_Corridor_Movement_1608D2
+ applymovement 255, BattleTower_Corridor_Movement_1608D1
+ waitmovement 0
+
+BattleTower_Corridor_EventScript_1608C2:: @ 81608C2
+ setvar VAR_TEMP_0, 0
+ warp MAP_BATTLE_TOWER_BATTLE_ROOM, 255, 4, 8
+ waitstate
+ end
+
+BattleTower_Corridor_Movement_1608D1:: @ 81608D1
+ walk_right
+
+BattleTower_Corridor_Movement_1608D2:: @ 81608D2
+ walk_right
+ walk_right
+
+BattleTower_Corridor_Movement_1608D4:: @ 81608D4
+ walk_right
+
+BattleTower_Corridor_Movement_1608D5:: @ 81608D5
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ set_invisible
+ end_movement
diff --git a/data/maps/BattleTower_Elevator/scripts.inc b/data/maps/BattleTower_Elevator/scripts.inc
new file mode 100644
index 000000000..f3373ee6e
--- /dev/null
+++ b/data/maps/BattleTower_Elevator/scripts.inc
@@ -0,0 +1,57 @@
+BattleTower_Elevator_MapScripts:: @ 81607CF
+ map_script 2, BattleTower_Elevator_MapScript2_1607DA
+ map_script 4, BattleTower_Elevator_MapScript2_160821
+ .byte 0
+
+BattleTower_Elevator_MapScript2_1607DA:: @ 81607DA
+ map_script_2 VAR_TEMP_0, 0, BattleTower_Elevator_EventScript_1607E4
+ .2byte 0
+
+BattleTower_Elevator_EventScript_1607E4:: @ 81607E4
+ setvar VAR_TEMP_0, 1
+ applymovement 1, BattleTower_Elevator_Movement_160835
+ applymovement 255, BattleTower_Elevator_Movement_160839
+ waitmovement 0
+ special ShakeScreenInElevator
+ waitstate
+ delay 64
+ applymovement 1, BattleTower_Elevator_Movement_16083D
+ applymovement 255, BattleTower_Elevator_Movement_160841
+ waitmovement 0
+ setvar VAR_TEMP_0, 0
+ warp MAP_BATTLE_TOWER_CORRIDOR, 255, 8, 1
+ waitstate
+ end
+
+BattleTower_Elevator_MapScript2_160821:: @ 8160821
+ map_script_2 VAR_TEMP_1, 0, BattleTower_Elevator_EventScript_16082B
+ .2byte 0
+
+BattleTower_Elevator_EventScript_16082B:: @ 816082B
+ setvar VAR_TEMP_1, 1
+ turnobject 255, 2
+ end
+
+BattleTower_Elevator_Movement_160835:: @ 8160835
+ walk_up
+ walk_right
+ face_down
+ end_movement
+
+BattleTower_Elevator_Movement_160839:: @ 8160839
+ walk_up
+ walk_up
+ face_down
+ end_movement
+
+BattleTower_Elevator_Movement_16083D:: @ 816083D
+ walk_down
+ walk_down
+ set_invisible
+ end_movement
+
+BattleTower_Elevator_Movement_160841:: @ 8160841
+ walk_right
+ walk_down
+ walk_down
+ end_movement
diff --git a/data/maps/BattleTower_Lobby/scripts.inc b/data/maps/BattleTower_Lobby/scripts.inc
new file mode 100644
index 000000000..24637ee75
--- /dev/null
+++ b/data/maps/BattleTower_Lobby/scripts.inc
@@ -0,0 +1,424 @@
+BattleTower_Lobby_MapScripts:: @ 816027E
+ map_script 5, BattleTower_Lobby_MapScript1_160293
+ map_script 3, BattleTower_Lobby_MapScript1_1602E8
+ map_script 2, BattleTower_Lobby_MapScript2_160302
+ map_script 4, BattleTower_Lobby_MapScript2_1602EE
+ .byte 0
+
+BattleTower_Lobby_MapScript1_160293:: @ 8160293
+ special TryEnableBravoTrainerBattleTower
+ call BattleTower_Lobby_EventScript_16029C
+ end
+
+BattleTower_Lobby_EventScript_16029C:: @ 816029C
+ setvar VAR_SPECIAL_4, 10
+ special SetBattleTowerProperty
+ goto_if_set FLAG_RECEIVED_GOLD_SHIELD, BattleTower_Lobby_EventScript_1602E4
+ goto_if_set FLAG_RECEIVED_SILVER_SHIELD, BattleTower_Lobby_EventScript_1602CD
+ specialvar VAR_SPECIAL_7, GetBestBattleTowerStreak
+ compare VAR_SPECIAL_7, 50
+ goto_if_lt BattleTower_Lobby_EventScript_1602E4
+ clearflag FLAG_HIDE_AWARD_MAN_BATTLE_TOWER
+ special TryInitBattleTowerAwardManEventObject
+ return
+
+BattleTower_Lobby_EventScript_1602CD:: @ 81602CD
+ specialvar VAR_SPECIAL_7, GetBestBattleTowerStreak
+ compare VAR_SPECIAL_7, 100
+ goto_if_lt BattleTower_Lobby_EventScript_1602E4
+ clearflag FLAG_HIDE_AWARD_MAN_BATTLE_TOWER
+ special TryInitBattleTowerAwardManEventObject
+ return
+
+BattleTower_Lobby_EventScript_1602E4:: @ 81602E4
+ setflag FLAG_HIDE_AWARD_MAN_BATTLE_TOWER
+ return
+
+BattleTower_Lobby_MapScript1_1602E8:: @ 81602E8
+ call BattleTower_Lobby_EventScript_1AE2ED
+ end
+
+BattleTower_Lobby_MapScript2_1602EE:: @ 81602EE
+ map_script_2 VAR_TEMP_1, 0, BattleTower_Lobby_EventScript_1602F8
+ .2byte 0
+
+BattleTower_Lobby_EventScript_1602F8:: @ 81602F8
+ setvar VAR_TEMP_1, 1
+ turnobject 255, 2
+ end
+
+BattleTower_Lobby_MapScript2_160302:: @ 8160302
+ map_script_2 VAR_TEMP_0, 0, BattleTower_Lobby_EventScript_16032C
+ map_script_2 VAR_TEMP_0, 1, BattleTower_Lobby_EventScript_160330
+ map_script_2 VAR_TEMP_0, 2, BattleTower_Lobby_EventScript_160342
+ map_script_2 VAR_TEMP_0, 3, BattleTower_Lobby_EventScript_160419
+ map_script_2 VAR_TEMP_0, 4, BattleTower_Lobby_EventScript_16044B
+ .2byte 0
+
+BattleTower_Lobby_EventScript_16032C:: @ 816032C
+ special sub_8134548
+ end
+
+BattleTower_Lobby_EventScript_160330:: @ 8160330
+ lock
+ faceplayer
+ msgbox BattleTower_Lobby_Text_19A3FD, 4
+ closemessage
+ setvar VAR_TEMP_0, 5
+ release
+ end
+
+BattleTower_Lobby_EventScript_160342:: @ 8160342
+ lock
+ faceplayer
+ message BattleTower_Lobby_Text_19A487
+ waitmessage
+ setvar VAR_SPECIAL_4, 0
+ special BattleTowerUtil
+ compare RESULT, 6
+ goto_if_eq BattleTower_Lobby_EventScript_16037D
+ special AwardBattleTowerRibbons
+ compare RESULT, 0
+ goto_if_eq BattleTower_Lobby_EventScript_16037D
+ message BattleTower_Lobby_Text_19A6BE
+ waitmessage
+ playfanfare BGM_FANFA4
+ waitfanfare
+ msgbox BattleTower_Lobby_Text_19A719, 4
+
+BattleTower_Lobby_EventScript_16037D:: @ 816037D
+ setvar VAR_SPECIAL_4, 8
+ special BattleTowerUtil
+ compare RESULT, 1
+ goto_if_eq BattleTower_Lobby_EventScript_1603AD
+ message BattleTower_Lobby_Text_19A589
+ waitmessage
+ setvar VAR_SPECIAL_4, 13
+ special SetBattleTowerProperty
+ special DetermineBattleTowerPrize
+ setvar VAR_SPECIAL_4, 3
+ special SaveBattleTowerProgress
+ playse SE_SAVE
+ waitse
+
+BattleTower_Lobby_EventScript_1603AD:: @ 81603AD
+ setvar VAR_SPECIAL_4, 0
+ setvar VAR_SPECIAL_5, 3
+ special SetBattleTowerProperty
+ message BattleTower_Lobby_Text_19A4BB
+ waitmessage
+ special GiveBattleTowerPrize
+ switch RESULT
+ case 0, BattleTower_Lobby_EventScript_160408
+ message BattleTower_Lobby_Text_19A506
+ waitmessage
+ playfanfare BGM_FANFA4
+ waitfanfare
+ setvar VAR_SPECIAL_4, 9
+ special BattleTowerUtil
+ compare RESULT, 49
+ goto_if_ne BattleTower_Lobby_EventScript_1603F8
+ msgbox BattleTower_Lobby_Text_19A617, 4
+
+BattleTower_Lobby_EventScript_1603F8:: @ 81603F8
+ msgbox BattleTower_Lobby_Text_199FA9, 4
+ closemessage
+ setvar VAR_TEMP_0, 5
+ release
+ end
+
+BattleTower_Lobby_EventScript_160408:: @ 8160408
+ msgbox BattleTower_Lobby_Text_19A520, 4
+ waitmessage
+ closemessage
+ setvar VAR_TEMP_0, 5
+ release
+ end
+
+BattleTower_Lobby_EventScript_160419:: @ 8160419
+ lock
+ faceplayer
+ message BattleTower_Lobby_Text_19A571
+ waitmessage
+ message BattleTower_Lobby_Text_19A589
+ waitmessage
+ setvar VAR_SPECIAL_4, 13
+ special SetBattleTowerProperty
+ setvar VAR_SPECIAL_4, 0
+ special SaveBattleTowerProgress
+ playse SE_SAVE
+ waitse
+ msgbox BattleTower_Lobby_Text_199FA9, 4
+ closemessage
+ setvar VAR_TEMP_0, 5
+ release
+ end
+
+BattleTower_Lobby_EventScript_16044B:: @ 816044B
+ lock
+ faceplayer
+ setvar VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 1
+ message BattleTower_Lobby_Text_19A5B1
+ waitmessage
+ message BattleTower_Lobby_Text_19A5CE
+ waitmessage
+ setvar VAR_SPECIAL_4, 1
+ special SaveBattleTowerProgress
+ playse SE_SAVE
+ waitse
+ setvar VAR_SPECIAL_4, 8
+ setvar VAR_SPECIAL_5, 0
+ special SetBattleTowerProperty
+ setvar VAR_TEMP_0, 5
+ special SavePlayerParty
+ special SetBattleTowerParty
+ msgbox BattleTower_Lobby_Text_19A0A8, 4
+ closemessage
+ call BattleTower_Lobby_EventScript_160664
+ warp MAP_BATTLE_TOWER_ELEVATOR, 255, 1, 6
+ setvar VAR_TEMP_0, 0
+ waitstate
+
+BattleTower_Lobby_EventScript_16049E:: @ 816049E
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_4, 0
+ special BattleTowerUtil
+ compare RESULT, 6
+ goto_if_eq BattleTower_Lobby_EventScript_160342
+ special SavePlayerParty
+ msgbox BattleTower_Lobby_Text_199F2C, 4
+
+BattleTower_Lobby_EventScript_1604BE:: @ 81604BE
+ message BattleTower_Lobby_Text_199F79
+ waitmessage
+ multichoice 15, 6, 23, 0
+ switch RESULT
+ case 0, BattleTower_Lobby_EventScript_1604FA
+ case 1, BattleTower_Lobby_EventScript_160600
+ case 2, BattleTower_Lobby_EventScript_160652
+ case 127, BattleTower_Lobby_EventScript_160652
+
+BattleTower_Lobby_EventScript_1604FA:: @ 81604FA
+ message BattleTower_Lobby_Text_19A024
+ waitmessage
+ multichoice 18, 6, 24, 0
+ switch RESULT
+ case 2, BattleTower_Lobby_EventScript_160652
+ case 127, BattleTower_Lobby_EventScript_160652
+ special CheckPartyBattleTowerBanlist
+ compare VAR_SPECIAL_4, 1
+ goto_if_eq BattleTower_Lobby_EventScript_16060D
+ setvar VAR_SPECIAL_4, 1
+ copyvar VAR_SPECIAL_5, RESULT
+ copyvar VAR_SPECIAL_6, RESULT
+ special SetBattleTowerProperty
+ msgbox BattleTower_Lobby_Text_19A07B, 4
+ fadescreen 1
+ special ChooseBattleTowerPlayerParty
+ waitstate
+ compare RESULT, 0
+ goto_if_eq BattleTower_Lobby_EventScript_16064F
+ msgbox BattleTower_Lobby_Text_199FDA, MSGBOX_YESNO
+ switch RESULT
+ case NO, BattleTower_Lobby_EventScript_16064F
+ case YES, BattleTower_Lobby_EventScript_160587
+ case 127, BattleTower_Lobby_EventScript_16064F
+
+BattleTower_Lobby_EventScript_160587:: @ 8160587
+ setvar VAR_SPECIAL_4, 5
+ special SetBattleTowerProperty
+ setvar VAR_TEMP_0, 0
+ setvar VAR_SPECIAL_4, 11
+ special SetBattleTowerProperty
+ setvar VAR_SPECIAL_4, 0
+ setvar VAR_SPECIAL_5, 1
+ special SetBattleTowerProperty
+ setvar VAR_SPECIAL_4, 8
+ setvar VAR_SPECIAL_5, 0
+ special SetBattleTowerProperty
+ special LoadPlayerParty
+ closemessage
+ delay 2
+ call S_DoSaveDialog
+ setvar VAR_TEMP_0, 5
+ erasebox 0, 0, 15, 10
+ compare RESULT, 0
+ goto_if_eq BattleTower_Lobby_EventScript_160642
+ incrementgamestat GAME_STAT_ENTERED_BATTLE_TOWER
+ special SavePlayerParty
+ special SetBattleTowerParty
+ setvar VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 1
+ msgbox BattleTower_Lobby_Text_19A0A8, 4
+ closemessage
+ call BattleTower_Lobby_EventScript_160664
+ warp MAP_BATTLE_TOWER_ELEVATOR, 255, 1, 6
+ setvar VAR_TEMP_0, 0
+ waitstate
+
+BattleTower_Lobby_EventScript_160600:: @ 8160600
+ msgbox BattleTower_Lobby_Text_19A0D1, 4
+ goto BattleTower_Lobby_EventScript_1604BE
+
+BattleTower_Lobby_EventScript_16060D:: @ 816060D
+ switch RESULT
+ case 0, BattleTower_Lobby_EventScript_160628
+ case 1, BattleTower_Lobby_EventScript_160635
+
+BattleTower_Lobby_EventScript_160628:: @ 8160628
+ msgbox BattleTower_Lobby_Text_19A249, 4
+ goto BattleTower_Lobby_EventScript_160662
+
+BattleTower_Lobby_EventScript_160635:: @ 8160635
+ msgbox BattleTower_Lobby_Text_19A32D, 4
+ goto BattleTower_Lobby_EventScript_160662
+
+BattleTower_Lobby_EventScript_160642:: @ 8160642
+ setvar VAR_SPECIAL_4, 12
+ special SetBattleTowerProperty
+ goto BattleTower_Lobby_EventScript_160652
+
+BattleTower_Lobby_EventScript_16064F:: @ 816064F
+ special LoadPlayerParty
+
+BattleTower_Lobby_EventScript_160652:: @ 8160652
+ msgbox BattleTower_Lobby_Text_199FA9, 4
+ setvar VAR_SPECIAL_4, 11
+ special SetBattleTowerProperty
+
+BattleTower_Lobby_EventScript_160662:: @ 8160662
+ release
+ end
+
+BattleTower_Lobby_EventScript_160664:: @ 8160664
+ applymovement 1, BattleTower_Lobby_Movement_160693
+ applymovement 255, BattleTower_Lobby_Movement_160693
+ waitmovement 0
+ opendoor 6, 1
+ waitdooranim
+ applymovement 1, BattleTower_Lobby_Movement_160697
+ applymovement 255, BattleTower_Lobby_Movement_16069A
+ waitmovement 0
+ closedoor 6, 1
+ waitdooranim
+ return
+
+BattleTower_Lobby_Movement_160693:: @ 8160693
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+BattleTower_Lobby_Movement_160697:: @ 8160697
+ walk_up
+ set_invisible
+ end_movement
+
+BattleTower_Lobby_Movement_16069A:: @ 816069A
+ walk_up
+ walk_up
+ set_invisible
+ end_movement
+
+@ 816069E
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ set_invisible
+ end_movement
+
+BattleTower_Lobby_EventScript_1606A5:: @ 81606A5
+ lock
+ faceplayer
+ msgbox BattleTower_Lobby_Text_19A747, MSGBOX_YESNO
+ switch RESULT
+ case YES, BattleTower_Lobby_EventScript_1606CC
+ case NO, BattleTower_Lobby_EventScript_1606F7
+ release
+ end
+
+BattleTower_Lobby_EventScript_1606CC:: @ 81606CC
+ msgbox BattleTower_Lobby_Text_19A7C3, 4
+ setvar VAR_SPECIAL_4, 1
+ call BattleTower_Lobby_EventScript_1A00F3
+ lock
+ faceplayer
+ compare RESULT, 0
+ goto_if_eq BattleTower_Lobby_EventScript_160701
+ compare RESULT, 1
+ goto_if_eq BattleTower_Lobby_EventScript_16070B
+ end
+
+BattleTower_Lobby_EventScript_1606F7:: @ 81606F7
+ msgbox BattleTower_Lobby_Text_19A7FD, 4
+ release
+ end
+
+BattleTower_Lobby_EventScript_160701:: @ 8160701
+ msgbox BattleTower_Lobby_Text_19A83D, 4
+ release
+ end
+
+BattleTower_Lobby_EventScript_16070B:: @ 816070B
+ msgbox BattleTower_Lobby_Text_19A871, 4
+ release
+ end
+
+BattleTower_Lobby_EventScript_160715:: @ 8160715
+ msgbox BattleTower_Lobby_Text_19A8AE, 2
+ end
+
+BattleTower_Lobby_EventScript_16071E:: @ 816071E
+ msgbox BattleTower_Lobby_Text_19A946, 2
+ end
+
+BattleTower_Lobby_EventScript_160727:: @ 8160727
+ lockall
+ special ShowBattleTowerRecords
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+BattleTower_Lobby_EventScript_160733:: @ 8160733
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_GOLD_SHIELD, BattleTower_Lobby_EventScript_1607C5
+ goto_if_set FLAG_RECEIVED_SILVER_SHIELD, BattleTower_Lobby_EventScript_160773
+ msgbox BattleTower_Lobby_Text_19A9EE, 4
+ setvar VAR_SPECIAL_8, DECOR_SILVER_SHIELD
+ givedecoration_std DECOR_SILVER_SHIELD
+ compare RESULT, 0
+ goto_if_eq BattleTower_Lobby_EventScript_1607AF
+ setflag FLAG_RECEIVED_SILVER_SHIELD
+ msgbox BattleTower_Lobby_Text_19ABAA, 4
+ release
+ end
+
+BattleTower_Lobby_EventScript_160773:: @ 8160773
+ specialvar RESULT, GetBestBattleTowerStreak
+ compare RESULT, 100
+ goto_if_lt BattleTower_Lobby_EventScript_1607C5
+ msgbox BattleTower_Lobby_Text_19AAC4, 4
+ setvar VAR_SPECIAL_8, DECOR_GOLD_SHIELD
+ givedecoration_std DECOR_GOLD_SHIELD
+ compare RESULT, 0
+ goto_if_eq BattleTower_Lobby_EventScript_1607AF
+ setflag FLAG_RECEIVED_GOLD_SHIELD
+ msgbox BattleTower_Lobby_Text_19ABAA, 4
+ release
+ end
+
+BattleTower_Lobby_EventScript_1607AF:: @ 81607AF
+ bufferdecorationname 1, VAR_SPECIAL_8
+ msgbox BattleTower_Lobby_Text_1A0CEF, 4
+ msgbox BattleTower_Lobby_Text_19ABED, 4
+ release
+ end
+
+BattleTower_Lobby_EventScript_1607C5:: @ 81607C5
+ msgbox BattleTower_Lobby_Text_19AC55, 4
+ release
+ end
diff --git a/data/maps/BattleTower_Outside/scripts.inc b/data/maps/BattleTower_Outside/scripts.inc
new file mode 100644
index 000000000..8f6cb4305
--- /dev/null
+++ b/data/maps/BattleTower_Outside/scripts.inc
@@ -0,0 +1,94 @@
+BattleTower_Outside_MapScripts:: @ 8160156
+ map_script 3, BattleTower_Outside_MapScript1_16015C
+ .byte 0
+
+BattleTower_Outside_MapScript1_16015C:: @ 816015C
+ setflag FLAG_LANDMARK_BATTLE_TOWER
+ setvar VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0
+ setflag FLAG_HIDE_REPORTER_BATTLE_TOWER
+ end
+
+BattleTower_Outside_EventScript_160168:: @ 8160168
+ lock
+ faceplayer
+ msgbox BattleTower_Outside_Text_199D06, 4
+ checkitem ITEM_SS_TICKET, 1
+ compare RESULT, 0
+ goto_if_eq BattleTower_Outside_EventScript_1601C6
+ message BattleTower_Outside_Text_199D9D
+ waitmessage
+ goto BattleTower_Outside_EventScript_16018E
+ end
+
+BattleTower_Outside_EventScript_16018E:: @ 816018E
+ multichoicedefault 21, 6, 53, 2, 0
+ switch RESULT
+ case 0, BattleTower_Outside_EventScript_1601D0
+ case 1, BattleTower_Outside_EventScript_1601FB
+ case 2, BattleTower_Outside_EventScript_160250
+ case 127, BattleTower_Outside_EventScript_160250
+ end
+
+BattleTower_Outside_EventScript_1601C6:: @ 81601C6
+ msgbox BattleTower_Outside_Text_199D40, 4
+ release
+ end
+
+BattleTower_Outside_EventScript_1601D0:: @ 81601D0
+ msgbox BattleTower_Outside_Text_199DF2, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq BattleTower_Outside_EventScript_160226
+ msgbox BattleTower_Outside_Text_199E4B, 4
+ call BattleTower_Outside_EventScript_160232
+ warp MAP_SLATEPORT_CITY_HARBOR, 255, 8, 11
+ waitstate
+ release
+ end
+
+BattleTower_Outside_EventScript_1601FB:: @ 81601FB
+ msgbox BattleTower_Outside_Text_199E0E, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq BattleTower_Outside_EventScript_160226
+ msgbox BattleTower_Outside_Text_199E4B, 4
+ call BattleTower_Outside_EventScript_160232
+ warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
+ waitstate
+ release
+ end
+
+BattleTower_Outside_EventScript_160226:: @ 8160226
+ message BattleTower_Outside_Text_199E7A
+ waitmessage
+ goto BattleTower_Outside_EventScript_16018E
+ end
+
+BattleTower_Outside_EventScript_160232:: @ 8160232
+ closemessage
+ applymovement LAST_TALKED, BattleTower_Outside_Movement_1A0845
+ waitmovement 0
+ delay 30
+ hideobjectat 5, MAP_BATTLE_TOWER_OUTSIDE
+ setvar VAR_SPECIAL_4, 4
+ call BattleTower_Outside_EventScript_1A047C
+ return
+
+BattleTower_Outside_EventScript_160250:: @ 8160250
+ msgbox BattleTower_Outside_Text_199E29, 4
+ release
+ end
+
+BattleTower_Outside_EventScript_16025A:: @ 816025A
+ msgbox BattleTower_Outside_Text_199C6F, 3
+ end
+
+BattleTower_Outside_EventScript_160263:: @ 8160263
+ msgbox BattleTower_Outside_Text_199CA4, 2
+ end
+
+BattleTower_Outside_EventScript_16026C:: @ 816026C
+ msgbox BattleTower_Outside_Text_199E9C, 2
+ end
+
+BattleTower_Outside_EventScript_160275:: @ 8160275
+ msgbox BattleTower_Outside_Text_199ED4, 2
+ end
diff --git a/data/maps/CaveOfOrigin_1F/scripts.inc b/data/maps/CaveOfOrigin_1F/scripts.inc
new file mode 100644
index 000000000..58c6563f6
--- /dev/null
+++ b/data/maps/CaveOfOrigin_1F/scripts.inc
@@ -0,0 +1,7 @@
+CaveOfOrigin_1F_MapScripts:: @ 815DD6C
+ map_script 3, CaveOfOrigin_1F_MapScript1_15DD72
+ .byte 0
+
+CaveOfOrigin_1F_MapScript1_15DD72:: @ 815DD72
+ call_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, CaveOfOrigin_1F_EventScript_1A04E3
+ end
diff --git a/data/maps/CaveOfOrigin_B1F/scripts.inc b/data/maps/CaveOfOrigin_B1F/scripts.inc
new file mode 100644
index 000000000..c79eb088e
--- /dev/null
+++ b/data/maps/CaveOfOrigin_B1F/scripts.inc
@@ -0,0 +1,7 @@
+CaveOfOrigin_B1F_MapScripts:: @ 815DD7C
+ map_script 3, CaveOfOrigin_B1F_MapScript1_15DD82
+ .byte 0
+
+CaveOfOrigin_B1F_MapScript1_15DD82:: @ 815DD82
+ call_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, CaveOfOrigin_B1F_EventScript_1A04E3
+ end
diff --git a/data/maps/CaveOfOrigin_B2F/scripts.inc b/data/maps/CaveOfOrigin_B2F/scripts.inc
new file mode 100644
index 000000000..66b02ee9f
--- /dev/null
+++ b/data/maps/CaveOfOrigin_B2F/scripts.inc
@@ -0,0 +1,7 @@
+CaveOfOrigin_B2F_MapScripts:: @ 815DD8C
+ map_script 3, CaveOfOrigin_B2F_MapScript1_15DD92
+ .byte 0
+
+CaveOfOrigin_B2F_MapScript1_15DD92:: @ 815DD92
+ call_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, CaveOfOrigin_B2F_EventScript_1A04E3
+ end
diff --git a/data/maps/CaveOfOrigin_B3F/scripts.inc b/data/maps/CaveOfOrigin_B3F/scripts.inc
new file mode 100644
index 000000000..8084ceb43
--- /dev/null
+++ b/data/maps/CaveOfOrigin_B3F/scripts.inc
@@ -0,0 +1,7 @@
+CaveOfOrigin_B3F_MapScripts:: @ 815DD9C
+ map_script 3, CaveOfOrigin_B3F_MapScript1_15DDA2
+ .byte 0
+
+CaveOfOrigin_B3F_MapScript1_15DDA2:: @ 815DDA2
+ call_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, CaveOfOrigin_B3F_EventScript_1A04E3
+ end
diff --git a/data/maps/CaveOfOrigin_B4F/scripts.inc b/data/maps/CaveOfOrigin_B4F/scripts.inc
new file mode 100644
index 000000000..aeec7023f
--- /dev/null
+++ b/data/maps/CaveOfOrigin_B4F/scripts.inc
@@ -0,0 +1,97 @@
+CaveOfOrigin_B4F_MapScripts:: @ 815DDAC
+ map_script 5, CaveOfOrigin_B4F_MapScript1_15DDB7
+ map_script 3, CaveOfOrigin_B4F_MapScript1_15DDC5
+ .byte 0
+
+CaveOfOrigin_B4F_MapScript1_15DDB7:: @ 815DDB7
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, CaveOfOrigin_B4F_EventScript_15DDC1
+ end
+
+CaveOfOrigin_B4F_EventScript_15DDC1:: @ 815DDC1
+ removeobject 1
+ return
+
+CaveOfOrigin_B4F_MapScript1_15DDC5:: @ 815DDC5
+ .ifdef SAPPHIRE
+ setmaplayoutindex 163
+ .else
+ setmaplayoutindex 313
+ .endif
+ call CaveOfOrigin_B4F_EventScript_1A01B5
+ call_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, CaveOfOrigin_B4F_EventScript_1A04E3
+ end
+
+CaveOfOrigin_B4F_EventScript_15DDD7:: @ 815DDD7
+ lockall
+ applymovement 255, CaveOfOrigin_B4F_Movement_1A0841
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B4F03, 4
+ .else
+ msgbox CaveOfOrigin_B4F_Text_1B4FE4, 4
+ .endif
+ closemessage
+ setweather WEATHER_NONE
+ doweather
+ special WaitWeather
+ waitstate
+ playse SE_W197
+ setfieldeffectargument 0, 9
+ setfieldeffectargument 1, 13
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ waitfieldeffect FLDEFF_SPARKLE
+ .ifdef SAPPHIRE
+ setvar RESULT, 3
+ .else
+ setvar RESULT, 2
+ .endif
+ playse SE_TAMA
+ special sub_80818A4
+ waitstate
+ special sub_80818FC
+ waitstate
+ applymovement 1, CaveOfOrigin_B4F_Movement_15DE7D
+ waitmovement 0
+ delay 60
+ setwildbattle SPECIES_GROUDON_OR_KYOGRE, 45, ITEM_NONE
+ waitse
+ playmoncry SPECIES_GROUDON_OR_KYOGRE, 2
+ delay 40
+ waitmoncry
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ special ScrSpecial_StartGroudonKyogreBattle
+ waitstate
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ specialvar RESULT, GetBattleOutcome
+ compare RESULT, 1
+ call_if_eq CaveOfOrigin_B4F_EventScript_15DE73
+ setflag FLAG_HIDE_WALLACE_SOOTOPOLIS
+ setflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_1
+ setflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_2
+ clearflag FLAG_HIDE_WALLACE_SOOTOPOLIS_GYM
+ setvar VAR_CAVE_OF_ORIGIN_B4F_STATE, 1
+ setflag FLAG_LEGENDARY_BATTLE_COMPLETED
+ clearflag FLAG_HIDE_SOOTOPOLIS_RESIDENTS
+ clearflag FLAG_SYS_WEATHER_CTRL
+ setvar VAR_MT_PYRE_STATE, 2
+ clearflag FLAG_HIDE_LEADER_MT_PYRE_SUMMIT
+ releaseall
+ end
+
+CaveOfOrigin_B4F_EventScript_15DE73:: @ 815DE73
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B4F29, 4
+ .else
+ msgbox CaveOfOrigin_B4F_Text_1B5009, 4
+ .endif
+ closemessage
+ return
+
+CaveOfOrigin_B4F_Movement_15DE7D:: @ 815DE7D
+ init_affine_anim
+ walk_down_affine_0
+ delay_16
+ delay_16
+ walk_down_affine_1
+ end_movement
diff --git a/data/maps/CaveOfOrigin_Entrance/scripts.inc b/data/maps/CaveOfOrigin_Entrance/scripts.inc
new file mode 100644
index 000000000..68f91e0bd
--- /dev/null
+++ b/data/maps/CaveOfOrigin_Entrance/scripts.inc
@@ -0,0 +1,2 @@
+CaveOfOrigin_Entrance_MapScripts:: @ 815DD6B
+ .byte 0
diff --git a/data/maps/DesertRuins/scripts.inc b/data/maps/DesertRuins/scripts.inc
new file mode 100644
index 000000000..2627a8261
--- /dev/null
+++ b/data/maps/DesertRuins/scripts.inc
@@ -0,0 +1,68 @@
+DesertRuins_MapScripts:: @ 815CAF3
+ map_script 5, DesertRuins_MapScript1_15CB03
+ map_script 1, DesertRuins_MapScript1_15CB11
+ map_script 3, DesertRuins_MapScript1_15CB52
+ .byte 0
+
+DesertRuins_MapScript1_15CB03:: @ 815CB03
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, DesertRuins_EventScript_15CB0D
+ end
+
+DesertRuins_EventScript_15CB0D:: @ 815CB0D
+ removeobject LAST_TALKED
+ return
+
+DesertRuins_MapScript1_15CB11:: @ 815CB11
+ call_if_unset FLAG_SYS_BRAILLE_STRENGTH, DesertRuins_EventScript_15CB1B
+ end
+
+DesertRuins_EventScript_15CB1B:: @ 815CB1B
+ setmetatile 7, 19, 553, 1
+ setmetatile 8, 19, 553, 1
+ setmetatile 9, 19, 553, 1
+ setmetatile 7, 20, 565, 1
+ setmetatile 8, 20, 565, 1
+ setmetatile 9, 20, 565, 1
+ return
+
+DesertRuins_MapScript1_15CB52:: @ 815CB52
+ setflag FLAG_LANDMARK_DESERT_RUINS
+ end
+
+DesertRuins_EventScript_15CB56:: @ 815CB56
+ lockall
+ goto_if_set FLAG_SYS_BRAILLE_STRENGTH, DesertRuins_EventScript_15CB6D
+ braillemessage DesertRuins_Braille_1C54C8
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+DesertRuins_EventScript_15CB6D:: @ 815CB6D
+ msgbox DesertRuins_Text_1A13BE, 4
+ releaseall
+ end
+
+DesertRuins_EventScript_15CB77:: @ 815CB77
+ lockall
+ braillemessage DesertRuins_Braille_1C54C8
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+DesertRuins_EventScript_15CB85:: @ 815CB85
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_REGIROCK, 2
+ delay 40
+ waitmoncry
+ setwildbattle SPECIES_REGIROCK, 40, ITEM_NONE
+ setflag FLAG_HIDE_REGIROCK
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ special ScrSpecial_StartRegiBattle
+ waitstate
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ release
+ end
diff --git a/data/maps/DewfordTown/scripts.inc b/data/maps/DewfordTown/scripts.inc
new file mode 100644
index 000000000..63f8c45b9
--- /dev/null
+++ b/data/maps/DewfordTown/scripts.inc
@@ -0,0 +1,642 @@
+DewfordTown_MapScripts:: @ 814DFF8
+ map_script 3, DewfordTown_MapScript1_14DFFE
+ .byte 0
+
+DewfordTown_MapScript1_14DFFE:: @ 814DFFE
+ setflag FLAG_VISITED_DEWFORD_TOWN
+ end
+
+DewfordTown_EventScript_14E002:: @ 814E002
+ lock
+ faceplayer
+ goto_if_unset FLAG_DELIVERED_STEVEN_LETTER, DewfordTown_EventScript_14E076
+ message DewfordTown_Text_16B522
+ waitmessage
+ multichoicedefault 21, 6, 0, 2, 0
+ switch RESULT
+ case 0, DewfordTown_EventScript_14E04B
+ case 1, DewfordTown_EventScript_14E05B
+ case 2, DewfordTown_EventScript_14E06B
+ case 127, DewfordTown_EventScript_14E06B
+ end
+
+DewfordTown_EventScript_14E04B:: @ 814E04B
+ msgbox DewfordTown_Text_16B57D, 4
+ closemessage
+ goto DewfordTown_EventScript_14E151
+ release
+ end
+
+DewfordTown_EventScript_14E05B:: @ 814E05B
+ msgbox DewfordTown_Text_16B5D2, 4
+ closemessage
+ goto DewfordTown_EventScript_14E1D8
+ release
+ end
+
+DewfordTown_EventScript_14E06B:: @ 814E06B
+ msgbox DewfordTown_Text_16B627, 4
+ closemessage
+ release
+ end
+
+DewfordTown_EventScript_14E076:: @ 814E076
+ msgbox DewfordTown_Text_16B3BC, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq DewfordTown_EventScript_14E093
+ msgbox DewfordTown_Text_16B471, 4
+ release
+ end
+
+DewfordTown_EventScript_14E093:: @ 814E093
+ msgbox DewfordTown_Text_16B417, 4
+ closemessage
+ goto DewfordTown_EventScript_14E151
+ end
+
+DewfordTown_EventScript_14E0A2:: @ 814E0A2
+ msgbox DewfordTown_Text_16B23B, 2
+ end
+
+DewfordTown_EventScript_14E0AB:: @ 814E0AB
+ msgbox DewfordTown_Text_16B2A7, 3
+ end
+
+DewfordTown_EventScript_14E0B4:: @ 814E0B4
+ msgbox DewfordTown_Text_16B2D5, 3
+ end
+
+DewfordTown_EventScript_14E0BD:: @ 814E0BD
+ msgbox DewfordTown_Text_16B317, 3
+ end
+
+DewfordTown_EventScript_14E0C6:: @ 814E0C6
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_OLD_ROD, DewfordTown_EventScript_14E11B
+ msgbox DewfordTown_Text_16B665, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq DewfordTown_EventScript_14E0F0
+ compare RESULT, NO
+ goto_if_eq DewfordTown_EventScript_14E111
+ end
+
+DewfordTown_EventScript_14E0F0:: @ 814E0F0
+ msgbox DewfordTown_Text_16B6A8, 4
+ giveitem_std ITEM_OLD_ROD
+ setflag FLAG_RECEIVED_OLD_ROD
+ msgbox DewfordTown_Text_16B6F9, 4
+ release
+ end
+
+DewfordTown_EventScript_14E111:: @ 814E111
+ msgbox DewfordTown_Text_16B828, 4
+ release
+ end
+
+DewfordTown_EventScript_14E11B:: @ 814E11B
+ message DewfordTown_Text_16B84E
+ waitmessage
+ multichoice 20, 8, 50, 1
+ compare RESULT, 0
+ goto_if_eq DewfordTown_EventScript_14E13D
+ compare RESULT, 1
+ goto_if_eq DewfordTown_EventScript_14E147
+ end
+
+DewfordTown_EventScript_14E13D:: @ 814E13D
+ msgbox DewfordTown_Text_16B866, 4
+ release
+ end
+
+DewfordTown_EventScript_14E147:: @ 814E147
+ msgbox DewfordTown_Text_16B89A, 4
+ release
+ end
+
+DewfordTown_EventScript_14E151:: @ 814E151
+ call DewfordTown_EventScript_1A010C
+ setobjectpriority 2, MAP_DEWFORD_TOWN, 0
+ setobjectpriority 255, MAP_DEWFORD_TOWN, 0
+ applymovement 2, DewfordTown_Movement_14E40E
+ waitmovement 0
+ removeobject 2
+ applymovement 255, DewfordTown_Movement_14E402
+ waitmovement 0
+ hideobjectat 255, MAP_DEWFORD_TOWN
+ call DewfordTown_EventScript_1A02E7
+ applymovement 4, DewfordTown_Movement_14E293
+ applymovement 255, DewfordTown_Movement_14E293
+ waitmovement 0
+ showobjectat 255, MAP_ROUTE104
+ call DewfordTown_EventScript_1A02EF
+ applymovement 255, DewfordTown_Movement_14E405
+ waitmovement 0
+ showobjectat 255, MAP_ROUTE104
+ clearflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE
+ clearflag FLAG_HIDE_PEEKO_BRINEY_HOUSE
+ clearflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104
+ setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
+ hideobjectat 4, MAP_DEWFORD_TOWN
+ setvar VAR_BOARD_BRINEY_BOAT_ROUTE104_STATE, 2
+ resetobjectpriority 255, MAP_DEWFORD_TOWN
+ warp MAP_ROUTE104_MR_BRINEYS_HOUSE, 255, 5, 4
+ copyvar VAR_BRINEY_LOCATION, VAR_SPECIAL_8
+ waitstate
+ release
+ end
+
+DewfordTown_EventScript_14E1D8:: @ 814E1D8
+ call DewfordTown_EventScript_1A010C
+ setobjectpriority 2, MAP_DEWFORD_TOWN, 0
+ setobjectpriority 255, MAP_DEWFORD_TOWN, 1
+ applymovement 2, DewfordTown_Movement_14E40E
+ waitmovement 0
+ removeobject 2
+ applymovement 255, DewfordTown_Movement_14E402
+ waitmovement 0
+ hideobjectat 255, MAP_DEWFORD_TOWN
+ call DewfordTown_EventScript_1A02E7
+ applymovement 4, DewfordTown_Movement_14E356
+ applymovement 255, DewfordTown_Movement_14E356
+ waitmovement 0
+ call DewfordTown_EventScript_1A02EF
+ showobjectat 255, MAP_ROUTE109
+ applymovement 255, DewfordTown_Movement_14E409
+ waitmovement 0
+ setobjectxyperm 2, 21, 26
+ addobject 2
+ setobjectpriority 2, MAP_ROUTE109, 0
+ applymovement 2, DewfordTown_Movement_14E410
+ waitmovement 0
+ clearflag FLAG_HIDE_MR_BRINEY_ROUTE109
+ addobject 1
+ clearflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109
+ setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
+ hideobjectat 4, MAP_DEWFORD_TOWN
+ call_if_unset FLAG_DELIVERED_DEVON_GOODS, DewfordTown_EventScript_14E281
+ call_if_set FLAG_DELIVERED_DEVON_GOODS, DewfordTown_EventScript_14E28A
+ closemessage
+ copyvar VAR_BRINEY_LOCATION, VAR_SPECIAL_8
+ resetobjectpriority 255, MAP_DEWFORD_TOWN
+ resetobjectpriority 2, MAP_ROUTE109
+ moveobjectoffscreen 2
+ release
+ end
+
+DewfordTown_EventScript_14E281:: @ 814E281
+ msgbox DewfordTown_Text_16E080, 4
+ return
+
+DewfordTown_EventScript_14E28A:: @ 814E28A
+ msgbox DewfordTown_Text_16E1FA, 4
+ return
+
+DewfordTown_Movement_14E293:: @ 814E293
+ walk_up
+ walk_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_up
+ walk_up
+ walk_left
+ walk_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_left
+ walk_fast_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+DewfordTown_Movement_14E356:: @ 814E356
+ walk_right
+ walk_fast_right
+ walk_fast_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fastest_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+DewfordTown_Movement_14E402:: @ 814E402
+ walk_right
+ walk_up
+ end_movement
+
+DewfordTown_Movement_14E405:: @ 814E405
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+DewfordTown_Movement_14E409:: @ 814E409
+ walk_up
+ walk_up
+ walk_up
+ walk_in_place_fastest_down
+ end_movement
+
+DewfordTown_Movement_14E40E:: @ 814E40E
+ walk_up
+ end_movement
+
+DewfordTown_Movement_14E410:: @ 814E410
+ walk_up
+ walk_up
+ end_movement
+
+DewfordTown_EventScript_14E413:: @ 814E413
+ lock
+ faceplayer
+ call DewfordTown_EventScript_1A0102
+ msgbox DewfordTown_Text_16B9CE, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq DewfordTown_EventScript_14E439
+ compare RESULT, NO
+ goto_if_eq DewfordTown_EventScript_14E443
+ end
+
+DewfordTown_EventScript_14E439:: @ 814E439
+ msgbox DewfordTown_Text_16BD37, 4
+ release
+ end
+
+DewfordTown_EventScript_14E443:: @ 814E443
+ msgbox DewfordTown_Text_16BADC, 4
+ setvar VAR_SPECIAL_4, 9
+ call DewfordTown_EventScript_1A00F3
+ lock
+ faceplayer
+ compare RESULT, 1
+ goto_if_eq DewfordTown_EventScript_14E46E
+ compare RESULT, 0
+ goto_if_eq DewfordTown_EventScript_14E485
+ end
+
+DewfordTown_EventScript_14E46E:: @ 814E46E
+ incrementgamestat GAME_STAT_STARTED_TRENDS
+ compare VAR_SPECIAL_4, 0
+ goto_if_eq DewfordTown_EventScript_14E48F
+ msgbox DewfordTown_Text_16BB44, 4
+ release
+ end
+
+DewfordTown_EventScript_14E485:: @ 814E485
+ msgbox DewfordTown_Text_16BCE9, 4
+ release
+ end
+
+DewfordTown_EventScript_14E48F:: @ 814E48F
+ msgbox DewfordTown_Text_16BCA2, 4
+ release
+ end
+
+@ 814E499
+ msgbox DewfordTown_Text_16BD79, 4
+ release
+ end
diff --git a/data/maps/DewfordTown_Gym/scripts.inc b/data/maps/DewfordTown_Gym/scripts.inc
new file mode 100644
index 000000000..596f2c77f
--- /dev/null
+++ b/data/maps/DewfordTown_Gym/scripts.inc
@@ -0,0 +1,192 @@
+DewfordTown_Gym_MapScripts:: @ 8153065
+ map_script 3, DewfordTown_Gym_MapScript1_15306B
+ .byte 0
+
+DewfordTown_Gym_MapScript1_15306B:: @ 815306B
+ call DewfordTown_Gym_EventScript_153071
+ end
+
+DewfordTown_Gym_EventScript_153071:: @ 8153071
+ goto_if_trainer_defeated OPPONENT_BRAWLY, DewfordTown_Gym_EventScript_1530AA
+ call DewfordTown_Gym_EventScript_153122
+ copyvar VAR_SPECIAL_1, VAR_SPECIAL_0
+ compare VAR_SPECIAL_0, 0
+ goto_if_eq DewfordTown_Gym_EventScript_1530BA
+ compare VAR_SPECIAL_0, 1
+ goto_if_eq DewfordTown_Gym_EventScript_1530B6
+ compare VAR_SPECIAL_0, 2
+ goto_if_eq DewfordTown_Gym_EventScript_1530B2
+ goto DewfordTown_Gym_EventScript_1530AE
+
+DewfordTown_Gym_EventScript_1530AA:: @ 81530AA
+ setflashradius 0
+ return
+
+DewfordTown_Gym_EventScript_1530AE:: @ 81530AE
+ setflashradius 1
+ return
+
+DewfordTown_Gym_EventScript_1530B2:: @ 81530B2
+ setflashradius 2
+ return
+
+DewfordTown_Gym_EventScript_1530B6:: @ 81530B6
+ setflashradius 3
+ return
+
+DewfordTown_Gym_EventScript_1530BA:: @ 81530BA
+ setflashradius 4
+ return
+
+DewfordTown_Gym_EventScript_1530BE:: @ 81530BE
+ call DewfordTown_Gym_EventScript_153122
+ nop1
+ compare VAR_SPECIAL_0, VAR_SPECIAL_1
+ goto_if_eq DewfordTown_Gym_EventScript_1530F5
+ copyvar VAR_SPECIAL_1, VAR_SPECIAL_0
+ compare VAR_SPECIAL_0, 1
+ goto_if_eq DewfordTown_Gym_EventScript_1530F6
+ compare VAR_SPECIAL_0, 2
+ goto_if_eq DewfordTown_Gym_EventScript_153101
+ compare VAR_SPECIAL_0, 3
+ goto_if_eq DewfordTown_Gym_EventScript_15310C
+
+DewfordTown_Gym_EventScript_1530F5:: @ 81530F5
+ return
+
+DewfordTown_Gym_EventScript_1530F6:: @ 81530F6
+ playse SE_MU_PACHI
+ animateflash 3
+ call DewfordTown_Gym_EventScript_153071
+ return
+
+DewfordTown_Gym_EventScript_153101:: @ 8153101
+ playse SE_MU_PACHI
+ animateflash 2
+ call DewfordTown_Gym_EventScript_153071
+ return
+
+DewfordTown_Gym_EventScript_15310C:: @ 815310C
+ playse SE_MU_PACHI
+ animateflash 1
+ call DewfordTown_Gym_EventScript_153071
+ return
+
+DewfordTown_Gym_EventScript_153117:: @ 8153117
+ playse SE_MU_PACHI
+ animateflash 0
+ call DewfordTown_Gym_EventScript_153071
+ return
+
+DewfordTown_Gym_EventScript_153122:: @ 8153122
+ setvar VAR_SPECIAL_0, 0
+ goto_if_trainer_not_defeated OPPONENT_HIDEKI, DewfordTown_Gym_EventScript_153135
+ addvar VAR_SPECIAL_0, 1
+
+DewfordTown_Gym_EventScript_153135:: @ 8153135
+ goto_if_trainer_not_defeated OPPONENT_TESSA, DewfordTown_Gym_EventScript_153143
+ addvar VAR_SPECIAL_0, 1
+
+DewfordTown_Gym_EventScript_153143:: @ 8153143
+ goto_if_trainer_not_defeated OPPONENT_LAURA, DewfordTown_Gym_EventScript_153151
+ addvar VAR_SPECIAL_0, 1
+
+DewfordTown_Gym_EventScript_153151:: @ 8153151
+ return
+
+DewfordTown_Gym_EventScript_153152:: @ 8153152
+ trainerbattle 1, OPPONENT_BRAWLY, 0, DewfordTown_Gym_Text_175182, DewfordTown_Gym_Text_175246, DewfordTown_Gym_EventScript_153177
+ goto_if_unset FLAG_RECEIVED_TM08, DewfordTown_Gym_EventScript_1531B5
+ msgbox DewfordTown_Gym_Text_175412, 4
+ release
+ end
+
+DewfordTown_Gym_EventScript_153177:: @ 8153177
+ call DewfordTown_Gym_EventScript_153117
+ message DewfordTown_Gym_Text_1752BB
+ waitmessage
+ call DewfordTown_Gym_EventScript_1A02C5
+ msgbox DewfordTown_Gym_Text_1752E6, 4
+ setflag FLAG_DEFEATED_DEWFORD_GYM
+ setflag FLAG_BADGE02_GET
+ addvar VAR_PETALBURG_GYM_STATE, 1
+ compare VAR_PETALBURG_GYM_STATE, 6
+ call_if_eq DewfordTown_Gym_EventScript_1A00FB
+ setvar VAR_SPECIAL_8, 2
+ call DewfordTown_Gym_EventScript_1A01C0
+ goto DewfordTown_Gym_EventScript_1531B5
+ end
+
+DewfordTown_Gym_EventScript_1531B5:: @ 81531B5
+ giveitem_std ITEM_TM08_BULK_UP
+ compare RESULT, 0
+ goto_if_eq DewfordTown_Gym_EventScript_1A029B
+ msgbox DewfordTown_Gym_Text_1753BF, 4
+ setflag FLAG_RECEIVED_TM08
+ release
+ end
+
+DewfordTown_Gym_EventScript_1531D9:: @ 81531D9
+ trainerbattle 2, OPPONENT_HIDEKI, 0, DewfordTown_Gym_Text_174F61, DewfordTown_Gym_Text_174F7A, DewfordTown_Gym_EventScript_1531F4
+ msgbox DewfordTown_Gym_Text_174F8E, 6
+ end
+
+DewfordTown_Gym_EventScript_1531F4:: @ 81531F4
+ call DewfordTown_Gym_EventScript_1530BE
+ release
+ end
+
+DewfordTown_Gym_EventScript_1531FB:: @ 81531FB
+ trainerbattle 2, OPPONENT_TESSA, 0, DewfordTown_Gym_Text_174FCE, DewfordTown_Gym_Text_175009, DewfordTown_Gym_EventScript_153216
+ msgbox DewfordTown_Gym_Text_175031, 6
+ end
+
+DewfordTown_Gym_EventScript_153216:: @ 8153216
+ call DewfordTown_Gym_EventScript_1530BE
+ release
+ end
+
+DewfordTown_Gym_EventScript_15321D:: @ 815321D
+ trainerbattle 2, OPPONENT_LAURA, 0, DewfordTown_Gym_Text_1750C9, DewfordTown_Gym_Text_175104, DewfordTown_Gym_EventScript_153238
+ msgbox DewfordTown_Gym_Text_175117, 6
+ end
+
+DewfordTown_Gym_EventScript_153238:: @ 8153238
+ call DewfordTown_Gym_EventScript_1530BE
+ release
+ end
+
+DewfordTown_Gym_EventScript_15323F:: @ 815323F
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_DEWFORD_GYM, DewfordTown_Gym_EventScript_153254
+ msgbox DewfordTown_Gym_Text_174D98, 4
+ release
+ end
+
+DewfordTown_Gym_EventScript_153254:: @ 8153254
+ msgbox DewfordTown_Gym_Text_174F1E, 4
+ release
+ end
+
+DewfordTown_Gym_EventScript_15325E:: @ 815325E
+ lockall
+ goto_if_set FLAG_BADGE02_GET, DewfordTown_Gym_EventScript_15327E
+ goto DewfordTown_Gym_EventScript_153288
+ end
+
+DewfordTown_Gym_EventScript_15326E:: @ 815326E
+ lockall
+ goto_if_set FLAG_BADGE02_GET, DewfordTown_Gym_EventScript_15327E
+ goto DewfordTown_Gym_EventScript_153288
+ end
+
+DewfordTown_Gym_EventScript_15327E:: @ 815327E
+ msgbox DewfordTown_Gym_Text_175490, 4
+ releaseall
+ end
+
+DewfordTown_Gym_EventScript_153288:: @ 8153288
+ msgbox DewfordTown_Gym_Text_175477, 4
+ releaseall
+ end
diff --git a/data/maps/DewfordTown_Hall/scripts.inc b/data/maps/DewfordTown_Hall/scripts.inc
new file mode 100644
index 000000000..602c4776e
--- /dev/null
+++ b/data/maps/DewfordTown_Hall/scripts.inc
@@ -0,0 +1,267 @@
+DewfordTown_Hall_MapScripts:: @ 8153292
+ .byte 0
+
+DewfordTown_Hall_EventScript_153293:: @ 8153293
+ lock
+ faceplayer
+ call DewfordTown_Hall_EventScript_1A0102
+ special TrendyPhraseIsOld
+ compare RESULT, 1
+ goto_if_eq DewfordTown_Hall_EventScript_1532B2
+ msgbox DewfordTown_Hall_Text_1754C9, 4
+ release
+ end
+
+DewfordTown_Hall_EventScript_1532B2:: @ 81532B2
+ msgbox DewfordTown_Hall_Text_175528, 4
+ release
+ end
+
+DewfordTown_Hall_EventScript_1532BC:: @ 81532BC
+ lock
+ faceplayer
+ call DewfordTown_Hall_EventScript_1A0102
+ msgbox DewfordTown_Hall_Text_17559E, 4
+ release
+ end
+
+DewfordTown_Hall_EventScript_1532CD:: @ 81532CD
+ lock
+ faceplayer
+ call DewfordTown_Hall_EventScript_1A0102
+ special BufferRandomHobbyOrLifestyleString
+ msgbox DewfordTown_Hall_Text_1755F9, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq DewfordTown_Hall_EventScript_1532F6
+ compare RESULT, NO
+ goto_if_eq DewfordTown_Hall_EventScript_153300
+ end
+
+DewfordTown_Hall_EventScript_1532F6:: @ 81532F6
+ msgbox DewfordTown_Hall_Text_175664, 4
+ release
+ end
+
+DewfordTown_Hall_EventScript_153300:: @ 8153300
+ msgbox DewfordTown_Hall_Text_1756B7, 4
+ release
+ end
+
+DewfordTown_Hall_EventScript_15330A:: @ 815330A
+ lock
+ faceplayer
+ call DewfordTown_Hall_EventScript_1A0102
+ msgbox DewfordTown_Hall_Text_17570D, 4
+ closemessage
+ applymovement 4, DewfordTown_Hall_Movement_1A0841
+ waitmovement 0
+ release
+ end
+
+DewfordTown_Hall_EventScript_153326:: @ 8153326
+ lock
+ faceplayer
+ call DewfordTown_Hall_EventScript_1A0102
+ msgbox DewfordTown_Hall_Text_17574C, 4
+ closemessage
+ applymovement 5, DewfordTown_Hall_Movement_1A0841
+ waitmovement 0
+ release
+ end
+
+DewfordTown_Hall_EventScript_153342:: @ 8153342
+ lock
+ faceplayer
+ call DewfordTown_Hall_EventScript_1A0102
+ msgbox DewfordTown_Hall_Text_175779, 4
+ release
+ end
+
+DewfordTown_Hall_EventScript_153353:: @ 8153353
+ lockall
+ call DewfordTown_Hall_EventScript_1A0102
+ msgbox DewfordTown_Hall_Text_175842, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_153363:: @ 8153363
+ lockall
+ call DewfordTown_Hall_EventScript_1A0102
+ special GetDewfordHallPaintingNameIndex
+ switch RESULT
+ case 0, DewfordTown_Hall_EventScript_1533CA
+ case 4, DewfordTown_Hall_EventScript_1533CA
+ case 1, DewfordTown_Hall_EventScript_1533D4
+ case 5, DewfordTown_Hall_EventScript_1533CA
+ case 2, DewfordTown_Hall_EventScript_1533DE
+ case 6, DewfordTown_Hall_EventScript_1533DE
+ case 3, DewfordTown_Hall_EventScript_1533E8
+ case 7, DewfordTown_Hall_EventScript_1533DE
+ end
+
+DewfordTown_Hall_EventScript_1533CA:: @ 81533CA
+ msgbox DewfordTown_Hall_Text_1758C4, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_1533D4:: @ 81533D4
+ msgbox DewfordTown_Hall_Text_1758E0, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_1533DE:: @ 81533DE
+ msgbox DewfordTown_Hall_Text_1758FB, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_1533E8:: @ 81533E8
+ msgbox DewfordTown_Hall_Text_175916, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_1533F2:: @ 81533F2
+ lockall
+ setvar VAR_SPECIAL_8, 0
+ goto DewfordTown_Hall_EventScript_15340A
+ end
+
+DewfordTown_Hall_EventScript_1533FE:: @ 81533FE
+ lockall
+ setvar VAR_SPECIAL_8, 1
+ goto DewfordTown_Hall_EventScript_15340A
+ end
+
+DewfordTown_Hall_EventScript_15340A:: @ 815340A
+ call DewfordTown_Hall_EventScript_1A0102
+ special GetDewfordHallPaintingNameIndex
+ switch RESULT
+ case 0, DewfordTown_Hall_EventScript_153470
+ case 1, DewfordTown_Hall_EventScript_153470
+ case 2, DewfordTown_Hall_EventScript_15348C
+ case 3, DewfordTown_Hall_EventScript_15348C
+ case 4, DewfordTown_Hall_EventScript_1534A8
+ case 5, DewfordTown_Hall_EventScript_1534A8
+ case 6, DewfordTown_Hall_EventScript_1534C4
+ case 7, DewfordTown_Hall_EventScript_1534E0
+ end
+
+DewfordTown_Hall_EventScript_153470:: @ 8153470
+ call DewfordTown_Hall_EventScript_1534FD
+ msgbox DewfordTown_Hall_Text_175935, 4
+ call DewfordTown_Hall_EventScript_153535
+ msgbox DewfordTown_Hall_Text_1759A1, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_15348C:: @ 815348C
+ call DewfordTown_Hall_EventScript_1534FD
+ msgbox DewfordTown_Hall_Text_175A5C, 4
+ call DewfordTown_Hall_EventScript_153535
+ msgbox DewfordTown_Hall_Text_175AD9, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_1534A8:: @ 81534A8
+ call DewfordTown_Hall_EventScript_1534FD
+ msgbox DewfordTown_Hall_Text_175B46, 4
+ call DewfordTown_Hall_EventScript_153535
+ msgbox DewfordTown_Hall_Text_175BA7, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_1534C4:: @ 81534C4
+ call DewfordTown_Hall_EventScript_1534FD
+ msgbox DewfordTown_Hall_Text_175C41, 4
+ call DewfordTown_Hall_EventScript_153535
+ msgbox DewfordTown_Hall_Text_175CC2, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_1534E0:: @ 81534E0
+ call DewfordTown_Hall_EventScript_1534FD
+ msgbox DewfordTown_Hall_Text_175D6B, 4
+ call DewfordTown_Hall_EventScript_153535
+ msgbox DewfordTown_Hall_Text_175DC3, 4
+ releaseall
+ end
+
+DewfordTown_Hall_EventScript_1534FC:: @ 81534FC
+ return
+
+DewfordTown_Hall_EventScript_1534FD:: @ 81534FD
+ applymovement 8, DewfordTown_Hall_Movement_153599
+ waitmovement 0
+ compare VAR_SPECIAL_8, 0
+ goto_if_eq DewfordTown_Hall_EventScript_15351E
+ compare VAR_SPECIAL_8, 1
+ goto_if_eq DewfordTown_Hall_EventScript_153534
+ end
+
+DewfordTown_Hall_EventScript_15351E:: @ 815351E
+ compare FACING, 4
+ goto_if_eq DewfordTown_Hall_EventScript_1534FC
+ applymovement 255, DewfordTown_Hall_Movement_1A0843
+ waitmovement 0
+ return
+
+DewfordTown_Hall_EventScript_153534:: @ 8153534
+ return
+
+DewfordTown_Hall_EventScript_153535:: @ 8153535
+ applymovement 7, DewfordTown_Hall_Movement_15359B
+ waitmovement 0
+ compare VAR_SPECIAL_8, 0
+ goto_if_eq DewfordTown_Hall_EventScript_153556
+ compare VAR_SPECIAL_8, 1
+ goto_if_eq DewfordTown_Hall_EventScript_153583
+ end
+
+DewfordTown_Hall_EventScript_153556:: @ 8153556
+ compare FACING, 2
+ call_if_eq DewfordTown_Hall_EventScript_15356D
+ compare FACING, 1
+ call_if_eq DewfordTown_Hall_EventScript_153578
+ return
+
+DewfordTown_Hall_EventScript_15356D:: @ 815356D
+ applymovement 255, DewfordTown_Hall_Movement_1A0841
+ waitmovement 0
+ return
+
+DewfordTown_Hall_EventScript_153578:: @ 8153578
+ applymovement 255, DewfordTown_Hall_Movement_1A0845
+ waitmovement 0
+ return
+
+DewfordTown_Hall_EventScript_153583:: @ 8153583
+ compare FACING, 3
+ goto_if_eq DewfordTown_Hall_EventScript_1534FC
+ applymovement 255, DewfordTown_Hall_Movement_1A083F
+ waitmovement 0
+ return
+
+DewfordTown_Hall_Movement_153599:: @ 8153599
+ walk_in_place_left
+ end_movement
+
+DewfordTown_Hall_Movement_15359B:: @ 815359B
+ walk_in_place_right
+ end_movement
+
+DewfordTown_Hall_EventScript_15359D:: @ 815359D
+ lock
+ faceplayer
+ call DewfordTown_Hall_EventScript_1A0102
+ goto_if_set FLAG_RECEIVED_TM36, DewfordTown_Hall_EventScript_1535D1
+ msgbox DewfordTown_Hall_Text_175E13, 4
+ giveitem_std ITEM_TM36_SLUDGE_BOMB
+ compare RESULT, 0
+ goto_if_eq DewfordTown_Hall_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM36
+ release
+ end
+
+DewfordTown_Hall_EventScript_1535D1:: @ 81535D1
+ msgbox DewfordTown_Hall_Text_175EBE, 4
+ release
+ end
diff --git a/data/maps/DewfordTown_House1/scripts.inc b/data/maps/DewfordTown_House1/scripts.inc
new file mode 100644
index 000000000..4a112eea2
--- /dev/null
+++ b/data/maps/DewfordTown_House1/scripts.inc
@@ -0,0 +1,20 @@
+DewfordTown_House1_MapScripts:: @ 8152FEE
+ .byte 0
+
+DewfordTown_House1_EventScript_152FEF:: @ 8152FEF
+ msgbox DewfordTown_House1_Text_174BA5, 2
+ end
+
+DewfordTown_House1_EventScript_152FF8:: @ 8152FF8
+ msgbox DewfordTown_House1_Text_174C0D, 2
+ end
+
+DewfordTown_House1_EventScript_153001:: @ 8153001
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_ZIGZAGOON, 0
+ msgbox DewfordTown_House1_Text_174CC8, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/DewfordTown_House2/scripts.inc b/data/maps/DewfordTown_House2/scripts.inc
new file mode 100644
index 000000000..a2341bc76
--- /dev/null
+++ b/data/maps/DewfordTown_House2/scripts.inc
@@ -0,0 +1,28 @@
+DewfordTown_House2_MapScripts:: @ 81535DB
+ .byte 0
+
+DewfordTown_House2_EventScript_1535DC:: @ 81535DC
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_SILK_SCARF, DewfordTown_House2_EventScript_153615
+ msgbox DewfordTown_House2_Text_175EFE, 4
+ giveitem_std ITEM_SILK_SCARF
+ compare RESULT, 0
+ goto_if_eq DewfordTown_House2_EventScript_15360B
+ setflag FLAG_RECEIVED_SILK_SCARF
+ release
+ end
+
+DewfordTown_House2_EventScript_15360B:: @ 815360B
+ msgbox DewfordTown_House2_Text_175FDA, 4
+ release
+ end
+
+DewfordTown_House2_EventScript_153615:: @ 8153615
+ msgbox DewfordTown_House2_Text_176055, 4
+ release
+ end
+
+DewfordTown_House2_EventScript_15361F:: @ 815361F
+ msgbox DewfordTown_House2_Text_1760C8, 2
+ end
diff --git a/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc b/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..33d14e770
--- /dev/null
+++ b/data/maps/DewfordTown_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,24 @@
+DewfordTown_PokemonCenter_1F_MapScripts:: @ 8153014
+ map_script 3, DewfordTown_PokemonCenter_1F_MapScript1_15301A
+ .byte 0
+
+DewfordTown_PokemonCenter_1F_MapScript1_15301A:: @ 815301A
+ setrespawn 15
+ call DewfordTown_PokemonCenter_1F_EventScript_19FD1B
+ end
+
+DewfordTown_PokemonCenter_1F_EventScript_153023:: @ 8153023
+ setvar VAR_SPECIAL_B, 1
+ call DewfordTown_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+DewfordTown_PokemonCenter_1F_EventScript_153031:: @ 8153031
+ msgbox DewfordTown_PokemonCenter_1F_Text_174CDB, 2
+ end
+
+DewfordTown_PokemonCenter_1F_EventScript_15303A:: @ 815303A
+ msgbox DewfordTown_PokemonCenter_1F_Text_174D32, 2
+ end
diff --git a/data/maps/DewfordTown_PokemonCenter_2F/scripts.inc b/data/maps/DewfordTown_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..554c9ef6b
--- /dev/null
+++ b/data/maps/DewfordTown_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+DewfordTown_PokemonCenter_2F_MapScripts:: @ 8153043
+ map_script 2, DewfordTown_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, DewfordTown_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, DewfordTown_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+DewfordTown_PokemonCenter_2F_EventScript_153053:: @ 8153053
+ call DewfordTown_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+DewfordTown_PokemonCenter_2F_EventScript_153059:: @ 8153059
+ call DewfordTown_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+DewfordTown_PokemonCenter_2F_EventScript_15305F:: @ 815305F
+ call DewfordTown_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/DoubleBattleColosseum/scripts.inc b/data/maps/DoubleBattleColosseum/scripts.inc
new file mode 100644
index 000000000..9bc33e6bd
--- /dev/null
+++ b/data/maps/DoubleBattleColosseum/scripts.inc
@@ -0,0 +1,2 @@
+DoubleBattleColosseum_MapScripts:: @ 815F57F
+ .byte 0
diff --git a/data/maps/EverGrandeCity/scripts.inc b/data/maps/EverGrandeCity/scripts.inc
new file mode 100644
index 000000000..293780716
--- /dev/null
+++ b/data/maps/EverGrandeCity/scripts.inc
@@ -0,0 +1,24 @@
+EverGrandeCity_MapScripts:: @ 814D4D5
+ map_script 3, EverGrandeCity_MapScript1_14D4DB
+ .byte 0
+
+EverGrandeCity_MapScript1_14D4DB:: @ 814D4DB
+ call_if_set FLAG_SYS_WEATHER_CTRL, EverGrandeCity_EventScript_1A02C1
+ end
+
+EverGrandeCity_EventScript_14D4E5:: @ 814D4E5
+ msgbox EverGrandeCity_Text_16A74D, 3
+ end
+
+EverGrandeCity_EventScript_14D4EE:: @ 814D4EE
+ msgbox EverGrandeCity_Text_16A787, 3
+ end
+
+EverGrandeCity_EventScript_14D4F7:: @ 814D4F7
+ msgbox EverGrandeCity_Text_16A763, 3
+ end
+
+EverGrandeCity_EventScript_14D500:: @ 814D500
+ setflag FLAG_VISITED_EVER_GRANDE_CITY
+ setvar VAR_TEMP_1, 1
+ end
diff --git a/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc b/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
new file mode 100644
index 000000000..a4406c8e6
--- /dev/null
+++ b/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
@@ -0,0 +1,226 @@
+EverGrandeCity_ChampionsRoom_MapScripts:: @ 815B7AF
+ map_script 3, EverGrandeCity_ChampionsRoom_MapScript1_15B7BF
+ map_script 4, EverGrandeCity_ChampionsRoom_MapScript2_15B7C5
+ map_script 2, EverGrandeCity_ChampionsRoom_MapScript2_15B7D4
+ .byte 0
+
+EverGrandeCity_ChampionsRoom_MapScript1_15B7BF:: @ 815B7BF
+ call EverGrandeCity_ChampionsRoom_EventScript_1A014E
+ end
+
+EverGrandeCity_ChampionsRoom_MapScript2_15B7C5:: @ 815B7C5
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_ChampionsRoom_EventScript_15B7CF
+ .2byte 0
+
+EverGrandeCity_ChampionsRoom_EventScript_15B7CF:: @ 815B7CF
+ turnobject 255, 2
+ end
+
+EverGrandeCity_ChampionsRoom_MapScript2_15B7D4:: @ 815B7D4
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_ChampionsRoom_EventScript_15B7DE
+ .2byte 0
+
+EverGrandeCity_ChampionsRoom_EventScript_15B7DE:: @ 815B7DE
+ lockall
+ applymovement 255, EverGrandeCity_ChampionsRoom_Movement_1A084E
+ waitmovement 0
+ delay 40
+ applymovement 255, EverGrandeCity_ChampionsRoom_Movement_15B802
+ waitmovement 0
+ setvar VAR_TEMP_1, 1
+ goto EverGrandeCity_ChampionsRoom_EventScript_15B805
+ releaseall
+ end
+
+EverGrandeCity_ChampionsRoom_Movement_15B802:: @ 815B802
+ walk_up
+ walk_up
+ end_movement
+
+EverGrandeCity_ChampionsRoom_EventScript_15B805:: @ 815B805
+ playbgm BGM_DAIGO, FALSE
+ msgbox EverGrandeCity_ChampionsRoom_Text_190F9C, 4
+ trainerbattle 3, OPPONENT_STEVEN, 0, EverGrandeCity_ChampionsRoom_Text_1910A0
+ goto EverGrandeCity_ChampionsRoom_EventScript_15B821
+ end
+
+EverGrandeCity_ChampionsRoom_EventScript_15B821:: @ 815B821
+ playse SE_DOOR
+ setmetatile 6, 1, 838, 0
+ setmetatile 6, 2, 839, 0
+ special DrawWholeMapView
+ msgbox EverGrandeCity_ChampionsRoom_Text_1910FE, 4
+ closemessage
+ playse SE_DOOR
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq EverGrandeCity_ChampionsRoom_EventScript_15B87C
+ compare RESULT, 1
+ call_if_eq EverGrandeCity_ChampionsRoom_EventScript_15B881
+ addobject 2
+ call EverGrandeCity_ChampionsRoom_EventScript_15B9BD
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_15B886
+ compare RESULT, 1
+ goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_15B8BB
+ end
+
+EverGrandeCity_ChampionsRoom_EventScript_15B87C:: @ 815B87C
+ playbgm BGM_GIRL_SUP, FALSE
+ return
+
+EverGrandeCity_ChampionsRoom_EventScript_15B881:: @ 815B881
+ playbgm BGM_BOY_SUP, FALSE
+ return
+
+EverGrandeCity_ChampionsRoom_EventScript_15B886:: @ 815B886
+ msgbox EverGrandeCity_ChampionsRoom_Text_191225, 4
+ delay 40
+ playse SE_PIN
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_1A0833
+ waitmovement 0
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_1A0835
+ waitmovement 0
+ call EverGrandeCity_ChampionsRoom_EventScript_15B9D2
+ msgbox EverGrandeCity_ChampionsRoom_Text_191268, 4
+ goto EverGrandeCity_ChampionsRoom_EventScript_15B8F0
+ end
+
+EverGrandeCity_ChampionsRoom_EventScript_15B8BB:: @ 815B8BB
+ msgbox EverGrandeCity_ChampionsRoom_Text_1912B3, 4
+ delay 40
+ playse SE_PIN
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_1A0833
+ waitmovement 0
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_1A0835
+ waitmovement 0
+ call EverGrandeCity_ChampionsRoom_EventScript_15B9D2
+ msgbox EverGrandeCity_ChampionsRoom_Text_191305, 4
+ goto EverGrandeCity_ChampionsRoom_EventScript_15B8F0
+ end
+
+EverGrandeCity_ChampionsRoom_EventScript_15B8F0:: @ 815B8F0
+ closemessage
+ addobject 3
+ applymovement 3, EverGrandeCity_ChampionsRoom_Movement_15BA03
+ waitmovement 0
+ applymovement 255, EverGrandeCity_ChampionsRoom_Movement_1A0843
+ waitmovement 0
+ msgbox EverGrandeCity_ChampionsRoom_Text_19134D, 4
+ call EverGrandeCity_ChampionsRoom_EventScript_1A03B0
+ msgbox EverGrandeCity_ChampionsRoom_Text_1914C6, 4
+ applymovement 1, EverGrandeCity_ChampionsRoom_Movement_1A0841
+ waitmovement 0
+ delay 20
+ applymovement 1, EverGrandeCity_ChampionsRoom_Movement_1A0845
+ waitmovement 0
+ msgbox EverGrandeCity_ChampionsRoom_Text_191512, 4
+ closemessage
+ delay 30
+ applymovement 1, EverGrandeCity_ChampionsRoom_Movement_15B9FB
+ applymovement 255, EverGrandeCity_ChampionsRoom_Movement_15B9DD
+ applymovement 3, EverGrandeCity_ChampionsRoom_Movement_1A0841
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_15B9F8
+ waitmovement 0
+ delay 20
+ applymovement 255, EverGrandeCity_ChampionsRoom_Movement_1A0845
+ waitmovement 0
+ msgbox EverGrandeCity_ChampionsRoom_Text_191546, 4
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq EverGrandeCity_ChampionsRoom_EventScript_15B9AB
+ compare RESULT, 1
+ call_if_eq EverGrandeCity_ChampionsRoom_EventScript_15B9B4
+ closemessage
+ applymovement 1, EverGrandeCity_ChampionsRoom_Movement_15B9FF
+ applymovement 255, EverGrandeCity_ChampionsRoom_Movement_15B9E0
+ waitmovement 0
+ setflag FLAG_HIDE_PETALBURG_GYM_GUIDE
+ warp MAP_EVER_GRANDE_CITY_HALL_OF_FAME, 255, 7, 16
+ waitstate
+ releaseall
+ end
+
+EverGrandeCity_ChampionsRoom_EventScript_15B9AB:: @ 815B9AB
+ msgbox EverGrandeCity_ChampionsRoom_Text_1915D7, 4
+ return
+
+EverGrandeCity_ChampionsRoom_EventScript_15B9B4:: @ 815B9B4
+ msgbox EverGrandeCity_ChampionsRoom_Text_191675, 4
+ return
+
+EverGrandeCity_ChampionsRoom_EventScript_15B9BD:: @ 815B9BD
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_15B9E6
+ waitmovement 0
+ applymovement 255, EverGrandeCity_ChampionsRoom_Movement_1A083F
+ waitmovement 0
+ return
+
+EverGrandeCity_ChampionsRoom_EventScript_15B9D2:: @ 815B9D2
+ applymovement 2, EverGrandeCity_ChampionsRoom_Movement_15B9EF
+ waitmovement 0
+ return
+
+EverGrandeCity_ChampionsRoom_Movement_15B9DD:: @ 815B9DD
+ walk_up
+ walk_up
+ end_movement
+
+EverGrandeCity_ChampionsRoom_Movement_15B9E0:: @ 815B9E0
+ walk_up
+ delay_16
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+EverGrandeCity_ChampionsRoom_Movement_15B9E6:: @ 815B9E6
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_left
+ walk_up
+ walk_in_place_fastest_right
+ end_movement
+
+EverGrandeCity_ChampionsRoom_Movement_15B9EF:: @ 815B9EF
+ walk_in_place_fastest_up
+ delay_16
+ walk_in_place_fastest_right
+ delay_16
+ walk_in_place_fastest_up
+ delay_8
+ walk_in_place_fastest_right
+ delay_16
+ end_movement
+
+EverGrandeCity_ChampionsRoom_Movement_15B9F8:: @ 815B9F8
+ walk_right
+ walk_up
+ end_movement
+
+EverGrandeCity_ChampionsRoom_Movement_15B9FB:: @ 815B9FB
+ walk_up
+ walk_up
+ walk_in_place_fastest_down
+ end_movement
+
+EverGrandeCity_ChampionsRoom_Movement_15B9FF:: @ 815B9FF
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+EverGrandeCity_ChampionsRoom_Movement_15BA03:: @ 815BA03
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_right
+ walk_up
+ walk_in_place_fastest_left
+ end_movement
diff --git a/data/maps/EverGrandeCity_Corridor1/scripts.inc b/data/maps/EverGrandeCity_Corridor1/scripts.inc
new file mode 100644
index 000000000..60d1f7253
--- /dev/null
+++ b/data/maps/EverGrandeCity_Corridor1/scripts.inc
@@ -0,0 +1,11 @@
+EverGrandeCity_Corridor1_MapScripts:: @ 815BA0C
+ map_script 4, EverGrandeCity_Corridor1_MapScript2_15BA12
+ .byte 0
+
+EverGrandeCity_Corridor1_MapScript2_15BA12:: @ 815BA12
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_Corridor1_EventScript_15BA1C
+ .2byte 0
+
+EverGrandeCity_Corridor1_EventScript_15BA1C:: @ 815BA1C
+ turnobject 255, 2
+ end
diff --git a/data/maps/EverGrandeCity_Corridor2/scripts.inc b/data/maps/EverGrandeCity_Corridor2/scripts.inc
new file mode 100644
index 000000000..d74be91c4
--- /dev/null
+++ b/data/maps/EverGrandeCity_Corridor2/scripts.inc
@@ -0,0 +1,11 @@
+EverGrandeCity_Corridor2_MapScripts:: @ 815BA21
+ map_script 4, EverGrandeCity_Corridor2_MapScript2_15BA27
+ .byte 0
+
+EverGrandeCity_Corridor2_MapScript2_15BA27:: @ 815BA27
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_Corridor2_EventScript_15BA31
+ .2byte 0
+
+EverGrandeCity_Corridor2_EventScript_15BA31:: @ 815BA31
+ turnobject 255, 2
+ end
diff --git a/data/maps/EverGrandeCity_Corridor3/scripts.inc b/data/maps/EverGrandeCity_Corridor3/scripts.inc
new file mode 100644
index 000000000..006e570ef
--- /dev/null
+++ b/data/maps/EverGrandeCity_Corridor3/scripts.inc
@@ -0,0 +1,11 @@
+EverGrandeCity_Corridor3_MapScripts:: @ 815BA36
+ map_script 4, EverGrandeCity_Corridor3_MapScript2_15BA3C
+ .byte 0
+
+EverGrandeCity_Corridor3_MapScript2_15BA3C:: @ 815BA3C
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_Corridor3_EventScript_15BA46
+ .2byte 0
+
+EverGrandeCity_Corridor3_EventScript_15BA46:: @ 815BA46
+ turnobject 255, 2
+ end
diff --git a/data/maps/EverGrandeCity_Corridor4/scripts.inc b/data/maps/EverGrandeCity_Corridor4/scripts.inc
new file mode 100644
index 000000000..2ae857aa8
--- /dev/null
+++ b/data/maps/EverGrandeCity_Corridor4/scripts.inc
@@ -0,0 +1,11 @@
+EverGrandeCity_Corridor4_MapScripts:: @ 815BA4B
+ map_script 4, EverGrandeCity_Corridor4_MapScript2_15BA51
+ .byte 0
+
+EverGrandeCity_Corridor4_MapScript2_15BA51:: @ 815BA51
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_Corridor4_EventScript_15BA5B
+ .2byte 0
+
+EverGrandeCity_Corridor4_EventScript_15BA5B:: @ 815BA5B
+ turnobject 255, 2
+ end
diff --git a/data/maps/EverGrandeCity_Corridor5/scripts.inc b/data/maps/EverGrandeCity_Corridor5/scripts.inc
new file mode 100644
index 000000000..09ce304f6
--- /dev/null
+++ b/data/maps/EverGrandeCity_Corridor5/scripts.inc
@@ -0,0 +1,11 @@
+EverGrandeCity_Corridor5_MapScripts:: @ 815BA60
+ map_script 4, EverGrandeCity_Corridor5_MapScript2_15BA66
+ .byte 0
+
+EverGrandeCity_Corridor5_MapScript2_15BA66:: @ 815BA66
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_Corridor5_EventScript_15BA70
+ .2byte 0
+
+EverGrandeCity_Corridor5_EventScript_15BA70:: @ 815BA70
+ turnobject 255, 2
+ end
diff --git a/data/maps/EverGrandeCity_DrakesRoom/scripts.inc b/data/maps/EverGrandeCity_DrakesRoom/scripts.inc
new file mode 100644
index 000000000..8eb7bbc45
--- /dev/null
+++ b/data/maps/EverGrandeCity_DrakesRoom/scripts.inc
@@ -0,0 +1,62 @@
+EverGrandeCity_DrakesRoom_MapScripts:: @ 815B70D
+ map_script 2, EverGrandeCity_DrakesRoom_MapScript2_15B72C
+ map_script 1, EverGrandeCity_DrakesRoom_MapScript1_15B743
+ map_script 4, EverGrandeCity_DrakesRoom_MapScript2_15B570
+ .byte 0
+
+@ 815B71D
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_DrakesRoom_EventScript_15B727
+ .2byte 0
+
+EverGrandeCity_DrakesRoom_EventScript_15B727:: @ 815B727
+ turnobject 255, 2
+ end
+
+EverGrandeCity_DrakesRoom_MapScript2_15B72C:: @ 815B72C
+ map_script_2 VAR_ELITE_4_STATE, 3, EverGrandeCity_DrakesRoom_EventScript_15B736
+ .2byte 0
+
+EverGrandeCity_DrakesRoom_EventScript_15B736:: @ 815B736
+ lockall
+ call EverGrandeCity_DrakesRoom_EventScript_1A0710
+ setvar VAR_ELITE_4_STATE, 4
+ releaseall
+ end
+
+EverGrandeCity_DrakesRoom_MapScript1_15B743:: @ 815B743
+ call_if_set FLAG_DEFEATED_ELITE_4_DRAKE, EverGrandeCity_DrakesRoom_EventScript_15B758
+ compare VAR_ELITE_4_STATE, 4
+ call_if_eq EverGrandeCity_DrakesRoom_EventScript_15B75E
+ end
+
+EverGrandeCity_DrakesRoom_EventScript_15B758:: @ 815B758
+ call EverGrandeCity_DrakesRoom_EventScript_1A0757
+ return
+
+EverGrandeCity_DrakesRoom_EventScript_15B75E:: @ 815B75E
+ call EverGrandeCity_DrakesRoom_EventScript_1A07FA
+ return
+
+EverGrandeCity_DrakesRoom_EventScript_15B764:: @ 815B764
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_ELITE_4_DRAKE, EverGrandeCity_DrakesRoom_EventScript_15B78B
+ playbgm BGM_SITENNOU, FALSE
+ msgbox EverGrandeCity_DrakesRoom_Text_190CEB, 4
+ trainerbattle 3, OPPONENT_DRAKE, 0, EverGrandeCity_DrakesRoom_Text_190E42
+ goto EverGrandeCity_DrakesRoom_EventScript_15B795
+ end
+
+EverGrandeCity_DrakesRoom_EventScript_15B78B:: @ 815B78B
+ msgbox EverGrandeCity_DrakesRoom_Text_190E5D, 4
+ release
+ end
+
+EverGrandeCity_DrakesRoom_EventScript_15B795:: @ 815B795
+ setvar VAR_SPECIAL_4, 0
+ special sub_810FF60
+ setflag FLAG_DEFEATED_ELITE_4_DRAKE
+ call EverGrandeCity_DrakesRoom_EventScript_1A0693
+ msgbox EverGrandeCity_DrakesRoom_Text_190E5D, 4
+ release
+ end
diff --git a/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc b/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc
new file mode 100644
index 000000000..a72b84440
--- /dev/null
+++ b/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc
@@ -0,0 +1,60 @@
+EverGrandeCity_GlaciasRoom_MapScripts:: @ 815B673
+ map_script 2, EverGrandeCity_GlaciasRoom_MapScript2_15B692
+ map_script 1, EverGrandeCity_GlaciasRoom_MapScript1_15B6A9
+ map_script 4, EverGrandeCity_GlaciasRoom_MapScript2_15B683
+ .byte 0
+
+EverGrandeCity_GlaciasRoom_MapScript2_15B683:: @ 815B683
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_GlaciasRoom_EventScript_15B68D
+ .2byte 0
+
+EverGrandeCity_GlaciasRoom_EventScript_15B68D:: @ 815B68D
+ turnobject 255, 2
+ end
+
+EverGrandeCity_GlaciasRoom_MapScript2_15B692:: @ 815B692
+ map_script_2 VAR_ELITE_4_STATE, 2, EverGrandeCity_GlaciasRoom_EventScript_15B69C
+ .2byte 0
+
+EverGrandeCity_GlaciasRoom_EventScript_15B69C:: @ 815B69C
+ lockall
+ call EverGrandeCity_GlaciasRoom_EventScript_1A0710
+ setvar VAR_ELITE_4_STATE, 3
+ releaseall
+ end
+
+EverGrandeCity_GlaciasRoom_MapScript1_15B6A9:: @ 815B6A9
+ call_if_set FLAG_DEFEATED_ELITE_4_GLACIA, EverGrandeCity_GlaciasRoom_EventScript_15B6BE
+ compare VAR_ELITE_4_STATE, 3
+ call_if_eq EverGrandeCity_GlaciasRoom_EventScript_15B6C4
+ end
+
+EverGrandeCity_GlaciasRoom_EventScript_15B6BE:: @ 815B6BE
+ call EverGrandeCity_GlaciasRoom_EventScript_1A0757
+ return
+
+EverGrandeCity_GlaciasRoom_EventScript_15B6C4:: @ 815B6C4
+ call EverGrandeCity_GlaciasRoom_EventScript_1A07FA
+ return
+
+EverGrandeCity_GlaciasRoom_EventScript_15B6CA:: @ 815B6CA
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_ELITE_4_GLACIA, EverGrandeCity_GlaciasRoom_EventScript_15B6F1
+ playbgm BGM_SITENNOU, FALSE
+ msgbox EverGrandeCity_GlaciasRoom_Text_190AF9, 4
+ trainerbattle 3, OPPONENT_GLACIA, 0, EverGrandeCity_GlaciasRoom_Text_190C01
+ goto EverGrandeCity_GlaciasRoom_EventScript_15B6FB
+ end
+
+EverGrandeCity_GlaciasRoom_EventScript_15B6F1:: @ 815B6F1
+ msgbox EverGrandeCity_GlaciasRoom_Text_190C8F, 4
+ release
+ end
+
+EverGrandeCity_GlaciasRoom_EventScript_15B6FB:: @ 815B6FB
+ setflag FLAG_DEFEATED_ELITE_4_GLACIA
+ call EverGrandeCity_GlaciasRoom_EventScript_1A0693
+ msgbox EverGrandeCity_GlaciasRoom_Text_190C8F, 4
+ release
+ end
diff --git a/data/maps/EverGrandeCity_HallOfFame/scripts.inc b/data/maps/EverGrandeCity_HallOfFame/scripts.inc
new file mode 100644
index 000000000..6cfc5ae27
--- /dev/null
+++ b/data/maps/EverGrandeCity_HallOfFame/scripts.inc
@@ -0,0 +1,84 @@
+EverGrandeCity_HallOfFame_MapScripts:: @ 815BB84
+ map_script 2, EverGrandeCity_HallOfFame_MapScript2_15BB9E
+ map_script 4, EverGrandeCity_HallOfFame_MapScript2_15BB8F
+ .byte 0
+
+EverGrandeCity_HallOfFame_MapScript2_15BB8F:: @ 815BB8F
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_HallOfFame_EventScript_15BB99
+ .2byte 0
+
+EverGrandeCity_HallOfFame_EventScript_15BB99:: @ 815BB99
+ turnobject 255, 2
+ end
+
+EverGrandeCity_HallOfFame_MapScript2_15BB9E:: @ 815BB9E
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_HallOfFame_EventScript_15BBA8
+ .2byte 0
+
+EverGrandeCity_HallOfFame_EventScript_15BBA8:: @ 815BBA8
+ lockall
+ applymovement 1, EverGrandeCity_HallOfFame_Movement_15BC59
+ applymovement 255, EverGrandeCity_HallOfFame_Movement_15BC59
+ waitmovement 0
+ applymovement 1, EverGrandeCity_HallOfFame_Movement_1A0843
+ applymovement 255, EverGrandeCity_HallOfFame_Movement_1A083F
+ waitmovement 0
+ msgbox EverGrandeCity_HallOfFame_Text_191841, 4
+ closemessage
+ applymovement 1, EverGrandeCity_HallOfFame_Movement_15BC60
+ applymovement 255, EverGrandeCity_HallOfFame_Movement_15BC60
+ waitmovement 0
+ delay 20
+ applymovement 1, EverGrandeCity_HallOfFame_Movement_1A0843
+ applymovement 255, EverGrandeCity_HallOfFame_Movement_1A083F
+ waitmovement 0
+ msgbox EverGrandeCity_HallOfFame_Text_1918D7, 4
+ closemessage
+ applymovement 1, EverGrandeCity_HallOfFame_Movement_1A0841
+ applymovement 255, EverGrandeCity_HallOfFame_Movement_1A0841
+ waitmovement 0
+ delay 20
+ dofieldeffect FLDEFF_HALL_OF_FAME_RECORD
+ waitfieldeffect FLDEFF_HALL_OF_FAME_RECORD
+ delay 40
+ setvar VAR_TEMP_1, 1
+ call EverGrandeCity_HallOfFame_EventScript_19FC13
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq EverGrandeCity_HallOfFame_EventScript_15BC41
+ compare RESULT, 1
+ goto_if_eq EverGrandeCity_HallOfFame_EventScript_15BC4D
+ end
+
+EverGrandeCity_HallOfFame_EventScript_15BC41:: @ 815BC41
+ setrespawn 1
+ fadescreenspeed 1, 24
+ special GameClear
+ waitstate
+ releaseall
+ end
+
+EverGrandeCity_HallOfFame_EventScript_15BC4D:: @ 815BC4D
+ setrespawn 2
+ fadescreenspeed 1, 24
+ special GameClear
+ waitstate
+ releaseall
+ end
+
+EverGrandeCity_HallOfFame_Movement_15BC59:: @ 815BC59
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+EverGrandeCity_HallOfFame_Movement_15BC60:: @ 815BC60
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
diff --git a/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc b/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc
new file mode 100644
index 000000000..2d09f1ebb
--- /dev/null
+++ b/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc
@@ -0,0 +1,60 @@
+EverGrandeCity_PhoebesRoom_MapScripts:: @ 815B5D9
+ map_script 1, EverGrandeCity_PhoebesRoom_MapScript1_15B60F
+ map_script 4, EverGrandeCity_PhoebesRoom_MapScript2_15B5E9
+ map_script 2, EverGrandeCity_PhoebesRoom_MapScript2_15B5F8
+ .byte 0
+
+EverGrandeCity_PhoebesRoom_MapScript2_15B5E9:: @ 815B5E9
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_PhoebesRoom_EventScript_15B5F3
+ .2byte 0
+
+EverGrandeCity_PhoebesRoom_EventScript_15B5F3:: @ 815B5F3
+ turnobject 255, 2
+ end
+
+EverGrandeCity_PhoebesRoom_MapScript2_15B5F8:: @ 815B5F8
+ map_script_2 VAR_ELITE_4_STATE, 1, EverGrandeCity_PhoebesRoom_EventScript_15B602
+ .2byte 0
+
+EverGrandeCity_PhoebesRoom_EventScript_15B602:: @ 815B602
+ lockall
+ call EverGrandeCity_PhoebesRoom_EventScript_1A0710
+ setvar VAR_ELITE_4_STATE, 2
+ releaseall
+ end
+
+EverGrandeCity_PhoebesRoom_MapScript1_15B60F:: @ 815B60F
+ call_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_15B624
+ compare VAR_ELITE_4_STATE, 2
+ call_if_eq EverGrandeCity_PhoebesRoom_EventScript_15B62A
+ end
+
+EverGrandeCity_PhoebesRoom_EventScript_15B624:: @ 815B624
+ call EverGrandeCity_PhoebesRoom_EventScript_1A0757
+ return
+
+EverGrandeCity_PhoebesRoom_EventScript_15B62A:: @ 815B62A
+ call EverGrandeCity_PhoebesRoom_EventScript_1A07FA
+ return
+
+EverGrandeCity_PhoebesRoom_EventScript_15B630:: @ 815B630
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_15B657
+ playbgm BGM_SITENNOU, FALSE
+ msgbox EverGrandeCity_PhoebesRoom_Text_1908F5, 4
+ trainerbattle 3, OPPONENT_PHOEBE, 0, EverGrandeCity_PhoebesRoom_Text_190A0C
+ goto EverGrandeCity_PhoebesRoom_EventScript_15B661
+ end
+
+EverGrandeCity_PhoebesRoom_EventScript_15B657:: @ 815B657
+ msgbox EverGrandeCity_PhoebesRoom_Text_190A2A, 4
+ release
+ end
+
+EverGrandeCity_PhoebesRoom_EventScript_15B661:: @ 815B661
+ setflag FLAG_DEFEATED_ELITE_4_PHOEBE
+ call EverGrandeCity_PhoebesRoom_EventScript_1A0693
+ msgbox EverGrandeCity_PhoebesRoom_Text_190A2A, 4
+ release
+ end
diff --git a/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc b/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..374ef9472
--- /dev/null
+++ b/data/maps/EverGrandeCity_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,24 @@
+EverGrandeCity_PokemonCenter_1F_MapScripts:: @ 815BC66
+ map_script 3, EverGrandeCity_PokemonCenter_1F_MapScript1_15BC6C
+ .byte 0
+
+EverGrandeCity_PokemonCenter_1F_MapScript1_15BC6C:: @ 815BC6C
+ setrespawn 11
+ end
+
+EverGrandeCity_PokemonCenter_1F_EventScript_15BC70:: @ 815BC70
+SootopolisCity_PokemonCenter_1F_EventScript_15BC70:: @ 815BC70
+ setvar VAR_SPECIAL_B, 1
+ call SootopolisCity_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+EverGrandeCity_PokemonCenter_1F_EventScript_15BC7E:: @ 815BC7E
+ msgbox EverGrandeCity_PokemonCenter_1F_Text_191967, 2
+ end
+
+EverGrandeCity_PokemonCenter_1F_EventScript_15BC87:: @ 815BC87
+ msgbox EverGrandeCity_PokemonCenter_1F_Text_1919EF, 2
+ end
diff --git a/data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc b/data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..9941e17e4
--- /dev/null
+++ b/data/maps/EverGrandeCity_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+EverGrandeCity_PokemonCenter_2F_MapScripts:: @ 815BC90
+ map_script 2, EverGrandeCity_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, EverGrandeCity_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, EverGrandeCity_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+EverGrandeCity_PokemonCenter_2F_EventScript_15BCA0:: @ 815BCA0
+ call EverGrandeCity_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+EverGrandeCity_PokemonCenter_2F_EventScript_15BCA6:: @ 815BCA6
+ call EverGrandeCity_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+EverGrandeCity_PokemonCenter_2F_EventScript_15BCAC:: @ 815BCAC
+ call EverGrandeCity_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/EverGrandeCity_PokemonLeague/scripts.inc b/data/maps/EverGrandeCity_PokemonLeague/scripts.inc
new file mode 100644
index 000000000..0138f99f1
--- /dev/null
+++ b/data/maps/EverGrandeCity_PokemonLeague/scripts.inc
@@ -0,0 +1,121 @@
+EverGrandeCity_PokemonLeague_MapScripts:: @ 815BA75
+ map_script 3, EverGrandeCity_PokemonLeague_MapScript1_15BA7B
+ .byte 0
+
+EverGrandeCity_PokemonLeague_MapScript1_15BA7B:: @ 815BA7B
+ setrespawn 20
+ setflag FLAG_SYS_POKEMON_LEAGUE_FLY
+ call_if_unset FLAG_ENTERED_ELITE_FOUR, EverGrandeCity_PokemonLeague_EventScript_15BA8B
+ end
+
+EverGrandeCity_PokemonLeague_EventScript_15BA8B:: @ 815BA8B
+ setobjectxyperm 3, 9, 2
+ setobjectxyperm 4, 10, 2
+ return
+
+EverGrandeCity_PokemonLeague_EventScript_15BA9A:: @ 815BA9A
+ setvar VAR_SPECIAL_B, 1
+ call EverGrandeCity_PokemonLeague_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+EverGrandeCity_PokemonLeague_EventScript_15BAA8:: @ 815BAA8
+ lock
+ faceplayer
+ message EverGrandeCity_PokemonLeague_Text_1A0BE4
+ waitmessage
+ pokemart EverGrandeCity_PokemonLeague_Items
+ msgbox EverGrandeCity_PokemonLeague_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+EverGrandeCity_PokemonLeague_Items:: @ 815BAC0
+ .2byte ITEM_ULTRA_BALL
+ .2byte ITEM_HYPER_POTION
+ .2byte ITEM_MAX_POTION
+ .2byte ITEM_FULL_RESTORE
+ .2byte ITEM_FULL_HEAL
+ .2byte ITEM_REVIVE
+ .2byte ITEM_MAX_REPEL
+ .2byte ITEM_NONE
+ release
+ end
+
+EverGrandeCity_PokemonLeague_EventScript_15BAD2:: @ 815BAD2
+ lockall
+ goto_if_set FLAG_ENTERED_ELITE_FOUR, EverGrandeCity_PokemonLeague_EventScript_15BB57
+ getplayerxy VAR_TEMP_0, VAR_TEMP_1
+ compare VAR_TEMP_0, 11
+ call_if_ge EverGrandeCity_PokemonLeague_EventScript_15BB34
+ compare VAR_TEMP_0, 8
+ call_if_le EverGrandeCity_PokemonLeague_EventScript_15BB3F
+ message EverGrandeCity_PokemonLeague_Text_1916FD
+ waitmessage
+ delay 75
+ goto_if_unset FLAG_BADGE06_GET, EverGrandeCity_PokemonLeague_EventScript_15BB4A
+ closemessage
+ applymovement 3, EverGrandeCity_PokemonLeague_Movement_15BB7E
+ applymovement 4, EverGrandeCity_PokemonLeague_Movement_15BB81
+ waitmovement 0
+ delay 10
+ playfanfare BGM_ME_BACHI
+ message EverGrandeCity_PokemonLeague_Text_191804
+ waitmessage
+ waitfanfare
+ closemessage
+ moveobjectoffscreen 3
+ moveobjectoffscreen 4
+ setflag FLAG_ENTERED_ELITE_FOUR
+ releaseall
+ end
+
+EverGrandeCity_PokemonLeague_EventScript_15BB34:: @ 815BB34
+ applymovement 255, EverGrandeCity_PokemonLeague_Movement_15BB76
+ waitmovement 0
+ return
+
+EverGrandeCity_PokemonLeague_EventScript_15BB3F:: @ 815BB3F
+ applymovement 255, EverGrandeCity_PokemonLeague_Movement_15BB7A
+ waitmovement 0
+ return
+
+EverGrandeCity_PokemonLeague_EventScript_15BB4A:: @ 815BB4A
+ playse SE_HAZURE
+ msgbox EverGrandeCity_PokemonLeague_Text_19179C, 4
+ releaseall
+ end
+
+EverGrandeCity_PokemonLeague_EventScript_15BB57:: @ 815BB57
+ applymovement LAST_TALKED, EverGrandeCity_PokemonLeague_Movement_1A0839
+ waitmovement 0
+ msgbox EverGrandeCity_PokemonLeague_Text_191804, 4
+ closemessage
+ applymovement LAST_TALKED, EverGrandeCity_PokemonLeague_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+EverGrandeCity_PokemonLeague_Movement_15BB76:: @ 815BB76
+ walk_down
+ walk_left
+ walk_in_place_fastest_up
+ end_movement
+
+EverGrandeCity_PokemonLeague_Movement_15BB7A:: @ 815BB7A
+ walk_down
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+EverGrandeCity_PokemonLeague_Movement_15BB7E:: @ 815BB7E
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+EverGrandeCity_PokemonLeague_Movement_15BB81:: @ 815BB81
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
diff --git a/data/maps/EverGrandeCity_SidneysRoom/scripts.inc b/data/maps/EverGrandeCity_SidneysRoom/scripts.inc
new file mode 100644
index 000000000..45a729c0a
--- /dev/null
+++ b/data/maps/EverGrandeCity_SidneysRoom/scripts.inc
@@ -0,0 +1,61 @@
+EverGrandeCity_SidneysRoom_MapScripts:: @ 815B53F
+ map_script 1, EverGrandeCity_SidneysRoom_MapScript1_15B54F
+ map_script 4, EverGrandeCity_SidneysRoom_MapScript2_15B570
+ map_script 2, EverGrandeCity_SidneysRoom_MapScript2_15B57F
+ .byte 0
+
+EverGrandeCity_SidneysRoom_MapScript1_15B54F:: @ 815B54F
+ call_if_set FLAG_DEFEATED_ELITE_4_SYDNEY, EverGrandeCity_SidneysRoom_EventScript_15B564
+ compare VAR_ELITE_4_STATE, 1
+ call_if_eq EverGrandeCity_SidneysRoom_EventScript_15B56A
+ end
+
+EverGrandeCity_SidneysRoom_EventScript_15B564:: @ 815B564
+ call EverGrandeCity_SidneysRoom_EventScript_1A0757
+ return
+
+EverGrandeCity_SidneysRoom_EventScript_15B56A:: @ 815B56A
+ call EverGrandeCity_SidneysRoom_EventScript_1A07FA
+ return
+
+EverGrandeCity_DrakesRoom_MapScript2_15B570:: @ 815B570
+EverGrandeCity_SidneysRoom_MapScript2_15B570:: @ 815B570
+ map_script_2 VAR_TEMP_1, 0, EverGrandeCity_SidneysRoom_EventScript_15B57A
+ .2byte 0
+
+EverGrandeCity_SidneysRoom_EventScript_15B57A:: @ 815B57A
+ turnobject 255, 2
+ end
+
+EverGrandeCity_SidneysRoom_MapScript2_15B57F:: @ 815B57F
+ map_script_2 VAR_ELITE_4_STATE, 0, EverGrandeCity_SidneysRoom_EventScript_15B589
+ .2byte 0
+
+EverGrandeCity_SidneysRoom_EventScript_15B589:: @ 815B589
+ lockall
+ call EverGrandeCity_SidneysRoom_EventScript_1A0710
+ setvar VAR_ELITE_4_STATE, 1
+ releaseall
+ end
+
+EverGrandeCity_SidneysRoom_EventScript_15B596:: @ 815B596
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_ELITE_4_SYDNEY, EverGrandeCity_SidneysRoom_EventScript_15B5BD
+ playbgm BGM_SITENNOU, FALSE
+ msgbox EverGrandeCity_SidneysRoom_Text_190728, 4
+ trainerbattle 3, OPPONENT_SIDNEY, 0, EverGrandeCity_SidneysRoom_Text_190823
+ goto EverGrandeCity_SidneysRoom_EventScript_15B5C7
+ end
+
+EverGrandeCity_SidneysRoom_EventScript_15B5BD:: @ 815B5BD
+ msgbox EverGrandeCity_SidneysRoom_Text_19086D, 4
+ release
+ end
+
+EverGrandeCity_SidneysRoom_EventScript_15B5C7:: @ 815B5C7
+ setflag FLAG_DEFEATED_ELITE_4_SYDNEY
+ call EverGrandeCity_SidneysRoom_EventScript_1A0693
+ msgbox EverGrandeCity_SidneysRoom_Text_19086D, 4
+ release
+ end
diff --git a/data/maps/FallarborTown/scripts.inc b/data/maps/FallarborTown/scripts.inc
new file mode 100644
index 000000000..a168a0ef5
--- /dev/null
+++ b/data/maps/FallarborTown/scripts.inc
@@ -0,0 +1,55 @@
+FallarborTown_MapScripts:: @ 814E7E0
+ map_script 3, FallarborTown_MapScript1_14E7E6
+ .byte 0
+
+FallarborTown_MapScript1_14E7E6:: @ 814E7E6
+ setflag FLAG_VISITED_FALLARBOR_TOWN
+ setvar VAR_LINK_CONTEST_ROOM_STATE, 0
+ setflag FLAG_HIDE_CONTEST_REPORTER_FALLARBOR
+ clearflag FLAG_CONTEST_SKETCH_CREATED
+ end
+
+FallarborTown_EventScript_14E7F5:: @ 814E7F5
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY, FallarborTown_EventScript_14E80A
+ msgbox FallarborTown_Text_16C7FF, 4
+ release
+ end
+
+FallarborTown_EventScript_14E80A:: @ 814E80A
+ msgbox FallarborTown_Text_16C855, 4
+ release
+ end
+
+FallarborTown_EventScript_14E814:: @ 814E814
+ msgbox FallarborTown_Text_16C8D6, 2
+ end
+
+FallarborTown_EventScript_14E81D:: @ 814E81D
+ msgbox FallarborTown_Text_16C941, 2
+ end
+
+FallarborTown_EventScript_14E826:: @ 814E826
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_AZURILL, 0
+ msgbox FallarborTown_Text_16C92C, 4
+ waitmoncry
+ release
+ end
+
+FallarborTown_EventScript_14E839:: @ 814E839
+ msgbox FallarborTown_Text_16CA39, 3
+ end
+
+FallarborTown_EventScript_14E842:: @ 814E842
+MeteorFalls_1F_1R_EventScript_14E842:: @ 814E842
+MeteorFalls_1F_2R_EventScript_14E842:: @ 814E842
+ msgbox FallarborTown_Text_16CA83, 3
+ end
+
+FallarborTown_EventScript_14E84B:: @ 814E84B
+ msgbox FallarborTown_Text_16CAB9, 3
+ end
diff --git a/data/maps/FallarborTown_ContestHall/scripts.inc b/data/maps/FallarborTown_ContestHall/scripts.inc
new file mode 100644
index 000000000..e3fcfd9bc
--- /dev/null
+++ b/data/maps/FallarborTown_ContestHall/scripts.inc
@@ -0,0 +1,18 @@
+FallarborTown_ContestHall_MapScripts:: @ 8153ACE
+ .byte 0
+
+FallarborTown_ContestHall_EventScript_153ACF:: @ 8153ACF
+ msgbox FallarborTown_ContestHall_Text_177335, 2
+ end
+
+FallarborTown_ContestHall_EventScript_153AD8:: @ 8153AD8
+ msgbox FallarborTown_ContestHall_Text_1773C6, 2
+ end
+
+FallarborTown_ContestHall_EventScript_153AE1:: @ 8153AE1
+ msgbox FallarborTown_ContestHall_Text_177437, 2
+ end
+
+FallarborTown_ContestHall_EventScript_153AEA:: @ 8153AEA
+ msgbox FallarborTown_ContestHall_Text_1774B1, 3
+ end
diff --git a/data/maps/FallarborTown_ContestLobby/scripts.inc b/data/maps/FallarborTown_ContestLobby/scripts.inc
new file mode 100644
index 000000000..5386fec4f
--- /dev/null
+++ b/data/maps/FallarborTown_ContestLobby/scripts.inc
@@ -0,0 +1,120 @@
+FallarborTown_ContestLobby_MapScripts:: @ 81539C1
+ map_script 3, FallarborTown_ContestLobby_MapScript1_1539C7
+ .byte 0
+
+FallarborTown_ContestLobby_MapScript1_1539C7:: @ 81539C7
+ call FallarborTown_ContestLobby_EventScript_1AE188
+ end
+
+FallarborTown_ContestLobby_EventScript_1539CD:: @ 81539CD
+ setvar VAR_SPECIAL_B, 6
+ setvar CONTEST_RANK, 1
+ call FallarborTown_ContestLobby_EventScript_1A4E92
+ call FallarborTown_ContestLobby_EventScript_1539F8
+ special SetContestTrainerGfxIds
+ call FallarborTown_ContestLobby_EventScript_15FBDB
+ setvar VAR_CONTEST_LOCATION, 2
+ warp MAP_LINK_CONTEST_ROOM1, 255, 7, 5
+ waitstate
+ end
+
+FallarborTown_ContestLobby_EventScript_1539F8:: @ 81539F8
+ lockall
+ applymovement 1, FallarborTown_ContestLobby_Movement_153A7C
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 4, 2, 545, 1
+ setmetatile 4, 3, 609, 1
+ special DrawWholeMapView
+ applymovement 1, FallarborTown_ContestLobby_Movement_153A7F
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 4, 2, 721, 1
+ setmetatile 4, 3, 729, 1
+ special DrawWholeMapView
+ delay 20
+ applymovement 1, FallarborTown_ContestLobby_Movement_153A8C
+ waitmovement 0
+ applymovement 255, FallarborTown_ContestLobby_Movement_153A7A
+ waitmovement 0
+ msgbox FallarborTown_ContestLobby_Text_1A6832, 4
+ closemessage
+ applymovement 1, FallarborTown_ContestLobby_Movement_153A83
+ applymovement 255, FallarborTown_ContestLobby_Movement_153A70
+ waitmovement 0
+ releaseall
+ return
+
+FallarborTown_ContestLobby_Movement_153A70:: @ 8153A70
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+FallarborTown_ContestLobby_Movement_153A7A:: @ 8153A7A
+ walk_in_place_fastest_left
+ end_movement
+
+FallarborTown_ContestLobby_Movement_153A7C:: @ 8153A7C
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+FallarborTown_ContestLobby_Movement_153A7F:: @ 8153A7F
+ walk_down
+ walk_down
+ walk_in_place_fastest_up
+ end_movement
+
+FallarborTown_ContestLobby_Movement_153A83:: @ 8153A83
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+FallarborTown_ContestLobby_Movement_153A8C:: @ 8153A8C
+ walk_in_place_fastest_right
+ end_movement
+
+FallarborTown_ContestLobby_EventScript_153A8E:: @ 8153A8E
+ msgbox FallarborTown_ContestLobby_Text_177141, 2
+ end
+
+FallarborTown_ContestLobby_EventScript_153A97:: @ 8153A97
+ goto_if_set FLAG_CONTEST_SKETCH_CREATED, FallarborTown_ContestLobby_EventScript_153AA9
+ msgbox FallarborTown_ContestLobby_Text_177246, 2
+ end
+
+FallarborTown_ContestLobby_EventScript_153AA9:: @ 8153AA9
+ msgbox FallarborTown_ContestLobby_Text_1772D8, 2
+ end
+
+FallarborTown_ContestLobby_EventScript_153AB2:: @ 8153AB2
+ msgbox FallarborTown_ContestLobby_Text_1771F2, 2
+ end
+
+FallarborTown_ContestLobby_EventScript_153ABB:: @ 8153ABB
+ lockall
+ fadescreen 1
+ drawcontestwinner 2
+ releaseall
+ end
+
+FallarborTown_ContestLobby_EventScript_153AC2:: @ 8153AC2
+ lockall
+ special ShowBerryBlenderRecordWindow
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
diff --git a/data/maps/FallarborTown_House1/scripts.inc b/data/maps/FallarborTown_House1/scripts.inc
new file mode 100644
index 000000000..f16b6e828
--- /dev/null
+++ b/data/maps/FallarborTown_House1/scripts.inc
@@ -0,0 +1,72 @@
+FallarborTown_House1_MapScripts:: @ 8153BAE
+ map_script 3, FallarborTown_House1_MapScript1_153BB4
+ .byte 0
+
+FallarborTown_House1_MapScript1_153BB4:: @ 8153BB4
+ end
+
+FallarborTown_House1_EventScript_153BB5:: @ 8153BB5
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM27, FallarborTown_House1_EventScript_153C54
+ checkitem ITEM_METEORITE, 1
+ compare RESULT, 1
+ goto_if_eq FallarborTown_House1_EventScript_153BDA
+ msgbox FallarborTown_House1_Text_177755, 4
+ release
+ end
+
+FallarborTown_House1_EventScript_153BDA:: @ 8153BDA
+ call_if_unset FLAG_TEMP_2, FallarborTown_House1_EventScript_153C2D
+ call_if_set FLAG_TEMP_2, FallarborTown_House1_EventScript_153C3E
+ compare RESULT, NO
+ goto_if_eq FallarborTown_House1_EventScript_153C47
+ msgbox FallarborTown_House1_Text_1778C4, 4
+ giveitem_std ITEM_TM27_RETURN
+ compare RESULT, 0
+ goto_if_eq FallarborTown_House1_EventScript_1A029B
+ setvar VAR_SPECIAL_4, 280
+ call FallarborTown_House1_EventScript_1A067F
+ setflag FLAG_RECEIVED_TM27
+ msgbox FallarborTown_House1_Text_177910, 4
+ release
+ end
+
+FallarborTown_House1_EventScript_153C2D:: @ 8153C2D
+ msgbox FallarborTown_House1_Text_177755, 4
+ msgbox FallarborTown_House1_Text_17780E, MSGBOX_YESNO
+ return
+
+FallarborTown_House1_EventScript_153C3E:: @ 8153C3E
+ msgbox FallarborTown_House1_Text_1779B8, MSGBOX_YESNO
+ return
+
+FallarborTown_House1_EventScript_153C47:: @ 8153C47
+ setflag FLAG_TEMP_2
+ msgbox FallarborTown_House1_Text_17797D, 4
+ release
+ end
+
+FallarborTown_House1_EventScript_153C54:: @ 8153C54
+ msgbox FallarborTown_House1_Text_177910, 4
+ release
+ end
+
+FallarborTown_House1_EventScript_153C5E:: @ 8153C5E
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM27, FallarborTown_House1_EventScript_153C86
+ goto_if_set FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY, FallarborTown_House1_EventScript_153C7C
+ msgbox FallarborTown_House1_Text_177A2B, 4
+ release
+ end
+
+FallarborTown_House1_EventScript_153C7C:: @ 8153C7C
+ msgbox FallarborTown_House1_Text_177A7C, 4
+ release
+ end
+
+FallarborTown_House1_EventScript_153C86:: @ 8153C86
+ msgbox FallarborTown_House1_Text_177ABB, 4
+ release
+ end
diff --git a/data/maps/FallarborTown_House2/scripts.inc b/data/maps/FallarborTown_House2/scripts.inc
new file mode 100644
index 000000000..41ebd039c
--- /dev/null
+++ b/data/maps/FallarborTown_House2/scripts.inc
@@ -0,0 +1,62 @@
+FallarborTown_House2_MapScripts:: @ 8153C90
+ .byte 0
+
+FallarborTown_House2_EventScript_153C91:: @ 8153C91
+ lockall
+ applymovement 1, FallarborTown_House2_Movement_1A0839
+ waitmovement 0
+ goto_if_set FLAG_TEMP_1, FallarborTown_House2_EventScript_153CB6
+ msgbox FallarborTown_House2_Text_177AF4, 4
+ setflag FLAG_TEMP_1
+ goto FallarborTown_House2_EventScript_153CB6
+ end
+
+FallarborTown_House2_EventScript_153CB6:: @ 8153CB6
+ checkitem ITEM_HEART_SCALE, 1
+ compare RESULT, 0
+ goto_if_eq FallarborTown_House2_EventScript_153D60
+ msgbox FallarborTown_House2_Text_177BDB, MSGBOX_YESNO
+ switch RESULT
+ case NO, FallarborTown_House2_EventScript_153D60
+ goto FallarborTown_House2_EventScript_153CE4
+ end
+
+FallarborTown_House2_EventScript_153CE4:: @ 8153CE4
+ msgbox FallarborTown_House2_Text_177C3F, 4
+ special SelectMoveTutorMon
+ waitstate
+ compare VAR_SPECIAL_4, 255
+ goto_if_eq FallarborTown_House2_EventScript_153D60
+ special IsSelectedMonEgg
+ compare RESULT, 1
+ goto_if_eq FallarborTown_House2_EventScript_153D52
+ compare VAR_SPECIAL_5, 0
+ goto_if_eq FallarborTown_House2_EventScript_153D44
+ goto FallarborTown_House2_EventScript_153D1A
+ end
+
+FallarborTown_House2_EventScript_153D1A:: @ 8153D1A
+ msgbox FallarborTown_House2_Text_177C5D, 4
+ special DisplayMoveTutorMenu
+ waitstate
+ compare VAR_SPECIAL_4, 0
+ goto_if_eq FallarborTown_House2_EventScript_153CE4
+ msgbox FallarborTown_House2_Text_177CC3, 4
+ takeitem ITEM_HEART_SCALE, 1
+ goto FallarborTown_House2_EventScript_153D60
+ end
+
+FallarborTown_House2_EventScript_153D44:: @ 8153D44
+ msgbox FallarborTown_House2_Text_177C78, 4
+ goto FallarborTown_House2_EventScript_153CE4
+ end
+
+FallarborTown_House2_EventScript_153D52:: @ 8153D52
+ msgbox FallarborTown_House2_Text_177D33, 4
+ goto FallarborTown_House2_EventScript_153CE4
+ end
+
+FallarborTown_House2_EventScript_153D60:: @ 8153D60
+ msgbox FallarborTown_House2_Text_177CEF, 4
+ releaseall
+ end
diff --git a/data/maps/FallarborTown_Mart/scripts.inc b/data/maps/FallarborTown_Mart/scripts.inc
new file mode 100644
index 000000000..cfd239e8a
--- /dev/null
+++ b/data/maps/FallarborTown_Mart/scripts.inc
@@ -0,0 +1,48 @@
+FallarborTown_Mart_MapScripts:: @ 8153966
+ .byte 0
+
+FallarborTown_Mart_EventScript_153967:: @ 8153967
+ lock
+ faceplayer
+ message FallarborTown_Mart_Text_1A0BE4
+ waitmessage
+ pokemart FallarborTown_Mart_Items
+ msgbox FallarborTown_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+FallarborTown_Mart_Items:: @ 8153980
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_ESCAPE_ROPE
+ .2byte ITEM_SUPER_REPEL
+ .2byte ITEM_X_SPECIAL
+ .2byte ITEM_X_SPEED
+ .2byte ITEM_X_ATTACK
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_DIRE_HIT
+ .2byte ITEM_GUARD_SPEC
+ .2byte ITEM_NONE
+ release
+ end
+
+FallarborTown_Mart_EventScript_15399C:: @ 815399C
+ msgbox FallarborTown_Mart_Text_176FF0, 2
+ end
+
+FallarborTown_Mart_EventScript_1539A5:: @ 81539A5
+ msgbox FallarborTown_Mart_Text_1770E2, 2
+ end
+
+FallarborTown_Mart_EventScript_1539AE:: @ 81539AE
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_SKITTY, 0
+ msgbox FallarborTown_Mart_Text_1770D3, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc b/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..6ae897ec8
--- /dev/null
+++ b/data/maps/FallarborTown_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,81 @@
+FallarborTown_PokemonCenter_1F_MapScripts:: @ 8153AF3
+ map_script 3, FallarborTown_PokemonCenter_1F_MapScript1_153AF9
+ .byte 0
+
+FallarborTown_PokemonCenter_1F_MapScript1_153AF9:: @ 8153AF9
+ setrespawn 17
+ call FallarborTown_PokemonCenter_1F_EventScript_19FD1B
+ end
+
+FallarborTown_PokemonCenter_1F_EventScript_153B02:: @ 8153B02
+ setvar VAR_SPECIAL_B, 1
+ call FallarborTown_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+FallarborTown_PokemonCenter_1F_EventScript_153B10:: @ 8153B10
+ msgbox FallarborTown_PokemonCenter_1F_Text_17768C, 2
+ end
+
+FallarborTown_PokemonCenter_1F_EventScript_153B19:: @ 8153B19
+ msgbox FallarborTown_PokemonCenter_1F_Text_1776F5, 2
+ end
+
+FallarborTown_PokemonCenter_1F_EventScript_153B22:: @ 8153B22
+ lock
+ faceplayer
+ msgbox FallarborTown_PokemonCenter_1F_Text_1774D4, 4
+ closemessage
+ switch FACING
+ case 2, FallarborTown_PokemonCenter_1F_EventScript_153B49
+ case 3, FallarborTown_PokemonCenter_1F_EventScript_153B59
+ end
+
+FallarborTown_PokemonCenter_1F_EventScript_153B49:: @ 8153B49
+ applymovement 4, FallarborTown_PokemonCenter_1F_Movement_153B74
+ waitmovement 0
+ goto FallarborTown_PokemonCenter_1F_EventScript_153B69
+ end
+
+FallarborTown_PokemonCenter_1F_EventScript_153B59:: @ 8153B59
+ applymovement 4, FallarborTown_PokemonCenter_1F_Movement_153B81
+ waitmovement 0
+ goto FallarborTown_PokemonCenter_1F_EventScript_153B69
+ end
+
+FallarborTown_PokemonCenter_1F_EventScript_153B69:: @ 8153B69
+ playse SE_JIDO_DOA
+ removeobject 4
+ clearflag FLAG_HIDE_LANETTE
+ release
+ end
+
+FallarborTown_PokemonCenter_1F_Movement_153B74:: @ 8153B74
+ walk_right
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ delay_8
+ end_movement
+
+FallarborTown_PokemonCenter_1F_Movement_153B81:: @ 8153B81
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ delay_8
+ end_movement
diff --git a/data/maps/FallarborTown_PokemonCenter_2F/scripts.inc b/data/maps/FallarborTown_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..148b22531
--- /dev/null
+++ b/data/maps/FallarborTown_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+FallarborTown_PokemonCenter_2F_MapScripts:: @ 8153B8C
+ map_script 2, FallarborTown_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, FallarborTown_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, FallarborTown_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+FallarborTown_PokemonCenter_2F_EventScript_153B9C:: @ 8153B9C
+ call FallarborTown_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+FallarborTown_PokemonCenter_2F_EventScript_153BA2:: @ 8153BA2
+ call FallarborTown_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+FallarborTown_PokemonCenter_2F_EventScript_153BA8:: @ 8153BA8
+ call FallarborTown_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/FieryPath/scripts.inc b/data/maps/FieryPath/scripts.inc
new file mode 100644
index 000000000..f0bd22071
--- /dev/null
+++ b/data/maps/FieryPath/scripts.inc
@@ -0,0 +1,7 @@
+FieryPath_MapScripts:: @ 815D318
+ map_script 3, FieryPath_MapScript1_15D31E
+ .byte 0
+
+FieryPath_MapScript1_15D31E:: @ 815D31E
+ setflag FLAG_LANDMARK_FIERY_PATH
+ end
diff --git a/data/maps/FortreeCity/scripts.inc b/data/maps/FortreeCity/scripts.inc
new file mode 100644
index 000000000..342e2fdc3
--- /dev/null
+++ b/data/maps/FortreeCity/scripts.inc
@@ -0,0 +1,90 @@
+FortreeCity_MapScripts:: @ 814C943
+ map_script 3, FortreeCity_MapScript1_14C94E
+ map_script 5, FortreeCity_MapScript1_14C952
+ .byte 0
+
+FortreeCity_MapScript1_14C94E:: @ 814C94E
+ setflag FLAG_VISITED_FORTREE_CITY
+ end
+
+FortreeCity_MapScript1_14C952:: @ 814C952
+ setstepcallback 2
+ end
+
+FortreeCity_EventScript_14C955:: @ 814C955
+ msgbox FortreeCity_Text_167577, 2
+ end
+
+FortreeCity_EventScript_14C95E:: @ 814C95E
+ lock
+ faceplayer
+ goto_if_set FLAG_KECLEON_FLED_FORTREE, FortreeCity_EventScript_14C973
+ msgbox FortreeCity_Text_1675C2, 4
+ release
+ end
+
+FortreeCity_EventScript_14C973:: @ 814C973
+ msgbox FortreeCity_Text_167642, 4
+ release
+ end
+
+FortreeCity_EventScript_14C97D:: @ 814C97D
+ msgbox FortreeCity_Text_16768A, 2
+ end
+
+FortreeCity_EventScript_14C986:: @ 814C986
+ msgbox FortreeCity_Text_16770E, 2
+ end
+
+FortreeCity_EventScript_14C98F:: @ 814C98F
+ msgbox FortreeCity_Text_1677BD, 2
+ end
+
+FortreeCity_EventScript_14C998:: @ 814C998
+ msgbox FortreeCity_Text_16782C, 2
+ end
+
+FortreeCity_EventScript_14C9A1:: @ 814C9A1
+ msgbox FortreeCity_Text_16792F, 3
+ end
+
+FortreeCity_EventScript_14C9AA:: @ 814C9AA
+ msgbox FortreeCity_Text_167969, 3
+ end
+
+FortreeCity_EventScript_14C9B3:: @ 814C9B3
+ lock
+ faceplayer
+ checkitem ITEM_DEVON_SCOPE, 1
+ compare RESULT, 1
+ goto_if_eq FortreeCity_EventScript_14C9CF
+ msgbox FortreeCity_Text_167868, 4
+ release
+ end
+
+FortreeCity_EventScript_14C9CF:: @ 814C9CF
+ msgbox FortreeCity_Text_16788B, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq FortreeCity_EventScript_14C9E4
+ release
+ end
+
+FortreeCity_EventScript_14C9E4:: @ 814C9E4
+ msgbox FortreeCity_Text_1678CB, 4
+ closemessage
+ applymovement LAST_TALKED, FortreeCity_Movement_1A0662
+ waitmovement 0
+ waitse
+ playmoncry SPECIES_KECLEON, 2
+ delay 40
+ waitmoncry
+ applymovement LAST_TALKED, FortreeCity_Movement_14CA13
+ waitmovement 0
+ removeobject LAST_TALKED
+ setflag FLAG_KECLEON_FLED_FORTREE
+ release
+ end
+
+FortreeCity_Movement_14CA13:: @ 814CA13
+ walk_right
+ end_movement
diff --git a/data/maps/FortreeCity_DecorationShop/scripts.inc b/data/maps/FortreeCity_DecorationShop/scripts.inc
new file mode 100644
index 000000000..56a360708
--- /dev/null
+++ b/data/maps/FortreeCity_DecorationShop/scripts.inc
@@ -0,0 +1,58 @@
+FortreeCity_DecorationShop_MapScripts:: @ 8158257
+ .byte 0
+
+FortreeCity_DecorationShop_EventScript_158258:: @ 8158258
+ msgbox FortreeCity_DecorationShop_Text_186A61, 2
+ end
+
+FortreeCity_DecorationShop_EventScript_158261:: @ 8158261
+ msgbox FortreeCity_DecorationShop_Text_186AD6, 2
+ end
+
+FortreeCity_DecorationShop_EventScript_15826A:: @ 815826A
+ lock
+ faceplayer
+ message FortreeCity_DecorationShop_Text_1A0BE4
+ waitmessage
+ pokemartdecoration FortreeCity_DecorationShop_Decorations1
+ msgbox FortreeCity_DecorationShop_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+FortreeCity_DecorationShop_Decorations1:: @ 8158284
+ .2byte DECOR_SMALL_DESK
+ .2byte DECOR_POKEMON_DESK
+ .2byte DECOR_HEAVY_DESK
+ .2byte DECOR_RAGGED_DESK
+ .2byte DECOR_COMFORT_DESK
+ .2byte DECOR_BRICK_DESK
+ .2byte DECOR_CAMP_DESK
+ .2byte DECOR_HARD_DESK
+ .2byte DECOR_NONE
+ release
+ end
+
+FortreeCity_DecorationShop_EventScript_158298:: @ 8158298
+ lock
+ faceplayer
+ message FortreeCity_DecorationShop_Text_1A0BE4
+ waitmessage
+ pokemartdecoration FortreeCity_DecorationShop_Decorations2
+ msgbox FortreeCity_DecorationShop_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+FortreeCity_DecorationShop_Decorations2:: @ 81582B0
+ .2byte DECOR_SMALL_CHAIR
+ .2byte DECOR_POKEMON_CHAIR
+ .2byte DECOR_HEAVY_CHAIR
+ .2byte DECOR_RAGGED_CHAIR
+ .2byte DECOR_COMFORT_CHAIR
+ .2byte DECOR_BRICK_CHAIR
+ .2byte DECOR_CAMP_CHAIR
+ .2byte DECOR_HARD_CHAIR
+ .2byte DECOR_NONE
+ release
+ end
diff --git a/data/maps/FortreeCity_Gym/scripts.inc b/data/maps/FortreeCity_Gym/scripts.inc
new file mode 100644
index 000000000..c0de6bfee
--- /dev/null
+++ b/data/maps/FortreeCity_Gym/scripts.inc
@@ -0,0 +1,99 @@
+FortreeCity_Gym_MapScripts:: @ 8157ED3
+ map_script 3, FortreeCity_Gym_MapScript1_157EDE
+ map_script 4, FortreeCity_Gym_MapScript2_157EE2
+ .byte 0
+
+FortreeCity_Gym_MapScript1_157EDE:: @ 8157EDE
+ special RotatingGate_InitPuzzle
+ end
+
+FortreeCity_Gym_MapScript2_157EE2:: @ 8157EE2
+ map_script_2 VAR_TEMP_0, 16384, FortreeCity_Gym_EventScript_157EEC
+ .2byte 0
+
+FortreeCity_Gym_EventScript_157EEC:: @ 8157EEC
+ special RotatingGate_InitPuzzleAndGraphics
+ end
+
+FortreeCity_Gym_EventScript_157EF0:: @ 8157EF0
+ trainerbattle 1, OPPONENT_WINONA, 0, FortreeCity_Gym_Text_185CCB, FortreeCity_Gym_Text_185DBA, FortreeCity_Gym_EventScript_157F15
+ goto_if_unset FLAG_RECEIVED_TM40, FortreeCity_Gym_EventScript_157F3E
+ msgbox FortreeCity_Gym_Text_185F98, 4
+ release
+ end
+
+FortreeCity_Gym_EventScript_157F15:: @ 8157F15
+ message FortreeCity_Gym_Text_185E48
+ waitmessage
+ call FortreeCity_Gym_EventScript_1A02C5
+ msgbox FortreeCity_Gym_Text_185E73, 4
+ setflag FLAG_DEFEATED_FORTREE_GYM
+ setflag FLAG_BADGE06_GET
+ setvar VAR_SPECIAL_8, 6
+ call FortreeCity_Gym_EventScript_1A01C0
+ goto FortreeCity_Gym_EventScript_157F3E
+ end
+
+FortreeCity_Gym_EventScript_157F3E:: @ 8157F3E
+ giveitem_std ITEM_TM40_AERIAL_ACE
+ compare RESULT, 0
+ goto_if_eq FortreeCity_Gym_EventScript_1A029B
+ msgbox FortreeCity_Gym_Text_185F4A, 4
+ setflag FLAG_RECEIVED_TM40
+ release
+ end
+
+FortreeCity_Gym_EventScript_157F62:: @ 8157F62
+ trainerbattle 0, OPPONENT_JARED, 0, FortreeCity_Gym_Text_1859B9, FortreeCity_Gym_Text_1859EA
+ msgbox FortreeCity_Gym_Text_185A02, 6
+ end
+
+FortreeCity_Gym_EventScript_157F79:: @ 8157F79
+ trainerbattle 0, OPPONENT_WILL, 0, FortreeCity_Gym_Text_185A7F, FortreeCity_Gym_Text_185AEC
+ msgbox FortreeCity_Gym_Text_185B18, 6
+ end
+
+FortreeCity_Gym_EventScript_157F90:: @ 8157F90
+ trainerbattle 0, OPPONENT_TERRELL, 0, FortreeCity_Gym_Text_185B8D, FortreeCity_Gym_Text_185BEB
+ msgbox FortreeCity_Gym_Text_185C00, 6
+ end
+
+FortreeCity_Gym_EventScript_157FA7:: @ 8157FA7
+ trainerbattle 0, OPPONENT_KYLEE, 0, FortreeCity_Gym_Text_185C45, FortreeCity_Gym_Text_185C7C
+ msgbox FortreeCity_Gym_Text_185C8C, 6
+ end
+
+FortreeCity_Gym_EventScript_157FBE:: @ 8157FBE
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_FORTREE_GYM, FortreeCity_Gym_EventScript_157FD3
+ msgbox FortreeCity_Gym_Text_18589C, 4
+ release
+ end
+
+FortreeCity_Gym_EventScript_157FD3:: @ 8157FD3
+ msgbox FortreeCity_Gym_Text_185994, 4
+ release
+ end
+
+FortreeCity_Gym_EventScript_157FDD:: @ 8157FDD
+ lockall
+ goto_if_set FLAG_BADGE06_GET, FortreeCity_Gym_EventScript_157FFD
+ goto FortreeCity_Gym_EventScript_158007
+ end
+
+FortreeCity_Gym_EventScript_157FED:: @ 8157FED
+ lockall
+ goto_if_set FLAG_BADGE06_GET, FortreeCity_Gym_EventScript_157FFD
+ goto FortreeCity_Gym_EventScript_158007
+ end
+
+FortreeCity_Gym_EventScript_157FFD:: @ 8157FFD
+ msgbox FortreeCity_Gym_Text_185FEE, 4
+ releaseall
+ end
+
+FortreeCity_Gym_EventScript_158007:: @ 8158007
+ msgbox FortreeCity_Gym_Text_185FD5, 4
+ releaseall
+ end
diff --git a/data/maps/FortreeCity_House1/scripts.inc b/data/maps/FortreeCity_House1/scripts.inc
new file mode 100644
index 000000000..443cc3a5c
--- /dev/null
+++ b/data/maps/FortreeCity_House1/scripts.inc
@@ -0,0 +1,64 @@
+FortreeCity_House1_MapScripts:: @ 8157E12
+ .byte 0
+
+FortreeCity_House1_EventScript_157E13:: @ 8157E13
+ lock
+ faceplayer
+ goto_if_set FLAG_FORTREE_NPC_TRADE_COMPLETED, FortreeCity_House1_EventScript_157EAD
+ setvar VAR_SPECIAL_8, 1
+ copyvar VAR_SPECIAL_4, VAR_SPECIAL_8
+ specialvar RESULT, GetInGameTradeSpeciesInfo
+ copyvar VAR_SPECIAL_9, RESULT
+ msgbox FortreeCity_House1_Text_18568C, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq FortreeCity_House1_EventScript_157E95
+ special SelectMonForNPCTrade
+ waitstate
+ copyvar VAR_SPECIAL_A, VAR_SPECIAL_4
+ compare VAR_SPECIAL_4, 255
+ goto_if_eq FortreeCity_House1_EventScript_157E95
+ copyvar VAR_SPECIAL_5, VAR_SPECIAL_A
+ specialvar RESULT, GetTradeSpecies
+ copyvar VAR_SPECIAL_B, RESULT
+ compare RESULT, VAR_SPECIAL_9
+ goto_if_ne FortreeCity_House1_EventScript_157E9F
+ copyvar VAR_SPECIAL_4, VAR_SPECIAL_8
+ copyvar VAR_SPECIAL_5, VAR_SPECIAL_A
+ special CreateInGameTradePokemon
+ special DoInGameTradeScene
+ waitstate
+ bufferspeciesname 0, VAR_SPECIAL_9
+ msgbox FortreeCity_House1_Text_1856F7, 4
+ setflag FLAG_FORTREE_NPC_TRADE_COMPLETED
+ release
+ end
+
+FortreeCity_House1_EventScript_157E95:: @ 8157E95
+ msgbox FortreeCity_House1_Text_18577F, 4
+ release
+ end
+
+FortreeCity_House1_EventScript_157E9F:: @ 8157E9F
+ bufferspeciesname 0, VAR_SPECIAL_9
+ msgbox FortreeCity_House1_Text_185737, 4
+ release
+ end
+
+FortreeCity_House1_EventScript_157EAD:: @ 8157EAD
+ msgbox FortreeCity_House1_Text_1857C7, 4
+ release
+ end
+
+FortreeCity_House1_EventScript_157EB7:: @ 8157EB7
+ msgbox FortreeCity_House1_Text_18582A, 2
+ end
+
+FortreeCity_House1_EventScript_157EC0:: @ 8157EC0
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_ZIGZAGOON, 0
+ msgbox FortreeCity_House1_Text_185888, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/FortreeCity_House2/scripts.inc b/data/maps/FortreeCity_House2/scripts.inc
new file mode 100644
index 000000000..365646d81
--- /dev/null
+++ b/data/maps/FortreeCity_House2/scripts.inc
@@ -0,0 +1,43 @@
+FortreeCity_House2_MapScripts:: @ 81580B3
+ .byte 0
+
+FortreeCity_House2_EventScript_1580B4:: @ 81580B4
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM10, FortreeCity_House2_EventScript_158157
+ call_if_unset FLAG_MET_HIDDEN_POWER_GIVER, FortreeCity_House2_EventScript_15814B
+ msgbox FortreeCity_House2_Text_186360, 4
+ multichoice 21, 8, 54, 1
+ switch RESULT
+ case 1, FortreeCity_House2_EventScript_158161
+ msgbox FortreeCity_House2_Text_1863F6, 4
+ multichoice 21, 8, 54, 1
+ switch RESULT
+ case 1, FortreeCity_House2_EventScript_158161
+ msgbox FortreeCity_House2_Text_186455, 4
+ multichoice 21, 8, 54, 1
+ switch RESULT
+ case 0, FortreeCity_House2_EventScript_158161
+ msgbox FortreeCity_House2_Text_1864C6, 4
+ giveitem_std ITEM_TM10_HIDDEN_POWER
+ compare RESULT, 0
+ goto_if_eq FortreeCity_House2_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM10
+ msgbox FortreeCity_House2_Text_18652F, 4
+ release
+ end
+
+FortreeCity_House2_EventScript_15814B:: @ 815814B
+ msgbox FortreeCity_House2_Text_186306, 4
+ setflag FLAG_MET_HIDDEN_POWER_GIVER
+ return
+
+FortreeCity_House2_EventScript_158157:: @ 8158157
+ msgbox FortreeCity_House2_Text_18652F, 4
+ release
+ end
+
+FortreeCity_House2_EventScript_158161:: @ 8158161
+ msgbox FortreeCity_House2_Text_186565, 4
+ release
+ end
diff --git a/data/maps/FortreeCity_House3/scripts.inc b/data/maps/FortreeCity_House3/scripts.inc
new file mode 100644
index 000000000..f5d11ffa7
--- /dev/null
+++ b/data/maps/FortreeCity_House3/scripts.inc
@@ -0,0 +1,10 @@
+FortreeCity_House3_MapScripts:: @ 815816B
+ .byte 0
+
+FortreeCity_House3_EventScript_15816C:: @ 815816C
+ msgbox FortreeCity_House3_Text_186624, 2
+ end
+
+FortreeCity_House3_EventScript_158175:: @ 8158175
+ msgbox FortreeCity_House3_Text_186745, 2
+ end
diff --git a/data/maps/FortreeCity_House4/scripts.inc b/data/maps/FortreeCity_House4/scripts.inc
new file mode 100644
index 000000000..77e43be34
--- /dev/null
+++ b/data/maps/FortreeCity_House4/scripts.inc
@@ -0,0 +1,64 @@
+FortreeCity_House4_MapScripts:: @ 815817E
+ .byte 0
+
+FortreeCity_House4_EventScript_15817F:: @ 815817F
+ msgbox FortreeCity_House4_Text_1867AF, 2
+ end
+
+FortreeCity_House4_EventScript_158188:: @ 8158188
+ lockall
+ goto_if_set FLAG_RECEIVED_MENTAL_HERB, FortreeCity_House4_EventScript_158204
+ goto_if_set FLAG_WINGULL_DELIVERED_MAIL, FortreeCity_House4_EventScript_1581D6
+ goto_if_set FLAG_WINGULL_SENT_ON_ERRAND, FortreeCity_House4_EventScript_1581C2
+ msgbox FortreeCity_House4_Text_186835, 4
+ closemessage
+ setflag FLAG_WINGULL_SENT_ON_ERRAND
+ clearflag FLAG_HIDE_WINGULL_MOSSDEEP_HOUSE
+ applymovement 3, FortreeCity_House4_Movement_158218
+ waitmovement 0
+ removeobject 3
+ releaseall
+ end
+
+FortreeCity_House4_EventScript_1581C2:: @ 81581C2
+ applymovement LAST_TALKED, FortreeCity_House4_Movement_1A0839
+ waitmovement 0
+ msgbox FortreeCity_House4_Text_18684E, 4
+ releaseall
+ end
+
+FortreeCity_House4_EventScript_1581D6:: @ 81581D6
+ applymovement LAST_TALKED, FortreeCity_House4_Movement_1A0839
+ waitmovement 0
+ msgbox FortreeCity_House4_Text_186881, 4
+ giveitem_std ITEM_MENTAL_HERB
+ compare RESULT, 0
+ goto_if_eq FortreeCity_House4_EventScript_1A029B
+ setflag FLAG_RECEIVED_MENTAL_HERB
+ releaseall
+ end
+
+FortreeCity_House4_EventScript_158204:: @ 8158204
+ applymovement LAST_TALKED, FortreeCity_House4_Movement_1A0839
+ waitmovement 0
+ msgbox FortreeCity_House4_Text_186924, 4
+ releaseall
+ end
+
+FortreeCity_House4_Movement_158218:: @ 8158218
+ walk_fast_down
+ walk_fast_down
+ walk_fast_right
+ walk_in_place_fastest_down
+ delay_8
+ end_movement
+
+FortreeCity_House4_EventScript_15821E:: @ 815821E
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_WINGULL, 0
+ msgbox FortreeCity_House4_Text_18695C, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/FortreeCity_House5/scripts.inc b/data/maps/FortreeCity_House5/scripts.inc
new file mode 100644
index 000000000..888ebe0e2
--- /dev/null
+++ b/data/maps/FortreeCity_House5/scripts.inc
@@ -0,0 +1,20 @@
+FortreeCity_House5_MapScripts:: @ 8158231
+ .byte 0
+
+FortreeCity_House5_EventScript_158232:: @ 8158232
+ msgbox FortreeCity_House5_Text_18696D, 2
+ end
+
+FortreeCity_House5_EventScript_15823B:: @ 815823B
+ msgbox FortreeCity_House5_Text_1869D6, 2
+ end
+
+FortreeCity_House5_EventScript_158244:: @ 8158244
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_ZIGZAGOON, 0
+ msgbox FortreeCity_House5_Text_186A4F, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/FortreeCity_Mart/scripts.inc b/data/maps/FortreeCity_Mart/scripts.inc
new file mode 100644
index 000000000..076f702af
--- /dev/null
+++ b/data/maps/FortreeCity_Mart/scripts.inc
@@ -0,0 +1,40 @@
+FortreeCity_Mart_MapScripts:: @ 8158066
+ .byte 0
+
+FortreeCity_Mart_EventScript_158067:: @ 8158067
+ lock
+ faceplayer
+ message FortreeCity_Mart_Text_1A0BE4
+ waitmessage
+ pokemart FortreeCity_Mart_Items
+ msgbox FortreeCity_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+FortreeCity_Mart_Items:: @ 8158080
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_ULTRA_BALL
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_HYPER_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_AWAKENING
+ .2byte ITEM_REVIVE
+ .2byte ITEM_SUPER_REPEL
+ .2byte ITEM_WOOD_MAIL
+ .2byte ITEM_NONE
+ release
+ end
+
+FortreeCity_Mart_EventScript_158098:: @ 8158098
+ msgbox FortreeCity_Mart_Text_1861EF, 2
+ end
+
+FortreeCity_Mart_EventScript_1580A1:: @ 81580A1
+ msgbox FortreeCity_Mart_Text_186251, 2
+ end
+
+FortreeCity_Mart_EventScript_1580AA:: @ 81580AA
+ msgbox FortreeCity_Mart_Text_1862CA, 2
+ end
diff --git a/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc b/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..6d847d7cc
--- /dev/null
+++ b/data/maps/FortreeCity_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,27 @@
+FortreeCity_PokemonCenter_1F_MapScripts:: @ 8158011
+ map_script 3, FortreeCity_PokemonCenter_1F_MapScript1_158017
+ .byte 0
+
+FortreeCity_PokemonCenter_1F_MapScript1_158017:: @ 8158017
+ setrespawn 7
+ end
+
+FortreeCity_PokemonCenter_1F_EventScript_15801B:: @ 815801B
+ setvar VAR_SPECIAL_B, 1
+ call FortreeCity_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+FortreeCity_PokemonCenter_1F_EventScript_158029:: @ 8158029
+ msgbox FortreeCity_PokemonCenter_1F_Text_186027, 2
+ end
+
+FortreeCity_PokemonCenter_1F_EventScript_158032:: @ 8158032
+ msgbox FortreeCity_PokemonCenter_1F_Text_186086, 2
+ end
+
+FortreeCity_PokemonCenter_1F_EventScript_15803B:: @ 815803B
+ msgbox FortreeCity_PokemonCenter_1F_Text_186138, 2
+ end
diff --git a/data/maps/FortreeCity_PokemonCenter_2F/scripts.inc b/data/maps/FortreeCity_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..3019dbbc0
--- /dev/null
+++ b/data/maps/FortreeCity_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+FortreeCity_PokemonCenter_2F_MapScripts:: @ 8158044
+ map_script 2, FortreeCity_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, FortreeCity_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, FortreeCity_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+FortreeCity_PokemonCenter_2F_EventScript_158054:: @ 8158054
+ call FortreeCity_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+FortreeCity_PokemonCenter_2F_EventScript_15805A:: @ 815805A
+ call FortreeCity_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+FortreeCity_PokemonCenter_2F_EventScript_158060:: @ 8158060
+ call FortreeCity_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/GraniteCave_1F/scripts.inc b/data/maps/GraniteCave_1F/scripts.inc
new file mode 100644
index 000000000..b9d89f93c
--- /dev/null
+++ b/data/maps/GraniteCave_1F/scripts.inc
@@ -0,0 +1,18 @@
+GraniteCave_1F_MapScripts:: @ 815CBA6
+ .byte 0
+
+GraniteCave_1F_EventScript_15CBA7:: @ 815CBA7
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_HM05, GraniteCave_1F_EventScript_15CBD3
+ msgbox GraniteCave_1F_Text_194917, 4
+ giveitem_std ITEM_HM05_FLASH
+ setflag FLAG_RECEIVED_HM05
+ msgbox GraniteCave_1F_Text_194A3E, 4
+ release
+ end
+
+GraniteCave_1F_EventScript_15CBD3:: @ 815CBD3
+ msgbox GraniteCave_1F_Text_194A3E, 4
+ release
+ end
diff --git a/data/maps/GraniteCave_B1F/scripts.inc b/data/maps/GraniteCave_B1F/scripts.inc
new file mode 100644
index 000000000..c6be3feca
--- /dev/null
+++ b/data/maps/GraniteCave_B1F/scripts.inc
@@ -0,0 +1,10 @@
+GraniteCave_B1F_MapScripts:: @ 815CBDD
+ map_script 2, GraniteCave_B1F_MapScript2_1C6BB5
+ map_script 3, GraniteCave_B1F_MapScript1_1C6BBF
+ map_script 5, GraniteCave_B1F_MapScript1_15CBED
+ .byte 0
+
+GraniteCave_B1F_MapScript1_15CBED:: @ 815CBED
+ setstepcallback 7
+ setholewarp MAP_GRANITE_CAVE_B2F, 255, 0, 0
+ end
diff --git a/data/maps/GraniteCave_B2F/scripts.inc b/data/maps/GraniteCave_B2F/scripts.inc
new file mode 100644
index 000000000..54e1150f1
--- /dev/null
+++ b/data/maps/GraniteCave_B2F/scripts.inc
@@ -0,0 +1,2 @@
+GraniteCave_B2F_MapScripts:: @ 815CBF8
+ .byte 0
diff --git a/data/maps/GraniteCave_StevensRoom/scripts.inc b/data/maps/GraniteCave_StevensRoom/scripts.inc
new file mode 100644
index 000000000..013703e92
--- /dev/null
+++ b/data/maps/GraniteCave_StevensRoom/scripts.inc
@@ -0,0 +1,62 @@
+GraniteCave_StevensRoom_MapScripts:: @ 815CBF9
+ .byte 0
+
+GraniteCave_StevensRoom_EventScript_15CBFA:: @ 815CBFA
+ lock
+ faceplayer
+ msgbox GraniteCave_StevensRoom_Text_194AE5, 4
+ setvar VAR_SPECIAL_4, ITEM_LETTER
+ call GraniteCave_StevensRoom_EventScript_1A067F
+ setflag FLAG_DELIVERED_STEVEN_LETTER
+ msgbox GraniteCave_StevensRoom_Text_194BDD, 4
+ giveitem_std ITEM_TM47_STEEL_WING
+ compare RESULT, 0
+ call_if_eq GraniteCave_StevensRoom_EventScript_15CC83
+ msgbox GraniteCave_StevensRoom_Text_194C8D, 4
+ closemessage
+ compare FACING, 2
+ call_if_eq GraniteCave_StevensRoom_EventScript_15CC6D
+ compare FACING, 1
+ call_if_eq GraniteCave_StevensRoom_EventScript_15CC78
+ compare FACING, 3
+ call_if_eq GraniteCave_StevensRoom_EventScript_15CC6D
+ compare FACING, 4
+ call_if_eq GraniteCave_StevensRoom_EventScript_15CC6D
+ playse SE_KAIDAN
+ removeobject 1
+ release
+ end
+
+GraniteCave_StevensRoom_EventScript_15CC6D:: @ 815CC6D
+ applymovement 1, GraniteCave_StevensRoom_Movement_15CC8C
+ waitmovement 0
+ return
+
+GraniteCave_StevensRoom_EventScript_15CC78:: @ 815CC78
+ applymovement 1, GraniteCave_StevensRoom_Movement_15CC93
+ waitmovement 0
+ return
+
+GraniteCave_StevensRoom_EventScript_15CC83:: @ 815CC83
+ msgbox GraniteCave_StevensRoom_Text_194D43, 4
+ return
+
+GraniteCave_StevensRoom_Movement_15CC8C:: @ 815CC8C
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ end_movement
+
+GraniteCave_StevensRoom_Movement_15CC93:: @ 815CC93
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ walk_right
+ walk_up
+ walk_up
+ delay_8
+ end_movement
diff --git a/data/maps/InsideOfTruck/scripts.inc b/data/maps/InsideOfTruck/scripts.inc
new file mode 100644
index 000000000..37fa85041
--- /dev/null
+++ b/data/maps/InsideOfTruck/scripts.inc
@@ -0,0 +1,52 @@
+InsideOfTruck_MapScripts:: @ 815FBFF
+ map_script 1, InsideOfTruck_MapScript1_15FC0A
+ map_script 5, InsideOfTruck_MapScript1_15FC26
+ .byte 0
+
+InsideOfTruck_MapScript1_15FC0A:: @ 815FC0A
+ setmetatile 4, 1, 520, 0
+ setmetatile 4, 2, 528, 0
+ setmetatile 4, 3, 536, 0
+ end
+
+InsideOfTruck_MapScript1_15FC26:: @ 815FC26
+ setstepcallback 5
+ end
+
+InsideOfTruck_EventScript_15FC29:: @ 815FC29
+ lockall
+ setflag FLAG_SPECIAL_FLAG_0
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq InsideOfTruck_EventScript_15FC45
+ compare RESULT, 1
+ goto_if_eq InsideOfTruck_EventScript_15FC68
+ end
+
+InsideOfTruck_EventScript_15FC45:: @ 815FC45
+ setrespawn 1
+ setvar VAR_LITTLEROOT_INTRO_STATE, 1
+ setflag FLAG_HIDE_MAY_MOM_DOWNSTAIRS
+ setflag FLAG_HIDE_MOVING_TRUCK_MAY
+ setflag FLAG_HIDE_BRENDAN_MOM
+ setflag FLAG_HIDE_BRENDAN_UPSTAIRS
+ setvar VAR_LITTLEROOT_HOUSES_STATE_2, 1
+ setdynamicwarp MAP_LITTLEROOT_TOWN, 255, 3, 10
+ releaseall
+ end
+
+InsideOfTruck_EventScript_15FC68:: @ 815FC68
+ setrespawn 2
+ setvar VAR_LITTLEROOT_INTRO_STATE, 2
+ setflag FLAG_HIDE_BRENDAN_MOM_DOWNSTAIRS
+ setflag FLAG_HIDE_MOVING_TRUCK_BRENDAN
+ setflag FLAG_HIDE_MAY_MOM
+ setflag FLAG_HIDE_MAY_UPSTAIRS
+ setvar VAR_LITTLEROOT_HOUSES_STATE, 1
+ setdynamicwarp MAP_LITTLEROOT_TOWN, 255, 12, 10
+ releaseall
+ end
+
+InsideOfTruck_EventScript_15FC8B:: @ 815FC8B
+ msgbox InsideOfTruck_Text_198FAD, 3
+ end
diff --git a/data/maps/IslandCave/scripts.inc b/data/maps/IslandCave/scripts.inc
new file mode 100644
index 000000000..d8576e883
--- /dev/null
+++ b/data/maps/IslandCave/scripts.inc
@@ -0,0 +1,87 @@
+IslandCave_MapScripts:: @ 815EEB6
+ map_script 5, IslandCave_MapScript1_15EEC6
+ map_script 1, IslandCave_MapScript1_15EED4
+ map_script 3, IslandCave_MapScript1_15EF15
+ .byte 0
+
+IslandCave_MapScript1_15EEC6:: @ 815EEC6
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, IslandCave_EventScript_15EED0
+ end
+
+IslandCave_EventScript_15EED0:: @ 815EED0
+ removeobject LAST_TALKED
+ return
+
+IslandCave_MapScript1_15EED4:: @ 815EED4
+ call_if_unset FLAG_SYS_BRAILLE_WAIT, IslandCave_EventScript_15EEDE
+ end
+
+IslandCave_EventScript_15EEDE:: @ 815EEDE
+ setmetatile 7, 19, 553, 1
+ setmetatile 8, 19, 553, 1
+ setmetatile 9, 19, 553, 1
+ setmetatile 7, 20, 565, 1
+ setmetatile 8, 20, 565, 1
+ setmetatile 9, 20, 565, 1
+ return
+
+IslandCave_MapScript1_15EF15:: @ 815EF15
+ setflag FLAG_LANDMARK_ISLAND_CAVE
+ end
+
+S_OpenRegiceChamber:: @ 815EF19
+ setmetatile 7, 19, 554, 1
+ setmetatile 8, 19, 555, 1
+ setmetatile 9, 19, 556, 1
+ setmetatile 7, 20, 562, 1
+ setmetatile 8, 20, 563, 0
+ setmetatile 9, 20, 564, 1
+ special DrawWholeMapView
+ playse SE_BAN
+ setflag FLAG_SYS_BRAILLE_WAIT
+ end
+
+IslandCave_EventScript_15EF59:: @ 815EF59
+ lockall
+ goto_if_set FLAG_SYS_BRAILLE_WAIT, IslandCave_EventScript_15EF72
+ braillemessage IslandCave_Braille_1C54FC
+ special DoBrailleWait
+ waitstate
+ goto IslandCave_EventScript_15EF95
+ end
+
+IslandCave_EventScript_15EF72:: @ 815EF72
+ msgbox IslandCave_Text_1A13BE, 4
+ releaseall
+ end
+
+IslandCave_EventScript_15EF7C:: @ 815EF7C
+ lockall
+ braillemessage IslandCave_Braille_1C54FC
+ goto_if_set FLAG_SYS_BRAILLE_WAIT, IslandCave_EventScript_15EF95
+ special DoBrailleWait
+ waitstate
+ goto IslandCave_EventScript_15EF95
+ end
+
+IslandCave_EventScript_15EF95:: @ 815EF95
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+IslandCave_EventScript_15EF9D:: @ 815EF9D
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_REGICE, 2
+ delay 40
+ waitmoncry
+ setwildbattle SPECIES_REGICE, 40, ITEM_NONE
+ setflag FLAG_HIDE_REGICE
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ special ScrSpecial_StartRegiBattle
+ waitstate
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ release
+ end
diff --git a/data/maps/JaggedPass/scripts.inc b/data/maps/JaggedPass/scripts.inc
new file mode 100644
index 000000000..d75420e88
--- /dev/null
+++ b/data/maps/JaggedPass/scripts.inc
@@ -0,0 +1,49 @@
+JaggedPass_MapScripts:: @ 815D266
+ map_script 5, JaggedPass_MapScript1_15D271
+ map_script 3, JaggedPass_MapScript1_15D274
+ .byte 0
+
+JaggedPass_MapScript1_15D271:: @ 815D271
+ setstepcallback 1
+ end
+
+JaggedPass_MapScript1_15D274:: @ 815D274
+ compare VAR_JAGGED_PASS_ASH_WEATHER, 1
+ call_if_eq JaggedPass_EventScript_15D280
+ end
+
+JaggedPass_EventScript_15D280:: @ 815D280
+ setweather WEATHER_ASH
+ doweather
+ return
+
+JaggedPass_EventScript_15D285:: @ 815D285
+ trainerbattle 0, OPPONENT_ERIC, 0, JaggedPass_Text_195DAC, JaggedPass_Text_195E27
+ msgbox JaggedPass_Text_195E3E, 6
+ end
+
+JaggedPass_EventScript_15D29C:: @ 815D29C
+ trainerbattle 0, OPPONENT_DIANA_1, 0, JaggedPass_Text_195E9E, JaggedPass_Text_195EDF
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq JaggedPass_EventScript_15D2C3
+ msgbox JaggedPass_Text_195F04, 6
+ end
+
+JaggedPass_EventScript_15D2C3:: @ 815D2C3
+ trainerbattle 5, OPPONENT_DIANA_1, 0, JaggedPass_Text_195F58, JaggedPass_Text_195F8C
+ msgbox JaggedPass_Text_195FB9, 6
+ end
+
+JaggedPass_EventScript_15D2DA:: @ 815D2DA
+ trainerbattle 0, OPPONENT_ETHAN_1, 0, JaggedPass_Text_195FF2, JaggedPass_Text_196032
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq JaggedPass_EventScript_15D301
+ msgbox JaggedPass_Text_196077, 6
+ end
+
+JaggedPass_EventScript_15D301:: @ 815D301
+ trainerbattle 5, OPPONENT_ETHAN_1, 0, JaggedPass_Text_1960AA, JaggedPass_Text_1960E2
+ msgbox JaggedPass_Text_196118, 6
+ end
diff --git a/data/maps/LavaridgeTown/scripts.inc b/data/maps/LavaridgeTown/scripts.inc
new file mode 100644
index 000000000..f14601747
--- /dev/null
+++ b/data/maps/LavaridgeTown/scripts.inc
@@ -0,0 +1,320 @@
+LavaridgeTown_MapScripts:: @ 814E4A3
+ map_script 3, LavaridgeTown_MapScript1_14E4AE
+ map_script 2, LavaridgeTown_MapScript2_14E4E3
+ .byte 0
+
+LavaridgeTown_MapScript1_14E4AE:: @ 814E4AE
+ setflag FLAG_VISITED_LAVARIDGE_TOWN
+ call_if_set FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY, LavaridgeTown_EventScript_14E4DF
+ call LavaridgeTown_EventScript_1A014E
+ call LavaridgeTown_EventScript_1A0172
+ compare VAR_LAVARIDGE_RIVAL_STATE, 2
+ call_if_eq LavaridgeTown_EventScript_14E4D0
+ end
+
+LavaridgeTown_EventScript_14E4D0:: @ 814E4D0
+ setobjectxyperm 8, 11, 9
+ setobjectxyperm 7, 11, 9
+ return
+
+LavaridgeTown_EventScript_14E4DF:: @ 814E4DF
+ clearflag FLAG_HIDE_MT_CHIMNEY_PEOPLE
+ return
+
+LavaridgeTown_MapScript2_14E4E3:: @ 814E4E3
+ map_script_2 VAR_LAVARIDGE_RIVAL_STATE, 1, LavaridgeTown_EventScript_14E4ED
+ .2byte 0
+
+LavaridgeTown_EventScript_14E4ED:: @ 814E4ED
+ lockall
+ setvar VAR_SPECIAL_8, 1
+ opendoor 12, 15
+ waitdooranim
+ addobject 8
+ applymovement 8, LavaridgeTown_Movement_14E70E
+ waitmovement 0
+ closedoor 12, 15
+ waitdooranim
+ applymovement 8, LavaridgeTown_Movement_1A083F
+ waitmovement 0
+ applymovement 255, LavaridgeTown_Movement_1A0843
+ applymovement 8, LavaridgeTown_Movement_1A0833
+ waitmovement 0
+ applymovement 8, LavaridgeTown_Movement_1A0835
+ waitmovement 0
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LavaridgeTown_EventScript_14E56B
+ compare RESULT, 1
+ call_if_eq LavaridgeTown_EventScript_14E570
+ compare VAR_SPECIAL_8, 1
+ call_if_eq LavaridgeTown_EventScript_14E68F
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq LavaridgeTown_EventScript_14E5AB
+ compare RESULT, 1
+ goto_if_eq LavaridgeTown_EventScript_14E5D0
+ end
+
+LavaridgeTown_EventScript_14E56B:: @ 814E56B
+ playbgm BGM_GIRL_SUP, TRUE
+ return
+
+LavaridgeTown_EventScript_14E570:: @ 814E570
+ playbgm BGM_BOY_SUP, TRUE
+ return
+
+LavaridgeTown_EventScript_14E575:: @ 814E575
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_8, 0
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LavaridgeTown_EventScript_14E56B
+ compare RESULT, 1
+ call_if_eq LavaridgeTown_EventScript_14E570
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq LavaridgeTown_EventScript_14E5AB
+ compare RESULT, 1
+ goto_if_eq LavaridgeTown_EventScript_14E5D0
+ end
+
+LavaridgeTown_EventScript_14E5AB:: @ 814E5AB
+ msgbox LavaridgeTown_Text_16BDA4, 4
+ giveitem_std ITEM_GO_GOGGLES
+ setflag FLAG_RECEIVED_GO_GOGGLES
+ msgbox LavaridgeTown_Text_16BE7D, 4
+ goto LavaridgeTown_EventScript_14E5F5
+ end
+
+LavaridgeTown_EventScript_14E5D0:: @ 814E5D0
+ msgbox LavaridgeTown_Text_16BF92, 4
+ giveitem_std ITEM_GO_GOGGLES
+ setflag FLAG_RECEIVED_GO_GOGGLES
+ msgbox LavaridgeTown_Text_16C020, 4
+ goto LavaridgeTown_EventScript_14E5F5
+ end
+
+LavaridgeTown_EventScript_14E5F5:: @ 814E5F5
+ closemessage
+ compare VAR_SPECIAL_8, 1
+ call_if_eq LavaridgeTown_EventScript_14E646
+ compare VAR_SPECIAL_8, 0
+ call_if_eq LavaridgeTown_EventScript_14E64E
+ removeobject 8
+ addobject 7
+ delay 30
+ compare VAR_SPECIAL_8, 1
+ call_if_eq LavaridgeTown_EventScript_14E69A
+ compare VAR_SPECIAL_8, 0
+ call_if_eq LavaridgeTown_EventScript_14E6A5
+ removeobject 7
+ setvar VAR_LAVARIDGE_RIVAL_STATE, 2
+ savebgm 0
+ fadedefaultbgm
+ compare VAR_SPECIAL_8, 0
+ goto_if_eq LavaridgeTown_EventScript_14E644
+ releaseall
+ end
+
+LavaridgeTown_EventScript_14E644:: @ 814E644
+ release
+ end
+
+LavaridgeTown_EventScript_14E646:: @ 814E646
+ setobjectxyperm 7, 6, 16
+ return
+
+LavaridgeTown_EventScript_14E64E:: @ 814E64E
+ compare FACING, 2
+ call_if_eq LavaridgeTown_EventScript_14E67B
+ compare FACING, 1
+ call_if_eq LavaridgeTown_EventScript_14E680
+ compare FACING, 3
+ call_if_eq LavaridgeTown_EventScript_14E685
+ compare FACING, 4
+ call_if_eq LavaridgeTown_EventScript_14E68A
+ return
+
+LavaridgeTown_EventScript_14E67B:: @ 814E67B
+ setobjectmovementtype 7, 8
+ return
+
+LavaridgeTown_EventScript_14E680:: @ 814E680
+ setobjectmovementtype 7, 7
+ return
+
+LavaridgeTown_EventScript_14E685:: @ 814E685
+ setobjectmovementtype 7, 10
+ return
+
+LavaridgeTown_EventScript_14E68A:: @ 814E68A
+ setobjectmovementtype 7, 9
+ return
+
+LavaridgeTown_EventScript_14E68F:: @ 814E68F
+ applymovement 8, LavaridgeTown_Movement_14E6E8
+ waitmovement 0
+ return
+
+LavaridgeTown_EventScript_14E69A:: @ 814E69A
+ applymovement 7, LavaridgeTown_Movement_14E6EF
+ waitmovement 0
+ return
+
+LavaridgeTown_EventScript_14E6A5:: @ 814E6A5
+ compare FACING, 2
+ call_if_eq LavaridgeTown_EventScript_14E6D2
+ compare FACING, 1
+ call_if_eq LavaridgeTown_EventScript_14E6D2
+ compare FACING, 3
+ call_if_eq LavaridgeTown_EventScript_14E6DD
+ compare FACING, 4
+ call_if_eq LavaridgeTown_EventScript_14E6D2
+ return
+
+LavaridgeTown_EventScript_14E6D2:: @ 814E6D2
+ applymovement 7, LavaridgeTown_Movement_14E6FA
+ waitmovement 0
+ return
+
+LavaridgeTown_EventScript_14E6DD:: @ 814E6DD
+ applymovement 7, LavaridgeTown_Movement_14E703
+ waitmovement 0
+ return
+
+LavaridgeTown_Movement_14E6E8:: @ 814E6E8
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+LavaridgeTown_Movement_14E6EF:: @ 814E6EF
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+LavaridgeTown_Movement_14E6FA:: @ 814E6FA
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ end_movement
+
+LavaridgeTown_Movement_14E703:: @ 814E703
+ walk_fast_down
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ end_movement
+
+LavaridgeTown_Movement_14E70E:: @ 814E70E
+ walk_down
+ end_movement
+
+LavaridgeTown_EventScript_14E710:: @ 814E710
+ specialvar RESULT, GetPlayerFacingDirection
+ compare RESULT, 1
+ goto_if_eq LavaridgeTown_EventScript_14E721
+ end
+
+LavaridgeTown_EventScript_14E721:: @ 814E721
+ incrementgamestat GAME_STAT_ENTERED_HOT_SPRINGS
+ end
+
+LavaridgeTown_EventScript_14E724:: @ 814E724
+ msgbox LavaridgeTown_Text_16C3FD, 2
+ end
+
+LavaridgeTown_EventScript_14E72D:: @ 814E72D
+ msgbox LavaridgeTown_Text_16C4DB, 3
+ end
+
+LavaridgeTown_EventScript_14E736:: @ 814E736
+ msgbox LavaridgeTown_Text_16C59B, 2
+ end
+
+LavaridgeTown_EventScript_14E73F:: @ 814E73F
+ msgbox LavaridgeTown_Text_16C603, 2
+ end
+
+LavaridgeTown_EventScript_14E748:: @ 814E748
+ msgbox LavaridgeTown_Text_16C694, 2
+ end
+
+LavaridgeTown_EventScript_14E751:: @ 814E751
+ msgbox LavaridgeTown_Text_16C54E, 2
+ end
+
+LavaridgeTown_EventScript_14E75A:: @ 814E75A
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_LAVARIDGE_EGG, LavaridgeTown_EventScript_14E79E
+ msgbox LavaridgeTown_Text_16C174, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq LavaridgeTown_EventScript_14E7B2
+ getpartysize
+ compare RESULT, 6
+ goto_if_eq LavaridgeTown_EventScript_14E7A8
+ msgbox LavaridgeTown_Text_16C2B6, 4
+ setflag FLAG_RECEIVED_LAVARIDGE_EGG
+ playfanfare BGM_FANFA4
+ message LavaridgeTown_Text_16C2EA
+ waitfanfare
+ waitmessage
+ giveegg SPECIES_WYNAUT
+ release
+ end
+
+LavaridgeTown_EventScript_14E79E:: @ 814E79E
+ msgbox LavaridgeTown_Text_16C398, 4
+ release
+ end
+
+LavaridgeTown_EventScript_14E7A8:: @ 814E7A8
+ msgbox LavaridgeTown_Text_16C2FF, 4
+ release
+ end
+
+LavaridgeTown_EventScript_14E7B2:: @ 814E7B2
+ msgbox LavaridgeTown_Text_16C33C, 4
+ release
+ end
+
+LavaridgeTown_EventScript_14E7BC:: @ 814E7BC
+ msgbox LavaridgeTown_Text_16C72F, 3
+ end
+
+LavaridgeTown_EventScript_14E7C5:: @ 814E7C5
+ msgbox LavaridgeTown_Text_16C77C, 3
+ end
+
+@ 814E7CE
+ msgbox LavaridgeTown_Text_16C7CF, 3
+ end
+
+LavaridgeTown_EventScript_14E7D7:: @ 814E7D7
+ msgbox LavaridgeTown_Text_16C7CF, 3
+ end
diff --git a/data/maps/LavaridgeTown_Gym_1F/scripts.inc b/data/maps/LavaridgeTown_Gym_1F/scripts.inc
new file mode 100644
index 000000000..27655127a
--- /dev/null
+++ b/data/maps/LavaridgeTown_Gym_1F/scripts.inc
@@ -0,0 +1,157 @@
+LavaridgeTown_Gym_1F_MapScripts:: @ 815368E
+ map_script 3, LavaridgeTown_Gym_1F_MapScript1_153694
+ .byte 0
+
+LavaridgeTown_Gym_1F_MapScript1_153694:: @ 8153694
+ call LavaridgeTown_Gym_1F_EventScript_15369F
+ call LavaridgeTown_Gym_1F_EventScript_1536FF
+ end
+
+LavaridgeTown_Gym_1F_EventScript_15369F:: @ 815369F
+ setvar VAR_TEMP_B, 0
+ setvar VAR_TEMP_C, 0
+ setvar VAR_TEMP_D, 0
+ setvar VAR_TEMP_E, 0
+ setvar VAR_TEMP_F, 0
+ goto_if_trainer_defeated OPPONENT_COLE, LavaridgeTown_Gym_1F_EventScript_1536C6
+ setvar VAR_TEMP_B, 1
+
+LavaridgeTown_Gym_1F_EventScript_1536C6:: @ 81536C6
+ goto_if_trainer_defeated OPPONENT_ZANE, LavaridgeTown_Gym_1F_EventScript_1536D4
+ setvar VAR_TEMP_C, 1
+
+LavaridgeTown_Gym_1F_EventScript_1536D4:: @ 81536D4
+ goto_if_trainer_defeated OPPONENT_AXLE, LavaridgeTown_Gym_1F_EventScript_1536E2
+ setvar VAR_TEMP_D, 1
+
+LavaridgeTown_Gym_1F_EventScript_1536E2:: @ 81536E2
+ goto_if_trainer_defeated OPPONENT_SADIE, LavaridgeTown_Gym_1F_EventScript_1536F0
+ setvar VAR_TEMP_E, 1
+
+LavaridgeTown_Gym_1F_EventScript_1536F0:: @ 81536F0
+ goto_if_trainer_defeated OPPONENT_ANDY, LavaridgeTown_Gym_1F_EventScript_1536FE
+ setvar VAR_TEMP_F, 1
+
+LavaridgeTown_Gym_1F_EventScript_1536FE:: @ 81536FE
+ return
+
+LavaridgeTown_Gym_1F_EventScript_1536FF:: @ 81536FF
+ goto_if_trainer_defeated OPPONENT_COLE, LavaridgeTown_Gym_1F_EventScript_15370C
+ setobjectmovementtype 2, 63
+
+LavaridgeTown_Gym_1F_EventScript_15370C:: @ 815370C
+ goto_if_trainer_defeated OPPONENT_ZANE, LavaridgeTown_Gym_1F_EventScript_153719
+ setobjectmovementtype 3, 63
+
+LavaridgeTown_Gym_1F_EventScript_153719:: @ 8153719
+ goto_if_trainer_defeated OPPONENT_AXLE, LavaridgeTown_Gym_1F_EventScript_153726
+ setobjectmovementtype 4, 63
+
+LavaridgeTown_Gym_1F_EventScript_153726:: @ 8153726
+ goto_if_trainer_defeated OPPONENT_SADIE, LavaridgeTown_Gym_1F_EventScript_153733
+ setobjectmovementtype 5, 63
+
+LavaridgeTown_Gym_1F_EventScript_153733:: @ 8153733
+ goto_if_trainer_defeated OPPONENT_ANDY, LavaridgeTown_Gym_1F_EventScript_153740
+ setobjectmovementtype 7, 63
+
+LavaridgeTown_Gym_1F_EventScript_153740:: @ 8153740
+ return
+
+LavaridgeTown_Gym_1F_EventScript_153741:: @ 8153741
+ trainerbattle 1, OPPONENT_FLANNERY, 0, LavaridgeTown_Gym_1F_Text_176801, LavaridgeTown_Gym_1F_Text_176960, LavaridgeTown_Gym_1F_EventScript_153766
+ goto_if_unset FLAG_RECEIVED_TM50, LavaridgeTown_Gym_1F_EventScript_1537A7
+ msgbox LavaridgeTown_Gym_1F_Text_176C4A, 4
+ release
+ end
+
+LavaridgeTown_Gym_1F_EventScript_153766:: @ 8153766
+ message LavaridgeTown_Gym_1F_Text_176A62
+ waitmessage
+ call LavaridgeTown_Gym_1F_EventScript_1A02C5
+ msgbox LavaridgeTown_Gym_1F_Text_176A8C, 4
+ setflag FLAG_DEFEATED_LAVARIDGE_GYM
+ setflag FLAG_BADGE04_GET
+ addvar VAR_PETALBURG_GYM_STATE, 1
+ compare VAR_PETALBURG_GYM_STATE, 6
+ call_if_eq LavaridgeTown_Gym_1F_EventScript_1A00FB
+ setvar VAR_SPECIAL_8, 4
+ call LavaridgeTown_Gym_1F_EventScript_1A01C0
+ setflag FLAG_HIDE_WALLY_WANDAS_HOUSE
+ setvar VAR_LAVARIDGE_RIVAL_STATE, 1
+ goto LavaridgeTown_Gym_1F_EventScript_1537A7
+ end
+
+LavaridgeTown_Gym_1F_EventScript_1537A7:: @ 81537A7
+ giveitem_std ITEM_TM50_OVERHEAT
+ compare RESULT, 0
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_1A029B
+ msgbox LavaridgeTown_Gym_1F_Text_176B8F, 4
+ setflag FLAG_RECEIVED_TM50
+ release
+ end
+
+LavaridgeTown_Gym_1F_EventScript_1537CB:: @ 81537CB
+ trainerbattle 2, OPPONENT_COLE, 2, LavaridgeTown_Gym_1F_Text_176432, LavaridgeTown_Gym_1F_Text_17644F, LavaridgeTown_Gym_1F_EventScript_1537E6
+ msgbox LavaridgeTown_Gym_1F_Text_176472, 6
+ end
+
+LavaridgeTown_Gym_1F_EventScript_1537E6:: @ 81537E6
+ call LavaridgeTown_Gym_1F_EventScript_15369F
+ release
+ end
+
+LavaridgeTown_Gym_1F_EventScript_1537ED:: @ 81537ED
+ trainerbattle 2, OPPONENT_AXLE, 4, LavaridgeTown_Gym_1F_Text_1764D1, LavaridgeTown_Gym_1F_Text_176516, LavaridgeTown_Gym_1F_EventScript_1537E6
+ msgbox LavaridgeTown_Gym_1F_Text_176537, 6
+ end
+
+LavaridgeTown_Gym_1F_EventScript_153808:: @ 8153808
+ trainerbattle 2, OPPONENT_ANDY, 7, LavaridgeTown_Gym_1F_Text_17658D, LavaridgeTown_Gym_1F_Text_17663F, LavaridgeTown_Gym_1F_EventScript_1537E6
+ msgbox LavaridgeTown_Gym_1F_Text_176660, 6
+ end
+
+LavaridgeTown_Gym_1F_EventScript_153823:: @ 8153823
+ trainerbattle 2, OPPONENT_SADIE, 5, LavaridgeTown_Gym_1F_Text_176784, LavaridgeTown_Gym_1F_Text_1767A6, LavaridgeTown_Gym_1F_EventScript_1537E6
+ msgbox LavaridgeTown_Gym_1F_Text_1767C1, 6
+ end
+
+LavaridgeTown_Gym_1F_EventScript_15383E:: @ 815383E
+ trainerbattle 2, OPPONENT_ZANE, 3, LavaridgeTown_Gym_1F_Text_1766D2, LavaridgeTown_Gym_1F_Text_1766FE, LavaridgeTown_Gym_1F_EventScript_1537E6
+ msgbox LavaridgeTown_Gym_1F_Text_17671D, 6
+ end
+
+LavaridgeTown_Gym_1F_EventScript_153859:: @ 8153859
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_LAVARIDGE_GYM, LavaridgeTown_Gym_1F_EventScript_15386E
+ msgbox LavaridgeTown_Gym_1F_Text_176312, 4
+ release
+ end
+
+LavaridgeTown_Gym_1F_EventScript_15386E:: @ 815386E
+ msgbox LavaridgeTown_Gym_1F_Text_17640C, 4
+ release
+ end
+
+LavaridgeTown_Gym_1F_EventScript_153878:: @ 8153878
+ lockall
+ goto_if_set FLAG_BADGE04_GET, LavaridgeTown_Gym_1F_EventScript_153898
+ goto LavaridgeTown_Gym_1F_EventScript_1538A2
+ end
+
+LavaridgeTown_Gym_1F_EventScript_153888:: @ 8153888
+ lockall
+ goto_if_set FLAG_BADGE04_GET, LavaridgeTown_Gym_1F_EventScript_153898
+ goto LavaridgeTown_Gym_1F_EventScript_1538A2
+ end
+
+LavaridgeTown_Gym_1F_EventScript_153898:: @ 8153898
+ msgbox LavaridgeTown_Gym_1F_Text_176CCA, 4
+ releaseall
+ end
+
+LavaridgeTown_Gym_1F_EventScript_1538A2:: @ 81538A2
+ msgbox LavaridgeTown_Gym_1F_Text_176CAF, 4
+ releaseall
+ end
diff --git a/data/maps/LavaridgeTown_Gym_B1F/scripts.inc b/data/maps/LavaridgeTown_Gym_B1F/scripts.inc
new file mode 100644
index 000000000..58178722c
--- /dev/null
+++ b/data/maps/LavaridgeTown_Gym_B1F/scripts.inc
@@ -0,0 +1,2 @@
+LavaridgeTown_Gym_B1F_MapScripts:: @ 81538AC
+ .byte 0
diff --git a/data/maps/LavaridgeTown_HerbShop/scripts.inc b/data/maps/LavaridgeTown_HerbShop/scripts.inc
new file mode 100644
index 000000000..71fc2cbfe
--- /dev/null
+++ b/data/maps/LavaridgeTown_HerbShop/scripts.inc
@@ -0,0 +1,43 @@
+LavaridgeTown_HerbShop_MapScripts:: @ 8153628
+ .byte 0
+
+LavaridgeTown_HerbShop_EventScript_153629:: @ 8153629
+ lock
+ faceplayer
+ message LavaridgeTown_HerbShop_Text_17615C
+ waitmessage
+ pokemart LavaridgeTown_HerbShop_Items
+ msgbox LavaridgeTown_HerbShop_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LavaridgeTown_HerbShop_Items:: @ 8153640
+ .2byte ITEM_ENERGY_POWDER
+ .2byte ITEM_ENERGY_ROOT
+ .2byte ITEM_HEAL_POWDER
+ .2byte ITEM_REVIVAL_HERB
+ .2byte ITEM_NONE
+ release
+ end
+
+LavaridgeTown_HerbShop_EventScript_15364C:: @ 815364C
+ msgbox LavaridgeTown_HerbShop_Text_1762A3, 2
+ end
+
+LavaridgeTown_HerbShop_EventScript_153655:: @ 8153655
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_CHARCOAL, LavaridgeTown_HerbShop_EventScript_153684
+ msgbox LavaridgeTown_HerbShop_Text_1761A2, 4
+ giveitem_std ITEM_CHARCOAL
+ compare RESULT, 0
+ goto_if_eq LavaridgeTown_HerbShop_EventScript_1A029B
+ setflag FLAG_RECEIVED_CHARCOAL
+ release
+ end
+
+LavaridgeTown_HerbShop_EventScript_153684:: @ 8153684
+ msgbox LavaridgeTown_HerbShop_Text_176209, 4
+ release
+ end
diff --git a/data/maps/LavaridgeTown_House/scripts.inc b/data/maps/LavaridgeTown_House/scripts.inc
new file mode 100644
index 000000000..6fc14e0b6
--- /dev/null
+++ b/data/maps/LavaridgeTown_House/scripts.inc
@@ -0,0 +1,16 @@
+LavaridgeTown_House_MapScripts:: @ 81538AD
+ .byte 0
+
+LavaridgeTown_House_EventScript_1538AE:: @ 81538AE
+ msgbox LavaridgeTown_House_Text_176D07, 2
+ end
+
+LavaridgeTown_House_EventScript_1538B7:: @ 81538B7
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_ZIGZAGOON, 0
+ msgbox LavaridgeTown_House_Text_176D94, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/LavaridgeTown_Mart/scripts.inc b/data/maps/LavaridgeTown_Mart/scripts.inc
new file mode 100644
index 000000000..99b567e06
--- /dev/null
+++ b/data/maps/LavaridgeTown_Mart/scripts.inc
@@ -0,0 +1,35 @@
+LavaridgeTown_Mart_MapScripts:: @ 81538CA
+ .byte 0
+
+LavaridgeTown_Mart_EventScript_1538CB:: @ 81538CB
+ lock
+ faceplayer
+ message LavaridgeTown_Mart_Text_1A0BE4
+ waitmessage
+ pokemart LavaridgeTown_Mart_Items
+ msgbox LavaridgeTown_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LavaridgeTown_Mart_Items:: @ 81538E4
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_AWAKENING
+ .2byte ITEM_BURN_HEAL
+ .2byte ITEM_REVIVE
+ .2byte ITEM_SUPER_REPEL
+ .2byte ITEM_X_SPEED
+ .2byte ITEM_NONE
+ release
+ end
+
+LavaridgeTown_Mart_EventScript_1538FA:: @ 81538FA
+ msgbox LavaridgeTown_Mart_Text_176DA6, 2
+ end
+
+LavaridgeTown_Mart_EventScript_153903:: @ 8153903
+ msgbox LavaridgeTown_Mart_Text_176E1A, 2
+ end
diff --git a/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc b/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..4e9c51380
--- /dev/null
+++ b/data/maps/LavaridgeTown_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,28 @@
+LavaridgeTown_PokemonCenter_1F_MapScripts:: @ 815390C
+ map_script 3, LavaridgeTown_PokemonCenter_1F_MapScript1_153912
+ .byte 0
+
+LavaridgeTown_PokemonCenter_1F_MapScript1_153912:: @ 8153912
+ setrespawn 16
+ call LavaridgeTown_PokemonCenter_1F_EventScript_19FD1B
+ end
+
+LavaridgeTown_PokemonCenter_1F_EventScript_15391B:: @ 815391B
+ setvar VAR_SPECIAL_B, 1
+ call LavaridgeTown_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+LavaridgeTown_PokemonCenter_1F_EventScript_153929:: @ 8153929
+ msgbox LavaridgeTown_PokemonCenter_1F_Text_176F08, 2
+ end
+
+LavaridgeTown_PokemonCenter_1F_EventScript_153932:: @ 8153932
+ msgbox LavaridgeTown_PokemonCenter_1F_Text_176E92, 2
+ end
+
+LavaridgeTown_PokemonCenter_1F_EventScript_15393B:: @ 815393B
+ msgbox LavaridgeTown_PokemonCenter_1F_Text_176F7A, 2
+ end
diff --git a/data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc b/data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..daaeb0b93
--- /dev/null
+++ b/data/maps/LavaridgeTown_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+LavaridgeTown_PokemonCenter_2F_MapScripts:: @ 8153944
+ map_script 2, LavaridgeTown_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, LavaridgeTown_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, LavaridgeTown_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+LavaridgeTown_PokemonCenter_2F_EventScript_153954:: @ 8153954
+ call LavaridgeTown_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+LavaridgeTown_PokemonCenter_2F_EventScript_15395A:: @ 815395A
+ call LavaridgeTown_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+LavaridgeTown_PokemonCenter_2F_EventScript_153960:: @ 8153960
+ call LavaridgeTown_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/LilycoveCity/scripts.inc b/data/maps/LilycoveCity/scripts.inc
new file mode 100644
index 000000000..f632a4d41
--- /dev/null
+++ b/data/maps/LilycoveCity/scripts.inc
@@ -0,0 +1,408 @@
+LilycoveCity_MapScripts:: @ 814CA15
+ map_script 3, LilycoveCity_MapScript1_14CA20
+ map_script 1, LilycoveCity_MapScript1_14CA3F
+ .byte 0
+
+LilycoveCity_MapScript1_14CA20:: @ 814CA20
+ setflag FLAG_VISITED_LILYCOVE_CITY
+ setvar VAR_LINK_CONTEST_ROOM_STATE, 0
+ setflag FLAG_HIDE_CONTEST_REPORTER_LILYCOVE
+ call_if_set FLAG_SYS_WEATHER_CTRL, LilycoveCity_EventScript_1A02C1
+ call LilycoveCity_EventScript_1A0196
+ call LilycoveCity_EventScript_1A014E
+ end
+
+LilycoveCity_MapScript1_14CA3F:: @ 814CA3F
+ .ifndef SAPPHIRE
+ setmetatile 69, 4, 169, 1
+ setmetatile 70, 4, 680, 1
+ setmetatile 71, 4, 681, 1
+ setmetatile 72, 4, 682, 1
+ setmetatile 69, 5, 145, 1
+ setmetatile 70, 5, 688, 1
+ setmetatile 71, 5, 689, 0
+ setmetatile 72, 5, 690, 1
+ setmetatile 69, 6, 446, 0
+ setmetatile 70, 6, 447, 0
+ setmetatile 71, 6, 368, 0
+ setmetatile 72, 6, 445, 0
+ .endif
+ call_if_unset FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE, LilycoveCity_EventScript_14CABE
+ call_if_set FLAG_BADGE07_GET, LilycoveCity_EventScript_14CB2B
+ end
+
+LilycoveCity_EventScript_14CABE:: @ 814CABE
+ setmetatile 76, 12, 656, 1
+ setmetatile 77, 12, 657, 1
+ setmetatile 76, 13, 672, 1
+ setmetatile 77, 13, 673, 1
+ setmetatile 76, 14, 664, 1
+ setmetatile 77, 14, 665, 1
+ setmetatile 76, 15, 672, 1
+ setmetatile 77, 15, 673, 1
+ setmetatile 77, 16, 664, 1
+ setmetatile 78, 16, 665, 1
+ setmetatile 77, 17, 672, 1
+ setmetatile 78, 17, 673, 1
+ return
+
+LilycoveCity_EventScript_14CB2B:: @ 814CB2B
+ setmetatile 69, 4, 169, 1
+ setmetatile 70, 4, 169, 1
+ setmetatile 71, 4, 169, 1
+ setmetatile 72, 4, 169, 1
+ setmetatile 69, 5, 145, 1
+ setmetatile 70, 5, 145, 1
+ setmetatile 71, 5, 145, 1
+ setmetatile 72, 5, 145, 1
+ return
+
+LilycoveCity_EventScript_14CB74:: @ 814CB74
+ lock
+ faceplayer
+ dodailyevents
+ goto_if_set FLAG_DAILY_RECEIVED_BERRY_LILYCOVE, LilycoveCity_EventScript_14CBB4
+ msgbox LilycoveCity_Text_1C5A7A, 4
+ random 10
+ addvar RESULT, ITEM_CHERI_BERRY
+ giveitem_std RESULT
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_EventScript_1A029B
+ setflag FLAG_DAILY_RECEIVED_BERRY_LILYCOVE
+ msgbox LilycoveCity_Text_1C5B1D, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CBB4:: @ 814CBB4
+ msgbox LilycoveCity_Text_1C5B5D, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CBBE:: @ 814CBBE
+ msgbox LilycoveCity_Text_1686C9, 2
+ end
+
+LilycoveCity_EventScript_14CBC7:: @ 814CBC7
+ lock
+ faceplayer
+ goto_if_set FLAG_BADGE07_GET, LilycoveCity_EventScript_14CBDC
+ msgbox LilycoveCity_Text_168750, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CBDC:: @ 814CBDC
+ msgbox LilycoveCity_Text_168791, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CBE6:: @ 814CBE6
+ msgbox LilycoveCity_Text_168819, 2
+ end
+
+LilycoveCity_EventScript_14CBEF:: @ 814CBEF
+ lock
+ faceplayer
+ goto_if_set FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE, LilycoveCity_EventScript_14CC04
+ msgbox LilycoveCity_Text_1688C1, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CC04:: @ 814CC04
+ msgbox LilycoveCity_Text_168934, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CC0E:: @ 814CC0E
+ lock
+ faceplayer
+ goto_if_set FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE, LilycoveCity_EventScript_14CC23
+ msgbox LilycoveCity_Text_1689BF, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CC23:: @ 814CC23
+ msgbox LilycoveCity_Text_168A55, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CC2D:: @ 814CC2D
+ msgbox LilycoveCity_Text_168A8D, 2
+ end
+
+LilycoveCity_EventScript_14CC36:: @ 814CC36
+ msgbox LilycoveCity_Text_168B1F, 3
+ end
+
+LilycoveCity_EventScript_14CC3F:: @ 814CC3F
+ msgbox LilycoveCity_Text_168B9B, 3
+ end
+
+LilycoveCity_EventScript_14CC48:: @ 814CC48
+ lock
+ faceplayer
+ goto_if_set FLAG_BADGE07_GET, LilycoveCity_EventScript_14CC5D
+ msgbox LilycoveCity_Text_168C16, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CC5D:: @ 814CC5D
+ msgbox LilycoveCity_Text_168D15, 4
+ release
+ end
+
+LilycoveCity_EventScript_14CC67:: @ 814CC67
+ msgbox LilycoveCity_Text_168DA9, 3
+ end
+
+LilycoveCity_EventScript_14CC70:: @ 814CC70
+ msgbox LilycoveCity_Text_168DE1, 3
+ end
+
+LilycoveCity_EventScript_14CC79:: @ 814CC79
+ msgbox LilycoveCity_Text_168E2F, 3
+ end
+
+LilycoveCity_EventScript_14CC82:: @ 814CC82
+ lockall
+ specialvar VAR_SPECIAL_4, sub_80C4D50
+ switch VAR_SPECIAL_4
+ case 0, LilycoveCity_EventScript_14CCA2
+ msgbox LilycoveCity_Text_168EA4, 4
+ releaseall
+ end
+
+LilycoveCity_EventScript_14CCA2:: @ 814CCA2
+ msgbox LilycoveCity_Text_168E67, 4
+ releaseall
+ end
+
+LilycoveCity_EventScript_14CCAC:: @ 814CCAC
+ lockall
+ goto_if_set FLAG_SYS_GAME_CLEAR, LilycoveCity_EventScript_14CCC0
+ msgbox LilycoveCity_Text_168EDA, 4
+ releaseall
+ end
+
+LilycoveCity_EventScript_14CCC0:: @ 814CCC0
+ msgbox LilycoveCity_Text_168F57, 4
+ releaseall
+ end
+
+LilycoveCity_EventScript_14CCCA:: @ 814CCCA
+ msgbox LilycoveCity_Text_168FA1, 3
+ end
+
+LilycoveCity_EventScript_14CCD3:: @ 814CCD3
+ msgbox LilycoveCity_Text_168FF3, 3
+ end
+
+LilycoveCity_EventScript_14CCDC:: @ 814CCDC
+ msgbox LilycoveCity_Text_169072, 3
+ end
+
+LilycoveCity_EventScript_14CCE5:: @ 814CCE5
+ lockall
+ goto_if_set FLAG_MET_WAILMER_TRAINER, LilycoveCity_EventScript_14CD18
+ msgbox LilycoveCity_Text_16864A, 4
+ applymovement LAST_TALKED, LilycoveCity_Movement_1A0839
+ waitmovement 0
+ msgbox LilycoveCity_Text_168675, 4
+ applymovement LAST_TALKED, LilycoveCity_Movement_1A083D
+ waitmovement 0
+ setflag FLAG_MET_WAILMER_TRAINER
+ releaseall
+ end
+
+LilycoveCity_EventScript_14CD18:: @ 814CD18
+ msgbox LilycoveCity_Text_16864A, 4
+ releaseall
+ end
+
+LilycoveCity_EventScript_14CD22:: @ 814CD22
+ msgbox LilycoveCity_Text_168455, 2
+ end
+
+LilycoveCity_EventScript_14CD2B:: @ 814CD2B
+ msgbox LilycoveCity_Text_1684C2, 2
+ end
+
+LilycoveCity_EventScript_14CD34:: @ 814CD34
+ msgbox LilycoveCity_Text_168573, 2
+ end
+
+LilycoveCity_EventScript_14CD3D:: @ 814CD3D
+ msgbox LilycoveCity_Text_1685EB, 2
+ end
+
+LilycoveCity_EventScript_14CD46:: @ 814CD46
+ lock
+ faceplayer
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_EventScript_14CD60
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_EventScript_14CDD3
+ end
+
+LilycoveCity_EventScript_14CD60:: @ 814CD60
+ playbgm BGM_GIRL_SUP, TRUE
+ call_if_set FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE, LilycoveCity_EventScript_14CDB0
+ call_if_unset FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE, LilycoveCity_EventScript_14CDB9
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_EventScript_14CDC2
+ msgbox LilycoveCity_Text_167B94, 4
+ switch VAR_STARTER_MON
+ case 0, LilycoveCity_EventScript_14CE46
+ case 1, LilycoveCity_EventScript_14CE56
+ case 2, LilycoveCity_EventScript_14CE66
+ end
+
+LilycoveCity_EventScript_14CDB0:: @ 814CDB0
+ msgbox LilycoveCity_Text_167B55, MSGBOX_YESNO
+ return
+
+LilycoveCity_EventScript_14CDB9:: @ 814CDB9
+ msgbox LilycoveCity_Text_1679BF, MSGBOX_YESNO
+ return
+
+LilycoveCity_EventScript_14CDC2:: @ 814CDC2
+ setflag FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE
+ msgbox LilycoveCity_Text_167AEB, 4
+ savebgm 0
+ fadedefaultbgm
+ release
+ end
+
+LilycoveCity_EventScript_14CDD3:: @ 814CDD3
+ playbgm BGM_BOY_SUP, TRUE
+ call_if_set FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE, LilycoveCity_EventScript_14CE23
+ call_if_unset FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE, LilycoveCity_EventScript_14CE2C
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_EventScript_14CE35
+ msgbox LilycoveCity_Text_1680A9, 4
+ switch VAR_STARTER_MON
+ case 0, LilycoveCity_EventScript_14CE76
+ case 1, LilycoveCity_EventScript_14CE86
+ case 2, LilycoveCity_EventScript_14CE96
+ end
+
+LilycoveCity_EventScript_14CE23:: @ 814CE23
+ msgbox LilycoveCity_Text_168067, MSGBOX_YESNO
+ return
+
+LilycoveCity_EventScript_14CE2C:: @ 814CE2C
+ msgbox LilycoveCity_Text_167F75, MSGBOX_YESNO
+ return
+
+LilycoveCity_EventScript_14CE35:: @ 814CE35
+ setflag FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE
+ msgbox LilycoveCity_Text_16802C, 4
+ savebgm 0
+ fadedefaultbgm
+ release
+ end
+
+LilycoveCity_EventScript_14CE46:: @ 814CE46
+ trainerbattle 3, OPPONENT_MAY_11, 0, LilycoveCity_Text_167BD5
+ goto LilycoveCity_EventScript_14CEA6
+ end
+
+LilycoveCity_EventScript_14CE56:: @ 814CE56
+ trainerbattle 3, OPPONENT_MAY_12, 0, LilycoveCity_Text_167BD5
+ goto LilycoveCity_EventScript_14CEA6
+ end
+
+LilycoveCity_EventScript_14CE66:: @ 814CE66
+ trainerbattle 3, OPPONENT_MAY_10, 0, LilycoveCity_Text_167BD5
+ goto LilycoveCity_EventScript_14CEA6
+ end
+
+LilycoveCity_EventScript_14CE76:: @ 814CE76
+ trainerbattle 3, OPPONENT_BRENDAN_11, 0, LilycoveCity_Text_1680E4
+ goto LilycoveCity_EventScript_14CF12
+ end
+
+LilycoveCity_EventScript_14CE86:: @ 814CE86
+ trainerbattle 3, OPPONENT_BRENDAN_12, 0, LilycoveCity_Text_1680E4
+ goto LilycoveCity_EventScript_14CF12
+ end
+
+LilycoveCity_EventScript_14CE96:: @ 814CE96
+ trainerbattle 3, OPPONENT_BRENDAN_10, 0, LilycoveCity_Text_1680E4
+ goto LilycoveCity_EventScript_14CF12
+ end
+
+LilycoveCity_EventScript_14CEA6:: @ 814CEA6
+ msgbox LilycoveCity_Text_167C6B, 4
+ setvar RESULT, 0
+ call_if_set FLAG_BADGE06_GET, LilycoveCity_EventScript_14CEDE
+ compare RESULT, 0
+ call_if_eq LilycoveCity_EventScript_14CEEE
+ compare RESULT, 1
+ call_if_eq LilycoveCity_EventScript_14CEF7
+ clearflag FLAG_HIDE_MAY_UPSTAIRS
+ clearflag FLAG_HIDE_MAY_PICHU_DOLL
+ goto LilycoveCity_EventScript_14CF6B
+ end
+
+LilycoveCity_EventScript_14CEDE:: @ 814CEDE
+ goto_if_set FLAG_BADGE08_GET, LilycoveCity_EventScript_14CEE8
+ return
+
+LilycoveCity_EventScript_14CEE8:: @ 814CEE8
+ setvar RESULT, 1
+ return
+
+LilycoveCity_EventScript_14CEEE:: @ 814CEEE
+ msgbox LilycoveCity_Text_167D08, 4
+ return
+
+LilycoveCity_EventScript_14CEF7:: @ 814CEF7
+ goto_if_set FLAG_SYS_GAME_CLEAR, LilycoveCity_EventScript_14CF09
+ msgbox LilycoveCity_Text_167DDD, 4
+ return
+
+LilycoveCity_EventScript_14CF09:: @ 814CF09
+ msgbox LilycoveCity_Text_167EAA, 4
+ return
+
+LilycoveCity_EventScript_14CF12:: @ 814CF12
+ msgbox LilycoveCity_Text_168149, 4
+ setvar RESULT, 0
+ call_if_set FLAG_BADGE06_GET, LilycoveCity_EventScript_14CEDE
+ compare RESULT, 0
+ call_if_eq LilycoveCity_EventScript_14CF47
+ compare RESULT, 1
+ call_if_eq LilycoveCity_EventScript_14CF50
+ clearflag FLAG_HIDE_BRENDAN_UPSTAIRS
+ goto LilycoveCity_EventScript_14CF6B
+ end
+
+LilycoveCity_EventScript_14CF47:: @ 814CF47
+ msgbox LilycoveCity_Text_1681EA, 4
+ return
+
+LilycoveCity_EventScript_14CF50:: @ 814CF50
+ goto_if_set FLAG_SYS_GAME_CLEAR, LilycoveCity_EventScript_14CF62
+ msgbox LilycoveCity_Text_168282, 4
+ return
+
+LilycoveCity_EventScript_14CF62:: @ 814CF62
+ msgbox LilycoveCity_Text_16835A, 4
+ return
+
+LilycoveCity_EventScript_14CF6B:: @ 814CF6B
+ closemessage
+ applymovement LAST_TALKED, LilycoveCity_Movement_1A0845
+ waitmovement 0
+ delay 50
+ setfieldeffectargument 0, 1
+ dofieldeffect FLDEFF_NPCFLY_OUT
+ delay 15
+ removeobject LAST_TALKED
+ waitfieldeffect FLDEFF_NPCFLY_OUT
+ savebgm 0
+ fadedefaultbgm
+ setflag FLAG_MET_RIVAL_LILYCOVE
+ release
+ end
diff --git a/data/maps/LilycoveCity_ContestHall/scripts.inc b/data/maps/LilycoveCity_ContestHall/scripts.inc
new file mode 100644
index 000000000..944857a21
--- /dev/null
+++ b/data/maps/LilycoveCity_ContestHall/scripts.inc
@@ -0,0 +1,255 @@
+LilycoveCity_ContestHall_MapScripts:: @ 8159099
+ .byte 0
+
+ .byte 0 @ XXX
+
+LilycoveCity_ContestHall_EventScript_15909B:: @ 815909B
+ msgbox LilycoveCity_ContestHall_Text_1890D4, 2
+ end
+
+LilycoveCity_ContestHall_EventScript_1590A4:: @ 81590A4
+ msgbox LilycoveCity_ContestHall_Text_18915F, 2
+ end
+
+LilycoveCity_ContestHall_EventScript_1590AD:: @ 81590AD
+ msgbox LilycoveCity_ContestHall_Text_189221, 2
+ end
+
+LilycoveCity_ContestHall_EventScript_1590B6:: @ 81590B6
+ msgbox LilycoveCity_ContestHall_Text_189299, 2
+ end
+
+LilycoveCity_ContestHall_EventScript_1590BF:: @ 81590BF
+ msgbox LilycoveCity_ContestHall_Text_189301, 2
+ lockall
+ applymovement 4, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1590D4:: @ 81590D4
+ msgbox LilycoveCity_ContestHall_Text_189366, 2
+ lockall
+ applymovement 5, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1590E9:: @ 81590E9
+ msgbox LilycoveCity_ContestHall_Text_1893CE, 2
+ lockall
+ applymovement 6, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1590FE:: @ 81590FE
+ msgbox LilycoveCity_ContestHall_Text_189463, 2
+ lockall
+ applymovement 7, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159113:: @ 8159113
+ msgbox LilycoveCity_ContestHall_Text_189512, 2
+ lockall
+ applymovement 8, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159128:: @ 8159128
+ msgbox LilycoveCity_ContestHall_Text_18956B, 2
+ lockall
+ applymovement 9, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_15913D:: @ 815913D
+ msgbox LilycoveCity_ContestHall_Text_1895F3, 3
+ end
+
+LilycoveCity_ContestHall_EventScript_159146:: @ 8159146
+ msgbox LilycoveCity_ContestHall_Text_189617, 2
+ lockall
+ applymovement 12, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_15915B:: @ 815915B
+ msgbox LilycoveCity_ContestHall_Text_1896BE, 2
+ lockall
+ applymovement 22, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159170:: @ 8159170
+ msgbox LilycoveCity_ContestHall_Text_1896FE, 2
+ lockall
+ applymovement 11, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159185:: @ 8159185
+ msgbox LilycoveCity_ContestHall_Text_189771, 2
+ lockall
+ applymovement 13, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_15919A:: @ 815919A
+ msgbox LilycoveCity_ContestHall_Text_1897AA, 2
+ lockall
+ applymovement 14, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1591AF:: @ 81591AF
+ msgbox LilycoveCity_ContestHall_Text_18980B, 2
+ lockall
+ applymovement 15, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1591C4:: @ 81591C4
+ msgbox LilycoveCity_ContestHall_Text_189874, 2
+ lockall
+ applymovement 16, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1591D9:: @ 81591D9
+ msgbox LilycoveCity_ContestHall_Text_18990A, 2
+ lockall
+ applymovement 17, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1591EE:: @ 81591EE
+ msgbox LilycoveCity_ContestHall_Text_189981, 2
+ lockall
+ applymovement 18, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159203:: @ 8159203
+ msgbox LilycoveCity_ContestHall_Text_189A1D, 2
+ lockall
+ applymovement 19, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159218:: @ 8159218
+ msgbox LilycoveCity_ContestHall_Text_189A82, 2
+ lockall
+ applymovement 21, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_15922D:: @ 815922D
+ msgbox LilycoveCity_ContestHall_Text_189AE1, 2
+ lockall
+ applymovement 20, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159242:: @ 8159242
+ msgbox LilycoveCity_ContestHall_Text_189B4E, 2
+ lockall
+ applymovement 23, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159257:: @ 8159257
+ msgbox LilycoveCity_ContestHall_Text_189BBF, 2
+ lockall
+ applymovement 24, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_15926C:: @ 815926C
+ msgbox LilycoveCity_ContestHall_Text_189C29, 2
+ lockall
+ applymovement 25, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159281:: @ 8159281
+ msgbox LilycoveCity_ContestHall_Text_189C67, 2
+ lockall
+ applymovement 26, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_159296:: @ 8159296
+ msgbox LilycoveCity_ContestHall_Text_189CB3, 2
+ lockall
+ applymovement 27, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1592AB:: @ 81592AB
+ msgbox LilycoveCity_ContestHall_Text_189D11, 2
+ lockall
+ applymovement 28, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1592C0:: @ 81592C0
+ lockall
+ applymovement 29, LilycoveCity_ContestHall_Movement_1A0839
+ waitmovement 0
+ delay 25
+ applymovement 29, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ msgbox LilycoveCity_ContestHall_Text_189DA2, 3
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1592E2:: @ 81592E2
+ msgbox LilycoveCity_ContestHall_Text_189E5F, 2
+ lockall
+ applymovement 31, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_1592F7:: @ 81592F7
+ msgbox LilycoveCity_ContestHall_Text_189DF3, 2
+ lockall
+ applymovement 30, LilycoveCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_ContestHall_EventScript_15930C:: @ 815930C
+ msgbox LilycoveCity_ContestHall_Text_189EF3, 3
+ end
+
+LilycoveCity_ContestHall_EventScript_159315:: @ 8159315
+ msgbox LilycoveCity_ContestHall_Text_189F29, 3
+ end
+
+LilycoveCity_ContestHall_EventScript_15931E:: @ 815931E
+ msgbox LilycoveCity_ContestHall_Text_189F5C, 3
+ end
diff --git a/data/maps/LilycoveCity_ContestLobby/scripts.inc b/data/maps/LilycoveCity_ContestLobby/scripts.inc
new file mode 100644
index 000000000..4784a4903
--- /dev/null
+++ b/data/maps/LilycoveCity_ContestLobby/scripts.inc
@@ -0,0 +1,766 @@
+LilycoveCity_ContestLobby_MapScripts:: @ 8158866
+ map_script 3, LilycoveCity_ContestLobby_MapScript1_158871
+ map_script 2, LilycoveCity_ContestLobby_MapScript2_158877
+ .byte 0
+
+LilycoveCity_ContestLobby_MapScript1_158871:: @ 8158871
+ call LilycoveCity_ContestLobby_EventScript_1AE188
+ end
+
+LilycoveCity_ContestLobby_MapScript2_158877:: @ 8158877
+ map_script_2 VAR_LILYCOVE_CONTEST_LOBBY_STATE, 1, LilycoveCity_ContestLobby_EventScript_158889
+ map_script_2 VAR_LILYCOVE_CONTEST_LOBBY_STATE, 2, LilycoveCity_ContestLobby_EventScript_158A5B
+ .2byte 0
+
+LilycoveCity_ContestLobby_EventScript_158889:: @ 8158889
+ goto_if_set FLAG_HIDE_LILYCOVE_MUSEUM_CURATOR, LilycoveCity_ContestLobby_EventScript_158898
+ setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0
+ end
+
+LilycoveCity_ContestLobby_EventScript_158898:: @ 8158898
+ lockall
+ addobject 4
+ applymovement 4, LilycoveCity_ContestLobby_Movement_158A3B
+ waitmovement 4
+ applymovement 255, LilycoveCity_ContestLobby_Movement_158A4C
+ waitmovement 0
+ msgbox LilycoveCity_ContestLobby_Text_18890F, 4
+ lockall
+ fadescreen 1
+ drawcontestwinner 0
+ lockall
+ msgbox LilycoveCity_ContestLobby_Text_1889FD, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_1588DE
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158918
+ releaseall
+ end
+
+LilycoveCity_ContestLobby_EventScript_1588DE:: @ 81588DE
+ msgbox LilycoveCity_ContestLobby_Text_188AE8, 4
+ closemessage
+ special sub_80C4CEC
+ setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0
+ specialvar RESULT, GiveMonArtistRibbon
+ compare RESULT, 1
+ call_if_eq LilycoveCity_ContestLobby_EventScript_158948
+ applymovement 4, LilycoveCity_ContestLobby_Movement_158A43
+ waitmovement 0
+ removeobject 4
+ call LilycoveCity_ContestLobby_EventScript_158994
+ call LilycoveCity_ContestLobby_EventScript_1589EA
+ releaseall
+ end
+
+LilycoveCity_ContestLobby_EventScript_158918:: @ 8158918
+ msgbox LilycoveCity_ContestLobby_Text_188C41, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_1588DE
+ msgbox LilycoveCity_ContestLobby_Text_188CBD, 4
+ closemessage
+ applymovement 4, LilycoveCity_ContestLobby_Movement_158A43
+ waitmovement 0
+ setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0
+ removeobject 4
+ releaseall
+ end
+
+LilycoveCity_ContestLobby_EventScript_158948:: @ 8158948
+ incrementgamestat GAME_STAT_RECEIVED_RIBBONS
+ special sub_80C4858
+ applymovement 4, LilycoveCity_ContestLobby_Movement_158A4E
+ waitmovement 0
+ playse SE_PIN
+ applymovement 4, LilycoveCity_ContestLobby_Movement_1A0833
+ waitmovement 0
+ applymovement 4, LilycoveCity_ContestLobby_Movement_158A52
+ waitmovement 0
+ msgbox LilycoveCity_ContestLobby_Text_188BB5, 4
+ playfanfare BGM_FANFA4
+ msgbox LilycoveCity_ContestLobby_Text_188C03, 4
+ waitfanfare
+ msgbox LilycoveCity_ContestLobby_Text_188C19, 4
+ msgbox LilycoveCity_ContestLobby_Text_188C32, 4
+ closemessage
+ return
+
+LilycoveCity_ContestLobby_EventScript_158994:: @ 8158994
+ specialvar VAR_SPECIAL_4, sub_80C4D50
+ switch VAR_SPECIAL_4
+ case 1, LilycoveCity_ContestLobby_EventScript_1589D6
+ case 2, LilycoveCity_ContestLobby_EventScript_1589DA
+ case 3, LilycoveCity_ContestLobby_EventScript_1589DE
+ case 4, LilycoveCity_ContestLobby_EventScript_1589E2
+ case 5, LilycoveCity_ContestLobby_EventScript_1589E6
+ return
+
+LilycoveCity_ContestLobby_EventScript_1589D6:: @ 81589D6
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_LADY
+ return
+
+LilycoveCity_ContestLobby_EventScript_1589DA:: @ 81589DA
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_GIRL
+ return
+
+LilycoveCity_ContestLobby_EventScript_1589DE:: @ 81589DE
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_MAN
+ return
+
+LilycoveCity_ContestLobby_EventScript_1589E2:: @ 81589E2
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTER
+ return
+
+LilycoveCity_ContestLobby_EventScript_1589E6:: @ 81589E6
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_VISITORS
+ return
+
+LilycoveCity_ContestLobby_EventScript_1589EA:: @ 81589EA
+ switch CONTEST_CATEGORY
+ case 0, LilycoveCity_ContestLobby_EventScript_158A27
+ case 1, LilycoveCity_ContestLobby_EventScript_158A2B
+ case 2, LilycoveCity_ContestLobby_EventScript_158A2F
+ case 3, LilycoveCity_ContestLobby_EventScript_158A33
+ case 4, LilycoveCity_ContestLobby_EventScript_158A37
+ return
+
+LilycoveCity_ContestLobby_EventScript_158A27:: @ 8158A27
+ setflag FLAG_COOL_PAINTING_MADE
+ return
+
+LilycoveCity_ContestLobby_EventScript_158A2B:: @ 8158A2B
+ setflag FLAG_BEAUTY_PAINTING_MADE
+ return
+
+LilycoveCity_ContestLobby_EventScript_158A2F:: @ 8158A2F
+ setflag FLAG_CUTE_PAINTING_MADE
+ return
+
+LilycoveCity_ContestLobby_EventScript_158A33:: @ 8158A33
+ setflag FLAG_SMART_PAINTING_MADE
+ return
+
+LilycoveCity_ContestLobby_EventScript_158A37:: @ 8158A37
+ setflag FLAG_TOUGH_PAINTING_MADE
+ return
+
+LilycoveCity_ContestLobby_Movement_158A3B:: @ 8158A3B
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158A43:: @ 8158A43
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158A4C:: @ 8158A4C
+ walk_in_place_fastest_left
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158A4E:: @ 8158A4E
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158A52:: @ 8158A52
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_in_place_fastest_right
+ end_movement
+
+LilycoveCity_ContestLobby_EventScript_158A5B:: @ 8158A5B
+ goto_if_set FLAG_HIDE_LILYCOVE_MUSEUM_CURATOR, LilycoveCity_ContestLobby_EventScript_158A6A
+ setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0
+ end
+
+LilycoveCity_ContestLobby_EventScript_158A6A:: @ 8158A6A
+ lockall
+ addobject 11
+ applymovement 11, LilycoveCity_ContestLobby_Movement_158B64
+ waitmovement 11
+ applymovement 255, LilycoveCity_ContestLobby_Movement_158B76
+ waitmovement 0
+ msgbox LilycoveCity_ContestLobby_Text_18890F, 4
+ lockall
+ fadescreen 1
+ drawcontestwinner 0
+ msgbox LilycoveCity_ContestLobby_Text_1889FD, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158AAE
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158AE8
+ end
+
+LilycoveCity_ContestLobby_EventScript_158AAE:: @ 8158AAE
+ msgbox LilycoveCity_ContestLobby_Text_188AE8, 4
+ closemessage
+ special sub_80C4CEC
+ setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0
+ specialvar RESULT, GiveMonArtistRibbon
+ compare RESULT, 1
+ call_if_eq LilycoveCity_ContestLobby_EventScript_158B18
+ applymovement 11, LilycoveCity_ContestLobby_Movement_158B6D
+ waitmovement 0
+ removeobject 11
+ call LilycoveCity_ContestLobby_EventScript_158994
+ call LilycoveCity_ContestLobby_EventScript_1589EA
+ releaseall
+ end
+
+LilycoveCity_ContestLobby_EventScript_158AE8:: @ 8158AE8
+ msgbox LilycoveCity_ContestLobby_Text_188C41, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158AAE
+ msgbox LilycoveCity_ContestLobby_Text_188CBD, 4
+ closemessage
+ applymovement 11, LilycoveCity_ContestLobby_Movement_158B6D
+ waitmovement 0
+ setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 0
+ removeobject 11
+ releaseall
+ end
+
+LilycoveCity_ContestLobby_EventScript_158B18:: @ 8158B18
+ incrementgamestat GAME_STAT_RECEIVED_RIBBONS
+ special sub_80C4858
+ applymovement 11, LilycoveCity_ContestLobby_Movement_158B78
+ waitmovement 0
+ playse SE_PIN
+ applymovement 11, LilycoveCity_ContestLobby_Movement_1A0833
+ waitmovement 0
+ applymovement 11, LilycoveCity_ContestLobby_Movement_158B7C
+ waitmovement 0
+ msgbox LilycoveCity_ContestLobby_Text_188BB5, 4
+ playfanfare BGM_FANFA4
+ msgbox LilycoveCity_ContestLobby_Text_188C03, 4
+ waitfanfare
+ msgbox LilycoveCity_ContestLobby_Text_188C19, 4
+ msgbox LilycoveCity_ContestLobby_Text_188C32, 4
+ closemessage
+ return
+
+LilycoveCity_ContestLobby_Movement_158B64:: @ 8158B64
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158B6D:: @ 8158B6D
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158B76:: @ 8158B76
+ walk_in_place_fastest_right
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158B78:: @ 8158B78
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158B7C:: @ 8158B7C
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_in_place_fastest_left
+ end_movement
+
+LilycoveCity_ContestLobby_EventScript_158B85:: @ 8158B85
+ lockall
+ checkitem ITEM_CONTEST_PASS, 1
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158BBA
+ goto_if_set FLAG_TEMP_2, LilycoveCity_ContestLobby_EventScript_158BAE
+ message LilycoveCity_ContestLobby_Text_18848C
+ waitmessage
+ setflag FLAG_TEMP_2
+ goto LilycoveCity_ContestLobby_EventScript_158BF0
+ end
+
+LilycoveCity_ContestLobby_EventScript_158BAE:: @ 8158BAE
+ message LilycoveCity_ContestLobby_Text_188584
+ waitmessage
+ goto LilycoveCity_ContestLobby_EventScript_158BF0
+ end
+
+LilycoveCity_ContestLobby_EventScript_158BBA:: @ 8158BBA
+ msgbox LilycoveCity_ContestLobby_Text_1A63F4, 4
+ releaseall
+ end
+
+LilycoveCity_ContestLobby_EventScript_158BC4:: @ 8158BC4
+ msgbox LilycoveCity_ContestLobby_Text_188521, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158C35
+ call S_DoSaveDialog
+ erasebox 0, 0, 15, 9
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158C35
+ setflag FLAG_TEMP_3
+ return
+
+LilycoveCity_ContestLobby_EventScript_158BF0:: @ 8158BF0
+ multichoice 0, 0, 2, 0
+ switch RESULT
+ case 0, LilycoveCity_ContestLobby_EventScript_158CEA
+ case 1, LilycoveCity_ContestLobby_EventScript_158C27
+ case 2, LilycoveCity_ContestLobby_EventScript_158C35
+ case 127, LilycoveCity_ContestLobby_EventScript_158C35
+ end
+
+LilycoveCity_ContestLobby_EventScript_158C27:: @ 8158C27
+ msgbox LilycoveCity_ContestLobby_Text_1885A7, 4
+ goto LilycoveCity_ContestLobby_EventScript_158B85
+ end
+
+LilycoveCity_ContestLobby_EventScript_158C35:: @ 8158C35
+ msgbox LilycoveCity_ContestLobby_Text_188559, 4
+ releaseall
+ clearflag FLAG_TEMP_3
+ end
+
+LilycoveCity_ContestLobby_EventScript_158C42:: @ 8158C42
+ msgbox LilycoveCity_ContestLobby_Text_188703, 4
+ setvar CONTEST_RANK, 0
+ choosecontestmon
+ compare VAR_SPECIAL_4, 255
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CEA
+ special sub_80C43F4
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158C96
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CC0
+ compare RESULT, 2
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CC0
+ compare RESULT, 3
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CA4
+ compare RESULT, 4
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CB2
+ end
+
+LilycoveCity_ContestLobby_EventScript_158C96:: @ 8158C96
+ msgbox LilycoveCity_ContestLobby_Text_1A664A, 4
+ goto LilycoveCity_ContestLobby_EventScript_158C42
+ end
+
+LilycoveCity_ContestLobby_EventScript_158CA4:: @ 8158CA4
+ msgbox LilycoveCity_ContestLobby_Text_1A669F, 4
+ goto LilycoveCity_ContestLobby_EventScript_158C42
+ end
+
+LilycoveCity_ContestLobby_EventScript_158CB2:: @ 8158CB2
+ msgbox LilycoveCity_ContestLobby_Text_1A66DC, 4
+ goto LilycoveCity_ContestLobby_EventScript_158C42
+ end
+
+LilycoveCity_ContestLobby_EventScript_158CC0:: @ 8158CC0
+ copyvar VAR_SPECIAL_8, VAR_SPECIAL_4
+ message LilycoveCity_ContestLobby_Text_1A67A3
+ waitmessage
+ yesnobox 20, 8
+ switch RESULT
+ case 0, LilycoveCity_ContestLobby_EventScript_158C42
+ case 1, LilycoveCity_ContestLobby_EventScript_158D24
+ end
+
+LilycoveCity_ContestLobby_EventScript_158CEA:: @ 8158CEA
+ call_if_unset FLAG_TEMP_3, LilycoveCity_ContestLobby_EventScript_158BC4
+ message LilycoveCity_ContestLobby_Text_1886DC
+ waitmessage
+ multichoice 0, 0, 4, 0
+ switch RESULT
+ case 5, LilycoveCity_ContestLobby_EventScript_158C35
+ case 127, LilycoveCity_ContestLobby_EventScript_158C35
+ copyvar CONTEST_CATEGORY, RESULT
+ goto LilycoveCity_ContestLobby_EventScript_158C42
+ end
+
+LilycoveCity_ContestLobby_EventScript_158D24:: @ 8158D24
+ message LilycoveCity_ContestLobby_Text_1887C7
+ waitmessage
+ copyvar VAR_SPECIAL_4, RESULT
+ special sub_808363C
+ waitstate
+ compare RESULT, 3
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158D90
+ compare RESULT, 5
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158DA1
+ compare RESULT, 6
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158DB2
+ messageautoscroll LilycoveCity_ContestLobby_Text_18872A
+ waitmessage
+ contestlinktransfer
+ switch VAR_SPECIAL_4
+ case 0, LilycoveCity_ContestLobby_EventScript_158DD1
+ case 1, LilycoveCity_ContestLobby_EventScript_158D82
+ case 2, LilycoveCity_ContestLobby_EventScript_158DC3
+ end
+
+LilycoveCity_ContestLobby_EventScript_158D82:: @ 8158D82
+ msgbox LilycoveCity_ContestLobby_Text_188750, 4
+ goto LilycoveCity_ContestLobby_EventScript_158CEA
+ end
+
+LilycoveCity_ContestLobby_EventScript_158D90:: @ 8158D90
+ special CloseLink
+ msgbox LilycoveCity_ContestLobby_Text_18878D, 4
+ closemessage
+ releaseall
+ clearflag FLAG_TEMP_3
+ end
+
+LilycoveCity_ContestLobby_EventScript_158DA1:: @ 8158DA1
+ special CloseLink
+ msgbox LilycoveCity_ContestLobby_Text_1887F4, 4
+ closemessage
+ releaseall
+ clearflag FLAG_TEMP_3
+ end
+
+LilycoveCity_ContestLobby_EventScript_158DB2:: @ 8158DB2
+ special CloseLink
+ msgbox LilycoveCity_ContestLobby_Text_18881F, 4
+ closemessage
+ releaseall
+ clearflag FLAG_TEMP_3
+ end
+
+LilycoveCity_ContestLobby_EventScript_158DC3:: @ 8158DC3
+ msgbox LilycoveCity_ContestLobby_Text_18873A, 4
+ goto LilycoveCity_ContestLobby_EventScript_158CEA
+ end
+
+LilycoveCity_ContestLobby_EventScript_158DD1:: @ 8158DD1
+ special sub_80C496C
+ addvar VAR_SPECIAL_4, 1
+ buffernumberstring 1, 32772
+ messageautoscroll LilycoveCity_ContestLobby_Text_188845
+ waitmessage
+ addvar VAR_SPECIAL_4, -1
+ goto LilycoveCity_ContestLobby_EventScript_158DEE
+ end
+
+LilycoveCity_ContestLobby_EventScript_158DEE:: @ 8158DEE
+ call LilycoveCity_ContestLobby_EventScript_158E0B
+ setvar VAR_LINK_CONTEST_ROOM_STATE, 1
+ special sub_80C4F70
+ setvar VAR_CONTEST_LOCATION, 5
+ setvar CONTEST_RANK, 3
+ call LilycoveCity_ContestLobby_EventScript_158F08
+ end
+
+LilycoveCity_ContestLobby_EventScript_158E0B:: @ 8158E0B
+ lockall
+ messageautoscroll LilycoveCity_ContestLobby_Text_1888C6
+ waitmessage
+ delay 20
+ closemessage
+ applymovement 2, LilycoveCity_ContestLobby_Movement_158E9C
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 9, 2, 545, 1
+ setmetatile 9, 3, 609, 1
+ special DrawWholeMapView
+ applymovement 2, LilycoveCity_ContestLobby_Movement_158EA0
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 9, 2, 721, 1
+ setmetatile 9, 3, 729, 1
+ special DrawWholeMapView
+ delay 20
+ applymovement 2, LilycoveCity_ContestLobby_Movement_158EAE
+ waitmovement 0
+ applymovement 255, LilycoveCity_ContestLobby_Movement_158E99
+ waitmovement 0
+ messageautoscroll LilycoveCity_ContestLobby_Text_1A6832
+ waitmessage
+ delay 20
+ closemessage
+ applymovement 2, LilycoveCity_ContestLobby_Movement_158EA4
+ applymovement 255, LilycoveCity_ContestLobby_Movement_158E8E
+ waitmovement 0
+ releaseall
+ return
+
+LilycoveCity_ContestLobby_Movement_158E8E:: @ 8158E8E
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158E99:: @ 8158E99
+ walk_in_place_fastest_right
+ walk_right
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158E9C:: @ 8158E9C
+ walk_right
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158EA0:: @ 8158EA0
+ walk_down
+ walk_down
+ walk_in_place_fastest_up
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158EA4:: @ 8158EA4
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_158EAE:: @ 8158EAE
+ walk_in_place_fastest_left
+ end_movement
+
+LilycoveCity_ContestLobby_EventScript_158EB0:: @ 8158EB0
+ specialvar RESULT, sub_80C5044
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158EE8
+ setvar VAR_SPECIAL_B, 8
+ setvar CONTEST_RANK, 3
+ call LilycoveCity_ContestLobby_EventScript_1A4E92
+ call LilycoveCity_ContestLobby_EventScript_158F86
+ special SetContestTrainerGfxIds
+ call LilycoveCity_ContestLobby_EventScript_15FBDB
+ setvar VAR_CONTEST_LOCATION, 4
+ call LilycoveCity_ContestLobby_EventScript_158F08
+ waitstate
+ end
+
+LilycoveCity_ContestLobby_EventScript_158EE8:: @ 8158EE8
+ setflag FLAG_HIDE_LILYCOVE_MUSEUM_CURATOR
+ copyvar VAR_LILYCOVE_MUSEUM_2F_STATE, 0x1
+ giveitem ITEM_CONTEST_PASS, 1
+ setvar VAR_SPECIAL_B, 8
+ setvar CONTEST_RANK, 3
+ setvar VAR_LILYCOVE_CONTEST_LOBBY_STATE, 1
+ setflag FLAG_SYS_RIBBON_GET
+ end
+
+LilycoveCity_ContestLobby_EventScript_158F08:: @ 8158F08
+ switch CONTEST_CATEGORY
+ case 0, LilycoveCity_ContestLobby_EventScript_158F45
+ case 1, LilycoveCity_ContestLobby_EventScript_158F52
+ case 2, LilycoveCity_ContestLobby_EventScript_158F5F
+ case 3, LilycoveCity_ContestLobby_EventScript_158F6C
+ case 4, LilycoveCity_ContestLobby_EventScript_158F79
+ return
+
+LilycoveCity_ContestLobby_EventScript_158F45:: @ 8158F45
+ setwarp MAP_LINK_CONTEST_ROOM4, 255, 7, 5
+ special sub_8081334
+ waitstate
+ return
+
+LilycoveCity_ContestLobby_EventScript_158F52:: @ 8158F52
+ setwarp MAP_LINK_CONTEST_ROOM2, 255, 7, 5
+ special sub_8081334
+ waitstate
+ return
+
+LilycoveCity_ContestLobby_EventScript_158F5F:: @ 8158F5F
+ setwarp MAP_LINK_CONTEST_ROOM6, 255, 7, 5
+ special sub_8081334
+ waitstate
+ return
+
+LilycoveCity_ContestLobby_EventScript_158F6C:: @ 8158F6C
+ setwarp MAP_LINK_CONTEST_ROOM5, 255, 7, 5
+ special sub_8081334
+ waitstate
+ return
+
+LilycoveCity_ContestLobby_EventScript_158F79:: @ 8158F79
+ setwarp MAP_LINK_CONTEST_ROOM3, 255, 7, 5
+ special sub_8081334
+ waitstate
+ return
+
+LilycoveCity_ContestLobby_EventScript_158F86:: @ 8158F86
+ lockall
+ applymovement 1, LilycoveCity_ContestLobby_Movement_15900B
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 4, 2, 545, 1
+ setmetatile 4, 3, 609, 1
+ special DrawWholeMapView
+ applymovement 1, LilycoveCity_ContestLobby_Movement_15900F
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 4, 2, 721, 1
+ setmetatile 4, 3, 729, 1
+ special DrawWholeMapView
+ delay 20
+ applymovement 1, LilycoveCity_ContestLobby_Movement_15901C
+ waitmovement 0
+ applymovement 255, LilycoveCity_ContestLobby_Movement_159008
+ waitmovement 0
+ msgbox LilycoveCity_ContestLobby_Text_1A6832, 4
+ closemessage
+ applymovement 1, LilycoveCity_ContestLobby_Movement_159013
+ applymovement 255, LilycoveCity_ContestLobby_Movement_158FFE
+ waitmovement 0
+ releaseall
+ return
+
+LilycoveCity_ContestLobby_Movement_158FFE:: @ 8158FFE
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_159008:: @ 8159008
+ walk_in_place_fastest_left
+ walk_left
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_15900B:: @ 815900B
+ walk_left
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_15900F:: @ 815900F
+ walk_down
+ walk_down
+ walk_in_place_fastest_up
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_159013:: @ 8159013
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+LilycoveCity_ContestLobby_Movement_15901C:: @ 815901C
+ walk_in_place_fastest_right
+ end_movement
+
+LilycoveCity_ContestLobby_EventScript_15901E:: @ 815901E
+ msgbox LilycoveCity_ContestLobby_Text_188D3C, 2
+ end
+
+LilycoveCity_ContestLobby_EventScript_159027:: @ 8159027
+ goto_if_unset FLAG_RECEIVED_CONTEST_PASS, LilycoveCity_ContestLobby_EventScript_159039
+ msgbox LilycoveCity_ContestLobby_Text_188DDA, 2
+ end
+
+LilycoveCity_ContestLobby_EventScript_159039:: @ 8159039
+ msgbox LilycoveCity_ContestLobby_Text_188E47, 2
+ end
+
+LilycoveCity_ContestLobby_EventScript_159042:: @ 8159042
+ msgbox LilycoveCity_ContestLobby_Text_188F07, 2
+ end
+
+LilycoveCity_ContestLobby_EventScript_15904B:: @ 815904B
+ msgbox LilycoveCity_ContestLobby_Text_188F81, 2
+ end
+
+LilycoveCity_ContestLobby_EventScript_159054:: @ 8159054
+ msgbox LilycoveCity_ContestLobby_Text_188FE3, 2
+ end
+
+LilycoveCity_ContestLobby_EventScript_15905D:: @ 815905D
+ msgbox LilycoveCity_ContestLobby_Text_18904D, 2
+ end
+
+LilycoveCity_ContestLobby_EventScript_159066:: @ 8159066
+ lockall
+ fadescreen 1
+ drawcontestwinner 6
+ releaseall
+ end
+
+LilycoveCity_ContestLobby_EventScript_15906D:: @ 815906D
+ lockall
+ fadescreen 1
+ drawcontestwinner 7
+ releaseall
+ end
+
+LilycoveCity_ContestLobby_EventScript_159074:: @ 8159074
+ lockall
+ fadescreen 1
+ drawcontestwinner 8
+ releaseall
+ end
+
+LilycoveCity_ContestLobby_EventScript_15907B:: @ 815907B
+ msgbox LilycoveCity_ContestLobby_Text_1B7225, 2
+ end
+
+LilycoveCity_ContestLobby_EventScript_159084:: @ 8159084
+ msgbox LilycoveCity_ContestLobby_Text_1B7241, 2
+ end
+
+LilycoveCity_ContestLobby_EventScript_15908D:: @ 815908D
+SlateportCity_ContestLobby_EventScript_15908D:: @ 815908D
+ lockall
+ special ShowBerryBlenderRecordWindow
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
diff --git a/data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc b/data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc
new file mode 100644
index 000000000..c3eca04f4
--- /dev/null
+++ b/data/maps/LilycoveCity_CoveLilyMotel_1F/scripts.inc
@@ -0,0 +1,74 @@
+LilycoveCity_CoveLilyMotel_1F_MapScripts:: @ 81582C4
+ .byte 0
+
+LilycoveCity_CoveLilyMotel_1F_EventScript_1582C5:: @ 81582C5
+ lockall
+ goto_if_set FLAG_SYS_GAME_CLEAR, LilycoveCity_CoveLilyMotel_1F_EventScript_158326
+ goto_if_set FLAG_BADGE07_GET, LilycoveCity_CoveLilyMotel_1F_EventScript_1582FF
+ msgbox LilycoveCity_CoveLilyMotel_1F_Text_186B71, 4
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A0839
+ waitmovement 0
+ msgbox LilycoveCity_CoveLilyMotel_1F_Text_186C2B, 4
+ closemessage
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_CoveLilyMotel_1F_EventScript_1582FF:: @ 81582FF
+ msgbox LilycoveCity_CoveLilyMotel_1F_Text_186CCE, 4
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A0839
+ waitmovement 0
+ msgbox LilycoveCity_CoveLilyMotel_1F_Text_186D7F, 4
+ closemessage
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_CoveLilyMotel_1F_EventScript_158326:: @ 8158326
+ msgbox LilycoveCity_CoveLilyMotel_1F_Text_186E57, 4
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A0839
+ waitmovement 0
+ msgbox LilycoveCity_CoveLilyMotel_1F_Text_186F09, 4
+ closemessage
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_CoveLilyMotel_1F_EventScript_15834D:: @ 815834D
+ lockall
+ playse SE_PIN
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A0833
+ waitmovement 0
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A0835
+ waitmovement 0
+ applymovement 255, LilycoveCity_CoveLilyMotel_1F_Movement_1A0845
+ waitmovement 0
+ msgbox LilycoveCity_CoveLilyMotel_1F_Text_186CA6, 4
+ closemessage
+ applymovement 255, LilycoveCity_CoveLilyMotel_1F_Movement_158395
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_15839A
+ waitmovement 0
+ applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_15839C
+ waitmovement 0
+ release
+ end
+
+LilycoveCity_CoveLilyMotel_1F_Movement_158395:: @ 8158395
+ face_right
+ lock_facing_direction
+ walk_left
+ unlock_facing_direction
+ end_movement
+
+LilycoveCity_CoveLilyMotel_1F_Movement_15839A:: @ 815839A
+ walk_up
+ end_movement
+
+LilycoveCity_CoveLilyMotel_1F_Movement_15839C:: @ 815839C
+ face_down
+ walk_down
+ face_up
+ end_movement
diff --git a/data/maps/LilycoveCity_CoveLilyMotel_2F/scripts.inc b/data/maps/LilycoveCity_CoveLilyMotel_2F/scripts.inc
new file mode 100644
index 000000000..06b982610
--- /dev/null
+++ b/data/maps/LilycoveCity_CoveLilyMotel_2F/scripts.inc
@@ -0,0 +1,53 @@
+LilycoveCity_CoveLilyMotel_2F_MapScripts:: @ 81583A0
+ .byte 0
+
+LilycoveCity_CoveLilyMotel_2F_EventScript_1583A1:: @ 81583A1
+ lock
+ faceplayer
+ call_if_unset FLAG_TEMP_2, LilycoveCity_CoveLilyMotel_2F_EventScript_1583C7
+ call_if_set FLAG_TEMP_2, LilycoveCity_CoveLilyMotel_2F_EventScript_1583DD
+ specialvar RESULT, CompletedHoennPokedex
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_CoveLilyMotel_2F_EventScript_1583D0
+ release
+ end
+
+LilycoveCity_CoveLilyMotel_2F_EventScript_1583C7:: @ 81583C7
+ msgbox LilycoveCity_CoveLilyMotel_2F_Text_186FE7, 4
+ return
+
+LilycoveCity_CoveLilyMotel_2F_EventScript_1583D0:: @ 81583D0
+ setflag FLAG_TEMP_2
+ playfanfare BGM_FANFA4
+ waitfanfare
+ goto LilycoveCity_CoveLilyMotel_2F_EventScript_1583DD
+ end
+
+LilycoveCity_CoveLilyMotel_2F_EventScript_1583DD:: @ 81583DD
+ message LilycoveCity_CoveLilyMotel_2F_Text_18708F
+ waitmessage
+ call LilycoveCity_CoveLilyMotel_2F_EventScript_1A02C5
+ special ScrSpecial_ShowDiploma
+ waitstate
+ release
+ end
+
+LilycoveCity_CoveLilyMotel_2F_EventScript_1583EE:: @ 81583EE
+ msgbox LilycoveCity_CoveLilyMotel_2F_Text_187149, 2
+ end
+
+LilycoveCity_CoveLilyMotel_2F_EventScript_1583F7:: @ 81583F7
+ msgbox LilycoveCity_CoveLilyMotel_2F_Text_18719E, 2
+ end
+
+LilycoveCity_CoveLilyMotel_2F_EventScript_158400:: @ 8158400
+ msgbox LilycoveCity_CoveLilyMotel_2F_Text_1871DF, 2
+ end
+
+LilycoveCity_CoveLilyMotel_2F_EventScript_158409:: @ 8158409
+ msgbox LilycoveCity_CoveLilyMotel_2F_Text_18729A, 2
+ end
+
+LilycoveCity_CoveLilyMotel_2F_EventScript_158412:: @ 8158412
+ msgbox LilycoveCity_CoveLilyMotel_2F_Text_1872D4, 2
+ end
diff --git a/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc b/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc
new file mode 100644
index 000000000..f895ea99d
--- /dev/null
+++ b/data/maps/LilycoveCity_DepartmentStoreElevator/scripts.inc
@@ -0,0 +1,83 @@
+LilycoveCity_DepartmentStoreElevator_MapScripts:: @ 815A39B
+ .byte 0
+
+LilycoveCity_DepartmentStoreElevator_EventScript_15A39C:: @ 815A39C
+ lock
+ faceplayer
+ call_if_unset FLAG_TEMP_2, LilycoveCity_DepartmentStoreElevator_EventScript_15A4CF
+ copyvar VAR_SPECIAL_5, VAR_DEPT_STORE_FLOOR
+ special DisplayCurrentElevatorFloor
+ message LilycoveCity_DepartmentStoreElevator_Text_1A0EF6
+ waitmessage
+ multichoice 0, 0, 57, 0
+ switch RESULT
+ case 0, LilycoveCity_DepartmentStoreElevator_EventScript_15A402
+ case 1, LilycoveCity_DepartmentStoreElevator_EventScript_15A425
+ case 2, LilycoveCity_DepartmentStoreElevator_EventScript_15A448
+ case 3, LilycoveCity_DepartmentStoreElevator_EventScript_15A46B
+ case 4, LilycoveCity_DepartmentStoreElevator_EventScript_15A48E
+ case 127, LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ end
+
+LilycoveCity_DepartmentStoreElevator_EventScript_15A402:: @ 815A402
+ setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_1F, 255, 2, 1
+ compare VAR_DEPT_STORE_FLOOR, 0
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
+ setvar VAR_DEPT_STORE_FLOOR, 0
+ goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ end
+
+LilycoveCity_DepartmentStoreElevator_EventScript_15A425:: @ 815A425
+ setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_2F, 255, 2, 1
+ compare VAR_DEPT_STORE_FLOOR, 1
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
+ setvar VAR_DEPT_STORE_FLOOR, 1
+ goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ end
+
+LilycoveCity_DepartmentStoreElevator_EventScript_15A448:: @ 815A448
+ setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_3F, 255, 2, 1
+ compare VAR_DEPT_STORE_FLOOR, 2
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
+ setvar VAR_DEPT_STORE_FLOOR, 2
+ goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ end
+
+LilycoveCity_DepartmentStoreElevator_EventScript_15A46B:: @ 815A46B
+ setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_4F, 255, 2, 1
+ compare VAR_DEPT_STORE_FLOOR, 3
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
+ setvar VAR_DEPT_STORE_FLOOR, 3
+ goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ end
+
+LilycoveCity_DepartmentStoreElevator_EventScript_15A48E:: @ 815A48E
+ setdynamicwarp MAP_LILYCOVE_CITY_DEPARTMENT_STORE_5F, 255, 2, 1
+ compare VAR_DEPT_STORE_FLOOR, 4
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
+ setvar VAR_DEPT_STORE_FLOOR, 4
+ goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ end
+
+LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1:: @ 815A4B1
+ erasebox 0, 0, 29, 19
+ release
+ end
+
+LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8:: @ 815A4B8
+ erasebox 0, 0, 29, 19
+ applymovement LAST_TALKED, LilycoveCity_DepartmentStoreElevator_Movement_1A0845
+ waitmovement 0
+ special ShakeScreenInElevator
+ waitstate
+ setflag FLAG_TEMP_2
+ return
+
+LilycoveCity_DepartmentStoreElevator_EventScript_15A4CF:: @ 815A4CF
+ special SetDepartmentStoreFloorVar
+ return
diff --git a/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc b/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc
new file mode 100644
index 000000000..e2274110c
--- /dev/null
+++ b/data/maps/LilycoveCity_DepartmentStoreRooftop/scripts.inc
@@ -0,0 +1,202 @@
+LilycoveCity_DepartmentStoreRooftop_MapScripts:: @ 815A13F
+ map_script 3, LilycoveCity_DepartmentStoreRooftop_MapScript1_15A145
+ .byte 0
+
+LilycoveCity_DepartmentStoreRooftop_MapScript1_15A145:: @ 815A145
+ getpricereduction 3
+ compare RESULT, 1
+ call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A15F
+ compare RESULT, 0
+ call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A163
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A15F:: @ 815A15F
+ clearflag FLAG_HIDE_ROOFTOP_LADY_LILYCOVE_MART
+ return
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A163:: @ 815A163
+ setflag FLAG_HIDE_ROOFTOP_LADY_LILYCOVE_MART
+ return
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A167:: @ 815A167
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStoreRooftop_Text_1A0BE4
+ waitmessage
+ pokemartdecoration LilycoveCity_DepartmentStoreRooftop_Decorations
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStoreRooftop_Decorations:: @ 815A180
+ .2byte DECOR_MUD_BALL
+ .2byte DECOR_FENCE_LENGTH
+ .2byte DECOR_FENCE_WIDTH
+ .2byte DECOR_TIRE
+ .2byte DECOR_BREAKABLE_DOOR
+ .2byte DECOR_SOLID_BOARD
+ .2byte DECOR_SAND_ORNAMENT
+ .2byte DECOR_STAND
+ .2byte DECOR_SLIDE
+ .2byte DECOR_TV
+ .2byte DECOR_ROUND_TV
+ .2byte DECOR_CUTE_TV
+ .2byte DECOR_WAILMER_DOLL
+ .2byte DECOR_RHYDON_DOLL
+ .2byte DECOR_NONE
+ release
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A1A0:: @ 815A1A0
+ lock
+ faceplayer
+ getpricereduction 3
+ compare RESULT, 1
+ call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A1BA
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C61F, 4
+ release
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A1BA:: @ 815A1BA
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C685, 4
+ release
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A1C4:: @ 815A1C4
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C70E, 2
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A1CD:: @ 815A1CD
+ lockall
+ message LilycoveCity_DepartmentStoreRooftop_Text_18C72B
+ waitmessage
+ showmoneybox 0, 0
+ nop
+ goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A1DE
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A1DE:: @ 815A1DE
+ multichoice 16, 0, 42, 0
+ copyvar VAR_TEMP_1, RESULT
+ switch VAR_TEMP_1
+ case 0, LilycoveCity_DepartmentStoreRooftop_EventScript_15A21C
+ case 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A227
+ case 2, LilycoveCity_DepartmentStoreRooftop_EventScript_15A232
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C7C3, 4
+ goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A396
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A21C:: @ 815A21C
+ setvar VAR_TEMP_0, ITEM_FRESH_WATER
+ goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A267
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A227:: @ 815A227
+ setvar VAR_TEMP_0, ITEM_SODA_POP
+ goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A267
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A232:: @ 815A232
+ setvar VAR_TEMP_0, ITEM_LEMONADE
+ goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A267
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A23D:: @ 815A23D
+ checkmoney 0xc8, 0
+ return
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A244:: @ 815A244
+ checkmoney 0x12c, 0
+ return
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A24B:: @ 815A24B
+ checkmoney 0x15e, 0
+ return
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A252:: @ 815A252
+ takemoney 0xc8, 0
+ return
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A259:: @ 815A259
+ takemoney 0x12c, 0
+ return
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A260:: @ 815A260
+ takemoney 0x15e, 0
+ return
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
+ compare VAR_TEMP_1, 0
+ call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A23D
+ compare VAR_TEMP_1, 1
+ call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A244
+ compare VAR_TEMP_1, 2
+ call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A24B
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A37A
+ checkitemspace VAR_TEMP_0, 1
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
+ compare VAR_TEMP_1, 0
+ call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A252
+ compare VAR_TEMP_1, 1
+ call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A259
+ compare VAR_TEMP_1, 2
+ call_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A260
+ updatemoneybox 0, 0
+ nop
+ bufferitemname 0, VAR_TEMP_0
+ playse SE_JIHANKI
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C75F, 4
+ giveitem VAR_TEMP_0, 1
+ bufferitemname 1, VAR_TEMP_0
+ bufferstdstring 2, 14
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C8C, 4
+ random 64
+ compare RESULT, 0
+ goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_15A36E
+ checkitemspace VAR_TEMP_0, 1
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
+ playse SE_JIHANKI
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C780, 4
+ giveitem VAR_TEMP_0, 1
+ bufferitemname 1, VAR_TEMP_0
+ bufferstdstring 2, 14
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C8C, 4
+ random 64
+ compare RESULT, 0
+ goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_15A36E
+ checkitemspace VAR_TEMP_0, 1
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
+ playse SE_JIHANKI
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C780, 4
+ giveitem VAR_TEMP_0, 1
+ bufferitemname 1, VAR_TEMP_0
+ bufferstdstring 2, 14
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C8C, 4
+ goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A36E
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A36E:: @ 815A36E
+ message LilycoveCity_DepartmentStoreRooftop_Text_18C72B
+ waitmessage
+ goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A1DE
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A37A:: @ 815A37A
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C7AF, 4
+ goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A396
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A388:: @ 815A388
+ msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C79, 4
+ goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A396
+ end
+
+LilycoveCity_DepartmentStoreRooftop_EventScript_15A396:: @ 815A396
+ hidemoneybox 0, 0
+ releaseall
+ end
diff --git a/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
new file mode 100644
index 000000000..f6b23bc05
--- /dev/null
+++ b/data/maps/LilycoveCity_DepartmentStore_1F/scripts.inc
@@ -0,0 +1,144 @@
+LilycoveCity_DepartmentStore_1F_MapScripts:: @ 8159D54
+ .byte 0
+
+LilycoveCity_DepartmentStore_1F_EventScript_159D55:: @ 8159D55
+ msgbox LilycoveCity_DepartmentStore_1F_Text_18BFB5, 2
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159D5E:: @ 8159D5E
+ lock
+ faceplayer
+ dodailyevents
+ compare VAR_LOTTERY_PRIZE, 0
+ goto_if_ne LilycoveCity_DepartmentStore_1F_EventScript_159EB1
+ goto_if_set FLAG_DAILY_PICKED_LOTTO_TICKET, LilycoveCity_DepartmentStore_1F_EventScript_159E4C
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4B5E, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E56
+ setflag FLAG_DAILY_PICKED_LOTTO_TICKET
+ message LilycoveCity_DepartmentStore_1F_Text_1C4CC6
+ waitmessage
+ special RetrieveLotteryNumber
+ copyvar VAR_SPECIAL_8, RESULT
+ special BufferLottoTicketNumber
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4CF6, 4
+ applymovement 2, LilycoveCity_DepartmentStore_1F_Movement_1A0843
+ waitmovement 0
+ playse SE_PC_ON
+ special DoLotteryCornerComputerEffect
+ special PickLotteryCornerTicket
+ delay 220
+ special EndLotteryCornerComputerEffect
+ delay 10
+ applymovement 2, LilycoveCity_DepartmentStore_1F_Movement_1A0839
+ waitmovement 0
+ compare VAR_SPECIAL_4, 0
+ goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E60
+ incrementgamestat GAME_STAT_WON_POKEMON_LOTTERY
+ compare VAR_SPECIAL_6, 0
+ call_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E3A
+ compare VAR_SPECIAL_6, 1
+ call_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E43
+ bufferitemname 0, VAR_SPECIAL_5
+ compare VAR_SPECIAL_4, 1
+ call_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E78
+ compare VAR_SPECIAL_4, 2
+ call_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E81
+ compare VAR_SPECIAL_4, 3
+ call_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E8A
+ compare VAR_SPECIAL_4, 4
+ call_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E93
+ giveitem_std VAR_SPECIAL_5
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E9C
+ goto LilycoveCity_DepartmentStore_1F_EventScript_159E6E
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E3A:: @ 8159E3A
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4D7D, 4
+ return
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E43:: @ 8159E43
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4DD1, 4
+ return
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E4C:: @ 8159E4C
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4C6A, 4
+ release
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E56:: @ 8159E56
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4C85, 4
+ release
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E60:: @ 8159E60
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4E27, 4
+ goto LilycoveCity_DepartmentStore_1F_EventScript_159E6E
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E6E:: @ 8159E6E
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C501C, 4
+ release
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E78:: @ 8159E78
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4E4F, 4
+ return
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E81:: @ 8159E81
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4E92, 4
+ return
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E8A:: @ 8159E8A
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4ED8, 4
+ return
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E93:: @ 8159E93
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4F1C, 4
+ return
+
+LilycoveCity_DepartmentStore_1F_EventScript_159E9C:: @ 8159E9C
+ copyvar VAR_LOTTERY_PRIZE, VAR_SPECIAL_5
+ goto LilycoveCity_DepartmentStore_1F_EventScript_159EA7
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159EA7:: @ 8159EA7
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4F77, 4
+ release
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159EB1:: @ 8159EB1
+ msgbox LilycoveCity_DepartmentStore_1F_Text_1C4FCC, 4
+ giveitem_std VAR_LOTTERY_PRIZE
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159EA7
+ setvar VAR_LOTTERY_PRIZE, 0
+ release
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159ED7:: @ 8159ED7
+ msgbox LilycoveCity_DepartmentStore_1F_Text_18BFDB, 2
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159EE0:: @ 8159EE0
+ msgbox LilycoveCity_DepartmentStore_1F_Text_18C044, 2
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159EE9:: @ 8159EE9
+ msgbox LilycoveCity_DepartmentStore_1F_Text_18C07A, 2
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159EF2:: @ 8159EF2
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_AZUMARILL, 0
+ msgbox LilycoveCity_DepartmentStore_1F_Text_18C0C3, 4
+ waitmoncry
+ release
+ end
+
+LilycoveCity_DepartmentStore_1F_EventScript_159F05:: @ 8159F05
+ msgbox LilycoveCity_DepartmentStore_1F_Text_18C0D9, 3
+ end
diff --git a/data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc
new file mode 100644
index 000000000..25e981628
--- /dev/null
+++ b/data/maps/LilycoveCity_DepartmentStore_2F/scripts.inc
@@ -0,0 +1,67 @@
+LilycoveCity_DepartmentStore_2F_MapScripts:: @ 8159F0E
+ .byte 0
+
+LilycoveCity_DepartmentStore_2F_EventScript_159F0F:: @ 8159F0F
+ msgbox LilycoveCity_DepartmentStore_2F_Text_18C162, 2
+ end
+
+LilycoveCity_DepartmentStore_2F_EventScript_159F18:: @ 8159F18
+ msgbox LilycoveCity_DepartmentStore_2F_Text_18C195, 2
+ end
+
+LilycoveCity_DepartmentStore_2F_EventScript_159F21:: @ 8159F21
+ msgbox LilycoveCity_DepartmentStore_2F_Text_18C1D9, 2
+ end
+
+LilycoveCity_DepartmentStore_2F_EventScript_159F2A:: @ 8159F2A
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_2F_Text_1A0BE4
+ waitmessage
+ pokemart LilycoveCity_DepartmentStore_2F_Items1
+ msgbox LilycoveCity_DepartmentStore_2F_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStore_2F_Items1:: @ 8159F44
+ .2byte ITEM_POKE_BALL
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_ULTRA_BALL
+ .2byte ITEM_ESCAPE_ROPE
+ .2byte ITEM_FULL_HEAL
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_BURN_HEAL
+ .2byte ITEM_ICE_HEAL
+ .2byte ITEM_AWAKENING
+ .2byte ITEM_FLUFFY_TAIL
+ .2byte ITEM_NONE
+ release
+ end
+
+LilycoveCity_DepartmentStore_2F_EventScript_159F5E:: @ 8159F5E
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_2F_Text_1A0BE4
+ waitmessage
+ pokemart LilycoveCity_DepartmentStore_2F_Items2
+ msgbox LilycoveCity_DepartmentStore_2F_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStore_2F_Items2:: @ 8159F78
+ .2byte ITEM_POTION
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_HYPER_POTION
+ .2byte ITEM_MAX_POTION
+ .2byte ITEM_REVIVE
+ .2byte ITEM_REPEL
+ .2byte ITEM_SUPER_REPEL
+ .2byte ITEM_MAX_REPEL
+ .2byte ITEM_WAVE_MAIL
+ .2byte ITEM_MECH_MAIL
+ .2byte ITEM_NONE
+ release
+ end
diff --git a/data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc
new file mode 100644
index 000000000..1f55f5018
--- /dev/null
+++ b/data/maps/LilycoveCity_DepartmentStore_3F/scripts.inc
@@ -0,0 +1,60 @@
+LilycoveCity_DepartmentStore_3F_MapScripts:: @ 8159F90
+ .byte 0
+
+LilycoveCity_DepartmentStore_3F_EventScript_159F91:: @ 8159F91
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_3F_Text_1A0BE4
+ waitmessage
+ pokemart LilycoveCity_DepartmentStore_3F_Items1
+ msgbox LilycoveCity_DepartmentStore_3F_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStore_3F_Items1:: @ 8159FA8
+ .2byte ITEM_PROTEIN
+ .2byte ITEM_CALCIUM
+ .2byte ITEM_IRON
+ .2byte ITEM_ZINC
+ .2byte ITEM_CARBOS
+ .2byte ITEM_HP_UP
+ .2byte ITEM_NONE
+ release
+ end
+
+LilycoveCity_DepartmentStore_3F_EventScript_159FB8:: @ 8159FB8
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_3F_Text_1A0BE4
+ waitmessage
+ pokemart LilycoveCity_DepartmentStore_3F_Items2
+ msgbox LilycoveCity_DepartmentStore_3F_Text_1A0C02, 4
+ release
+ end
+
+
+ .align 2
+LilycoveCity_DepartmentStore_3F_Items2:: @ 8159FD0
+ .2byte ITEM_X_SPEED
+ .2byte ITEM_X_SPECIAL
+ .2byte ITEM_X_ATTACK
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_DIRE_HIT
+ .2byte ITEM_GUARD_SPEC
+ .2byte ITEM_X_ACCURACY
+ .2byte ITEM_NONE
+ release
+ end
+
+LilycoveCity_DepartmentStore_3F_EventScript_159FE2:: @ 8159FE2
+ msgbox LilycoveCity_DepartmentStore_3F_Text_18C24B, 2
+ end
+
+LilycoveCity_DepartmentStore_3F_EventScript_159FEB:: @ 8159FEB
+ msgbox LilycoveCity_DepartmentStore_3F_Text_18C2B5, 2
+ end
+
+LilycoveCity_DepartmentStore_3F_EventScript_159FF4:: @ 8159FF4
+ msgbox LilycoveCity_DepartmentStore_3F_Text_18C32E, 2
+ end
diff --git a/data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc
new file mode 100644
index 000000000..907b79847
--- /dev/null
+++ b/data/maps/LilycoveCity_DepartmentStore_4F/scripts.inc
@@ -0,0 +1,54 @@
+LilycoveCity_DepartmentStore_4F_MapScripts:: @ 8159FFD
+ .byte 0
+
+LilycoveCity_DepartmentStore_4F_EventScript_159FFE:: @ 8159FFE
+ msgbox LilycoveCity_DepartmentStore_4F_Text_18C39C, 2
+ end
+
+LilycoveCity_DepartmentStore_4F_EventScript_15A007:: @ 815A007
+ msgbox LilycoveCity_DepartmentStore_4F_Text_18C41B, 2
+ end
+
+LilycoveCity_DepartmentStore_4F_EventScript_15A010:: @ 815A010
+ msgbox LilycoveCity_DepartmentStore_4F_Text_18C481, 2
+ end
+
+LilycoveCity_DepartmentStore_4F_EventScript_15A019:: @ 815A019
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_4F_Text_1A0BE4
+ waitmessage
+ pokemart LilycoveCity_DepartmentStore_4F_Items1
+ msgbox LilycoveCity_DepartmentStore_4F_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStore_4F_Items1:: @ 815A030
+ .2byte ITEM_TM38_FIRE_BLAST
+ .2byte ITEM_TM25_THUNDER
+ .2byte ITEM_TM14_BLIZZARD
+ .2byte ITEM_TM15_HYPER_BEAM
+ .2byte ITEM_NONE
+ release
+ end
+
+LilycoveCity_DepartmentStore_4F_EventScript_15A03C:: @ 815A03C
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_4F_Text_1A0BE4
+ waitmessage
+ pokemart LilycoveCity_DepartmentStore_4F_Items2
+ msgbox LilycoveCity_DepartmentStore_4F_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStore_4F_Items2:: @ 815A054
+ .2byte ITEM_TM17_PROTECT
+ .2byte ITEM_TM20_SAFEGUARD
+ .2byte ITEM_TM33_REFLECT
+ .2byte ITEM_TM16_LIGHT_SCREEN
+ .2byte ITEM_NONE
+ release
+ end
diff --git a/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc b/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc
new file mode 100644
index 000000000..184d3b816
--- /dev/null
+++ b/data/maps/LilycoveCity_DepartmentStore_5F/scripts.inc
@@ -0,0 +1,118 @@
+LilycoveCity_DepartmentStore_5F_MapScripts:: @ 815A060
+ .byte 0
+
+LilycoveCity_DepartmentStore_5F_EventScript_15A061:: @ 815A061
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_5F_Text_1A0BE4
+ waitmessage
+ pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Items1
+ msgbox LilycoveCity_DepartmentStore_5F_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStore_5F_Items1:: @ 815A078
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_X_SPEED
+ .2byte ITEM_X_ACCURACY
+ .2byte ITEM_SUPER_REPEL
+ .2byte 91
+ .2byte 92
+ .2byte ITEM_SUN_STONE
+ .2byte ITEM_MOON_STONE
+ .2byte ITEM_FIRE_STONE
+ .2byte ITEM_THUNDER_STONE
+ .2byte ITEM_WATER_STONE
+ .2byte ITEM_LEAF_STONE
+ .2byte ITEM_NONE
+ release
+ end
+
+LilycoveCity_DepartmentStore_5F_EventScript_15A094:: @ 815A094
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_5F_Text_1A0BE4
+ waitmessage
+ pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Items2
+ msgbox LilycoveCity_DepartmentStore_5F_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStore_5F_Items2:: @ 815A0AC
+ .2byte 101
+ .2byte 102
+ .2byte ITEM_BIG_MUSHROOM
+ .2byte 105
+ .2byte ITEM_PEARL
+ .2byte ITEM_BIG_PEARL
+ .2byte ITEM_STARDUST
+ .2byte ITEM_STAR_PIECE
+ .2byte ITEM_NUGGET
+ .2byte ITEM_NONE
+ release
+ end
+
+LilycoveCity_DepartmentStore_5F_EventScript_15A0C2:: @ 815A0C2
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_5F_Text_1A0BE4
+ waitmessage
+ pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Items3
+ msgbox LilycoveCity_DepartmentStore_5F_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStore_5F_Items3:: @ 815A0DC
+ .2byte ITEM_CARBOS
+ .2byte ITEM_CALCIUM
+ .2byte ITEM_RARE_CANDY
+ .2byte ITEM_PP_UP
+ .2byte ITEM_ZINC
+ .2byte ITEM_PP_MAX
+ .2byte 72
+ .2byte ITEM_GUARD_SPEC
+ .2byte ITEM_DIRE_HIT
+ .2byte ITEM_NONE
+ release
+ end
+
+LilycoveCity_DepartmentStore_5F_EventScript_15A0F2:: @ 815A0F2
+ lock
+ faceplayer
+ message LilycoveCity_DepartmentStore_5F_Text_1A0BE4
+ waitmessage
+ pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Items4
+ msgbox LilycoveCity_DepartmentStore_5F_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+LilycoveCity_DepartmentStore_5F_Items4:: @ 815A10C
+ .2byte 59
+ .2byte 60
+ .2byte 61
+ .2byte 62
+ .2byte ITEM_HP_UP
+ .2byte ITEM_PROTEIN
+ .2byte ITEM_IRON
+ .2byte ITEM_RED_SHARD
+ .2byte ITEM_BLUE_SHARD
+ .2byte ITEM_YELLOW_SHARD
+ .2byte ITEM_NONE
+ release
+ end
+
+LilycoveCity_DepartmentStore_5F_EventScript_15A124:: @ 815A124
+ msgbox LilycoveCity_DepartmentStore_5F_Text_18C4F9, 2
+ end
+
+LilycoveCity_DepartmentStore_5F_EventScript_15A12D:: @ 815A12D
+ msgbox LilycoveCity_DepartmentStore_5F_Text_18C59F, 2
+ end
+
+LilycoveCity_DepartmentStore_5F_EventScript_15A136:: @ 815A136
+ msgbox LilycoveCity_DepartmentStore_5F_Text_18C556, 2
+ end
diff --git a/data/maps/LilycoveCity_EmptyMap/scripts.inc b/data/maps/LilycoveCity_EmptyMap/scripts.inc
new file mode 100644
index 000000000..16d025174
--- /dev/null
+++ b/data/maps/LilycoveCity_EmptyMap/scripts.inc
@@ -0,0 +1,2 @@
+LilycoveCity_EmptyMap_MapScripts:: @ 8159AAC
+ .byte 0
diff --git a/data/maps/LilycoveCity_Harbor/scripts.inc b/data/maps/LilycoveCity_Harbor/scripts.inc
new file mode 100644
index 000000000..57ad4b85b
--- /dev/null
+++ b/data/maps/LilycoveCity_Harbor/scripts.inc
@@ -0,0 +1,166 @@
+LilycoveCity_Harbor_MapScripts:: @ 8159893
+ map_script 3, LilycoveCity_Harbor_MapScript1_159899
+ .byte 0
+
+LilycoveCity_Harbor_MapScript1_159899:: @ 8159899
+ setescapewarp MAP_LILYCOVE_CITY, 255, 12, 33
+ end
+
+LilycoveCity_Harbor_EventScript_1598A2:: @ 81598A2
+ lock
+ faceplayer
+ checkitem ITEM_EON_TICKET, 1
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_Harbor_EventScript_1599EE
+ goto LilycoveCity_Harbor_EventScript_1598BA
+ end
+
+LilycoveCity_Harbor_EventScript_1598BA:: @ 81598BA
+ goto_if_set FLAG_SYS_GAME_CLEAR, LilycoveCity_Harbor_EventScript_1598CD
+ msgbox LilycoveCity_Harbor_Text_18B306, 4
+ release
+ end
+
+LilycoveCity_Harbor_EventScript_1598CD:: @ 81598CD
+ msgbox LilycoveCity_Harbor_Text_18B36F, 4
+ checkitem ITEM_SS_TICKET, 1
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_Harbor_EventScript_159929
+ message LilycoveCity_Harbor_Text_18B406
+ waitmessage
+ goto LilycoveCity_Harbor_EventScript_1598F1
+ end
+
+LilycoveCity_Harbor_EventScript_1598F1:: @ 81598F1
+ multichoicedefault 18, 6, 56, 2, 0
+ switch RESULT
+ case 0, LilycoveCity_Harbor_EventScript_159933
+ case 1, LilycoveCity_Harbor_EventScript_15995B
+ case 2, LilycoveCity_Harbor_EventScript_1599E4
+ case 127, LilycoveCity_Harbor_EventScript_1599E4
+ end
+
+LilycoveCity_Harbor_EventScript_159929:: @ 8159929
+ msgbox LilycoveCity_Harbor_Text_18B3A9, 4
+ release
+ end
+
+LilycoveCity_Harbor_EventScript_159933:: @ 8159933
+ msgbox LilycoveCity_Harbor_Text_18B47D, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_Harbor_EventScript_15997E
+ setvar VAR_PORTHOLE_STATE, 5
+ call LilycoveCity_Harbor_EventScript_15998A
+ warp MAP_SS_TIDAL_CORRIDOR, 255, 1, 10
+ waitstate
+ release
+ end
+
+LilycoveCity_Harbor_EventScript_15995B:: @ 815995B
+ msgbox LilycoveCity_Harbor_Text_18B499, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_Harbor_EventScript_15997E
+ call LilycoveCity_Harbor_EventScript_15998A
+ warp MAP_BATTLE_TOWER_OUTSIDE, 255, 19, 23
+ waitstate
+ release
+ end
+
+LilycoveCity_Harbor_EventScript_15997E:: @ 815997E
+ message LilycoveCity_Harbor_Text_18B4E2
+ waitmessage
+ goto LilycoveCity_Harbor_EventScript_1598F1
+ end
+
+LilycoveCity_Harbor_EventScript_15998A:: @ 815998A
+ msgbox LilycoveCity_Harbor_Text_18B4B3, 4
+ closemessage
+ applymovement LAST_TALKED, LilycoveCity_Harbor_Movement_1A0841
+ waitmovement 0
+ delay 30
+ hideobjectat LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR
+ compare FACING, 2
+ call_if_eq LilycoveCity_Harbor_EventScript_1599D9
+ compare FACING, 4
+ call_if_eq LilycoveCity_Harbor_EventScript_1599CE
+ delay 30
+ hideobjectat 255, MAP_PETALBURG_CITY
+ setvar VAR_SPECIAL_4, 2
+ call LilycoveCity_Harbor_EventScript_1A040E
+ return
+
+LilycoveCity_Harbor_EventScript_1599CE:: @ 81599CE
+ applymovement 255, LilycoveCity_Harbor_Movement_159A86
+ waitmovement 0
+ return
+
+LilycoveCity_Harbor_EventScript_1599D9:: @ 81599D9
+ applymovement 255, LilycoveCity_Harbor_Movement_159A89
+ waitmovement 0
+ return
+
+LilycoveCity_Harbor_EventScript_1599E4:: @ 81599E4
+ msgbox LilycoveCity_Harbor_Text_18B45B, 4
+ release
+ end
+
+LilycoveCity_Harbor_EventScript_1599EE:: @ 81599EE
+ goto_if_unset FLAG_SYS_GAME_CLEAR, LilycoveCity_Harbor_EventScript_1598BA
+ goto_if_set FLAG_ENCOUNTERED_LATIAS_OR_LATIOS, LilycoveCity_Harbor_EventScript_1598BA
+ goto_if_unset FLAG_SYS_HAS_EON_TICKET, LilycoveCity_Harbor_EventScript_1598BA
+ msgbox LilycoveCity_Harbor_Text_1C50F2, 4
+ closemessage
+ applymovement LAST_TALKED, LilycoveCity_Harbor_Movement_1A0841
+ waitmovement 0
+ delay 30
+ hideobjectat LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR
+ delay 60
+ addobject 4
+ delay 30
+ applymovement 4, LilycoveCity_Harbor_Movement_1A0839
+ waitmovement 0
+ msgbox LilycoveCity_Harbor_Text_1C5120, 4
+ closemessage
+ applymovement 4, LilycoveCity_Harbor_Movement_1A0841
+ waitmovement 0
+ delay 30
+ removeobject 4
+ compare FACING, 2
+ call_if_eq LilycoveCity_Harbor_EventScript_1599D9
+ compare FACING, 4
+ call_if_eq LilycoveCity_Harbor_EventScript_1599CE
+ delay 30
+ hideobjectat 255, MAP_PETALBURG_CITY
+ special ScrSpecial_HealPlayerParty
+ setvar VAR_SPECIAL_4, 2
+ call LilycoveCity_Harbor_EventScript_1A040E
+ warp MAP_SOUTHERN_ISLAND_EXTERIOR, 255, 13, 22
+ waitstate
+ release
+ end
+
+LilycoveCity_Harbor_Movement_159A86:: @ 8159A86
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+LilycoveCity_Harbor_Movement_159A89:: @ 8159A89
+ walk_up
+ end_movement
+
+@ 8159A8B
+ walk_up
+ end_movement
+
+LilycoveCity_Harbor_EventScript_159A8D:: @ 8159A8D
+ lock
+ faceplayer
+ goto_if_set FLAG_SYS_GAME_CLEAR, LilycoveCity_Harbor_EventScript_159AA2
+ msgbox LilycoveCity_Harbor_Text_18B504, 4
+ release
+ end
+
+LilycoveCity_Harbor_EventScript_159AA2:: @ 8159AA2
+ msgbox LilycoveCity_Harbor_Text_18B58E, 4
+ release
+ end
diff --git a/data/maps/LilycoveCity_House1/scripts.inc b/data/maps/LilycoveCity_House1/scripts.inc
new file mode 100644
index 000000000..15535a122
--- /dev/null
+++ b/data/maps/LilycoveCity_House1/scripts.inc
@@ -0,0 +1,16 @@
+LilycoveCity_House1_MapScripts:: @ 8159B85
+ .byte 0
+
+LilycoveCity_House1_EventScript_159B86:: @ 8159B86
+ msgbox LilycoveCity_House1_Text_18B7B0, 2
+ end
+
+LilycoveCity_House1_EventScript_159B8F:: @ 8159B8F
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_KECLEON, 0
+ msgbox LilycoveCity_House1_Text_18B82B, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/LilycoveCity_House2/scripts.inc b/data/maps/LilycoveCity_House2/scripts.inc
new file mode 100644
index 000000000..797c8f203
--- /dev/null
+++ b/data/maps/LilycoveCity_House2/scripts.inc
@@ -0,0 +1,20 @@
+LilycoveCity_House2_MapScripts:: @ 8159BA2
+ .byte 0
+
+LilycoveCity_House2_EventScript_159BA3:: @ 8159BA3
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM44, LilycoveCity_House2_EventScript_159BDA
+ msgbox LilycoveCity_House2_Text_18B83C, 4
+ giveitem_std ITEM_TM44_REST
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_House2_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM44
+ msgbox LilycoveCity_House2_Text_18B883, 4
+ release
+ end
+
+LilycoveCity_House2_EventScript_159BDA:: @ 8159BDA
+ msgbox LilycoveCity_House2_Text_18B883, 4
+ release
+ end
diff --git a/data/maps/LilycoveCity_House3/scripts.inc b/data/maps/LilycoveCity_House3/scripts.inc
new file mode 100644
index 000000000..1a569bf5b
--- /dev/null
+++ b/data/maps/LilycoveCity_House3/scripts.inc
@@ -0,0 +1,99 @@
+LilycoveCity_House3_MapScripts:: @ 8159BE4
+ map_script 3, LilycoveCity_House3_MapScript1_159BEA
+ .byte 0
+
+LilycoveCity_House3_MapScript1_159BEA:: @ 8159BEA
+ random 4
+ copyvar VAR_TEMP_1, RESULT
+ end
+
+LilycoveCity_House3_EventScript_159BF3:: @ 8159BF3
+ lock
+ faceplayer
+ msgbox LilycoveCity_House3_Text_18B8CC, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_House3_EventScript_159C1D
+ msgbox LilycoveCity_House3_Text_18BA2B, 4
+ closemessage
+ applymovement LAST_TALKED, LilycoveCity_House3_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+LilycoveCity_House3_EventScript_159C1D:: @ 8159C1D
+ msgbox LilycoveCity_House3_Text_18B9DC, 4
+ closemessage
+ applymovement LAST_TALKED, LilycoveCity_House3_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+LilycoveCity_House3_EventScript_159C32:: @ 8159C32
+ lock
+ faceplayer
+ msgbox LilycoveCity_House3_Text_18BD64, 4
+ closemessage
+ applymovement LAST_TALKED, LilycoveCity_House3_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+LilycoveCity_House3_EventScript_159C49:: @ 8159C49
+ lock
+ faceplayer
+ switch VAR_TEMP_1
+ case 0, LilycoveCity_House3_EventScript_159D19
+ case 1, LilycoveCity_House3_EventScript_159D23
+ case 2, LilycoveCity_House3_EventScript_159D2D
+ case 3, LilycoveCity_House3_EventScript_159D37
+ end
+
+LilycoveCity_House3_EventScript_159C7D:: @ 8159C7D
+ lock
+ faceplayer
+ switch VAR_TEMP_1
+ case 0, LilycoveCity_House3_EventScript_159D19
+ case 1, LilycoveCity_House3_EventScript_159D23
+ case 2, LilycoveCity_House3_EventScript_159D2D
+ case 3, LilycoveCity_House3_EventScript_159D37
+ end
+
+LilycoveCity_House3_EventScript_159CB1:: @ 8159CB1
+ lock
+ faceplayer
+ switch VAR_TEMP_1
+ case 0, LilycoveCity_House3_EventScript_159D19
+ case 1, LilycoveCity_House3_EventScript_159D23
+ case 2, LilycoveCity_House3_EventScript_159D2D
+ case 3, LilycoveCity_House3_EventScript_159D37
+ end
+
+LilycoveCity_House3_EventScript_159CE5:: @ 8159CE5
+ lock
+ faceplayer
+ switch VAR_TEMP_1
+ case 0, LilycoveCity_House3_EventScript_159D19
+ case 1, LilycoveCity_House3_EventScript_159D23
+ case 2, LilycoveCity_House3_EventScript_159D2D
+ case 3, LilycoveCity_House3_EventScript_159D37
+ end
+
+LilycoveCity_House3_EventScript_159D19:: @ 8159D19
+ msgbox LilycoveCity_House3_Text_18BDDB, 4
+ release
+ end
+
+LilycoveCity_House3_EventScript_159D23:: @ 8159D23
+ msgbox LilycoveCity_House3_Text_18BE14, 4
+ release
+ end
+
+LilycoveCity_House3_EventScript_159D2D:: @ 8159D2D
+ msgbox LilycoveCity_House3_Text_18BE57, 4
+ release
+ end
+
+LilycoveCity_House3_EventScript_159D37:: @ 8159D37
+ msgbox LilycoveCity_House3_Text_18BE8E, 4
+ release
+ end
diff --git a/data/maps/LilycoveCity_House4/scripts.inc b/data/maps/LilycoveCity_House4/scripts.inc
new file mode 100644
index 000000000..13bc95dfa
--- /dev/null
+++ b/data/maps/LilycoveCity_House4/scripts.inc
@@ -0,0 +1,10 @@
+LilycoveCity_House4_MapScripts:: @ 8159D41
+ .byte 0
+
+LilycoveCity_House4_EventScript_159D42:: @ 8159D42
+ msgbox LilycoveCity_House4_Text_18BEE8, 2
+ end
+
+LilycoveCity_House4_EventScript_159D4B:: @ 8159D4B
+ msgbox LilycoveCity_House4_Text_18BF4E, 2
+ end
diff --git a/data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc b/data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc
new file mode 100644
index 000000000..b45261aca
--- /dev/null
+++ b/data/maps/LilycoveCity_LilycoveMuseum_1F/scripts.inc
@@ -0,0 +1,162 @@
+LilycoveCity_LilycoveMuseum_1F_MapScripts:: @ 815841B
+ .byte 0
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_15841C:: @ 815841C
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187348, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158425:: @ 8158425
+ lockall
+ applymovement 2, LilycoveCity_LilycoveMuseum_1F_Movement_1A0839
+ message LilycoveCity_LilycoveMuseum_1F_Text_1873B9
+ waitmessage
+ multichoice 20, 8, 16, 1
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_LilycoveMuseum_1F_EventScript_158458
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_LilycoveMuseum_1F_EventScript_15844F
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_15844F:: @ 815844F
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187459, 2
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158458:: @ 8158458
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187495, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq LilycoveCity_LilycoveMuseum_1F_EventScript_158477
+ compare RESULT, YES
+ goto_if_eq LilycoveCity_LilycoveMuseum_1F_EventScript_158481
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158477:: @ 8158477
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_1874F5, 3
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158481:: @ 8158481
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187534, 3
+ applymovement 2, LilycoveCity_LilycoveMuseum_1F_Movement_1584FC
+ waitmovement 0
+ removeobject 2
+ switch FACING
+ case 2, LilycoveCity_LilycoveMuseum_1F_EventScript_1584BD
+ case 3, LilycoveCity_LilycoveMuseum_1F_EventScript_1584D2
+ case 4, LilycoveCity_LilycoveMuseum_1F_EventScript_1584E7
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_1584BD:: @ 81584BD
+ lockall
+ applymovement 255, LilycoveCity_LilycoveMuseum_1F_Movement_158504
+ waitmovement 0
+ warp MAP_LILYCOVE_CITY_LILYCOVE_MUSEUM_2F, 255, 11, 8
+ waitstate
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_1584D2:: @ 81584D2
+ lockall
+ applymovement 255, LilycoveCity_LilycoveMuseum_1F_Movement_1584FE
+ waitmovement 0
+ warp MAP_LILYCOVE_CITY_LILYCOVE_MUSEUM_2F, 255, 11, 8
+ waitstate
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_1584E7:: @ 81584E7
+ lockall
+ applymovement 255, LilycoveCity_LilycoveMuseum_1F_Movement_158501
+ waitmovement 0
+ warp MAP_LILYCOVE_CITY_LILYCOVE_MUSEUM_2F, 255, 11, 8
+ waitstate
+ end
+
+LilycoveCity_LilycoveMuseum_1F_Movement_1584FC:: @ 81584FC
+ walk_up
+ end_movement
+
+LilycoveCity_LilycoveMuseum_1F_Movement_1584FE:: @ 81584FE
+ walk_left
+ walk_up
+ end_movement
+
+LilycoveCity_LilycoveMuseum_1F_Movement_158501:: @ 8158501
+ walk_right
+ walk_up
+ end_movement
+
+LilycoveCity_LilycoveMuseum_1F_Movement_158504:: @ 8158504
+ walk_up
+ walk_up
+ end_movement
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158507:: @ 8158507
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_18757F, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158510:: @ 8158510
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_1875BE, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158519:: @ 8158519
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_1875F8, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158522:: @ 8158522
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187641, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_15852B:: @ 815852B
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_1876A1, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158534:: @ 8158534
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_18770C, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_15853D:: @ 815853D
+LilycoveCity_LilycoveMuseum_2F_EventScript_15853D:: @ 815853D
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_18775F, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158546:: @ 8158546
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_1877A9, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_15854F:: @ 815854F
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187810, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158558:: @ 8158558
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_1878B7, 2
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158561:: @ 8158561
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_18791D, 2
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_15856A:: @ 815856A
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_1879BF, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158573:: @ 8158573
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_1879E6, 3
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_15857C:: @ 815857C
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187A1A, 2
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_158585:: @ 8158585
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187AA0, 2
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_15858E:: @ 815858E
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187B04, 2
+ lockall
+ applymovement 8, LilycoveCity_LilycoveMuseum_1F_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_1F_EventScript_1585A3:: @ 81585A3
+ msgbox LilycoveCity_LilycoveMuseum_1F_Text_187B7F, 2
+ end
diff --git a/data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc b/data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc
new file mode 100644
index 000000000..1643c3a8b
--- /dev/null
+++ b/data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc
@@ -0,0 +1,220 @@
+LilycoveCity_LilycoveMuseum_2F_MapScripts:: @ 81585AC
+ map_script 1, LilycoveCity_LilycoveMuseum_2F_MapScript1_1585B7
+ map_script 2, LilycoveCity_LilycoveMuseum_2F_MapScript2_158670
+ .byte 0
+
+LilycoveCity_LilycoveMuseum_2F_MapScript1_1585B7:: @ 81585B7
+ goto_if_set FLAG_COOL_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_1585FD
+ goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585C6
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1585C6:: @ 81585C6
+ goto_if_set FLAG_BEAUTY_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_158615
+ goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585D5
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1585D5:: @ 81585D5
+ goto_if_set FLAG_CUTE_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_15862D
+ goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585E4
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1585E4:: @ 81585E4
+ goto_if_set FLAG_SMART_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_158645
+ goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585F3
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1585F3:: @ 81585F3
+ goto_if_set FLAG_TOUGH_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_15865D
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1585FD:: @ 81585FD
+ setmetatile 10, 6, 606, 1
+ setmetatile 11, 6, 607, 1
+ goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585C6
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_158615:: @ 8158615
+ setmetatile 18, 6, 604, 1
+ setmetatile 19, 6, 605, 1
+ goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585D5
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15862D:: @ 815862D
+ setmetatile 14, 10, 608, 1
+ setmetatile 15, 10, 609, 1
+ goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585E4
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_158645:: @ 8158645
+ setmetatile 6, 10, 602, 1
+ setmetatile 7, 10, 603, 1
+ goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585F3
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15865D:: @ 815865D
+ setmetatile 2, 6, 610, 1
+ setmetatile 3, 6, 611, 1
+ end
+
+LilycoveCity_LilycoveMuseum_2F_MapScript2_158670:: @ 8158670
+ map_script_2 VAR_LILYCOVE_MUSEUM_2F_STATE, 0, LilycoveCity_LilycoveMuseum_2F_EventScript_15867A
+ .2byte 0
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15867A:: @ 815867A
+ lockall
+ applymovement 1, LilycoveCity_LilycoveMuseum_2F_Movement_1A0839
+ applymovement 255, LilycoveCity_LilycoveMuseum_2F_Movement_1586D3
+ waitmovement 0
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_187C42, 3
+ applymovement 1, LilycoveCity_LilycoveMuseum_2F_Movement_1586D5
+ waitmovement 0
+ applymovement 255, LilycoveCity_LilycoveMuseum_2F_Movement_1586D5
+ waitmovement 0
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_187C64, 3
+ applymovement 1, LilycoveCity_LilycoveMuseum_2F_Movement_1A0839
+ waitmovement 0
+ applymovement 255, LilycoveCity_LilycoveMuseum_2F_Movement_1586D3
+ waitmovement 0
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_187E1D, 3
+ copyvar VAR_LILYCOVE_MUSEUM_2F_STATE, 0x1
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_2F_Movement_1586D3:: @ 81586D3
+ walk_in_place_fastest_left
+ end_movement
+
+LilycoveCity_LilycoveMuseum_2F_Movement_1586D5:: @ 81586D5
+ face_up
+ delay_16
+ end_movement
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1586D8:: @ 81586D8
+ lockall
+ goto_if_set FLAG_RECEIVED_GLASS_ORNAMENT, LilycoveCity_LilycoveMuseum_2F_EventScript_158793
+ specialvar VAR_SPECIAL_4, sub_80C4D50
+ switch VAR_SPECIAL_4
+ case 1, LilycoveCity_LilycoveMuseum_2F_EventScript_15872C
+ case 2, LilycoveCity_LilycoveMuseum_2F_EventScript_15872C
+ case 3, LilycoveCity_LilycoveMuseum_2F_EventScript_15872C
+ case 4, LilycoveCity_LilycoveMuseum_2F_EventScript_15872C
+ case 5, LilycoveCity_LilycoveMuseum_2F_EventScript_158735
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_187F4E, 2
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15872C:: @ 815872C
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_187F9D, 2
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_158735:: @ 8158735
+ applymovement 1, LilycoveCity_LilycoveMuseum_2F_Movement_1A0839
+ waitmovement 0
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_18802F, 4
+ applymovement 1, LilycoveCity_LilycoveMuseum_2F_Movement_1586D5
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_188041, 4
+ goto LilycoveCity_LilycoveMuseum_2F_EventScript_15875C
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15875C:: @ 815875C
+ applymovement 1, LilycoveCity_LilycoveMuseum_2F_Movement_1A0839
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_188120, 4
+ givedecoration_std DECOR_GLASS_ORNAMENT
+ compare RESULT, 0
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158783
+ setflag FLAG_RECEIVED_GLASS_ORNAMENT
+ closemessage
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_158783:: @ 8158783
+ call LilycoveCity_LilycoveMuseum_2F_EventScript_1A02B8
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_188166, 4
+ closemessage
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_158793:: @ 8158793
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_188194, 2
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15879D:: @ 815879D
+ lockall
+ goto_if_set FLAG_CUTE_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_15883C
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_188219, 3
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1587B0:: @ 81587B0
+ lockall
+ goto_if_set FLAG_TOUGH_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_158858
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_18824C, 3
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1587C3:: @ 81587C3
+ lockall
+ goto_if_set FLAG_COOL_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_158820
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_1882B4, 3
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1587D6:: @ 81587D6
+ lockall
+ goto_if_set FLAG_BEAUTY_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_15882E
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_188281, 3
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_1587E9:: @ 81587E9
+ lockall
+ goto_if_set FLAG_SMART_PAINTING_MADE, LilycoveCity_LilycoveMuseum_2F_EventScript_15884A
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_1882E6, 3
+ end
+
+@ 81587FC
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_18831A, 3
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_158805:: @ 8158805
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_188336, 2
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15880E:: @ 815880E
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_1883AB, 2
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_158817:: @ 8158817
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_188423, 2
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_158820:: @ 8158820
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_18831A, 3
+ fadescreen 1
+ drawcontestwinner 9
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15882E:: @ 815882E
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_18831A, 3
+ fadescreen 1
+ drawcontestwinner 10
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15883C:: @ 815883C
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_18831A, 3
+ fadescreen 1
+ drawcontestwinner 11
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_15884A:: @ 815884A
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_18831A, 3
+ fadescreen 1
+ drawcontestwinner 12
+ releaseall
+ end
+
+LilycoveCity_LilycoveMuseum_2F_EventScript_158858:: @ 8158858
+ msgbox LilycoveCity_LilycoveMuseum_2F_Text_18831A, 3
+ fadescreen 1
+ drawcontestwinner 13
+ releaseall
+ end
diff --git a/data/maps/LilycoveCity_MoveDeletersHouse/scripts.inc b/data/maps/LilycoveCity_MoveDeletersHouse/scripts.inc
new file mode 100644
index 000000000..8b8500a9c
--- /dev/null
+++ b/data/maps/LilycoveCity_MoveDeletersHouse/scripts.inc
@@ -0,0 +1,63 @@
+LilycoveCity_MoveDeletersHouse_MapScripts:: @ 8159AAD
+ .byte 0
+
+LilycoveCity_MoveDeletersHouse_EventScript_159AAE:: @ 8159AAE
+ lockall
+ applymovement 1, LilycoveCity_MoveDeletersHouse_Movement_1A0839
+ waitmovement 0
+ msgbox LilycoveCity_MoveDeletersHouse_Text_18B622, MSGBOX_YESNO
+ switch RESULT
+ case YES, LilycoveCity_MoveDeletersHouse_EventScript_159ADE
+ case NO, LilycoveCity_MoveDeletersHouse_EventScript_159B7B
+ releaseall
+ end
+
+LilycoveCity_MoveDeletersHouse_EventScript_159ADE:: @ 8159ADE
+ msgbox LilycoveCity_MoveDeletersHouse_Text_18B68C, 4
+ special SelectMonForNPCTrade
+ waitstate
+ compare VAR_SPECIAL_4, 255
+ goto_if_eq LilycoveCity_MoveDeletersHouse_EventScript_159B7B
+ special IsSelectedMonEgg
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_MoveDeletersHouse_EventScript_159B71
+ special ScrSpecial_CountPokemonMoves
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_MoveDeletersHouse_EventScript_159B64
+ msgbox LilycoveCity_MoveDeletersHouse_Text_18B6B0, 4
+ fadescreen 1
+ special SelectMove
+ fadescreen 0
+ compare VAR_SPECIAL_5, 4
+ goto_if_eq LilycoveCity_MoveDeletersHouse_EventScript_159ADE
+ special ScrSpecial_GetPokemonNicknameAndMoveName
+ msgbox LilycoveCity_MoveDeletersHouse_Text_18B6F2, MSGBOX_YESNO
+ switch RESULT
+ case YES, LilycoveCity_MoveDeletersHouse_EventScript_159B53
+ case NO, LilycoveCity_MoveDeletersHouse_EventScript_159B7B
+ releaseall
+ end
+
+LilycoveCity_MoveDeletersHouse_EventScript_159B53:: @ 8159B53
+ special DeleteMonMove
+ playfanfare BGM_ME_WASURE
+ waitfanfare
+ msgbox LilycoveCity_MoveDeletersHouse_Text_18B71E, 4
+ releaseall
+ end
+
+LilycoveCity_MoveDeletersHouse_EventScript_159B64:: @ 8159B64
+ special ScrSpecial_GetPokemonNicknameAndMoveName
+ msgbox LilycoveCity_MoveDeletersHouse_Text_18B6D0, 4
+ releaseall
+ end
+
+LilycoveCity_MoveDeletersHouse_EventScript_159B71:: @ 8159B71
+ msgbox LilycoveCity_MoveDeletersHouse_Text_18B78C, 4
+ releaseall
+ end
+
+LilycoveCity_MoveDeletersHouse_EventScript_159B7B:: @ 8159B7B
+ msgbox LilycoveCity_MoveDeletersHouse_Text_18B757, 4
+ releaseall
+ end
diff --git a/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc b/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..cff88caf0
--- /dev/null
+++ b/data/maps/LilycoveCity_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,32 @@
+LilycoveCity_PokemonCenter_1F_MapScripts:: @ 8159327
+ map_script 3, LilycoveCity_PokemonCenter_1F_MapScript1_15932D
+ .byte 0
+
+LilycoveCity_PokemonCenter_1F_MapScript1_15932D:: @ 815932D
+ setrespawn 8
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_159331:: @ 8159331
+ setvar VAR_SPECIAL_B, 1
+ call LilycoveCity_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_15933F:: @ 815933F
+ msgbox LilycoveCity_PokemonCenter_1F_Text_189FC9, 2
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_159348:: @ 8159348
+ lock
+ faceplayer
+ goto_if_set FLAG_BADGE07_GET, LilycoveCity_PokemonCenter_1F_EventScript_15935D
+ msgbox LilycoveCity_PokemonCenter_1F_Text_18A048, 4
+ release
+ end
+
+LilycoveCity_PokemonCenter_1F_EventScript_15935D:: @ 815935D
+ msgbox LilycoveCity_PokemonCenter_1F_Text_18A0A1, 4
+ release
+ end
diff --git a/data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc b/data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..e4554e49c
--- /dev/null
+++ b/data/maps/LilycoveCity_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+LilycoveCity_PokemonCenter_2F_MapScripts:: @ 8159367
+ map_script 2, LilycoveCity_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, LilycoveCity_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, LilycoveCity_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+LilycoveCity_PokemonCenter_2F_EventScript_159377:: @ 8159377
+ call LilycoveCity_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+LilycoveCity_PokemonCenter_2F_EventScript_15937D:: @ 815937D
+ call LilycoveCity_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+LilycoveCity_PokemonCenter_2F_EventScript_159383:: @ 8159383
+ call LilycoveCity_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc b/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc
new file mode 100644
index 000000000..bab091a0e
--- /dev/null
+++ b/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc
@@ -0,0 +1,436 @@
+LilycoveCity_PokemonTrainerFanClub_MapScripts:: @ 815938A
+ map_script 2, LilycoveCity_PokemonTrainerFanClub_MapScript2_159395
+ map_script 3, LilycoveCity_PokemonTrainerFanClub_MapScript1_159412
+ .byte 0
+
+LilycoveCity_PokemonTrainerFanClub_MapScript2_159395:: @ 8159395
+ map_script_2 VAR_LILYCOVE_FAN_CLUB_STATE, 1, LilycoveCity_PokemonTrainerFanClub_EventScript_15939F
+ .2byte 0
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15939F:: @ 815939F
+ lockall
+ applymovement 1, LilycoveCity_PokemonTrainerFanClub_Movement_1A0845
+ waitmovement 0
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A1D6, 4
+ applymovement 4, LilycoveCity_PokemonTrainerFanClub_Movement_159402
+ applymovement 2, LilycoveCity_PokemonTrainerFanClub_Movement_1593FA
+ waitmovement 0
+ applymovement 255, LilycoveCity_PokemonTrainerFanClub_Movement_1A0843
+ waitmovement 0
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A1E8, 4
+ applymovement 4, LilycoveCity_PokemonTrainerFanClub_Movement_159409
+ waitmovement 0
+ applymovement 255, LilycoveCity_PokemonTrainerFanClub_Movement_1A083F
+ waitmovement 0
+ applymovement 4, LilycoveCity_PokemonTrainerFanClub_Movement_15940C
+ waitmovement 0
+ setvar VAR_LILYCOVE_FAN_CLUB_STATE, 2
+ releaseall
+ end
+
+LilycoveCity_PokemonTrainerFanClub_Movement_1593FA:: @ 81593FA
+ delay_8
+ walk_in_place_fastest_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ end_movement
+
+LilycoveCity_PokemonTrainerFanClub_Movement_159402:: @ 8159402
+ walk_fast_left
+ walk_fast_left
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_fast_down
+ end_movement
+
+LilycoveCity_PokemonTrainerFanClub_Movement_159409:: @ 8159409
+ walk_down
+ walk_in_place_fastest_right
+ end_movement
+
+LilycoveCity_PokemonTrainerFanClub_Movement_15940C:: @ 815940C
+ jump_in_place_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_in_place_fastest_down
+ end_movement
+
+LilycoveCity_PokemonTrainerFanClub_MapScript1_159412:: @ 8159412
+ compare VAR_LILYCOVE_FAN_CLUB_STATE, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159515
+ compare VAR_LILYCOVE_FAN_CLUB_STATE, 2
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159429
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159429:: @ 8159429
+ special UpdateMovedLilycoveFanClubMembers
+ setvar VAR_SPECIAL_4, 8
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 0
+ call_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1594D5
+ setvar VAR_SPECIAL_4, 9
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 0
+ call_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1594DD
+ setvar VAR_SPECIAL_4, 10
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 0
+ call_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1594E5
+ setvar VAR_SPECIAL_4, 11
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 0
+ call_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1594ED
+ setvar VAR_SPECIAL_4, 12
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 0
+ call_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1594F5
+ setvar VAR_SPECIAL_4, 13
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 0
+ call_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1594FD
+ setvar VAR_SPECIAL_4, 14
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 0
+ call_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159505
+ setvar VAR_SPECIAL_4, 15
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 0
+ call_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15950D
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1594D5:: @ 81594D5
+ setobjectxyperm 1, 7, 5
+ return
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1594DD:: @ 81594DD
+ setobjectxyperm 3, 3, 4
+ return
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1594E5:: @ 81594E5
+ setobjectxyperm 4, 7, 2
+ return
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1594ED:: @ 81594ED
+ setobjectxyperm 5, 5, 5
+ return
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1594F5:: @ 81594F5
+ setobjectxyperm 6, 5, 2
+ return
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1594FD:: @ 81594FD
+ setobjectxyperm 2, 8, 4
+ return
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159505:: @ 8159505
+ setobjectxyperm 7, 3, 3
+ return
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15950D:: @ 815950D
+ setobjectxyperm 8, 8, 3
+ return
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159515:: @ 8159515
+ call LilycoveCity_PokemonTrainerFanClub_EventScript_1594DD
+ call LilycoveCity_PokemonTrainerFanClub_EventScript_1594ED
+ call LilycoveCity_PokemonTrainerFanClub_EventScript_1594F5
+ call LilycoveCity_PokemonTrainerFanClub_EventScript_159505
+ call LilycoveCity_PokemonTrainerFanClub_EventScript_15950D
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15952F:: @ 815952F
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_4, 13
+ special BufferStreakTrainerText
+ compare VAR_LILYCOVE_FAN_CLUB_STATE, 0
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15959C
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15956E
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 7
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159592
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A400, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15956E:: @ 815956E
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159588
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A36A, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159588:: @ 8159588
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A391, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159592:: @ 8159592
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A48D, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15959C:: @ 815959C
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A4EA, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1595A6:: @ 81595A6
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_4, 8
+ special BufferStreakTrainerText
+ compare VAR_LILYCOVE_FAN_CLUB_STATE, 0
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159613
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1595E5
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 7
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159609
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A629, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1595E5:: @ 81595E5
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1595FF
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A584, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1595FF:: @ 81595FF
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A5AC, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159609:: @ 8159609
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A65B, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159613:: @ 8159613
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A6D4, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15961D:: @ 815961D
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_4, 9
+ special BufferStreakTrainerText
+ compare VAR_LILYCOVE_FAN_CLUB_STATE, 0
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15968A
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15965C
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 7
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159680
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A814, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15965C:: @ 815965C
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159676
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A71E, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159676:: @ 8159676
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A789, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159680:: @ 8159680
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A8C4, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15968A:: @ 815968A
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A984, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159694:: @ 8159694
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_4, 10
+ special BufferStreakTrainerText
+ compare VAR_LILYCOVE_FAN_CLUB_STATE, 0
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159701
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1596D3
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 7
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1596F7
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AB0A, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1596D3:: @ 81596D3
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1596ED
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AA39, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1596ED:: @ 81596ED
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AA83, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1596F7:: @ 81596F7
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AB41, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159701:: @ 8159701
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18ABAE, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15970B:: @ 815970B
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_4, 11
+ special BufferStreakTrainerText
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15973F
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 7
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159763
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18ACC7, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15973F:: @ 815973F
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159759
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AC15, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159759:: @ 8159759
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AC5E, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159763:: @ 8159763
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AD05, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15976D:: @ 815976D
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_4, 12
+ special BufferStreakTrainerText
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1597A1
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 7
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1597C5
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AE63, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1597A1:: @ 81597A1
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1597BB
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AD6D, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1597BB:: @ 81597BB
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18ADEF, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1597C5:: @ 81597C5
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AEF5, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_1597CF:: @ 81597CF
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_4, 14
+ special BufferStreakTrainerText
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159803
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 7
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159827
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B030, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159803:: @ 8159803
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15981D
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AF62, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15981D:: @ 815981D
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AFD0, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159827:: @ 8159827
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B0C8, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159831:: @ 8159831
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_4, 15
+ special BufferStreakTrainerText
+ specialvar RESULT, ShouldMoveLilycoveFanClubMember
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159865
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 7
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159889
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B1FD, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159865:: @ 8159865
+ specialvar RESULT, GetNumMovedLilycoveFanClubMembers
+ compare RESULT, 1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15987F
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B16E, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_15987F:: @ 815987F
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B181, 4
+ release
+ end
+
+LilycoveCity_PokemonTrainerFanClub_EventScript_159889:: @ 8159889
+ msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B24F, 4
+ release
+ end
diff --git a/data/maps/LilycoveCity_UnusedMart/scripts.inc b/data/maps/LilycoveCity_UnusedMart/scripts.inc
new file mode 100644
index 000000000..2e7ff450f
--- /dev/null
+++ b/data/maps/LilycoveCity_UnusedMart/scripts.inc
@@ -0,0 +1,2 @@
+LilycoveCity_UnusedMart_MapScripts:: @ 8159389
+ .byte 0
diff --git a/data/maps/LinkContestRoom1/scripts.inc b/data/maps/LinkContestRoom1/scripts.inc
new file mode 100644
index 000000000..2709f558c
--- /dev/null
+++ b/data/maps/LinkContestRoom1/scripts.inc
@@ -0,0 +1 @@
+LinkContestRoom1_MapScripts:: @ 815F580
diff --git a/data/maps/LinkContestRoom2/scripts.inc b/data/maps/LinkContestRoom2/scripts.inc
new file mode 100644
index 000000000..f61e3fae6
--- /dev/null
+++ b/data/maps/LinkContestRoom2/scripts.inc
@@ -0,0 +1 @@
+LinkContestRoom2_MapScripts:: @ 815F580
diff --git a/data/maps/LinkContestRoom3/scripts.inc b/data/maps/LinkContestRoom3/scripts.inc
new file mode 100644
index 000000000..5a34f848a
--- /dev/null
+++ b/data/maps/LinkContestRoom3/scripts.inc
@@ -0,0 +1 @@
+LinkContestRoom3_MapScripts:: @ 815F580
diff --git a/data/maps/LinkContestRoom4/scripts.inc b/data/maps/LinkContestRoom4/scripts.inc
new file mode 100644
index 000000000..bf6539bdd
--- /dev/null
+++ b/data/maps/LinkContestRoom4/scripts.inc
@@ -0,0 +1 @@
+LinkContestRoom4_MapScripts:: @ 815F580
diff --git a/data/maps/LinkContestRoom5/scripts.inc b/data/maps/LinkContestRoom5/scripts.inc
new file mode 100644
index 000000000..d3cd5d64b
--- /dev/null
+++ b/data/maps/LinkContestRoom5/scripts.inc
@@ -0,0 +1 @@
+LinkContestRoom5_MapScripts:: @ 815F580
diff --git a/data/maps/LinkContestRoom6/scripts.inc b/data/maps/LinkContestRoom6/scripts.inc
new file mode 100644
index 000000000..26296ece6
--- /dev/null
+++ b/data/maps/LinkContestRoom6/scripts.inc
@@ -0,0 +1 @@
+LinkContestRoom6_MapScripts:: @ 815F580
diff --git a/data/maps/LittlerootTown/scripts.inc b/data/maps/LittlerootTown/scripts.inc
new file mode 100644
index 000000000..9f328bc4a
--- /dev/null
+++ b/data/maps/LittlerootTown/scripts.inc
@@ -0,0 +1,877 @@
+LittlerootTown_MapScripts:: @ 814D509
+ map_script 3, LittlerootTown_MapScript1_14D514
+ map_script 2, LittlerootTown_MapScript2_14D5D5
+ .byte 0
+
+LittlerootTown_MapScript1_14D514:: @ 814D514
+ setflag FLAG_VISITED_LITTLEROOT_TOWN
+ compare VAR_LITTLEROOT_INTRO_STATE, 2
+ call_if_eq LittlerootTown_EventScript_14D57B
+ call_if_unset FLAG_RESCUED_BIRCH, LittlerootTown_EventScript_14D583
+ compare VAR_LITTLEROOT_STATE, 3
+ call_if_eq LittlerootTown_EventScript_14D5A6
+ compare VAR_LITTLEROOT_HOUSES_STATE, 4
+ call_if_eq LittlerootTown_EventScript_14D570
+ compare VAR_LITTLEROOT_HOUSES_STATE_2, 4
+ call_if_eq LittlerootTown_EventScript_14D570
+ compare VAR_OLDALE_STATE, 1
+ call_if_eq LittlerootTown_EventScript_14D567
+ compare VAR_LITTLEROOT_RIVAL_STATE, 3
+ call_if_eq LittlerootTown_EventScript_14D563
+ end
+
+LittlerootTown_EventScript_14D563:: @ 814D563
+ setflag FLAG_RIVAL_LEFT_FOR_ROUTE103
+ return
+
+LittlerootTown_EventScript_14D567:: @ 814D567
+ setvar VAR_OLDALE_STATE, 2
+ setflag FLAG_HIDE_RIVAL_OLDALE_TOWN
+ return
+
+LittlerootTown_EventScript_14D570:: @ 814D570
+ setvar VAR_LITTLEROOT_HOUSES_STATE, 5
+ setvar VAR_LITTLEROOT_HOUSES_STATE_2, 5
+ return
+
+LittlerootTown_EventScript_14D57B:: @ 814D57B
+ setobjectxyperm 4, 14, 8
+ return
+
+LittlerootTown_EventScript_14D583:: @ 814D583
+ compare VAR_LITTLEROOT_STATE, 0
+ goto_if_eq LittlerootTown_EventScript_14D59A
+ setobjectxyperm 1, 10, 1
+ setobjectmovementtype 1, 7
+ return
+
+LittlerootTown_EventScript_14D59A:: @ 814D59A
+ setobjectxyperm 1, 7, 2
+ setobjectmovementtype 1, 8
+ return
+
+LittlerootTown_EventScript_14D5A6:: @ 814D5A6
+ clearflag FLAG_HIDE_MOM_LITTLEROOT
+ setobjectmovementtype 4, 8
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_EventScript_14D5C5
+ compare RESULT, 1
+ call_if_eq LittlerootTown_EventScript_14D5CD
+ return
+
+LittlerootTown_EventScript_14D5C5:: @ 814D5C5
+ setobjectxyperm 4, 5, 9
+ return
+
+LittlerootTown_EventScript_14D5CD:: @ 814D5CD
+ setobjectxyperm 4, 14, 9
+ return
+
+LittlerootTown_MapScript2_14D5D5:: @ 814D5D5
+ map_script_2 VAR_LITTLEROOT_INTRO_STATE, 1, LittlerootTown_EventScript_14D5EF
+ map_script_2 VAR_LITTLEROOT_INTRO_STATE, 2, LittlerootTown_EventScript_14D60D
+ map_script_2 VAR_LITTLEROOT_INTRO_STATE, 7, LittlerootTown_EventScript_14D6C5
+ .2byte 0
+
+LittlerootTown_EventScript_14D5EF:: @ 814D5EF
+ lockall
+ setvar VAR_SPECIAL_4, 5
+ setvar VAR_SPECIAL_5, 8
+ call LittlerootTown_EventScript_14D62B
+ setflag FLAG_HIDE_MOVING_TRUCK_BRENDAN
+ warpsilent MAP_LITTLEROOT_TOWN_BRENDANS_HOUSE_1F, 255, 8, 8
+ waitstate
+ releaseall
+ end
+
+LittlerootTown_EventScript_14D60D:: @ 814D60D
+ lockall
+ setvar VAR_SPECIAL_4, 14
+ setvar VAR_SPECIAL_5, 8
+ call LittlerootTown_EventScript_14D62B
+ setflag FLAG_HIDE_MOVING_TRUCK_MAY
+ warpsilent MAP_LITTLEROOT_TOWN_MAYS_HOUSE_1F, 255, 2, 8
+ waitstate
+ releaseall
+ end
+
+LittlerootTown_EventScript_14D62B:: @ 814D62B
+ delay 15
+ playse SE_DANSA
+ applymovement 255, LittlerootTown_Movement_14D6C0
+ waitmovement 0
+ opendoor VAR_SPECIAL_4, VAR_SPECIAL_5
+ waitdooranim
+ addobject 4
+ applymovement 4, LittlerootTown_Movement_14D6AC
+ waitmovement 0
+ closedoor VAR_SPECIAL_4, VAR_SPECIAL_5
+ waitdooranim
+ delay 10
+ applymovement 4, LittlerootTown_Movement_14D6AE
+ waitmovement 0
+ msgbox LittlerootTown_Text_16A7C9, 4
+ closemessage
+ applymovement 4, LittlerootTown_Movement_14D6B1
+ applymovement 255, LittlerootTown_Movement_14D6B8
+ waitmovement 0
+ opendoor VAR_SPECIAL_4, VAR_SPECIAL_5
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14D6B5
+ applymovement 255, LittlerootTown_Movement_14D6BD
+ waitmovement 0
+ setflag FLAG_HIDE_MOM_LITTLEROOT
+ setvar VAR_LITTLEROOT_INTRO_STATE, 3
+ hideobjectat 255, MAP_PETALBURG_CITY
+ closedoor VAR_SPECIAL_4, VAR_SPECIAL_5
+ waitdooranim
+ clearflag FLAG_HIDE_FAT_MAN_LITTLEROOT
+ clearflag FLAG_SPECIAL_FLAG_0
+ return
+
+LittlerootTown_Movement_14D6AC:: @ 814D6AC
+ walk_down
+ end_movement
+
+LittlerootTown_Movement_14D6AE:: @ 814D6AE
+ walk_down
+ walk_in_place_fastest_left
+ end_movement
+
+LittlerootTown_Movement_14D6B1:: @ 814D6B1
+ delay_16
+ delay_8
+ walk_up
+ end_movement
+
+LittlerootTown_Movement_14D6B5:: @ 814D6B5
+ walk_up
+ set_invisible
+ end_movement
+
+LittlerootTown_Movement_14D6B8:: @ 814D6B8
+ delay_16
+ delay_8
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+LittlerootTown_Movement_14D6BD:: @ 814D6BD
+ walk_up
+ walk_up
+ end_movement
+
+LittlerootTown_Movement_14D6C0:: @ 814D6C0
+ jump_right
+ delay_16
+ delay_16
+ delay_16
+ end_movement
+
+LittlerootTown_EventScript_14D6C5:: @ 814D6C5
+ lockall
+ setvar VAR_LITTLEROOT_INTRO_STATE, 8
+ releaseall
+ end
+
+LittlerootTown_EventScript_14D6CD:: @ 814D6CD
+ msgbox LittlerootTown_Text_16AC00, 2
+ end
+
+LittlerootTown_EventScript_14D6D6:: @ 814D6D6
+ msgbox LittlerootTown_Text_16AC56, 2
+ end
+
+LittlerootTown_EventScript_14D6DF:: @ 814D6DF
+ lock
+ faceplayer
+ goto_if_set FLAG_ADVENTURE_STARTED, LittlerootTown_EventScript_14D72F
+ goto_if_set FLAG_RESCUED_BIRCH, LittlerootTown_EventScript_14D722
+ compare VAR_LITTLEROOT_STATE, 0
+ goto_if_ne LittlerootTown_EventScript_14D708
+ msgbox LittlerootTown_Text_16ACEB, 4
+ release
+ end
+
+LittlerootTown_EventScript_14D708:: @ 814D708
+ msgbox LittlerootTown_Text_16AD82, 4
+ closemessage
+ applymovement 1, LittlerootTown_Movement_1A083D
+ waitmovement 0
+ setvar VAR_LITTLEROOT_STATE, 2
+ release
+ end
+
+LittlerootTown_EventScript_14D722:: @ 814D722
+ special GetPlayerBigGuyGirlString
+ msgbox LittlerootTown_Text_16ADF2, 4
+ release
+ end
+
+LittlerootTown_EventScript_14D72F:: @ 814D72F
+ msgbox LittlerootTown_Text_16AE25, 4
+ release
+ end
+
+LittlerootTown_EventScript_14D739:: @ 814D739
+ lockall
+ applymovement 1, LittlerootTown_Movement_14D779
+ waitmovement 0
+ call LittlerootTown_EventScript_14D755
+ applymovement 1, LittlerootTown_Movement_14D789
+ waitmovement 0
+ releaseall
+ end
+
+LittlerootTown_EventScript_14D755:: @ 814D755
+ msgbox LittlerootTown_Text_16ACEB, 4
+ closemessage
+ applymovement 1, LittlerootTown_Movement_14D787
+ applymovement 255, LittlerootTown_Movement_14D793
+ waitmovement 0
+ msgbox LittlerootTown_Text_16AD3C, 4
+ closemessage
+ return
+
+LittlerootTown_Movement_14D779:: @ 814D779
+ face_right
+ delay_8
+ disable_jump_landing_ground_effect
+ jump_in_place_right
+ delay_8
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_left
+ face_down
+ end_movement
+
+LittlerootTown_Movement_14D787:: @ 814D787
+ walk_down
+ end_movement
+
+LittlerootTown_Movement_14D789:: @ 814D789
+ walk_right
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_in_place_fastest_down
+ end_movement
+
+LittlerootTown_Movement_14D793:: @ 814D793
+ lock_facing_direction
+ walk_down
+ unlock_facing_direction
+ end_movement
+
+LittlerootTown_EventScript_14D797:: @ 814D797
+ lockall
+ applymovement 1, LittlerootTown_Movement_14D7B3
+ waitmovement 0
+ call LittlerootTown_EventScript_14D755
+ applymovement 1, LittlerootTown_Movement_14D7C0
+ waitmovement 0
+ releaseall
+ end
+
+LittlerootTown_Movement_14D7B3:: @ 814D7B3
+ face_right
+ delay_8
+ disable_jump_landing_ground_effect
+ jump_in_place_right
+ delay_8
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ face_down
+ end_movement
+
+LittlerootTown_Movement_14D7C0:: @ 814D7C0
+ walk_left
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+LittlerootTown_EventScript_14D7C7:: @ 814D7C7
+ lockall
+ applymovement 1, LittlerootTown_Movement_1A0843
+ waitmovement 0
+ applymovement 255, LittlerootTown_Movement_1A083F
+ waitmovement 0
+ msgbox LittlerootTown_Text_16AD82, 4
+ closemessage
+ applymovement 1, LittlerootTown_Movement_1A083D
+ waitmovement 0
+ setvar VAR_LITTLEROOT_STATE, 2
+ releaseall
+ end
+
+LittlerootTown_EventScript_14D7F6:: @ 814D7F6
+ msgbox LittlerootTown_Text_16AE50, 3
+ end
+
+LittlerootTown_EventScript_14D7FF:: @ 814D7FF
+ msgbox LittlerootTown_Text_16AE87, 3
+ end
+
+LittlerootTown_EventScript_14D808:: @ 814D808
+ lockall
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_EventScript_14D822
+ compare RESULT, 1
+ call_if_eq LittlerootTown_EventScript_14D82B
+ releaseall
+ end
+
+LittlerootTown_EventScript_14D822:: @ 814D822
+ msgbox LittlerootTown_Text_16AEA1, 4
+ return
+
+LittlerootTown_EventScript_14D82B:: @ 814D82B
+ msgbox LittlerootTown_Text_16AEAC, 4
+ return
+
+LittlerootTown_EventScript_14D834:: @ 814D834
+ lockall
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_EventScript_14D84E
+ compare RESULT, 1
+ call_if_eq LittlerootTown_EventScript_14D857
+ releaseall
+ end
+
+LittlerootTown_EventScript_14D84E:: @ 814D84E
+ msgbox LittlerootTown_Text_16AEAC, 4
+ return
+
+LittlerootTown_EventScript_14D857:: @ 814D857
+ msgbox LittlerootTown_Text_16AEA1, 4
+ return
+
+LittlerootTown_EventScript_14D860:: @ 814D860
+ lockall
+ setvar VAR_SPECIAL_8, 0
+ setobjectxy 4, 10, 9
+ goto LittlerootTown_EventScript_14D8B6
+ end
+
+LittlerootTown_EventScript_14D873:: @ 814D873
+ lockall
+ setvar VAR_SPECIAL_8, 1
+ setobjectxy 4, 11, 9
+ goto LittlerootTown_EventScript_14D8B6
+ end
+
+LittlerootTown_EventScript_14D886:: @ 814D886
+ lockall
+ setvar VAR_SPECIAL_8, 2
+ goto LittlerootTown_EventScript_14D8B6
+ end
+
+LittlerootTown_EventScript_14D892:: @ 814D892
+ lockall
+ setvar VAR_SPECIAL_8, 3
+ goto LittlerootTown_EventScript_14D8B6
+ end
+
+LittlerootTown_EventScript_14D89E:: @ 814D89E
+ lockall
+ setvar VAR_SPECIAL_8, 4
+ goto LittlerootTown_EventScript_14D8B6
+ end
+
+LittlerootTown_EventScript_14D8AA:: @ 814D8AA
+ lockall
+ setvar VAR_SPECIAL_8, 5
+ goto LittlerootTown_EventScript_14D8B6
+ end
+
+LittlerootTown_EventScript_14D8B6:: @ 814D8B6
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_EventScript_14D93C
+ compare RESULT, 1
+ call_if_eq LittlerootTown_EventScript_14D947
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_EventScript_14D926
+ compare RESULT, 1
+ call_if_eq LittlerootTown_EventScript_14D931
+ msgbox LittlerootTown_Text_16A8EE, 4
+ closemessage
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_EventScript_14D952
+ compare RESULT, 1
+ call_if_eq LittlerootTown_EventScript_14D995
+ call LittlerootTown_EventScript_14DD38
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_EventScript_14DAAA
+ compare RESULT, 1
+ call_if_eq LittlerootTown_EventScript_14DAED
+ goto LittlerootTown_EventScript_14DD2B
+ end
+
+LittlerootTown_EventScript_14D926:: @ 814D926
+ setvar VAR_SPECIAL_9, 5
+ setvar VAR_SPECIAL_A, 8
+ return
+
+LittlerootTown_EventScript_14D931:: @ 814D931
+ setvar VAR_SPECIAL_9, 14
+ setvar VAR_SPECIAL_A, 8
+ return
+
+LittlerootTown_EventScript_14D93C:: @ 814D93C
+ applymovement 4, LittlerootTown_Movement_1A0843
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14D947:: @ 814D947
+ applymovement 4, LittlerootTown_Movement_1A083F
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14D952:: @ 814D952
+ compare VAR_SPECIAL_8, 0
+ call_if_eq LittlerootTown_EventScript_14D9D8
+ compare VAR_SPECIAL_8, 1
+ call_if_eq LittlerootTown_EventScript_14D9ED
+ compare VAR_SPECIAL_8, 2
+ call_if_eq LittlerootTown_EventScript_14DA02
+ compare VAR_SPECIAL_8, 3
+ call_if_eq LittlerootTown_EventScript_14DA17
+ compare VAR_SPECIAL_8, 4
+ call_if_eq LittlerootTown_EventScript_14DA2C
+ compare VAR_SPECIAL_8, 5
+ call_if_eq LittlerootTown_EventScript_14DA41
+ return
+
+LittlerootTown_EventScript_14D995:: @ 814D995
+ compare VAR_SPECIAL_8, 0
+ call_if_eq LittlerootTown_EventScript_14D9D8
+ compare VAR_SPECIAL_8, 1
+ call_if_eq LittlerootTown_EventScript_14D9ED
+ compare VAR_SPECIAL_8, 2
+ call_if_eq LittlerootTown_EventScript_14DA56
+ compare VAR_SPECIAL_8, 3
+ call_if_eq LittlerootTown_EventScript_14DA6B
+ compare VAR_SPECIAL_8, 4
+ call_if_eq LittlerootTown_EventScript_14DA80
+ compare VAR_SPECIAL_8, 5
+ call_if_eq LittlerootTown_EventScript_14DA95
+ return
+
+LittlerootTown_EventScript_14D9D8:: @ 814D9D8
+ applymovement 255, LittlerootTown_Movement_1A0845
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DC76
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14D9ED:: @ 814D9ED
+ applymovement 255, LittlerootTown_Movement_1A0845
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DC7D
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DA02:: @ 814DA02
+ applymovement 255, LittlerootTown_Movement_1A083F
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DC84
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DA17:: @ 814DA17
+ applymovement 255, LittlerootTown_Movement_1A083F
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DC89
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DA2C:: @ 814DA2C
+ applymovement 255, LittlerootTown_Movement_1A083F
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DC8F
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DA41:: @ 814DA41
+ applymovement 255, LittlerootTown_Movement_1A083F
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DC92
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DA56:: @ 814DA56
+ applymovement 255, LittlerootTown_Movement_1A0843
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DC96
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DA6B:: @ 814DA6B
+ applymovement 255, LittlerootTown_Movement_1A0843
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DC9A
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DA80:: @ 814DA80
+ applymovement 255, LittlerootTown_Movement_1A0843
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DC9D
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DA95:: @ 814DA95
+ applymovement 255, LittlerootTown_Movement_1A0843
+ waitmovement 0
+ applymovement 4, LittlerootTown_Movement_14DCA3
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DAAA:: @ 814DAAA
+ compare VAR_SPECIAL_8, 0
+ call_if_eq LittlerootTown_EventScript_14DB30
+ compare VAR_SPECIAL_8, 1
+ call_if_eq LittlerootTown_EventScript_14DB3B
+ compare VAR_SPECIAL_8, 2
+ call_if_eq LittlerootTown_EventScript_14DB46
+ compare VAR_SPECIAL_8, 3
+ call_if_eq LittlerootTown_EventScript_14DB6C
+ compare VAR_SPECIAL_8, 4
+ call_if_eq LittlerootTown_EventScript_14DB92
+ compare VAR_SPECIAL_8, 5
+ call_if_eq LittlerootTown_EventScript_14DBB8
+ return
+
+LittlerootTown_EventScript_14DAED:: @ 814DAED
+ compare VAR_SPECIAL_8, 0
+ call_if_eq LittlerootTown_EventScript_14DB30
+ compare VAR_SPECIAL_8, 1
+ call_if_eq LittlerootTown_EventScript_14DB3B
+ compare VAR_SPECIAL_8, 2
+ call_if_eq LittlerootTown_EventScript_14DBDE
+ compare VAR_SPECIAL_8, 3
+ call_if_eq LittlerootTown_EventScript_14DC04
+ compare VAR_SPECIAL_8, 4
+ call_if_eq LittlerootTown_EventScript_14DC2A
+ compare VAR_SPECIAL_8, 5
+ call_if_eq LittlerootTown_EventScript_14DC50
+ return
+
+LittlerootTown_EventScript_14DB30:: @ 814DB30
+ applymovement 4, LittlerootTown_Movement_14DCA8
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DB3B:: @ 814DB3B
+ applymovement 4, LittlerootTown_Movement_14DCAE
+ waitmovement 0
+ return
+
+LittlerootTown_EventScript_14DB46:: @ 814DB46
+ applymovement 4, LittlerootTown_Movement_14DCB4
+ waitmovement 0
+ opendoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14DCE0
+ waitmovement 0
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
+ closedoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ return
+
+LittlerootTown_EventScript_14DB6C:: @ 814DB6C
+ applymovement 4, LittlerootTown_Movement_14DCBA
+ waitmovement 0
+ opendoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14DCE0
+ waitmovement 0
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
+ closedoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ return
+
+LittlerootTown_EventScript_14DB92:: @ 814DB92
+ applymovement 4, LittlerootTown_Movement_14DCC1
+ waitmovement 0
+ opendoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14DCE0
+ waitmovement 0
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
+ closedoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ return
+
+LittlerootTown_EventScript_14DBB8:: @ 814DBB8
+ applymovement 4, LittlerootTown_Movement_14DCC5
+ waitmovement 0
+ opendoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14DCE0
+ waitmovement 0
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
+ closedoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ return
+
+LittlerootTown_EventScript_14DBDE:: @ 814DBDE
+ applymovement 4, LittlerootTown_Movement_14DCCA
+ waitmovement 0
+ opendoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14DCE0
+ waitmovement 0
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
+ closedoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ return
+
+LittlerootTown_EventScript_14DC04:: @ 814DC04
+ applymovement 4, LittlerootTown_Movement_14DCCF
+ waitmovement 0
+ opendoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14DCE0
+ waitmovement 0
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
+ closedoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ return
+
+LittlerootTown_EventScript_14DC2A:: @ 814DC2A
+ applymovement 4, LittlerootTown_Movement_14DCD3
+ waitmovement 0
+ opendoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14DCE0
+ waitmovement 0
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
+ closedoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ return
+
+LittlerootTown_EventScript_14DC50:: @ 814DC50
+ applymovement 4, LittlerootTown_Movement_14DCDA
+ waitmovement 0
+ opendoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14DCE0
+ waitmovement 0
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
+ closedoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ return
+
+LittlerootTown_Movement_14DC76:: @ 814DC76
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+LittlerootTown_Movement_14DC7D:: @ 814DC7D
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+LittlerootTown_Movement_14DC84:: @ 814DC84
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+LittlerootTown_Movement_14DC89:: @ 814DC89
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+LittlerootTown_Movement_14DC8F:: @ 814DC8F
+ walk_right
+ walk_right
+ end_movement
+
+LittlerootTown_Movement_14DC92:: @ 814DC92
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+LittlerootTown_Movement_14DC96:: @ 814DC96
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+LittlerootTown_Movement_14DC9A:: @ 814DC9A
+ walk_left
+ walk_left
+ end_movement
+
+LittlerootTown_Movement_14DC9D:: @ 814DC9D
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+LittlerootTown_Movement_14DCA3:: @ 814DCA3
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+LittlerootTown_Movement_14DCA8:: @ 814DCA8
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+LittlerootTown_Movement_14DCAE:: @ 814DCAE
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+LittlerootTown_Movement_14DCB4:: @ 814DCB4
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_in_place_fastest_up
+ end_movement
+
+LittlerootTown_Movement_14DCBA:: @ 814DCBA
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_in_place_fastest_up
+ end_movement
+
+LittlerootTown_Movement_14DCC1:: @ 814DCC1
+ walk_left
+ walk_left
+ walk_in_place_fastest_up
+ end_movement
+
+LittlerootTown_Movement_14DCC5:: @ 814DCC5
+ walk_left
+ walk_left
+ walk_left
+ walk_in_place_fastest_up
+ end_movement
+
+LittlerootTown_Movement_14DCCA:: @ 814DCCA
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+LittlerootTown_Movement_14DCCF:: @ 814DCCF
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+LittlerootTown_Movement_14DCD3:: @ 814DCD3
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+LittlerootTown_Movement_14DCDA:: @ 814DCDA
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+LittlerootTown_Movement_14DCE0:: @ 814DCE0
+ walk_up
+ end_movement
+
+LittlerootTown_EventScript_14DCE2:: @ 814DCE2
+ lock
+ faceplayer
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_EventScript_14D926
+ compare RESULT, 1
+ call_if_eq LittlerootTown_EventScript_14D931
+ call LittlerootTown_EventScript_14DD38
+ applymovement 4, LittlerootTown_Movement_1A0841
+ waitmovement 0
+ opendoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ applymovement 4, LittlerootTown_Movement_14DCE0
+ waitmovement 0
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
+ closedoor VAR_SPECIAL_9, VAR_SPECIAL_A
+ waitdooranim
+ goto LittlerootTown_EventScript_14DD2B
+ end
+
+LittlerootTown_EventScript_14DD2B:: @ 814DD2B
+ removeobject 4
+ setflag FLAG_SYS_B_DASH
+ setvar VAR_LITTLEROOT_STATE, 4
+ release
+ end
+
+LittlerootTown_EventScript_14DD38:: @ 814DD38
+ msgbox LittlerootTown_Text_16A8FD, 4
+ playfanfare BGM_FANFA4
+ message LittlerootTown_Text_16AA32
+ waitfanfare
+ waitmessage
+ setflag FLAG_RECEIVED_RUNNING_SHOES
+ msgbox LittlerootTown_Text_16AA5C, 4
+ msgbox LittlerootTown_Text_16AB10, 4
+ closemessage
+ delay 30
+ return
diff --git a/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc b/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc
new file mode 100644
index 000000000..340f50894
--- /dev/null
+++ b/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc
@@ -0,0 +1,123 @@
+LittlerootTown_BrendansHouse_1F_MapScripts:: @ 815263B
+ map_script 1, LittlerootTown_BrendansHouse_1F_MapScript1_15264B
+ map_script 3, LittlerootTown_BrendansHouse_1F_MapScript1_15268A
+ map_script 2, LittlerootTown_BrendansHouse_1F_MapScript2_1526D0
+ .byte 0
+
+LittlerootTown_BrendansHouse_1F_MapScript1_15264B:: @ 815264B
+ compare VAR_LITTLEROOT_INTRO_STATE, 6
+ call_if_lt LittlerootTown_BrendansHouse_1F_EventScript_152660
+ call_if_set FLAG_RECEIVED_RUNNING_SHOES, LittlerootTown_BrendansHouse_1F_EventScript_152673
+ end
+
+LittlerootTown_BrendansHouse_1F_EventScript_152660:: @ 8152660
+ setmetatile 5, 4, 624, 1
+ setmetatile 5, 2, 616, 1
+ return
+
+LittlerootTown_BrendansHouse_1F_EventScript_152673:: @ 8152673
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_152680
+ return
+
+LittlerootTown_BrendansHouse_1F_EventScript_152680:: @ 8152680
+ setmetatile 3, 7, 659, 1
+ return
+
+LittlerootTown_BrendansHouse_1F_MapScript1_15268A:: @ 815268A
+ compare VAR_LITTLEROOT_INTRO_STATE, 3
+ call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1526C4
+ compare VAR_LITTLEROOT_INTRO_STATE, 5
+ call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1526AC
+ compare VAR_LITTLEROOT_INTRO_STATE, 6
+ call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1526B8
+ end
+
+LittlerootTown_BrendansHouse_1F_EventScript_1526AC:: @ 81526AC
+ setobjectxyperm 1, 8, 4
+ setobjectmovementtype 1, 7
+ return
+
+LittlerootTown_BrendansHouse_1F_EventScript_1526B8:: @ 81526B8
+ setobjectxyperm 1, 4, 5
+ setobjectmovementtype 1, 7
+ return
+
+LittlerootTown_BrendansHouse_1F_EventScript_1526C4:: @ 81526C4
+ setobjectxyperm 1, 9, 8
+ setobjectmovementtype 1, 7
+ return
+
+LittlerootTown_BrendansHouse_1F_MapScript2_1526D0:: @ 81526D0
+ map_script_2 VAR_LITTLEROOT_INTRO_STATE, 3, LittlerootTown_BrendansHouse_1F_EventScript_152722
+ map_script_2 VAR_LITTLEROOT_INTRO_STATE, 5, LittlerootTown_BrendansHouse_1F_EventScript_1526FA
+ map_script_2 VAR_LITTLEROOT_INTRO_STATE, 6, LittlerootTown_BrendansHouse_1F_EventScript_152733
+ map_script_2 VAR_LITTLEROOT_HOUSES_STATE, 1, LittlerootTown_BrendansHouse_1F_EventScript_152744
+ map_script_2 VAR_LITTLEROOT_HOUSES_STATE, 3, LittlerootTown_BrendansHouse_1F_EventScript_1B6CDE
+ .2byte 0
+
+LittlerootTown_BrendansHouse_1F_EventScript_1526FA:: @ 81526FA
+ lockall
+ msgbox LittlerootTown_BrendansHouse_1F_Text_172574, 4
+ closemessage
+ applymovement 255, LittlerootTown_BrendansHouse_1F_Movement_152720
+ applymovement 1, LittlerootTown_BrendansHouse_1F_Movement_152720
+ waitmovement 0
+ warp MAP_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F, 255, 7, 1
+ waitstate
+ releaseall
+ end
+
+LittlerootTown_BrendansHouse_1F_Movement_152720:: @ 8152720
+ walk_up
+ end_movement
+
+LittlerootTown_BrendansHouse_1F_EventScript_152722:: @ 8152722
+ lockall
+ setvar VAR_SPECIAL_4, 1
+ setvar VAR_SPECIAL_5, 0
+ goto LittlerootTown_BrendansHouse_1F_EventScript_1B6956
+ end
+
+LittlerootTown_BrendansHouse_1F_EventScript_152733:: @ 8152733
+ lockall
+ setvar VAR_SPECIAL_4, 0
+ setvar VAR_SPECIAL_5, 1
+ goto LittlerootTown_BrendansHouse_1F_EventScript_1B6ABF
+ end
+
+LittlerootTown_BrendansHouse_1F_EventScript_152744:: @ 8152744
+ lockall
+ playse SE_PIN
+ applymovement 4, LittlerootTown_BrendansHouse_1F_Movement_1A0833
+ waitmovement 0
+ applymovement 4, LittlerootTown_BrendansHouse_1F_Movement_1A0835
+ waitmovement 0
+ applymovement 255, LittlerootTown_BrendansHouse_1F_Movement_1A083F
+ applymovement 4, LittlerootTown_BrendansHouse_1F_Movement_152782
+ waitmovement 0
+ special GetRivalSonDaughterString
+ msgbox LittlerootTown_BrendansHouse_1F_Text_1730C2, 4
+ setflag FLAG_MET_RIVAL_MOM
+ setvar VAR_LITTLEROOT_HOUSES_STATE, 2
+ releaseall
+ end
+
+LittlerootTown_BrendansHouse_1F_Movement_152782:: @ 8152782
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+LittlerootTown_BrendansHouse_1F_EventScript_152789:: @ 8152789
+ lockall
+ setvar VAR_SPECIAL_4, 1
+ setvar VAR_SPECIAL_5, 0
+ applymovement VAR_SPECIAL_4, LittlerootTown_BrendansHouse_1F_Movement_1A083F
+ waitmovement 0
+ goto LittlerootTown_BrendansHouse_1F_EventScript_1B69B7
+ end
diff --git a/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc b/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
new file mode 100644
index 000000000..ed6818fa0
--- /dev/null
+++ b/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
@@ -0,0 +1,89 @@
+LittlerootTown_BrendansHouse_2F_MapScripts:: @ 81527A4
+ map_script 3, LittlerootTown_BrendansHouse_2F_MapScript1_1527AF
+ map_script 4, LittlerootTown_BrendansHouse_2F_MapScript2_1527DA
+ .byte 0
+
+LittlerootTown_BrendansHouse_2F_MapScript1_1527AF:: @ 81527AF
+ call_if_unset FLAG_DEFEATED_RIVAL_ROUTE103, LittlerootTown_BrendansHouse_2F_EventScript_1527CE
+ compare VAR_LITTLEROOT_INTRO_STATE, 4
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1B6950
+ call LittlerootTown_BrendansHouse_2F_EventScript_1A2F3D
+ setvar VAR_0x4089, 0
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_1527CE:: @ 81527CE
+ setobjectxyperm 1, 1, 2
+ setobjectmovementtype 1, 7
+ return
+
+LittlerootTown_BrendansHouse_2F_MapScript2_1527DA:: @ 81527DA
+ map_script_2 VAR_0x4089, 0, LittlerootTown_BrendansHouse_2F_EventScript_1527E4
+ .2byte 0
+
+LittlerootTown_BrendansHouse_2F_EventScript_1527E4:: @ 81527E4
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1A2F68
+ end
+
+@ 81527F1
+ lockall
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_15280A
+ compare RESULT, 1
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152814
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_15280A:: @ 815280A
+ msgbox UnknownString_8172F31, 4
+ releaseall
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_152814:: @ 8152814
+ msgbox UnknownString_8173A76, 4
+ releaseall
+ end
+
+gUnknown_0815281E:: @ 815281E
+
+LittlerootTown_BrendansHouse_2F_EventScript_15281E:: @ 815281E
+ lockall
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152837
+ compare RESULT, 1
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_15285D
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_152837:: @ 8152837
+ setvar VAR_SPECIAL_4, 1
+ special DoPCTurnOnEffect
+ playse SE_PC_ON
+ msgbox LittlerootTown_BrendansHouse_2F_Text_1A10D6, 4
+ special BedroomPC
+ waitstate
+ releaseall
+ end
+
+gBrendanHouse_TurnPCOff:: @ 8152850
+ setvar VAR_SPECIAL_4, 1
+ playse SE_PC_OFF
+ special DoPCTurnOffEffect
+ releaseall
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_15285D:: @ 815285D
+ msgbox LittlerootTown_BrendansHouse_2F_Text_1A100C, 4
+ releaseall
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_152867:: @ 8152867
+LittlerootTown_MaysHouse_2F_EventScript_152867:: @ 8152867
+ msgbox LittlerootTown_BrendansHouse_2F_Text_172F9A, 3
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_152870:: @ 8152870
+LittlerootTown_MaysHouse_2F_EventScript_152870:: @ 8152870
+ msgbox LittlerootTown_BrendansHouse_2F_Text_17306C, 3
+ end
diff --git a/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc b/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc
new file mode 100644
index 000000000..ad7257e0b
--- /dev/null
+++ b/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc
@@ -0,0 +1,168 @@
+LittlerootTown_MaysHouse_1F_MapScripts:: @ 8152879
+ map_script 1, LittlerootTown_MaysHouse_1F_MapScript1_152889
+ map_script 3, LittlerootTown_MaysHouse_1F_MapScript1_1528C8
+ map_script 2, LittlerootTown_MaysHouse_1F_MapScript2_15290E
+ .byte 0
+
+LittlerootTown_MaysHouse_1F_MapScript1_152889:: @ 8152889
+ compare VAR_LITTLEROOT_INTRO_STATE, 6
+ call_if_lt LittlerootTown_MaysHouse_1F_EventScript_15289E
+ call_if_set FLAG_RECEIVED_RUNNING_SHOES, LittlerootTown_MaysHouse_1F_EventScript_1528B1
+ end
+
+LittlerootTown_MaysHouse_1F_EventScript_15289E:: @ 815289E
+ setmetatile 5, 4, 624, 1
+ setmetatile 5, 2, 616, 1
+ return
+
+LittlerootTown_MaysHouse_1F_EventScript_1528B1:: @ 81528B1
+ checkplayergender
+ compare RESULT, 1
+ goto_if_eq LittlerootTown_MaysHouse_1F_EventScript_1528BE
+ return
+
+LittlerootTown_MaysHouse_1F_EventScript_1528BE:: @ 81528BE
+ setmetatile 6, 7, 659, 1
+ return
+
+LittlerootTown_MaysHouse_1F_MapScript1_1528C8:: @ 81528C8
+ compare VAR_LITTLEROOT_INTRO_STATE, 3
+ call_if_eq LittlerootTown_MaysHouse_1F_EventScript_152902
+ compare VAR_LITTLEROOT_INTRO_STATE, 5
+ call_if_eq LittlerootTown_MaysHouse_1F_EventScript_1528EA
+ compare VAR_LITTLEROOT_INTRO_STATE, 6
+ call_if_eq LittlerootTown_MaysHouse_1F_EventScript_1528F6
+ end
+
+LittlerootTown_MaysHouse_1F_EventScript_1528EA:: @ 81528EA
+ setobjectxyperm 1, 2, 4
+ setobjectmovementtype 1, 7
+ return
+
+LittlerootTown_MaysHouse_1F_EventScript_1528F6:: @ 81528F6
+ setobjectxyperm 1, 6, 5
+ setobjectmovementtype 1, 7
+ return
+
+LittlerootTown_MaysHouse_1F_EventScript_152902:: @ 8152902
+ setobjectxyperm 1, 1, 8
+ setobjectmovementtype 1, 7
+ return
+
+LittlerootTown_MaysHouse_1F_MapScript2_15290E:: @ 815290E
+ map_script_2 VAR_LITTLEROOT_INTRO_STATE, 3, LittlerootTown_MaysHouse_1F_EventScript_152960
+ map_script_2 VAR_LITTLEROOT_INTRO_STATE, 5, LittlerootTown_MaysHouse_1F_EventScript_152938
+ map_script_2 VAR_LITTLEROOT_INTRO_STATE, 6, LittlerootTown_MaysHouse_1F_EventScript_152971
+ map_script_2 VAR_LITTLEROOT_HOUSES_STATE_2, 1, LittlerootTown_MaysHouse_1F_EventScript_152982
+ map_script_2 VAR_LITTLEROOT_HOUSES_STATE, 3, LittlerootTown_MaysHouse_1F_EventScript_1B6CDE
+ .2byte 0
+
+LittlerootTown_MaysHouse_1F_EventScript_152938:: @ 8152938
+ lockall
+ msgbox LittlerootTown_MaysHouse_1F_Text_172574, 4
+ closemessage
+ applymovement 255, LittlerootTown_MaysHouse_1F_Movement_15295E
+ applymovement 1, LittlerootTown_MaysHouse_1F_Movement_15295E
+ waitmovement 0
+ warp MAP_LITTLEROOT_TOWN_MAYS_HOUSE_2F, 255, 1, 1
+ waitstate
+ releaseall
+ end
+
+LittlerootTown_MaysHouse_1F_Movement_15295E:: @ 815295E
+ walk_up
+ end_movement
+
+LittlerootTown_MaysHouse_1F_EventScript_152960:: @ 8152960
+ lockall
+ setvar VAR_SPECIAL_4, 1
+ setvar VAR_SPECIAL_5, 1
+ goto LittlerootTown_MaysHouse_1F_EventScript_1B6956
+ end
+
+LittlerootTown_MaysHouse_1F_EventScript_152971:: @ 8152971
+ lockall
+ setvar VAR_SPECIAL_4, 1
+ setvar VAR_SPECIAL_5, 1
+ goto LittlerootTown_MaysHouse_1F_EventScript_1B6B2E
+ end
+
+LittlerootTown_MaysHouse_1F_EventScript_152982:: @ 8152982
+ lockall
+ playse SE_PIN
+ applymovement 4, LittlerootTown_MaysHouse_1F_Movement_1A0833
+ waitmovement 0
+ applymovement 4, LittlerootTown_MaysHouse_1F_Movement_1A0835
+ waitmovement 0
+ applymovement 255, LittlerootTown_MaysHouse_1F_Movement_1A0843
+ applymovement 4, LittlerootTown_MaysHouse_1F_Movement_1529C0
+ waitmovement 0
+ special GetRivalSonDaughterString
+ msgbox LittlerootTown_MaysHouse_1F_Text_1730C2, 4
+ setflag FLAG_MET_RIVAL_MOM
+ setvar VAR_LITTLEROOT_HOUSES_STATE_2, 2
+ releaseall
+ end
+
+LittlerootTown_MaysHouse_1F_Movement_1529C0:: @ 81529C0
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+@ 81529C7
+ lockall
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_MaysHouse_1F_EventScript_1529E1
+ compare RESULT, 1
+ call_if_eq LittlerootTown_MaysHouse_1F_EventScript_1529E2
+ releaseall
+ end
+
+LittlerootTown_MaysHouse_1F_EventScript_1529E1:: @ 81529E1
+ return
+
+LittlerootTown_MaysHouse_1F_EventScript_1529E2:: @ 81529E2
+ msgbox LittlerootTown_BrendansHouse_1F_Text_172841, 4
+ return
+
+LittlerootTown_BrendansHouse_1F_EventScript_1529EB:: @ 81529EB
+LittlerootTown_MaysHouse_1F_EventScript_1529EB:: @ 81529EB
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_RIVAL_ROUTE103, LittlerootTown_BrendansHouse_1F_EventScript_152A21
+ goto_if_set FLAG_RIVAL_LEFT_FOR_ROUTE103, LittlerootTown_BrendansHouse_1F_EventScript_152A17
+ compare VAR_LITTLEROOT_RIVAL_STATE, 3
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_152A2B
+ special GetRivalSonDaughterString
+ msgbox LittlerootTown_BrendansHouse_1F_Text_1731C6, 4
+ release
+ end
+
+LittlerootTown_BrendansHouse_1F_EventScript_152A17:: @ 8152A17
+ msgbox LittlerootTown_BrendansHouse_1F_Text_173262, 4
+ release
+ end
+
+LittlerootTown_BrendansHouse_1F_EventScript_152A21:: @ 8152A21
+ msgbox LittlerootTown_BrendansHouse_1F_Text_1732B9, 4
+ release
+ end
+
+LittlerootTown_BrendansHouse_1F_EventScript_152A2B:: @ 8152A2B
+ msgbox LittlerootTown_BrendansHouse_1F_Text_1731E3, 4
+ release
+ end
+
+LittlerootTown_MaysHouse_1F_EventScript_152A35:: @ 8152A35
+ lockall
+ setvar VAR_SPECIAL_4, 1
+ setvar VAR_SPECIAL_5, 1
+ applymovement VAR_SPECIAL_4, LittlerootTown_MaysHouse_1F_Movement_1A0843
+ waitmovement 0
+ goto LittlerootTown_MaysHouse_1F_EventScript_1B69B7
+ end
diff --git a/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc b/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
new file mode 100644
index 000000000..e716962b7
--- /dev/null
+++ b/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
@@ -0,0 +1,219 @@
+LittlerootTown_MaysHouse_2F_MapScripts:: @ 8152A50
+ map_script 3, LittlerootTown_MaysHouse_2F_MapScript1_152A5B
+ map_script 4, LittlerootTown_MaysHouse_2F_MapScript2_152A86
+ .byte 0
+
+LittlerootTown_MaysHouse_2F_MapScript1_152A5B:: @ 8152A5B
+ call_if_unset FLAG_DEFEATED_RIVAL_ROUTE103, LittlerootTown_MaysHouse_2F_EventScript_152A7A
+ compare VAR_LITTLEROOT_INTRO_STATE, 4
+ call_if_eq LittlerootTown_MaysHouse_2F_EventScript_1B6950
+ call LittlerootTown_MaysHouse_2F_EventScript_1A2F3D
+ setvar VAR_0x4089, 0
+ end
+
+LittlerootTown_MaysHouse_2F_EventScript_152A7A:: @ 8152A7A
+ setobjectxyperm 1, 7, 2
+ setobjectmovementtype 1, 7
+ return
+
+LittlerootTown_MaysHouse_2F_MapScript2_152A86:: @ 8152A86
+ map_script_2 VAR_0x4089, 0, LittlerootTown_MaysHouse_2F_EventScript_152A90
+ .2byte 0
+
+LittlerootTown_MaysHouse_2F_EventScript_152A90:: @ 8152A90
+ checkplayergender
+ compare RESULT, 1
+ goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_1A2F68
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_152A9D:: @ 8152A9D
+LittlerootTown_MaysHouse_2F_EventScript_152A9D:: @ 8152A9D
+ lockall
+ goto_if_set FLAG_MET_RIVAL_LILYCOVE, LittlerootTown_BrendansHouse_2F_EventScript_152BB5
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152AD4
+ compare RESULT, 1
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152B4A
+ playse SE_KAIDAN
+ removeobject LAST_TALKED
+ setvar VAR_LITTLEROOT_RIVAL_STATE, 3
+ setvar VAR_LITTLEROOT_STATE, 1
+ savebgm 0
+ fadedefaultbgm
+ releaseall
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_152AD4:: @ 8152AD4
+ msgbox LittlerootTown_BrendansHouse_2F_Text_17337E, 4
+ playbgm BGM_GIRL_SUP, TRUE
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0839
+ waitmovement 0
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0833
+ waitmovement 0
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0835
+ waitmovement 0
+ msgbox LittlerootTown_BrendansHouse_2F_Text_1733AF, 4
+ closemessage
+ compare FACING, 4
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152B29
+ compare FACING, 2
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152B34
+ compare FACING, 3
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152B3F
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152B29:: @ 8152B29
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_152C11
+ waitmovement 0
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152B34:: @ 8152B34
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_152C1C
+ waitmovement 0
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152B3F:: @ 8152B3F
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_152C1C
+ waitmovement 0
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152B4A:: @ 8152B4A
+ msgbox LittlerootTown_BrendansHouse_2F_Text_1735C9, 4
+ playbgm BGM_BOY_SUP, TRUE
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0839
+ waitmovement 0
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0833
+ waitmovement 0
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0835
+ waitmovement 0
+ msgbox LittlerootTown_BrendansHouse_2F_Text_1735FC, 4
+ closemessage
+ compare FACING, 4
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152B9F
+ compare FACING, 2
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152B9F
+ compare FACING, 3
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152BAA
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152B9F:: @ 8152B9F
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_152C30
+ waitmovement 0
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152BAA:: @ 8152BAA
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_152C25
+ waitmovement 0
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152BB5:: @ 8152BB5
+ applymovement LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0839
+ waitmovement 0
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152BDB
+ compare RESULT, 1
+ call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152BED
+ setflag FLAG_MET_RIVAL_IN_HOUSE_AFTER_LILYCOVE
+ releaseall
+ end
+
+LittlerootTown_BrendansHouse_2F_EventScript_152BDB:: @ 8152BDB
+ goto_if_set FLAG_MET_RIVAL_IN_HOUSE_AFTER_LILYCOVE, LittlerootTown_BrendansHouse_2F_EventScript_152BFF
+ msgbox LittlerootTown_BrendansHouse_2F_Text_1737AE, 4
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152BED:: @ 8152BED
+ goto_if_set FLAG_MET_RIVAL_IN_HOUSE_AFTER_LILYCOVE, LittlerootTown_BrendansHouse_2F_EventScript_152C08
+ msgbox LittlerootTown_BrendansHouse_2F_Text_1738F2, 4
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152BFF:: @ 8152BFF
+ msgbox LittlerootTown_BrendansHouse_2F_Text_173883, 4
+ return
+
+LittlerootTown_BrendansHouse_2F_EventScript_152C08:: @ 8152C08
+ msgbox LittlerootTown_BrendansHouse_2F_Text_1739CC, 4
+ return
+
+LittlerootTown_BrendansHouse_2F_Movement_152C11:: @ 8152C11
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ delay_8
+ end_movement
+
+LittlerootTown_BrendansHouse_2F_Movement_152C1C:: @ 8152C1C
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ delay_8
+ end_movement
+
+LittlerootTown_BrendansHouse_2F_Movement_152C25:: @ 8152C25
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ delay_8
+ end_movement
+
+LittlerootTown_BrendansHouse_2F_Movement_152C30:: @ 8152C30
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ delay_8
+ end_movement
+
+gUnknown_08152C39:: @ 8152C39
+
+LittlerootTown_MaysHouse_2F_EventScript_152C39:: @ 8152C39
+ lockall
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_152C52
+ compare RESULT, 1
+ goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_152C5C
+ end
+
+LittlerootTown_MaysHouse_2F_EventScript_152C52:: @ 8152C52
+ msgbox LittlerootTown_MaysHouse_2F_Text_1A100C, 4
+ releaseall
+ end
+
+LittlerootTown_MaysHouse_2F_EventScript_152C5C:: @ 8152C5C
+ setvar VAR_SPECIAL_4, 2
+ special DoPCTurnOnEffect
+ playse SE_PC_ON
+ msgbox LittlerootTown_MaysHouse_2F_Text_1A10D6, 4
+ special BedroomPC
+ waitstate
+ releaseall
+ end
+
+gMayHouse_TurnPCOff:: @ 8152C75
+ setvar VAR_SPECIAL_4, 2
+ playse SE_PC_OFF
+ special DoPCTurnOffEffect
+ releaseall
+ end
diff --git a/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc b/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc
new file mode 100644
index 000000000..6b2867f54
--- /dev/null
+++ b/data/maps/LittlerootTown_ProfessorBirchsLab/scripts.inc
@@ -0,0 +1,214 @@
+LittlerootTown_ProfessorBirchsLab_MapScripts:: @ 8152C82
+ map_script 3, LittlerootTown_ProfessorBirchsLab_MapScript1_152C92
+ map_script 4, LittlerootTown_ProfessorBirchsLab_MapScript2_152C9D
+ map_script 2, LittlerootTown_ProfessorBirchsLab_MapScript2_152CAC
+ .byte 0
+
+LittlerootTown_ProfessorBirchsLab_MapScript1_152C92:: @ 8152C92
+ call LittlerootTown_ProfessorBirchsLab_EventScript_1A014E
+ call LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4
+ end
+
+LittlerootTown_ProfessorBirchsLab_MapScript2_152C9D:: @ 8152C9D
+ map_script_2 VAR_BIRCH_LAB_STATE, 2, LittlerootTown_ProfessorBirchsLab_EventScript_152CA7
+ .2byte 0
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152CA7:: @ 8152CA7
+ turnobject 255, 2
+ end
+
+LittlerootTown_ProfessorBirchsLab_MapScript2_152CAC:: @ 8152CAC
+ map_script_2 VAR_BIRCH_LAB_STATE, 2, LittlerootTown_ProfessorBirchsLab_EventScript_152CBE
+ map_script_2 VAR_BIRCH_LAB_STATE, 4, LittlerootTown_ProfessorBirchsLab_EventScript_152D4A
+ .2byte 0
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152CBE:: @ 8152CBE
+ lockall
+ bufferleadmonspeciesname 0
+ message LittlerootTown_ProfessorBirchsLab_Text_173D94
+ waitmessage
+ playfanfare BGM_FANFA4
+ waitfanfare
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_173EF8, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152CEA
+ compare RESULT, NO
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152CFA
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152CEA:: @ 8152CEA
+ setvar VAR_SPECIAL_4, 0
+ call LittlerootTown_ProfessorBirchsLab_EventScript_1A0678
+ goto LittlerootTown_ProfessorBirchsLab_EventScript_152CFA
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152CFA:: @ 8152CFA
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_173F3D, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D19
+ compare RESULT, NO
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D2B
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152D19:: @ 8152D19
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_174015, 4
+ clearflag FLAG_HIDE_BOY_ROUTE101
+ setvar VAR_BIRCH_LAB_STATE, 3
+ releaseall
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152D2B:: @ 8152D2B
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_174075, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D19
+ compare RESULT, NO
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D2B
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152D4A:: @ 8152D4A
+ lockall
+ applymovement 255, LittlerootTown_ProfessorBirchsLab_Movement_152D5B
+ waitmovement 0
+ goto LittlerootTown_ProfessorBirchsLab_EventScript_152DBA
+ end
+
+LittlerootTown_ProfessorBirchsLab_Movement_152D5B:: @ 8152D5B
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152D63:: @ 8152D63
+ lock
+ faceplayer
+ compare VAR_BIRCH_LAB_STATE, 3
+ goto_if_ge LittlerootTown_ProfessorBirchsLab_EventScript_152D90
+ goto_if_set FLAG_BIRCH_AIDE_MET, LittlerootTown_ProfessorBirchsLab_EventScript_152D86
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_173B29, 4
+ setflag FLAG_BIRCH_AIDE_MET
+ release
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152D86:: @ 8152D86
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_173C88, 4
+ release
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152D90:: @ 8152D90
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_173D15, 4
+ release
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152D9A:: @ 8152D9A
+ lock
+ faceplayer
+ goto_if_unset FLAG_UNKNOWN_BIRCH_380, LittlerootTown_ProfessorBirchsLab_EventScript_1A037F
+ compare VAR_BIRCH_LAB_STATE, 5
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152E7B
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_1740B4, 4
+ release
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152DBA:: @ 8152DBA
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_17411F, 4
+ call LittlerootTown_ProfessorBirchsLab_EventScript_152E6D
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_174248, 4
+ applymovement 3, LittlerootTown_ProfessorBirchsLab_Movement_152E97
+ waitmovement 0
+ applymovement 255, LittlerootTown_ProfessorBirchsLab_Movement_1A0843
+ waitmovement 0
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152E13
+ compare RESULT, 1
+ call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152E40
+ setvar VAR_BIRCH_LAB_STATE, 5
+ setflag FLAG_ADVENTURE_STARTED
+ setvar VAR_ROUTE102_ACCESSIBLE, 1
+ setvar VAR_LITTLEROOT_RIVAL_STATE, 4
+ setvar VAR_LITTLEROOT_STATE, 3
+ releaseall
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152E13:: @ 8152E13
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_1743D4, 4
+ giveitem_std ITEM_POKE_BALL, 5
+ compare RESULT, 0
+ call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152E85
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_17443D, 4
+ setvar RESULT, 0
+ return
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152E40:: @ 8152E40
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_17453C, 4
+ giveitem_std ITEM_POKE_BALL, 5
+ compare RESULT, 0
+ call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152E8E
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_17458C, 4
+ setvar RESULT, 1
+ return
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152E6D:: @ 8152E6D
+ playfanfare BGM_FANFA4
+ message LittlerootTown_ProfessorBirchsLab_Text_17422F
+ waitfanfare
+ waitmessage
+ setflag FLAG_SYS_POKEDEX_GET
+ return
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152E7B:: @ 8152E7B
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_17436C, 4
+ release
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152E85:: @ 8152E85
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_1744F0, 4
+ return
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152E8E:: @ 8152E8E
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_17465B, 4
+ return
+
+LittlerootTown_ProfessorBirchsLab_Movement_152E97:: @ 8152E97
+ walk_down
+ walk_in_place_fastest_left
+ end_movement
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152E9A:: @ 8152E9A
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_1746A2, 3
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152EA3:: @ 8152EA3
+ lock
+ faceplayer
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152EBE
+ compare RESULT, 1
+ call_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152EC7
+ release
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152EBE:: @ 8152EBE
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_174505, 4
+ return
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152EC7:: @ 8152EC7
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_174671, 4
+ return
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152ED0:: @ 8152ED0
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_1746E7, 3
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152ED9:: @ 8152ED9
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_174724, 3
+ end
+
+LittlerootTown_ProfessorBirchsLab_EventScript_152EE2:: @ 8152EE2
+ msgbox LittlerootTown_ProfessorBirchsLab_Text_174748, 3
+ end
diff --git a/data/maps/MagmaHideout_1F/scripts.inc b/data/maps/MagmaHideout_1F/scripts.inc
new file mode 100644
index 000000000..f5b535f71
--- /dev/null
+++ b/data/maps/MagmaHideout_1F/scripts.inc
@@ -0,0 +1,2 @@
+MagmaHideout_1F_MapScripts:: @ 815F2A7
+ .byte 0
diff --git a/data/maps/MagmaHideout_B1F/scripts.inc b/data/maps/MagmaHideout_B1F/scripts.inc
new file mode 100644
index 000000000..a55d260ab
--- /dev/null
+++ b/data/maps/MagmaHideout_B1F/scripts.inc
@@ -0,0 +1,11 @@
+MagmaHideout_B1F_MapScripts:: @ 815F2A8
+ map_script 5, MagmaHideout_B1F_MapScript1_15F2AE
+ .byte 0
+
+MagmaHideout_B1F_MapScript1_15F2AE:: @ 815F2AE
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, MagmaHideout_B1F_EventScript_15F2B8
+ end
+
+MagmaHideout_B1F_EventScript_15F2B8:: @ 815F2B8
+ removeobject LAST_TALKED
+ return
diff --git a/data/maps/MagmaHideout_B2F/scripts.inc b/data/maps/MagmaHideout_B2F/scripts.inc
new file mode 100644
index 000000000..222297ef7
--- /dev/null
+++ b/data/maps/MagmaHideout_B2F/scripts.inc
@@ -0,0 +1,2 @@
+MagmaHideout_B2F_MapScripts:: @ 815F2BC
+ .byte 0
diff --git a/data/maps/MauvilleCity/scripts.inc b/data/maps/MauvilleCity/scripts.inc
new file mode 100644
index 000000000..bd4f8ab3d
--- /dev/null
+++ b/data/maps/MauvilleCity/scripts.inc
@@ -0,0 +1,312 @@
+MauvilleCity_MapScripts:: @ 814C032
+ map_script 3, MauvilleCity_MapScript1_14C038
+ .byte 0
+
+MauvilleCity_MapScript1_14C038:: @ 814C038
+ setflag FLAG_VISITED_MAUVILLE_CITY
+ clearflag FLAG_HIDE_OCEANIC_MUSEUM_VISITORS
+ setflag FLAG_SYS_TV_START
+ clearflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
+ setvar VAR_MAUVILLE_GYM_STATE, 0
+ call_if_set FLAG_RECEIVED_TM24, MauvilleCity_EventScript_14C053
+ end
+
+MauvilleCity_EventScript_14C053:: @ 814C053
+ clearflag FLAG_HIDE_WATTSON_MAUVILLE_GYM
+ setflag FLAG_HIDE_WATTSON_MAUVILLE
+ return
+
+MauvilleCity_EventScript_14C05A:: @ 814C05A
+ msgbox MauvilleCity_Text_1664DF, 2
+ end
+
+MauvilleCity_EventScript_14C063:: @ 814C063
+ msgbox MauvilleCity_Text_16655C, 2
+ end
+
+MauvilleCity_EventScript_14C06C:: @ 814C06C
+ msgbox MauvilleCity_Text_1665DB, 2
+ end
+
+MauvilleCity_EventScript_14C075:: @ 814C075
+ msgbox MauvilleCity_Text_16662A, 2
+ end
+
+MauvilleCity_EventScript_14C07E:: @ 814C07E
+ msgbox MauvilleCity_Text_166665, 3
+ end
+
+MauvilleCity_EventScript_14C087:: @ 814C087
+ msgbox MauvilleCity_Text_166697, 3
+ end
+
+MauvilleCity_EventScript_14C090:: @ 814C090
+ msgbox MauvilleCity_Text_1666E4, 3
+ end
+
+MauvilleCity_EventScript_14C099:: @ 814C099
+ msgbox MauvilleCity_Text_16671C, 3
+ end
+
+MauvilleCity_EventScript_14C0A2:: @ 814C0A2
+ lock
+ faceplayer
+ goto_if_set FLAG_TV_EXPLAINED, MauvilleCity_EventScript_14C0BA
+ msgbox MauvilleCity_Text_16674A, 4
+ setflag FLAG_TV_EXPLAINED
+ release
+ end
+
+MauvilleCity_EventScript_14C0BA:: @ 814C0BA
+ msgbox MauvilleCity_Text_166879, 4
+ release
+ end
+
+MauvilleCity_EventScript_14C0C4:: @ 814C0C4
+ lock
+ faceplayer
+ goto_if_set FLAG_DECLINED_WALLY_BATTLE_MAUVILLE, MauvilleCity_EventScript_14C0E4
+ msgbox MauvilleCity_Text_165B76, 4
+ closemessage
+ applymovement 7, MauvilleCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+MauvilleCity_EventScript_14C0E4:: @ 814C0E4
+ msgbox MauvilleCity_Text_165E45, 4
+ closemessage
+ applymovement 7, MauvilleCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+MauvilleCity_EventScript_14C0F9:: @ 814C0F9
+ lockall
+ goto_if_set FLAG_DECLINED_WALLY_BATTLE_MAUVILLE, MauvilleCity_EventScript_14C292
+ applymovement 6, MauvilleCity_Movement_1A0843
+ waitmovement 0
+ msgbox MauvilleCity_Text_165BE3, 4
+ msgbox MauvilleCity_Text_165C57, 4
+ msgbox MauvilleCity_Text_165D01, 4
+ applymovement 6, MauvilleCity_Movement_1A0839
+ waitmovement 0
+ playse SE_PIN
+ applymovement 6, MauvilleCity_Movement_1A0833
+ waitmovement 0
+ applymovement 6, MauvilleCity_Movement_1A0835
+ waitmovement 0
+ msgbox MauvilleCity_Text_165D50, MSGBOX_YESNO
+ goto MauvilleCity_EventScript_14C154
+ end
+
+MauvilleCity_EventScript_14C154:: @ 814C154
+ compare RESULT, YES
+ call_if_eq MauvilleCity_EventScript_14C23C
+ compare RESULT, NO
+ goto_if_eq MauvilleCity_EventScript_14C285
+ closemessage
+ switch FACING
+ case 2, MauvilleCity_EventScript_14C187
+ case 4, MauvilleCity_EventScript_14C1D9
+ end
+
+MauvilleCity_EventScript_14C187:: @ 814C187
+ applymovement 6, MauvilleCity_Movement_14C2AA
+ applymovement 7, MauvilleCity_Movement_14C2CC
+ waitmovement 0
+ applymovement 6, MauvilleCity_Movement_1A0843
+ waitmovement 0
+ delay 30
+ applymovement 7, MauvilleCity_Movement_14C2D8
+ waitmovement 0
+ applymovement 255, MauvilleCity_Movement_1A0845
+ waitmovement 0
+ msgbox MauvilleCity_Text_1660FA, 4
+ closemessage
+ applymovement 6, MauvilleCity_Movement_14C2B6
+ applymovement 7, MauvilleCity_Movement_14C2DF
+ waitmovement 0
+ goto MauvilleCity_EventScript_14C22B
+ end
+
+MauvilleCity_EventScript_14C1D9:: @ 814C1D9
+ applymovement 6, MauvilleCity_Movement_14C2B0
+ applymovement 7, MauvilleCity_Movement_14C2D2
+ waitmovement 0
+ applymovement 6, MauvilleCity_Movement_1A0843
+ waitmovement 0
+ delay 30
+ applymovement 7, MauvilleCity_Movement_14C2DC
+ waitmovement 0
+ applymovement 255, MauvilleCity_Movement_1A0845
+ waitmovement 0
+ msgbox MauvilleCity_Text_1660FA, 4
+ closemessage
+ applymovement 6, MauvilleCity_Movement_14C2C1
+ applymovement 7, MauvilleCity_Movement_14C2E8
+ waitmovement 0
+ goto MauvilleCity_EventScript_14C22B
+ end
+
+MauvilleCity_EventScript_14C22B:: @ 814C22B
+ removeobject 6
+ removeobject 7
+ clearflag FLAG_HIDE_WALLY_WANDAS_HOUSE
+ clearflag FLAG_HIDE_WALLY_FATHER_WANDAS_HOUSE
+ setflag FLAG_DEFEATED_WALLY_MAUVILLE
+ releaseall
+ end
+
+MauvilleCity_EventScript_14C23C:: @ 814C23C
+ msgbox MauvilleCity_Text_165F0D, 4
+ trainerbattle 3, OPPONENT_WALLY_2, 0, MauvilleCity_Text_165F38
+ applymovement 6, MauvilleCity_Movement_1A0843
+ waitmovement 0
+ msgbox MauvilleCity_Text_165F85, 4
+ applymovement 6, MauvilleCity_Movement_1A0839
+ waitmovement 0
+ msgbox MauvilleCity_Text_165FB3, 4
+ applymovement 6, MauvilleCity_Movement_1A0843
+ waitmovement 0
+ msgbox MauvilleCity_Text_166050, 4
+ return
+
+MauvilleCity_EventScript_14C285:: @ 814C285
+ setflag FLAG_DECLINED_WALLY_BATTLE_MAUVILLE
+ msgbox MauvilleCity_Text_165DE8, 4
+ release
+ end
+
+MauvilleCity_EventScript_14C292:: @ 814C292
+ applymovement 6, MauvilleCity_Movement_1A0839
+ waitmovement 0
+ msgbox MauvilleCity_Text_165EE2, MSGBOX_YESNO
+ goto MauvilleCity_EventScript_14C154
+ end
+
+MauvilleCity_Movement_14C2AA:: @ 814C2AA
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_left
+ end_movement
+
+MauvilleCity_Movement_14C2B0:: @ 814C2B0
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+MauvilleCity_Movement_14C2B6:: @ 814C2B6
+ delay_16
+ delay_16
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+MauvilleCity_Movement_14C2C1:: @ 814C2C1
+ delay_16
+ delay_16
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+MauvilleCity_Movement_14C2CC:: @ 814C2CC
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ end_movement
+
+MauvilleCity_Movement_14C2D2:: @ 814C2D2
+ walk_left
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ end_movement
+
+MauvilleCity_Movement_14C2D8:: @ 814C2D8
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+MauvilleCity_Movement_14C2DC:: @ 814C2DC
+ walk_right
+ walk_up
+ end_movement
+
+MauvilleCity_Movement_14C2DF:: @ 814C2DF
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+MauvilleCity_Movement_14C2E8:: @ 814C2E8
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+MauvilleCity_EventScript_14C2F2:: @ 814C2F2
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM24, MauvilleCity_EventScript_14C368
+ compare VAR_NEW_MAUVILLE_STATE, 2
+ goto_if_eq MauvilleCity_EventScript_14C33C
+ goto_if_set FLAG_RECEIVED_BASEMENT_KEY, MauvilleCity_EventScript_14C332
+ msgbox MauvilleCity_Text_1661C1, 4
+ giveitem_std ITEM_BASEMENT_KEY
+ setflag FLAG_RECEIVED_BASEMENT_KEY
+ msgbox MauvilleCity_Text_166331, 4
+ release
+ end
+
+MauvilleCity_EventScript_14C332:: @ 814C332
+ msgbox MauvilleCity_Text_166331, 4
+ release
+ end
+
+MauvilleCity_EventScript_14C33C:: @ 814C33C
+ msgbox MauvilleCity_Text_1663EB, 4
+ giveitem_std ITEM_TM24_THUNDERBOLT
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM24
+ msgbox MauvilleCity_Text_166488, 4
+ release
+ end
+
+MauvilleCity_EventScript_14C368:: @ 814C368
+ msgbox MauvilleCity_Text_166488, 4
+ release
+ end
diff --git a/data/maps/MauvilleCity_BikeShop/scripts.inc b/data/maps/MauvilleCity_BikeShop/scripts.inc
new file mode 100644
index 000000000..08f11d641
--- /dev/null
+++ b/data/maps/MauvilleCity_BikeShop/scripts.inc
@@ -0,0 +1,182 @@
+MauvilleCity_BikeShop_MapScripts:: @ 8156795
+ .byte 0
+
+MauvilleCity_BikeShop_EventScript_156796:: @ 8156796
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_BIKE, MauvilleCity_BikeShop_EventScript_15686E
+ goto_if_set FLAG_DECLINED_BIKE, MauvilleCity_BikeShop_EventScript_1567D1
+ msgbox MauvilleCity_BikeShop_Text_180F9F, 4
+ msgbox MauvilleCity_BikeShop_Text_181016, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq MauvilleCity_BikeShop_EventScript_156824
+ compare RESULT, NO
+ goto_if_eq MauvilleCity_BikeShop_EventScript_156817
+ end
+
+MauvilleCity_BikeShop_EventScript_1567D1:: @ 81567D1
+ msgbox MauvilleCity_BikeShop_Text_181016, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq MauvilleCity_BikeShop_EventScript_156824
+ compare RESULT, NO
+ goto_if_eq MauvilleCity_BikeShop_EventScript_156817
+ end
+
+MauvilleCity_BikeShop_EventScript_1567F0:: @ 81567F0
+ message MauvilleCity_BikeShop_Text_1810B1
+ waitmessage
+ multichoice 21, 8, 12, 1
+ switch RESULT
+ case 0, MauvilleCity_BikeShop_EventScript_15682D
+ case 1, MauvilleCity_BikeShop_EventScript_156847
+ end
+
+MauvilleCity_BikeShop_EventScript_156817:: @ 8156817
+ setflag FLAG_DECLINED_BIKE
+ msgbox MauvilleCity_BikeShop_Text_181067, 4
+ release
+ end
+
+MauvilleCity_BikeShop_EventScript_156824:: @ 8156824
+ setflag FLAG_RECEIVED_BIKE
+ goto MauvilleCity_BikeShop_EventScript_1567F0
+ end
+
+MauvilleCity_BikeShop_EventScript_15682D:: @ 815682D
+ msgbox MauvilleCity_BikeShop_Text_181332, 4
+ giveitem_std ITEM_MACH_BIKE
+ goto MauvilleCity_BikeShop_EventScript_156861
+ end
+
+MauvilleCity_BikeShop_EventScript_156847:: @ 8156847
+ msgbox MauvilleCity_BikeShop_Text_18134A, 4
+ giveitem_std ITEM_ACRO_BIKE
+ goto MauvilleCity_BikeShop_EventScript_156861
+ end
+
+MauvilleCity_BikeShop_EventScript_156861:: @ 8156861
+ msgbox MauvilleCity_BikeShop_Text_181362, 4
+ special SwapRegisteredBike
+ release
+ end
+
+MauvilleCity_BikeShop_EventScript_15686E:: @ 815686E
+ msgbox MauvilleCity_BikeShop_Text_1813A0, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq MauvilleCity_BikeShop_EventScript_15688D
+ compare RESULT, NO
+ goto_if_eq MauvilleCity_BikeShop_EventScript_1568BF
+ end
+
+MauvilleCity_BikeShop_EventScript_15688D:: @ 815688D
+ msgbox MauvilleCity_BikeShop_Text_1813D4, 4
+ checkitem ITEM_ACRO_BIKE, 1
+ compare RESULT, 1
+ goto_if_eq MauvilleCity_BikeShop_EventScript_1568C9
+ checkitem ITEM_MACH_BIKE, 1
+ compare RESULT, 1
+ goto_if_eq MauvilleCity_BikeShop_EventScript_1568EA
+ msgbox MauvilleCity_BikeShop_Text_181498, 4
+ release
+ end
+
+MauvilleCity_BikeShop_EventScript_1568BF:: @ 81568BF
+ msgbox MauvilleCity_BikeShop_Text_181469, 4
+ release
+ end
+
+MauvilleCity_BikeShop_EventScript_1568C9:: @ 81568C9
+ incrementgamestat GAME_STAT_TRADED_BIKES
+ msgbox MauvilleCity_BikeShop_Text_181439, 4
+ takeitem ITEM_ACRO_BIKE, 1
+ giveitem_std ITEM_MACH_BIKE
+ goto MauvilleCity_BikeShop_EventScript_156861
+ end
+
+MauvilleCity_BikeShop_EventScript_1568EA:: @ 81568EA
+ incrementgamestat GAME_STAT_TRADED_BIKES
+ msgbox MauvilleCity_BikeShop_Text_181408, 4
+ takeitem ITEM_MACH_BIKE, 1
+ giveitem_std ITEM_ACRO_BIKE
+ goto MauvilleCity_BikeShop_EventScript_156861
+ end
+
+MauvilleCity_BikeShop_EventScript_15690B:: @ 815690B
+ msgbox MauvilleCity_BikeShop_Text_181568, 2
+ end
+
+MauvilleCity_BikeShop_EventScript_156914:: @ 8156914
+ message MauvilleCity_BikeShop_Text_1815EA
+ waitmessage
+ goto MauvilleCity_BikeShop_EventScript_156920
+ end
+
+MauvilleCity_BikeShop_EventScript_156920:: @ 8156920
+ multichoice 0, 0, 43, 0
+ switch RESULT
+ case 0, MauvilleCity_BikeShop_EventScript_156962
+ case 1, MauvilleCity_BikeShop_EventScript_15696E
+ case 2, MauvilleCity_BikeShop_EventScript_15697A
+ case 3, MauvilleCity_BikeShop_EventScript_156986
+ case 127, MauvilleCity_BikeShop_EventScript_156986
+ end
+
+MauvilleCity_BikeShop_EventScript_156962:: @ 8156962
+ message MauvilleCity_BikeShop_Text_18162C
+ waitmessage
+ goto MauvilleCity_BikeShop_EventScript_156920
+ end
+
+MauvilleCity_BikeShop_EventScript_15696E:: @ 815696E
+ message MauvilleCity_BikeShop_Text_1816F5
+ waitmessage
+ goto MauvilleCity_BikeShop_EventScript_156920
+ end
+
+MauvilleCity_BikeShop_EventScript_15697A:: @ 815697A
+ message MauvilleCity_BikeShop_Text_1817BF
+ waitmessage
+ goto MauvilleCity_BikeShop_EventScript_156920
+ end
+
+MauvilleCity_BikeShop_EventScript_156986:: @ 8156986
+ release
+ end
+
+MauvilleCity_BikeShop_EventScript_156988:: @ 8156988
+ message MauvilleCity_BikeShop_Text_181892
+ waitmessage
+ goto MauvilleCity_BikeShop_EventScript_156994
+ end
+
+MauvilleCity_BikeShop_EventScript_156994:: @ 8156994
+ multichoice 0, 0, 44, 0
+ switch RESULT
+ case 0, MauvilleCity_BikeShop_EventScript_1569D6
+ case 1, MauvilleCity_BikeShop_EventScript_1569E2
+ case 2, MauvilleCity_BikeShop_EventScript_1569EE
+ case 3, MauvilleCity_BikeShop_EventScript_1569FA
+ case 127, MauvilleCity_BikeShop_EventScript_1569FA
+ end
+
+MauvilleCity_BikeShop_EventScript_1569D6:: @ 81569D6
+ message MauvilleCity_BikeShop_Text_1818D4
+ waitmessage
+ goto MauvilleCity_BikeShop_EventScript_156994
+ end
+
+MauvilleCity_BikeShop_EventScript_1569E2:: @ 81569E2
+ message MauvilleCity_BikeShop_Text_18199A
+ waitmessage
+ goto MauvilleCity_BikeShop_EventScript_156994
+ end
+
+MauvilleCity_BikeShop_EventScript_1569EE:: @ 81569EE
+ message MauvilleCity_BikeShop_Text_181A3D
+ waitmessage
+ goto MauvilleCity_BikeShop_EventScript_156994
+ end
+
+MauvilleCity_BikeShop_EventScript_1569FA:: @ 81569FA
+ release
+ end
diff --git a/data/maps/MauvilleCity_GameCorner/scripts.inc b/data/maps/MauvilleCity_GameCorner/scripts.inc
new file mode 100644
index 000000000..b9f8e5ad1
--- /dev/null
+++ b/data/maps/MauvilleCity_GameCorner/scripts.inc
@@ -0,0 +1,655 @@
+MauvilleCity_GameCorner_MapScripts:: @ 8156A33
+ .byte 0
+
+MauvilleCity_GameCorner_EventScript_156A34:: @ 8156A34
+ lock
+ faceplayer
+ msgbox MauvilleCity_GameCorner_Text_181C35, 4
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156B32
+ message MauvilleCity_GameCorner_Text_181CB4
+ waitmessage
+ showmoneybox 0, 0
+ nop
+ showcoinsbox 0, 5
+ goto MauvilleCity_GameCorner_EventScript_156A60
+
+MauvilleCity_GameCorner_EventScript_156A60:: @ 8156A60
+ multichoicedefault 15, 0, 49, 0, 0
+ switch RESULT
+ case 0, MauvilleCity_GameCorner_EventScript_156AAE
+ case 1, MauvilleCity_GameCorner_EventScript_156AF0
+ goto MauvilleCity_GameCorner_EventScript_156B4C
+ end
+
+@ 8156A87
+ multichoicedefault 15, 0, 49, 1, 0
+ switch RESULT
+ case 0, MauvilleCity_GameCorner_EventScript_156AAE
+ case 1, MauvilleCity_GameCorner_EventScript_156AF0
+ goto MauvilleCity_GameCorner_EventScript_156B4C
+ end
+
+MauvilleCity_GameCorner_EventScript_156AAE:: @ 8156AAE
+ checkcoins VAR_TEMP_1
+ compare VAR_TEMP_1, 9950
+ goto_if_ge MauvilleCity_GameCorner_EventScript_156B5C
+ checkmoney 0x3e8, 0
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156B3C
+ givecoins 50
+ takemoney 0x3e8, 0
+ updatemoneybox 0, 0
+ nop
+ updatecoinsbox 0, 5
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181CFE, 4
+ hidemoneybox 0, 0
+ hidecoinsbox 0, 5
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156AF0:: @ 8156AF0
+ checkcoins VAR_TEMP_1
+ compare VAR_TEMP_1, 9500
+ goto_if_ge MauvilleCity_GameCorner_EventScript_156B5C
+ checkmoney 0x2710, 0
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156B3C
+ givecoins 500
+ takemoney 0x2710, 0
+ updatemoneybox 0, 0
+ nop
+ updatecoinsbox 0, 5
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181CFE, 4
+ hidemoneybox 0, 0
+ hidecoinsbox 0, 5
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156B32:: @ 8156B32
+ msgbox MauvilleCity_GameCorner_Text_181C53, 4
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156B3C:: @ 8156B3C
+ msgbox MauvilleCity_GameCorner_Text_181D28, 4
+ hidemoneybox 0, 0
+ hidecoinsbox 0, 5
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156B4C:: @ 8156B4C
+ msgbox MauvilleCity_GameCorner_Text_181D73, 4
+ hidemoneybox 0, 0
+ hidecoinsbox 0, 5
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156B5C:: @ 8156B5C
+ msgbox MauvilleCity_GameCorner_Text_181D57, 4
+ hidemoneybox 0, 0
+ hidecoinsbox 0, 5
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156B6C:: @ 8156B6C
+ lock
+ faceplayer
+ msgbox MauvilleCity_GameCorner_Text_181DE1, 4
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 1
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156B88
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156B88:: @ 8156B88
+ message MauvilleCity_GameCorner_Text_181E17
+ waitmessage
+ showcoinsbox 0, 0
+ setvar VAR_TEMP_1, 0
+ goto MauvilleCity_GameCorner_EventScript_156BA6
+
+MauvilleCity_GameCorner_EventScript_156B9B:: @ 8156B9B
+ message MauvilleCity_GameCorner_Text_181E17
+ waitmessage
+ goto MauvilleCity_GameCorner_EventScript_156BA6
+
+MauvilleCity_GameCorner_EventScript_156BA6:: @ 8156BA6
+ multichoice 12, 0, 48, 0
+ switch RESULT
+ case 0, MauvilleCity_GameCorner_EventScript_156BE2
+ case 1, MauvilleCity_GameCorner_EventScript_156BF0
+ case 2, MauvilleCity_GameCorner_EventScript_156BFE
+ case 3, MauvilleCity_GameCorner_EventScript_156D0D
+ goto MauvilleCity_GameCorner_EventScript_156D0D
+ end
+
+MauvilleCity_GameCorner_EventScript_156BE2:: @ 8156BE2
+ setvar VAR_TEMP_1, 1
+ bufferdecorationname 0, 88
+ goto MauvilleCity_GameCorner_EventScript_156C0C
+
+MauvilleCity_GameCorner_EventScript_156BF0:: @ 8156BF0
+ setvar VAR_TEMP_1, 2
+ bufferdecorationname 0, 89
+ goto MauvilleCity_GameCorner_EventScript_156C0C
+
+MauvilleCity_GameCorner_EventScript_156BFE:: @ 8156BFE
+ setvar VAR_TEMP_1, 3
+ bufferdecorationname 0, 90
+ goto MauvilleCity_GameCorner_EventScript_156C0C
+
+MauvilleCity_GameCorner_EventScript_156C0C:: @ 8156C0C
+ msgbox MauvilleCity_GameCorner_Text_181E33, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D0D
+ switch VAR_TEMP_1
+ case 1, MauvilleCity_GameCorner_EventScript_156C46
+ case 2, MauvilleCity_GameCorner_EventScript_156C80
+ case 3, MauvilleCity_GameCorner_EventScript_156CBA
+ end
+
+MauvilleCity_GameCorner_EventScript_156C46:: @ 8156C46
+ checkcoins VAR_TEMP_2
+ compare VAR_TEMP_2, 1000
+ goto_if_lt MauvilleCity_GameCorner_EventScript_156CF4
+ bufferdecorationname 1, DECOR_TREECKO_DOLL
+ checkdecorspace DECOR_TREECKO_DOLL
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
+ takecoins 1000
+ givedecoration DECOR_TREECKO_DOLL
+ updatecoinsbox 0, 0
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181E49, 4
+ goto MauvilleCity_GameCorner_EventScript_156B9B
+ end
+
+MauvilleCity_GameCorner_EventScript_156C80:: @ 8156C80
+ checkcoins VAR_TEMP_2
+ compare VAR_TEMP_2, 1000
+ goto_if_lt MauvilleCity_GameCorner_EventScript_156CF4
+ bufferdecorationname 1, DECOR_TORCHIC_DOLL
+ checkdecorspace DECOR_TORCHIC_DOLL
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
+ takecoins 1000
+ givedecoration DECOR_TORCHIC_DOLL
+ updatecoinsbox 0, 0
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181E49, 4
+ goto MauvilleCity_GameCorner_EventScript_156B9B
+ end
+
+MauvilleCity_GameCorner_EventScript_156CBA:: @ 8156CBA
+ checkcoins VAR_TEMP_2
+ compare VAR_TEMP_2, 1000
+ goto_if_lt MauvilleCity_GameCorner_EventScript_156CF4
+ bufferdecorationname 1, DECOR_MUDKIP_DOLL
+ checkdecorspace DECOR_MUDKIP_DOLL
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
+ takecoins 1000
+ givedecoration DECOR_MUDKIP_DOLL
+ updatecoinsbox 0, 0
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181E49, 4
+ goto MauvilleCity_GameCorner_EventScript_156B9B
+ end
+
+MauvilleCity_GameCorner_EventScript_156CF4:: @ 8156CF4
+ msgbox MauvilleCity_GameCorner_Text_181E76, 4
+ goto MauvilleCity_GameCorner_EventScript_156B9B
+ end
+
+MauvilleCity_GameCorner_EventScript_156D02:: @ 8156D02
+ call MauvilleCity_GameCorner_EventScript_1A02B8
+ goto MauvilleCity_GameCorner_EventScript_156B9B
+ end
+
+MauvilleCity_GameCorner_EventScript_156D0D:: @ 8156D0D
+ msgbox MauvilleCity_GameCorner_Text_181EC2, 4
+ hidecoinsbox 0, 0
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156D1A:: @ 8156D1A
+ lock
+ faceplayer
+ msgbox MauvilleCity_GameCorner_Text_181DE1, 4
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 1
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D36
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156D36:: @ 8156D36
+ message MauvilleCity_GameCorner_Text_181E17
+ waitmessage
+ showcoinsbox 0, 0
+ setvar VAR_TEMP_1, 0
+ goto MauvilleCity_GameCorner_EventScript_156D54
+
+MauvilleCity_GameCorner_EventScript_156D49:: @ 8156D49
+ message MauvilleCity_GameCorner_Text_181E17
+ waitmessage
+ goto MauvilleCity_GameCorner_EventScript_156D54
+
+MauvilleCity_GameCorner_EventScript_156D54:: @ 8156D54
+ multichoice 12, 0, 55, 0
+ switch RESULT
+ case 0, MauvilleCity_GameCorner_EventScript_156DA6
+ case 1, MauvilleCity_GameCorner_EventScript_156DB4
+ case 2, MauvilleCity_GameCorner_EventScript_156DC2
+ case 3, MauvilleCity_GameCorner_EventScript_156DD0
+ case 4, MauvilleCity_GameCorner_EventScript_156DDE
+ case 5, MauvilleCity_GameCorner_EventScript_156F77
+ goto MauvilleCity_GameCorner_EventScript_156F77
+ end
+
+MauvilleCity_GameCorner_EventScript_156DA6:: @ 8156DA6
+ setvar VAR_TEMP_1, 1
+ bufferitemname 0, ITEM_TM32_DOUBLE_TEAM
+ goto MauvilleCity_GameCorner_EventScript_156DEC
+
+MauvilleCity_GameCorner_EventScript_156DB4:: @ 8156DB4
+ setvar VAR_TEMP_1, 2
+ bufferitemname 0, ITEM_TM29_PSYCHIC
+ goto MauvilleCity_GameCorner_EventScript_156DEC
+
+MauvilleCity_GameCorner_EventScript_156DC2:: @ 8156DC2
+ setvar VAR_TEMP_1, 3
+ bufferitemname 0, ITEM_TM35_FLAMETHROWER
+ goto MauvilleCity_GameCorner_EventScript_156DEC
+
+MauvilleCity_GameCorner_EventScript_156DD0:: @ 8156DD0
+ setvar VAR_TEMP_1, 4
+ bufferitemname 0, ITEM_TM24_THUNDERBOLT
+ goto MauvilleCity_GameCorner_EventScript_156DEC
+
+MauvilleCity_GameCorner_EventScript_156DDE:: @ 8156DDE
+ setvar VAR_TEMP_1, 5
+ bufferitemname 0, ITEM_TM13_ICE_BEAM
+ goto MauvilleCity_GameCorner_EventScript_156DEC
+
+MauvilleCity_GameCorner_EventScript_156DEC:: @ 8156DEC
+ msgbox MauvilleCity_GameCorner_Text_181E33, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F77
+ switch VAR_TEMP_1
+ case 1, MauvilleCity_GameCorner_EventScript_156E3C
+ case 2, MauvilleCity_GameCorner_EventScript_156E76
+ case 3, MauvilleCity_GameCorner_EventScript_156EB0
+ case 4, MauvilleCity_GameCorner_EventScript_156EEA
+ case 5, MauvilleCity_GameCorner_EventScript_156F24
+ end
+
+MauvilleCity_GameCorner_EventScript_156E3C:: @ 8156E3C
+ checkcoins VAR_TEMP_2
+ compare VAR_TEMP_2, 1500
+ goto_if_lt MauvilleCity_GameCorner_EventScript_156F5E
+ checkitemspace ITEM_TM32_DOUBLE_TEAM, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
+ takecoins 1500
+ giveitem ITEM_TM32_DOUBLE_TEAM, 1
+ updatecoinsbox 0, 0
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ goto MauvilleCity_GameCorner_EventScript_156D49
+ end
+
+MauvilleCity_GameCorner_EventScript_156E76:: @ 8156E76
+ checkcoins VAR_TEMP_2
+ compare VAR_TEMP_2, 3500
+ goto_if_lt MauvilleCity_GameCorner_EventScript_156F5E
+ checkitemspace ITEM_TM29_PSYCHIC, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
+ takecoins 3500
+ giveitem ITEM_TM29_PSYCHIC, 1
+ updatecoinsbox 0, 0
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ goto MauvilleCity_GameCorner_EventScript_156D49
+ end
+
+MauvilleCity_GameCorner_EventScript_156EB0:: @ 8156EB0
+ checkcoins VAR_TEMP_2
+ compare VAR_TEMP_2, 4000
+ goto_if_lt MauvilleCity_GameCorner_EventScript_156F5E
+ checkitemspace ITEM_TM35_FLAMETHROWER, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
+ takecoins 4000
+ giveitem ITEM_TM35_FLAMETHROWER, 1
+ updatecoinsbox 0, 0
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ goto MauvilleCity_GameCorner_EventScript_156D49
+ end
+
+MauvilleCity_GameCorner_EventScript_156EEA:: @ 8156EEA
+ checkcoins VAR_TEMP_2
+ compare VAR_TEMP_2, 4000
+ goto_if_lt MauvilleCity_GameCorner_EventScript_156F5E
+ checkitemspace ITEM_TM24_THUNDERBOLT, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
+ takecoins 4000
+ giveitem ITEM_TM24_THUNDERBOLT, 1
+ updatecoinsbox 0, 0
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ goto MauvilleCity_GameCorner_EventScript_156D49
+ end
+
+MauvilleCity_GameCorner_EventScript_156F24:: @ 8156F24
+ checkcoins VAR_TEMP_2
+ compare VAR_TEMP_2, 4000
+ goto_if_lt MauvilleCity_GameCorner_EventScript_156F5E
+ checkitemspace ITEM_TM13_ICE_BEAM, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
+ takecoins 4000
+ giveitem ITEM_TM13_ICE_BEAM, 1
+ updatecoinsbox 0, 0
+ playse SE_REGI
+ msgbox MauvilleCity_GameCorner_Text_181F08, 4
+ goto MauvilleCity_GameCorner_EventScript_156D49
+ end
+
+MauvilleCity_GameCorner_EventScript_156F5E:: @ 8156F5E
+ msgbox MauvilleCity_GameCorner_Text_181E76, 4
+ goto MauvilleCity_GameCorner_EventScript_156D49
+ end
+
+MauvilleCity_GameCorner_EventScript_156F6C:: @ 8156F6C
+ call MauvilleCity_GameCorner_EventScript_1A02A5
+ goto MauvilleCity_GameCorner_EventScript_156D49
+ end
+
+MauvilleCity_GameCorner_EventScript_156F77:: @ 8156F77
+ msgbox MauvilleCity_GameCorner_Text_181EC2, 4
+ hidecoinsbox 0, 0
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_156F84:: @ 8156F84
+ msgbox MauvilleCity_GameCorner_Text_1821C1, 2
+ end
+
+MauvilleCity_GameCorner_EventScript_156F8D:: @ 8156F8D
+ msgbox MauvilleCity_GameCorner_Text_1821F3, 2
+ end
+
+MauvilleCity_GameCorner_EventScript_156F96:: @ 8156F96
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_STARTER_DOLL, MauvilleCity_GameCorner_EventScript_157072
+ msgbox MauvilleCity_GameCorner_Text_181F3D, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq MauvilleCity_GameCorner_EventScript_157068
+ switch VAR_STARTER_MON
+ case 0, MauvilleCity_GameCorner_EventScript_156FDB
+ case 1, MauvilleCity_GameCorner_EventScript_157005
+ case 2, MauvilleCity_GameCorner_EventScript_15702F
+ end
+
+MauvilleCity_GameCorner_EventScript_156FDB:: @ 8156FDB
+ bufferdecorationname 1, DECOR_TREECKO_DOLL
+ checkdecorspace DECOR_TREECKO_DOLL
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_157059
+ msgbox MauvilleCity_GameCorner_Text_181F89, 4
+ givedecoration_std DECOR_TREECKO_DOLL
+ setflag FLAG_RECEIVED_STARTER_DOLL
+ goto MauvilleCity_GameCorner_EventScript_157072
+ end
+
+MauvilleCity_GameCorner_EventScript_157005:: @ 8157005
+ bufferdecorationname 1, DECOR_TORCHIC_DOLL
+ checkdecorspace DECOR_TORCHIC_DOLL
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_157059
+ msgbox MauvilleCity_GameCorner_Text_181F89, 4
+ givedecoration_std DECOR_TORCHIC_DOLL
+ setflag FLAG_RECEIVED_STARTER_DOLL
+ goto MauvilleCity_GameCorner_EventScript_157072
+ end
+
+MauvilleCity_GameCorner_EventScript_15702F:: @ 815702F
+ bufferdecorationname 1, DECOR_MUDKIP_DOLL
+ checkdecorspace DECOR_MUDKIP_DOLL
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_157059
+ msgbox MauvilleCity_GameCorner_Text_181F89, 4
+ givedecoration_std DECOR_MUDKIP_DOLL
+ setflag FLAG_RECEIVED_STARTER_DOLL
+ goto MauvilleCity_GameCorner_EventScript_157072
+ end
+
+MauvilleCity_GameCorner_EventScript_157059:: @ 8157059
+ call MauvilleCity_GameCorner_EventScript_1A02B8
+ msgbox MauvilleCity_GameCorner_Text_181F97, 4
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_157068:: @ 8157068
+ msgbox MauvilleCity_GameCorner_Text_181FBC, 4
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_157072:: @ 8157072
+ msgbox MauvilleCity_GameCorner_Text_181FE9, 4
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_15707C:: @ 815707C
+ lock
+ faceplayer
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 1
+ goto_if_eq MauvilleCity_GameCorner_EventScript_15709C
+ msgbox MauvilleCity_GameCorner_Text_18201E, 4
+ goto MauvilleCity_GameCorner_EventScript_157108
+ end
+
+MauvilleCity_GameCorner_EventScript_15709C:: @ 815709C
+ goto_if_set FLAG_RECEIVED_20_COINS, MauvilleCity_GameCorner_EventScript_1570CA
+ checkcoins VAR_TEMP_1
+ compare VAR_TEMP_1, 1
+ goto_if_ge MauvilleCity_GameCorner_EventScript_1570CA
+ setflag FLAG_RECEIVED_20_COINS
+ givecoins 20
+ msgbox MauvilleCity_GameCorner_Text_18208E, 4
+ playse SE_REGI
+ goto MauvilleCity_GameCorner_EventScript_1570CA
+ end
+
+MauvilleCity_GameCorner_EventScript_1570CA:: @ 81570CA
+ msgbox MauvilleCity_GameCorner_Text_1820DD, 4
+ goto MauvilleCity_GameCorner_EventScript_157108
+ end
+
+MauvilleCity_GameCorner_EventScript_1570D8:: @ 81570D8
+ lock
+ faceplayer
+ msgbox MauvilleCity_GameCorner_Text_182120, 4
+ goto MauvilleCity_GameCorner_EventScript_157108
+ end
+
+MauvilleCity_GameCorner_EventScript_1570E8:: @ 81570E8
+ lock
+ faceplayer
+ msgbox MauvilleCity_GameCorner_Text_18217C, 4
+ goto MauvilleCity_GameCorner_EventScript_157108
+ end
+
+MauvilleCity_GameCorner_EventScript_1570F8:: @ 81570F8
+ lock
+ faceplayer
+ msgbox MauvilleCity_GameCorner_Text_182241, 4
+ goto MauvilleCity_GameCorner_EventScript_157108
+ end
+
+MauvilleCity_GameCorner_EventScript_157108:: @ 8157108
+ closemessage
+ applymovement LAST_TALKED, MauvilleCity_GameCorner_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+MauvilleCity_GameCorner_EventScript_157115:: @ 8157115
+ lock
+ faceplayer
+ msgbox MauvilleCity_GameCorner_Text_182272, 4
+ goto MauvilleCity_GameCorner_EventScript_157108
+ end
+
+MauvilleCity_GameCorner_EventScript_157125:: @ 8157125
+ lock
+ faceplayer
+ msgbox MauvilleCity_GameCorner_Text_1822F4, 4
+ goto MauvilleCity_GameCorner_EventScript_157108
+ end
+
+MauvilleCity_GameCorner_EventScript_157135:: @ 8157135
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 0
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_157155:: @ 8157155
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 1
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_157175:: @ 8157175
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 2
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_157195:: @ 8157195
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 3
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_1571B5:: @ 81571B5
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 4
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_1571D5:: @ 81571D5
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 5
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_1571F5:: @ 81571F5
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 6
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_157215:: @ 8157215
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 7
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_157235:: @ 8157235
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 8
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_157255:: @ 8157255
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 9
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_157275:: @ 8157275
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 10
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_157295:: @ 8157295
+ lockall
+ checkitem ITEM_COIN_CASE, 1
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
+ setvar VAR_SPECIAL_4, 11
+ specialvar RESULT, GetSlotMachineId
+ playslotmachine RESULT
+ releaseall
+ end
+
+MauvilleCity_GameCorner_EventScript_1572B5:: @ 81572B5
+ msgbox MauvilleCity_GameCorner_Text_182420, 4
+ releaseall
+ end
diff --git a/data/maps/MauvilleCity_Gym/scripts.inc b/data/maps/MauvilleCity_Gym/scripts.inc
new file mode 100644
index 000000000..d9b8aced7
--- /dev/null
+++ b/data/maps/MauvilleCity_Gym/scripts.inc
@@ -0,0 +1,216 @@
+MauvilleCity_Gym_MapScripts:: @ 8156450
+ map_script 1, MauvilleCity_Gym_MapScript1_156456
+ .byte 0
+
+MauvilleCity_Gym_MapScript1_156456:: @ 8156456
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_1565A7
+ switch VAR_MAUVILLE_GYM_STATE
+ case 0, MauvilleCity_Gym_EventScript_156491
+ case 1, MauvilleCity_Gym_EventScript_15657D
+ case 2, MauvilleCity_Gym_EventScript_15658B
+ case 3, MauvilleCity_Gym_EventScript_156599
+ end
+
+MauvilleCity_Gym_EventScript_156491:: @ 8156491
+ goto_if_set FLAG_MAUVILLE_GYM_BARRIERS_STATE, MauvilleCity_Gym_EventScript_15649B
+ end
+
+MauvilleCity_Gym_EventScript_15649B:: @ 815649B
+ setmetatile 4, 7, 560, 0
+ setmetatile 4, 8, 568, 0
+ setmetatile 5, 7, 561, 0
+ setmetatile 5, 8, 569, 0
+ setmetatile 3, 8, 578, 1
+ setmetatile 3, 9, 538, 0
+ setmetatile 3, 10, 593, 0
+ setmetatile 1, 10, 546, 0
+ setmetatile 1, 11, 554, 1
+ setmetatile 2, 10, 547, 0
+ setmetatile 2, 11, 555, 1
+ setmetatile 4, 10, 546, 0
+ setmetatile 4, 11, 554, 1
+ setmetatile 5, 10, 547, 0
+ setmetatile 5, 11, 555, 1
+ setmetatile 6, 11, 578, 1
+ setmetatile 6, 12, 538, 0
+ setmetatile 6, 13, 593, 0
+ setmetatile 3, 11, 577, 1
+ setmetatile 3, 12, 585, 1
+ setmetatile 3, 13, 592, 1
+ setmetatile 4, 13, 560, 0
+ setmetatile 4, 14, 568, 0
+ setmetatile 5, 13, 561, 0
+ setmetatile 5, 14, 569, 0
+ end
+
+MauvilleCity_Gym_EventScript_15657D:: @ 815657D
+ setvar VAR_SPECIAL_4, 0
+ special MauvilleGymSpecial1
+ goto MauvilleCity_Gym_EventScript_156491
+ end
+
+MauvilleCity_Gym_EventScript_15658B:: @ 815658B
+ setvar VAR_SPECIAL_4, 1
+ special MauvilleGymSpecial1
+ goto MauvilleCity_Gym_EventScript_156491
+ end
+
+MauvilleCity_Gym_EventScript_156599:: @ 8156599
+ setvar VAR_SPECIAL_4, 2
+ special MauvilleGymSpecial1
+ goto MauvilleCity_Gym_EventScript_156491
+ end
+
+MauvilleCity_Gym_EventScript_1565A7:: @ 81565A7
+ special MauvilleGymSpecial3
+ end
+
+MauvilleCity_Gym_EventScript_1565AB:: @ 81565AB
+ trainerbattle 1, OPPONENT_WATTSON, 0, MauvilleCity_Gym_Text_180C32, MauvilleCity_Gym_Text_180D64, MauvilleCity_Gym_EventScript_1565DB
+ goto_if_unset FLAG_RECEIVED_TM34, MauvilleCity_Gym_EventScript_15661D
+ compare VAR_NEW_MAUVILLE_STATE, 2
+ goto_if_eq MauvilleCity_Gym_EventScript_156641
+ msgbox MauvilleCity_Gym_Text_180EDB, 4
+ release
+ end
+
+MauvilleCity_Gym_EventScript_1565DB:: @ 81565DB
+ message MauvilleCity_Gym_Text_180DAF
+ waitmessage
+ call MauvilleCity_Gym_EventScript_1A02C5
+ msgbox MauvilleCity_Gym_Text_180DDA, 4
+ setflag FLAG_DEFEATED_MAUVILLE_GYM
+ setflag FLAG_BADGE03_GET
+ addvar VAR_PETALBURG_GYM_STATE, 1
+ compare VAR_PETALBURG_GYM_STATE, 6
+ call_if_eq MauvilleCity_Gym_EventScript_1A00FB
+ setvar VAR_SPECIAL_8, 3
+ call MauvilleCity_Gym_EventScript_1A01C0
+ special MauvilleGymSpecial3
+ special DrawWholeMapView
+ playse SE_KI_GASYAN
+ goto MauvilleCity_Gym_EventScript_15661D
+ end
+
+MauvilleCity_Gym_EventScript_15661D:: @ 815661D
+ giveitem_std ITEM_TM34_SHOCK_WAVE
+ compare RESULT, 0
+ goto_if_eq MauvilleCity_Gym_EventScript_1A029B
+ msgbox MauvilleCity_Gym_Text_180E76, 4
+ setflag FLAG_RECEIVED_TM34
+ release
+ end
+
+MauvilleCity_Gym_EventScript_156641:: @ 8156641
+ msgbox MauvilleCity_Gym_Text_180F1D, 4
+ release
+ end
+
+MauvilleCity_Gym_EventScript_15664B:: @ 815664B
+ lockall
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_1566DA
+ compare VAR_MAUVILLE_GYM_STATE, 1
+ goto_if_eq MauvilleCity_Gym_EventScript_1566DA
+ setvar VAR_MAUVILLE_GYM_STATE, 1
+ setvar VAR_SPECIAL_4, 0
+ goto MauvilleCity_Gym_EventScript_1566BA
+ end
+
+MauvilleCity_Gym_EventScript_156670:: @ 8156670
+ lockall
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_1566DA
+ compare VAR_MAUVILLE_GYM_STATE, 2
+ goto_if_eq MauvilleCity_Gym_EventScript_1566DA
+ setvar VAR_MAUVILLE_GYM_STATE, 2
+ setvar VAR_SPECIAL_4, 1
+ goto MauvilleCity_Gym_EventScript_1566BA
+ end
+
+MauvilleCity_Gym_EventScript_156695:: @ 8156695
+ lockall
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_1566DA
+ compare VAR_MAUVILLE_GYM_STATE, 3
+ goto_if_eq MauvilleCity_Gym_EventScript_1566DA
+ setvar VAR_MAUVILLE_GYM_STATE, 3
+ setvar VAR_SPECIAL_4, 2
+ goto MauvilleCity_Gym_EventScript_1566BA
+ end
+
+MauvilleCity_Gym_EventScript_1566BA:: @ 81566BA
+ special MauvilleGymSpecial2
+ special MauvilleGymSpecial1
+ special DrawWholeMapView
+ playse SE_KI_GASYAN
+ goto_if_set FLAG_MAUVILLE_GYM_BARRIERS_STATE, MauvilleCity_Gym_EventScript_1566E1
+ goto_if_unset FLAG_MAUVILLE_GYM_BARRIERS_STATE, MauvilleCity_Gym_EventScript_1566DC
+ releaseall
+ end
+
+MauvilleCity_Gym_EventScript_1566DA:: @ 81566DA
+ releaseall
+ end
+
+MauvilleCity_Gym_EventScript_1566DC:: @ 81566DC
+ setflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
+ releaseall
+ end
+
+MauvilleCity_Gym_EventScript_1566E1:: @ 81566E1
+ clearflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
+ releaseall
+ end
+
+MauvilleCity_Gym_EventScript_1566E6:: @ 81566E6
+ trainerbattle 0, OPPONENT_KIRK, 0, MauvilleCity_Gym_Text_180956, MauvilleCity_Gym_Text_180997
+ msgbox MauvilleCity_Gym_Text_1809D1, 6
+ end
+
+MauvilleCity_Gym_EventScript_1566FD:: @ 81566FD
+ trainerbattle 0, OPPONENT_SHAWN, 0, MauvilleCity_Gym_Text_180A05, MauvilleCity_Gym_Text_180A42
+ msgbox MauvilleCity_Gym_Text_180A5E, 6
+ end
+
+MauvilleCity_Gym_EventScript_156714:: @ 8156714
+ trainerbattle 0, OPPONENT_BEN, 0, MauvilleCity_Gym_Text_180AE0, MauvilleCity_Gym_Text_180B06
+ msgbox MauvilleCity_Gym_Text_180B1D, 6
+ end
+
+MauvilleCity_Gym_EventScript_15672B:: @ 815672B
+ trainerbattle 0, OPPONENT_VIVIAN, 0, MauvilleCity_Gym_Text_180B5A, MauvilleCity_Gym_Text_180B93
+ msgbox MauvilleCity_Gym_Text_180BAE, 6
+ end
+
+MauvilleCity_Gym_EventScript_156742:: @ 8156742
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_MAUVILLE_GYM, MauvilleCity_Gym_EventScript_156757
+ msgbox MauvilleCity_Gym_Text_180815, 4
+ release
+ end
+
+MauvilleCity_Gym_EventScript_156757:: @ 8156757
+ msgbox MauvilleCity_Gym_Text_18091D, 4
+ release
+ end
+
+MauvilleCity_Gym_EventScript_156761:: @ 8156761
+ lockall
+ goto_if_set FLAG_BADGE03_GET, MauvilleCity_Gym_EventScript_156781
+ goto MauvilleCity_Gym_EventScript_15678B
+ end
+
+MauvilleCity_Gym_EventScript_156771:: @ 8156771
+ lockall
+ goto_if_set FLAG_BADGE03_GET, MauvilleCity_Gym_EventScript_156781
+ goto MauvilleCity_Gym_EventScript_15678B
+ end
+
+MauvilleCity_Gym_EventScript_156781:: @ 8156781
+ msgbox MauvilleCity_Gym_Text_180F64, 4
+ releaseall
+ end
+
+MauvilleCity_Gym_EventScript_15678B:: @ 815678B
+ msgbox MauvilleCity_Gym_Text_180F4A, 4
+ releaseall
+ end
diff --git a/data/maps/MauvilleCity_House1/scripts.inc b/data/maps/MauvilleCity_House1/scripts.inc
new file mode 100644
index 000000000..4caaef545
--- /dev/null
+++ b/data/maps/MauvilleCity_House1/scripts.inc
@@ -0,0 +1,18 @@
+MauvilleCity_House1_MapScripts:: @ 81569FC
+ .byte 0
+
+MauvilleCity_House1_EventScript_1569FD:: @ 81569FD
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_HM06, MauvilleCity_House1_EventScript_156A29
+ msgbox MauvilleCity_House1_Text_181B1A, 4
+ giveitem_std ITEM_HM06_ROCK_SMASH
+ setflag FLAG_RECEIVED_HM06
+ msgbox MauvilleCity_House1_Text_181B64, 4
+ release
+ end
+
+MauvilleCity_House1_EventScript_156A29:: @ 8156A29
+ msgbox MauvilleCity_House1_Text_181BF6, 4
+ release
+ end
diff --git a/data/maps/MauvilleCity_House2/scripts.inc b/data/maps/MauvilleCity_House2/scripts.inc
new file mode 100644
index 000000000..f18d278b5
--- /dev/null
+++ b/data/maps/MauvilleCity_House2/scripts.inc
@@ -0,0 +1,44 @@
+MauvilleCity_House2_MapScripts:: @ 81572BF
+ .byte 0
+
+MauvilleCity_House2_EventScript_1572C0:: @ 81572C0
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_COIN_CASE, MauvilleCity_House2_EventScript_15733D
+ msgbox MauvilleCity_House2_Text_18244E, 4
+ checkitem ITEM_HARBOR_MAIL, 1
+ compare RESULT, 1
+ goto_if_eq MauvilleCity_House2_EventScript_1572E5
+ release
+ end
+
+MauvilleCity_House2_EventScript_1572E5:: @ 81572E5
+ playse SE_PIN
+ applymovement LAST_TALKED, MauvilleCity_House2_Movement_1A0833
+ waitmovement 0
+ applymovement LAST_TALKED, MauvilleCity_House2_Movement_1A0835
+ waitmovement 0
+ msgbox MauvilleCity_House2_Text_1824D8, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq MauvilleCity_House2_EventScript_15731B
+ compare RESULT, NO
+ goto_if_eq MauvilleCity_House2_EventScript_157347
+ end
+
+MauvilleCity_House2_EventScript_15731B:: @ 815731B
+ msgbox MauvilleCity_House2_Text_182515, 4
+ takeitem ITEM_HARBOR_MAIL, 1
+ giveitem_std ITEM_COIN_CASE
+ setflag FLAG_RECEIVED_COIN_CASE
+ goto MauvilleCity_House2_EventScript_15733D
+ end
+
+MauvilleCity_House2_EventScript_15733D:: @ 815733D
+ msgbox MauvilleCity_House2_Text_182549, 4
+ release
+ end
+
+MauvilleCity_House2_EventScript_157347:: @ 8157347
+ msgbox MauvilleCity_House2_Text_182578, 4
+ release
+ end
diff --git a/data/maps/MauvilleCity_Mart/scripts.inc b/data/maps/MauvilleCity_Mart/scripts.inc
new file mode 100644
index 000000000..0dd66eddf
--- /dev/null
+++ b/data/maps/MauvilleCity_Mart/scripts.inc
@@ -0,0 +1,38 @@
+MauvilleCity_Mart_MapScripts:: @ 81573BD
+ .byte 0
+
+MauvilleCity_Mart_EventScript_1573BE:: @ 81573BE
+ lock
+ faceplayer
+ message MauvilleCity_Mart_Text_1A0BE4
+ waitmessage
+ pokemart MauvilleCity_Mart_Items
+ msgbox MauvilleCity_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+MauvilleCity_Mart_Items:: @ 81573D8
+ .2byte ITEM_POKE_BALL
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_AWAKENING
+ .2byte ITEM_X_SPEED
+ .2byte ITEM_X_ATTACK
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_GUARD_SPEC
+ .2byte ITEM_DIRE_HIT
+ .2byte ITEM_X_ACCURACY
+ .2byte ITEM_NONE
+ release
+ end
+
+MauvilleCity_Mart_EventScript_1573F4:: @ 81573F4
+ msgbox MauvilleCity_Mart_Text_1827D3, 2
+ end
+
+MauvilleCity_Mart_EventScript_1573FD:: @ 81573FD
+ msgbox MauvilleCity_Mart_Text_18287F, 2
+ end
diff --git a/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc b/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..85590f9c2
--- /dev/null
+++ b/data/maps/MauvilleCity_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,33 @@
+MauvilleCity_PokemonCenter_1F_MapScripts:: @ 8157351
+ map_script 3, MauvilleCity_PokemonCenter_1F_MapScript1_157357
+ .byte 0
+
+MauvilleCity_PokemonCenter_1F_MapScript1_157357:: @ 8157357
+ setrespawn 5
+ call MauvilleCity_PokemonCenter_1F_EventScript_19FD1B
+ goto MauvilleCity_PokemonCenter_1F_EventScript_157365
+ end
+
+MauvilleCity_PokemonCenter_1F_EventScript_157365:: @ 8157365
+ special sub_80F83D0
+ end
+
+MauvilleCity_PokemonCenter_1F_EventScript_157369:: @ 8157369
+ setvar VAR_SPECIAL_B, 1
+ call MauvilleCity_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+MauvilleCity_PokemonCenter_1F_EventScript_157377:: @ 8157377
+ msgbox MauvilleCity_PokemonCenter_1F_Text_1825BD, 2
+ end
+
+MauvilleCity_PokemonCenter_1F_EventScript_157380:: @ 8157380
+ msgbox MauvilleCity_PokemonCenter_1F_Text_182622, 2
+ end
+
+MauvilleCity_PokemonCenter_1F_EventScript_157389:: @ 8157389
+ msgbox MauvilleCity_PokemonCenter_1F_Text_1826A6, 2
+ end
diff --git a/data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc b/data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..e85e80308
--- /dev/null
+++ b/data/maps/MauvilleCity_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,21 @@
+MauvilleCity_PokemonCenter_2F_MapScripts:: @ 8157392
+ map_script 2, MauvilleCity_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, MauvilleCity_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, MauvilleCity_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+MauvilleCity_PokemonCenter_2F_EventScript_1573A2:: @ 81573A2
+ call MauvilleCity_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+MauvilleCity_PokemonCenter_2F_EventScript_1573A8:: @ 81573A8
+ call MauvilleCity_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+MauvilleCity_PokemonCenter_2F_EventScript_1573AE:: @ 81573AE
+ call MauvilleCity_PokemonCenter_2F_EventScript_1A41FB
+ end
+
+MauvilleCity_PokemonCenter_2F_EventScript_1573B4:: @ 81573B4
+ msgbox MauvilleCity_PokemonCenter_2F_Text_182724, 2
+ end
diff --git a/data/maps/MeteorFalls_1F_1R/scripts.inc b/data/maps/MeteorFalls_1F_1R/scripts.inc
new file mode 100644
index 000000000..ee2c5b1dc
--- /dev/null
+++ b/data/maps/MeteorFalls_1F_1R/scripts.inc
@@ -0,0 +1,227 @@
+MeteorFalls_1F_1R_MapScripts:: @ 815C490
+ map_script 3, MeteorFalls_1F_1R_MapScript1_15C496
+ .byte 0
+
+MeteorFalls_1F_1R_MapScript1_15C496:: @ 815C496
+ call MeteorFalls_1F_1R_EventScript_1A0196
+ end
+
+MeteorFalls_1F_1R_EventScript_15C49C:: @ 815C49C
+ lockall
+ applymovement 255, MeteorFalls_1F_1R_Movement_1A0845
+ waitmovement 0
+ delay 30
+ applymovement 5, MeteorFalls_1F_1R_Movement_1A0845
+ waitmovement 0
+ msgbox MeteorFalls_1F_1R_Text_193237, 4
+ closemessage
+ applymovement 5, MeteorFalls_1F_1R_Movement_1A0841
+ applymovement 6, MeteorFalls_1F_1R_Movement_1A0841
+ waitmovement 0
+ playse SE_PIN
+ applymovement 5, MeteorFalls_1F_1R_Movement_1A0833
+ waitmovement 0
+ applymovement 5, MeteorFalls_1F_1R_Movement_1A0835
+ waitmovement 0
+ msgbox MeteorFalls_1F_1R_Text_193268, 4
+ closemessage
+ applymovement 5, MeteorFalls_1F_1R_Movement_15C5EE
+ waitmovement 0
+ msgbox MeteorFalls_1F_1R_Text_1932C5, 4
+ closemessage
+ applymovement 255, MeteorFalls_1F_1R_Movement_1A083F
+ applymovement 5, MeteorFalls_1F_1R_Movement_1A083F
+ applymovement 6, MeteorFalls_1F_1R_Movement_1A083F
+ waitmovement 0
+ addobject 7
+ addobject 8
+ addobject 9
+ applymovement 7, MeteorFalls_1F_1R_Movement_15C608
+ applymovement 8, MeteorFalls_1F_1R_Movement_15C60F
+ applymovement 9, MeteorFalls_1F_1R_Movement_15C617
+ waitmovement 0
+ applymovement 5, MeteorFalls_1F_1R_Movement_1A083F
+ applymovement 6, MeteorFalls_1F_1R_Movement_1A083F
+ waitmovement 0
+ msgbox MeteorFalls_1F_1R_Text_193320, 4
+ closemessage
+ applymovement 255, MeteorFalls_1F_1R_Movement_15C64F
+ applymovement 5, MeteorFalls_1F_1R_Movement_15C5F1
+ applymovement 6, MeteorFalls_1F_1R_Movement_15C5FC
+ waitmovement 0
+ removeobject 5
+ removeobject 6
+ applymovement 7, MeteorFalls_1F_1R_Movement_15C628
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox MeteorFalls_1F_1R_Text_1933EC, 4
+ .else
+ msgbox MeteorFalls_1F_1R_Text_193584, 4
+ .endif
+ closemessage
+ applymovement 8, MeteorFalls_1F_1R_Movement_15C639
+ applymovement 9, MeteorFalls_1F_1R_Movement_15C64A
+ waitmovement 0
+ msgbox MeteorFalls_1F_1R_Text_193720, 4
+ applymovement 7, MeteorFalls_1F_1R_Movement_1A0845
+ waitmovement 0
+ msgbox MeteorFalls_1F_1R_Text_193747, 4
+ applymovement 7, MeteorFalls_1F_1R_Movement_1A083F
+ waitmovement 0
+ msgbox MeteorFalls_1F_1R_Text_1937AA, 4
+ closemessage
+ applymovement 7, MeteorFalls_1F_1R_Movement_15C61F
+ applymovement 8, MeteorFalls_1F_1R_Movement_15C62E
+ applymovement 9, MeteorFalls_1F_1R_Movement_15C63E
+ waitmovement 0
+ removeobject 7
+ removeobject 8
+ removeobject 9
+ setflag FLAG_HIDE_GRUNTS_BLOCKING_CABLE_CAR
+ setvar VAR_METEOR_FALLS_STATE, 1
+ releaseall
+ end
+
+MeteorFalls_1F_1R_Movement_15C5EE:: @ 815C5EE
+ walk_right
+ walk_right
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C5F1:: @ 815C5F1
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C5FC:: @ 815C5FC
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C608:: @ 815C608
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C60F:: @ 815C60F
+ delay_16
+ delay_16
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C617:: @ 815C617
+ delay_16
+ delay_16
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C61F:: @ 815C61F
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C628:: @ 815C628
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ walk_in_place_fastest_left
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C62E:: @ 815C62E
+ walk_up
+ walk_up
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C639:: @ 815C639
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C63E:: @ 815C63E
+ walk_up
+ walk_up
+ walk_up
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C64A:: @ 815C64A
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+MeteorFalls_1F_1R_Movement_15C64F:: @ 815C64F
+ walk_in_place_fastest_down
+ delay_4
+ walk_in_place_fastest_right
+ lock_facing_direction
+ walk_left
+ unlock_facing_direction
+ end_movement
+
+MeteorFalls_1F_1R_EventScript_15C656:: @ 815C656
+ lock
+ faceplayer
+ goto_if_set FLAG_MET_PROF_COSMO, MeteorFalls_1F_1R_EventScript_15C66E
+ setflag FLAG_MET_PROF_COSMO
+ msgbox MeteorFalls_1F_1R_Text_1937EB, 4
+ release
+ end
+
+MeteorFalls_1F_1R_EventScript_15C66E:: @ 815C66E
+ msgbox MeteorFalls_1F_1R_Text_19396A, 4
+ release
+ end
diff --git a/data/maps/MeteorFalls_1F_2R/scripts.inc b/data/maps/MeteorFalls_1F_2R/scripts.inc
new file mode 100644
index 000000000..49d629294
--- /dev/null
+++ b/data/maps/MeteorFalls_1F_2R/scripts.inc
@@ -0,0 +1,41 @@
+MeteorFalls_1F_2R_MapScripts:: @ 815C678
+ .byte 0
+
+MeteorFalls_1F_2R_EventScript_15C679:: @ 815C679
+ trainerbattle 0, OPPONENT_NICOLAS_1, 0, MeteorFalls_1F_2R_Text_1939C5, MeteorFalls_1F_2R_Text_193A35
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq MeteorFalls_1F_2R_EventScript_15C6A0
+ msgbox MeteorFalls_1F_2R_Text_193A60, 6
+ end
+
+MeteorFalls_1F_2R_EventScript_15C6A0:: @ 815C6A0
+ trainerbattle 5, OPPONENT_NICOLAS_1, 0, MeteorFalls_1F_2R_Text_193AB3, MeteorFalls_1F_2R_Text_193B21
+ msgbox MeteorFalls_1F_2R_Text_193B4C, 6
+ end
+
+MeteorFalls_1F_2R_EventScript_15C6B7:: @ 815C6B7
+ trainerbattle 4, OPPONENT_JOHN_AND_JAY_1, 0, MeteorFalls_1F_2R_Text_193BB7, MeteorFalls_1F_2R_Text_193C10, MeteorFalls_1F_2R_Text_193C9F
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq MeteorFalls_1F_2R_EventScript_15C6E2
+ msgbox MeteorFalls_1F_2R_Text_193C35, 6
+ end
+
+MeteorFalls_1F_2R_EventScript_15C6E2:: @ 815C6E2
+ trainerbattle 7, OPPONENT_JOHN_AND_JAY_1, 0, MeteorFalls_1F_2R_Text_193E75, MeteorFalls_1F_2R_Text_193ECE, MeteorFalls_1F_2R_Text_193F59
+ msgbox MeteorFalls_1F_2R_Text_193EF3, 6
+ end
+
+MeteorFalls_1F_2R_EventScript_15C6FD:: @ 815C6FD
+ trainerbattle 4, OPPONENT_JOHN_AND_JAY_1, 0, MeteorFalls_1F_2R_Text_193D10, MeteorFalls_1F_2R_Text_193D6E, MeteorFalls_1F_2R_Text_193DFB
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq MeteorFalls_1F_2R_EventScript_15C728
+ msgbox MeteorFalls_1F_2R_Text_193D9A, 6
+ end
+
+MeteorFalls_1F_2R_EventScript_15C728:: @ 815C728
+ trainerbattle 7, OPPONENT_JOHN_AND_JAY_1, 0, MeteorFalls_1F_2R_Text_193FCA, MeteorFalls_1F_2R_Text_19403A, MeteorFalls_1F_2R_Text_1940DF
+ msgbox MeteorFalls_1F_2R_Text_194066, 6
+ end
diff --git a/data/maps/MeteorFalls_B1F_1R/scripts.inc b/data/maps/MeteorFalls_B1F_1R/scripts.inc
new file mode 100644
index 000000000..57d458b23
--- /dev/null
+++ b/data/maps/MeteorFalls_B1F_1R/scripts.inc
@@ -0,0 +1,2 @@
+MeteorFalls_B1F_1R_MapScripts:: @ 815C743
+ .byte 0
diff --git a/data/maps/MeteorFalls_B1F_2R/scripts.inc b/data/maps/MeteorFalls_B1F_2R/scripts.inc
new file mode 100644
index 000000000..514e60966
--- /dev/null
+++ b/data/maps/MeteorFalls_B1F_2R/scripts.inc
@@ -0,0 +1,2 @@
+MeteorFalls_B1F_2R_MapScripts:: @ 815C744
+ .byte 0
diff --git a/data/maps/MossdeepCity/scripts.inc b/data/maps/MossdeepCity/scripts.inc
new file mode 100644
index 000000000..7ec338927
--- /dev/null
+++ b/data/maps/MossdeepCity/scripts.inc
@@ -0,0 +1,90 @@
+MossdeepCity_MapScripts:: @ 814CF92
+ map_script 3, MossdeepCity_MapScript1_14CF98
+ .byte 0
+
+MossdeepCity_MapScript1_14CF98:: @ 814CF98
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_1
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_2
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_3
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_4
+ call_if_set FLAG_SYS_WEATHER_CTRL, MossdeepCity_EventScript_1A02C1
+ end
+
+MossdeepCity_EventScript_14CFAE:: @ 814CFAE
+ msgbox MossdeepCity_Text_169266, 2
+ end
+
+MossdeepCity_EventScript_14CFB7:: @ 814CFB7
+ msgbox MossdeepCity_Text_1692A1, 2
+ end
+
+MossdeepCity_EventScript_14CFC0:: @ 814CFC0
+ msgbox MossdeepCity_Text_1691F2, 2
+ end
+
+MossdeepCity_EventScript_14CFC9:: @ 814CFC9
+ msgbox MossdeepCity_Text_169370, 2
+ end
+
+MossdeepCity_EventScript_14CFD2:: @ 814CFD2
+ msgbox MossdeepCity_Text_169314, 2
+ end
+
+MossdeepCity_EventScript_14CFDB:: @ 814CFDB
+ msgbox MossdeepCity_Text_1694DA, 2
+ end
+
+MossdeepCity_EventScript_14CFE4:: @ 814CFE4
+ msgbox MossdeepCity_Text_1695D3, 3
+ end
+
+MossdeepCity_EventScript_14CFED:: @ 814CFED
+ msgbox MossdeepCity_Text_1695E6, 3
+ end
+
+MossdeepCity_EventScript_14CFF6:: @ 814CFF6
+ msgbox MossdeepCity_Text_16962F, 3
+ end
+
+MossdeepCity_EventScript_14CFFF:: @ 814CFFF
+ msgbox MossdeepCity_Text_16965C, 3
+ end
+
+MossdeepCity_EventScript_14D008:: @ 814D008
+ setflag FLAG_VISITED_MOSSDEEP_CITY
+ setvar VAR_TEMP_1, 1
+ end
+
+MossdeepCity_EventScript_14D011:: @ 814D011
+ lock
+ faceplayer
+ msgbox MossdeepCity_Text_16944E, 4
+ applymovement LAST_TALKED, MossdeepCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+MossdeepCity_EventScript_14D027:: @ 814D027
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_KINGS_ROCK, MossdeepCity_EventScript_14D069
+ msgbox MossdeepCity_Text_1690A9, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq MossdeepCity_EventScript_14D073
+ msgbox MossdeepCity_Text_169117, 4
+ giveitem_std ITEM_KINGS_ROCK
+ compare RESULT, 0
+ goto_if_eq MossdeepCity_EventScript_1A029B
+ setflag FLAG_RECEIVED_KINGS_ROCK
+ release
+ end
+
+MossdeepCity_EventScript_14D069:: @ 814D069
+ msgbox MossdeepCity_Text_16916F, 4
+ release
+ end
+
+MossdeepCity_EventScript_14D073:: @ 814D073
+ msgbox MossdeepCity_Text_1691A7, 4
+ release
+ end
diff --git a/data/maps/MossdeepCity_GameCorner_1F/scripts.inc b/data/maps/MossdeepCity_GameCorner_1F/scripts.inc
new file mode 100644
index 000000000..4d9989d82
--- /dev/null
+++ b/data/maps/MossdeepCity_GameCorner_1F/scripts.inc
@@ -0,0 +1,186 @@
+MossdeepCity_GameCorner_1F_MapScripts:: @ 815AC52
+ map_script 1, MossdeepCity_GameCorner_1F_MapScript1_15AC62
+ map_script 3, MossdeepCity_GameCorner_1F_MapScript1_15AC84
+ map_script 2, MossdeepCity_GameCorner_1F_MapScript2_15ACBB
+ .byte 0
+
+MossdeepCity_GameCorner_1F_MapScript1_15AC62:: @ 815AC62
+ special ValidateEReaderTrainer
+ compare RESULT, 1
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_15AC71
+ end
+
+MossdeepCity_GameCorner_1F_EventScript_15AC71:: @ 815AC71
+ setmetatile 3, 0, 653, 1
+ setmetatile 3, 1, 661, 1
+ return
+
+MossdeepCity_GameCorner_1F_MapScript1_15AC84:: @ 815AC84
+ special ValidateEReaderTrainer
+ compare RESULT, 0
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_15AC9E
+ compare VAR_GAME_CORNER_STATE, 0
+ call_if_ne MossdeepCity_GameCorner_1F_EventScript_15ACAF
+ end
+
+MossdeepCity_GameCorner_1F_EventScript_15AC9E:: @ 815AC9E
+ setvar VAR_TEMP_1, 1
+ setobjectxyperm 1, 3, 2
+ setobjectmovementtype 1, 8
+ return
+
+MossdeepCity_GameCorner_1F_EventScript_15ACAF:: @ 815ACAF
+ setobjectxyperm 1, 2, 2
+ setobjectmovementtype 1, 10
+ return
+
+MossdeepCity_GameCorner_1F_MapScript2_15ACBB:: @ 815ACBB
+ map_script_2 VAR_GAME_CORNER_STATE, 1, MossdeepCity_GameCorner_1F_EventScript_15ACD5
+ map_script_2 VAR_GAME_CORNER_STATE, 2, MossdeepCity_GameCorner_1F_EventScript_15ACD5
+ map_script_2 VAR_GAME_CORNER_STATE, 3, MossdeepCity_GameCorner_1F_EventScript_15ACD5
+ .2byte 0
+
+MossdeepCity_GameCorner_1F_EventScript_15ACD5:: @ 815ACD5
+ lockall
+ applymovement 255, MossdeepCity_GameCorner_1F_Movement_15AD3D
+ waitmovement 0
+ applymovement 1, MossdeepCity_GameCorner_1F_Movement_15AD3F
+ waitmovement 0
+ moveobjectoffscreen 1
+ applymovement 255, MossdeepCity_GameCorner_1F_Movement_1A0841
+ waitmovement 0
+ compare VAR_GAME_CORNER_STATE, 1
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_15AD22
+ compare VAR_GAME_CORNER_STATE, 2
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_15AD2B
+ compare VAR_GAME_CORNER_STATE, 3
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_15AD34
+ special LoadPlayerParty
+ setvar VAR_GAME_CORNER_STATE, 0
+ releaseall
+ end
+
+MossdeepCity_GameCorner_1F_EventScript_15AD22:: @ 815AD22
+ msgbox MossdeepCity_GameCorner_1F_Text_18E80E, 4
+ return
+
+MossdeepCity_GameCorner_1F_EventScript_15AD2B:: @ 815AD2B
+ msgbox MossdeepCity_GameCorner_1F_Text_18E859, 4
+ return
+
+MossdeepCity_GameCorner_1F_EventScript_15AD34:: @ 815AD34
+ msgbox MossdeepCity_GameCorner_1F_Text_18E7B1, 4
+ return
+
+MossdeepCity_GameCorner_1F_Movement_15AD3D:: @ 815AD3D
+ walk_down
+ end_movement
+
+MossdeepCity_GameCorner_1F_Movement_15AD3F:: @ 815AD3F
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+MossdeepCity_GameCorner_1F_EventScript_15AD42:: @ 815AD42
+ lock
+ faceplayer
+ compare VAR_TEMP_1, 1
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_15AD59
+ msgbox MossdeepCity_GameCorner_1F_Text_18E59A, 4
+ release
+ end
+
+MossdeepCity_GameCorner_1F_EventScript_15AD59:: @ 815AD59
+ special SavePlayerParty
+ special BufferEReaderTrainerName
+ msgbox MossdeepCity_GameCorner_1F_Text_18E650, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_15ADE8
+ call MossdeepCity_GameCorner_1F_EventScript_15ADF5
+ compare RESULT, 0
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_15ADE8
+ msgbox MossdeepCity_GameCorner_1F_Text_18E741, MSGBOX_YESNO
+ compare RESULT, NO
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_15ADE8
+ special LoadPlayerParty
+ call S_DoSaveDialog
+ compare RESULT, 0
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_15ADE8
+ erasebox 0, 0, 15, 10
+ special SavePlayerParty
+ special ReducePlayerPartyToThree
+ msgbox MossdeepCity_GameCorner_1F_Text_18E777, 4
+ closemessage
+ compare FACING, 2
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_15AE04
+ compare FACING, 4
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_15AE16
+ compare FACING, 3
+ call_if_eq MossdeepCity_GameCorner_1F_EventScript_15AE28
+ warp MAP_MOSSDEEP_CITY_GAME_CORNER_B1F, 255, 3, 1
+ waitstate
+ release
+ end
+
+MossdeepCity_GameCorner_1F_EventScript_15ADE8:: @ 815ADE8
+ special LoadPlayerParty
+ msgbox MossdeepCity_GameCorner_1F_Text_18E698, 4
+ release
+ end
+
+MossdeepCity_GameCorner_1F_EventScript_15ADF5:: @ 815ADF5
+ msgbox MossdeepCity_GameCorner_1F_Text_18E6DA, 4
+ fadescreen 1
+ special sub_80C5568
+ waitstate
+ return
+
+MossdeepCity_GameCorner_1F_EventScript_15AE04:: @ 815AE04
+ applymovement LAST_TALKED, MossdeepCity_GameCorner_1F_Movement_15AE46
+ applymovement 255, MossdeepCity_GameCorner_1F_Movement_15AE3A
+ waitmovement 0
+ return
+
+MossdeepCity_GameCorner_1F_EventScript_15AE16:: @ 815AE16
+ applymovement LAST_TALKED, MossdeepCity_GameCorner_1F_Movement_15AE49
+ applymovement 255, MossdeepCity_GameCorner_1F_Movement_15AE3E
+ waitmovement 0
+ return
+
+MossdeepCity_GameCorner_1F_EventScript_15AE28:: @ 815AE28
+ applymovement LAST_TALKED, MossdeepCity_GameCorner_1F_Movement_15AE46
+ applymovement 255, MossdeepCity_GameCorner_1F_Movement_15AE42
+ waitmovement 0
+ return
+
+MossdeepCity_GameCorner_1F_Movement_15AE3A:: @ 815AE3A
+ delay_16
+ walk_up
+ walk_up
+ end_movement
+
+MossdeepCity_GameCorner_1F_Movement_15AE3E:: @ 815AE3E
+ delay_16
+ walk_right
+ walk_up
+ end_movement
+
+MossdeepCity_GameCorner_1F_Movement_15AE42:: @ 815AE42
+ delay_16
+ walk_left
+ walk_up
+ end_movement
+
+MossdeepCity_GameCorner_1F_Movement_15AE46:: @ 815AE46
+ walk_left
+ walk_in_place_fastest_right
+ end_movement
+
+MossdeepCity_GameCorner_1F_Movement_15AE49:: @ 815AE49
+ walk_right
+ walk_in_place_fastest_left
+ end_movement
+
+MossdeepCity_GameCorner_1F_EventScript_15AE4C:: @ 815AE4C
+ msgbox MossdeepCity_GameCorner_1F_Text_18E631, 3
+ end
diff --git a/data/maps/MossdeepCity_GameCorner_B1F/scripts.inc b/data/maps/MossdeepCity_GameCorner_B1F/scripts.inc
new file mode 100644
index 000000000..0af775590
--- /dev/null
+++ b/data/maps/MossdeepCity_GameCorner_B1F/scripts.inc
@@ -0,0 +1,77 @@
+MossdeepCity_GameCorner_B1F_MapScripts:: @ 815AE55
+ map_script 3, MossdeepCity_GameCorner_B1F_MapScript1_15AE60
+ map_script 2, MossdeepCity_GameCorner_B1F_MapScript2_15AE64
+ .byte 0
+
+MossdeepCity_GameCorner_B1F_MapScript1_15AE60:: @ 815AE60
+ special SetEReaderTrainerGfxId
+ end
+
+MossdeepCity_GameCorner_B1F_MapScript2_15AE64:: @ 815AE64
+ map_script_2 VAR_TEMP_1, 0, MossdeepCity_GameCorner_B1F_EventScript_15AE6E
+ .2byte 0
+
+MossdeepCity_GameCorner_B1F_EventScript_15AE6E:: @ 815AE6E
+ lockall
+ applymovement 255, MossdeepCity_GameCorner_B1F_Movement_15AEF9
+ waitmovement 0
+ special PrintEReaderTrainerGreeting
+ msgbox gStringVar4, 4
+ closemessage
+ setvar VAR_SPECIAL_4, 2
+ setvar VAR_SPECIAL_5, 0
+ special StartSpecialBattle
+ waitstate
+ compare RESULT, 3
+ call_if_eq MossdeepCity_GameCorner_B1F_EventScript_15AED5
+ compare RESULT, 1
+ call_if_eq MossdeepCity_GameCorner_B1F_EventScript_15AEE3
+ compare RESULT, 2
+ call_if_eq MossdeepCity_GameCorner_B1F_EventScript_15AEEE
+ closemessage
+ special ScrSpecial_HealPlayerParty
+ applymovement 255, MossdeepCity_GameCorner_B1F_Movement_15AEFF
+ waitmovement 0
+ special LoadPlayerParty
+ setvar VAR_TEMP_1, 1
+ warp MAP_MOSSDEEP_CITY_GAME_CORNER_1F, 255, 3, 1
+ waitstate
+ releaseall
+ end
+
+MossdeepCity_GameCorner_B1F_EventScript_15AED5:: @ 815AED5
+ setvar VAR_GAME_CORNER_STATE, 3
+ msgbox MossdeepCity_GameCorner_B1F_Text_18E796, 4
+ return
+
+MossdeepCity_GameCorner_B1F_EventScript_15AEE3:: @ 815AEE3
+ setvar VAR_GAME_CORNER_STATE, 1
+ special ShowFieldMessageStringVar4
+ waitmessage
+ waitbuttonpress
+ return
+
+MossdeepCity_GameCorner_B1F_EventScript_15AEEE:: @ 815AEEE
+ setvar VAR_GAME_CORNER_STATE, 2
+ special ShowFieldMessageStringVar4
+ waitmessage
+ waitbuttonpress
+ return
+
+MossdeepCity_GameCorner_B1F_Movement_15AEF9:: @ 815AEF9
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ end_movement
+
+MossdeepCity_GameCorner_B1F_Movement_15AEFF:: @ 815AEFF
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ end_movement
diff --git a/data/maps/MossdeepCity_Gym/scripts.inc b/data/maps/MossdeepCity_Gym/scripts.inc
new file mode 100644
index 000000000..a17d09e10
--- /dev/null
+++ b/data/maps/MossdeepCity_Gym/scripts.inc
@@ -0,0 +1,239 @@
+MossdeepCity_Gym_MapScripts:: @ 815A4D3
+ map_script 1, MossdeepCity_Gym_MapScript1_15A4D9
+ .byte 0
+
+MossdeepCity_Gym_MapScript1_15A4D9:: @ 815A4D9
+ goto_if_set FLAG_MOSSDEEP_GYM_SWITCH_1, MossdeepCity_Gym_EventScript_15A510
+ goto MossdeepCity_Gym_EventScript_15A4E8
+ end
+
+MossdeepCity_Gym_EventScript_15A4E8:: @ 815A4E8
+ goto_if_set FLAG_MOSSDEEP_GYM_SWITCH_2, MossdeepCity_Gym_EventScript_15A528
+ goto MossdeepCity_Gym_EventScript_15A4F7
+ end
+
+MossdeepCity_Gym_EventScript_15A4F7:: @ 815A4F7
+ goto_if_set FLAG_MOSSDEEP_GYM_SWITCH_3, MossdeepCity_Gym_EventScript_15A540
+ goto MossdeepCity_Gym_EventScript_15A506
+ end
+
+MossdeepCity_Gym_EventScript_15A506:: @ 815A506
+ goto_if_set FLAG_MOSSDEEP_GYM_SWITCH_4, MossdeepCity_Gym_EventScript_15A558
+ end
+
+MossdeepCity_Gym_EventScript_15A510:: @ 815A510
+ setmetatile 5, 5, 516, 0
+ setmetatile 2, 7, 569, 1
+ goto MossdeepCity_Gym_EventScript_15A4E8
+ end
+
+MossdeepCity_Gym_EventScript_15A528:: @ 815A528
+ setmetatile 8, 14, 516, 0
+ setmetatile 8, 10, 569, 1
+ goto MossdeepCity_Gym_EventScript_15A4F7
+ end
+
+MossdeepCity_Gym_EventScript_15A540:: @ 815A540
+ setmetatile 15, 17, 524, 0
+ setmetatile 17, 15, 569, 1
+ goto MossdeepCity_Gym_EventScript_15A506
+ end
+
+MossdeepCity_Gym_EventScript_15A558:: @ 815A558
+ setmetatile 1, 23, 525, 0
+ setmetatile 5, 24, 569, 1
+ end
+
+MossdeepCity_Gym_EventScript_15A56B:: @ 815A56B
+ trainerbattle 8, OPPONENT_TATE_AND_LIZA, 0, MossdeepCity_Gym_Text_18CF02, MossdeepCity_Gym_Text_18D077, MossdeepCity_Gym_Text_18D324, MossdeepCity_Gym_EventScript_15A594
+ goto_if_unset FLAG_RECEIVED_TM04, MossdeepCity_Gym_EventScript_15A5C6
+ msgbox MossdeepCity_Gym_Text_18D273, 4
+ release
+ end
+
+MossdeepCity_Gym_EventScript_15A594:: @ 815A594
+ message MossdeepCity_Gym_Text_18D0F9
+ waitmessage
+ call MossdeepCity_Gym_EventScript_1A02C5
+ msgbox MossdeepCity_Gym_Text_18D128, 4
+ setflag FLAG_DEFEATED_MOSSDEEP_GYM
+ setflag FLAG_BADGE07_GET
+ clearflag FLAG_HIDE_BRINEY_SLATEPORT_SHIPYARD
+ clearflag FLAG_UNKNOWN_393
+ setvar VAR_SPECIAL_8, 7
+ call MossdeepCity_Gym_EventScript_1A01C0
+ clearflag FLAG_HIDE_WORKERS_SLATEPORT_HARBOR
+ goto MossdeepCity_Gym_EventScript_15A5C6
+ end
+
+MossdeepCity_Gym_EventScript_15A5C6:: @ 815A5C6
+ giveitem_std ITEM_TM04_CALM_MIND
+ compare RESULT, 0
+ goto_if_eq MossdeepCity_Gym_EventScript_1A029B
+ msgbox MossdeepCity_Gym_Text_18D1CF, 4
+ setflag FLAG_RECEIVED_TM04
+ release
+ end
+
+MossdeepCity_Gym_EventScript_15A5EA:: @ 815A5EA
+ lockall
+ goto_if_set FLAG_MOSSDEEP_GYM_SWITCH_1, MossdeepCity_Gym_EventScript_15A621
+ setflag FLAG_MOSSDEEP_GYM_SWITCH_1
+ applymovement 255, MossdeepCity_Gym_Movement_15A7F7
+ waitmovement 0
+ setmetatile 5, 5, 516, 0
+ setmetatile 2, 7, 569, 1
+ goto MossdeepCity_Gym_EventScript_15A619
+ end
+
+MossdeepCity_Gym_EventScript_15A619:: @ 815A619
+ special DrawWholeMapView
+ playse SE_TK_KASYA
+ releaseall
+ end
+
+MossdeepCity_Gym_EventScript_15A621:: @ 815A621
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_1
+ applymovement 255, MossdeepCity_Gym_Movement_15A7F7
+ waitmovement 0
+ setmetatile 5, 5, 524, 0
+ setmetatile 2, 7, 568, 1
+ goto MossdeepCity_Gym_EventScript_15A619
+ end
+
+MossdeepCity_Gym_EventScript_15A646:: @ 815A646
+ lockall
+ goto_if_set FLAG_MOSSDEEP_GYM_SWITCH_2, MossdeepCity_Gym_EventScript_15A675
+ setflag FLAG_MOSSDEEP_GYM_SWITCH_2
+ applymovement 255, MossdeepCity_Gym_Movement_15A7F7
+ waitmovement 0
+ setmetatile 8, 14, 516, 0
+ setmetatile 8, 10, 569, 1
+ goto MossdeepCity_Gym_EventScript_15A619
+ end
+
+MossdeepCity_Gym_EventScript_15A675:: @ 815A675
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_2
+ applymovement 255, MossdeepCity_Gym_Movement_15A7F7
+ waitmovement 0
+ setmetatile 8, 14, 517, 0
+ setmetatile 8, 10, 568, 1
+ goto MossdeepCity_Gym_EventScript_15A619
+ end
+
+MossdeepCity_Gym_EventScript_15A69A:: @ 815A69A
+ lockall
+ goto_if_set FLAG_MOSSDEEP_GYM_SWITCH_3, MossdeepCity_Gym_EventScript_15A6C9
+ setflag FLAG_MOSSDEEP_GYM_SWITCH_3
+ applymovement 255, MossdeepCity_Gym_Movement_15A7F7
+ waitmovement 0
+ setmetatile 15, 17, 524, 0
+ setmetatile 17, 15, 569, 1
+ goto MossdeepCity_Gym_EventScript_15A619
+ end
+
+MossdeepCity_Gym_EventScript_15A6C9:: @ 815A6C9
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_3
+ applymovement 255, MossdeepCity_Gym_Movement_15A7F7
+ waitmovement 0
+ setmetatile 15, 17, 516, 0
+ setmetatile 17, 15, 568, 1
+ goto MossdeepCity_Gym_EventScript_15A619
+ end
+
+MossdeepCity_Gym_EventScript_15A6EE:: @ 815A6EE
+ lockall
+ goto_if_set FLAG_MOSSDEEP_GYM_SWITCH_4, MossdeepCity_Gym_EventScript_15A71D
+ setflag FLAG_MOSSDEEP_GYM_SWITCH_4
+ applymovement 255, MossdeepCity_Gym_Movement_15A7F7
+ waitmovement 0
+ setmetatile 1, 23, 525, 0
+ setmetatile 5, 24, 569, 1
+ goto MossdeepCity_Gym_EventScript_15A619
+ end
+
+MossdeepCity_Gym_EventScript_15A71D:: @ 815A71D
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_4
+ applymovement 255, MossdeepCity_Gym_Movement_15A7F7
+ waitmovement 0
+ setmetatile 1, 23, 516, 0
+ setmetatile 5, 24, 568, 1
+ goto MossdeepCity_Gym_EventScript_15A619
+ end
+
+MossdeepCity_Gym_EventScript_15A742:: @ 815A742
+ lockall
+ warpteleport MAP_MOSSDEEP_CITY_GYM, 255, 14, 29
+ waitstate
+ releaseall
+ end
+
+MossdeepCity_Gym_EventScript_15A74E:: @ 815A74E
+ trainerbattle 0, OPPONENT_PRESTON, 0, MossdeepCity_Gym_Text_18C96A, MossdeepCity_Gym_Text_18C9BA
+ msgbox MossdeepCity_Gym_Text_18C9E1, 6
+ end
+
+MossdeepCity_Gym_EventScript_15A765:: @ 815A765
+ trainerbattle 0, OPPONENT_VIRGIL, 0, MossdeepCity_Gym_Text_18CA10, MossdeepCity_Gym_Text_18CA28
+ msgbox MossdeepCity_Gym_Text_18CA48, 6
+ end
+
+MossdeepCity_Gym_EventScript_15A77C:: @ 815A77C
+ trainerbattle 0, OPPONENT_FRITZ, 0, MossdeepCity_Gym_Text_18CAC0, MossdeepCity_Gym_Text_18CB46
+ msgbox MossdeepCity_Gym_Text_18CB77, 6
+ end
+
+MossdeepCity_Gym_EventScript_15A793:: @ 815A793
+ trainerbattle 0, OPPONENT_HANNAH, 0, MossdeepCity_Gym_Text_18CC1E, MossdeepCity_Gym_Text_18CC83
+ msgbox MossdeepCity_Gym_Text_18CC9B, 6
+ end
+
+MossdeepCity_Gym_EventScript_15A7AA:: @ 815A7AA
+ trainerbattle 0, OPPONENT_SAMANTHA, 0, MossdeepCity_Gym_Text_18CD14, MossdeepCity_Gym_Text_18CD66
+ msgbox MossdeepCity_Gym_Text_18CD73, 6
+ end
+
+MossdeepCity_Gym_EventScript_15A7C1:: @ 815A7C1
+ trainerbattle 0, OPPONENT_MAURA, 0, MossdeepCity_Gym_Text_18CDE0, MossdeepCity_Gym_Text_18CE47
+ msgbox MossdeepCity_Gym_Text_18CE6C, 6
+ end
+
+MossdeepCity_Gym_EventScript_15A7D8:: @ 815A7D8
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_MOSSDEEP_GYM, MossdeepCity_Gym_EventScript_15A7ED
+ msgbox MossdeepCity_Gym_Text_18C7E3, 4
+ release
+ end
+
+MossdeepCity_Gym_EventScript_15A7ED:: @ 815A7ED
+ msgbox MossdeepCity_Gym_Text_18C938, 4
+ release
+ end
+
+MossdeepCity_Gym_Movement_15A7F7:: @ 815A7F7
+ delay_16
+ delay_16
+ end_movement
+
+MossdeepCity_Gym_EventScript_15A7FA:: @ 815A7FA
+ lockall
+ goto_if_set FLAG_BADGE07_GET, MossdeepCity_Gym_EventScript_15A81A
+ goto MossdeepCity_Gym_EventScript_15A824
+ end
+
+MossdeepCity_Gym_EventScript_15A80A:: @ 815A80A
+ lockall
+ goto_if_set FLAG_BADGE07_GET, MossdeepCity_Gym_EventScript_15A81A
+ goto MossdeepCity_Gym_EventScript_15A824
+ end
+
+MossdeepCity_Gym_EventScript_15A81A:: @ 815A81A
+ msgbox MossdeepCity_Gym_Text_18D424, 4
+ releaseall
+ end
+
+MossdeepCity_Gym_EventScript_15A824:: @ 815A824
+ msgbox MossdeepCity_Gym_Text_18D40A, 4
+ releaseall
+ end
diff --git a/data/maps/MossdeepCity_House1/scripts.inc b/data/maps/MossdeepCity_House1/scripts.inc
new file mode 100644
index 000000000..97a5fc452
--- /dev/null
+++ b/data/maps/MossdeepCity_House1/scripts.inc
@@ -0,0 +1,23 @@
+MossdeepCity_House1_MapScripts:: @ 815A82E
+ .byte 0
+
+MossdeepCity_House1_EventScript_15A82F:: @ 815A82F
+ lock
+ faceplayer
+ bufferleadmonspeciesname 0
+ msgbox MossdeepCity_House1_Text_18D465, 4
+ specialvar RESULT, GetPokeblockNameByMonNature
+ compare RESULT, 0
+ goto_if_eq MossdeepCity_House1_EventScript_15A855
+ msgbox MossdeepCity_House1_Text_18D475, 4
+ release
+ end
+
+MossdeepCity_House1_EventScript_15A855:: @ 815A855
+ msgbox MossdeepCity_House1_Text_18D4C0, 4
+ release
+ end
+
+MossdeepCity_House1_EventScript_15A85F:: @ 815A85F
+ msgbox MossdeepCity_House1_Text_18D4F1, 2
+ end
diff --git a/data/maps/MossdeepCity_House2/scripts.inc b/data/maps/MossdeepCity_House2/scripts.inc
new file mode 100644
index 000000000..c8bccdd52
--- /dev/null
+++ b/data/maps/MossdeepCity_House2/scripts.inc
@@ -0,0 +1,54 @@
+MossdeepCity_House2_MapScripts:: @ 815A868
+ .byte 0
+
+MossdeepCity_House2_EventScript_15A869:: @ 815A869
+ msgbox MossdeepCity_House2_Text_18D536, 2
+ end
+
+MossdeepCity_House2_EventScript_15A872:: @ 815A872
+ msgbox MossdeepCity_House2_Text_18D596, 2
+ end
+
+MossdeepCity_House2_EventScript_15A87B:: @ 815A87B
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_WINGULL, 0
+ msgbox MossdeepCity_House2_Text_18D61E, 4
+ waitmoncry
+ closemessage
+ setflag FLAG_WINGULL_DELIVERED_MAIL
+ clearflag FLAG_HIDE_WINGULL_FORTREE_HOUSE
+ compare FACING, 2
+ call_if_eq MossdeepCity_House2_EventScript_15A8AE
+ compare FACING, 3
+ call_if_eq MossdeepCity_House2_EventScript_15A8B9
+ removeobject 3
+ release
+ end
+
+MossdeepCity_House2_EventScript_15A8AE:: @ 815A8AE
+ applymovement 3, MossdeepCity_House2_Movement_15A8C4
+ waitmovement 0
+ return
+
+MossdeepCity_House2_EventScript_15A8B9:: @ 815A8B9
+ applymovement 3, MossdeepCity_House2_Movement_15A8CB
+ waitmovement 0
+ return
+
+MossdeepCity_House2_Movement_15A8C4:: @ 815A8C4
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_fast_down
+ delay_8
+ end_movement
+
+MossdeepCity_House2_Movement_15A8CB:: @ 815A8CB
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ delay_8
+ end_movement
diff --git a/data/maps/MossdeepCity_House3/scripts.inc b/data/maps/MossdeepCity_House3/scripts.inc
new file mode 100644
index 000000000..4c4d6cbdd
--- /dev/null
+++ b/data/maps/MossdeepCity_House3/scripts.inc
@@ -0,0 +1,26 @@
+MossdeepCity_House3_MapScripts:: @ 815A971
+ .byte 0
+
+MossdeepCity_House3_EventScript_15A972:: @ 815A972
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_SUPER_ROD, MossdeepCity_House3_EventScript_15A9B1
+ msgbox MossdeepCity_House3_Text_18D909, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq MossdeepCity_House3_EventScript_15A9BB
+ msgbox MossdeepCity_House3_Text_18D9A9, 4
+ giveitem_std ITEM_SUPER_ROD
+ setflag FLAG_RECEIVED_SUPER_ROD
+ msgbox MossdeepCity_House3_Text_18D9E3, 4
+ release
+ end
+
+MossdeepCity_House3_EventScript_15A9B1:: @ 815A9B1
+ msgbox MossdeepCity_House3_Text_18DA44, 4
+ release
+ end
+
+MossdeepCity_House3_EventScript_15A9BB:: @ 815A9BB
+ msgbox MossdeepCity_House3_Text_18DA26, 4
+ release
+ end
diff --git a/data/maps/MossdeepCity_House4/scripts.inc b/data/maps/MossdeepCity_House4/scripts.inc
new file mode 100644
index 000000000..15ed22c5e
--- /dev/null
+++ b/data/maps/MossdeepCity_House4/scripts.inc
@@ -0,0 +1,41 @@
+MossdeepCity_House4_MapScripts:: @ 815AB30
+ .byte 0
+
+MossdeepCity_House4_EventScript_15AB31:: @ 815AB31
+ lock
+ faceplayer
+ goto_if_set FLAG_SYS_GAME_CLEAR, MossdeepCity_House4_EventScript_15AB46
+ msgbox MossdeepCity_House4_Text_18E0E3, 4
+ release
+ end
+
+MossdeepCity_House4_EventScript_15AB46:: @ 815AB46
+ msgbox MossdeepCity_House4_Text_18E125, 4
+ release
+ end
+
+MossdeepCity_House4_EventScript_15AB50:: @ 815AB50
+ lock
+ faceplayer
+ special CheckPlayerHasSecretBase
+ compare RESULT, 0
+ goto_if_eq MossdeepCity_House4_EventScript_15AB6D
+ special GetSecretBaseNearbyMapName
+ msgbox MossdeepCity_House4_Text_18E17E, 4
+ release
+ end
+
+MossdeepCity_House4_EventScript_15AB6D:: @ 815AB6D
+ msgbox MossdeepCity_House4_Text_18E1A7, 4
+ release
+ end
+
+MossdeepCity_House4_EventScript_15AB77:: @ 815AB77
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_SKITTY, 0
+ msgbox MossdeepCity_House4_Text_18E1E1, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/MossdeepCity_Mart/scripts.inc b/data/maps/MossdeepCity_Mart/scripts.inc
new file mode 100644
index 000000000..ce5845c81
--- /dev/null
+++ b/data/maps/MossdeepCity_Mart/scripts.inc
@@ -0,0 +1,39 @@
+MossdeepCity_Mart_MapScripts:: @ 815A925
+ .byte 0
+
+MossdeepCity_Mart_EventScript_15A926:: @ 815A926
+ lock
+ faceplayer
+ message MossdeepCity_Mart_Text_1A0BE4
+ waitmessage
+ pokemart MossdeepCity_Mart_Items
+ msgbox MossdeepCity_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+MossdeepCity_Mart_Items:: @ 815A940
+ .2byte ITEM_ULTRA_BALL
+ .2byte ITEM_NET_BALL
+ .2byte ITEM_DIVE_BALL
+ .2byte ITEM_HYPER_POTION
+ .2byte ITEM_FULL_HEAL
+ .2byte ITEM_REVIVE
+ .2byte ITEM_MAX_REPEL
+ .2byte ITEM_X_ATTACK
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_NONE
+ release
+ end
+
+MossdeepCity_Mart_EventScript_15A956:: @ 815A956
+ msgbox MossdeepCity_Mart_Text_18D758, 2
+ end
+
+MossdeepCity_Mart_EventScript_15A95F:: @ 815A95F
+ msgbox MossdeepCity_Mart_Text_18D7E7, 2
+ end
+
+MossdeepCity_Mart_EventScript_15A968:: @ 815A968
+ msgbox MossdeepCity_Mart_Text_18D841, 2
+ end
diff --git a/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc b/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..a722e666b
--- /dev/null
+++ b/data/maps/MossdeepCity_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,23 @@
+MossdeepCity_PokemonCenter_1F_MapScripts:: @ 815A8D0
+ map_script 3, MossdeepCity_PokemonCenter_1F_MapScript1_15A8D6
+ .byte 0
+
+MossdeepCity_PokemonCenter_1F_MapScript1_15A8D6:: @ 815A8D6
+ setrespawn 9
+ end
+
+MossdeepCity_PokemonCenter_1F_EventScript_15A8DA:: @ 815A8DA
+ setvar VAR_SPECIAL_B, 1
+ call MossdeepCity_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+MossdeepCity_PokemonCenter_1F_EventScript_15A8E8:: @ 815A8E8
+ msgbox MossdeepCity_PokemonCenter_1F_Text_18D62F, 2
+ end
+
+MossdeepCity_PokemonCenter_1F_EventScript_15A8F1:: @ 815A8F1
+ msgbox MossdeepCity_PokemonCenter_1F_Text_18D69A, 2
+ end
diff --git a/data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc b/data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..a88147c08
--- /dev/null
+++ b/data/maps/MossdeepCity_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,21 @@
+MossdeepCity_PokemonCenter_2F_MapScripts:: @ 815A8FA
+ map_script 2, MossdeepCity_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, MossdeepCity_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, MossdeepCity_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+MossdeepCity_PokemonCenter_2F_EventScript_15A90A:: @ 815A90A
+ msgbox MossdeepCity_PokemonCenter_2F_Text_18D6F5, 2
+ end
+
+MossdeepCity_PokemonCenter_2F_EventScript_15A913:: @ 815A913
+ call MossdeepCity_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+MossdeepCity_PokemonCenter_2F_EventScript_15A919:: @ 815A919
+ call MossdeepCity_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+MossdeepCity_PokemonCenter_2F_EventScript_15A91F:: @ 815A91F
+ call MossdeepCity_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc b/data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc
new file mode 100644
index 000000000..83b859c26
--- /dev/null
+++ b/data/maps/MossdeepCity_SpaceCenter_1F/scripts.inc
@@ -0,0 +1,62 @@
+MossdeepCity_SpaceCenter_1F_MapScripts:: @ 815AB8A
+ .byte 0
+
+MossdeepCity_SpaceCenter_1F_EventScript_15AB8B:: @ 815AB8B
+ lock
+ faceplayer
+ dodailyevents
+ specialvar RESULT, GetWeekCount
+ buffernumberstring 0, RESULT
+ compare RESULT, 0
+ call_if_eq MossdeepCity_SpaceCenter_1F_EventScript_15ABBA
+ compare RESULT, 1
+ call_if_ge MossdeepCity_SpaceCenter_1F_EventScript_15ABC3
+ closemessage
+ applymovement LAST_TALKED, MossdeepCity_SpaceCenter_1F_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+MossdeepCity_SpaceCenter_1F_EventScript_15ABBA:: @ 815ABBA
+ msgbox MossdeepCity_SpaceCenter_1F_Text_18E1F3, 4
+ return
+
+MossdeepCity_SpaceCenter_1F_EventScript_15ABC3:: @ 815ABC3
+ msgbox MossdeepCity_SpaceCenter_1F_Text_18E214, 4
+ return
+
+MossdeepCity_SpaceCenter_1F_EventScript_15ABCC:: @ 815ABCC
+ msgbox MossdeepCity_SpaceCenter_1F_Text_18E251, 2
+ end
+
+MossdeepCity_SpaceCenter_1F_EventScript_15ABD5:: @ 815ABD5
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_SUN_STONE_MOSSDEEP, MossdeepCity_SpaceCenter_1F_EventScript_15AC0C
+ msgbox MossdeepCity_SpaceCenter_1F_Text_18E335, 4
+ giveitem_std ITEM_SUN_STONE
+ compare RESULT, 0
+ goto_if_eq MossdeepCity_SpaceCenter_1F_EventScript_1A029B
+ setflag FLAG_RECEIVED_SUN_STONE_MOSSDEEP
+ msgbox MossdeepCity_SpaceCenter_1F_Text_18E39B, 4
+ release
+ end
+
+MossdeepCity_SpaceCenter_1F_EventScript_15AC0C:: @ 815AC0C
+ msgbox MossdeepCity_SpaceCenter_1F_Text_18E39B, 4
+ release
+ end
+
+MossdeepCity_SpaceCenter_1F_EventScript_15AC16:: @ 815AC16
+ msgbox MossdeepCity_SpaceCenter_1F_Text_18E3E5, 2
+ end
+
+MossdeepCity_SpaceCenter_1F_EventScript_15AC1F:: @ 815AC1F
+ lock
+ faceplayer
+ msgbox MossdeepCity_SpaceCenter_1F_Text_18E427, 4
+ closemessage
+ applymovement LAST_TALKED, MossdeepCity_SpaceCenter_1F_Movement_1A083D
+ waitmovement 0
+ release
+ end
diff --git a/data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc b/data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc
new file mode 100644
index 000000000..97467f4e5
--- /dev/null
+++ b/data/maps/MossdeepCity_SpaceCenter_2F/scripts.inc
@@ -0,0 +1,14 @@
+MossdeepCity_SpaceCenter_2F_MapScripts:: @ 815AC36
+ .byte 0
+
+MossdeepCity_SpaceCenter_2F_EventScript_15AC37:: @ 815AC37
+ msgbox MossdeepCity_SpaceCenter_2F_Text_18E483, 2
+ end
+
+MossdeepCity_SpaceCenter_2F_EventScript_15AC40:: @ 815AC40
+ msgbox MossdeepCity_SpaceCenter_2F_Text_18E4EE, 2
+ end
+
+MossdeepCity_SpaceCenter_2F_EventScript_15AC49:: @ 815AC49
+ msgbox MossdeepCity_SpaceCenter_2F_Text_18E564, 2
+ end
diff --git a/data/maps/MossdeepCity_StevensHouse/scripts.inc b/data/maps/MossdeepCity_StevensHouse/scripts.inc
new file mode 100644
index 000000000..d415e7fc9
--- /dev/null
+++ b/data/maps/MossdeepCity_StevensHouse/scripts.inc
@@ -0,0 +1,128 @@
+MossdeepCity_StevensHouse_MapScripts:: @ 815A9C5
+ map_script 1, MossdeepCity_StevensHouse_MapScript1_15A9D5
+ map_script 3, MossdeepCity_StevensHouse_MapScript1_15A9E9
+ map_script 2, MossdeepCity_StevensHouse_MapScript2_15AA01
+ .byte 0
+
+MossdeepCity_StevensHouse_MapScript1_15A9D5:: @ 815A9D5
+ call_if_unset FLAG_SYS_GAME_CLEAR, MossdeepCity_StevensHouse_EventScript_15A9DF
+ end
+
+MossdeepCity_StevensHouse_EventScript_15A9DF:: @ 815A9DF
+ setmetatile 6, 4, 753, 1
+ return
+
+MossdeepCity_StevensHouse_MapScript1_15A9E9:: @ 815A9E9
+ compare VAR_STEVENS_HOUSE_STATE, 1
+ call_if_eq MossdeepCity_StevensHouse_EventScript_15A9F5
+ end
+
+MossdeepCity_StevensHouse_EventScript_15A9F5:: @ 815A9F5
+ setobjectxyperm 1, 6, 5
+ setobjectmovementtype 1, 7
+ return
+
+MossdeepCity_StevensHouse_MapScript2_15AA01:: @ 815AA01
+ map_script_2 VAR_STEVENS_HOUSE_STATE, 0, MossdeepCity_StevensHouse_EventScript_15AA0B
+ .2byte 0
+
+MossdeepCity_StevensHouse_EventScript_15AA0B:: @ 815AA0B
+ lockall
+ applymovement 1, MossdeepCity_StevensHouse_Movement_1A083F
+ waitmovement 0
+ playse SE_PIN
+ applymovement 1, MossdeepCity_StevensHouse_Movement_1A0833
+ waitmovement 0
+ applymovement 1, MossdeepCity_StevensHouse_Movement_1A0835
+ waitmovement 0
+ applymovement 1, MossdeepCity_StevensHouse_Movement_15AA6E
+ waitmovement 0
+ msgbox MossdeepCity_StevensHouse_Text_18DA77, 4
+ giveitem_std ITEM_HM08_DIVE
+ setflag FLAG_RECEIVED_HM08
+ setflag FLAG_OMIT_DIVE_FROM_STEVEN_LETTER
+ msgbox MossdeepCity_StevensHouse_Text_18DB22, 4
+ closemessage
+ delay 20
+ applymovement 1, MossdeepCity_StevensHouse_Movement_15AA76
+ waitmovement 0
+ setvar VAR_STEVENS_HOUSE_STATE, 1
+ releaseall
+ end
+
+MossdeepCity_StevensHouse_Movement_15AA6E:: @ 815AA6E
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+MossdeepCity_StevensHouse_Movement_15AA76:: @ 815AA76
+ walk_up
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+MossdeepCity_StevensHouse_EventScript_15AA7C:: @ 815AA7C
+ lockall
+ msgbox MossdeepCity_StevensHouse_Text_18DD12, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq MossdeepCity_StevensHouse_EventScript_15AAE6
+ getpartysize
+ compare RESULT, 6
+ goto_if_eq MossdeepCity_StevensHouse_EventScript_15AADC
+ copyvar VAR_SPECIAL_4, RESULT
+ removeobject 2
+ playfanfare BGM_FANFA4
+ message MossdeepCity_StevensHouse_Text_18DD61
+ waitfanfare
+ waitmessage
+ givemon SPECIES_BELDUM, 5, ITEM_NONE, 0x0, 0x0, 0
+ bufferspeciesname 1, SPECIES_BELDUM
+ msgbox MossdeepCity_StevensHouse_Text_1A1102, MSGBOX_YESNO
+ compare RESULT, YES
+ call_if_eq MossdeepCity_StevensHouse_EventScript_1A0678
+ setflag FLAG_HIDE_BELDUM_BALL_STEVENS_HOUSE
+ setflag FLAG_RECEIVED_BELDUM
+ releaseall
+ end
+
+MossdeepCity_StevensHouse_EventScript_15AADC:: @ 815AADC
+ msgbox MossdeepCity_StevensHouse_Text_18DD77, 4
+ releaseall
+ end
+
+MossdeepCity_StevensHouse_EventScript_15AAE6:: @ 815AAE6
+ msgbox MossdeepCity_StevensHouse_Text_18DD9E, 4
+ releaseall
+ end
+
+MossdeepCity_StevensHouse_EventScript_15AAF0:: @ 815AAF0
+ msgbox MossdeepCity_StevensHouse_Text_18E0A3, 3
+ end
+
+MossdeepCity_StevensHouse_EventScript_15AAF9:: @ 815AAF9
+ msgbox MossdeepCity_StevensHouse_Text_18DC25, 2
+ end
+
+MossdeepCity_StevensHouse_EventScript_15AB02:: @ 815AB02
+ lockall
+ goto_if_set FLAG_OMIT_DIVE_FROM_STEVEN_LETTER, MossdeepCity_StevensHouse_EventScript_15AB16
+ msgbox MossdeepCity_StevensHouse_Text_18DF1A, 4
+ releaseall
+ end
+
+MossdeepCity_StevensHouse_EventScript_15AB16:: @ 815AB16
+ msgbox MossdeepCity_StevensHouse_Text_18DDC2, 4
+ releaseall
+ end
+
+MossdeepCity_StevensHouse_EventScript_15AB20:: @ 815AB20
+ giveitem_std ITEM_HM08_DIVE, 1, 1
+ setflag FLAG_RECEIVED_HM08
+ end
diff --git a/data/maps/MtChimney/scripts.inc b/data/maps/MtChimney/scripts.inc
new file mode 100644
index 000000000..f13850570
--- /dev/null
+++ b/data/maps/MtChimney/scripts.inc
@@ -0,0 +1,465 @@
+MtChimney_MapScripts:: @ 815CF7C
+ map_script 5, MtChimney_MapScript1_15CF92
+ map_script 3, MtChimney_MapScript1_15CF87
+ .byte 0
+
+MtChimney_MapScript1_15CF87:: @ 815CF87
+ setvar VAR_JAGGED_PASS_ASH_WEATHER, 1
+ call MtChimney_EventScript_1A0196
+ end
+
+MtChimney_MapScript1_15CF92:: @ 815CF92
+ setstepcallback 1
+ end
+
+MtChimney_EventScript_15CF95:: @ 815CF95
+ lock
+ faceplayer
+ showmoneybox 0, 0
+ nop
+ msgbox MtChimney_Text_195760, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq MtChimney_EventScript_15D00B
+ checkmoney 0xc8, 0
+ compare RESULT, 0
+ goto_if_eq MtChimney_EventScript_15D018
+ msgbox MtChimney_Text_1957A9, 4
+ checkitemspace ITEM_LAVA_COOKIE, 1
+ compare RESULT, 1
+ call_if_eq MtChimney_EventScript_15D000
+ giveitem_std ITEM_LAVA_COOKIE
+ compare RESULT, 0
+ goto_if_eq MtChimney_EventScript_15CFF3
+ hidemoneybox 0, 0
+ release
+ end
+
+MtChimney_EventScript_15CFF3:: @ 815CFF3
+ msgbox MtChimney_Text_1A0CC2, 4
+ hidemoneybox 0, 0
+ release
+ end
+
+MtChimney_EventScript_15D000:: @ 815D000
+ takemoney 0xc8, 0
+ updatemoneybox 0, 0
+ nop
+ return
+
+MtChimney_EventScript_15D00B:: @ 815D00B
+ msgbox MtChimney_Text_1957F7, 4
+ hidemoneybox 0, 0
+ release
+ end
+
+MtChimney_EventScript_15D018:: @ 815D018
+ msgbox MtChimney_Text_1957BA, 4
+ hidemoneybox 0, 0
+ release
+ end
+
+MtChimney_Movement_15D025:: @ 815D025
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_right
+ end_movement
+
+MtChimney_Movement_15D02D:: @ 815D02D
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+MtChimney_Movement_15D036:: @ 815D036
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_right
+ walk_right
+ end_movement
+
+MtChimney_Movement_15D03E:: @ 815D03E
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+@ 815D048
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ end_movement
+
+@ 815D05A
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ end_movement
+
+@ 815D063
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+@ 815D072
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ end_movement
+
+@ 815D08B
+ delay_16
+ delay_16
+ delay_16
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ end_movement
+
+@ 815D096
+ delay_16
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+@ 815D0A6
+ delay_16
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ end_movement
+
+@ 815D0B7
+ delay_16
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+@ 815D0BF
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+@ 815D0CD
+ walk_down
+ end_movement
+
+@ 815D0CF
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+@ 815D0D7
+ delay_16
+ delay_16
+ walk_in_place_fastest_left
+ delay_16
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+@ 815D0E1
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ walk_in_place_fastest_left
+ delay_16
+ walk_down
+ walk_down
+ end_movement
+
+@ 815D0EC
+ lock_facing_direction
+ walk_fast_left
+ unlock_facing_direction
+ face_right
+ end_movement
+
+@ 815D0F1
+ walk_left
+ walk_in_place_fastest_right
+ delay_16
+ end_movement
+
+MtChimney_EventScript_15D0F5:: @ 815D0F5
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B36F1, 3
+ .else
+ msgbox MtChimney_Text_1B40EA, 3
+ .endif
+ end
+
+MtChimney_EventScript_15D0FE:: @ 815D0FE
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B372E, 3
+ .else
+ msgbox MtChimney_Text_1B4128, 3
+ .endif
+ end
+
+MtChimney_EventScript_15D107:: @ 815D107
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B3778, 3
+ .else
+ msgbox MtChimney_Text_1B416E, 3
+ .endif
+ end
+
+MtChimney_EventScript_15D110:: @ 815D110
+ .ifdef SAPPHIRE
+ trainerbattle 0, OPPONENT_MT_CHIMNEY_GRUNT_1, 0, MtChimney_Text_1B3168, MtChimney_Text_1B31EA
+ msgbox MtChimney_Text_1B3239, 6
+ .else
+ trainerbattle 0, OPPONENT_MT_CHIMNEY_GRUNT_1, 0, MtChimney_Text_1B3B36, MtChimney_Text_1B3BB8
+ msgbox MtChimney_Text_1B3C07, 6
+ .endif
+ end
+
+MtChimney_EventScript_15D127:: @ 815D127
+ .ifdef SAPPHIRE
+ trainerbattle 0, OPPONENT_MT_CHIMNEY_GRUNT_2, 0, MtChimney_Text_1B32C8, MtChimney_Text_1B336E
+ msgbox MtChimney_Text_1B338D, 6
+ .else
+ trainerbattle 0, OPPONENT_MT_CHIMNEY_GRUNT_2, 0, MtChimney_Text_1B3C96, MtChimney_Text_1B3D1E
+ msgbox MtChimney_Text_1B3D3D, 6
+ .endif
+ end
+
+MtChimney_EventScript_15D13E:: @ 815D13E
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B33EA, 3
+ .else
+ msgbox MtChimney_Text_1B3D9A, 3
+ .endif
+ end
+
+@ 815D147
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B3427, 3
+ .else
+ msgbox MtChimney_Text_1B3DD6, 3
+ .endif
+ end
+
+MtChimney_EventScript_15D150:: @ 815D150
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B3446, 3
+ .else
+ msgbox MtChimney_Text_1B3DF5, 3
+ .endif
+ end
+
+MtChimney_EventScript_15D159:: @ 815D159
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B3470, 3
+ .else
+ msgbox MtChimney_Text_1B3E1F, 3
+ .endif
+ end
+
+MtChimney_EventScript_15D162:: @ 815D162
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B34C6, 3
+ .else
+ msgbox MtChimney_Text_1B3E7A, 3
+ .endif
+ end
+
+MtChimney_EventScript_15D16B:: @ 815D16B
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B3503, 3
+ .else
+ msgbox MtChimney_Text_1B3EBA, 3
+ .endif
+ end
+
+MtChimney_EventScript_15D174:: @ 815D174
+ .ifdef SAPPHIRE
+ msgbox MtChimney_Text_1B37B4, 3
+ .else
+ msgbox MtChimney_Text_1B41B0, 3
+ .endif
+ end
+
+MtChimney_EventScript_15D17D:: @ 815D17D
+ lockall
+ goto_if_unset FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY, MtChimney_EventScript_15D1D0
+ goto_if_set FLAG_RECEIVED_METEORITE, MtChimney_EventScript_15D1C6
+ msgbox MtChimney_Text_195870, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq MtChimney_EventScript_15D1BC
+ msgbox MtChimney_Text_1958C6, 4
+ giveitem_std ITEM_METEORITE
+ setflag FLAG_RECEIVED_METEORITE
+ releaseall
+ end
+
+MtChimney_EventScript_15D1BC:: @ 815D1BC
+ msgbox MtChimney_Text_1958FC, 4
+ releaseall
+ end
+
+MtChimney_EventScript_15D1C6:: @ 815D1C6
+ msgbox MtChimney_Text_195920, 4
+ releaseall
+ end
+
+MtChimney_EventScript_15D1D0:: @ 815D1D0
+ msgbox MtChimney_Text_195806, 4
+ releaseall
+ end
+
+MtChimney_EventScript_15D1DA:: @ 815D1DA
+ msgbox MtChimney_Text_19595C, 3
+ end
+
+MtChimney_EventScript_15D1E3:: @ 815D1E3
+ trainerbattle 0, OPPONENT_SHELBY_1, 0, MtChimney_Text_19597F, MtChimney_Text_1959D8
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq MtChimney_EventScript_15D20A
+ msgbox MtChimney_Text_195A04, 6
+ end
+
+MtChimney_EventScript_15D20A:: @ 815D20A
+ trainerbattle 5, OPPONENT_SHELBY_1, 0, MtChimney_Text_195A45, MtChimney_Text_195AAD
+ msgbox MtChimney_Text_195AD9, 6
+ end
+
+MtChimney_EventScript_15D221:: @ 815D221
+ trainerbattle 0, OPPONENT_MELISSA, 0, MtChimney_Text_195B1C, MtChimney_Text_195B5F
+ msgbox MtChimney_Text_195B84, 6
+ end
+
+MtChimney_EventScript_15D238:: @ 815D238
+ trainerbattle 0, OPPONENT_SHEILA, 0, MtChimney_Text_195BB2, MtChimney_Text_195BF9
+ msgbox MtChimney_Text_195C31, 6
+ end
+
+MtChimney_EventScript_15D24F:: @ 815D24F
+ trainerbattle 0, OPPONENT_SHIRLEY, 0, MtChimney_Text_195CD8, MtChimney_Text_195D2F
+ msgbox MtChimney_Text_195D5C, 6
+ end
diff --git a/data/maps/MtChimney_CableCarStation/scripts.inc b/data/maps/MtChimney_CableCarStation/scripts.inc
new file mode 100644
index 000000000..7161e8800
--- /dev/null
+++ b/data/maps/MtChimney_CableCarStation/scripts.inc
@@ -0,0 +1,87 @@
+MtChimney_CableCarStation_MapScripts:: @ 815C0FA
+ map_script 3, MtChimney_CableCarStation_MapScript1_15C105
+ map_script 2, MtChimney_CableCarStation_MapScript2_15C11D
+ .byte 0
+
+MtChimney_CableCarStation_MapScript1_15C105:: @ 815C105
+ compare VAR_CABLE_CAR_STATION_STATE, 1
+ call_if_eq MtChimney_CableCarStation_EventScript_15C111
+ end
+
+MtChimney_CableCarStation_EventScript_15C111:: @ 815C111
+ setobjectxyperm 1, 5, 4
+ setobjectmovementtype 1, 10
+ return
+
+MtChimney_CableCarStation_MapScript2_15C11D:: @ 815C11D
+ map_script_2 VAR_CABLE_CAR_STATION_STATE, 1, MtChimney_CableCarStation_EventScript_15C127
+ .2byte 0
+
+MtChimney_CableCarStation_EventScript_15C127:: @ 815C127
+ lockall
+ applymovement 255, MtChimney_CableCarStation_Movement_15C1B4
+ applymovement 1, MtChimney_CableCarStation_Movement_15C1AA
+ waitmovement 0
+ setvar VAR_CABLE_CAR_STATION_STATE, 0
+ setobjectxyperm 1, 6, 7
+ setobjectmovementtype 1, 8
+ releaseall
+ end
+
+MtChimney_CableCarStation_EventScript_15C14B:: @ 815C14B
+ lock
+ faceplayer
+ msgbox MtChimney_CableCarStation_Text_19256A, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq MtChimney_CableCarStation_EventScript_15C16C
+ compare RESULT, NO
+ goto_if_eq MtChimney_CableCarStation_EventScript_15C19B
+ end
+
+MtChimney_CableCarStation_EventScript_15C16C:: @ 815C16C
+ msgbox MtChimney_CableCarStation_Text_1925A9, 4
+ closemessage
+ applymovement 1, MtChimney_CableCarStation_Movement_15C1A5
+ applymovement 255, MtChimney_CableCarStation_Movement_15C1AF
+ waitmovement 0
+ setvar VAR_SPECIAL_4, 1
+ setvar VAR_CABLE_CAR_STATION_STATE, 2
+ incrementgamestat GAME_STAT_RODE_CABLE_CAR
+ special CableCarWarp
+ special CableCar
+ waitstate
+ release
+ end
+
+MtChimney_CableCarStation_EventScript_15C19B:: @ 815C19B
+ msgbox MtChimney_CableCarStation_Text_1925BF, 4
+ release
+ end
+
+MtChimney_CableCarStation_Movement_15C1A5:: @ 815C1A5
+ walk_up
+ walk_up
+ walk_left
+ walk_in_place_fastest_right
+ end_movement
+
+MtChimney_CableCarStation_Movement_15C1AA:: @ 815C1AA
+ delay_16
+ walk_right
+ walk_down
+ walk_down
+ end_movement
+
+MtChimney_CableCarStation_Movement_15C1AF:: @ 815C1AF
+ walk_up
+ walk_up
+ walk_up
+ delay_16
+ end_movement
+
+MtChimney_CableCarStation_Movement_15C1B4:: @ 815C1B4
+ walk_down
+ walk_down
+ walk_down
+ delay_16
+ end_movement
diff --git a/data/maps/MtPyre_1F/scripts.inc b/data/maps/MtPyre_1F/scripts.inc
new file mode 100644
index 000000000..f34c31da0
--- /dev/null
+++ b/data/maps/MtPyre_1F/scripts.inc
@@ -0,0 +1,27 @@
+MtPyre_1F_MapScripts:: @ 815D322
+ .byte 0
+
+MtPyre_1F_EventScript_15D323:: @ 815D323
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_CLEANSE_TAG, MtPyre_1F_EventScript_15D352
+ msgbox MtPyre_1F_Text_196151, 4
+ giveitem_std ITEM_CLEANSE_TAG
+ compare RESULT, 0
+ goto_if_eq MtPyre_1F_EventScript_1A029B
+ setflag FLAG_RECEIVED_CLEANSE_TAG
+ release
+ end
+
+MtPyre_1F_EventScript_15D352:: @ 815D352
+ msgbox MtPyre_1F_Text_1961CE, 4
+ release
+ end
+
+MtPyre_1F_EventScript_15D35C:: @ 815D35C
+ msgbox MtPyre_1F_Text_196218, 2
+ end
+
+MtPyre_1F_EventScript_15D365:: @ 815D365
+ msgbox MtPyre_1F_Text_196283, 2
+ end
diff --git a/data/maps/MtPyre_2F/scripts.inc b/data/maps/MtPyre_2F/scripts.inc
new file mode 100644
index 000000000..1d2368597
--- /dev/null
+++ b/data/maps/MtPyre_2F/scripts.inc
@@ -0,0 +1,33 @@
+MtPyre_2F_MapScripts:: @ 815D36E
+ map_script 2, MtPyre_2F_MapScript2_1C6BB5
+ map_script 3, MtPyre_2F_MapScript1_1C6BBF
+ map_script 5, MtPyre_2F_MapScript1_15D37E
+ .byte 0
+
+MtPyre_2F_MapScript1_15D37E:: @ 815D37E
+ setstepcallback 7
+ setholewarp MAP_MT_PYRE_1F, 255, 0, 0
+ end
+
+MtPyre_2F_EventScript_15D389:: @ 815D389
+ msgbox MtPyre_2F_Text_1965BB, 2
+ end
+
+MtPyre_2F_EventScript_15D392:: @ 815D392
+ msgbox MtPyre_2F_Text_196600, 2
+ end
+
+MtPyre_2F_EventScript_15D39B:: @ 815D39B
+ trainerbattle 0, OPPONENT_MARK, 0, MtPyre_2F_Text_196674, MtPyre_2F_Text_1966BE
+ msgbox MtPyre_2F_Text_1966E7, 6
+ end
+
+MtPyre_2F_EventScript_15D3B2:: @ 815D3B2
+ trainerbattle 4, OPPONENT_DEZ_AND_LUKE, 0, MtPyre_2F_Text_1962C6, MtPyre_2F_Text_196358, MtPyre_2F_Text_1963CB
+ msgbox MtPyre_2F_Text_196368, 6
+ end
+
+MtPyre_2F_EventScript_15D3CD:: @ 815D3CD
+ trainerbattle 4, OPPONENT_DEZ_AND_LUKE, 0, MtPyre_2F_Text_196449, MtPyre_2F_Text_1964EB, MtPyre_2F_Text_196539
+ msgbox MtPyre_2F_Text_196504, 6
+ end
diff --git a/data/maps/MtPyre_3F/scripts.inc b/data/maps/MtPyre_3F/scripts.inc
new file mode 100644
index 000000000..ea8bda7b5
--- /dev/null
+++ b/data/maps/MtPyre_3F/scripts.inc
@@ -0,0 +1,12 @@
+MtPyre_3F_MapScripts:: @ 815D3E8
+ .byte 0
+
+MtPyre_3F_EventScript_15D3E9:: @ 815D3E9
+ trainerbattle 0, OPPONENT_WILLIAM, 0, MtPyre_3F_Text_19672B, MtPyre_3F_Text_19679D
+ msgbox MtPyre_3F_Text_1967B5, 6
+ end
+
+MtPyre_3F_EventScript_15D400:: @ 815D400
+ trainerbattle 0, OPPONENT_KAYLA, 0, MtPyre_3F_Text_1967EF, MtPyre_3F_Text_19682B
+ msgbox MtPyre_3F_Text_196842, 6
+ end
diff --git a/data/maps/MtPyre_4F/scripts.inc b/data/maps/MtPyre_4F/scripts.inc
new file mode 100644
index 000000000..e1ebac7c1
--- /dev/null
+++ b/data/maps/MtPyre_4F/scripts.inc
@@ -0,0 +1,7 @@
+MtPyre_4F_MapScripts:: @ 815D417
+ .byte 0
+
+MtPyre_4F_EventScript_15D418:: @ 815D418
+ trainerbattle 0, OPPONENT_ATSUSHI, 0, MtPyre_4F_Text_1968A6, MtPyre_4F_Text_1968D0
+ msgbox MtPyre_4F_Text_1968EE, 6
+ end
diff --git a/data/maps/MtPyre_5F/scripts.inc b/data/maps/MtPyre_5F/scripts.inc
new file mode 100644
index 000000000..9adb249f0
--- /dev/null
+++ b/data/maps/MtPyre_5F/scripts.inc
@@ -0,0 +1,7 @@
+MtPyre_5F_MapScripts:: @ 815D42F
+ .byte 0
+
+MtPyre_5F_EventScript_15D430:: @ 815D430
+ trainerbattle 0, OPPONENT_TASHA, 0, MtPyre_5F_Text_196939, MtPyre_5F_Text_196997
+ msgbox MtPyre_5F_Text_1969AC, 6
+ end
diff --git a/data/maps/MtPyre_6F/scripts.inc b/data/maps/MtPyre_6F/scripts.inc
new file mode 100644
index 000000000..ae09300a3
--- /dev/null
+++ b/data/maps/MtPyre_6F/scripts.inc
@@ -0,0 +1,15 @@
+MtPyre_6F_MapScripts:: @ 815D447
+ .byte 0
+
+MtPyre_6F_EventScript_15D448:: @ 815D448
+ trainerbattle 0, OPPONENT_VALERIE_1, 0, MtPyre_6F_Text_1969FE, MtPyre_6F_Text_196A30
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq MtPyre_6F_EventScript_15D46F
+ msgbox MtPyre_6F_Text_196A4C, 6
+ end
+
+MtPyre_6F_EventScript_15D46F:: @ 815D46F
+ trainerbattle 5, OPPONENT_VALERIE_1, 0, MtPyre_6F_Text_196A95, MtPyre_6F_Text_196AB1
+ msgbox MtPyre_6F_Text_196AC9, 6
+ end
diff --git a/data/maps/MtPyre_Exterior/scripts.inc b/data/maps/MtPyre_Exterior/scripts.inc
new file mode 100644
index 000000000..f8b4141d7
--- /dev/null
+++ b/data/maps/MtPyre_Exterior/scripts.inc
@@ -0,0 +1,27 @@
+MtPyre_Exterior_MapScripts:: @ 815D486
+ map_script 3, MtPyre_Exterior_MapScript1_15D48C
+ .byte 0
+
+MtPyre_Exterior_MapScript1_15D48C:: @ 815D48C
+ call MtPyre_Exterior_EventScript_15D492
+ end
+
+MtPyre_Exterior_EventScript_15D492:: @ 815D492
+ getplayerxy VAR_TEMP_0, VAR_TEMP_1
+ compare VAR_TEMP_1, 12
+ goto_if_lt MtPyre_Exterior_EventScript_15D4A3
+ return
+
+MtPyre_Exterior_EventScript_15D4A3:: @ 815D4A3
+ setweather WEATHER_FOG_1
+ return
+
+MtPyre_Exterior_EventScript_15D4A7:: @ 815D4A7
+ setweather WEATHER_FOG_1
+ doweather
+ end
+
+MtPyre_Exterior_EventScript_15D4AC:: @ 815D4AC
+ setweather WEATHER_SUNNY
+ doweather
+ end
diff --git a/data/maps/MtPyre_Summit/scripts.inc b/data/maps/MtPyre_Summit/scripts.inc
new file mode 100644
index 000000000..36b72ad12
--- /dev/null
+++ b/data/maps/MtPyre_Summit/scripts.inc
@@ -0,0 +1,365 @@
+MtPyre_Summit_MapScripts:: @ 815D4B1
+ map_script 3, MtPyre_Summit_MapScript1_15D4B7
+ .byte 0
+
+MtPyre_Summit_MapScript1_15D4B7:: @ 815D4B7
+ call MtPyre_Summit_EventScript_1A0196
+ end
+
+MtPyre_Summit_EventScript_15D4BD:: @ 815D4BD
+ lockall
+ setvar VAR_SPECIAL_8, 0
+ goto MtPyre_Summit_EventScript_15D4E1
+ end
+
+MtPyre_Summit_EventScript_15D4C9:: @ 815D4C9
+ lockall
+ setvar VAR_SPECIAL_8, 1
+ goto MtPyre_Summit_EventScript_15D4E1
+ end
+
+MtPyre_Summit_EventScript_15D4D5:: @ 815D4D5
+ lockall
+ setvar VAR_SPECIAL_8, 2
+ goto MtPyre_Summit_EventScript_15D4E1
+ end
+
+MtPyre_Summit_EventScript_15D4E1:: @ 815D4E1
+ applymovement 255, MtPyre_Summit_Movement_1A0841
+ waitmovement 0
+ applymovement 2, MtPyre_Summit_Movement_1A0845
+ waitmovement 0
+ delay 50
+ compare VAR_SPECIAL_8, 0
+ call_if_eq MtPyre_Summit_EventScript_15D593
+ compare VAR_SPECIAL_8, 1
+ call_if_eq MtPyre_Summit_EventScript_15D59E
+ compare VAR_SPECIAL_8, 2
+ call_if_eq MtPyre_Summit_EventScript_15D59F
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B52B0, 4
+ .else
+ msgbox MtPyre_Summit_Text_1B5EEC, 4
+ .endif
+ closemessage
+ fadescreen 1
+ removeobject 2
+ removeobject 4
+ removeobject 5
+ removeobject 6
+ setflag FLAG_HIDE_LEADER_MT_PYRE_SUMMIT
+ setflag FLAG_HIDE_GRUNTS_MT_PYRE_SUMMIT
+ fadescreen 0
+ delay 20
+ call MtPyre_Summit_EventScript_15D57A
+ compare VAR_SPECIAL_8, 0
+ call_if_eq MtPyre_Summit_EventScript_15D5AA
+ compare VAR_SPECIAL_8, 1
+ call_if_eq MtPyre_Summit_EventScript_15D5BF
+ compare VAR_SPECIAL_8, 2
+ call_if_eq MtPyre_Summit_EventScript_15D5CA
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B53AB, 4
+ .else
+ msgbox MtPyre_Summit_Text_1B5FE6, 4
+ .endif
+ giveitem_std ITEM_RED_OR_BLUE_ORB
+ setflag FLAG_RECEIVED_RED_OR_BLUE_ORB
+ releaseall
+ end
+
+MtPyre_Summit_EventScript_15D57A:: @ 815D57A
+ setflag FLAG_MT_PYRE_ORB_STOLEN
+ setvar VAR_SLATEPORT_STATE, 1
+ clearflag FLAG_HIDE_STERN_SLATEPORT
+ clearflag FLAG_HIDE_GABBY_AND_TY_SLATEPORT
+ setvar VAR_SLATEPORT_HARBOR_STATE, 1
+ setvar VAR_MT_PYRE_STATE, 1
+ return
+
+MtPyre_Summit_EventScript_15D593:: @ 815D593
+ applymovement 2, MtPyre_Summit_Movement_15D5E9
+ waitmovement 0
+ return
+
+MtPyre_Summit_EventScript_15D59E:: @ 815D59E
+ return
+
+MtPyre_Summit_EventScript_15D59F:: @ 815D59F
+ applymovement 2, MtPyre_Summit_Movement_15D5EC
+ waitmovement 0
+ return
+
+MtPyre_Summit_EventScript_15D5AA:: @ 815D5AA
+ applymovement 3, MtPyre_Summit_Movement_15D5DF
+ waitmovement 0
+ applymovement 255, MtPyre_Summit_Movement_1A0843
+ waitmovement 0
+ return
+
+MtPyre_Summit_EventScript_15D5BF:: @ 815D5BF
+ applymovement 3, MtPyre_Summit_Movement_15D5E3
+ waitmovement 0
+ return
+
+MtPyre_Summit_EventScript_15D5CA:: @ 815D5CA
+ applymovement 3, MtPyre_Summit_Movement_15D5E5
+ waitmovement 0
+ applymovement 255, MtPyre_Summit_Movement_1A083F
+ waitmovement 0
+ return
+
+MtPyre_Summit_Movement_15D5DF:: @ 815D5DF
+ walk_down
+ walk_down
+ walk_in_place_fastest_left
+ end_movement
+
+MtPyre_Summit_Movement_15D5E3:: @ 815D5E3
+ walk_down
+ end_movement
+
+MtPyre_Summit_Movement_15D5E5:: @ 815D5E5
+ walk_down
+ walk_down
+ walk_in_place_fastest_right
+ end_movement
+
+MtPyre_Summit_Movement_15D5E9:: @ 815D5E9
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+MtPyre_Summit_Movement_15D5EC:: @ 815D5EC
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+MtPyre_Summit_EventScript_15D5EF:: @ 815D5EF
+ lock
+ faceplayer
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B586F, MSGBOX_YESNO
+ .else
+ msgbox MtPyre_Summit_Text_1B64B3, MSGBOX_YESNO
+ .endif
+ compare RESULT, YES
+ call_if_eq MtPyre_Summit_EventScript_15D611
+ compare RESULT, NO
+ call_if_eq MtPyre_Summit_EventScript_15D61A
+ release
+ end
+
+MtPyre_Summit_EventScript_15D611:: @ 815D611
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B5992, 4
+ .else
+ msgbox MtPyre_Summit_Text_1B65D6, 4
+ .endif
+ return
+
+MtPyre_Summit_EventScript_15D61A:: @ 815D61A
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B5BD7, 4
+ .else
+ msgbox MtPyre_Summit_Text_1B6823, 4
+ .endif
+ return
+
+MtPyre_Summit_EventScript_15D623:: @ 815D623
+ lock
+ faceplayer
+ goto_if_set FLAG_RETURNED_RED_OR_BLUE_ORB, MtPyre_Summit_EventScript_15D6C4
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, MtPyre_Summit_EventScript_15D64A
+ goto_if_set FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, MtPyre_Summit_EventScript_15D6BA
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B54BE, 4
+ .else
+ msgbox MtPyre_Summit_Text_1B60F9, 4
+ .endif
+ release
+ end
+
+MtPyre_Summit_EventScript_15D64A:: @ 815D64A
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B5647, MSGBOX_YESNO
+ .else
+ msgbox MtPyre_Summit_Text_1B6283, MSGBOX_YESNO
+ .endif
+ compare RESULT, YES
+ goto_if_eq MtPyre_Summit_EventScript_15D669
+ compare RESULT, NO
+ goto_if_eq MtPyre_Summit_EventScript_15D69B
+ end
+
+MtPyre_Summit_EventScript_15D669:: @ 815D669
+ setvar VAR_SPECIAL_4, ITEM_RED_OR_BLUE_ORB
+ call MtPyre_Summit_EventScript_1A067F
+ closemessage
+ applymovement LAST_TALKED, MtPyre_Summit_Movement_1A0841
+ waitmovement 0
+ delay 40
+ applymovement LAST_TALKED, MtPyre_Summit_Movement_1A0839
+ waitmovement 0
+ delay 10
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B5762, 4
+ .else
+ msgbox MtPyre_Summit_Text_1B639C, 4
+ .endif
+ setflag FLAG_RETURNED_RED_OR_BLUE_ORB
+ release
+ end
+
+MtPyre_Summit_EventScript_15D69B:: @ 815D69B
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B56AB, MSGBOX_YESNO
+ .else
+ msgbox MtPyre_Summit_Text_1B62E7, MSGBOX_YESNO
+ .endif
+ compare RESULT, YES
+ goto_if_eq MtPyre_Summit_EventScript_15D669
+ compare RESULT, NO
+ goto_if_eq MtPyre_Summit_EventScript_15D69B
+ end
+
+MtPyre_Summit_EventScript_15D6BA:: @ 815D6BA
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B5540, 4
+ .else
+ msgbox MtPyre_Summit_Text_1B617B, 4
+ .endif
+ release
+ end
+
+MtPyre_Summit_EventScript_15D6C4:: @ 815D6C4
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B57BE, 4
+ .else
+ msgbox MtPyre_Summit_Text_1B63F8, 4
+ .endif
+ release
+ end
+
+MtPyre_Summit_EventScript_15D6CE:: @ 815D6CE
+ lockall
+ setvar VAR_SPECIAL_8, 0
+ goto MtPyre_Summit_EventScript_15D6F2
+ end
+
+MtPyre_Summit_EventScript_15D6DA:: @ 815D6DA
+ lockall
+ setvar VAR_SPECIAL_8, 1
+ goto MtPyre_Summit_EventScript_15D6F2
+ end
+
+MtPyre_Summit_EventScript_15D6E6:: @ 815D6E6
+ lockall
+ setvar VAR_SPECIAL_8, 2
+ goto MtPyre_Summit_EventScript_15D6F2
+ end
+
+MtPyre_Summit_EventScript_15D6F2:: @ 815D6F2
+ applymovement 255, MtPyre_Summit_Movement_1A0841
+ waitmovement 0
+ applymovement 2, MtPyre_Summit_Movement_1A0845
+ waitmovement 0
+ delay 50
+ compare VAR_SPECIAL_8, 0
+ call_if_eq MtPyre_Summit_EventScript_15D75E
+ compare VAR_SPECIAL_8, 1
+ call_if_eq MtPyre_Summit_EventScript_15D769
+ compare VAR_SPECIAL_8, 2
+ call_if_eq MtPyre_Summit_EventScript_15D774
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B5BFC, 4
+ .else
+ msgbox MtPyre_Summit_Text_1B6848, 4
+ .endif
+ closemessage
+ compare VAR_SPECIAL_8, 0
+ call_if_eq MtPyre_Summit_EventScript_15D77F
+ compare VAR_SPECIAL_8, 1
+ call_if_eq MtPyre_Summit_EventScript_15D78A
+ compare VAR_SPECIAL_8, 2
+ call_if_eq MtPyre_Summit_EventScript_15D795
+ removeobject 2
+ setvar VAR_MT_PYRE_STATE, 3
+ releaseall
+ end
+
+MtPyre_Summit_EventScript_15D75E:: @ 815D75E
+ applymovement 2, MtPyre_Summit_Movement_15D7A0
+ waitmovement 0
+ return
+
+MtPyre_Summit_EventScript_15D769:: @ 815D769
+ applymovement 2, MtPyre_Summit_Movement_15D7A3
+ waitmovement 0
+ return
+
+MtPyre_Summit_EventScript_15D774:: @ 815D774
+ applymovement 2, MtPyre_Summit_Movement_15D7A4
+ waitmovement 0
+ return
+
+MtPyre_Summit_EventScript_15D77F:: @ 815D77F
+ applymovement 2, MtPyre_Summit_Movement_15D7A7
+ waitmovement 0
+ return
+
+MtPyre_Summit_EventScript_15D78A:: @ 815D78A
+ applymovement 2, MtPyre_Summit_Movement_15D7B0
+ waitmovement 0
+ return
+
+MtPyre_Summit_EventScript_15D795:: @ 815D795
+ applymovement 2, MtPyre_Summit_Movement_15D7B9
+ waitmovement 0
+ return
+
+MtPyre_Summit_Movement_15D7A0:: @ 815D7A0
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+MtPyre_Summit_Movement_15D7A3:: @ 815D7A3
+ end_movement
+
+MtPyre_Summit_Movement_15D7A4:: @ 815D7A4
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+MtPyre_Summit_Movement_15D7A7:: @ 815D7A7
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+MtPyre_Summit_Movement_15D7B0:: @ 815D7B0
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+MtPyre_Summit_Movement_15D7B9:: @ 815D7B9
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
diff --git a/data/maps/NewMauville_Entrance/scripts.inc b/data/maps/NewMauville_Entrance/scripts.inc
new file mode 100644
index 000000000..1c8bdfb3f
--- /dev/null
+++ b/data/maps/NewMauville_Entrance/scripts.inc
@@ -0,0 +1,50 @@
+NewMauville_Entrance_MapScripts:: @ 815E48A
+ map_script 1, NewMauville_Entrance_MapScript1_15E495
+ map_script 3, NewMauville_Entrance_MapScript1_15E4D8
+ .byte 0
+
+NewMauville_Entrance_MapScript1_15E495:: @ 815E495
+ compare VAR_NEW_MAUVILLE_STATE, 0
+ call_if_eq NewMauville_Entrance_EventScript_15E4A1
+ end
+
+NewMauville_Entrance_EventScript_15E4A1:: @ 815E4A1
+ setmetatile 3, 0, 788, 1
+ setmetatile 4, 0, 789, 1
+ setmetatile 5, 0, 790, 1
+ setmetatile 3, 1, 796, 1
+ setmetatile 4, 1, 797, 1
+ setmetatile 5, 1, 798, 1
+ return
+
+NewMauville_Entrance_MapScript1_15E4D8:: @ 815E4D8
+ setflag FLAG_LANDMARK_NEW_MAUVILLE
+ end
+
+NewMauville_Entrance_EventScript_15E4DC:: @ 815E4DC
+ lockall
+ applymovement 255, NewMauville_Entrance_Movement_1A0841
+ waitmovement 0
+ msgbox NewMauville_Entrance_Text_1982C0, 4
+ checkitem ITEM_BASEMENT_KEY, 1
+ compare RESULT, 0
+ goto_if_eq NewMauville_Entrance_EventScript_15E55D
+ msgbox NewMauville_Entrance_Text_1982D4, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq NewMauville_Entrance_EventScript_15E55D
+ msgbox NewMauville_Entrance_Text_1982EA, 4
+ setmetatile 3, 0, 707, 0
+ setmetatile 4, 0, 708, 0
+ setmetatile 5, 0, 709, 0
+ setmetatile 3, 1, 715, 1
+ setmetatile 4, 1, 716, 0
+ setmetatile 5, 1, 717, 1
+ special DrawWholeMapView
+ playse SE_BAN
+ setvar VAR_NEW_MAUVILLE_STATE, 1
+ releaseall
+ end
+
+NewMauville_Entrance_EventScript_15E55D:: @ 815E55D
+ releaseall
+ end
diff --git a/data/maps/NewMauville_Inside/scripts.inc b/data/maps/NewMauville_Inside/scripts.inc
new file mode 100644
index 000000000..e045cda5d
--- /dev/null
+++ b/data/maps/NewMauville_Inside/scripts.inc
@@ -0,0 +1,206 @@
+NewMauville_Inside_MapScripts:: @ 815E55F
+ map_script 5, NewMauville_Inside_MapScript1_15E56F
+ map_script 3, NewMauville_Inside_MapScript1_15E593
+ map_script 1, NewMauville_Inside_MapScript1_15E59E
+ .byte 0
+
+NewMauville_Inside_MapScript1_15E56F:: @ 815E56F
+ compare VAR_TEMP_1, 1
+ call_if_eq NewMauville_Inside_EventScript_15E5DA
+ compare VAR_TEMP_2, 1
+ call_if_eq NewMauville_Inside_EventScript_15E728
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, NewMauville_Inside_EventScript_15E58F
+ end
+
+NewMauville_Inside_EventScript_15E58F:: @ 815E58F
+ removeobject LAST_TALKED
+ return
+
+NewMauville_Inside_MapScript1_15E593:: @ 815E593
+ setvar VAR_TEMP_1, 0
+ setvar VAR_TEMP_2, 0
+ end
+
+NewMauville_Inside_MapScript1_15E59E:: @ 815E59E
+ compare VAR_NEW_MAUVILLE_STATE, 2
+ call_if_eq NewMauville_Inside_EventScript_15E88B
+ end
+
+NewMauville_Inside_EventScript_15E5AA:: @ 815E5AA
+ lockall
+ setvar VAR_TEMP_1, 1
+ setvar VAR_TEMP_2, 0
+ playse SE_PIN
+ call NewMauville_Inside_EventScript_15E5DA
+ special DrawWholeMapView
+ releaseall
+ end
+
+NewMauville_Inside_EventScript_15E5C2:: @ 815E5C2
+ lockall
+ setvar VAR_TEMP_1, 0
+ setvar VAR_TEMP_2, 1
+ playse SE_PIN
+ call NewMauville_Inside_EventScript_15E728
+ special DrawWholeMapView
+ releaseall
+ end
+
+NewMauville_Inside_EventScript_15E5DA:: @ 815E5DA
+ setmetatile 23, 34, 617, 1
+ setmetatile 23, 35, 625, 1
+ setmetatile 23, 36, 621, 0
+ setmetatile 23, 37, 641, 0
+ setmetatile 10, 16, 617, 1
+ setmetatile 10, 17, 625, 1
+ setmetatile 10, 18, 621, 0
+ setmetatile 10, 19, 641, 0
+ setmetatile 10, 0, 617, 1
+ setmetatile 10, 1, 625, 1
+ setmetatile 10, 2, 621, 0
+ setmetatile 10, 3, 641, 0
+ setmetatile 37, 33, 694, 1
+ setmetatile 37, 34, 702, 1
+ setmetatile 37, 35, 710, 1
+ setmetatile 37, 36, 718, 1
+ setmetatile 28, 22, 694, 1
+ setmetatile 28, 23, 702, 1
+ setmetatile 28, 24, 710, 1
+ setmetatile 28, 25, 718, 1
+ setmetatile 10, 24, 694, 1
+ setmetatile 10, 25, 702, 1
+ setmetatile 10, 26, 710, 1
+ setmetatile 10, 27, 718, 1
+ setmetatile 21, 2, 694, 1
+ setmetatile 21, 3, 702, 1
+ setmetatile 21, 4, 710, 1
+ setmetatile 21, 5, 718, 1
+ setmetatile 6, 11, 591, 0
+ setmetatile 13, 10, 591, 0
+ setmetatile 16, 22, 591, 0
+ setmetatile 4, 26, 591, 0
+ setmetatile 30, 38, 591, 0
+ setmetatile 2, 11, 558, 0
+ setmetatile 17, 10, 558, 0
+ setmetatile 25, 18, 558, 0
+ setmetatile 18, 36, 558, 0
+ return
+
+NewMauville_Inside_EventScript_15E728:: @ 815E728
+ setmetatile 23, 34, 695, 1
+ setmetatile 23, 35, 703, 1
+ setmetatile 23, 36, 711, 1
+ setmetatile 23, 37, 719, 1
+ setmetatile 10, 16, 695, 1
+ setmetatile 10, 17, 703, 1
+ setmetatile 10, 18, 711, 1
+ setmetatile 10, 19, 719, 1
+ setmetatile 10, 0, 695, 1
+ setmetatile 10, 1, 703, 1
+ setmetatile 10, 2, 711, 1
+ setmetatile 10, 3, 719, 1
+ setmetatile 37, 33, 617, 1
+ setmetatile 37, 34, 625, 1
+ setmetatile 37, 35, 621, 0
+ setmetatile 37, 36, 641, 0
+ setmetatile 28, 22, 617, 1
+ setmetatile 28, 23, 625, 1
+ setmetatile 28, 24, 621, 0
+ setmetatile 28, 25, 641, 0
+ setmetatile 10, 24, 617, 1
+ setmetatile 10, 25, 625, 1
+ setmetatile 10, 26, 621, 0
+ setmetatile 10, 27, 641, 0
+ setmetatile 21, 2, 617, 1
+ setmetatile 21, 3, 625, 1
+ setmetatile 21, 4, 621, 0
+ setmetatile 21, 5, 641, 0
+ setmetatile 2, 11, 591, 0
+ setmetatile 17, 10, 591, 0
+ setmetatile 25, 18, 591, 0
+ setmetatile 18, 36, 591, 0
+ setmetatile 6, 11, 566, 0
+ setmetatile 13, 10, 566, 0
+ setmetatile 16, 22, 566, 0
+ setmetatile 4, 26, 566, 0
+ setmetatile 30, 38, 566, 0
+ return
+
+NewMauville_Inside_EventScript_15E876:: @ 815E876
+ lockall
+ msgbox NewMauville_Inside_Text_1983B1, 4
+ call NewMauville_Inside_EventScript_15E88B
+ setvar VAR_NEW_MAUVILLE_STATE, 2
+ releaseall
+ end
+
+NewMauville_Inside_EventScript_15E88B:: @ 815E88B
+ setmetatile 33, 6, 591, 0
+ setmetatile 32, 2, 752, 1
+ setmetatile 33, 2, 753, 1
+ setmetatile 34, 2, 754, 1
+ setmetatile 35, 2, 755, 1
+ setmetatile 32, 3, 756, 1
+ setmetatile 33, 3, 757, 1
+ setmetatile 34, 3, 758, 1
+ setmetatile 35, 3, 759, 1
+ special DrawWholeMapView
+ return
+
+NewMauville_Inside_EventScript_15E8E0:: @ 815E8E0
+ lockall
+ compare VAR_NEW_MAUVILLE_STATE, 2
+ goto_if_eq NewMauville_Inside_EventScript_15E8F6
+ msgbox NewMauville_Inside_Text_198315, 4
+ releaseall
+ end
+
+NewMauville_Inside_EventScript_15E8F6:: @ 815E8F6
+ msgbox NewMauville_Inside_Text_198395, 4
+ releaseall
+ end
+
+NewMauville_Inside_EventScript_15E900:: @ 815E900
+ lock
+ faceplayer
+ setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
+ waitse
+ playmoncry SPECIES_VOLTORB, 2
+ delay 40
+ waitmoncry
+ setflag FLAG_HIDE_VOLTORB_1_NEW_MAUVILLE
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ dowildbattle
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ release
+ end
+
+NewMauville_Inside_EventScript_15E91E:: @ 815E91E
+ lock
+ faceplayer
+ setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
+ waitse
+ playmoncry SPECIES_VOLTORB, 2
+ delay 40
+ waitmoncry
+ setflag FLAG_HIDE_VOLTORB_2_NEW_MAUVILLE
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ dowildbattle
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ release
+ end
+
+NewMauville_Inside_EventScript_15E93C:: @ 815E93C
+ lock
+ faceplayer
+ setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
+ waitse
+ playmoncry SPECIES_VOLTORB, 2
+ delay 40
+ waitmoncry
+ setflag FLAG_HIDE_VOLTORB_3_NEW_MAUVILLE
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ dowildbattle
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ release
+ end
diff --git a/data/maps/OldaleTown/scripts.inc b/data/maps/OldaleTown/scripts.inc
new file mode 100644
index 000000000..5385272b8
--- /dev/null
+++ b/data/maps/OldaleTown/scripts.inc
@@ -0,0 +1,318 @@
+OldaleTown_MapScripts:: @ 814DD62
+ map_script 3, OldaleTown_MapScript1_14DD68
+ .byte 0
+
+OldaleTown_MapScript1_14DD68:: @ 814DD68
+ call OldaleTown_EventScript_1A014E
+ setflag FLAG_VISITED_OLDALE_TOWN
+ call_if_unset FLAG_ADVENTURE_STARTED, OldaleTown_EventScript_14DD92
+ call_if_unset FLAG_RECEIVED_POTION_OLDALE, OldaleTown_EventScript_14DD9E
+ call_if_set FLAG_ADVENTURE_STARTED, OldaleTown_EventScript_14DD8C
+ end
+
+OldaleTown_EventScript_14DD8C:: @ 814DD8C
+ setvar VAR_ROUTE102_ACCESSIBLE, 1
+ return
+
+OldaleTown_EventScript_14DD92:: @ 814DD92
+ setobjectxyperm 3, 1, 11
+ setobjectmovementtype 3, 9
+ return
+
+OldaleTown_EventScript_14DD9E:: @ 814DD9E
+ setobjectxyperm 2, 13, 14
+ setobjectmovementtype 2, 8
+ return
+
+OldaleTown_EventScript_14DDAA:: @ 814DDAA
+ msgbox OldaleTown_Text_16B20E, 3
+ end
+
+OldaleTown_EventScript_14DDB3:: @ 814DDB3
+ msgbox OldaleTown_Text_16AEC0, 2
+ end
+
+OldaleTown_EventScript_14DDBC:: @ 814DDBC
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_POTION_OLDALE, OldaleTown_EventScript_14DE79
+ goto_if_set FLAG_TEMP_1, OldaleTown_EventScript_14DE79
+ setflag FLAG_TEMP_1
+ playbgm BGM_TSURETEK, FALSE
+ msgbox OldaleTown_Text_16AEF2, 4
+ closemessage
+ switch FACING
+ case 1, OldaleTown_EventScript_14DE07
+ case 2, OldaleTown_EventScript_14DE1E
+ case 4, OldaleTown_EventScript_14DE35
+ end
+
+OldaleTown_EventScript_14DE07:: @ 814DE07
+ applymovement 2, OldaleTown_Movement_14DE97
+ applymovement 255, OldaleTown_Movement_14DEC1
+ waitmovement 0
+ goto OldaleTown_EventScript_14DE4C
+ end
+
+OldaleTown_EventScript_14DE1E:: @ 814DE1E
+ applymovement 2, OldaleTown_Movement_14DEA2
+ applymovement 255, OldaleTown_Movement_14DECB
+ waitmovement 0
+ goto OldaleTown_EventScript_14DE4C
+ end
+
+OldaleTown_EventScript_14DE35:: @ 814DE35
+ applymovement 255, OldaleTown_Movement_14DEB9
+ applymovement 2, OldaleTown_Movement_14DE8E
+ waitmovement 0
+ goto OldaleTown_EventScript_14DE4C
+ end
+
+OldaleTown_EventScript_14DE4C:: @ 814DE4C
+ msgbox OldaleTown_Text_16AF2F, 4
+ giveitem_std ITEM_POTION
+ compare RESULT, 0
+ goto_if_eq OldaleTown_EventScript_14DE83
+ msgbox OldaleTown_Text_16AFE1, 4
+ setflag FLAG_RECEIVED_POTION_OLDALE
+ fadedefaultbgm
+ release
+ end
+
+OldaleTown_EventScript_14DE79:: @ 814DE79
+ msgbox OldaleTown_Text_16AFE1, 4
+ release
+ end
+
+OldaleTown_EventScript_14DE83:: @ 814DE83
+ msgbox OldaleTown_Text_1A0CC2, 4
+ fadedefaultbgm
+ release
+ end
+
+OldaleTown_Movement_14DE8E:: @ 814DE8E
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_in_place_fastest_down
+ end_movement
+
+OldaleTown_Movement_14DE97:: @ 814DE97
+ walk_left
+ walk_up
+ walk_up
+ walk_right
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_in_place_fastest_down
+ end_movement
+
+OldaleTown_Movement_14DEA2:: @ 814DEA2
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_in_place_fastest_down
+ end_movement
+
+@ 814DEAB
+ walk_up
+ walk_up
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ walk_in_place_fastest_down
+ end_movement
+
+OldaleTown_Movement_14DEB9:: @ 814DEB9
+ walk_right
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+OldaleTown_Movement_14DEC1:: @ 814DEC1
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+OldaleTown_Movement_14DECB:: @ 814DECB
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+@ 814DED3
+ walk_left
+ walk_up
+ walk_up
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+OldaleTown_EventScript_14DEDF:: @ 814DEDF
+ lock
+ faceplayer
+ goto_if_set FLAG_ADVENTURE_STARTED, OldaleTown_EventScript_14DF26
+ msgbox OldaleTown_Text_16B0CC, 4
+ closemessage
+ applymovement 3, OldaleTown_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+OldaleTown_EventScript_14DEFF:: @ 814DEFF
+ lockall
+ applymovement 255, OldaleTown_Movement_14DFEC
+ applymovement 3, OldaleTown_Movement_14DFEF
+ waitmovement 0
+ msgbox OldaleTown_Text_16B045, 4
+ closemessage
+ applymovement 3, OldaleTown_Movement_14DFF5
+ waitmovement 0
+ releaseall
+ end
+
+OldaleTown_EventScript_14DF26:: @ 814DF26
+ msgbox OldaleTown_Text_16B12A, 4
+ release
+ end
+
+OldaleTown_EventScript_14DF30:: @ 814DF30
+ lockall
+ applymovement 4, OldaleTown_Movement_1A0839
+ waitmovement 0
+ goto OldaleTown_EventScript_14DF92
+ end
+
+OldaleTown_EventScript_14DF41:: @ 814DF41
+ lockall
+ applymovement 4, OldaleTown_Movement_14DFDE
+ waitmovement 0
+ applymovement 255, OldaleTown_Movement_1A0843
+ waitmovement 0
+ goto OldaleTown_EventScript_14DF92
+ end
+
+OldaleTown_EventScript_14DF5C:: @ 814DF5C
+ lockall
+ applymovement 4, OldaleTown_Movement_14DFE1
+ waitmovement 0
+ applymovement 255, OldaleTown_Movement_1A0843
+ waitmovement 0
+ goto OldaleTown_EventScript_14DF92
+ end
+
+OldaleTown_EventScript_14DF77:: @ 814DF77
+ lockall
+ applymovement 4, OldaleTown_Movement_14DFE3
+ waitmovement 0
+ applymovement 255, OldaleTown_Movement_1A0843
+ waitmovement 0
+ goto OldaleTown_EventScript_14DF92
+ end
+
+OldaleTown_EventScript_14DF92:: @ 814DF92
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq OldaleTown_EventScript_14DFAA
+ compare RESULT, 1
+ goto_if_eq OldaleTown_EventScript_14DFB8
+ end
+
+OldaleTown_EventScript_14DFAA:: @ 814DFAA
+ msgbox OldaleTown_Text_16B196, 4
+ goto OldaleTown_EventScript_14DFC6
+ end
+
+OldaleTown_EventScript_14DFB8:: @ 814DFB8
+ msgbox OldaleTown_Text_16B1BE, 4
+ goto OldaleTown_EventScript_14DFC6
+ end
+
+OldaleTown_EventScript_14DFC6:: @ 814DFC6
+ closemessage
+ applymovement 4, OldaleTown_Movement_14DFE5
+ waitmovement 0
+ removeobject 4
+ setvar VAR_OLDALE_STATE, 2
+ setflag FLAG_HIDE_RIVAL_OLDALE_TOWN
+ releaseall
+ end
+
+OldaleTown_Movement_14DFDE:: @ 814DFDE
+ walk_left
+ walk_left
+ end_movement
+
+OldaleTown_Movement_14DFE1:: @ 814DFE1
+ walk_left
+ end_movement
+
+OldaleTown_Movement_14DFE3:: @ 814DFE3
+ face_left
+ end_movement
+
+OldaleTown_Movement_14DFE5:: @ 814DFE5
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+OldaleTown_Movement_14DFEC:: @ 814DFEC
+ delay_8
+ walk_right
+ end_movement
+
+OldaleTown_Movement_14DFEF:: @ 814DFEF
+ walk_fast_up
+ walk_in_place_fastest_left
+ lock_facing_direction
+ walk_right
+ unlock_facing_direction
+ end_movement
+
+OldaleTown_Movement_14DFF5:: @ 814DFF5
+ walk_down
+ walk_left
+ end_movement
diff --git a/data/maps/OldaleTown_House1/scripts.inc b/data/maps/OldaleTown_House1/scripts.inc
new file mode 100644
index 000000000..1e519a737
--- /dev/null
+++ b/data/maps/OldaleTown_House1/scripts.inc
@@ -0,0 +1,6 @@
+OldaleTown_House1_MapScripts:: @ 8152EEB
+ .byte 0
+
+OldaleTown_House1_EventScript_152EEC:: @ 8152EEC
+ msgbox OldaleTown_House1_Text_17476D, 2
+ end
diff --git a/data/maps/OldaleTown_House2/scripts.inc b/data/maps/OldaleTown_House2/scripts.inc
new file mode 100644
index 000000000..57a9ab8ac
--- /dev/null
+++ b/data/maps/OldaleTown_House2/scripts.inc
@@ -0,0 +1,10 @@
+OldaleTown_House2_MapScripts:: @ 8152EF5
+ .byte 0
+
+OldaleTown_House2_EventScript_152EF6:: @ 8152EF6
+ msgbox OldaleTown_House2_Text_174838, 2
+ end
+
+OldaleTown_House2_EventScript_152EFF:: @ 8152EFF
+ msgbox OldaleTown_House2_Text_17487B, 2
+ end
diff --git a/data/maps/OldaleTown_Mart/scripts.inc b/data/maps/OldaleTown_Mart/scripts.inc
new file mode 100644
index 000000000..15cf40027
--- /dev/null
+++ b/data/maps/OldaleTown_Mart/scripts.inc
@@ -0,0 +1,57 @@
+OldaleTown_Mart_MapScripts:: @ 8152F78
+ .byte 0
+
+OldaleTown_Mart_EventScript_152F79:: @ 8152F79
+ lock
+ faceplayer
+ message OldaleTown_Mart_Text_1A0BE4
+ waitmessage
+ goto_if_set FLAG_ADVENTURE_STARTED, OldaleTown_Mart_EventScript_152FA8
+ pokemart OldaleTown_Mart_Items1
+ msgbox OldaleTown_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+OldaleTown_Mart_Items1:: @ 8152F9C
+ .2byte ITEM_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_AWAKENING
+ .2byte ITEM_NONE
+ release
+ end
+
+OldaleTown_Mart_EventScript_152FA8:: @ 8152FA8
+ pokemart OldaleTown_Mart_Items2
+ msgbox OldaleTown_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+OldaleTown_Mart_Items2:: @ 8152FB8
+ .2byte ITEM_POKE_BALL
+ .2byte ITEM_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_AWAKENING
+ .2byte ITEM_NONE
+ release
+ end
+
+OldaleTown_Mart_EventScript_152FC6:: @ 8152FC6
+ lock
+ faceplayer
+ goto_if_set FLAG_ADVENTURE_STARTED, OldaleTown_Mart_EventScript_152FDB
+ msgbox OldaleTown_Mart_Text_174A8A, 4
+ release
+ end
+
+OldaleTown_Mart_EventScript_152FDB:: @ 8152FDB
+ msgbox OldaleTown_Mart_Text_174ACB, 4
+ release
+ end
+
+OldaleTown_Mart_EventScript_152FE5:: @ 8152FE5
+ msgbox OldaleTown_Mart_Text_174B10, 2
+ end
diff --git a/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc b/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..c993807c6
--- /dev/null
+++ b/data/maps/OldaleTown_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,37 @@
+OldaleTown_PokemonCenter_1F_MapScripts:: @ 8152F08
+ map_script 3, OldaleTown_PokemonCenter_1F_MapScript1_152F0E
+ .byte 0
+
+OldaleTown_PokemonCenter_1F_MapScript1_152F0E:: @ 8152F0E
+ setrespawn 14
+ call OldaleTown_PokemonCenter_1F_EventScript_19FD1B
+ end
+
+OldaleTown_PokemonCenter_1F_EventScript_152F17:: @ 8152F17
+ setvar VAR_SPECIAL_B, 1
+ call OldaleTown_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+OldaleTown_PokemonCenter_1F_EventScript_152F25:: @ 8152F25
+ msgbox OldaleTown_PokemonCenter_1F_Text_1748D1, 2
+ end
+
+OldaleTown_PokemonCenter_1F_EventScript_152F2E:: @ 8152F2E
+ msgbox OldaleTown_PokemonCenter_1F_Text_174945, 2
+ end
+
+OldaleTown_PokemonCenter_1F_EventScript_152F37:: @ 8152F37
+ lock
+ faceplayer
+ goto_if_set FLAG_SYS_POKEDEX_GET, OldaleTown_PokemonCenter_1F_EventScript_152F4C
+ msgbox OldaleTown_PokemonCenter_1F_Text_1749C0, 4
+ release
+ end
+
+OldaleTown_PokemonCenter_1F_EventScript_152F4C:: @ 8152F4C
+ msgbox OldaleTown_PokemonCenter_1F_Text_174A2E, 4
+ release
+ end
diff --git a/data/maps/OldaleTown_PokemonCenter_2F/scripts.inc b/data/maps/OldaleTown_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..622f50c29
--- /dev/null
+++ b/data/maps/OldaleTown_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+OldaleTown_PokemonCenter_2F_MapScripts:: @ 8152F56
+ map_script 2, OldaleTown_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, OldaleTown_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, OldaleTown_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+OldaleTown_PokemonCenter_2F_EventScript_152F66:: @ 8152F66
+ call OldaleTown_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+OldaleTown_PokemonCenter_2F_EventScript_152F6C:: @ 8152F6C
+ call OldaleTown_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+OldaleTown_PokemonCenter_2F_EventScript_152F72:: @ 8152F72
+ call OldaleTown_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/PacifidlogTown/scripts.inc b/data/maps/PacifidlogTown/scripts.inc
new file mode 100644
index 000000000..d7ac80a0a
--- /dev/null
+++ b/data/maps/PacifidlogTown/scripts.inc
@@ -0,0 +1,28 @@
+PacifidlogTown_MapScripts:: @ 814E8EE
+ map_script 3, PacifidlogTown_MapScript1_14E8F9
+ map_script 5, PacifidlogTown_MapScript1_14E8FD
+ .byte 0
+
+PacifidlogTown_MapScript1_14E8F9:: @ 814E8F9
+ setflag FLAG_VISITED_PACIFIDLOG_TOWN
+ end
+
+PacifidlogTown_MapScript1_14E8FD:: @ 814E8FD
+ setstepcallback 3
+ end
+
+PacifidlogTown_EventScript_14E900:: @ 814E900
+ msgbox PacifidlogTown_Text_16D04A, 2
+ end
+
+PacifidlogTown_EventScript_14E909:: @ 814E909
+ msgbox PacifidlogTown_Text_16CFC5, 2
+ end
+
+PacifidlogTown_EventScript_14E912:: @ 814E912
+ msgbox PacifidlogTown_Text_16D08A, 2
+ end
+
+PacifidlogTown_EventScript_14E91B:: @ 814E91B
+ msgbox PacifidlogTown_Text_16D0CE, 3
+ end
diff --git a/data/maps/PacifidlogTown_House1/scripts.inc b/data/maps/PacifidlogTown_House1/scripts.inc
new file mode 100644
index 000000000..4b3586a16
--- /dev/null
+++ b/data/maps/PacifidlogTown_House1/scripts.inc
@@ -0,0 +1,10 @@
+PacifidlogTown_House1_MapScripts:: @ 8154154
+ .byte 0
+
+PacifidlogTown_House1_EventScript_154155:: @ 8154155
+ msgbox PacifidlogTown_House1_Text_178F9F, 2
+ end
+
+PacifidlogTown_House1_EventScript_15415E:: @ 815415E
+ msgbox PacifidlogTown_House1_Text_17906A, 2
+ end
diff --git a/data/maps/PacifidlogTown_House2/scripts.inc b/data/maps/PacifidlogTown_House2/scripts.inc
new file mode 100644
index 000000000..110bdcbe6
--- /dev/null
+++ b/data/maps/PacifidlogTown_House2/scripts.inc
@@ -0,0 +1,96 @@
+PacifidlogTown_House2_MapScripts:: @ 8154167
+ .byte 0
+
+PacifidlogTown_House2_EventScript_154168:: @ 8154168
+ lock
+ faceplayer
+ dodailyevents
+ call PacifidlogTown_House2_EventScript_1541B4
+ goto_if_set FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK, PacifidlogTown_House2_EventScript_154254
+ call_if_set FLAG_MET_FANCLUB_YOUNGER_BROTHER, PacifidlogTown_House2_EventScript_1541CE
+ call_if_unset FLAG_MET_FANCLUB_YOUNGER_BROTHER, PacifidlogTown_House2_EventScript_1541D7
+ setflag FLAG_MET_FANCLUB_YOUNGER_BROTHER
+ specialvar RESULT, GetLeadMonFriendshipScore
+ compare RESULT, 4
+ goto_if_ge PacifidlogTown_House2_EventScript_1541EC
+ specialvar RESULT, GetLeadMonFriendshipScore
+ compare RESULT, 2
+ goto_if_ge PacifidlogTown_House2_EventScript_15421B
+ goto PacifidlogTown_House2_EventScript_154225
+ end
+
+PacifidlogTown_House2_EventScript_1541B4:: @ 81541B4
+ goto_if_unset FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK, PacifidlogTown_House2_EventScript_1A14DC
+ specialvar RESULT, GetDaysUntilPacifidlogTMAvailable
+ compare RESULT, 0
+ call_if_eq PacifidlogTown_House2_EventScript_1541E8
+ return
+
+PacifidlogTown_House2_EventScript_1541CE:: @ 81541CE
+ msgbox PacifidlogTown_House2_Text_179155, 4
+ return
+
+PacifidlogTown_House2_EventScript_1541D7:: @ 81541D7
+ msgbox PacifidlogTown_House2_Text_1790C1, 4
+ msgbox PacifidlogTown_House2_Text_179155, 4
+ return
+
+PacifidlogTown_House2_EventScript_1541E8:: @ 81541E8
+ clearflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
+ return
+
+PacifidlogTown_House2_EventScript_1541EC:: @ 81541EC
+ msgbox PacifidlogTown_House2_Text_179169, 4
+ giveitem_std ITEM_TM27_RETURN
+ compare RESULT, 0
+ goto_if_eq PacifidlogTown_House2_EventScript_1A029B
+ setflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
+ special SetPacifidlogTMReceivedDay
+ msgbox PacifidlogTown_House2_Text_179283, 4
+ release
+ end
+
+PacifidlogTown_House2_EventScript_15421B:: @ 815421B
+ msgbox PacifidlogTown_House2_Text_1791CA, 4
+ release
+ end
+
+PacifidlogTown_House2_EventScript_154225:: @ 8154225
+ msgbox PacifidlogTown_House2_Text_17922D, 4
+ giveitem_std ITEM_TM21_FRUSTRATION
+ compare RESULT, 0
+ goto_if_eq PacifidlogTown_House2_EventScript_1A029B
+ setflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
+ special SetPacifidlogTMReceivedDay
+ msgbox PacifidlogTown_House2_Text_179283, 4
+ release
+ end
+
+PacifidlogTown_House2_EventScript_154254:: @ 8154254
+ specialvar RESULT, GetDaysUntilPacifidlogTMAvailable
+ buffernumberstring 0, RESULT
+ msgbox PacifidlogTown_House2_Text_1792F2, 4
+ release
+ end
+
+PacifidlogTown_House2_EventScript_154267:: @ 8154267
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_AZURILL, 0
+ msgbox PacifidlogTown_House2_Text_17938B, 4
+ waitmoncry
+ msgbox PacifidlogTown_House2_Text_17939B, 4
+ release
+ end
+
+PacifidlogTown_House2_EventScript_154282:: @ 8154282
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_AZURILL, 2
+ msgbox PacifidlogTown_House2_Text_1793CC, 4
+ waitmoncry
+ msgbox PacifidlogTown_House2_Text_1793DD, 4
+ release
+ end
diff --git a/data/maps/PacifidlogTown_House3/scripts.inc b/data/maps/PacifidlogTown_House3/scripts.inc
new file mode 100644
index 000000000..3b21ac996
--- /dev/null
+++ b/data/maps/PacifidlogTown_House3/scripts.inc
@@ -0,0 +1,54 @@
+PacifidlogTown_House3_MapScripts:: @ 815429D
+ .byte 0
+
+PacifidlogTown_House3_EventScript_15429E:: @ 815429E
+ lock
+ faceplayer
+ goto_if_set FLAG_PACIFIDLOG_NPC_TRADE_COMPLETED, PacifidlogTown_House3_EventScript_154338
+ setvar VAR_SPECIAL_8, 2
+ copyvar VAR_SPECIAL_4, VAR_SPECIAL_8
+ specialvar RESULT, GetInGameTradeSpeciesInfo
+ copyvar VAR_SPECIAL_9, RESULT
+ msgbox PacifidlogTown_House3_Text_17940E, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq PacifidlogTown_House3_EventScript_154320
+ special SelectMonForNPCTrade
+ waitstate
+ copyvar VAR_SPECIAL_A, VAR_SPECIAL_4
+ compare VAR_SPECIAL_4, 255
+ goto_if_eq PacifidlogTown_House3_EventScript_154320
+ copyvar VAR_SPECIAL_5, VAR_SPECIAL_A
+ specialvar RESULT, GetTradeSpecies
+ copyvar VAR_SPECIAL_B, RESULT
+ compare RESULT, VAR_SPECIAL_9
+ goto_if_ne PacifidlogTown_House3_EventScript_15432A
+ copyvar VAR_SPECIAL_4, VAR_SPECIAL_8
+ copyvar VAR_SPECIAL_5, VAR_SPECIAL_A
+ special CreateInGameTradePokemon
+ special DoInGameTradeScene
+ waitstate
+ bufferspeciesname 0, VAR_SPECIAL_9
+ msgbox PacifidlogTown_House3_Text_1794C4, 4
+ setflag FLAG_PACIFIDLOG_NPC_TRADE_COMPLETED
+ release
+ end
+
+PacifidlogTown_House3_EventScript_154320:: @ 8154320
+ msgbox PacifidlogTown_House3_Text_1794ED, 4
+ release
+ end
+
+PacifidlogTown_House3_EventScript_15432A:: @ 815432A
+ bufferspeciesname 0, VAR_SPECIAL_9
+ msgbox PacifidlogTown_House3_Text_1794DF, 4
+ release
+ end
+
+PacifidlogTown_House3_EventScript_154338:: @ 8154338
+ msgbox PacifidlogTown_House3_Text_17950A, 4
+ release
+ end
+
+PacifidlogTown_House3_EventScript_154342:: @ 8154342
+ msgbox PacifidlogTown_House3_Text_179541, 2
+ end
diff --git a/data/maps/PacifidlogTown_House4/scripts.inc b/data/maps/PacifidlogTown_House4/scripts.inc
new file mode 100644
index 000000000..584366c88
--- /dev/null
+++ b/data/maps/PacifidlogTown_House4/scripts.inc
@@ -0,0 +1,30 @@
+PacifidlogTown_House4_MapScripts:: @ 815434B
+ .byte 0
+
+PacifidlogTown_House4_EventScript_15434C:: @ 815434C
+ msgbox PacifidlogTown_House4_Text_17961F, 2
+ end
+
+PacifidlogTown_House4_EventScript_154355:: @ 8154355
+ msgbox PacifidlogTown_House4_Text_17959B, 2
+ end
+
+PacifidlogTown_House4_EventScript_15435E:: @ 815435E
+ lock
+ faceplayer
+ msgbox PacifidlogTown_House4_Text_17963D, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PacifidlogTown_House4_EventScript_15437F
+ compare RESULT, NO
+ goto_if_eq PacifidlogTown_House4_EventScript_154389
+ end
+
+PacifidlogTown_House4_EventScript_15437F:: @ 815437F
+ msgbox PacifidlogTown_House4_Text_179656, 4
+ release
+ end
+
+PacifidlogTown_House4_EventScript_154389:: @ 8154389
+ msgbox PacifidlogTown_House4_Text_17968C, 4
+ release
+ end
diff --git a/data/maps/PacifidlogTown_House5/scripts.inc b/data/maps/PacifidlogTown_House5/scripts.inc
new file mode 100644
index 000000000..46b1990df
--- /dev/null
+++ b/data/maps/PacifidlogTown_House5/scripts.inc
@@ -0,0 +1,21 @@
+PacifidlogTown_House5_MapScripts:: @ 8154393
+ .byte 0
+
+PacifidlogTown_House5_EventScript_154394:: @ 8154394
+ lock
+ faceplayer
+ specialvar RESULT, IsMirageIslandPresent
+ compare RESULT, 1
+ goto_if_eq PacifidlogTown_House5_EventScript_1543B0
+ msgbox PacifidlogTown_House5_Text_179718, 4
+ release
+ end
+
+PacifidlogTown_House5_EventScript_1543B0:: @ 81543B0
+ msgbox PacifidlogTown_House5_Text_17973B, 4
+ release
+ end
+
+PacifidlogTown_House5_EventScript_1543BA:: @ 81543BA
+ msgbox PacifidlogTown_House5_Text_179765, 2
+ end
diff --git a/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc b/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..557b6497e
--- /dev/null
+++ b/data/maps/PacifidlogTown_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,27 @@
+PacifidlogTown_PokemonCenter_1F_MapScripts:: @ 81540FF
+ map_script 3, PacifidlogTown_PokemonCenter_1F_MapScript1_154105
+ .byte 0
+
+PacifidlogTown_PokemonCenter_1F_MapScript1_154105:: @ 8154105
+ setrespawn 19
+ end
+
+@ 8154109
+ setvar VAR_SPECIAL_B, 1
+ call VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+PacifidlogTown_PokemonCenter_1F_EventScript_154117:: @ 8154117
+ msgbox PacifidlogTown_PokemonCenter_1F_Text_178E47, 2
+ end
+
+PacifidlogTown_PokemonCenter_1F_EventScript_154120:: @ 8154120
+ msgbox PacifidlogTown_PokemonCenter_1F_Text_178E79, 2
+ end
+
+PacifidlogTown_PokemonCenter_1F_EventScript_154129:: @ 8154129
+ msgbox PacifidlogTown_PokemonCenter_1F_Text_178ED9, 2
+ end
diff --git a/data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc b/data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..2bff37736
--- /dev/null
+++ b/data/maps/PacifidlogTown_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+PacifidlogTown_PokemonCenter_2F_MapScripts:: @ 8154132
+ map_script 2, PacifidlogTown_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, PacifidlogTown_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, PacifidlogTown_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+@ 8154142
+ call VerdanturfTown_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+@ 8154148
+ call VerdanturfTown_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+PacifidlogTown_PokemonCenter_2F_EventScript_15414E:: @ 815414E
+ call PacifidlogTown_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/PetalburgCity/scripts.inc b/data/maps/PetalburgCity/scripts.inc
new file mode 100644
index 000000000..03013f66c
--- /dev/null
+++ b/data/maps/PetalburgCity/scripts.inc
@@ -0,0 +1,428 @@
+PetalburgCity_MapScripts:: @ 814B70C
+ map_script 3, PetalburgCity_MapScript1_14B717
+ map_script 2, PetalburgCity_MapScript2_14B73D
+ .byte 0
+
+PetalburgCity_MapScript1_14B717:: @ 814B717
+ setflag FLAG_VISITED_PETALBURG_CITY
+ compare VAR_PETALBURG_STATE, 0
+ call_if_eq PetalburgCity_EventScript_14B731
+ compare VAR_PETALBURG_STATE, 2
+ call_if_eq PetalburgCity_EventScript_14B739
+ end
+
+PetalburgCity_EventScript_14B731:: @ 814B731
+ setobjectxyperm 9, 5, 11
+ return
+
+PetalburgCity_EventScript_14B739:: @ 814B739
+ savebgm BGM_TSURETEK
+ return
+
+PetalburgCity_MapScript2_14B73D:: @ 814B73D
+ map_script_2 VAR_PETALBURG_STATE, 2, PetalburgCity_EventScript_14B747
+ .2byte 0
+
+PetalburgCity_EventScript_14B747:: @ 814B747
+ lockall
+ setflag FLAG_SPECIAL_FLAG_0
+ special SavePlayerParty
+ special PutZigzagoonInPlayerParty
+ applymovement 2, PetalburgCity_Movement_14B7ED
+ applymovement 255, PetalburgCity_Movement_14B7CC
+ waitmovement 0
+ msgbox PetalburgCity_Text_16D361, 4
+ special ScrSpecial_StartWallyTutorialBattle
+ waitstate
+ msgbox PetalburgCity_Text_16D3DE, 4
+ applymovement 2, PetalburgCity_Movement_1A083F, 0, 0
+ waitmovement 0, 0, 2
+ msgbox PetalburgCity_Text_16D408, 4
+ closemessage
+ clearflag FLAG_SPECIAL_FLAG_0
+ setvar VAR_PETALBURG_STATE, 3
+ fadedefaultbgm
+ clearflag FLAG_SPECIAL_FLAG_1
+ special LoadPlayerParty
+ setvar VAR_PETALBURG_GYM_STATE, 1
+ warp MAP_PETALBURG_CITY_GYM, 255, 4, 108
+ waitstate
+ releaseall
+ end
+
+PetalburgCity_EventScript_14B7AC:: @ 814B7AC
+ lock
+ faceplayer
+ msgbox PetalburgCity_Text_164490, 4
+ closemessage
+ applymovement 3, PetalburgCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+PetalburgCity_EventScript_14B7C3:: @ 814B7C3
+ msgbox PetalburgCity_Text_16433E, 2
+ end
+
+PetalburgCity_Movement_14B7CC:: @ 814B7CC
+ delay_8
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ walk_in_place_fastest_right
+ end_movement
+
+PetalburgCity_Movement_14B7ED:: @ 814B7ED
+ delay_8
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ walk_right
+ delay_16
+ walk_in_place_fastest_up
+ delay_16
+ delay_16
+ walk_in_place_fastest_right
+ end_movement
+
+PetalburgCity_EventScript_14B812:: @ 814B812
+ msgbox PetalburgCity_Text_1645BB, 3
+ end
+
+PetalburgCity_EventScript_14B81B:: @ 814B81B
+ msgbox PetalburgCity_Text_164602, 3
+ end
+
+PetalburgCity_EventScript_14B824:: @ 814B824
+ msgbox PetalburgCity_Text_16453F, 2
+ end
+
+PetalburgCity_EventScript_14B82D:: @ 814B82D
+ msgbox PetalburgCity_Text_164634, 3
+ end
+
+PetalburgCity_EventScript_14B836:: @ 814B836
+ lockall
+ setvar VAR_SPECIAL_8, 0
+ goto PetalburgCity_EventScript_14B866
+ end
+
+PetalburgCity_EventScript_14B842:: @ 814B842
+ lockall
+ setvar VAR_SPECIAL_8, 1
+ goto PetalburgCity_EventScript_14B866
+ end
+
+PetalburgCity_EventScript_14B84E:: @ 814B84E
+ lockall
+ setvar VAR_SPECIAL_8, 2
+ goto PetalburgCity_EventScript_14B866
+ end
+
+PetalburgCity_EventScript_14B85A:: @ 814B85A
+ lockall
+ setvar VAR_SPECIAL_8, 3
+ goto PetalburgCity_EventScript_14B866
+ end
+
+PetalburgCity_EventScript_14B866:: @ 814B866
+ applymovement 9, PetalburgCity_Movement_1A0839
+ waitmovement 0
+ playbgm BGM_TSURETEK, FALSE
+ playse SE_PIN
+ applymovement 9, PetalburgCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, PetalburgCity_Movement_1A0835
+ waitmovement 0
+ compare VAR_SPECIAL_8, 0
+ call_if_eq PetalburgCity_EventScript_14B91B
+ compare VAR_SPECIAL_8, 1
+ call_if_eq PetalburgCity_EventScript_14B930
+ compare VAR_SPECIAL_8, 2
+ call_if_eq PetalburgCity_EventScript_14B93B
+ compare VAR_SPECIAL_8, 3
+ call_if_eq PetalburgCity_EventScript_14B950
+ msgbox PetalburgCity_Text_16438A, 4
+ closemessage
+ compare VAR_SPECIAL_8, 0
+ call_if_eq PetalburgCity_EventScript_14B965
+ compare VAR_SPECIAL_8, 1
+ call_if_eq PetalburgCity_EventScript_14B977
+ compare VAR_SPECIAL_8, 2
+ call_if_eq PetalburgCity_EventScript_14B989
+ compare VAR_SPECIAL_8, 3
+ call_if_eq PetalburgCity_EventScript_14B99B
+ msgbox PetalburgCity_Text_164426, 4
+ applymovement 9, PetalburgCity_Movement_1A0843
+ applymovement 255, PetalburgCity_Movement_1A0843
+ waitmovement 0
+ msgbox PetalburgCity_Text_164449, 4
+ closemessage
+ applymovement 9, PetalburgCity_Movement_14B9F4
+ waitmovement 0
+ fadedefaultbgm
+ releaseall
+ end
+
+PetalburgCity_EventScript_14B91B:: @ 814B91B
+ applymovement 9, PetalburgCity_Movement_14B9B1
+ waitmovement 0
+ applymovement 255, PetalburgCity_Movement_1A0845
+ waitmovement 0
+ return
+
+PetalburgCity_EventScript_14B930:: @ 814B930
+ applymovement 9, PetalburgCity_Movement_14B9B6
+ waitmovement 0
+ return
+
+PetalburgCity_EventScript_14B93B:: @ 814B93B
+ applymovement 9, PetalburgCity_Movement_14B9B9
+ waitmovement 0
+ applymovement 255, PetalburgCity_Movement_1A0841
+ waitmovement 0
+ return
+
+PetalburgCity_EventScript_14B950:: @ 814B950
+ applymovement 9, PetalburgCity_Movement_14B9BE
+ waitmovement 0
+ applymovement 255, PetalburgCity_Movement_1A0841
+ waitmovement 0
+ return
+
+PetalburgCity_EventScript_14B965:: @ 814B965
+ applymovement 9, PetalburgCity_Movement_14B9C4
+ applymovement 255, PetalburgCity_Movement_14BA01
+ waitmovement 0
+ return
+
+PetalburgCity_EventScript_14B977:: @ 814B977
+ applymovement 9, PetalburgCity_Movement_14B9CF
+ applymovement 255, PetalburgCity_Movement_14BA0B
+ waitmovement 0
+ return
+
+PetalburgCity_EventScript_14B989:: @ 814B989
+ applymovement 9, PetalburgCity_Movement_14B9DD
+ applymovement 255, PetalburgCity_Movement_14BA18
+ waitmovement 0
+ return
+
+PetalburgCity_EventScript_14B99B:: @ 814B99B
+ applymovement 9, PetalburgCity_Movement_14B9E8
+ applymovement 255, PetalburgCity_Movement_14BA22
+ waitmovement 0
+ return
+
+@ 814B9AD
+ delay_16
+ delay_16
+ delay_16
+ end_movement
+
+PetalburgCity_Movement_14B9B1:: @ 814B9B1
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+PetalburgCity_Movement_14B9B6:: @ 814B9B6
+ walk_right
+ walk_right
+ end_movement
+
+PetalburgCity_Movement_14B9B9:: @ 814B9B9
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+PetalburgCity_Movement_14B9BE:: @ 814B9BE
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+PetalburgCity_Movement_14B9C4:: @ 814B9C4
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+PetalburgCity_Movement_14B9CF:: @ 814B9CF
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+PetalburgCity_Movement_14B9DD:: @ 814B9DD
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+PetalburgCity_Movement_14B9E8:: @ 814B9E8
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+PetalburgCity_Movement_14B9F4:: @ 814B9F4
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+PetalburgCity_Movement_14BA01:: @ 814BA01
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ end_movement
+
+PetalburgCity_Movement_14BA0B:: @ 814BA0B
+ delay_16
+ delay_16
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ end_movement
+
+PetalburgCity_Movement_14BA18:: @ 814BA18
+ walk_up
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ end_movement
+
+PetalburgCity_Movement_14BA22:: @ 814BA22
+ walk_up
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_up
+ end_movement
+
+PetalburgCity_EventScript_14BA2D:: @ 814BA2D
+ msgbox PetalburgCity_Text_16438A, 2
+ end
diff --git a/data/maps/PetalburgCity_Gym/scripts.inc b/data/maps/PetalburgCity_Gym/scripts.inc
new file mode 100644
index 000000000..259d59390
--- /dev/null
+++ b/data/maps/PetalburgCity_Gym/scripts.inc
@@ -0,0 +1,1027 @@
+PetalburgCity_Gym_MapScripts:: @ 8154477
+ map_script 1, PetalburgCity_Gym_MapScript1_15448C
+ map_script 3, PetalburgCity_Gym_MapScript1_15451B
+ map_script 4, PetalburgCity_Gym_MapScript2_154553
+ map_script 2, PetalburgCity_Gym_MapScript2_154562
+ .byte 0
+
+PetalburgCity_Gym_MapScript1_15448C:: @ 815448C
+ compare VAR_PETALBURG_GYM_STATE, 6
+ goto_if_eq PetalburgCity_Gym_EventScript_1544A3
+ compare VAR_PETALBURG_GYM_STATE, 7
+ call_if_ge PetalburgCity_Gym_EventScript_1544ED
+ end
+
+PetalburgCity_Gym_EventScript_1544A3:: @ 81544A3
+ setvar VAR_SPECIAL_5, 1
+ call PetalburgCity_Gym_EventScript_154F9A
+ call_if_trainer_defeated OPPONENT_RANDALL, PetalburgCity_Gym_EventScript_154FBB
+ call_if_trainer_defeated OPPONENT_MARY, PetalburgCity_Gym_EventScript_154FDC
+ call_if_trainer_defeated OPPONENT_PARKER, PetalburgCity_Gym_EventScript_154FFD
+ call_if_trainer_defeated OPPONENT_LORI, PetalburgCity_Gym_EventScript_15501E
+ call_if_trainer_defeated OPPONENT_GEORGE, PetalburgCity_Gym_EventScript_15503F
+ call_if_trainer_defeated OPPONENT_JODY, PetalburgCity_Gym_EventScript_155060
+ call_if_trainer_defeated OPPONENT_BERKE, PetalburgCity_Gym_EventScript_155081
+ end
+
+PetalburgCity_Gym_EventScript_1544ED:: @ 81544ED
+ setvar VAR_SPECIAL_5, 1
+ call PetalburgCity_Gym_EventScript_154F9A
+ call PetalburgCity_Gym_EventScript_154FBB
+ call PetalburgCity_Gym_EventScript_154FDC
+ call PetalburgCity_Gym_EventScript_154FFD
+ call PetalburgCity_Gym_EventScript_15501E
+ call PetalburgCity_Gym_EventScript_15503F
+ call PetalburgCity_Gym_EventScript_155060
+ call PetalburgCity_Gym_EventScript_155081
+ return
+
+PetalburgCity_Gym_MapScript1_15451B:: @ 815451B
+ compare VAR_PETALBURG_GYM_STATE, 1
+ call_if_eq PetalburgCity_Gym_EventScript_15453B
+ compare VAR_PETALBURG_GYM_STATE, 6
+ call_if_lt PetalburgCity_Gym_EventScript_154543
+ call_if_set FLAG_SYS_GAME_CLEAR, PetalburgCity_Gym_EventScript_15454B
+ end
+
+PetalburgCity_Gym_EventScript_15453B:: @ 815453B
+ setobjectxyperm 10, 5, 108
+ return
+
+PetalburgCity_Gym_EventScript_154543:: @ 8154543
+ setobjectxyperm 1, 4, 107
+ return
+
+PetalburgCity_Gym_EventScript_15454B:: @ 815454B
+ setobjectxyperm 1, 4, 107
+ return
+
+PetalburgCity_Gym_MapScript2_154553:: @ 8154553
+ map_script_2 VAR_PETALBURG_GYM_STATE, 1, PetalburgCity_Gym_EventScript_15455D
+ .2byte 0
+
+PetalburgCity_Gym_EventScript_15455D:: @ 815455D
+ turnobject 255, 2
+ end
+
+PetalburgCity_Gym_MapScript2_154562:: @ 8154562
+ map_script_2 VAR_PETALBURG_GYM_STATE, 1, PetalburgCity_Gym_EventScript_15456C
+ .2byte 0
+
+PetalburgCity_Gym_EventScript_15456C:: @ 815456C
+ lockall
+ msgbox PetalburgCity_Gym_Text_17A196, 4
+ msgbox PetalburgCity_Gym_Text_17A1B0, 4
+ closemessage
+ applymovement 255, PetalburgCity_Gym_Movement_1A0845
+ applymovement 10, PetalburgCity_Gym_Movement_1545B4
+ waitmovement 0
+ playse SE_KAIDAN
+ removeobject 10
+ setflag FLAG_HIDE_WALLY_PETALBURG
+ delay 30
+ applymovement 255, PetalburgCity_Gym_Movement_1A0841
+ waitmovement 0
+ msgbox PetalburgCity_Gym_Text_17A2A4, 4
+ setvar VAR_PETALBURG_GYM_STATE, 2
+ releaseall
+ end
+
+PetalburgCity_Gym_Movement_1545B4:: @ 81545B4
+ walk_down
+ walk_down
+ walk_down
+ delay_16
+ end_movement
+
+PetalburgCity_Gym_EventScript_1545B9:: @ 81545B9
+ lock
+ faceplayer
+ switch VAR_PETALBURG_GYM_STATE
+ case 2, PetalburgCity_Gym_EventScript_154907
+ case 3, PetalburgCity_Gym_EventScript_154911
+ case 4, PetalburgCity_Gym_EventScript_15491B
+ case 5, PetalburgCity_Gym_EventScript_154925
+ case 6, PetalburgCity_Gym_EventScript_1549D6
+ case 7, PetalburgCity_Gym_EventScript_15493D
+ msgbox PetalburgCity_Gym_Text_179DF6, 4
+ closemessage
+ switch FACING
+ case 1, PetalburgCity_Gym_EventScript_15463D
+ case 2, PetalburgCity_Gym_EventScript_154648
+ case 3, PetalburgCity_Gym_EventScript_154653
+ case 4, PetalburgCity_Gym_EventScript_15465E
+ end
+
+PetalburgCity_Gym_EventScript_15463D:: @ 815463D
+ setvar VAR_SPECIAL_8, 0
+ goto PetalburgCity_Gym_EventScript_154669
+ end
+
+PetalburgCity_Gym_EventScript_154648:: @ 8154648
+ setvar VAR_SPECIAL_8, 1
+ goto PetalburgCity_Gym_EventScript_154669
+ end
+
+PetalburgCity_Gym_EventScript_154653:: @ 8154653
+ setvar VAR_SPECIAL_8, 2
+ goto PetalburgCity_Gym_EventScript_154669
+ end
+
+PetalburgCity_Gym_EventScript_15465E:: @ 815465E
+ setvar VAR_SPECIAL_8, 3
+ goto PetalburgCity_Gym_EventScript_154669
+ end
+
+PetalburgCity_Gym_EventScript_154669:: @ 8154669
+ addobject 10
+ playse SE_DOOR
+ compare VAR_SPECIAL_8, 0
+ call_if_eq PetalburgCity_Gym_EventScript_1547EE
+ compare VAR_SPECIAL_8, 1
+ call_if_eq PetalburgCity_Gym_EventScript_154800
+ compare VAR_SPECIAL_8, 2
+ call_if_eq PetalburgCity_Gym_EventScript_15481C
+ compare VAR_SPECIAL_8, 3
+ call_if_eq PetalburgCity_Gym_EventScript_15481C
+ msgbox PetalburgCity_Gym_Text_179F07, 4
+ msgbox PetalburgCity_Gym_Text_179F37, 4
+ msgbox PetalburgCity_Gym_Text_179F70, 4
+ msgbox PetalburgCity_Gym_Text_17A03A, 4
+ compare VAR_SPECIAL_8, 0
+ call_if_eq PetalburgCity_Gym_EventScript_154884
+ compare VAR_SPECIAL_8, 1
+ call_if_eq PetalburgCity_Gym_EventScript_15488F
+ compare VAR_SPECIAL_8, 2
+ call_if_eq PetalburgCity_Gym_EventScript_1548A1
+ compare VAR_SPECIAL_8, 3
+ call_if_eq PetalburgCity_Gym_EventScript_1548B3
+ msgbox PetalburgCity_Gym_Text_17A04A, 4
+ compare VAR_SPECIAL_8, 0
+ call_if_eq PetalburgCity_Gym_EventScript_1548C5
+ compare VAR_SPECIAL_8, 1
+ call_if_eq PetalburgCity_Gym_EventScript_1548D0
+ compare VAR_SPECIAL_8, 2
+ call_if_eq PetalburgCity_Gym_EventScript_1548DB
+ compare VAR_SPECIAL_8, 3
+ call_if_eq PetalburgCity_Gym_EventScript_1548E6
+ msgbox PetalburgCity_Gym_Text_17A0A8, 4
+ msgbox PetalburgCity_Gym_Text_17A0EB, 4
+ msgbox PetalburgCity_Gym_Text_17A156, 4
+ compare VAR_SPECIAL_8, 0
+ call_if_eq PetalburgCity_Gym_EventScript_15492F
+ compare VAR_SPECIAL_8, 1
+ call_if_eq PetalburgCity_Gym_EventScript_154930
+ compare VAR_SPECIAL_8, 2
+ call_if_eq PetalburgCity_Gym_EventScript_15493B
+ compare VAR_SPECIAL_8, 3
+ call_if_eq PetalburgCity_Gym_EventScript_15493C
+ compare VAR_SPECIAL_8, 0
+ call_if_eq PetalburgCity_Gym_EventScript_1548F1
+ compare VAR_SPECIAL_8, 1
+ call_if_eq PetalburgCity_Gym_EventScript_1548FC
+ compare VAR_SPECIAL_8, 2
+ call_if_eq PetalburgCity_Gym_EventScript_1548F1
+ compare VAR_SPECIAL_8, 3
+ call_if_eq PetalburgCity_Gym_EventScript_1548F1
+ msgbox PetalburgCity_Gym_Text_17A171, 4
+ closemessage
+ setflag FLAG_SPECIAL_FLAG_1
+ playbgm BGM_TSURETEK, FALSE
+ compare VAR_SPECIAL_8, 0
+ call_if_eq PetalburgCity_Gym_EventScript_154835
+ compare VAR_SPECIAL_8, 1
+ call_if_eq PetalburgCity_Gym_EventScript_15484E
+ compare VAR_SPECIAL_8, 2
+ call_if_eq PetalburgCity_Gym_EventScript_154860
+ compare VAR_SPECIAL_8, 3
+ call_if_eq PetalburgCity_Gym_EventScript_154872
+ removeobject 10
+ setflag FLAG_HIDE_WALLY_MOM_PETALBURG_1
+ setvar VAR_PETALBURG_GYM_STATE, 1
+ setvar VAR_PETALBURG_STATE, 2
+ clearflag FLAG_HIDE_WALLY_PETALBURG
+ clearflag FLAG_HIDE_WALLY_PETALBURG_GYM
+ setflag FLAG_HIDE_RIVAL_BIRCH_LAB
+ special InitBirchState
+ warp MAP_PETALBURG_CITY, 255, 15, 8
+ waitstate
+ release
+ end
+
+PetalburgCity_Gym_EventScript_1547EE:: @ 81547EE
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ applymovement 10, PetalburgCity_Gym_Movement_154B27
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154800:: @ 8154800
+ applymovement 10, PetalburgCity_Gym_Movement_154B1D
+ waitmovement 0
+ applymovement 1, PetalburgCity_Gym_Movement_1A0843
+ applymovement 255, PetalburgCity_Gym_Movement_1A0843
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_15481C:: @ 815481C
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ applymovement 255, PetalburgCity_Gym_Movement_1A0845
+ applymovement 10, PetalburgCity_Gym_Movement_154B27
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154835:: @ 8154835
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ applymovement 10, PetalburgCity_Gym_Movement_154B3E
+ applymovement 255, PetalburgCity_Gym_Movement_154B4D
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_15484E:: @ 815484E
+ applymovement 10, PetalburgCity_Gym_Movement_154B2E
+ applymovement 255, PetalburgCity_Gym_Movement_154B45
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154860:: @ 8154860
+ applymovement 10, PetalburgCity_Gym_Movement_154B3E
+ applymovement 255, PetalburgCity_Gym_Movement_154B57
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154872:: @ 8154872
+ applymovement 10, PetalburgCity_Gym_Movement_154B36
+ applymovement 255, PetalburgCity_Gym_Movement_154B5F
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154884:: @ 8154884
+ applymovement 1, PetalburgCity_Gym_Movement_1A0841
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_15488F:: @ 815488F
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ applymovement 255, PetalburgCity_Gym_Movement_1A0841
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_1548A1:: @ 81548A1
+ applymovement 1, PetalburgCity_Gym_Movement_1A0843
+ applymovement 255, PetalburgCity_Gym_Movement_1A083F
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_1548B3:: @ 81548B3
+ applymovement 1, PetalburgCity_Gym_Movement_1A083F
+ applymovement 255, PetalburgCity_Gym_Movement_1A0843
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_1548C5:: @ 81548C5
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_1548D0:: @ 81548D0
+ applymovement 1, PetalburgCity_Gym_Movement_1A0843
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_1548DB:: @ 81548DB
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_1548E6:: @ 81548E6
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_1548F1:: @ 81548F1
+ applymovement 10, PetalburgCity_Gym_Movement_1A0839
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_1548FC:: @ 81548FC
+ applymovement 10, PetalburgCity_Gym_Movement_1A0845
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154907:: @ 8154907
+ msgbox PetalburgCity_Gym_Text_17A41E, 4
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154911:: @ 8154911
+ msgbox PetalburgCity_Gym_Text_17A518, 4
+ release
+ end
+
+PetalburgCity_Gym_EventScript_15491B:: @ 815491B
+ msgbox PetalburgCity_Gym_Text_17A5F3, 4
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154925:: @ 8154925
+ msgbox PetalburgCity_Gym_Text_17A5F3, 4
+ release
+ end
+
+PetalburgCity_Gym_EventScript_15492F:: @ 815492F
+ return
+
+PetalburgCity_Gym_EventScript_154930:: @ 8154930
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_15493B:: @ 815493B
+ return
+
+PetalburgCity_Gym_EventScript_15493C:: @ 815493C
+ return
+
+PetalburgCity_Gym_EventScript_15493D:: @ 815493D
+ call PetalburgCity_Gym_EventScript_154969
+ compare RESULT, 1
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B8
+ goto_if_unset FLAG_RECEIVED_TM42, PetalburgCity_Gym_EventScript_154A2C
+ goto_if_set FLAG_SYS_GAME_CLEAR, PetalburgCity_Gym_EventScript_154B69
+ msgbox PetalburgCity_Gym_Text_17AA6B, 4
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154969:: @ 8154969
+ specialvar RESULT, IsEnigmaBerryValid
+ compare RESULT, 0
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B2
+ checkitem ITEM_ENIGMA_BERRY, 1
+ compare RESULT, 1
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B2
+ checkpcitem ITEM_ENIGMA_BERRY, 1
+ compare RESULT, 1
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B2
+ compare VAR_ENIGMA_BERRY_AVAILABLE, 0
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B2
+ msgbox PetalburgCity_Gym_Text_1C5570, 4
+ setvar RESULT, 1
+ return
+
+PetalburgCity_Gym_EventScript_1549B2:: @ 81549B2
+ setvar RESULT, 0
+ return
+
+PetalburgCity_Gym_EventScript_1549B8:: @ 81549B8
+ giveitem_std ITEM_ENIGMA_BERRY
+ compare RESULT, 0
+ goto_if_eq PetalburgCity_Gym_EventScript_1A029B
+ setvar VAR_ENIGMA_BERRY_AVAILABLE, 0
+ release
+ end
+
+PetalburgCity_Gym_EventScript_1549D6:: @ 81549D6
+ msgbox PetalburgCity_Gym_Text_17A653, 4
+ trainerbattle 3, OPPONENT_NORMAN, 0, PetalburgCity_Gym_Text_17A77A
+ message PetalburgCity_Gym_Text_17A7DD
+ waitmessage
+ call PetalburgCity_Gym_EventScript_1A02C5
+ msgbox PetalburgCity_Gym_Text_17A805, 4
+ setflag FLAG_DEFEATED_PETALBURG_GYM
+ setvar VAR_PETALBURG_GYM_STATE, 7
+ setflag FLAG_BADGE05_GET
+ call PetalburgCity_Gym_EventScript_1A0424
+ setflag FLAG_HIDE_WATTSON_MAUVILLE_GYM
+ clearflag FLAG_HIDE_WATTSON_MAUVILLE
+ setvar VAR_SPECIAL_8, 5
+ call PetalburgCity_Gym_EventScript_1A01C0
+ clearflag FLAG_HIDE_SLUDGE_BOMB_MAN_DEWFORD_HALL
+ call PetalburgCity_Gym_EventScript_1544ED
+ special DrawWholeMapView
+ goto PetalburgCity_Gym_EventScript_154A2C
+ end
+
+PetalburgCity_Gym_EventScript_154A2C:: @ 8154A2C
+ giveitem_std ITEM_TM42_FACADE
+ compare RESULT, 0
+ goto_if_eq PetalburgCity_Gym_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM42
+ msgbox PetalburgCity_Gym_Text_17A8CF, 4
+ msgbox PetalburgCity_Gym_Text_17A976, 4
+ closemessage
+ compare FACING, 2
+ call_if_eq PetalburgCity_Gym_EventScript_154ABC
+ compare FACING, 1
+ call_if_eq PetalburgCity_Gym_EventScript_154AC7
+ compare FACING, 3
+ call_if_eq PetalburgCity_Gym_EventScript_154AD2
+ compare FACING, 4
+ call_if_eq PetalburgCity_Gym_EventScript_154ADD
+ delay 70
+ compare FACING, 2
+ call_if_eq PetalburgCity_Gym_EventScript_154AE8
+ compare FACING, 1
+ call_if_eq PetalburgCity_Gym_EventScript_154AF3
+ compare FACING, 3
+ call_if_eq PetalburgCity_Gym_EventScript_154AFE
+ compare FACING, 4
+ call_if_eq PetalburgCity_Gym_EventScript_154B09
+ msgbox PetalburgCity_Gym_Text_17A9F6, 4
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154ABC:: @ 8154ABC
+ applymovement 1, PetalburgCity_Gym_Movement_1A0841
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154AC7:: @ 8154AC7
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154AD2:: @ 8154AD2
+ applymovement 1, PetalburgCity_Gym_Movement_1A083F
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154ADD:: @ 8154ADD
+ applymovement 1, PetalburgCity_Gym_Movement_1A0843
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154AE8:: @ 8154AE8
+ applymovement 1, PetalburgCity_Gym_Movement_1A0845
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154AF3:: @ 8154AF3
+ applymovement 1, PetalburgCity_Gym_Movement_1A0841
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154AFE:: @ 8154AFE
+ applymovement 1, PetalburgCity_Gym_Movement_1A0843
+ waitmovement 0
+ return
+
+PetalburgCity_Gym_EventScript_154B09:: @ 8154B09
+ applymovement 1, PetalburgCity_Gym_Movement_1A083F
+ waitmovement 0
+ return
+
+@ 8154B14
+ walk_in_place_fastest_up
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_8
+ walk_in_place_fastest_down
+ end_movement
+
+PetalburgCity_Gym_Movement_154B1D:: @ 8154B1D
+ delay_16
+ walk_up
+ delay_16
+ delay_8
+ walk_up
+ walk_right
+ walk_up
+ walk_up
+ walk_in_place_fastest_left
+ end_movement
+
+PetalburgCity_Gym_Movement_154B27:: @ 8154B27
+ delay_16
+ walk_up
+ delay_16
+ delay_8
+ walk_up
+ walk_up
+ end_movement
+
+PetalburgCity_Gym_Movement_154B2E:: @ 8154B2E
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_in_place_fastest_up
+ delay_16
+ walk_in_place_down
+ end_movement
+
+PetalburgCity_Gym_Movement_154B36:: @ 8154B36
+ walk_down
+ walk_down
+ walk_right
+ walk_down
+ walk_in_place_fastest_up
+ delay_16
+ walk_in_place_down
+ end_movement
+
+PetalburgCity_Gym_Movement_154B3E:: @ 8154B3E
+ walk_down
+ walk_down
+ walk_down
+ walk_in_place_fastest_up
+ delay_16
+ walk_in_place_down
+ end_movement
+
+PetalburgCity_Gym_Movement_154B45:: @ 8154B45
+ delay_16
+ delay_16
+ delay_16
+ walk_down
+ walk_down
+ walk_down
+ delay_8
+ end_movement
+
+PetalburgCity_Gym_Movement_154B4D:: @ 8154B4D
+ delay_16
+ delay_16
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ delay_8
+ end_movement
+
+PetalburgCity_Gym_Movement_154B57:: @ 8154B57
+ delay_16
+ delay_16
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ delay_8
+ end_movement
+
+PetalburgCity_Gym_Movement_154B5F:: @ 8154B5F
+ walk_in_place_fastest_down
+ delay_16
+ delay_16
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_down
+ delay_8
+ end_movement
+
+PetalburgCity_Gym_EventScript_154B69:: @ 8154B69
+ msgbox PetalburgCity_Gym_Text_17AB17, 4
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154B73:: @ 8154B73
+ lockall
+ compare VAR_PETALBURG_GYM_STATE, 6
+ goto_if_lt PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 7
+ setvar VAR_SPECIAL_9, 85
+ msgbox PetalburgCity_Gym_Text_17B870, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154BA8:: @ 8154BA8
+ closemessage
+ delay 30
+ warpdoor MAP_PETALBURG_CITY_GYM, 255, 32776, 32777
+ waitstate
+ releaseall
+ end
+
+PetalburgCity_Gym_EventScript_154BB7:: @ 8154BB7
+ releaseall
+ end
+
+PetalburgCity_Gym_EventScript_154BB9:: @ 8154BB9
+ msgbox PetalburgCity_Gym_Text_17B844, 4
+ releaseall
+ end
+
+PetalburgCity_Gym_EventScript_154BC3:: @ 8154BC3
+ lockall
+ compare VAR_PETALBURG_GYM_STATE, 6
+ goto_if_lt PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 1
+ setvar VAR_SPECIAL_9, 98
+ msgbox PetalburgCity_Gym_Text_17B8D4, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154BF8:: @ 8154BF8
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_RANDALL, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 7
+ setvar VAR_SPECIAL_9, 46
+ msgbox PetalburgCity_Gym_Text_17B90F, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154C2B:: @ 8154C2B
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_RANDALL, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 1
+ setvar VAR_SPECIAL_9, 59
+ msgbox PetalburgCity_Gym_Text_17B950, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154C5E:: @ 8154C5E
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_MARY, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 7
+ setvar VAR_SPECIAL_9, 59
+ msgbox PetalburgCity_Gym_Text_17B950, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154C91:: @ 8154C91
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_MARY, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 1
+ setvar VAR_SPECIAL_9, 72
+ msgbox PetalburgCity_Gym_Text_17B98A, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154CC4:: @ 8154CC4
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_PARKER, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 1
+ setvar VAR_SPECIAL_9, 20
+ msgbox PetalburgCity_Gym_Text_17B9C5, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154CF7:: @ 8154CF7
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_LORI, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 7
+ setvar VAR_SPECIAL_9, 20
+ msgbox PetalburgCity_Gym_Text_17B9C5, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154D2A:: @ 8154D2A
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_LORI, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 1
+ setvar VAR_SPECIAL_9, 33
+ msgbox PetalburgCity_Gym_Text_17BA00, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154D5D:: @ 8154D5D
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_GEORGE, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 7
+ setvar VAR_SPECIAL_9, 33
+ msgbox PetalburgCity_Gym_Text_17BA00, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154D90:: @ 8154D90
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_JODY, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 1
+ setvar VAR_SPECIAL_9, 7
+ msgbox PetalburgCity_Gym_Text_17BA3D, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154DC3:: @ 8154DC3
+ lockall
+ goto_if_trainer_not_defeated OPPONENT_BERKE, PetalburgCity_Gym_EventScript_154BB9
+ setvar VAR_SPECIAL_8, 7
+ setvar VAR_SPECIAL_9, 7
+ msgbox PetalburgCity_Gym_Text_17BA3D, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
+ compare RESULT, NO
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
+ end
+
+PetalburgCity_Gym_EventScript_154DF6:: @ 8154DF6
+ trainerbattle 2, OPPONENT_RANDALL, 0, PetalburgCity_Gym_Text_17ADA5, PetalburgCity_Gym_Text_17AE11, PetalburgCity_Gym_EventScript_154E1A
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_Gym_EventScript_154E29
+ msgbox PetalburgCity_Gym_Text_17AE30, 6
+ end
+
+PetalburgCity_Gym_EventScript_154E1A:: @ 8154E1A
+ setvar VAR_SPECIAL_5, 0
+ call PetalburgCity_Gym_EventScript_154FBB
+ special DrawWholeMapView
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154E29:: @ 8154E29
+ msgbox PetalburgCity_Gym_Text_17AEBB, 2
+ end
+
+PetalburgCity_Gym_EventScript_154E32:: @ 8154E32
+ trainerbattle 2, OPPONENT_PARKER, 0, PetalburgCity_Gym_Text_17AF5A, PetalburgCity_Gym_Text_17AF98, PetalburgCity_Gym_EventScript_154E56
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_Gym_EventScript_154E65
+ msgbox PetalburgCity_Gym_Text_17AFD3, 6
+ end
+
+PetalburgCity_Gym_EventScript_154E56:: @ 8154E56
+ setvar VAR_SPECIAL_5, 0
+ call PetalburgCity_Gym_EventScript_154FFD
+ special DrawWholeMapView
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154E65:: @ 8154E65
+ msgbox PetalburgCity_Gym_Text_17B016, 2
+ end
+
+PetalburgCity_Gym_EventScript_154E6E:: @ 8154E6E
+ trainerbattle 2, OPPONENT_GEORGE, 0, PetalburgCity_Gym_Text_17B058, PetalburgCity_Gym_Text_17B0F7, PetalburgCity_Gym_EventScript_154E92
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_Gym_EventScript_154EA1
+ msgbox PetalburgCity_Gym_Text_17B12C, 6
+ end
+
+PetalburgCity_Gym_EventScript_154E92:: @ 8154E92
+ setvar VAR_SPECIAL_5, 0
+ call PetalburgCity_Gym_EventScript_15503F
+ special DrawWholeMapView
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154EA1:: @ 8154EA1
+ msgbox PetalburgCity_Gym_Text_17B1F4, 2
+ end
+
+PetalburgCity_Gym_EventScript_154EAA:: @ 8154EAA
+ trainerbattle 2, OPPONENT_BERKE, 0, PetalburgCity_Gym_Text_17B237, PetalburgCity_Gym_Text_17B2C0, PetalburgCity_Gym_EventScript_154ECE
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_Gym_EventScript_154EDD
+ msgbox PetalburgCity_Gym_Text_17B2E4, 6
+ end
+
+PetalburgCity_Gym_EventScript_154ECE:: @ 8154ECE
+ setvar VAR_SPECIAL_5, 0
+ call PetalburgCity_Gym_EventScript_155081
+ special DrawWholeMapView
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154EDD:: @ 8154EDD
+ msgbox PetalburgCity_Gym_Text_17B39B, 2
+ end
+
+PetalburgCity_Gym_EventScript_154EE6:: @ 8154EE6
+ trainerbattle 2, OPPONENT_MARY, 0, PetalburgCity_Gym_Text_17B3F7, PetalburgCity_Gym_Text_17B454, PetalburgCity_Gym_EventScript_154F0A
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_Gym_EventScript_154F19
+ msgbox PetalburgCity_Gym_Text_17B46F, 6
+ end
+
+PetalburgCity_Gym_EventScript_154F0A:: @ 8154F0A
+ setvar VAR_SPECIAL_5, 0
+ call PetalburgCity_Gym_EventScript_154FDC
+ special DrawWholeMapView
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154F19:: @ 8154F19
+ msgbox PetalburgCity_Gym_Text_17B521, 2
+ end
+
+PetalburgCity_Gym_EventScript_154F22:: @ 8154F22
+ trainerbattle 2, OPPONENT_LORI, 0, PetalburgCity_Gym_Text_17B58D, PetalburgCity_Gym_Text_17B5CB, PetalburgCity_Gym_EventScript_154F46
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_Gym_EventScript_154F55
+ msgbox PetalburgCity_Gym_Text_17B5EA, 6
+ end
+
+PetalburgCity_Gym_EventScript_154F46:: @ 8154F46
+ setvar VAR_SPECIAL_5, 0
+ call PetalburgCity_Gym_EventScript_15501E
+ special DrawWholeMapView
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154F55:: @ 8154F55
+ msgbox PetalburgCity_Gym_Text_17B6B5, 2
+ end
+
+PetalburgCity_Gym_EventScript_154F5E:: @ 8154F5E
+ trainerbattle 2, OPPONENT_JODY, 0, PetalburgCity_Gym_Text_17B6D4, PetalburgCity_Gym_Text_17B732, PetalburgCity_Gym_EventScript_154F82
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_Gym_EventScript_154F91
+ msgbox PetalburgCity_Gym_Text_17B749, 6
+ end
+
+PetalburgCity_Gym_EventScript_154F82:: @ 8154F82
+ setvar VAR_SPECIAL_5, 0
+ call PetalburgCity_Gym_EventScript_155060
+ special DrawWholeMapView
+ release
+ end
+
+PetalburgCity_Gym_EventScript_154F91:: @ 8154F91
+ msgbox PetalburgCity_Gym_Text_17B7C0, 2
+ end
+
+PetalburgCity_Gym_EventScript_154F9A:: @ 8154F9A
+ setvar VAR_SPECIAL_4, 1
+ compare VAR_SPECIAL_5, 0
+ call_if_eq PetalburgCity_Gym_EventScript_155182
+ compare VAR_SPECIAL_5, 1
+ call_if_eq PetalburgCity_Gym_EventScript_155187
+ call PetalburgCity_Gym_EventScript_1550A2
+ return
+
+PetalburgCity_Gym_EventScript_154FBB:: @ 8154FBB
+ setvar VAR_SPECIAL_4, 2
+ compare VAR_SPECIAL_5, 0
+ call_if_eq PetalburgCity_Gym_EventScript_155182
+ compare VAR_SPECIAL_5, 1
+ call_if_eq PetalburgCity_Gym_EventScript_155187
+ call PetalburgCity_Gym_EventScript_1550C7
+ return
+
+PetalburgCity_Gym_EventScript_154FDC:: @ 8154FDC
+ setvar VAR_SPECIAL_4, 3
+ compare VAR_SPECIAL_5, 0
+ call_if_eq PetalburgCity_Gym_EventScript_155182
+ compare VAR_SPECIAL_5, 1
+ call_if_eq PetalburgCity_Gym_EventScript_155187
+ call PetalburgCity_Gym_EventScript_1550EC
+ return
+
+PetalburgCity_Gym_EventScript_154FFD:: @ 8154FFD
+ setvar VAR_SPECIAL_4, 4
+ compare VAR_SPECIAL_5, 0
+ call_if_eq PetalburgCity_Gym_EventScript_155182
+ compare VAR_SPECIAL_5, 1
+ call_if_eq PetalburgCity_Gym_EventScript_155187
+ call PetalburgCity_Gym_EventScript_155111
+ return
+
+PetalburgCity_Gym_EventScript_15501E:: @ 815501E
+ setvar VAR_SPECIAL_4, 5
+ compare VAR_SPECIAL_5, 0
+ call_if_eq PetalburgCity_Gym_EventScript_155182
+ compare VAR_SPECIAL_5, 1
+ call_if_eq PetalburgCity_Gym_EventScript_155187
+ call PetalburgCity_Gym_EventScript_155124
+ return
+
+PetalburgCity_Gym_EventScript_15503F:: @ 815503F
+ setvar VAR_SPECIAL_4, 6
+ compare VAR_SPECIAL_5, 0
+ call_if_eq PetalburgCity_Gym_EventScript_155182
+ compare VAR_SPECIAL_5, 1
+ call_if_eq PetalburgCity_Gym_EventScript_155187
+ call PetalburgCity_Gym_EventScript_155149
+ return
+
+PetalburgCity_Gym_EventScript_155060:: @ 8155060
+ setvar VAR_SPECIAL_4, 7
+ compare VAR_SPECIAL_5, 0
+ call_if_eq PetalburgCity_Gym_EventScript_155182
+ compare VAR_SPECIAL_5, 1
+ call_if_eq PetalburgCity_Gym_EventScript_155187
+ call PetalburgCity_Gym_EventScript_15515C
+ return
+
+PetalburgCity_Gym_EventScript_155081:: @ 8155081
+ setvar VAR_SPECIAL_4, 8
+ compare VAR_SPECIAL_5, 0
+ call_if_eq PetalburgCity_Gym_EventScript_155182
+ compare VAR_SPECIAL_5, 1
+ call_if_eq PetalburgCity_Gym_EventScript_155187
+ call PetalburgCity_Gym_EventScript_15516F
+ return
+
+PetalburgCity_Gym_EventScript_1550A2:: @ 81550A2
+ setmetatile 6, 85, 528, 0
+ setmetatile 7, 85, 529, 0
+ setmetatile 1, 98, 528, 0
+ setmetatile 2, 98, 529, 0
+ return
+
+PetalburgCity_Gym_EventScript_1550C7:: @ 81550C7
+ setmetatile 6, 46, 528, 0
+ setmetatile 7, 46, 529, 0
+ setmetatile 1, 59, 528, 0
+ setmetatile 2, 59, 529, 0
+ return
+
+PetalburgCity_Gym_EventScript_1550EC:: @ 81550EC
+ setmetatile 6, 59, 528, 0
+ setmetatile 7, 59, 529, 0
+ setmetatile 1, 72, 528, 0
+ setmetatile 2, 72, 529, 0
+ return
+
+PetalburgCity_Gym_EventScript_155111:: @ 8155111
+ setmetatile 1, 20, 528, 0
+ setmetatile 2, 20, 529, 0
+ return
+
+PetalburgCity_Gym_EventScript_155124:: @ 8155124
+ setmetatile 6, 20, 528, 0
+ setmetatile 7, 20, 529, 0
+ setmetatile 1, 33, 528, 0
+ setmetatile 2, 33, 529, 0
+ return
+
+PetalburgCity_Gym_EventScript_155149:: @ 8155149
+ setmetatile 6, 33, 528, 0
+ setmetatile 7, 33, 529, 0
+ return
+
+PetalburgCity_Gym_EventScript_15515C:: @ 815515C
+ setmetatile 1, 7, 528, 0
+ setmetatile 2, 7, 529, 0
+ return
+
+PetalburgCity_Gym_EventScript_15516F:: @ 815516F
+ setmetatile 6, 7, 528, 0
+ setmetatile 7, 7, 529, 0
+ return
+
+PetalburgCity_Gym_EventScript_155182:: @ 8155182
+ special PetalburgGymSlideOpenDoors
+ waitstate
+ return
+
+PetalburgCity_Gym_EventScript_155187:: @ 8155187
+ special PetalburgGymOpenDoorsInstantly
+ return
+
+PetalburgCity_Gym_EventScript_15518B:: @ 815518B
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_Gym_EventScript_1551A0
+ msgbox PetalburgCity_Gym_Text_17AB96, 4
+ release
+ end
+
+PetalburgCity_Gym_EventScript_1551A0:: @ 81551A0
+ msgbox PetalburgCity_Gym_Text_17AD49, 4
+ release
+ end
+
+PetalburgCity_Gym_EventScript_1551AA:: @ 81551AA
+ lockall
+ goto_if_set FLAG_BADGE05_GET, PetalburgCity_Gym_EventScript_1551CA
+ goto PetalburgCity_Gym_EventScript_1551D4
+ end
+
+PetalburgCity_Gym_EventScript_1551BA:: @ 81551BA
+ lockall
+ goto_if_set FLAG_BADGE05_GET, PetalburgCity_Gym_EventScript_1551CA
+ goto PetalburgCity_Gym_EventScript_1551D4
+ end
+
+PetalburgCity_Gym_EventScript_1551CA:: @ 81551CA
+ msgbox PetalburgCity_Gym_Text_17BAC0, 4
+ releaseall
+ end
+
+PetalburgCity_Gym_EventScript_1551D4:: @ 81551D4
+ msgbox PetalburgCity_Gym_Text_17BAA5, 4
+ releaseall
+ end
diff --git a/data/maps/PetalburgCity_House1/scripts.inc b/data/maps/PetalburgCity_House1/scripts.inc
new file mode 100644
index 000000000..7a3b7c1b1
--- /dev/null
+++ b/data/maps/PetalburgCity_House1/scripts.inc
@@ -0,0 +1,10 @@
+PetalburgCity_House1_MapScripts:: @ 81551DE
+ .byte 0
+
+PetalburgCity_House1_EventScript_1551DF:: @ 81551DF
+ msgbox PetalburgCity_House1_Text_17BAFB, 2
+ end
+
+PetalburgCity_House1_EventScript_1551E8:: @ 81551E8
+ msgbox PetalburgCity_House1_Text_17BB4A, 2
+ end
diff --git a/data/maps/PetalburgCity_House2/scripts.inc b/data/maps/PetalburgCity_House2/scripts.inc
new file mode 100644
index 000000000..4cc1325a2
--- /dev/null
+++ b/data/maps/PetalburgCity_House2/scripts.inc
@@ -0,0 +1,10 @@
+PetalburgCity_House2_MapScripts:: @ 81551F1
+ .byte 0
+
+PetalburgCity_House2_EventScript_1551F2:: @ 81551F2
+ msgbox PetalburgCity_House2_Text_17BC4F, 2
+ end
+
+PetalburgCity_House2_EventScript_1551FB:: @ 81551FB
+ msgbox PetalburgCity_House2_Text_17BCB1, 2
+ end
diff --git a/data/maps/PetalburgCity_Mart/scripts.inc b/data/maps/PetalburgCity_Mart/scripts.inc
new file mode 100644
index 000000000..7584f6f19
--- /dev/null
+++ b/data/maps/PetalburgCity_Mart/scripts.inc
@@ -0,0 +1,67 @@
+PetalburgCity_Mart_MapScripts:: @ 81552AF
+ .byte 0
+
+PetalburgCity_Mart_EventScript_1552B0:: @ 81552B0
+ lock
+ faceplayer
+ message PetalburgCity_Mart_Text_1A0BE4
+ waitmessage
+ goto_if_set FLAG_PETALBURG_MART_EXPANDED_ITEMS, PetalburgCity_Mart_EventScript_1552EA
+ pokemart PetalburgCity_Mart_Items1
+ msgbox PetalburgCity_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+PetalburgCity_Mart_Items1:: @ 81552D0
+ .2byte ITEM_POKE_BALL
+ .2byte ITEM_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_AWAKENING
+ .2byte ITEM_ESCAPE_ROPE
+ .2byte ITEM_REPEL
+ .2byte ITEM_X_SPEED
+ .2byte ITEM_X_ATTACK
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_ORANGE_MAIL
+ .2byte ITEM_NONE
+ release
+ end
+
+PetalburgCity_Mart_EventScript_1552EA:: @ 81552EA
+ pokemart PetalburgCity_Mart_Items2
+ msgbox PetalburgCity_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+PetalburgCity_Mart_Items2:: @ 81552FC
+ .2byte ITEM_POKE_BALL
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_POTION
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_AWAKENING
+ .2byte ITEM_ESCAPE_ROPE
+ .2byte ITEM_REPEL
+ .2byte ITEM_X_SPEED
+ .2byte ITEM_X_ATTACK
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_ORANGE_MAIL
+ .2byte ITEM_NONE
+ release
+ end
+
+PetalburgCity_Mart_EventScript_15531A:: @ 815531A
+ msgbox PetalburgCity_Mart_Text_17BFFD, 2
+ end
+
+PetalburgCity_Mart_EventScript_155323:: @ 8155323
+ msgbox PetalburgCity_Mart_Text_17C06C, 2
+ end
+
+PetalburgCity_Mart_EventScript_15532C:: @ 815532C
+ msgbox PetalburgCity_Mart_Text_17C0BC, 2
+ end
diff --git a/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc b/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..136cc11c5
--- /dev/null
+++ b/data/maps/PetalburgCity_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,56 @@
+PetalburgCity_PokemonCenter_1F_MapScripts:: @ 8155204
+ map_script 3, PetalburgCity_PokemonCenter_1F_MapScript1_15520A
+ .byte 0
+
+PetalburgCity_PokemonCenter_1F_MapScript1_15520A:: @ 815520A
+ setrespawn 3
+ call PetalburgCity_PokemonCenter_1F_EventScript_19FD1B
+ end
+
+PetalburgCity_PokemonCenter_1F_EventScript_155213:: @ 8155213
+ setvar VAR_SPECIAL_B, 1
+ call PetalburgCity_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+PetalburgCity_PokemonCenter_1F_EventScript_155221:: @ 8155221
+ msgbox PetalburgCity_PokemonCenter_1F_Text_17BD30, 2
+ end
+
+PetalburgCity_PokemonCenter_1F_EventScript_15522A:: @ 815522A
+ msgbox PetalburgCity_PokemonCenter_1F_Text_17BD92, 2
+ end
+
+PetalburgCity_PokemonCenter_1F_EventScript_155233:: @ 8155233
+ lock
+ faceplayer
+ msgbox PetalburgCity_PokemonCenter_1F_Text_17BDC5, 4
+ specialvar RESULT, IsStarterInParty
+ compare RESULT, 1
+ goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_15524F
+ release
+ end
+
+PetalburgCity_PokemonCenter_1F_EventScript_15524F:: @ 815524F
+ compare VAR_STARTER_MON, 0
+ call_if_eq PetalburgCity_PokemonCenter_1F_EventScript_155272
+ compare VAR_STARTER_MON, 1
+ call_if_eq PetalburgCity_PokemonCenter_1F_EventScript_15527B
+ compare VAR_STARTER_MON, 2
+ call_if_eq PetalburgCity_PokemonCenter_1F_EventScript_155284
+ release
+ end
+
+PetalburgCity_PokemonCenter_1F_EventScript_155272:: @ 8155272
+ msgbox PetalburgCity_PokemonCenter_1F_Text_17BE6C, 4
+ return
+
+PetalburgCity_PokemonCenter_1F_EventScript_15527B:: @ 815527B
+ msgbox PetalburgCity_PokemonCenter_1F_Text_17BEF1, 4
+ return
+
+PetalburgCity_PokemonCenter_1F_EventScript_155284:: @ 8155284
+ msgbox PetalburgCity_PokemonCenter_1F_Text_17BF73, 4
+ return
diff --git a/data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc b/data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..a95823736
--- /dev/null
+++ b/data/maps/PetalburgCity_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+PetalburgCity_PokemonCenter_2F_MapScripts:: @ 815528D
+ map_script 2, PetalburgCity_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, PetalburgCity_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, PetalburgCity_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+PetalburgCity_PokemonCenter_2F_EventScript_15529D:: @ 815529D
+ call PetalburgCity_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+PetalburgCity_PokemonCenter_2F_EventScript_1552A3:: @ 81552A3
+ call PetalburgCity_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+PetalburgCity_PokemonCenter_2F_EventScript_1552A9:: @ 81552A9
+ call PetalburgCity_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/PetalburgCity_WallysHouse/scripts.inc b/data/maps/PetalburgCity_WallysHouse/scripts.inc
new file mode 100644
index 000000000..1a1605817
--- /dev/null
+++ b/data/maps/PetalburgCity_WallysHouse/scripts.inc
@@ -0,0 +1,61 @@
+PetalburgCity_WallysHouse_MapScripts:: @ 81543C3
+ .byte 0
+
+PetalburgCity_WallysHouse_EventScript_1543C4:: @ 81543C4
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_WALLY_VICTORY_ROAD, PetalburgCity_WallysHouse_EventScript_1543F7
+ goto_if_set FLAG_RECEIVED_HM03, PetalburgCity_WallysHouse_EventScript_154427
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_WallysHouse_EventScript_154406
+ goto_if_set FLAG_THANKED_FOR_PLAYING_WITH_WALLY, PetalburgCity_WallysHouse_EventScript_15443B
+ msgbox PetalburgCity_WallysHouse_Text_179805, 4
+ setflag FLAG_THANKED_FOR_PLAYING_WITH_WALLY
+ release
+ end
+
+PetalburgCity_WallysHouse_EventScript_1543F7:: @ 81543F7
+ goto_if_set FLAG_RECEIVED_HM03, PetalburgCity_WallysHouse_EventScript_154431
+ goto PetalburgCity_WallysHouse_EventScript_154406
+ end
+
+PetalburgCity_WallysHouse_EventScript_154406:: @ 8154406
+ msgbox PetalburgCity_WallysHouse_Text_179996, 4
+ giveitem_std ITEM_HM03_SURF
+ setflag FLAG_RECEIVED_HM03
+ msgbox PetalburgCity_WallysHouse_Text_179B14, 4
+ release
+ end
+
+PetalburgCity_WallysHouse_EventScript_154427:: @ 8154427
+ msgbox PetalburgCity_WallysHouse_Text_179B5B, 4
+ release
+ end
+
+PetalburgCity_WallysHouse_EventScript_154431:: @ 8154431
+ msgbox PetalburgCity_WallysHouse_Text_179B92, 4
+ release
+ end
+
+PetalburgCity_WallysHouse_EventScript_15443B:: @ 815443B
+ msgbox PetalburgCity_WallysHouse_Text_179975, 4
+ release
+ end
+
+PetalburgCity_WallysHouse_EventScript_154445:: @ 8154445
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_HM03, PetalburgCity_WallysHouse_EventScript_15446D
+ goto_if_set FLAG_DEFEATED_PETALBURG_GYM, PetalburgCity_WallysHouse_EventScript_154463
+ msgbox PetalburgCity_WallysHouse_Text_179C2C, 4
+ release
+ end
+
+PetalburgCity_WallysHouse_EventScript_154463:: @ 8154463
+ msgbox PetalburgCity_WallysHouse_Text_179CA1, 4
+ release
+ end
+
+PetalburgCity_WallysHouse_EventScript_15446D:: @ 815446D
+ msgbox PetalburgCity_WallysHouse_Text_179D12, 4
+ release
+ end
diff --git a/data/maps/PetalburgWoods/scripts.inc b/data/maps/PetalburgWoods/scripts.inc
new file mode 100644
index 000000000..1d5fbeaf2
--- /dev/null
+++ b/data/maps/PetalburgWoods/scripts.inc
@@ -0,0 +1,282 @@
+PetalburgWoods_MapScripts:: @ 815CC9C
+ map_script 3, PetalburgWoods_MapScript1_15CCA2
+ .byte 0
+
+PetalburgWoods_MapScript1_15CCA2:: @ 815CCA2
+ call PetalburgWoods_EventScript_1A0196
+ end
+
+PetalburgWoods_EventScript_15CCA8:: @ 815CCA8
+ lockall
+ call PetalburgWoods_EventScript_15CDE6
+ applymovement 4, PetalburgWoods_Movement_15CE89
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194D92, 4
+ closemessage
+ playbgm BGM_EVIL_TEAM, FALSE
+ applymovement 3, PetalburgWoods_Movement_15CEC3
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194DED, 4
+ closemessage
+ applymovement 3, PetalburgWoods_Movement_15CEB0
+ waitmovement 0
+ applymovement 4, PetalburgWoods_Movement_1A0841
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194E6B, 4
+ closemessage
+ applymovement 4, PetalburgWoods_Movement_15CE9E
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194E9A, 4
+ applymovement 3, PetalburgWoods_Movement_15CEC8
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194EE8, 4
+ trainerbattle 3, OPPONENT_PETALBURG_WOODS_GRUNT, 0, PetalburgWoods_Text_194F83
+ applymovement 3, PetalburgWoods_Movement_15CEB3
+ waitmovement 0
+ call PetalburgWoods_EventScript_15CDFA
+ applymovement 4, PetalburgWoods_Movement_15CE80
+ waitmovement 0
+ goto PetalburgWoods_EventScript_15CE69
+ end
+
+PetalburgWoods_EventScript_15CD42:: @ 815CD42
+ lockall
+ call PetalburgWoods_EventScript_15CDE6
+ applymovement 4, PetalburgWoods_Movement_15CE8E
+ waitmovement 0
+ applymovement 255, PetalburgWoods_Movement_1A083F
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194D92, 4
+ closemessage
+ playbgm BGM_EVIL_TEAM, FALSE
+ applymovement 3, PetalburgWoods_Movement_15CEC3
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194DED, 4
+ closemessage
+ applymovement 3, PetalburgWoods_Movement_15CEBF
+ waitmovement 0
+ applymovement 4, PetalburgWoods_Movement_1A0841
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194E6B, 4
+ closemessage
+ applymovement 4, PetalburgWoods_Movement_15CEA4
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194E9A, 4
+ applymovement 255, PetalburgWoods_Movement_1A0841
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194EE8, 4
+ trainerbattle 3, OPPONENT_PETALBURG_WOODS_GRUNT, 0, PetalburgWoods_Text_194F83
+ applymovement 3, PetalburgWoods_Movement_15CEB3
+ waitmovement 0
+ call PetalburgWoods_EventScript_15CDFA
+ applymovement 4, PetalburgWoods_Movement_15CE95
+ waitmovement 0
+ goto PetalburgWoods_EventScript_15CE69
+ end
+
+PetalburgWoods_EventScript_15CDE6:: @ 815CDE6
+ applymovement 4, PetalburgWoods_Movement_15CE73
+ waitmovement 0
+ msgbox PetalburgWoods_Text_194D71, 4
+ closemessage
+ return
+
+PetalburgWoods_EventScript_15CDFA:: @ 815CDFA
+ msgbox PetalburgWoods_Text_194FA4, 4
+ closemessage
+ applymovement 3, PetalburgWoods_Movement_15CEB7
+ waitmovement 0
+ removeobject 3
+ applymovement 255, PetalburgWoods_Movement_1A0845
+ waitmovement 0
+ msgbox PetalburgWoods_Text_19507E, 4
+ giveitem_std ITEM_GREAT_BALL
+ compare RESULT, 0
+ goto_if_eq PetalburgWoods_EventScript_15CE3F
+ goto PetalburgWoods_EventScript_15CE4D
+ end
+
+PetalburgWoods_EventScript_15CE3F:: @ 815CE3F
+ msgbox PetalburgWoods_Text_195182, 4
+ goto PetalburgWoods_EventScript_15CE4D
+ end
+
+PetalburgWoods_EventScript_15CE4D:: @ 815CE4D
+ msgbox PetalburgWoods_Text_19510A, 4
+ applymovement 4, PetalburgWoods_Movement_15CEA8
+ waitmovement 0
+ msgbox PetalburgWoods_Text_195153, 4
+ closemessage
+ return
+
+PetalburgWoods_EventScript_15CE69:: @ 815CE69
+ removeobject 4
+ setvar VAR_PETALBURG_WOODS_STATE, 1
+ releaseall
+ end
+
+PetalburgWoods_Movement_15CE73:: @ 815CE73
+ face_up
+ delay_16
+ face_right
+ delay_16
+ face_left
+ delay_16
+ face_down
+ delay_16
+ face_right
+ delay_16
+ face_up
+ delay_16
+ end_movement
+
+PetalburgWoods_Movement_15CE80:: @ 815CE80
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+PetalburgWoods_Movement_15CE89:: @ 815CE89
+ delay_16
+ face_player
+ walk_down
+ walk_down
+ end_movement
+
+PetalburgWoods_Movement_15CE8E:: @ 815CE8E
+ delay_16
+ face_player
+ walk_down
+ walk_down
+ walk_down
+ walk_in_place_fastest_right
+ end_movement
+
+PetalburgWoods_Movement_15CE95:: @ 815CE95
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+PetalburgWoods_Movement_15CE9E:: @ 815CE9E
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_in_place_fastest_up
+ end_movement
+
+PetalburgWoods_Movement_15CEA4:: @ 815CEA4
+ walk_fast_down
+ walk_fast_right
+ walk_in_place_fastest_up
+ end_movement
+
+PetalburgWoods_Movement_15CEA8:: @ 815CEA8
+ walk_in_place_fastest_down
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ face_up
+ end_movement
+
+PetalburgWoods_Movement_15CEB0:: @ 815CEB0
+ walk_fast_down
+ walk_fast_down
+ end_movement
+
+PetalburgWoods_Movement_15CEB3:: @ 815CEB3
+ lock_facing_direction
+ walk_up
+ unlock_facing_direction
+ end_movement
+
+PetalburgWoods_Movement_15CEB7:: @ 815CEB7
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ delay_16
+ delay_16
+ end_movement
+
+PetalburgWoods_Movement_15CEBF:: @ 815CEBF
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ end_movement
+
+PetalburgWoods_Movement_15CEC3:: @ 815CEC3
+ walk_down
+ walk_down
+ delay_16
+ delay_16
+ end_movement
+
+PetalburgWoods_Movement_15CEC8:: @ 815CEC8
+ walk_down
+ end_movement
+
+PetalburgWoods_EventScript_15CECA:: @ 815CECA
+ msgbox PetalburgWoods_Text_1953AC, 2
+ end
+
+PetalburgWoods_EventScript_15CED3:: @ 815CED3
+ msgbox PetalburgWoods_Text_19542B, 2
+ end
+
+PetalburgWoods_EventScript_15CEDC:: @ 815CEDC
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_MIRACLE_SEED, PetalburgWoods_EventScript_15CF0B
+ msgbox PetalburgWoods_Text_19549E, 4
+ giveitem_std ITEM_MIRACLE_SEED
+ compare RESULT, 0
+ goto_if_eq PetalburgWoods_EventScript_1A029B
+ setflag FLAG_RECEIVED_MIRACLE_SEED
+ release
+ end
+
+PetalburgWoods_EventScript_15CF0B:: @ 815CF0B
+ msgbox PetalburgWoods_Text_195503, 4
+ release
+ end
+
+PetalburgWoods_EventScript_15CF15:: @ 815CF15
+ msgbox PetalburgWoods_Text_1955B0, 3
+ end
+
+PetalburgWoods_EventScript_15CF1E:: @ 815CF1E
+ msgbox PetalburgWoods_Text_1956A6, 3
+ end
+
+PetalburgWoods_EventScript_15CF27:: @ 815CF27
+ trainerbattle 0, OPPONENT_LYLE, 0, PetalburgWoods_Text_1951BE, PetalburgWoods_Text_195202
+ msgbox PetalburgWoods_Text_195232, 6
+ end
+
+PetalburgWoods_EventScript_15CF3E:: @ 815CF3E
+ trainerbattle 0, OPPONENT_JAMES_1, 0, PetalburgWoods_Text_19526A, PetalburgWoods_Text_1952AE
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq PetalburgWoods_EventScript_15CF65
+ msgbox PetalburgWoods_Text_1952CC, 6
+ end
+
+PetalburgWoods_EventScript_15CF65:: @ 815CF65
+ trainerbattle 5, OPPONENT_JAMES_1, 0, PetalburgWoods_Text_195306, PetalburgWoods_Text_195338
+ msgbox PetalburgWoods_Text_195356, 6
+ end
diff --git a/data/maps/RecordCorner/scripts.inc b/data/maps/RecordCorner/scripts.inc
new file mode 100644
index 000000000..8a2c1db22
--- /dev/null
+++ b/data/maps/RecordCorner/scripts.inc
@@ -0,0 +1,2 @@
+RecordCorner_MapScripts:: @ 815F57E
+ .byte 0
diff --git a/data/maps/Route101/scripts.inc b/data/maps/Route101/scripts.inc
new file mode 100644
index 000000000..a4af7ceb4
--- /dev/null
+++ b/data/maps/Route101/scripts.inc
@@ -0,0 +1,246 @@
+Route101_MapScripts:: @ 814E924
+ map_script 3, Route101_MapScript1_14E92F
+ map_script 2, Route101_MapScript2_14E935
+ .byte 0
+
+Route101_MapScript1_14E92F:: @ 814E92F
+ call Route101_EventScript_1A02F4
+ end
+
+Route101_MapScript2_14E935:: @ 814E935
+ map_script_2 VAR_ROUTE101_STATE, 0, Route101_EventScript_14E93F
+ .2byte 0
+
+Route101_EventScript_14E93F:: @ 814E93F
+ setflag FLAG_SPECIAL_FLAG_0
+ setvar VAR_ROUTE101_STATE, 1
+ end
+
+Route101_EventScript_14E948:: @ 814E948
+ lockall
+ playbgm BGM_EVENT0, TRUE
+ msgbox Route101_Text_16D10E, 4
+ closemessage
+ setobjectxy 2, 0, 15
+ setobjectxy 4, 0, 16
+ applymovement 255, Route101_Movement_14EA2C
+ applymovement 2, Route101_Movement_14EA50
+ applymovement 4, Route101_Movement_14EA1F
+ waitmovement 0
+ applymovement 4, Route101_Movement_14EA00
+ applymovement 2, Route101_Movement_14EA31
+ waitmovement 0
+ applymovement 2, Route101_Movement_1A0843
+ waitmovement 0
+ applymovement 4, Route101_Movement_14EA27
+ applymovement 2, Route101_Movement_14EA58
+ waitmovement 0
+ msgbox Route101_Text_16D119, 4
+ closemessage
+ setvar VAR_ROUTE101_STATE, 2
+ releaseall
+ end
+
+Route101_EventScript_14E9B8:: @ 814E9B8
+ lockall
+ msgbox Route101_Text_16D15E, 4
+ closemessage
+ applymovement 255, Route101_Movement_14E9FA
+ waitmovement 0
+ releaseall
+ end
+
+Route101_EventScript_14E9CE:: @ 814E9CE
+ lockall
+ msgbox Route101_Text_16D15E, 4
+ closemessage
+ applymovement 255, Route101_Movement_14E9FC
+ waitmovement 0
+ releaseall
+ end
+
+Route101_EventScript_14E9E4:: @ 814E9E4
+ lockall
+ msgbox Route101_Text_16D15E, 4
+ closemessage
+ applymovement 255, Route101_Movement_14E9FE
+ waitmovement 0
+ releaseall
+ end
+
+Route101_Movement_14E9FA:: @ 814E9FA
+ walk_up
+ end_movement
+
+Route101_Movement_14E9FC:: @ 814E9FC
+ walk_right
+ end_movement
+
+Route101_Movement_14E9FE:: @ 814E9FE
+ walk_down
+ end_movement
+
+Route101_Movement_14EA00:: @ 814EA00
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_fast_left
+ end_movement
+
+Route101_Movement_14EA1F:: @ 814EA1F
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ end_movement
+
+@ 814EA26
+ end_movement
+
+Route101_Movement_14EA27:: @ 814EA27
+ walk_in_place_fast_left
+ walk_in_place_fast_left
+ walk_in_place_fast_left
+ walk_in_place_fast_left
+ end_movement
+
+Route101_Movement_14EA2C:: @ 814EA2C
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+Route101_Movement_14EA31:: @ 814EA31
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ end_movement
+
+Route101_Movement_14EA50:: @ 814EA50
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+@ 814EA57
+ end_movement
+
+Route101_Movement_14EA58:: @ 814EA58
+ walk_in_place_fast_right
+ walk_in_place_fast_right
+ walk_in_place_fast_right
+ walk_in_place_fast_right
+ end_movement
+
+@ 814EA5D
+ walk_up
+ walk_up
+ end_movement
+
+@ 814EA60
+ walk_up
+ walk_left
+ walk_up
+ end_movement
+
+Route101_EventScript_14EA64:: @ 814EA64
+ msgbox Route101_Text_16D25E, 2
+ end
+
+Route101_EventScript_14EA6D:: @ 814EA6D
+ msgbox Route101_Text_16D2CB, 2
+ end
+
+Route101_EventScript_14EA76:: @ 814EA76
+ msgbox Route101_Text_16D349, 3
+ end
+
+Route101_EventScript_14EA7F:: @ 814EA7F
+ lock
+ faceplayer
+ setflag FLAG_SYS_POKEMON_GET
+ setflag FLAG_RESCUED_BIRCH
+ fadescreen 1
+ removeobject 4
+ setobjectxy 255, 6, 13
+ applymovement 255, Route101_Movement_1A083F
+ waitmovement 0
+ special ScrSpecial_ChooseStarter
+ waitstate
+ applymovement 2, Route101_Movement_14EAD7
+ waitmovement 0
+ msgbox Route101_Text_16D191, 4
+ special ScrSpecial_HealPlayerParty
+ setflag FLAG_HIDE_BIRCH_BATTLE_POOCHYENA
+ clearflag FLAG_HIDE_BIRCH_IN_LAB
+ setflag FLAG_HIDE_BIRCH_STARTERS_BAG
+ setvar VAR_BIRCH_LAB_STATE, 2
+ setvar VAR_ROUTE101_STATE, 3
+ clearflag FLAG_SPECIAL_FLAG_0
+ warp MAP_LITTLEROOT_TOWN_PROFESSOR_BIRCHS_LAB, 255, 6, 5
+ waitstate
+ release
+ end
+
+Route101_Movement_14EAD7:: @ 814EAD7
+ walk_right
+ end_movement
diff --git a/data/maps/Route102/scripts.inc b/data/maps/Route102/scripts.inc
new file mode 100644
index 000000000..ad1571caa
--- /dev/null
+++ b/data/maps/Route102/scripts.inc
@@ -0,0 +1,46 @@
+Route102_MapScripts:: @ 814EAD9
+ .byte 0
+
+Route102_EventScript_14EADA:: @ 814EADA
+ msgbox Route102_Text_16D431, 2
+ end
+
+Route102_EventScript_14EAE3:: @ 814EAE3
+ msgbox Route102_Text_16D547, 3
+ end
+
+Route102_EventScript_14EAEC:: @ 814EAEC
+ msgbox Route102_Text_16D55F, 3
+ end
+
+Route102_EventScript_14EAF5:: @ 814EAF5
+ msgbox Route102_Text_16D51A, 2
+ end
+
+Route102_EventScript_14EAFE:: @ 814EAFE
+ trainerbattle 0, OPPONENT_CALVIN_1, 0, Route102_Text_1B79C3, Route102_Text_1B7A2C
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route102_EventScript_14EB25
+ msgbox Route102_Text_1B7A60, 6
+ end
+
+Route102_EventScript_14EB25:: @ 814EB25
+ trainerbattle 5, OPPONENT_CALVIN_1, 0, Route102_Text_1B7A9F, Route102_Text_1B7AFD
+ msgbox Route102_Text_1B7B2F, 6
+ end
+
+Route102_EventScript_14EB3C:: @ 814EB3C
+ trainerbattle 0, OPPONENT_RICK, 0, Route102_Text_1B7C05, Route102_Text_1B7C40
+ msgbox Route102_Text_1B7C52, 6
+ end
+
+Route102_EventScript_14EB53:: @ 814EB53
+ trainerbattle 0, OPPONENT_TIANA, 0, Route102_Text_1B7C97, Route102_Text_1B7CEC
+ msgbox Route102_Text_1B7D11, 6
+ end
+
+Route102_EventScript_14EB6A:: @ 814EB6A
+ trainerbattle 0, OPPONENT_ALLEN, 0, Route102_Text_1B7B68, Route102_Text_1B7B9D
+ msgbox Route102_Text_1B7BD0, 6
+ end
diff --git a/data/maps/Route103/scripts.inc b/data/maps/Route103/scripts.inc
new file mode 100644
index 000000000..94d0aa8d6
--- /dev/null
+++ b/data/maps/Route103/scripts.inc
@@ -0,0 +1,216 @@
+Route103_MapScripts:: @ 814EB81
+ map_script 3, Route103_MapScript1_14EB87
+ .byte 0
+
+Route103_MapScript1_14EB87:: @ 814EB87
+ call Route103_EventScript_1A014E
+ call Route103_EventScript_1A02F4
+ end
+
+Route103_EventScript_14EB92:: @ 814EB92
+ lockall
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq Route103_EventScript_14EBAB
+ compare RESULT, 1
+ goto_if_eq Route103_EventScript_14EC04
+ end
+
+Route103_EventScript_14EBAB:: @ 814EBAB
+ msgbox Route103_Text_16D57A, 4
+ playbgm BGM_GIRL_SUP, TRUE
+ applymovement 2, Route103_Movement_1A0839
+ waitmovement 0
+ applymovement 2, Route103_Movement_1A0833
+ waitmovement 0
+ applymovement 2, Route103_Movement_1A0835
+ waitmovement 0
+ msgbox Route103_Text_16D5B6, 4
+ switch VAR_STARTER_MON
+ case 0, Route103_EventScript_14EC5D
+ case 1, Route103_EventScript_14EC6D
+ case 2, Route103_EventScript_14EC7D
+ end
+
+Route103_EventScript_14EC04:: @ 814EC04
+ msgbox Route103_Text_16D762, 4
+ playbgm BGM_BOY_SUP, TRUE
+ applymovement 2, Route103_Movement_1A0839
+ waitmovement 0
+ applymovement 2, Route103_Movement_1A0833
+ waitmovement 0
+ applymovement 2, Route103_Movement_1A0835
+ waitmovement 0
+ msgbox Route103_Text_16D7A9, 4
+ switch VAR_STARTER_MON
+ case 0, Route103_EventScript_14EC8D
+ case 1, Route103_EventScript_14EC9D
+ case 2, Route103_EventScript_14ECAD
+ end
+
+Route103_EventScript_14EC5D:: @ 814EC5D
+ trainerbattle 3, OPPONENT_MAY_4, 0, Route103_Text_16D65B
+ goto Route103_EventScript_14ECBD
+ end
+
+Route103_EventScript_14EC6D:: @ 814EC6D
+ trainerbattle 3, OPPONENT_MAY_7, 0, Route103_Text_16D65B
+ goto Route103_EventScript_14ECBD
+ end
+
+Route103_EventScript_14EC7D:: @ 814EC7D
+ trainerbattle 3, OPPONENT_MAY_1, 0, Route103_Text_16D65B
+ goto Route103_EventScript_14ECBD
+ end
+
+Route103_EventScript_14EC8D:: @ 814EC8D
+ trainerbattle 3, OPPONENT_BRENDAN_4, 0, Route103_Text_16D836
+ goto Route103_EventScript_14ECCB
+ end
+
+Route103_EventScript_14EC9D:: @ 814EC9D
+ trainerbattle 3, OPPONENT_BRENDAN_7, 0, Route103_Text_16D836
+ goto Route103_EventScript_14ECCB
+ end
+
+Route103_EventScript_14ECAD:: @ 814ECAD
+ trainerbattle 3, OPPONENT_BRENDAN_1, 0, Route103_Text_16D836
+ goto Route103_EventScript_14ECCB
+ end
+
+Route103_EventScript_14ECBD:: @ 814ECBD
+ msgbox Route103_Text_16D688, 4
+ goto Route103_EventScript_14ECD9
+ end
+
+Route103_EventScript_14ECCB:: @ 814ECCB
+ msgbox Route103_Text_16D856, 4
+ goto Route103_EventScript_14ECD9
+ end
+
+Route103_EventScript_14ECD9:: @ 814ECD9
+ closemessage
+ switch FACING
+ case 1, Route103_EventScript_14ED29
+ case 2, Route103_EventScript_14ED0C
+ case 3, Route103_EventScript_14ED29
+ case 4, Route103_EventScript_14ED29
+ end
+
+Route103_EventScript_14ED0C:: @ 814ED0C
+ applymovement 2, Route103_Movement_14ED67
+ waitmovement 0
+ playse SE_DANSA
+ applymovement 2, Route103_Movement_14ED6B
+ waitmovement 0
+ goto Route103_EventScript_14ED46
+ end
+
+Route103_EventScript_14ED29:: @ 814ED29
+ applymovement 2, Route103_Movement_14ED71
+ waitmovement 0
+ playse SE_DANSA
+ applymovement 2, Route103_Movement_14ED74
+ waitmovement 0
+ goto Route103_EventScript_14ED46
+ end
+
+Route103_EventScript_14ED46:: @ 814ED46
+ removeobject 2
+ setvar VAR_ROUTE103_STATE, 1
+ setvar VAR_BIRCH_LAB_STATE, 4
+ clearflag FLAG_HIDE_RIVAL_BIRCH_LAB
+ setflag FLAG_DEFEATED_RIVAL_ROUTE103
+ setvar VAR_OLDALE_STATE, 1
+ clearflag FLAG_HIDE_RIVAL_OLDALE_TOWN
+ savebgm 0
+ fadedefaultbgm
+ releaseall
+ end
+
+Route103_Movement_14ED67:: @ 814ED67
+ walk_left
+ walk_down
+ walk_down
+ end_movement
+
+Route103_Movement_14ED6B:: @ 814ED6B
+ jump_2_down
+ delay_16
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+Route103_Movement_14ED71:: @ 814ED71
+ walk_down
+ walk_down
+ end_movement
+
+Route103_Movement_14ED74:: @ 814ED74
+ jump_2_down
+ delay_16
+ walk_down
+ walk_down
+ end_movement
+
+Route103_EventScript_14ED79:: @ 814ED79
+ msgbox Route103_Text_16D950, 2
+ end
+
+Route103_EventScript_14ED82:: @ 814ED82
+ msgbox Route103_Text_16D996, 2
+ end
+
+Route103_EventScript_14ED8B:: @ 814ED8B
+ msgbox Route103_Text_16D9FB, 3
+ end
+
+Route103_EventScript_14ED94:: @ 814ED94
+ trainerbattle 0, OPPONENT_DAISY, 0, Route103_Text_1B7D55, Route103_Text_1B7D8B
+ msgbox Route103_Text_1B7DB2, 6
+ end
+
+Route103_EventScript_14EDAB:: @ 814EDAB
+ trainerbattle 4, OPPONENT_AMY_AND_LIV_1, 0, Route103_Text_1B7DF7, Route103_Text_1B7E3B, Route103_Text_1B7EAC
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route103_EventScript_14EDD6
+ msgbox Route103_Text_1B7E50, 6
+ end
+
+Route103_EventScript_14EDD6:: @ 814EDD6
+ trainerbattle 7, OPPONENT_AMY_AND_LIV_1, 0, Route103_Text_1B7FE7, Route103_Text_1B802B, Route103_Text_1B80AF
+ msgbox Route103_Text_1B8053, 6
+ end
+
+Route103_EventScript_14EDF1:: @ 814EDF1
+ trainerbattle 4, OPPONENT_AMY_AND_LIV_1, 0, Route103_Text_1B7EFB, Route103_Text_1B7F20, Route103_Text_1B7F8E
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route103_EventScript_14EE1C
+ msgbox Route103_Text_1B7F40, 6
+ end
+
+Route103_EventScript_14EE1C:: @ 814EE1C
+ trainerbattle 7, OPPONENT_AMY_AND_LIV_1, 0, Route103_Text_1B80FE, Route103_Text_1B8123, Route103_Text_1B81A1
+ msgbox Route103_Text_1B814D, 6
+ end
+
+Route103_EventScript_14EE37:: @ 814EE37
+ trainerbattle 0, OPPONENT_ANDREW, 0, Route103_Text_1B81FA, Route103_Text_1B8258
+ msgbox Route103_Text_1B8281, 6
+ end
+
+Route103_EventScript_14EE4E:: @ 814EE4E
+ trainerbattle 0, OPPONENT_MIGUEL_1, 0, Route103_Text_1B82A9, Route103_Text_1B82EC
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route103_EventScript_14EE75
+ msgbox Route103_Text_1B830D, 6
+ end
+
+Route103_EventScript_14EE75:: @ 814EE75
+ trainerbattle 5, OPPONENT_MIGUEL_1, 0, Route103_Text_1B8349, Route103_Text_1B838C
+ msgbox Route103_Text_1B83A4, 6
+ end
diff --git a/data/maps/Route104/scripts.inc b/data/maps/Route104/scripts.inc
new file mode 100644
index 000000000..8fda04ea5
--- /dev/null
+++ b/data/maps/Route104/scripts.inc
@@ -0,0 +1,454 @@
+Route104_MapScripts:: @ 814EE8C
+ map_script 2, Route104_MapScript2_14EE97
+ map_script 3, Route104_MapScript1_14EEA8
+ .byte 0
+
+Route104_MapScript2_14EE97:: @ 814EE97
+ map_script_2 VAR_BOARD_BRINEY_BOAT_ROUTE104_STATE, 1, Route104_EventScript_14EEA1
+ .2byte 0
+
+Route104_EventScript_14EEA1:: @ 814EEA1
+ lockall
+ goto Route104_EventScript_14EFD5
+ end
+
+Route104_MapScript1_14EEA8:: @ 814EEA8
+ call Route104_EventScript_14EEAE
+ end
+
+Route104_EventScript_14EEAE:: @ 814EEAE
+ goto_if_unset FLAG_MET_PRETTY_PETAL_SHOP_OWNER, Route104_EventScript_14EEC4
+ goto_if_unset FLAG_BADGE03_GET, Route104_EventScript_14EEC4
+ clearflag FLAG_HIDE_FLOWER_SHOP_WORKER_OUTSIDE
+ return
+
+Route104_EventScript_14EEC4:: @ 814EEC4
+ setflag FLAG_HIDE_FLOWER_SHOP_WORKER_OUTSIDE
+ return
+
+Route104_EventScript_14EEC8:: @ 814EEC8
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_CHESTO_BERRY_ROUTE104, Route104_EventScript_14EEFF
+ msgbox Route104_Text_1C55B9, 4
+ giveitem_std ITEM_CHESTO_BERRY
+ compare RESULT, 0
+ goto_if_eq Route104_EventScript_1A029B
+ setflag FLAG_RECEIVED_CHESTO_BERRY_ROUTE104
+ msgbox Route104_Text_1C5665, 4
+ release
+ end
+
+Route104_EventScript_14EEFF:: @ 814EEFF
+ msgbox Route104_Text_1C5665, 4
+ release
+ end
+
+Route104_EventScript_14EF09:: @ 814EF09
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_WHITE_HERB, Route104_EventScript_14EF38
+ msgbox Route104_Text_16DD91, 4
+ giveitem_std ITEM_WHITE_HERB
+ compare RESULT, 0
+ goto_if_eq Route104_EventScript_1A029B
+ setflag FLAG_RECEIVED_WHITE_HERB
+ release
+ end
+
+Route104_EventScript_14EF38:: @ 814EF38
+ msgbox Route104_Text_16DE36, 4
+ release
+ end
+
+Route104_EventScript_14EF42:: @ 814EF42
+ msgbox Route104_Text_16DA13, 2
+ end
+
+Route104_EventScript_14EF4B:: @ 814EF4B
+ msgbox Route104_Text_16DA89, 3
+ end
+
+Route104_EventScript_14EF54:: @ 814EF54
+ msgbox Route104_Text_16DEB3, 3
+ end
+
+Route104_EventScript_14EF5D:: @ 814EF5D
+ msgbox Route104_Text_16DEC8, 3
+ end
+
+Route104_EventScript_14EF66:: @ 814EF66
+ msgbox Route104_Text_16DEE3, 3
+ end
+
+Route104_EventScript_14EF6F:: @ 814EF6F
+ msgbox Route104_Text_16DEFD, 3
+ end
+
+Route104_EventScript_14EF78:: @ 814EF78
+ msgbox Route104_Text_16DF16, 3
+ end
+
+Route104_EventScript_14EF81:: @ 814EF81
+ msgbox Route104_Text_16DAC9, 2
+ end
+
+Route104_EventScript_14EF8A:: @ 814EF8A
+ msgbox Route104_Text_16DB5C, 2
+ end
+
+Route104_EventScript_14EF93:: @ 814EF93
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM09, Route104_EventScript_14EFC2
+ msgbox Route104_Text_16DC5F, 4
+ giveitem_std ITEM_TM09_BULLET_SEED
+ compare RESULT, 0
+ goto_if_eq Route104_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM09
+ release
+ end
+
+Route104_EventScript_14EFC2:: @ 814EFC2
+ msgbox Route104_Text_16DD0E, 4
+ release
+ end
+
+Route104_EventScript_14EFCC:: @ 814EFCC
+ msgbox Route104_Text_16DBC9, 2
+ end
+
+Route104_EventScript_14EFD5:: @ 814EFD5
+ setobjectpriority 8, MAP_ROUTE104, 0
+ setobjectpriority 255, MAP_ROUTE104, 0
+ applymovement 8, Route104_Movement_14F16C
+ waitmovement 0
+ removeobject 8
+ applymovement 255, Route104_Movement_14F162
+ waitmovement 0
+ hideobjectat 255, MAP_ROUTE104
+ call Route104_EventScript_1A02E7
+ applymovement 7, Route104_Movement_14F09F
+ applymovement 255, Route104_Movement_14F09F
+ waitmovement 0
+ applymovement 255, Route104_Movement_14F166
+ waitmovement 0
+ call Route104_EventScript_1A02EF
+ showobjectat 255, MAP_DEWFORD_TOWN
+ applymovement 255, Route104_Movement_14F168
+ waitmovement 0
+ setobjectxyperm 2, 12, 8
+ addobject 2
+ setobjectpriority 2, MAP_DEWFORD_TOWN, 0
+ clearflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
+ applymovement 2, Route104_Movement_14F16F
+ waitmovement 0
+ addobject 4
+ clearflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
+ call Route104_EventScript_1A02EF
+ setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104
+ hideobjectat 7, MAP_ROUTE104
+ copyvar VAR_BRINEY_LOCATION, VAR_SPECIAL_8
+ resetobjectpriority 255, MAP_ROUTE104
+ resetobjectpriority 2, MAP_DEWFORD_TOWN
+ moveobjectoffscreen 2
+ setvar VAR_BOARD_BRINEY_BOAT_ROUTE104_STATE, 0
+ goto_if_unset FLAG_DELIVERED_STEVEN_LETTER, Route104_EventScript_14F08B
+ goto_if_set FLAG_DELIVERED_STEVEN_LETTER, Route104_EventScript_14F095
+ end
+
+Route104_EventScript_14F08B:: @ 814F08B
+ msgbox Route104_Text_16B347, 4
+ releaseall
+ end
+
+Route104_EventScript_14F095:: @ 814F095
+ msgbox Route104_Text_16B4B5, 4
+ releaseall
+ end
+
+Route104_Movement_14F09F:: @ 814F09F
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_right
+ walk_fast_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fastest_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_right
+ walk_right
+ walk_down
+ walk_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_down
+ walk_down
+ end_movement
+
+Route104_Movement_14F162:: @ 814F162
+ walk_left
+ walk_down
+ walk_down
+ end_movement
+
+Route104_Movement_14F166:: @ 814F166
+ walk_down
+ end_movement
+
+Route104_Movement_14F168:: @ 814F168
+ walk_down
+ walk_left
+ walk_in_place_fastest_right
+ end_movement
+
+Route104_Movement_14F16C:: @ 814F16C
+ walk_down
+ walk_down
+ end_movement
+
+Route104_Movement_14F16F:: @ 814F16F
+ walk_down
+ walk_in_place_fastest_left
+ end_movement
+
+Route104_EventScript_14F172:: @ 814F172
+ trainerbattle 0, OPPONENT_IVAN, 0, Route104_Text_1B85EB, Route104_Text_1B8637
+ msgbox Route104_Text_1B8680, 6
+ end
+
+Route104_EventScript_14F189:: @ 814F189
+ trainerbattle 0, OPPONENT_BILLY, 0, Route104_Text_1B86BE, Route104_Text_1B86E8
+ msgbox Route104_Text_1B871C, 6
+ end
+
+Route104_EventScript_14F1A0:: @ 814F1A0
+ trainerbattle 0, OPPONENT_HALEY_1, 0, Route104_Text_1B8770, Route104_Text_1B87A7
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route104_EventScript_14F1C7
+ msgbox Route104_Text_1B87C3, 6
+ end
+
+Route104_EventScript_14F1C7:: @ 814F1C7
+ trainerbattle 5, OPPONENT_HALEY_1, 0, Route104_Text_1B8839, Route104_Text_1B8852
+ msgbox Route104_Text_1B8872, 6
+ end
+
+Route104_EventScript_14F1DE:: @ 814F1DE
+ trainerbattle 0, OPPONENT_WINSTON_1, 0, Route104_Text_1B88D4, Route104_Text_1B8911
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route104_EventScript_14F205
+ msgbox Route104_Text_1B8925, 6
+ end
+
+Route104_EventScript_14F205:: @ 814F205
+ trainerbattle 5, OPPONENT_WINSTON_1, 0, Route104_Text_1B895E, Route104_Text_1B899E
+ msgbox Route104_Text_1B89C0, 6
+ end
+
+Route104_EventScript_14F21C:: @ 814F21C
+ trainerbattle 0, OPPONENT_CINDY_1, 0, Route104_Text_1B8A24, Route104_Text_1B8A61
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route104_EventScript_14F243
+ msgbox Route104_Text_1B8A69, 6
+ end
+
+Route104_EventScript_14F243:: @ 814F243
+ trainerbattle 5, OPPONENT_CINDY_1, 0, Route104_Text_1B8AA7, Route104_Text_1B8AD9
+ msgbox Route104_Text_1B8B02, 6
+ end
+
+Route104_EventScript_14F25A:: @ 814F25A
+ trainerbattle 4, OPPONENT_GINA_AND_MIA_1, 0, Route104_Text_1B83E9, Route104_Text_1B8414, Route104_Text_1B845C
+ special GetPlayerBigGuyGirlString
+ msgbox Route104_Text_1B842C, 4
+ release
+ end
+
+Route104_EventScript_14F279:: @ 814F279
+ trainerbattle 4, OPPONENT_GINA_AND_MIA_1, 0, Route104_Text_1B84DB, Route104_Text_1B850D, Route104_Text_1B8577
+ special GetPlayerBigGuyGirlString
+ msgbox Route104_Text_1B853B, 4
+ release
+ end
diff --git a/data/maps/Route104_MrBrineysHouse/scripts.inc b/data/maps/Route104_MrBrineysHouse/scripts.inc
new file mode 100644
index 000000000..514b1b9cc
--- /dev/null
+++ b/data/maps/Route104_MrBrineysHouse/scripts.inc
@@ -0,0 +1,95 @@
+Route104_MrBrineysHouse_MapScripts:: @ 815BCB2
+ map_script 3, Route104_MrBrineysHouse_MapScript1_15BCB8
+ .byte 0
+
+Route104_MrBrineysHouse_MapScript1_15BCB8:: @ 815BCB8
+ setflag FLAG_LANDMARK_MR_BRINEY_HOUSE
+ compare VAR_BRINEY_HOUSE_STATE, 1
+ call_if_eq Route104_MrBrineysHouse_EventScript_15BCD4
+ call_if_set FLAG_RECEIVED_POKENAV, Route104_MrBrineysHouse_EventScript_15BCD0
+ end
+
+Route104_MrBrineysHouse_EventScript_15BCD0:: @ 815BCD0
+ setflag FLAG_HIDE_RIVAL_RUSTBORO
+ return
+
+Route104_MrBrineysHouse_EventScript_15BCD4:: @ 815BCD4
+ setobjectxyperm 1, 9, 3
+ setobjectmovementtype 1, 50
+ setobjectxyperm 2, 9, 6
+ setobjectmovementtype 2, 51
+ return
+
+Route104_MrBrineysHouse_EventScript_15BCEB:: @ 815BCEB
+ lock
+ faceplayer
+ call_if_unset FLAG_MR_BRINEY_SAILING_INTRO, Route104_MrBrineysHouse_EventScript_15BD0E
+ goto_if_unset FLAG_DELIVERED_STEVEN_LETTER, Route104_MrBrineysHouse_EventScript_15BD65
+ goto_if_unset FLAG_DELIVERED_DEVON_GOODS, Route104_MrBrineysHouse_EventScript_15BD7E
+ goto Route104_MrBrineysHouse_EventScript_15BD32
+ end
+
+Route104_MrBrineysHouse_EventScript_15BD0E:: @ 815BD0E
+ setflag FLAG_MR_BRINEY_SAILING_INTRO
+ msgbox Route104_MrBrineysHouse_Text_191A82, 4
+ msgbox Route104_MrBrineysHouse_Text_191AAD, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route104_MrBrineysHouse_EventScript_15BD97
+ goto Route104_MrBrineysHouse_EventScript_15BDAB
+ end
+
+Route104_MrBrineysHouse_EventScript_15BD32:: @ 815BD32
+ message Route104_MrBrineysHouse_Text_191E80
+ waitmessage
+ multichoicedefault 21, 8, 14, 1, 0
+ switch RESULT
+ case 0, Route104_MrBrineysHouse_EventScript_15BDAB
+ case 1, Route104_MrBrineysHouse_EventScript_15BDA1
+ case 127, Route104_MrBrineysHouse_EventScript_15BDA1
+ end
+
+Route104_MrBrineysHouse_EventScript_15BD65:: @ 815BD65
+ msgbox Route104_MrBrineysHouse_Text_191CC3, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route104_MrBrineysHouse_EventScript_15BD97
+ goto Route104_MrBrineysHouse_EventScript_15BDAB
+ end
+
+Route104_MrBrineysHouse_EventScript_15BD7E:: @ 815BD7E
+ msgbox Route104_MrBrineysHouse_Text_191DA6, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route104_MrBrineysHouse_EventScript_15BD97
+ goto Route104_MrBrineysHouse_EventScript_15BDAB
+ end
+
+Route104_MrBrineysHouse_EventScript_15BD97:: @ 815BD97
+ msgbox Route104_MrBrineysHouse_Text_191C57, 4
+ release
+ end
+
+Route104_MrBrineysHouse_EventScript_15BDA1:: @ 815BDA1
+ msgbox Route104_MrBrineysHouse_Text_191EDB, 4
+ release
+ end
+
+Route104_MrBrineysHouse_EventScript_15BDAB:: @ 815BDAB
+ msgbox Route104_MrBrineysHouse_Text_191BFD, 4
+ call Route104_MrBrineysHouse_EventScript_1A010C
+ setvar VAR_BOARD_BRINEY_BOAT_ROUTE104_STATE, 1
+ clearflag FLAG_HIDE_MR_BRINEY_ROUTE104
+ setflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE
+ setflag FLAG_HIDE_PEEKO_BRINEY_HOUSE
+ warp MAP_ROUTE104, 255, 13, 51
+ waitstate
+ releaseall
+ end
+
+Route104_MrBrineysHouse_EventScript_15BDD1:: @ 815BDD1
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_WINGULL, 0
+ msgbox Route104_MrBrineysHouse_Text_191FB9, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/Route104_PrettyPetalFlowerShop/scripts.inc b/data/maps/Route104_PrettyPetalFlowerShop/scripts.inc
new file mode 100644
index 000000000..5e70a8ec2
--- /dev/null
+++ b/data/maps/Route104_PrettyPetalFlowerShop/scripts.inc
@@ -0,0 +1,103 @@
+Route104_PrettyPetalFlowerShop_MapScripts:: @ 815BDE4
+ map_script 3, Route104_PrettyPetalFlowerShop_MapScript1_15BDEA
+ .byte 0
+
+Route104_PrettyPetalFlowerShop_MapScript1_15BDEA:: @ 815BDEA
+ setflag FLAG_LANDMARK_FLOWER_SHOP
+ goto_if_unset FLAG_MET_PRETTY_PETAL_SHOP_OWNER, Route104_PrettyPetalFlowerShop_EventScript_15BE03
+ goto_if_unset FLAG_BADGE03_GET, Route104_PrettyPetalFlowerShop_EventScript_15BE03
+ setflag FLAG_TEMP_1
+ end
+
+Route104_PrettyPetalFlowerShop_EventScript_15BE03:: @ 815BE03
+ setobjectxyperm 1, 4, 6
+ end
+
+Route104_PrettyPetalFlowerShop_EventScript_15BE0B:: @ 815BE0B
+ lock
+ faceplayer
+ goto_if_set FLAG_TEMP_1, Route104_PrettyPetalFlowerShop_EventScript_15BE7C
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C5EC6, 4
+ goto_if_set FLAG_MET_PRETTY_PETAL_SHOP_OWNER, Route104_PrettyPetalFlowerShop_EventScript_15BE4A
+ setflag FLAG_MET_PRETTY_PETAL_SHOP_OWNER
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C5F48, MSGBOX_YESNO
+ compare RESULT, YES
+ call_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BE6A
+ compare RESULT, NO
+ call_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BE73
+ release
+ end
+
+Route104_PrettyPetalFlowerShop_EventScript_15BE4A:: @ 815BE4A
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C5F1B, MSGBOX_YESNO
+ compare RESULT, YES
+ call_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BE6A
+ compare RESULT, NO
+ call_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BE73
+ release
+ end
+
+Route104_PrettyPetalFlowerShop_EventScript_15BE6A:: @ 815BE6A
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C5F9D, 4
+ return
+
+Route104_PrettyPetalFlowerShop_EventScript_15BE73:: @ 815BE73
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C6121, 4
+ return
+
+Route104_PrettyPetalFlowerShop_EventScript_15BE7C:: @ 815BE7C
+ message Route104_PrettyPetalFlowerShop_Text_1A0C42
+ waitmessage
+ pokemartdecoration2 Route104_PrettyPetalFlowerShop_Items
+ msgbox Route104_PrettyPetalFlowerShop_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+Route104_PrettyPetalFlowerShop_Items:: @ 815BE94
+ .2byte ITEM_FULL_RESTORE
+ .2byte ITEM_MAX_POTION
+ .2byte ITEM_HYPER_POTION
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_FULL_HEAL
+ .2byte ITEM_REVIVE
+ .2byte ITEM_NONE
+ release
+ end
+
+Route104_PrettyPetalFlowerShop_EventScript_15BEA4:: @ 815BEA4
+ lock
+ faceplayer
+ goto_if_unset FLAG_RECEIVED_WAILMER_PAIL, Route104_PrettyPetalFlowerShop_EventScript_15BEB9
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C61E8, 4
+ release
+ end
+
+Route104_PrettyPetalFlowerShop_EventScript_15BEB9:: @ 815BEB9
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C6158, 4
+ giveitem_std ITEM_WAILMER_PAIL
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C61E8, 4
+ setflag FLAG_RECEIVED_WAILMER_PAIL
+ release
+ end
+
+Route104_PrettyPetalFlowerShop_EventScript_15BEDA:: @ 815BEDA
+ lock
+ faceplayer
+ dodailyevents
+ goto_if_set FLAG_DAILY_RECEIVED_BERRY_FLOWER_SHOP, Route104_PrettyPetalFlowerShop_EventScript_15BF1A
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C62DA, 4
+ random 8
+ addvar RESULT, ITEM_CHERI_BERRY
+ giveitem_std RESULT
+ compare RESULT, 0
+ goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_1A029B
+ setflag FLAG_DAILY_RECEIVED_BERRY_FLOWER_SHOP
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C6335, 4
+ release
+ end
+
+Route104_PrettyPetalFlowerShop_EventScript_15BF1A:: @ 815BF1A
+ msgbox Route104_PrettyPetalFlowerShop_Text_1C6335, 4
+ release
+ end
diff --git a/data/maps/Route104_Prototype/scripts.inc b/data/maps/Route104_Prototype/scripts.inc
new file mode 100644
index 000000000..e0aba01c9
--- /dev/null
+++ b/data/maps/Route104_Prototype/scripts.inc
@@ -0,0 +1,98 @@
+Route104_Prototype_MapScripts:: @ 8160C4A
+ .byte 0
+
+Route104_Prototype_EventScript_160C4B:: @ 8160C4B
+ lock
+ faceplayer
+ goto_if_trainer_not_defeated OPPONENT_BRIANNA_1, Route104_Prototype_EventScript_160C99
+ goto_if_trainer_not_defeated OPPONENT_CINDY_2, Route104_Prototype_EventScript_160C99
+ goto_if_trainer_not_defeated OPPONENT_AMY_AND_LIV_3, Route104_Prototype_EventScript_160C99
+ goto_if_trainer_not_defeated OPPONENT_GINA_AND_MIA_2, Route104_Prototype_EventScript_160C99
+ goto_if_trainer_not_defeated OPPONENT_LUCAS_2, Route104_Prototype_EventScript_160C99
+ goto_if_trainer_not_defeated OPPONENT_MIKE_1, Route104_Prototype_EventScript_160C99
+ setflag FLAG_ROUTE104_PROTOTYPE_COMPLETED_1
+ msgbox Route104_Prototype_Text_19B267, 4
+ goto_if_set FLAG_ROUTE104_PROTOTYPE_COMPLETED_2, Route104_Prototype_EventScript_160CFB
+ release
+ end
+
+Route104_Prototype_EventScript_160C99:: @ 8160C99
+ msgbox Route104_Prototype_Text_19B22E, 4
+ release
+ end
+
+Route104_Prototype_EventScript_160CA3:: @ 8160CA3
+ lock
+ faceplayer
+ goto_if_trainer_not_defeated OPPONENT_BRIANNA_1, Route104_Prototype_EventScript_160CF1
+ goto_if_trainer_not_defeated OPPONENT_CINDY_2, Route104_Prototype_EventScript_160CF1
+ goto_if_trainer_not_defeated OPPONENT_AMY_AND_LIV_3, Route104_Prototype_EventScript_160CF1
+ goto_if_trainer_not_defeated OPPONENT_GINA_AND_MIA_2, Route104_Prototype_EventScript_160CF1
+ goto_if_trainer_not_defeated OPPONENT_LUCAS_2, Route104_Prototype_EventScript_160CF1
+ goto_if_trainer_not_defeated OPPONENT_MIKE_1, Route104_Prototype_EventScript_160CF1
+ setflag FLAG_ROUTE104_PROTOTYPE_COMPLETED_2
+ msgbox Route104_Prototype_Text_19B2E9, 4
+ goto_if_set FLAG_ROUTE104_PROTOTYPE_COMPLETED_1, Route104_Prototype_EventScript_160CFB
+ release
+ end
+
+Route104_Prototype_EventScript_160CF1:: @ 8160CF1
+ msgbox Route104_Prototype_Text_19B2B6, 4
+ release
+ end
+
+Route104_Prototype_EventScript_160CFB:: @ 8160CFB
+ closemessage
+ delay 60
+ fadescreen 1
+ delay 60
+ special DoSoftReset
+ waitstate
+ release
+ end
+
+Route104_Prototype_EventScript_160D0A:: @ 8160D0A
+ msgbox Route104_Prototype_Text_19B33B, 2
+ end
+
+Route104_Prototype_EventScript_160D13:: @ 8160D13
+ msgbox Route104_Prototype_Text_19B37F, 2
+ end
+
+Route104_Prototype_EventScript_160D1C:: @ 8160D1C
+ msgbox Route104_Prototype_Text_19B3DE, 3
+ end
+
+Route104_Prototype_EventScript_160D25:: @ 8160D25
+ msgbox Route104_Prototype_Text_19B3FF, 3
+ end
+
+Route104_Prototype_EventScript_160D2E:: @ 8160D2E
+ trainerbattle 0, OPPONENT_CINDY_2, 0, Route104_Prototype_Text_19AD9B, Route104_Prototype_Text_19ADDA
+ msgbox Route104_Prototype_Text_19ADF7, 6
+ end
+
+Route104_Prototype_EventScript_160D45:: @ 8160D45
+ trainerbattle 4, OPPONENT_AMY_AND_LIV_3, 0, Route104_Prototype_Text_19AE3E, Route104_Prototype_Text_19AE53, Route104_Prototype_Text_19AEA9
+ msgbox Route104_Prototype_Text_19AE6A, 6
+ end
+
+Route104_Prototype_EventScript_160D60:: @ 8160D60
+ trainerbattle 4, OPPONENT_GINA_AND_MIA_2, 0, Route104_Prototype_Text_19B148, Route104_Prototype_Text_19B17D, Route104_Prototype_Text_19B1DD
+ msgbox Route104_Prototype_Text_19B18D, 6
+ end
+
+Route104_Prototype_EventScript_160D7B:: @ 8160D7B
+ trainerbattle 0, OPPONENT_MIKE_1, 0, Route104_Prototype_Text_19AEFB, Route104_Prototype_Text_19AF3E
+ msgbox Route104_Prototype_Text_19AF56, 6
+ end
+
+Route104_Prototype_EventScript_160D92:: @ 8160D92
+ trainerbattle 0, OPPONENT_BRIANNA_1, 0, Route104_Prototype_Text_19AF8A, Route104_Prototype_Text_19AFDB
+ msgbox Route104_Prototype_Text_19B00D, 6
+ end
+
+Route104_Prototype_EventScript_160DA9:: @ 8160DA9
+ trainerbattle 0, OPPONENT_LUCAS_2, 0, Route104_Prototype_Text_19B066, Route104_Prototype_Text_19B0D7
+ msgbox Route104_Prototype_Text_19B0EF, 6
+ end
diff --git a/data/maps/Route104_PrototypePrettyPetalFlowerShop/scripts.inc b/data/maps/Route104_PrototypePrettyPetalFlowerShop/scripts.inc
new file mode 100644
index 000000000..f979ab60b
--- /dev/null
+++ b/data/maps/Route104_PrototypePrettyPetalFlowerShop/scripts.inc
@@ -0,0 +1,6 @@
+Route104_PrototypePrettyPetalFlowerShop_MapScripts:: @ 8160DC0
+ .byte 0
+
+Route104_PrototypePrettyPetalFlowerShop_EventScript_160DC1:: @ 8160DC1
+ msgbox Route104_PrototypePrettyPetalFlowerShop_Text_19B436, 2
+ end
diff --git a/data/maps/Route105/scripts.inc b/data/maps/Route105/scripts.inc
new file mode 100644
index 000000000..305a2e9af
--- /dev/null
+++ b/data/maps/Route105/scripts.inc
@@ -0,0 +1,37 @@
+Route105_MapScripts:: @ 814F298
+ map_script 1, Route105_MapScript1_14F29E
+ .byte 0
+
+Route105_MapScript1_14F29E:: @ 814F29E
+ call_if_unset FLAG_REGI_DOORS_OPENED, Route105_EventScript_14F2A8
+ end
+
+Route105_EventScript_14F2A8:: @ 814F2A8
+ setmetatile 9, 19, 124, 1
+ setmetatile 9, 20, 145, 1
+ return
+
+Route105_EventScript_14F2BB:: @ 814F2BB
+ trainerbattle 0, OPPONENT_FOSTER, 0, Route105_Text_1B8B40, Route105_Text_1B8B93
+ msgbox Route105_Text_1B8BDE, 6
+ end
+
+Route105_EventScript_14F2D2:: @ 814F2D2
+ trainerbattle 0, OPPONENT_LUIS, 0, Route105_Text_1B8C28, Route105_Text_1B8C99
+ msgbox Route105_Text_1B8CA9, 6
+ end
+
+Route105_EventScript_14F2E9:: @ 814F2E9
+ trainerbattle 0, OPPONENT_AUSTIN, 0, Route105_Text_1B8CEE, Route105_Text_1B8D23
+ msgbox Route105_Text_1B8D45, 6
+ end
+
+Route105_EventScript_14F300:: @ 814F300
+ trainerbattle 0, OPPONENT_BEVERLY, 0, Route105_Text_1B8D99, Route105_Text_1B8DDD
+ msgbox Route105_Text_1B8DED, 6
+ end
+
+Route105_EventScript_14F317:: @ 814F317
+ trainerbattle 0, OPPONENT_DAWN, 0, Route105_Text_1B8E66, Route105_Text_1B8EA0
+ msgbox Route105_Text_1B8EBD, 6
+ end
diff --git a/data/maps/Route106/scripts.inc b/data/maps/Route106/scripts.inc
new file mode 100644
index 000000000..ae65c7013
--- /dev/null
+++ b/data/maps/Route106/scripts.inc
@@ -0,0 +1,34 @@
+Route106_MapScripts:: @ 814F32E
+ .byte 0
+
+Route106_EventScript_14F32F:: @ 814F32F
+ msgbox Route106_Text_16E026, 3
+ end
+
+Route106_EventScript_14F338:: @ 814F338
+ trainerbattle 0, OPPONENT_DOUGLAS, 0, Route106_Text_1B913D, Route106_Text_1B917F
+ msgbox Route106_Text_1B918A, 6
+ end
+
+Route106_EventScript_14F34F:: @ 814F34F
+ trainerbattle 0, OPPONENT_NICOLE, 0, Route106_Text_1B91AC, Route106_Text_1B91F8
+ msgbox Route106_Text_1B9222, 6
+ end
+
+Route106_EventScript_14F366:: @ 814F366
+ trainerbattle 0, OPPONENT_ELLIOT_1, 0, Route106_Text_1B8EF0, Route106_Text_1B8F25
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route106_EventScript_14F38D
+ msgbox Route106_Text_1B8F55, 6
+ end
+
+Route106_EventScript_14F38D:: @ 814F38D
+ trainerbattle 5, OPPONENT_ELLIOT_1, 0, Route106_Text_1B8FAC, Route106_Text_1B8FF5
+ msgbox Route106_Text_1B9011, 6
+ end
+
+Route106_EventScript_14F3A4:: @ 814F3A4
+ trainerbattle 0, OPPONENT_NED, 0, Route106_Text_1B9052, Route106_Text_1B90D3
+ msgbox Route106_Text_1B910A, 6
+ end
diff --git a/data/maps/Route107/scripts.inc b/data/maps/Route107/scripts.inc
new file mode 100644
index 000000000..ad2d293fc
--- /dev/null
+++ b/data/maps/Route107/scripts.inc
@@ -0,0 +1,40 @@
+Route107_MapScripts:: @ 814F3BB
+ .byte 0
+
+Route107_EventScript_14F3BC:: @ 814F3BC
+ trainerbattle 0, OPPONENT_DARRIN, 0, Route107_Text_1B926B, Route107_Text_1B92B7
+ msgbox Route107_Text_1B92E7, 6
+ end
+
+Route107_EventScript_14F3D3:: @ 814F3D3
+ trainerbattle 0, OPPONENT_TONY_1, 0, Route107_Text_1B933A, Route107_Text_1B9365
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route107_EventScript_14F3FA
+ msgbox Route107_Text_1B938E, 6
+ end
+
+Route107_EventScript_14F3FA:: @ 814F3FA
+ trainerbattle 5, OPPONENT_TONY_1, 0, Route107_Text_1B93EB, Route107_Text_1B9429
+ msgbox Route107_Text_1B9477, 6
+ end
+
+Route107_EventScript_14F411:: @ 814F411
+ trainerbattle 0, OPPONENT_DENISE, 0, Route107_Text_1B94C8, Route107_Text_1B94F2
+ msgbox Route107_Text_1B94FF, 6
+ end
+
+Route107_EventScript_14F428:: @ 814F428
+ trainerbattle 0, OPPONENT_BETH, 0, Route107_Text_1B9538, Route107_Text_1B956B
+ msgbox Route107_Text_1B9589, 6
+ end
+
+Route107_EventScript_14F43F:: @ 814F43F
+ trainerbattle 4, OPPONENT_LISA_AND_RAY, 0, Route107_Text_1B95CB, Route107_Text_1B95FB, Route107_Text_1B9672
+ msgbox Route107_Text_1B9630, 6
+ end
+
+Route107_EventScript_14F45A:: @ 814F45A
+ trainerbattle 4, OPPONENT_LISA_AND_RAY, 0, Route107_Text_1B96AB, Route107_Text_1B9707, Route107_Text_1B9788
+ msgbox Route107_Text_1B9735, 6
+ end
diff --git a/data/maps/Route108/scripts.inc b/data/maps/Route108/scripts.inc
new file mode 100644
index 000000000..2e40c882d
--- /dev/null
+++ b/data/maps/Route108/scripts.inc
@@ -0,0 +1,22 @@
+Route108_MapScripts:: @ 814F475
+ .byte 0
+
+Route108_EventScript_14F476:: @ 814F476
+ trainerbattle 0, OPPONENT_JEROME, 0, Route108_Text_1B97C3, Route108_Text_1B97EF
+ msgbox Route108_Text_1B9823, 6
+ end
+
+Route108_EventScript_14F48D:: @ 814F48D
+ trainerbattle 0, OPPONENT_MATTHEW, 0, Route108_Text_1B9864, Route108_Text_1B989F
+ msgbox Route108_Text_1B98BC, 6
+ end
+
+Route108_EventScript_14F4A4:: @ 814F4A4
+ trainerbattle 0, OPPONENT_TARA, 0, Route108_Text_1B98EC, Route108_Text_1B992C
+ msgbox Route108_Text_1B9935, 6
+ end
+
+Route108_EventScript_14F4BB:: @ 814F4BB
+ trainerbattle 0, OPPONENT_MISSY, 0, Route108_Text_1B9986, Route108_Text_1B99BB
+ msgbox Route108_Text_1B99E9, 6
+ end
diff --git a/data/maps/Route109/scripts.inc b/data/maps/Route109/scripts.inc
new file mode 100644
index 000000000..6f24b2142
--- /dev/null
+++ b/data/maps/Route109/scripts.inc
@@ -0,0 +1,444 @@
+Route109_MapScripts:: @ 814F4D2
+ .byte 0
+
+Route109_EventScript_14F4D3:: @ 814F4D3
+ call Route109_EventScript_1A010C
+ setobjectpriority 2, MAP_ROUTE109, 0
+ setobjectpriority 255, MAP_ROUTE109, 0
+ applymovement 2, Route109_Movement_14F67B
+ waitmovement 0
+ removeobject 2
+ switch FACING
+ case 1, Route109_EventScript_14F518
+ case 3, Route109_EventScript_14F538
+ case 4, Route109_EventScript_14F528
+ end
+
+Route109_EventScript_14F518:: @ 814F518
+ applymovement 255, Route109_Movement_14F66D
+ waitmovement 0
+ goto Route109_EventScript_14F548
+ end
+
+Route109_EventScript_14F528:: @ 814F528
+ applymovement 255, Route109_Movement_14F675
+ waitmovement 0
+ goto Route109_EventScript_14F548
+ end
+
+Route109_EventScript_14F538:: @ 814F538
+ applymovement 255, Route109_Movement_14F678
+ waitmovement 0
+ goto Route109_EventScript_14F548
+ end
+
+Route109_EventScript_14F548:: @ 814F548
+ hideobjectat 255, MAP_ROUTE109
+ call Route109_EventScript_1A02E7
+ applymovement 1, Route109_Movement_14F5BF
+ applymovement 255, Route109_Movement_14F5BF
+ waitmovement 0
+ call Route109_EventScript_1A02EF
+ showobjectat 255, MAP_DEWFORD_TOWN
+ applymovement 255, Route109_Movement_14F670
+ waitmovement 0
+ addobject 4
+ clearflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
+ setobjectxyperm 2, 12, 8
+ addobject 2
+ setobjectpriority 2, MAP_DEWFORD_TOWN, 0
+ applymovement 2, Route109_Movement_14F67D
+ waitmovement 0
+ clearflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
+ setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109
+ hideobjectat 1, MAP_ROUTE109
+ msgbox Route109_Text_16B4B5, 4
+ closemessage
+ copyvar VAR_BRINEY_LOCATION, VAR_SPECIAL_8
+ resetobjectpriority 255, MAP_ROUTE109
+ resetobjectpriority 2, MAP_DEWFORD_TOWN
+ moveobjectoffscreen 2
+ release
+ end
+
+Route109_Movement_14F5BF:: @ 814F5BF
+ walk_in_place_fastest_down
+ walk_down
+ walk_down
+ walk_fast_down
+ walk_fast_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fastest_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_left
+ walk_fast_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fastest_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_left
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+Route109_Movement_14F66D:: @ 814F66D
+ walk_down
+ walk_down
+ end_movement
+
+Route109_Movement_14F670:: @ 814F670
+ walk_down
+ walk_down
+ walk_left
+ walk_in_place_fastest_right
+ end_movement
+
+Route109_Movement_14F675:: @ 814F675
+ walk_right
+ walk_down
+ end_movement
+
+Route109_Movement_14F678:: @ 814F678
+ walk_left
+ walk_down
+ end_movement
+
+Route109_Movement_14F67B:: @ 814F67B
+ walk_down
+ end_movement
+
+Route109_Movement_14F67D:: @ 814F67D
+ walk_down
+ walk_in_place_fastest_left
+ end_movement
+
+Route109_EventScript_14F680:: @ 814F680
+ lock
+ faceplayer
+ goto_if_unset FLAG_DELIVERED_DEVON_GOODS, Route109_EventScript_14F691
+ goto Route109_EventScript_14F6AF
+ end
+
+Route109_EventScript_14F691:: @ 814F691
+ message Route109_Text_16E0F9
+ msgbox Route109_Text_16E0F9, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route109_EventScript_14F6F1
+ goto Route109_EventScript_14F6E2
+ end
+
+Route109_EventScript_14F6AF:: @ 814F6AF
+ message Route109_Text_16E26A
+ waitmessage
+ multichoicedefault 21, 8, 14, 1, 0
+ switch RESULT
+ case 0, Route109_EventScript_14F6E2
+ case 1, Route109_EventScript_14F6FB
+ case 127, Route109_EventScript_14F6FB
+ end
+
+Route109_EventScript_14F6E2:: @ 814F6E2
+ msgbox Route109_Text_16E159, 4
+ closemessage
+ goto Route109_EventScript_14F4D3
+ end
+
+Route109_EventScript_14F6F1:: @ 814F6F1
+ msgbox Route109_Text_16E1B1, 4
+ release
+ end
+
+Route109_EventScript_14F6FB:: @ 814F6FB
+ msgbox Route109_Text_16E2C5, 4
+ release
+ end
+
+Route109_EventScript_14F705:: @ 814F705
+ msgbox Route109_Text_16E307, 2
+ end
+
+Route109_EventScript_14F70E:: @ 814F70E
+ lock
+ faceplayer
+ msgbox Route109_Text_16E405, 4
+ closemessage
+ applymovement LAST_TALKED, Route109_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+Route109_EventScript_14F725:: @ 814F725
+ lock
+ faceplayer
+ special GetPlayerBigGuyGirlString
+ goto_if_set FLAG_RECEIVED_SOFT_SAND, Route109_EventScript_14F762
+ msgbox Route109_Text_16E433, 4
+ giveitem_std ITEM_SOFT_SAND
+ compare RESULT, 0
+ goto_if_eq Route109_EventScript_1A029B
+ closemessage
+ applymovement LAST_TALKED, Route109_Movement_1A083D
+ waitmovement 0
+ setflag FLAG_RECEIVED_SOFT_SAND
+ release
+ end
+
+Route109_EventScript_14F762:: @ 814F762
+ msgbox Route109_Text_16E446, 4
+ applymovement LAST_TALKED, Route109_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+Route109_EventScript_14F776:: @ 814F776
+ msgbox Route109_Text_16E35B, 2
+ end
+
+Route109_EventScript_14F77F:: @ 814F77F
+ msgbox Route109_Text_16E4D5, 2
+ end
+
+Route109_EventScript_14F788:: @ 814F788
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_ZIGZAGOON, 0
+ msgbox Route109_Text_16E5CA, 4
+ waitmoncry
+ release
+ end
+
+Route109_EventScript_14F79B:: @ 814F79B
+ msgbox Route109_Text_16E5DC, 3
+ end
+
+Route109_EventScript_14F7A4:: @ 814F7A4
+ msgbox Route109_Text_16E62C, 3
+ end
+
+Route109_EventScript_14F7AD:: @ 814F7AD
+ trainerbattle 0, OPPONENT_DAVID, 0, Route109_Text_1B9A1C, Route109_Text_1B9A59
+ msgbox Route109_Text_1B9A6D, 6
+ end
+
+Route109_EventScript_14F7C4:: @ 814F7C4
+ trainerbattle 0, OPPONENT_ALICE, 0, Route109_Text_1B9AAD, Route109_Text_1B9AD9
+ msgbox Route109_Text_1B9AEB, 6
+ end
+
+Route109_EventScript_14F7DB:: @ 814F7DB
+ trainerbattle 0, OPPONENT_HUEY, 0, Route109_Text_1B9B11, Route109_Text_1B9B57
+ msgbox Route109_Text_1B9B68, 6
+ end
+
+Route109_EventScript_14F7F2:: @ 814F7F2
+ trainerbattle 0, OPPONENT_EDMOND, 0, Route109_Text_1B9B91, Route109_Text_1B9BAE
+ msgbox Route109_Text_1B9BD3, 6
+ end
+
+Route109_EventScript_14F809:: @ 814F809
+ trainerbattle 0, OPPONENT_RICKY_1, 0, Route109_Text_1B9C23, Route109_Text_1B9C65
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route109_EventScript_14F830
+ msgbox Route109_Text_1B9C6E, 6
+ end
+
+Route109_EventScript_14F830:: @ 814F830
+ trainerbattle 5, OPPONENT_RICKY_1, 0, Route109_Text_1B9CB3, Route109_Text_1B9CEB
+ msgbox Route109_Text_1B9D10, 6
+ end
+
+Route109_EventScript_14F847:: @ 814F847
+ trainerbattle 0, OPPONENT_LOLA_1, 0, Route109_Text_1B9D54, Route109_Text_1B9D87
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route109_EventScript_14F86E
+ msgbox Route109_Text_1B9D8E, 6
+ end
+
+Route109_EventScript_14F86E:: @ 814F86E
+ trainerbattle 5, OPPONENT_LOLA_1, 0, Route109_Text_1B9DD8, Route109_Text_1B9E16
+ msgbox Route109_Text_1B9E1D, 6
+ end
+
+Route109_EventScript_14F885:: @ 814F885
+ trainerbattle 0, OPPONENT_CARMEN, 0, Route109_Text_1B9E60, Route109_Text_1B9EA1
+ msgbox Route109_Text_1B9ECA, 6
+ end
+
+Route109_EventScript_14F89C:: @ 814F89C
+ trainerbattle 0, OPPONENT_GWEN, 0, Route109_Text_1B9F07, Route109_Text_1B9F31
+ msgbox Route109_Text_1B9F44, 6
+ end
+
+Route109_EventScript_14F8B3:: @ 814F8B3
+ trainerbattle 0, OPPONENT_CARTER, 0, Route109_Text_1B9F65, Route109_Text_1B9F9C
+ msgbox Route109_Text_1B9FB7, 6
+ end
+
+Route109_EventScript_14F8CA:: @ 814F8CA
+ trainerbattle 4, OPPONENT_MEL_AND_PAUL, 0, Route109_Text_1B9FF6, Route109_Text_1BA052, Route109_Text_1BA0BF
+ msgbox Route109_Text_1BA069, 6
+ end
+
+Route109_EventScript_14F8E5:: @ 814F8E5
+ trainerbattle 4, OPPONENT_MEL_AND_PAUL, 0, Route109_Text_1BA114, Route109_Text_1BA15F, Route109_Text_1BA1D0
+ msgbox Route109_Text_1BA193, 6
+ end
diff --git a/data/maps/Route109_SeashoreHouse/scripts.inc b/data/maps/Route109_SeashoreHouse/scripts.inc
new file mode 100644
index 000000000..13d37e7bd
--- /dev/null
+++ b/data/maps/Route109_SeashoreHouse/scripts.inc
@@ -0,0 +1,103 @@
+Route109_SeashoreHouse_MapScripts:: @ 8160DCA
+ map_script 3, Route109_SeashoreHouse_MapScript1_160DD0
+ .byte 0
+
+Route109_SeashoreHouse_MapScript1_160DD0:: @ 8160DD0
+ setflag FLAG_LANDMARK_SEASHORE_HOUSE
+ end
+
+Route109_SeashoreHouse_EventScript_160DD4:: @ 8160DD4
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_6_SODA_POP, Route109_SeashoreHouse_EventScript_160E36
+ goto_if_set FLAG_DEFEATED_SEASHORE_HOUSE_TRAINERS, Route109_SeashoreHouse_EventScript_160E08
+ goto_if_set FLAG_TEMP_2, Route109_SeashoreHouse_EventScript_160DFE
+ msgbox Route109_SeashoreHouse_Text_19B4D9, 4
+ setflag FLAG_TEMP_2
+ release
+ end
+
+Route109_SeashoreHouse_EventScript_160DFE:: @ 8160DFE
+ msgbox Route109_SeashoreHouse_Text_19B5B9, 4
+ release
+ end
+
+Route109_SeashoreHouse_EventScript_160E08:: @ 8160E08
+ msgbox Route109_SeashoreHouse_Text_19B609, 4
+ giveitem_std ITEM_SODA_POP, 6
+ compare RESULT, 0
+ goto_if_eq Route109_SeashoreHouse_EventScript_160E2C
+ setflag FLAG_RECEIVED_6_SODA_POP
+ release
+ end
+
+Route109_SeashoreHouse_EventScript_160E2C:: @ 8160E2C
+ msgbox Route109_SeashoreHouse_Text_19B6BE, 4
+ release
+ end
+
+Route109_SeashoreHouse_EventScript_160E36:: @ 8160E36
+ showmoneybox 0, 0
+ nop
+ msgbox Route109_SeashoreHouse_Text_19B702, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route109_SeashoreHouse_EventScript_160E5A
+ msgbox Route109_SeashoreHouse_Text_19B773, 4
+ hidemoneybox 0, 0
+ release
+ end
+
+Route109_SeashoreHouse_EventScript_160E5A:: @ 8160E5A
+ checkmoney 0x12c, 0
+ compare RESULT, 0
+ goto_if_eq Route109_SeashoreHouse_EventScript_160E9E
+ checkitemspace ITEM_SODA_POP, 1
+ compare RESULT, 0
+ goto_if_eq Route109_SeashoreHouse_EventScript_160EAB
+ msgbox Route109_SeashoreHouse_Text_19B74C, 4
+ takemoney 0x12c, 0
+ updatemoneybox 0, 0
+ nop
+ giveitem_std ITEM_SODA_POP
+ hidemoneybox 0, 0
+ release
+ end
+
+Route109_SeashoreHouse_EventScript_160E9E:: @ 8160E9E
+ msgbox Route109_SeashoreHouse_Text_19B759, 4
+ hidemoneybox 0, 0
+ release
+ end
+
+Route109_SeashoreHouse_EventScript_160EAB:: @ 8160EAB
+ msgbox Route109_SeashoreHouse_Text_1A0CC2, 4
+ hidemoneybox 0, 0
+ release
+ end
+
+Route109_SeashoreHouse_EventScript_160EB8:: @ 8160EB8
+ trainerbattle 2, OPPONENT_DWAYNE, 0, Route109_SeashoreHouse_Text_19B809, Route109_SeashoreHouse_Text_19B869, Route109_SeashoreHouse_EventScript_160F09
+ msgbox Route109_SeashoreHouse_Text_19B89F, 6
+ end
+
+Route109_SeashoreHouse_EventScript_160ED3:: @ 8160ED3
+ trainerbattle 2, OPPONENT_JOHANNA, 0, Route109_SeashoreHouse_Text_19B8E5, Route109_SeashoreHouse_Text_19B949, Route109_SeashoreHouse_EventScript_160F09
+ msgbox Route109_SeashoreHouse_Text_19B955, 6
+ end
+
+Route109_SeashoreHouse_EventScript_160EEE:: @ 8160EEE
+ trainerbattle 2, OPPONENT_SIMON, 0, Route109_SeashoreHouse_Text_19B988, Route109_SeashoreHouse_Text_19B9C7, Route109_SeashoreHouse_EventScript_160F09
+ msgbox Route109_SeashoreHouse_Text_19B9E5, 6
+ end
+
+Route109_SeashoreHouse_EventScript_160F09:: @ 8160F09
+ goto_if_trainer_not_defeated OPPONENT_DWAYNE, Route109_SeashoreHouse_EventScript_160F29
+ goto_if_trainer_not_defeated OPPONENT_JOHANNA, Route109_SeashoreHouse_EventScript_160F29
+ goto_if_trainer_not_defeated OPPONENT_SIMON, Route109_SeashoreHouse_EventScript_160F29
+ setflag FLAG_DEFEATED_SEASHORE_HOUSE_TRAINERS
+ release
+ end
+
+Route109_SeashoreHouse_EventScript_160F29:: @ 8160F29
+ release
+ end
diff --git a/data/maps/Route110/scripts.inc b/data/maps/Route110/scripts.inc
new file mode 100644
index 000000000..8245b3107
--- /dev/null
+++ b/data/maps/Route110/scripts.inc
@@ -0,0 +1,539 @@
+Route110_MapScripts:: @ 814F900
+ map_script 5, Route110_MapScript1_14F910
+ map_script 3, Route110_MapScript1_14F914
+ map_script 2, Route110_MapScript2_14F933
+ .byte 0
+
+Route110_MapScript1_14F910:: @ 814F910
+ special UpdateCyclingRoadState
+ end
+
+Route110_MapScript1_14F914:: @ 814F914
+ call Route110_EventScript_1A0196
+ call Route110_EventScript_1A014E
+ call Route110_EventScript_1A0172
+ compare VAR_CYCLING_CHALLENGE_STATE, 1
+ call_if_eq Route110_EventScript_14F92F
+ end
+
+Route110_EventScript_14F92F:: @ 814F92F
+ savebgm BGM_CYCLING
+ return
+
+Route110_MapScript2_14F933:: @ 814F933
+ map_script_2 VAR_CYCLING_CHALLENGE_STATE, 1, Route110_EventScript_14F93D
+ .2byte 0
+
+Route110_EventScript_14F93D:: @ 814F93D
+ special ScrSpecial_BeginCyclingRoadChallenge
+ setvar VAR_CYCLING_CHALLENGE_STATE, 2
+ return
+
+Route110_EventScript_14F946:: @ 814F946
+ lock
+ faceplayer
+ msgbox Route110_Text_16E6C0, 4
+ applymovement LAST_TALKED, Route110_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+Route110_EventScript_14F95C:: @ 814F95C
+ lock
+ faceplayer
+ msgbox Route110_Text_16E6F2, 4
+ applymovement LAST_TALKED, Route110_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+Route110_EventScript_14F972:: @ 814F972
+ lock
+ faceplayer
+ msgbox Route110_Text_16E729, 4
+ applymovement LAST_TALKED, Route110_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+Route110_EventScript_14F988:: @ 814F988
+ lock
+ faceplayer
+ msgbox Route110_Text_16E76A, 4
+ applymovement LAST_TALKED, Route110_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+Route110_EventScript_14F99E:: @ 814F99E
+ msgbox Route110_Text_16EB22, 2
+ end
+
+Route110_EventScript_14F9A7:: @ 814F9A7
+ msgbox Route110_Text_16EB65, 2
+ end
+
+Route110_EventScript_14F9B0:: @ 814F9B0
+ msgbox Route110_Text_16EBC9, 2
+ end
+
+Route110_EventScript_14F9B9:: @ 814F9B9
+ msgbox Route110_Text_16EDC5, 2
+ end
+
+Route110_EventScript_14F9C2:: @ 814F9C2
+ msgbox Route110_Text_16EE30, 2
+ end
+
+Route110_EventScript_14F9CB:: @ 814F9CB
+ msgbox Route110_Text_16EE74, 2
+ end
+
+Route110_EventScript_14F9D4:: @ 814F9D4
+ msgbox Route110_Text_16EEF6, 2
+ end
+
+Route110_EventScript_14F9DD:: @ 814F9DD
+ msgbox Route110_Text_16F381, 3
+ end
+
+Route110_EventScript_14F9E6:: @ 814F9E6
+ msgbox Route110_Text_16F39C, 3
+ end
+
+Route110_EventScript_14F9EF:: @ 814F9EF
+ msgbox Route110_Text_16F3B1, 3
+ end
+
+Route110_EventScript_14F9F8:: @ 814F9F8
+ msgbox Route110_Text_16F3E9, 3
+ end
+
+Route110_EventScript_14FA01:: @ 814FA01
+ msgbox Route110_Text_16F3FF, 3
+ end
+
+Route110_EventScript_14FA0A:: @ 814FA0A
+ msgbox Route110_Text_16F40F, 3
+ end
+
+Route110_EventScript_14FA13:: @ 814FA13
+ msgbox Route110_Text_16F429, 3
+ end
+
+Route110_EventScript_14FA1C:: @ 814FA1C
+ msgbox Route110_Text_16F4AE, 3
+ end
+
+Route110_EventScript_14FA25:: @ 814FA25
+ msgbox Route110_Text_16F4F7, 3
+ end
+
+Route110_EventScript_14FA2E:: @ 814FA2E
+ lockall
+ specialvar RESULT, GetRecordedCyclingRoadResults
+ compare RESULT, 0
+ goto_if_eq Route110_EventScript_14FA49
+ msgbox Route110_Text_16F53A, 4
+ releaseall
+ end
+
+Route110_EventScript_14FA49:: @ 814FA49
+ msgbox Route110_Text_16F57C, 4
+ releaseall
+ end
+
+Route110_EventScript_14FA53:: @ 814FA53
+ lock
+ faceplayer
+ specialvar RESULT, GetPlayerAvatarBike
+ compare RESULT, 1
+ goto_if_eq Route110_EventScript_14FA84
+ compare VAR_CYCLING_CHALLENGE_STATE, 0
+ goto_if_eq Route110_EventScript_14FA7A
+ msgbox Route110_Text_16F26A, 4
+ release
+ end
+
+Route110_EventScript_14FA7A:: @ 814FA7A
+ msgbox Route110_Text_16F1D0, 4
+ release
+ end
+
+Route110_EventScript_14FA84:: @ 814FA84
+ msgbox Route110_Text_16F2C4, 4
+ release
+ end
+
+Route110_EventScript_14FA8E:: @ 814FA8E
+ trainerbattle 0, OPPONENT_EDWARD, 0, Route110_Text_1BA699, Route110_Text_1BA6D2
+ msgbox Route110_Text_1BA6F8, 6
+ end
+
+Route110_EventScript_14FAA5:: @ 814FAA5
+ trainerbattle 0, OPPONENT_JACLYN, 0, Route110_Text_1BA72D, Route110_Text_1BA759
+ msgbox Route110_Text_1BA76C, 6
+ end
+
+Route110_EventScript_14FABC:: @ 814FABC
+ trainerbattle 0, OPPONENT_EDWIN_1, 0, Route110_Text_1BA7D2, Route110_Text_1BA803
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route110_EventScript_14FAE3
+ msgbox Route110_Text_1BA829, 6
+ end
+
+Route110_EventScript_14FAE3:: @ 814FAE3
+ trainerbattle 5, OPPONENT_EDWIN_1, 0, Route110_Text_1BA877, Route110_Text_1BA8CD
+ msgbox Route110_Text_1BA8E9, 6
+ end
+
+Route110_EventScript_14FAFA:: @ 814FAFA
+ trainerbattle 0, OPPONENT_DALE, 0, Route110_Text_1BA913, Route110_Text_1BA93C
+ msgbox Route110_Text_1BA94A, 6
+ end
+
+Route110_EventScript_14FB11:: @ 814FB11
+ trainerbattle 0, OPPONENT_JACOB, 0, Route110_Text_1BA22C, Route110_Text_1BA264
+ msgbox Route110_Text_1BA27C, 6
+ end
+
+Route110_EventScript_14FB28:: @ 814FB28
+ trainerbattle 0, OPPONENT_ANTHONY, 0, Route110_Text_1BA2D4, Route110_Text_1BA2FC
+ msgbox Route110_Text_1BA30C, 6
+ end
+
+Route110_EventScript_14FB3F:: @ 814FB3F
+ trainerbattle 0, OPPONENT_BENJAMIN_1, 0, Route110_Text_1BA352, Route110_Text_1BA379
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route110_EventScript_14FB66
+ msgbox Route110_Text_1BA3A5, 6
+ end
+
+Route110_EventScript_14FB66:: @ 814FB66
+ trainerbattle 5, OPPONENT_BENJAMIN_1, 0, Route110_Text_1BA3EF, Route110_Text_1BA432
+ msgbox Route110_Text_1BA456, 6
+ end
+
+Route110_EventScript_14FB7D:: @ 814FB7D
+ trainerbattle 0, OPPONENT_JASMINE, 0, Route110_Text_1BA5FF, Route110_Text_1BA63C
+ msgbox Route110_Text_1BA65F, 6
+ end
+
+Route110_EventScript_14FB94:: @ 814FB94
+ trainerbattle 0, OPPONENT_ABIGAIL_1, 0, Route110_Text_1BA4A0, Route110_Text_1BA50F
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route110_EventScript_14FBBB
+ msgbox Route110_Text_1BA52E, 6
+ end
+
+Route110_EventScript_14FBBB:: @ 814FBBB
+ trainerbattle 5, OPPONENT_ABIGAIL_1, 0, Route110_Text_1BA573, Route110_Text_1BA5A1
+ msgbox Route110_Text_1BA5C4, 6
+ end
+
+Route110_EventScript_14FBD2:: @ 814FBD2
+ trainerbattle 0, OPPONENT_ISABEL_1, 0, Route110_Text_1BA990, Route110_Text_1BA9D0
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route110_EventScript_14FBF9
+ msgbox Route110_Text_1BA9E9, 6
+ end
+
+Route110_EventScript_14FBF9:: @ 814FBF9
+ trainerbattle 5, OPPONENT_ISABEL_1, 0, Route110_Text_1BAA2D, Route110_Text_1BAA76
+ msgbox Route110_Text_1BAA8F, 6
+ end
+
+Route110_EventScript_14FC10:: @ 814FC10
+ trainerbattle 0, OPPONENT_TIMMY, 0, Route110_Text_1BAAC3, Route110_Text_1BAAF7
+ msgbox Route110_Text_1BAB19, 6
+ end
+
+Route110_EventScript_14FC27:: @ 814FC27
+ lockall
+ applymovement 21, Route110_Movement_1A0843
+ waitmovement 0
+ call Route110_EventScript_14FC39
+ releaseall
+ end
+
+Route110_EventScript_14FC39:: @ 814FC39
+ special FinishCyclingRoadChallenge
+ msgbox Route110_Text_16EF65, 4
+ switch RESULT
+ case 10, Route110_EventScript_14FCC3
+ case 9, Route110_EventScript_14FCD1
+ case 8, Route110_EventScript_14FCD1
+ case 7, Route110_EventScript_14FCD1
+ case 6, Route110_EventScript_14FCDF
+ case 5, Route110_EventScript_14FCDF
+ case 4, Route110_EventScript_14FCDF
+ case 3, Route110_EventScript_14FCED
+ case 2, Route110_EventScript_14FCED
+ case 1, Route110_EventScript_14FCED
+ case 0, Route110_EventScript_14FCFB
+ end
+
+Route110_EventScript_14FCC3:: @ 814FCC3
+ msgbox Route110_Text_16EF9F, 4
+ goto Route110_EventScript_14FD09
+ end
+
+Route110_EventScript_14FCD1:: @ 814FCD1
+ msgbox Route110_Text_16F012, 4
+ goto Route110_EventScript_14FD09
+ end
+
+Route110_EventScript_14FCDF:: @ 814FCDF
+ msgbox Route110_Text_16F069, 4
+ goto Route110_EventScript_14FD09
+ end
+
+Route110_EventScript_14FCED:: @ 814FCED
+ msgbox Route110_Text_16F0D0, 4
+ goto Route110_EventScript_14FD09
+ end
+
+Route110_EventScript_14FCFB:: @ 814FCFB
+ msgbox Route110_Text_16F139, 4
+ goto Route110_EventScript_14FD09
+ end
+
+Route110_EventScript_14FD09:: @ 814FD09
+ setvar VAR_CYCLING_CHALLENGE_STATE, 3
+ savebgm 0
+ fadedefaultbgm
+ return
+
+Route110_EventScript_14FD13:: @ 814FD13
+ setvar VAR_SPECIAL_8, 1
+ goto Route110_EventScript_14FD34
+ end
+
+Route110_EventScript_14FD1E:: @ 814FD1E
+ setvar VAR_SPECIAL_8, 2
+ goto Route110_EventScript_14FD34
+ end
+
+Route110_EventScript_14FD29:: @ 814FD29
+ setvar VAR_SPECIAL_8, 3
+ goto Route110_EventScript_14FD34
+ end
+
+Route110_EventScript_14FD34:: @ 814FD34
+ lockall
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq Route110_EventScript_14FDA7
+ compare RESULT, 1
+ call_if_eq Route110_EventScript_14FDAC
+ applymovement 28, Route110_Movement_1A0845
+ waitmovement 0
+ applymovement 28, Route110_Movement_1A0833
+ waitmovement 0
+ applymovement 28, Route110_Movement_1A0835
+ waitmovement 0
+ delay 30
+ compare VAR_SPECIAL_8, 1
+ call_if_eq Route110_EventScript_14FF14
+ compare VAR_SPECIAL_8, 2
+ call_if_eq Route110_EventScript_14FF1F
+ compare VAR_SPECIAL_8, 3
+ call_if_eq Route110_EventScript_14FF2A
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq Route110_EventScript_14FDB1
+ compare RESULT, 1
+ goto_if_eq Route110_EventScript_14FE2B
+ releaseall
+ end
+
+Route110_EventScript_14FDA7:: @ 814FDA7
+ playbgm BGM_GIRL_SUP, TRUE
+ return
+
+Route110_EventScript_14FDAC:: @ 814FDAC
+ playbgm BGM_BOY_SUP, TRUE
+ return
+
+Route110_EventScript_14FDB1:: @ 814FDB1
+ msgbox Route110_Text_16E7A1, 4
+ switch VAR_STARTER_MON
+ case 0, Route110_EventScript_14FDE0
+ case 1, Route110_EventScript_14FDF0
+ case 2, Route110_EventScript_14FE00
+ end
+
+Route110_EventScript_14FDE0:: @ 814FDE0
+ trainerbattle 3, OPPONENT_MAY_5, 0, Route110_Text_16E826
+ goto Route110_EventScript_14FE10
+ end
+
+Route110_EventScript_14FDF0:: @ 814FDF0
+ trainerbattle 3, OPPONENT_MAY_8, 0, Route110_Text_16E826
+ goto Route110_EventScript_14FE10
+ end
+
+Route110_EventScript_14FE00:: @ 814FE00
+ trainerbattle 3, OPPONENT_MAY_2, 0, Route110_Text_16E826
+ goto Route110_EventScript_14FE10
+ end
+
+Route110_EventScript_14FE10:: @ 814FE10
+ msgbox Route110_Text_16E84C, 4
+ call Route110_EventScript_14FEA5
+ msgbox Route110_Text_16E8B3, 4
+ goto Route110_EventScript_14FEB2
+ end
+
+Route110_EventScript_14FE2B:: @ 814FE2B
+ msgbox Route110_Text_16E99A, 4
+ switch VAR_STARTER_MON
+ case 0, Route110_EventScript_14FE5A
+ case 1, Route110_EventScript_14FE6A
+ case 2, Route110_EventScript_14FE7A
+ end
+
+Route110_EventScript_14FE5A:: @ 814FE5A
+ trainerbattle 3, OPPONENT_BRENDAN_5, 0, Route110_Text_16EA0F
+ goto Route110_EventScript_14FE8A
+ end
+
+Route110_EventScript_14FE6A:: @ 814FE6A
+ trainerbattle 3, OPPONENT_BRENDAN_8, 0, Route110_Text_16EA0F
+ goto Route110_EventScript_14FE8A
+ end
+
+Route110_EventScript_14FE7A:: @ 814FE7A
+ trainerbattle 3, OPPONENT_BRENDAN_2, 0, Route110_Text_16EA0F
+ goto Route110_EventScript_14FE8A
+ end
+
+Route110_EventScript_14FE8A:: @ 814FE8A
+ msgbox Route110_Text_16EA2A, 4
+ call Route110_EventScript_14FEA5
+ msgbox Route110_Text_16EA7B, 4
+ goto Route110_EventScript_14FEB2
+ end
+
+Route110_EventScript_14FEA5:: @ 814FEA5
+ giveitem_std ITEM_ITEMFINDER
+ return
+
+Route110_EventScript_14FEB2:: @ 814FEB2
+ closemessage
+ compare VAR_SPECIAL_8, 1
+ call_if_eq Route110_EventScript_14FF56
+ compare VAR_SPECIAL_8, 2
+ call_if_eq Route110_EventScript_14FF5E
+ compare VAR_SPECIAL_8, 3
+ call_if_eq Route110_EventScript_14FF66
+ setobjectmovementtype 28, 10
+ setobjectmovementtype 29, 10
+ removeobject 28
+ addobject 29
+ delay 45
+ compare VAR_SPECIAL_8, 1
+ call_if_eq Route110_EventScript_14FF35
+ compare VAR_SPECIAL_8, 2
+ call_if_eq Route110_EventScript_14FF40
+ compare VAR_SPECIAL_8, 3
+ call_if_eq Route110_EventScript_14FF4B
+ removeobject 29
+ setvar VAR_ROUTE110_STATE, 1
+ savebgm 0
+ fadedefaultbgm
+ releaseall
+ end
+
+Route110_EventScript_14FF14:: @ 814FF14
+ applymovement 28, Route110_Movement_14FF6E
+ waitmovement 0
+ return
+
+Route110_EventScript_14FF1F:: @ 814FF1F
+ applymovement 28, Route110_Movement_14FF72
+ waitmovement 0
+ return
+
+Route110_EventScript_14FF2A:: @ 814FF2A
+ applymovement 28, Route110_Movement_14FF74
+ waitmovement 0
+ return
+
+Route110_EventScript_14FF35:: @ 814FF35
+ applymovement 29, Route110_Movement_14FF78
+ waitmovement 0
+ return
+
+Route110_EventScript_14FF40:: @ 814FF40
+ applymovement 29, Route110_Movement_14FF80
+ waitmovement 0
+ return
+
+Route110_EventScript_14FF4B:: @ 814FF4B
+ applymovement 29, Route110_Movement_14FF89
+ waitmovement 0
+ return
+
+Route110_EventScript_14FF56:: @ 814FF56
+ setobjectxyperm 29, 33, 55
+ return
+
+Route110_EventScript_14FF5E:: @ 814FF5E
+ setobjectxyperm 29, 34, 55
+ return
+
+Route110_EventScript_14FF66:: @ 814FF66
+ setobjectxyperm 29, 35, 55
+ return
+
+Route110_Movement_14FF6E:: @ 814FF6E
+ walk_down
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+Route110_Movement_14FF72:: @ 814FF72
+ walk_down
+ end_movement
+
+Route110_Movement_14FF74:: @ 814FF74
+ walk_down
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+Route110_Movement_14FF78:: @ 814FF78
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+Route110_Movement_14FF80:: @ 814FF80
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_down
+ end_movement
+
+Route110_Movement_14FF89:: @ 814FF89
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
diff --git a/data/maps/Route110_SeasideCyclingRoadNorthEntrance/scripts.inc b/data/maps/Route110_SeasideCyclingRoadNorthEntrance/scripts.inc
new file mode 100644
index 000000000..8d6465c89
--- /dev/null
+++ b/data/maps/Route110_SeasideCyclingRoadNorthEntrance/scripts.inc
@@ -0,0 +1,61 @@
+Route110_SeasideCyclingRoadNorthEntrance_MapScripts:: @ 81634C8
+ map_script 3, Route110_SeasideCyclingRoadNorthEntrance_MapScript1_1634CE
+ .byte 0
+
+Route110_SeasideCyclingRoadNorthEntrance_MapScript1_1634CE:: @ 81634CE
+ compare VAR_CYCLING_CHALLENGE_STATE, 3
+ call_if_eq Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634E5
+ compare VAR_CYCLING_CHALLENGE_STATE, 2
+ call_if_eq Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634E5
+ end
+
+Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634E5:: @ 81634E5
+ setvar VAR_CYCLING_CHALLENGE_STATE, 1
+ return
+
+Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634EB:: @ 81634EB
+ lock
+ faceplayer
+ msgbox Route110_SeasideCyclingRoadNorthEntrance_Text_19E406, 4
+ release
+ end
+
+Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634F7:: @ 81634F7
+@ Coord event directly in front of the gatesman heading left to right
+ lockall
+ specialvar RESULT, GetPlayerAvatarBike @ player state?
+ compare RESULT, 2
+ call_if_eq Route110_SeasideCyclingRoadNorthEntrance_EventScript_16351D
+ compare RESULT, 0
+ goto_if_eq Route110_SeasideCyclingRoadNorthEntrance_EventScript_163523
+ setflag FLAG_SYS_CYCLING_ROAD
+ setvar VAR_TEMP_1, 1
+ releaseall
+ end
+
+Route110_SeasideCyclingRoadNorthEntrance_EventScript_16351D:: @ 816351D
+@ You're on the Mach Bike!
+ setvar VAR_CYCLING_CHALLENGE_STATE, 1
+ return
+
+Route110_SeasideCyclingRoadNorthEntrance_EventScript_163523:: @ 8163523
+@ You don't have a bike!
+ msgbox Route110_SeasideCyclingRoadNorthEntrance_Text_19E3AD, 4
+ closemessage
+ applymovement 255, Route110_SeasideCyclingRoadNorthEntrance_Movement_163538
+ waitmovement 0
+ releaseall
+ end
+
+Route110_SeasideCyclingRoadNorthEntrance_Movement_163538:: @ 8163538
+ walk_left
+ end_movement
+
+Route110_SeasideCyclingRoadNorthEntrance_EventScript_16353A:: @ 816353A
+@ Coord event directly in front of the gatesman heading right to left
+ lockall
+ setvar VAR_CYCLING_CHALLENGE_STATE, 0
+ clearflag FLAG_SYS_CYCLING_ROAD
+ setvar VAR_TEMP_1, 0
+ releaseall
+ end
diff --git a/data/maps/Route110_SeasideCyclingRoadSouthEntrance/scripts.inc b/data/maps/Route110_SeasideCyclingRoadSouthEntrance/scripts.inc
new file mode 100644
index 000000000..edae49291
--- /dev/null
+++ b/data/maps/Route110_SeasideCyclingRoadSouthEntrance/scripts.inc
@@ -0,0 +1,38 @@
+Route110_SeasideCyclingRoadSouthEntrance_MapScripts:: @ 816347E
+ .byte 0
+
+Route110_SeasideCyclingRoadSouthEntrance_EventScript_16347F:: @ 816347F
+ lock
+ faceplayer
+ msgbox Route110_SeasideCyclingRoadSouthEntrance_Text_19E326, 4
+ release
+ end
+
+Route110_SeasideCyclingRoadSouthEntrance_EventScript_16348B:: @ 816348B
+ lockall
+ specialvar RESULT, GetPlayerAvatarBike
+ compare RESULT, 0
+ goto_if_eq Route110_SeasideCyclingRoadSouthEntrance_EventScript_1634A6
+ setflag FLAG_SYS_CYCLING_ROAD
+ setvar VAR_TEMP_1, 1
+ releaseall
+ end
+
+Route110_SeasideCyclingRoadSouthEntrance_EventScript_1634A6:: @ 81634A6
+ msgbox Route110_SeasideCyclingRoadSouthEntrance_Text_19E3AD, 4
+ closemessage
+ applymovement 255, Route110_SeasideCyclingRoadSouthEntrance_Movement_1634BB
+ waitmovement 0
+ releaseall
+ end
+
+Route110_SeasideCyclingRoadSouthEntrance_Movement_1634BB:: @ 81634BB
+ walk_left
+ end_movement
+
+Route110_SeasideCyclingRoadSouthEntrance_EventScript_1634BD:: @ 81634BD
+ lockall
+ clearflag FLAG_SYS_CYCLING_ROAD
+ setvar VAR_TEMP_1, 0
+ releaseall
+ end
diff --git a/data/maps/Route110_TrickHouseCorridor/scripts.inc b/data/maps/Route110_TrickHouseCorridor/scripts.inc
new file mode 100644
index 000000000..be70476e6
--- /dev/null
+++ b/data/maps/Route110_TrickHouseCorridor/scripts.inc
@@ -0,0 +1,7 @@
+Route110_TrickHouseCorridor_MapScripts:: @ 8161CEC
+ map_script 3, Route110_TrickHouseCorridor_MapScript1_161CF2
+ .byte 0
+
+Route110_TrickHouseCorridor_MapScript1_161CF2:: @ 8161CF2
+ setvar VAR_TRICK_HOUSE_STATE, 1
+ end
diff --git a/data/maps/Route110_TrickHouseEnd/scripts.inc b/data/maps/Route110_TrickHouseEnd/scripts.inc
new file mode 100644
index 000000000..ca992427c
--- /dev/null
+++ b/data/maps/Route110_TrickHouseEnd/scripts.inc
@@ -0,0 +1,251 @@
+Route110_TrickHouseEnd_MapScripts:: @ 8161936
+ map_script 5, Route110_TrickHouseEnd_MapScript1_16194B
+ map_script 3, Route110_TrickHouseEnd_MapScript1_161957
+ map_script 2, Route110_TrickHouseEnd_MapScript2_16197C
+ map_script 4, Route110_TrickHouseEnd_MapScript2_161965
+ .byte 0
+
+Route110_TrickHouseEnd_MapScript1_16194B:: @ 816194B
+ compare VAR_TEMP_1, 1
+ call_if_eq Route110_TrickHouseEnd_EventScript_161994
+ end
+
+Route110_TrickHouseEnd_MapScript1_161957:: @ 8161957
+ setvar VAR_TEMP_1, 0
+ setvar VAR_TEMP_2, 0
+ special SetTrickHouseEndRoomFlag
+ end
+
+Route110_TrickHouseEnd_MapScript2_161965:: @ 8161965
+ map_script_2 VAR_TEMP_2, 0, Route110_TrickHouseEnd_EventScript_16196F
+ .2byte 0
+
+Route110_TrickHouseEnd_EventScript_16196F:: @ 816196F
+ addobject 1
+ showobjectat 1, MAP_ROUTE110_TRICK_HOUSE_END
+ turnobject 1, 4
+ end
+
+Route110_TrickHouseEnd_MapScript2_16197C:: @ 816197C
+ map_script_2 VAR_TEMP_1, 0, Route110_TrickHouseEnd_EventScript_161986
+ .2byte 0
+
+Route110_TrickHouseEnd_EventScript_161986:: @ 8161986
+ setvar VAR_TEMP_1, 1
+ call Route110_TrickHouseEnd_EventScript_161994
+ special DrawWholeMapView
+ end
+
+Route110_TrickHouseEnd_EventScript_161994:: @ 8161994
+ setmetatile 10, 1, 539, 1
+ return
+
+Route110_TrickHouseEnd_EventScript_16199E:: @ 816199E
+ lock
+ faceplayer
+ msgbox Route110_TrickHouseEnd_Text_19C281, 4
+ setvar VAR_TEMP_2, 1
+ switch VAR_TRICK_HOUSE_ROOMS_COMPLETED
+ case 0, Route110_TrickHouseEnd_EventScript_161A0B
+ case 1, Route110_TrickHouseEnd_EventScript_161A47
+ case 2, Route110_TrickHouseEnd_EventScript_161A83
+ case 3, Route110_TrickHouseEnd_EventScript_161ABF
+ case 4, Route110_TrickHouseEnd_EventScript_161AFB
+ case 5, Route110_TrickHouseEnd_EventScript_161B37
+ case 6, Route110_TrickHouseEnd_EventScript_161B73
+ case 7, Route110_TrickHouseEnd_EventScript_161BAF
+ end
+
+Route110_TrickHouseEnd_EventScript_161A0B:: @ 8161A0B
+ msgbox Route110_TrickHouseEnd_Text_19C2B2, 4
+ msgbox Route110_TrickHouseEnd_Text_19C90B, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ giveitem_std ITEM_RARE_CANDY
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C4E
+ msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
+ closemessage
+ call Route110_TrickHouseEnd_EventScript_161C2E
+ release
+ end
+
+Route110_TrickHouseEnd_EventScript_161A47:: @ 8161A47
+ msgbox Route110_TrickHouseEnd_Text_19C333, 4
+ msgbox Route110_TrickHouseEnd_Text_19C90B, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ giveitem_std ITEM_TIMER_BALL
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C4E
+ msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
+ closemessage
+ call Route110_TrickHouseEnd_EventScript_161C2E
+ release
+ end
+
+Route110_TrickHouseEnd_EventScript_161A83:: @ 8161A83
+ msgbox Route110_TrickHouseEnd_Text_19C3A7, 4
+ msgbox Route110_TrickHouseEnd_Text_19C90B, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ giveitem_std ITEM_HARD_STONE
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C4E
+ msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
+ closemessage
+ call Route110_TrickHouseEnd_EventScript_161C2E
+ release
+ end
+
+Route110_TrickHouseEnd_EventScript_161ABF:: @ 8161ABF
+ msgbox Route110_TrickHouseEnd_Text_19C41F, 4
+ msgbox Route110_TrickHouseEnd_Text_19C90B, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ giveitem_std ITEM_SMOKE_BALL
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C4E
+ msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
+ closemessage
+ call Route110_TrickHouseEnd_EventScript_161C2E
+ release
+ end
+
+Route110_TrickHouseEnd_EventScript_161AFB:: @ 8161AFB
+ msgbox Route110_TrickHouseEnd_Text_19C491, 4
+ msgbox Route110_TrickHouseEnd_Text_19C90B, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ giveitem_std ITEM_TM12_TAUNT
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C4E
+ msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
+ closemessage
+ call Route110_TrickHouseEnd_EventScript_161C2E
+ release
+ end
+
+Route110_TrickHouseEnd_EventScript_161B37:: @ 8161B37
+ msgbox Route110_TrickHouseEnd_Text_19C515, 4
+ msgbox Route110_TrickHouseEnd_Text_19C90B, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ giveitem_std ITEM_MAGNET
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C4E
+ msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
+ closemessage
+ call Route110_TrickHouseEnd_EventScript_161C2E
+ release
+ end
+
+Route110_TrickHouseEnd_EventScript_161B73:: @ 8161B73
+ msgbox Route110_TrickHouseEnd_Text_19C567, 4
+ msgbox Route110_TrickHouseEnd_Text_19C90B, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ giveitem_std ITEM_PP_MAX
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C4E
+ msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
+ closemessage
+ call Route110_TrickHouseEnd_EventScript_161C2E
+ release
+ end
+
+Route110_TrickHouseEnd_EventScript_161BAF:: @ 8161BAF
+ msgbox Route110_TrickHouseEnd_Text_19C5AF, 4
+ closemessage
+ compare FACING, 1
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C74
+ compare FACING, 2
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C7F
+ compare FACING, 3
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C8A
+ compare FACING, 4
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C95
+ delay 30
+ msgbox Route110_TrickHouseEnd_Text_19C602, 4
+ closemessage
+ applymovement 1, Route110_TrickHouseEnd_Movement_1A0839
+ waitmovement 0
+ delay 30
+ msgbox Route110_TrickHouseEnd_Text_19C691, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ .ifdef SAPPHIRE
+ givedecoration_std DECOR_BLUE_TENT
+ .else
+ givedecoration_std DECOR_RED_TENT
+ .endc
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEnd_EventScript_161C61
+ msgbox Route110_TrickHouseEnd_Text_19C85C, 4
+ call Route110_TrickHouseEnd_EventScript_161C2E
+ special ResetTrickHouseEndRoomFlag
+ release
+ end
+
+Route110_TrickHouseEnd_EventScript_161C2E:: @ 8161C2E
+ applymovement 1, Route110_TrickHouseEnd_Movement_161315
+ waitmovement 0
+ playse SE_W153
+ applymovement 1, Route110_TrickHouseEnd_Movement_16131E
+ waitmovement 0
+ removeobject 1
+ addvar VAR_TRICK_HOUSE_ROOMS_COMPLETED, 1
+ return
+
+Route110_TrickHouseEnd_EventScript_161C4E:: @ 8161C4E
+ call Route110_TrickHouseEnd_EventScript_1A02A5
+ msgbox Route110_TrickHouseEnd_Text_19C92E, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 1
+ return
+
+Route110_TrickHouseEnd_EventScript_161C61:: @ 8161C61
+ call Route110_TrickHouseEnd_EventScript_1A02B8
+ msgbox Route110_TrickHouseEnd_Text_19C7D7, 4
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 1
+ return
+
+Route110_TrickHouseEnd_EventScript_161C74:: @ 8161C74
+ applymovement 1, Route110_TrickHouseEnd_Movement_1A0845
+ waitmovement 0
+ return
+
+Route110_TrickHouseEnd_EventScript_161C7F:: @ 8161C7F
+ applymovement 1, Route110_TrickHouseEnd_Movement_1A0841
+ waitmovement 0
+ return
+
+Route110_TrickHouseEnd_EventScript_161C8A:: @ 8161C8A
+ applymovement 1, Route110_TrickHouseEnd_Movement_1A083F
+ waitmovement 0
+ return
+
+Route110_TrickHouseEnd_EventScript_161C95:: @ 8161C95
+ applymovement 1, Route110_TrickHouseEnd_Movement_1A0843
+ waitmovement 0
+ return
+
+Route110_TrickHouseEnd_EventScript_161CA0:: @ 8161CA0
+ lockall
+ turnobject 1, 3
+ playse SE_PIN
+ applymovement 1, Route110_TrickHouseEnd_Movement_1A0833
+ waitmovement 0
+ delay 20
+ applymovement 1, Route110_TrickHouseEnd_Movement_161CEA
+ waitmovement 0
+ playse SE_W153
+ applymovement 255, Route110_TrickHouseEnd_Movement_1A0845
+ waitmovement 0
+ msgbox Route110_TrickHouseEnd_Text_19CA8B, 4
+ closemessage
+ applymovement 255, Route110_TrickHouseEnd_Movement_161CE8
+ waitmovement 0
+ delay 4
+ turnobject 1, 4
+ releaseall
+ end
+
+Route110_TrickHouseEnd_Movement_161CE8:: @ 8161CE8
+ walk_down
+ end_movement
+
+Route110_TrickHouseEnd_Movement_161CEA:: @ 8161CEA
+ jump_in_place_left
+ end_movement
diff --git a/data/maps/Route110_TrickHouseEntrance/scripts.inc b/data/maps/Route110_TrickHouseEntrance/scripts.inc
new file mode 100644
index 000000000..a14ce2e2d
--- /dev/null
+++ b/data/maps/Route110_TrickHouseEntrance/scripts.inc
@@ -0,0 +1,759 @@
+Route110_TrickHouseEntrance_MapScripts:: @ 8160F2B
+ map_script 3, Route110_TrickHouseEntrance_MapScript1_160F3B
+ map_script 2, Route110_TrickHouseEntrance_MapScript2_1611CD
+ map_script 4, Route110_TrickHouseEntrance_MapScript2_1610B2
+ .byte 0
+
+Route110_TrickHouseEntrance_MapScript1_160F3B:: @ 8160F3B
+ setflag FLAG_LANDMARK_TRICK_HOUSE
+ compare VAR_TRICK_HOUSE_STATE, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_160FCE
+ compare VAR_TRICK_HOUSE_PRIZE_PICKUP, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_160FB2
+ compare VAR_TRICK_HOUSE_ENTRANCE_STATE_2, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_16108E
+ compare VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 5
+ call_if_eq Route110_TrickHouseEntrance_EventScript_160FDE
+ compare VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 3
+ call_if_eq Route110_TrickHouseEntrance_EventScript_160FDE
+ compare VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_160FDE
+ switch VAR_TRICK_HOUSE_ENTRANCE_STATE_3
+ case 0, Route110_TrickHouseEntrance_EventScript_16109A
+ case 1, Route110_TrickHouseEntrance_EventScript_1610A0
+ case 3, Route110_TrickHouseEntrance_EventScript_1610A6
+ case 4, Route110_TrickHouseEntrance_EventScript_1610AC
+ end
+
+Route110_TrickHouseEntrance_EventScript_160FB2:: @ 8160FB2
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE, 1
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 8
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_160FC8
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 2
+ end
+
+Route110_TrickHouseEntrance_EventScript_160FC8:: @ 8160FC8
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 6
+ end
+
+Route110_TrickHouseEntrance_EventScript_160FCE:: @ 8160FCE
+ setvar VAR_TRICK_HOUSE_STATE, 0
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 5
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE, 1
+ end
+
+Route110_TrickHouseEntrance_EventScript_160FDE:: @ 8160FDE
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 0
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 1
+ call_if_eq Route110_TrickHouseEntrance_EventScript_16103C
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 2
+ call_if_eq Route110_TrickHouseEntrance_EventScript_161046
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 3
+ call_if_eq Route110_TrickHouseEntrance_EventScript_161050
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 4
+ call_if_eq Route110_TrickHouseEntrance_EventScript_16105A
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 5
+ call_if_eq Route110_TrickHouseEntrance_EventScript_161064
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 6
+ call_if_eq Route110_TrickHouseEntrance_EventScript_16106E
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 7
+ call_if_eq Route110_TrickHouseEntrance_EventScript_161078
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 8
+ call_if_eq Route110_TrickHouseEntrance_EventScript_161082
+ return
+
+Route110_TrickHouseEntrance_EventScript_16103C:: @ 816103C
+ call_if_unset FLAG_BADGE03_GET, Route110_TrickHouseEntrance_EventScript_161088
+ return
+
+Route110_TrickHouseEntrance_EventScript_161046:: @ 8161046
+ call_if_unset FLAG_BADGE04_GET, Route110_TrickHouseEntrance_EventScript_161088
+ return
+
+Route110_TrickHouseEntrance_EventScript_161050:: @ 8161050
+ call_if_unset FLAG_BADGE05_GET, Route110_TrickHouseEntrance_EventScript_161088
+ return
+
+Route110_TrickHouseEntrance_EventScript_16105A:: @ 816105A
+ call_if_unset FLAG_BADGE06_GET, Route110_TrickHouseEntrance_EventScript_161088
+ return
+
+Route110_TrickHouseEntrance_EventScript_161064:: @ 8161064
+ call_if_unset FLAG_BADGE07_GET, Route110_TrickHouseEntrance_EventScript_161088
+ return
+
+Route110_TrickHouseEntrance_EventScript_16106E:: @ 816106E
+ call_if_unset FLAG_BADGE08_GET, Route110_TrickHouseEntrance_EventScript_161088
+ return
+
+Route110_TrickHouseEntrance_EventScript_161078:: @ 8161078
+ call_if_unset FLAG_SYS_GAME_CLEAR, Route110_TrickHouseEntrance_EventScript_161088
+ return
+
+Route110_TrickHouseEntrance_EventScript_161082:: @ 8161082
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 4
+ return
+
+Route110_TrickHouseEntrance_EventScript_161088:: @ 8161088
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 3
+ return
+
+Route110_TrickHouseEntrance_EventScript_16108E:: @ 816108E
+ setobjectxyperm 1, 5, 2
+ setobjectmovementtype 1, 4
+ end
+
+Route110_TrickHouseEntrance_EventScript_16109A:: @ 816109A
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE, 0
+ end
+
+Route110_TrickHouseEntrance_EventScript_1610A0:: @ 81610A0
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE, 1
+ end
+
+Route110_TrickHouseEntrance_EventScript_1610A6:: @ 81610A6
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE, 1
+ end
+
+Route110_TrickHouseEntrance_EventScript_1610AC:: @ 81610AC
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE, 1
+ end
+
+Route110_TrickHouseEntrance_MapScript2_1610B2:: @ 81610B2
+ map_script_2 VAR_TRICK_HOUSE_ENTRANCE_STATE_2, 1, Route110_TrickHouseEntrance_EventScript_1610F4
+ map_script_2 VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 0, Route110_TrickHouseEntrance_EventScript_161105
+ map_script_2 VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 1, Route110_TrickHouseEntrance_EventScript_1611AB
+ map_script_2 VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 2, Route110_TrickHouseEntrance_EventScript_1611AF
+ map_script_2 VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 3, Route110_TrickHouseEntrance_EventScript_1611AF
+ map_script_2 VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 4, Route110_TrickHouseEntrance_EventScript_1611AB
+ map_script_2 VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 5, Route110_TrickHouseEntrance_EventScript_1611AB
+ map_script_2 VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 6, Route110_TrickHouseEntrance_EventScript_1611BE
+ .2byte 0
+
+Route110_TrickHouseEntrance_EventScript_1610F4:: @ 81610F4
+ addobject 1
+ showobjectat 1, MAP_ROUTE110_TRICK_HOUSE_ENTRANCE
+ turnobject 1, 4
+ turnobject 255, 3
+ end
+
+Route110_TrickHouseEntrance_EventScript_161105:: @ 8161105
+ addobject 1
+ hideobjectat 1, MAP_ROUTE110_TRICK_HOUSE_ENTRANCE
+ switch VAR_TRICK_HOUSE_ROOMS_COMPLETED
+ case 0, Route110_TrickHouseEntrance_EventScript_16116B
+ case 1, Route110_TrickHouseEntrance_EventScript_161173
+ case 2, Route110_TrickHouseEntrance_EventScript_161193
+ case 3, Route110_TrickHouseEntrance_EventScript_161183
+ case 4, Route110_TrickHouseEntrance_EventScript_16118B
+ case 5, Route110_TrickHouseEntrance_EventScript_16117B
+ case 6, Route110_TrickHouseEntrance_EventScript_16119B
+ case 7, Route110_TrickHouseEntrance_EventScript_1611A3
+ end
+
+Route110_TrickHouseEntrance_EventScript_16116B:: @ 816116B
+ setobjectxy 1, 6, 3
+ end
+
+Route110_TrickHouseEntrance_EventScript_161173:: @ 8161173
+ setobjectxy 1, 11, 5
+ end
+
+Route110_TrickHouseEntrance_EventScript_16117B:: @ 816117B
+ setobjectxy 1, 11, 1
+ end
+
+Route110_TrickHouseEntrance_EventScript_161183:: @ 8161183
+ setobjectxy 1, 3, 1
+ end
+
+Route110_TrickHouseEntrance_EventScript_16118B:: @ 816118B
+ setobjectxy 1, 0, 5
+ end
+
+Route110_TrickHouseEntrance_EventScript_161193:: @ 8161193
+ setobjectxy 1, 9, 1
+ end
+
+Route110_TrickHouseEntrance_EventScript_16119B:: @ 816119B
+ setobjectxy 1, 8, 1
+ end
+
+Route110_TrickHouseEntrance_EventScript_1611A3:: @ 81611A3
+ setobjectxy 1, 4, 4
+ end
+
+Route110_TrickHouseEntrance_EventScript_1611AB:: @ 81611AB
+ removeobject 1
+ end
+
+Route110_TrickHouseEntrance_EventScript_1611AF:: @ 81611AF
+ addobject 1
+ setobjectxy 1, 5, 2
+ turnobject 1, 2
+ end
+
+Route110_TrickHouseEntrance_EventScript_1611BE:: @ 81611BE
+ addobject 1
+ setobjectxy 1, 5, 2
+ turnobject 1, 1
+ end
+
+Route110_TrickHouseEntrance_MapScript2_1611CD:: @ 81611CD
+ map_script_2 VAR_TRICK_HOUSE_ENTRANCE_STATE_2, 1, Route110_TrickHouseEntrance_EventScript_1611D7
+ .2byte 0
+
+Route110_TrickHouseEntrance_EventScript_1611D7:: @ 81611D7
+ lockall
+ delay 20
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_161327
+ msgbox Route110_TrickHouseEntrance_Text_19BD82, 4
+ closemessage
+ delay 20
+ applymovement 1, Route110_TrickHouseEntrance_Movement_161315
+ waitmovement 0
+ playse SE_W153
+ applymovement 1, Route110_TrickHouseEntrance_Movement_16131E
+ waitmovement 0
+ removeobject 1
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 1
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_2, 0
+ releaseall
+ end
+
+@ 8161218
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_16121A:: @ 816121A
+ lockall
+ switch VAR_TRICK_HOUSE_ENTRANCE_STATE_3
+ case 0, Route110_TrickHouseEntrance_EventScript_16124D
+ case 2, Route110_TrickHouseEntrance_EventScript_16136E
+ case 3, Route110_TrickHouseEntrance_EventScript_161330
+ case 6, Route110_TrickHouseEntrance_EventScript_161518
+ end
+
+Route110_TrickHouseEntrance_EventScript_16124D:: @ 816124D
+ playse SE_PIN
+ applymovement 255, Route110_TrickHouseEntrance_Movement_1A0833
+ waitmovement 0
+ applymovement 255, Route110_TrickHouseEntrance_Movement_1A0835
+ waitmovement 0
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1612CD
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 1
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1612D6
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 2
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1612DF
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 3
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1612E8
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 4
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1612F1
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 5
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1612FA
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 6
+ call_if_eq Route110_TrickHouseEntrance_EventScript_161303
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 7
+ call_if_eq Route110_TrickHouseEntrance_EventScript_16130C
+ closemessage
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_2, 1
+ warp MAP_ROUTE110_TRICK_HOUSE_ENTRANCE, 255, 6, 2
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1612CD:: @ 81612CD
+ msgbox Route110_TrickHouseEntrance_Text_19BA6E, 4
+ return
+
+Route110_TrickHouseEntrance_EventScript_1612D6:: @ 81612D6
+ msgbox Route110_TrickHouseEntrance_Text_19BAC0, 4
+ return
+
+Route110_TrickHouseEntrance_EventScript_1612DF:: @ 81612DF
+ msgbox Route110_TrickHouseEntrance_Text_19BB11, 4
+ return
+
+Route110_TrickHouseEntrance_EventScript_1612E8:: @ 81612E8
+ msgbox Route110_TrickHouseEntrance_Text_19BB61, 4
+ return
+
+Route110_TrickHouseEntrance_EventScript_1612F1:: @ 81612F1
+ msgbox Route110_TrickHouseEntrance_Text_19BBB4, 4
+ return
+
+Route110_TrickHouseEntrance_EventScript_1612FA:: @ 81612FA
+ msgbox Route110_TrickHouseEntrance_Text_19BC04, 4
+ return
+
+Route110_TrickHouseEntrance_EventScript_161303:: @ 8161303
+ msgbox Route110_TrickHouseEntrance_Text_19BC55, 4
+ return
+
+Route110_TrickHouseEntrance_EventScript_16130C:: @ 816130C
+ msgbox Route110_TrickHouseEntrance_Text_19BCA8, 4
+ return
+
+Route110_TrickHouseEnd_Movement_161315:: @ 8161315
+Route110_TrickHouseEntrance_Movement_161315:: @ 8161315
+ face_up
+ delay_4
+ face_left
+ delay_4
+ face_down
+ delay_4
+ face_right
+ delay_4
+ end_movement
+
+Route110_TrickHouseEnd_Movement_16131E:: @ 816131E
+Route110_TrickHouseEntrance_Movement_16131E:: @ 816131E
+ face_up
+ disable_anim
+ slide_up
+ slide_up
+ slide_up
+ slide_up
+ slide_up
+ slide_up
+ end_movement
+
+Route110_TrickHouseEntrance_EventScript_161327:: @ 8161327
+ msgbox Route110_TrickHouseEntrance_Text_19BCFD, 4
+ return
+
+Route110_TrickHouseEntrance_EventScript_161330:: @ 8161330
+ msgbox Route110_TrickHouseEntrance_Text_19BF19, 4
+ closemessage
+ applymovement 1, Route110_TrickHouseEntrance_Movement_1A0839
+ waitmovement 0
+ playse SE_PIN
+ applymovement 1, Route110_TrickHouseEntrance_Movement_1A0833
+ waitmovement 0
+ applymovement 1, Route110_TrickHouseEntrance_Movement_1A0835
+ waitmovement 0
+ msgbox Route110_TrickHouseEntrance_Text_19BFAB, 4
+ applymovement 1, Route110_TrickHouseEntrance_Movement_1A0841
+ waitmovement 0
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_16136E:: @ 816136E
+ applymovement 1, Route110_TrickHouseEntrance_Movement_1A0839
+ waitmovement 0
+ msgbox Route110_TrickHouseEntrance_Text_19C07E, 4
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1613CE
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 2
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1613FA
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 3
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161426
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 4
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161452
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 5
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_16147E
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 6
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1614AA
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 7
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1614D6
+ end
+
+Route110_TrickHouseEntrance_EventScript_1613CE:: @ 81613CE
+ giveitem_std ITEM_RARE_CANDY
+ compare RESULT, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1A02A5
+ msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1613FA:: @ 81613FA
+ giveitem_std ITEM_TIMER_BALL
+ compare RESULT, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1A02A5
+ msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161426:: @ 8161426
+ giveitem_std ITEM_HARD_STONE
+ compare RESULT, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1A02A5
+ msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161452:: @ 8161452
+ giveitem_std ITEM_SMOKE_BALL
+ compare RESULT, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1A02A5
+ msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_16147E:: @ 816147E
+ giveitem_std ITEM_TM12_TAUNT
+ compare RESULT, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1A02A5
+ msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1614AA:: @ 81614AA
+ giveitem_std ITEM_MAGNET
+ compare RESULT, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1A02A5
+ msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1614D6:: @ 81614D6
+ giveitem_std ITEM_PP_MAX
+ compare RESULT, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1A02A5
+ msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161502:: @ 8161502
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 3
+ applymovement 1, Route110_TrickHouseEntrance_Movement_1A0841
+ waitmovement 0
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161518:: @ 8161518
+ applymovement 1, Route110_TrickHouseEntrance_Movement_1A0839
+ waitmovement 0
+ msgbox Route110_TrickHouseEntrance_Text_19C128, 4
+ .ifdef SAPPHIRE
+ givedecoration_std DECOR_BLUE_TENT
+ .else
+ givedecoration_std DECOR_RED_TENT
+ .endif
+ compare RESULT, 1
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161551
+ compare RESULT, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1A02B8
+ msgbox Route110_TrickHouseEntrance_Text_19C18D, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161551:: @ 8161551
+ msgbox Route110_TrickHouseEntrance_Text_19C17E, 4
+ closemessage
+ applymovement 1, Route110_TrickHouseEntrance_Movement_16309F
+ waitmovement 0
+ applymovement 1, Route110_TrickHouseEntrance_Movement_161315
+ waitmovement 0
+ playse SE_W153
+ applymovement 1, Route110_TrickHouseEntrance_Movement_16131E
+ waitmovement 0
+ removeobject 1
+ setvar VAR_TRICK_HOUSE_PRIZE_PICKUP, 0
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE_3, 5
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_16158A:: @ 816158A
+ lockall
+ switch VAR_TRICK_HOUSE_ENTRANCE_STATE_3
+ case 0, Route110_TrickHouseEntrance_EventScript_1615BD
+ case 1, Route110_TrickHouseEntrance_EventScript_1615C7
+ case 4, Route110_TrickHouseEntrance_EventScript_1616B8
+ case 5, Route110_TrickHouseEntrance_EventScript_1616C2
+ end
+
+Route110_TrickHouseEntrance_EventScript_1615BD:: @ 81615BD
+ msgbox Route110_TrickHouseEntrance_Text_19BE6E, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1615C7:: @ 81615C7
+ msgbox Route110_TrickHouseEntrance_Text_19BE7D, MSGBOX_YESNO
+ closemessage
+ compare RESULT, YES
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1615DD
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1615DD:: @ 81615DD
+ setmetatile 5, 1, 537, 0
+ special DrawWholeMapView
+ delay 20
+ applymovement 255, Route110_TrickHouseEntrance_Movement_1A0856
+ waitmovement 0
+ applymovement 255, Route110_TrickHouseEntrance_Movement_16165E
+ waitmovement 0
+ switch VAR_TRICK_HOUSE_ROOMS_COMPLETED
+ case 0, Route110_TrickHouseEntrance_EventScript_161660
+ case 1, Route110_TrickHouseEntrance_EventScript_16166B
+ case 2, Route110_TrickHouseEntrance_EventScript_161676
+ case 3, Route110_TrickHouseEntrance_EventScript_161681
+ case 4, Route110_TrickHouseEntrance_EventScript_16168C
+ case 5, Route110_TrickHouseEntrance_EventScript_161697
+ case 6, Route110_TrickHouseEntrance_EventScript_1616A2
+ case 7, Route110_TrickHouseEntrance_EventScript_1616AD
+ end
+
+Route110_TrickHouseEntrance_Movement_16165E:: @ 816165E
+ set_invisible
+ end_movement
+
+Route110_TrickHouseEntrance_EventScript_161660:: @ 8161660
+ warp MAP_ROUTE110_TRICK_HOUSE_PUZZLE1, 255, 0, 21
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_16166B:: @ 816166B
+ warp MAP_ROUTE110_TRICK_HOUSE_PUZZLE2, 255, 0, 21
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161676:: @ 8161676
+ warp MAP_ROUTE110_TRICK_HOUSE_PUZZLE3, 255, 0, 21
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161681:: @ 8161681
+ warp MAP_ROUTE110_TRICK_HOUSE_PUZZLE4, 255, 0, 21
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_16168C:: @ 816168C
+ warp MAP_ROUTE110_TRICK_HOUSE_PUZZLE5, 255, 0, 21
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161697:: @ 8161697
+ warp MAP_ROUTE110_TRICK_HOUSE_PUZZLE6, 255, 0, 21
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1616A2:: @ 81616A2
+ warp MAP_ROUTE110_TRICK_HOUSE_PUZZLE7, 255, 0, 21
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1616AD:: @ 81616AD
+ warp MAP_ROUTE110_TRICK_HOUSE_PUZZLE8, 255, 0, 21
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1616B8:: @ 81616B8
+ msgbox Route110_TrickHouseEntrance_Text_19BEB3, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1616C2:: @ 81616C2
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 8
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1616D7
+ msgbox Route110_TrickHouseEntrance_Text_19BE6E, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1616D7:: @ 81616D7
+ msgbox Route110_TrickHouseEntrance_Text_19BEB3, 4
+ releaseall
+ end
+
+gUnknown_081616E1:: @ 81616E1
+ lockall
+ switch VAR_TRICK_HOUSE_ROOMS_COMPLETED
+ case 0, Route110_TrickHouseEntrance_EventScript_161740
+ case 1, Route110_TrickHouseEntrance_EventScript_161769
+ case 2, Route110_TrickHouseEntrance_EventScript_161792
+ case 3, Route110_TrickHouseEntrance_EventScript_1617BB
+ case 4, Route110_TrickHouseEntrance_EventScript_1617E4
+ case 5, Route110_TrickHouseEntrance_EventScript_16180D
+ case 6, Route110_TrickHouseEntrance_EventScript_161836
+ case 7, Route110_TrickHouseEntrance_EventScript_16185F
+ end
+
+Route110_TrickHouseEntrance_EventScript_161740:: @ 8161740
+ compare VAR_TRICK_HOUSE_PUZZLE_1_STATE, 0
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
+ msgbox UnknownString_819CAD1, 4
+ playse SE_PIN
+ setvar VAR_TRICK_HOUSE_PUZZLE_1_STATE, 2
+ setmetatile 13, 1, 523, 0
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161769:: @ 8161769
+ compare VAR_TRICK_HOUSE_PUZZLE_2_STATE, 0
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
+ msgbox UnknownString_819CCCB, 4
+ playse SE_PIN
+ setvar VAR_TRICK_HOUSE_PUZZLE_2_STATE, 2
+ setmetatile 13, 1, 523, 0
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161792:: @ 8161792
+ compare VAR_TRICK_HOUSE_PUZZLE_3_STATE, 0
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
+ msgbox UnknownString_819CEF9, 4
+ playse SE_PIN
+ setvar VAR_TRICK_HOUSE_PUZZLE_3_STATE, 2
+ setmetatile 13, 1, 523, 0
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1617BB:: @ 81617BB
+ compare VAR_TRICK_HOUSE_PUZZLE_4_STATE, 0
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
+ msgbox UnknownString_819D164, 4
+ playse SE_PIN
+ setvar VAR_TRICK_HOUSE_PUZZLE_4_STATE, 2
+ setmetatile 13, 1, 523, 0
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1617E4:: @ 81617E4
+ compare VAR_TRICK_HOUSE_PUZZLE_5_STATE, 0
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
+ msgbox UnknownString_819D3A5, 4
+ playse SE_PIN
+ setvar VAR_TRICK_HOUSE_PUZZLE_5_STATE, 2
+ setmetatile 13, 1, 523, 0
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_16180D:: @ 816180D
+ compare VAR_TRICK_HOUSE_PUZZLE_6_STATE, 0
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
+ msgbox UnknownString_819DC0A, 4
+ playse SE_PIN
+ setvar VAR_TRICK_HOUSE_PUZZLE_6_STATE, 2
+ setmetatile 13, 1, 523, 0
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161836:: @ 8161836
+ compare VAR_TRICK_HOUSE_PUZZLE_7_STATE, 0
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
+ msgbox UnknownString_819DE8D, 4
+ playse SE_PIN
+ setvar VAR_TRICK_HOUSE_PUZZLE_7_STATE, 2
+ setmetatile 13, 1, 523, 0
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_16185F:: @ 816185F
+ compare VAR_TRICK_HOUSE_PUZZLE_8_STATE, 0
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
+ msgbox UnknownString_819E0FF, 4
+ playse SE_PIN
+ setvar VAR_TRICK_HOUSE_PUZZLE_8_STATE, 2
+ setmetatile 13, 1, 523, 0
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_161888:: @ 8161888
+ msgbox UnknownString_819C21F, 4
+ releaseall
+ end
+
+Route110_TrickHousePuzzle1_EventScript_161892:: @ 8161892
+Route110_TrickHousePuzzle2_EventScript_161892:: @ 8161892
+Route110_TrickHousePuzzle3_EventScript_161892:: @ 8161892
+Route110_TrickHousePuzzle4_EventScript_161892:: @ 8161892
+Route110_TrickHousePuzzle5_EventScript_161892:: @ 8161892
+Route110_TrickHousePuzzle6_EventScript_161892:: @ 8161892
+Route110_TrickHousePuzzle7_EventScript_161892:: @ 8161892
+Route110_TrickHousePuzzle8_EventScript_161892:: @ 8161892
+ msgbox Route110_TrickHousePuzzle1_Text_19C1FF, 4
+ releaseall
+ end
+
+Route110_TrickHousePuzzle1_EventScript_16189C:: @ 816189C
+Route110_TrickHousePuzzle2_EventScript_16189C:: @ 816189C
+Route110_TrickHousePuzzle3_EventScript_16189C:: @ 816189C
+Route110_TrickHousePuzzle4_EventScript_16189C:: @ 816189C
+Route110_TrickHousePuzzle5_EventScript_16189C:: @ 816189C
+Route110_TrickHousePuzzle6_EventScript_16189C:: @ 816189C
+Route110_TrickHousePuzzle7_EventScript_16189C:: @ 816189C
+Route110_TrickHousePuzzle8_EventScript_16189C:: @ 816189C
+ playfanfare BGM_FANFA4
+ message Route110_TrickHousePuzzle1_Text_19C1B8
+ waitfanfare
+ waitmessage
+ msgbox Route110_TrickHousePuzzle1_Text_19C1CB, 4
+ releaseall
+ end
+
+Route110_TrickHouseEntrance_EventScript_1618B0:: @ 81618B0
+ lockall
+ msgbox Route110_TrickHouseEntrance_Text_19BA56, 4
+ releaseall
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 0
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1618E1
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 1
+ call_if_eq Route110_TrickHouseEntrance_EventScript_1618F6
+ compare VAR_TRICK_HOUSE_ROOMS_COMPLETED, 2
+ call_if_eq Route110_TrickHouseEntrance_EventScript_16190B
+ setvar VAR_TRICK_HOUSE_ENTRANCE_STATE, 1
+ end
+
+Route110_TrickHouseEntrance_EventScript_1618E1:: @ 81618E1
+ setvar VAR_SPECIAL_4, 6
+ setvar VAR_SPECIAL_5, 3
+ setvar VAR_SPECIAL_6, 0
+ call Route110_TrickHouseEntrance_EventScript_161920
+ return
+
+Route110_TrickHouseEntrance_EventScript_1618F6:: @ 81618F6
+ setvar VAR_SPECIAL_4, 11
+ setvar VAR_SPECIAL_5, 5
+ setvar VAR_SPECIAL_6, 0
+ call Route110_TrickHouseEntrance_EventScript_161920
+ return
+
+Route110_TrickHouseEntrance_EventScript_16190B:: @ 816190B
+ setvar VAR_SPECIAL_4, 9
+ setvar VAR_SPECIAL_5, 2
+ setvar VAR_SPECIAL_6, 0
+ call Route110_TrickHouseEntrance_EventScript_161920
+ return
+
+Route110_TrickHouseEntrance_EventScript_161920:: @ 8161920
+ setfieldeffectargument 0, 32772
+ setfieldeffectargument 1, 32773
+ setfieldeffectargument 2, 32774
+ dofieldeffect FLDEFF_SPARKLE
+ waitfieldeffect FLDEFF_SPARKLE
+ delay 10
+ return
diff --git a/data/maps/Route110_TrickHousePuzzle1/scripts.inc b/data/maps/Route110_TrickHousePuzzle1/scripts.inc
new file mode 100644
index 000000000..df0484baf
--- /dev/null
+++ b/data/maps/Route110_TrickHousePuzzle1/scripts.inc
@@ -0,0 +1,39 @@
+Route110_TrickHousePuzzle1_MapScripts:: @ 8161CF8
+ map_script 1, Route110_TrickHousePuzzle1_MapScript1_161CFE
+ .byte 0
+
+Route110_TrickHousePuzzle1_MapScript1_161CFE:: @ 8161CFE
+ compare VAR_TRICK_HOUSE_PUZZLE_1_STATE, 2
+ goto_if_eq Route110_TrickHousePuzzle1_EventScript_161D0A
+ end
+
+Route110_TrickHousePuzzle1_EventScript_161D0A:: @ 8161D0A
+ setmetatile 13, 1, 523, 0
+ end
+
+Route110_TrickHousePuzzle1_EventScript_161D14:: @ 8161D14
+ lockall
+ compare VAR_TRICK_HOUSE_PUZZLE_1_STATE, 0
+ goto_if_eq Route110_TrickHousePuzzle1_EventScript_161D26
+ goto Route110_TrickHousePuzzle1_EventScript_161892
+ end
+
+Route110_TrickHousePuzzle1_EventScript_161D26:: @ 8161D26
+ setvar VAR_TRICK_HOUSE_PUZZLE_1_STATE, 1
+ goto Route110_TrickHousePuzzle1_EventScript_16189C
+ end
+
+Route110_TrickHousePuzzle1_EventScript_161D31:: @ 8161D31
+ trainerbattle 0, OPPONENT_SALLY, 0, Route110_TrickHousePuzzle1_Text_19CB4F, Route110_TrickHousePuzzle1_Text_19CB93
+ msgbox Route110_TrickHousePuzzle1_Text_19CBAB, 6
+ end
+
+Route110_TrickHousePuzzle1_EventScript_161D48:: @ 8161D48
+ trainerbattle 0, OPPONENT_EDDIE, 0, Route110_TrickHousePuzzle1_Text_19CBD6, Route110_TrickHousePuzzle1_Text_19CC06
+ msgbox Route110_TrickHousePuzzle1_Text_19CC1B, 6
+ end
+
+Route110_TrickHousePuzzle1_EventScript_161D5F:: @ 8161D5F
+ trainerbattle 0, OPPONENT_ROBIN, 0, Route110_TrickHousePuzzle1_Text_19CC68, Route110_TrickHousePuzzle1_Text_19CC86
+ msgbox Route110_TrickHousePuzzle1_Text_19CCAA, 6
+ end
diff --git a/data/maps/Route110_TrickHousePuzzle2/scripts.inc b/data/maps/Route110_TrickHousePuzzle2/scripts.inc
new file mode 100644
index 000000000..cdde15d1a
--- /dev/null
+++ b/data/maps/Route110_TrickHousePuzzle2/scripts.inc
@@ -0,0 +1,105 @@
+Route110_TrickHousePuzzle2_MapScripts:: @ 8161D76
+ map_script 5, Route110_TrickHousePuzzle2_MapScript1_161D81
+ map_script 3, Route110_TrickHousePuzzle2_MapScript1_161DAE
+ .byte 0
+
+Route110_TrickHousePuzzle2_MapScript1_161D81:: @ 8161D81
+ compare VAR_TEMP_1, 1
+ call_if_eq Route110_TrickHousePuzzle2_EventScript_161E2C
+ compare VAR_TEMP_2, 1
+ call_if_eq Route110_TrickHousePuzzle2_EventScript_161E3F
+ compare VAR_TEMP_3, 1
+ call_if_eq Route110_TrickHousePuzzle2_EventScript_161E52
+ compare VAR_TEMP_4, 1
+ call_if_eq Route110_TrickHousePuzzle2_EventScript_161E65
+ end
+
+Route110_TrickHousePuzzle2_MapScript1_161DAE:: @ 8161DAE
+ setvar VAR_TEMP_1, 0
+ setvar VAR_TEMP_2, 0
+ setvar VAR_TEMP_3, 0
+ setvar VAR_TEMP_4, 0
+ end
+
+Route110_TrickHousePuzzle2_EventScript_161DC3:: @ 8161DC3
+ lockall
+ compare VAR_TRICK_HOUSE_PUZZLE_2_STATE, 0
+ goto_if_eq Route110_TrickHousePuzzle2_EventScript_161DD5
+ goto Route110_TrickHousePuzzle2_EventScript_161892
+ end
+
+Route110_TrickHousePuzzle2_EventScript_161DD5:: @ 8161DD5
+ setvar VAR_TRICK_HOUSE_PUZZLE_2_STATE, 1
+ goto Route110_TrickHousePuzzle2_EventScript_16189C
+ end
+
+Route110_TrickHousePuzzle2_EventScript_161DE0:: @ 8161DE0
+ lockall
+ setvar VAR_TEMP_1, 1
+ playse SE_PIN
+ call Route110_TrickHousePuzzle2_EventScript_161E2C
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHousePuzzle2_EventScript_161DF3:: @ 8161DF3
+ lockall
+ setvar VAR_TEMP_2, 1
+ playse SE_PIN
+ call Route110_TrickHousePuzzle2_EventScript_161E3F
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHousePuzzle2_EventScript_161E06:: @ 8161E06
+ lockall
+ setvar VAR_TEMP_3, 1
+ playse SE_PIN
+ call Route110_TrickHousePuzzle2_EventScript_161E52
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHousePuzzle2_EventScript_161E19:: @ 8161E19
+ lockall
+ setvar VAR_TEMP_4, 1
+ playse SE_PIN
+ call Route110_TrickHousePuzzle2_EventScript_161E65
+ special DrawWholeMapView
+ releaseall
+ end
+
+Route110_TrickHousePuzzle2_EventScript_161E2C:: @ 8161E2C
+ setmetatile 14, 21, 601, 0
+ setmetatile 1, 12, 618, 0
+ return
+
+Route110_TrickHousePuzzle2_EventScript_161E3F:: @ 8161E3F
+ setmetatile 8, 17, 601, 0
+ setmetatile 12, 13, 618, 0
+ return
+
+Route110_TrickHousePuzzle2_EventScript_161E52:: @ 8161E52
+ setmetatile 4, 10, 601, 0
+ setmetatile 8, 4, 618, 0
+ return
+
+Route110_TrickHousePuzzle2_EventScript_161E65:: @ 8161E65
+ setmetatile 5, 2, 601, 0
+ setmetatile 12, 5, 618, 0
+ return
+
+Route110_TrickHousePuzzle2_EventScript_161E78:: @ 8161E78
+ trainerbattle 0, OPPONENT_TED, 0, Route110_TrickHousePuzzle2_Text_19CD46, Route110_TrickHousePuzzle2_Text_19CD66
+ msgbox Route110_TrickHousePuzzle2_Text_19CD91, 6
+ end
+
+Route110_TrickHousePuzzle2_EventScript_161E8F:: @ 8161E8F
+ trainerbattle 0, OPPONENT_PAUL, 0, Route110_TrickHousePuzzle2_Text_19CDBF, Route110_TrickHousePuzzle2_Text_19CDF0
+ msgbox Route110_TrickHousePuzzle2_Text_19CE0D, 6
+ end
+
+Route110_TrickHousePuzzle2_EventScript_161EA6:: @ 8161EA6
+ trainerbattle 0, OPPONENT_GEORGIA, 0, Route110_TrickHousePuzzle2_Text_19CE52, Route110_TrickHousePuzzle2_Text_19CE98
+ msgbox Route110_TrickHousePuzzle2_Text_19CEB8, 6
+ end
diff --git a/data/maps/Route110_TrickHousePuzzle3/scripts.inc b/data/maps/Route110_TrickHousePuzzle3/scripts.inc
new file mode 100644
index 000000000..14a021e8d
--- /dev/null
+++ b/data/maps/Route110_TrickHousePuzzle3/scripts.inc
@@ -0,0 +1,396 @@
+Route110_TrickHousePuzzle3_MapScripts:: @ 8161EBD
+ map_script 5, Route110_TrickHousePuzzle3_MapScript1_161EC8
+ map_script 3, Route110_TrickHousePuzzle3_MapScript1_161EE4
+ .byte 0
+
+Route110_TrickHousePuzzle3_MapScript1_161EC8:: @ 8161EC8
+ call Route110_TrickHousePuzzle3_EventScript_161F12
+ compare VAR_TEMP_9, 0
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_161FE5
+ compare VAR_TEMP_9, 1
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_1622C8
+ end
+
+Route110_TrickHousePuzzle3_MapScript1_161EE4:: @ 8161EE4
+ setvar VAR_TEMP_1, 0
+ setvar VAR_TEMP_2, 0
+ setvar VAR_TEMP_3, 0
+ setvar VAR_TEMP_4, 0
+ setvar VAR_TEMP_5, 0
+ setvar VAR_TEMP_6, 0
+ setvar VAR_TEMP_7, 0
+ setvar VAR_TEMP_8, 0
+ setvar VAR_TEMP_9, 0
+ end
+
+Route110_TrickHousePuzzle3_EventScript_161F12:: @ 8161F12
+ setmetatile 5, 20, 600, 0
+ setmetatile 4, 12, 600, 0
+ setmetatile 11, 10, 600, 0
+ setmetatile 3, 8, 600, 0
+ setmetatile 13, 7, 600, 0
+ setmetatile 1, 3, 600, 0
+ setmetatile 10, 2, 600, 0
+ compare VAR_TEMP_8, 1
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_161F9F
+ compare VAR_TEMP_8, 2
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_161FA9
+ compare VAR_TEMP_8, 3
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_161FB3
+ compare VAR_TEMP_8, 4
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_161FBD
+ compare VAR_TEMP_8, 5
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_161FC7
+ compare VAR_TEMP_8, 6
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_161FD1
+ compare VAR_TEMP_8, 7
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_161FDB
+ return
+
+Route110_TrickHousePuzzle3_EventScript_161F9F:: @ 8161F9F
+ setmetatile 5, 20, 601, 0
+ return
+
+Route110_TrickHousePuzzle3_EventScript_161FA9:: @ 8161FA9
+ setmetatile 4, 12, 601, 0
+ return
+
+Route110_TrickHousePuzzle3_EventScript_161FB3:: @ 8161FB3
+ setmetatile 11, 10, 601, 0
+ return
+
+Route110_TrickHousePuzzle3_EventScript_161FBD:: @ 8161FBD
+ setmetatile 3, 8, 601, 0
+ return
+
+Route110_TrickHousePuzzle3_EventScript_161FC7:: @ 8161FC7
+ setmetatile 13, 7, 601, 0
+ return
+
+Route110_TrickHousePuzzle3_EventScript_161FD1:: @ 8161FD1
+ setmetatile 1, 3, 601, 0
+ return
+
+Route110_TrickHousePuzzle3_EventScript_161FDB:: @ 8161FDB
+ setmetatile 10, 2, 601, 0
+ return
+
+Route110_TrickHousePuzzle3_EventScript_161FE5:: @ 8161FE5
+ setmetatile 1, 6, 587, 0
+ setmetatile 2, 6, 588, 0
+ setmetatile 1, 7, 595, 0
+ setmetatile 2, 7, 596, 0
+ setmetatile 4, 9, 587, 0
+ setmetatile 5, 9, 588, 0
+ setmetatile 4, 10, 595, 0
+ setmetatile 5, 10, 596, 0
+ setmetatile 4, 18, 587, 0
+ setmetatile 5, 18, 588, 0
+ setmetatile 4, 19, 595, 0
+ setmetatile 5, 19, 596, 0
+ setmetatile 7, 3, 587, 0
+ setmetatile 8, 3, 588, 0
+ setmetatile 7, 4, 595, 0
+ setmetatile 8, 4, 596, 0
+ setmetatile 7, 9, 587, 0
+ setmetatile 8, 9, 588, 0
+ setmetatile 7, 10, 595, 0
+ setmetatile 8, 10, 596, 0
+ setmetatile 7, 18, 587, 0
+ setmetatile 8, 18, 588, 0
+ setmetatile 7, 19, 595, 0
+ setmetatile 8, 19, 596, 0
+ setmetatile 13, 3, 587, 0
+ setmetatile 14, 3, 588, 0
+ setmetatile 13, 4, 595, 0
+ setmetatile 14, 4, 596, 0
+ setmetatile 13, 9, 587, 0
+ setmetatile 14, 9, 588, 0
+ setmetatile 13, 10, 595, 0
+ setmetatile 14, 10, 596, 0
+ setmetatile 13, 15, 587, 0
+ setmetatile 14, 15, 588, 0
+ setmetatile 13, 16, 595, 0
+ setmetatile 14, 16, 596, 0
+ setmetatile 3, 13, 589, 1
+ setmetatile 3, 14, 597, 0
+ setmetatile 6, 7, 589, 1
+ setmetatile 6, 8, 597, 0
+ setmetatile 9, 16, 589, 1
+ setmetatile 9, 17, 597, 0
+ setmetatile 12, 4, 589, 1
+ setmetatile 12, 5, 597, 0
+ setmetatile 12, 10, 589, 1
+ setmetatile 12, 11, 597, 0
+ setmetatile 1, 15, 568, 0
+ setmetatile 2, 15, 569, 0
+ setmetatile 1, 16, 576, 1
+ setmetatile 2, 16, 577, 1
+ setmetatile 4, 6, 568, 0
+ setmetatile 5, 6, 569, 0
+ setmetatile 4, 7, 576, 1
+ setmetatile 5, 7, 577, 1
+ setmetatile 7, 12, 568, 0
+ setmetatile 8, 12, 569, 0
+ setmetatile 7, 13, 576, 1
+ setmetatile 8, 13, 577, 1
+ setmetatile 10, 12, 568, 0
+ setmetatile 11, 12, 569, 0
+ setmetatile 10, 13, 576, 1
+ setmetatile 11, 13, 577, 1
+ setmetatile 10, 18, 568, 0
+ setmetatile 11, 18, 569, 0
+ setmetatile 10, 19, 576, 1
+ setmetatile 11, 19, 577, 1
+ setmetatile 3, 4, 570, 1
+ setmetatile 3, 5, 578, 1
+ setmetatile 6, 10, 570, 1
+ setmetatile 6, 11, 578, 1
+ setmetatile 6, 13, 570, 1
+ setmetatile 6, 14, 578, 1
+ setmetatile 6, 16, 570, 1
+ setmetatile 6, 17, 578, 1
+ setmetatile 9, 4, 570, 1
+ setmetatile 9, 5, 578, 1
+ setmetatile 9, 7, 570, 1
+ setmetatile 9, 8, 578, 1
+ setmetatile 12, 13, 570, 1
+ setmetatile 12, 14, 578, 1
+ setmetatile 12, 16, 570, 1
+ setmetatile 12, 17, 578, 1
+ return
+
+Route110_TrickHousePuzzle3_EventScript_1622C8:: @ 81622C8
+ setmetatile 1, 6, 571, 0
+ setmetatile 2, 6, 572, 0
+ setmetatile 1, 7, 579, 1
+ setmetatile 2, 7, 580, 1
+ setmetatile 4, 9, 571, 0
+ setmetatile 5, 9, 572, 0
+ setmetatile 4, 10, 579, 1
+ setmetatile 5, 10, 580, 1
+ setmetatile 4, 18, 571, 0
+ setmetatile 5, 18, 572, 0
+ setmetatile 4, 19, 579, 1
+ setmetatile 5, 19, 580, 1
+ setmetatile 7, 3, 571, 0
+ setmetatile 8, 3, 572, 0
+ setmetatile 7, 4, 579, 1
+ setmetatile 8, 4, 580, 1
+ setmetatile 7, 9, 571, 0
+ setmetatile 8, 9, 572, 0
+ setmetatile 7, 10, 579, 1
+ setmetatile 8, 10, 580, 1
+ setmetatile 7, 18, 571, 0
+ setmetatile 8, 18, 572, 0
+ setmetatile 7, 19, 579, 1
+ setmetatile 8, 19, 580, 1
+ setmetatile 13, 3, 571, 0
+ setmetatile 14, 3, 572, 0
+ setmetatile 13, 4, 579, 1
+ setmetatile 14, 4, 580, 1
+ setmetatile 13, 9, 571, 0
+ setmetatile 14, 9, 572, 0
+ setmetatile 13, 10, 579, 1
+ setmetatile 14, 10, 580, 1
+ setmetatile 13, 15, 571, 0
+ setmetatile 14, 15, 572, 0
+ setmetatile 13, 16, 579, 1
+ setmetatile 14, 16, 580, 1
+ setmetatile 3, 13, 573, 1
+ setmetatile 3, 14, 581, 1
+ setmetatile 6, 7, 573, 1
+ setmetatile 6, 8, 581, 1
+ setmetatile 9, 16, 573, 1
+ setmetatile 9, 17, 581, 1
+ setmetatile 12, 4, 573, 1
+ setmetatile 12, 5, 581, 1
+ setmetatile 12, 10, 573, 1
+ setmetatile 12, 11, 581, 1
+ setmetatile 1, 15, 584, 0
+ setmetatile 2, 15, 585, 0
+ setmetatile 1, 16, 592, 0
+ setmetatile 2, 16, 593, 0
+ setmetatile 4, 6, 584, 0
+ setmetatile 5, 6, 585, 0
+ setmetatile 4, 7, 592, 0
+ setmetatile 5, 7, 593, 0
+ setmetatile 7, 12, 584, 0
+ setmetatile 8, 12, 585, 0
+ setmetatile 7, 13, 592, 0
+ setmetatile 8, 13, 593, 0
+ setmetatile 10, 12, 584, 0
+ setmetatile 11, 12, 585, 0
+ setmetatile 10, 13, 592, 0
+ setmetatile 11, 13, 593, 0
+ setmetatile 10, 18, 584, 0
+ setmetatile 11, 18, 585, 0
+ setmetatile 10, 19, 592, 0
+ setmetatile 11, 19, 593, 0
+ setmetatile 3, 4, 586, 1
+ setmetatile 3, 5, 594, 0
+ setmetatile 6, 10, 586, 1
+ setmetatile 6, 11, 594, 0
+ setmetatile 6, 13, 586, 1
+ setmetatile 6, 14, 594, 0
+ setmetatile 6, 16, 586, 1
+ setmetatile 6, 17, 594, 0
+ setmetatile 9, 4, 586, 1
+ setmetatile 9, 5, 594, 0
+ setmetatile 9, 7, 586, 1
+ setmetatile 9, 8, 594, 0
+ setmetatile 12, 13, 586, 1
+ setmetatile 12, 14, 594, 0
+ setmetatile 12, 16, 586, 1
+ setmetatile 12, 17, 594, 0
+ return
+
+Route110_TrickHousePuzzle3_EventScript_1625AB:: @ 81625AB
+ lockall
+ setvar VAR_TEMP_8, 1
+ goto Route110_TrickHousePuzzle3_EventScript_1625FF
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1625B7:: @ 81625B7
+ lockall
+ setvar VAR_TEMP_8, 2
+ goto Route110_TrickHousePuzzle3_EventScript_1625FF
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1625C3:: @ 81625C3
+ lockall
+ setvar VAR_TEMP_8, 3
+ goto Route110_TrickHousePuzzle3_EventScript_1625FF
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1625CF:: @ 81625CF
+ lockall
+ setvar VAR_TEMP_8, 4
+ goto Route110_TrickHousePuzzle3_EventScript_1625FF
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1625DB:: @ 81625DB
+ lockall
+ setvar VAR_TEMP_8, 5
+ goto Route110_TrickHousePuzzle3_EventScript_1625FF
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1625E7:: @ 81625E7
+ lockall
+ setvar VAR_TEMP_8, 6
+ goto Route110_TrickHousePuzzle3_EventScript_1625FF
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1625F3:: @ 81625F3
+ lockall
+ setvar VAR_TEMP_8, 7
+ goto Route110_TrickHousePuzzle3_EventScript_1625FF
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1625FF:: @ 81625FF
+ call Route110_TrickHousePuzzle3_EventScript_162612
+ playse SE_PIN
+ call Route110_TrickHousePuzzle3_EventScript_161F12
+ goto Route110_TrickHousePuzzle3_EventScript_1626AD
+ end
+
+Route110_TrickHousePuzzle3_EventScript_162612:: @ 8162612
+ setvar VAR_TEMP_1, 0
+ setvar VAR_TEMP_2, 0
+ setvar VAR_TEMP_3, 0
+ setvar VAR_TEMP_4, 0
+ setvar VAR_TEMP_5, 0
+ setvar VAR_TEMP_6, 0
+ setvar VAR_TEMP_7, 0
+ compare VAR_TEMP_8, 1
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_162683
+ compare VAR_TEMP_8, 2
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_162689
+ compare VAR_TEMP_8, 3
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_16268F
+ compare VAR_TEMP_8, 4
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_162695
+ compare VAR_TEMP_8, 5
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_16269B
+ compare VAR_TEMP_8, 6
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_1626A1
+ compare VAR_TEMP_8, 7
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_1626A7
+ return
+
+Route110_TrickHousePuzzle3_EventScript_162683:: @ 8162683
+ setvar VAR_TEMP_1, 1
+ return
+
+Route110_TrickHousePuzzle3_EventScript_162689:: @ 8162689
+ setvar VAR_TEMP_2, 1
+ return
+
+Route110_TrickHousePuzzle3_EventScript_16268F:: @ 816268F
+ setvar VAR_TEMP_3, 1
+ return
+
+Route110_TrickHousePuzzle3_EventScript_162695:: @ 8162695
+ setvar VAR_TEMP_4, 1
+ return
+
+Route110_TrickHousePuzzle3_EventScript_16269B:: @ 816269B
+ setvar VAR_TEMP_5, 1
+ return
+
+Route110_TrickHousePuzzle3_EventScript_1626A1:: @ 81626A1
+ setvar VAR_TEMP_6, 1
+ return
+
+Route110_TrickHousePuzzle3_EventScript_1626A7:: @ 81626A7
+ setvar VAR_TEMP_7, 1
+ return
+
+Route110_TrickHousePuzzle3_EventScript_1626AD:: @ 81626AD
+ compare VAR_TEMP_9, 1
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_161FE5
+ compare VAR_TEMP_9, 0
+ call_if_eq Route110_TrickHousePuzzle3_EventScript_1622C8
+ special DrawWholeMapView
+ compare VAR_TEMP_9, 1
+ goto_if_eq Route110_TrickHousePuzzle3_EventScript_1626DD
+ compare VAR_TEMP_9, 0
+ goto_if_eq Route110_TrickHousePuzzle3_EventScript_1626E4
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1626DD:: @ 81626DD
+ setvar VAR_TEMP_9, 0
+ releaseall
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1626E4:: @ 81626E4
+ setvar VAR_TEMP_9, 1
+ releaseall
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1626EB:: @ 81626EB
+ lockall
+ compare VAR_TRICK_HOUSE_PUZZLE_3_STATE, 0
+ goto_if_eq Route110_TrickHousePuzzle3_EventScript_1626FD
+ goto Route110_TrickHousePuzzle3_EventScript_161892
+ end
+
+Route110_TrickHousePuzzle3_EventScript_1626FD:: @ 81626FD
+ setvar VAR_TRICK_HOUSE_PUZZLE_3_STATE, 1
+ goto Route110_TrickHousePuzzle3_EventScript_16189C
+ end
+
+Route110_TrickHousePuzzle3_EventScript_162708:: @ 8162708
+ trainerbattle 0, OPPONENT_JUSTIN, 0, Route110_TrickHousePuzzle3_Text_19CF76, Route110_TrickHousePuzzle3_Text_19CF9D
+ msgbox Route110_TrickHousePuzzle3_Text_19CFE6, 6
+ end
+
+Route110_TrickHousePuzzle3_EventScript_16271F:: @ 816271F
+ trainerbattle 0, OPPONENT_MARTHA, 0, Route110_TrickHousePuzzle3_Text_19D026, Route110_TrickHousePuzzle3_Text_19D065
+ msgbox Route110_TrickHousePuzzle3_Text_19D07A, 6
+ end
+
+Route110_TrickHousePuzzle3_EventScript_162736:: @ 8162736
+ trainerbattle 0, OPPONENT_ALAN, 0, Route110_TrickHousePuzzle3_Text_19D0AE, Route110_TrickHousePuzzle3_Text_19D0F0
+ msgbox Route110_TrickHousePuzzle3_Text_19D110, 6
+ end
diff --git a/data/maps/Route110_TrickHousePuzzle4/scripts.inc b/data/maps/Route110_TrickHousePuzzle4/scripts.inc
new file mode 100644
index 000000000..3808f1f2d
--- /dev/null
+++ b/data/maps/Route110_TrickHousePuzzle4/scripts.inc
@@ -0,0 +1,29 @@
+Route110_TrickHousePuzzle4_MapScripts:: @ 816274D
+ .byte 0
+
+Route110_TrickHousePuzzle4_EventScript_16274E:: @ 816274E
+ lockall
+ compare VAR_TRICK_HOUSE_PUZZLE_4_STATE, 0
+ goto_if_eq Route110_TrickHousePuzzle4_EventScript_162760
+ goto Route110_TrickHousePuzzle4_EventScript_161892
+ end
+
+Route110_TrickHousePuzzle4_EventScript_162760:: @ 8162760
+ setvar VAR_TRICK_HOUSE_PUZZLE_4_STATE, 1
+ goto Route110_TrickHousePuzzle4_EventScript_16189C
+ end
+
+Route110_TrickHousePuzzle4_EventScript_16276B:: @ 816276B
+ trainerbattle 0, OPPONENT_CORA, 0, Route110_TrickHousePuzzle4_Text_19D1DE, Route110_TrickHousePuzzle4_Text_19D21F
+ msgbox Route110_TrickHousePuzzle4_Text_19D253, 6
+ end
+
+Route110_TrickHousePuzzle4_EventScript_162782:: @ 8162782
+ trainerbattle 0, OPPONENT_YUJI, 0, Route110_TrickHousePuzzle4_Text_19D295, Route110_TrickHousePuzzle4_Text_19D2D1
+ msgbox Route110_TrickHousePuzzle4_Text_19D306, 6
+ end
+
+Route110_TrickHousePuzzle4_EventScript_162799:: @ 8162799
+ trainerbattle 0, OPPONENT_JILL, 0, Route110_TrickHousePuzzle4_Text_19D351, Route110_TrickHousePuzzle4_Text_19D380
+ msgbox Route110_TrickHousePuzzle4_Text_19D386, 6
+ end
diff --git a/data/maps/Route110_TrickHousePuzzle5/scripts.inc b/data/maps/Route110_TrickHousePuzzle5/scripts.inc
new file mode 100644
index 000000000..a7f283b2d
--- /dev/null
+++ b/data/maps/Route110_TrickHousePuzzle5/scripts.inc
@@ -0,0 +1,725 @@
+Route110_TrickHousePuzzle5_MapScripts:: @ 81627B0
+ map_script 3, Route110_TrickHousePuzzle5_MapScript1_1627B6
+ .byte 0
+
+Route110_TrickHousePuzzle5_MapScript1_1627B6:: @ 81627B6
+ setvar VAR_TEMP_1, 0
+ setvar VAR_TEMP_2, 0
+ setvar VAR_TEMP_3, 0
+ setvar VAR_TEMP_4, 0
+ setvar VAR_TEMP_5, 0
+ setvar VAR_TEMP_8, 0
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1627D5:: @ 81627D5
+ lockall
+ compare VAR_TRICK_HOUSE_PUZZLE_5_STATE, 0
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_1627E7
+ goto Route110_TrickHousePuzzle5_EventScript_161892
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1627E7:: @ 81627E7
+ setvar VAR_TRICK_HOUSE_PUZZLE_5_STATE, 1
+ goto Route110_TrickHousePuzzle5_EventScript_16189C
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1627F2:: @ 81627F2
+ lockall
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_1A0839
+ waitmovement 0
+ compare VAR_TEMP_1, 1
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_16293F
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162813:: @ 8162813
+ lockall
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_1A0839
+ waitmovement 0
+ compare VAR_TEMP_2, 1
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_1629B3
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162834:: @ 8162834
+ lockall
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_1A0839
+ waitmovement 0
+ compare VAR_TEMP_3, 1
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_162A27
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162855:: @ 8162855
+ lockall
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_1A0839
+ waitmovement 0
+ compare VAR_TEMP_4, 1
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_162A9B
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162876:: @ 8162876
+ lockall
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_1A0839
+ waitmovement 0
+ compare VAR_TEMP_5, 1
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_162B0F
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162897:: @ 8162897
+ lockall
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_16293F
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1628A3:: @ 81628A3
+ lockall
+ setvar VAR_TEMP_9, 1
+ goto Route110_TrickHousePuzzle5_EventScript_16293F
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1628AF:: @ 81628AF
+ lockall
+ setvar VAR_TEMP_9, 2
+ goto Route110_TrickHousePuzzle5_EventScript_16293F
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1628BB:: @ 81628BB
+ lockall
+ setvar VAR_TEMP_9, 3
+ goto Route110_TrickHousePuzzle5_EventScript_16293F
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1628C7:: @ 81628C7
+ lockall
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_1629B3
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1628D3:: @ 81628D3
+ lockall
+ setvar VAR_TEMP_9, 1
+ goto Route110_TrickHousePuzzle5_EventScript_1629B3
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1628DF:: @ 81628DF
+ lockall
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_162A27
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1628EB:: @ 81628EB
+ lockall
+ setvar VAR_TEMP_9, 1
+ goto Route110_TrickHousePuzzle5_EventScript_162A27
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1628F7:: @ 81628F7
+ lockall
+ setvar VAR_TEMP_9, 2
+ goto Route110_TrickHousePuzzle5_EventScript_162A27
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162903:: @ 8162903
+ lockall
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_162A9B
+ end
+
+Route110_TrickHousePuzzle5_EventScript_16290F:: @ 816290F
+ lockall
+ setvar VAR_TEMP_9, 1
+ goto Route110_TrickHousePuzzle5_EventScript_162A9B
+ end
+
+Route110_TrickHousePuzzle5_EventScript_16291B:: @ 816291B
+ lockall
+ setvar VAR_TEMP_9, 0
+ goto Route110_TrickHousePuzzle5_EventScript_162B0F
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162927:: @ 8162927
+ lockall
+ setvar VAR_TEMP_9, 1
+ goto Route110_TrickHousePuzzle5_EventScript_162B0F
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162933:: @ 8162933
+ lockall
+ setvar VAR_TEMP_9, 2
+ goto Route110_TrickHousePuzzle5_EventScript_162B0F
+ end
+
+Route110_TrickHousePuzzle5_EventScript_16293F:: @ 816293F
+ setvar VAR_TEMP_1, 1
+ setvar VAR_TEMP_8, 1
+ playse SE_PIN
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_1A0833
+ waitmovement 0
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_1A0835
+ waitmovement 0
+ compare VAR_TEMP_9, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162DF3
+ compare VAR_TEMP_9, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162E2B
+ compare VAR_TEMP_9, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162E63
+ msgbox Route110_TrickHousePuzzle5_Text_19D423, 4
+ random 3
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162B83
+ case 1, Route110_TrickHousePuzzle5_EventScript_162BA6
+ case 2, Route110_TrickHousePuzzle5_EventScript_162BC9
+ end
+
+Route110_TrickHousePuzzle5_EventScript_1629B3:: @ 81629B3
+ setvar VAR_TEMP_2, 1
+ setvar VAR_TEMP_8, 2
+ playse SE_PIN
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_1A0833
+ waitmovement 0
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_1A0835
+ waitmovement 0
+ compare VAR_TEMP_9, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162E9B
+ compare VAR_TEMP_9, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162ED3
+ compare VAR_TEMP_9, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F0B
+ msgbox Route110_TrickHousePuzzle5_Text_19D636, 4
+ random 3
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162BEC
+ case 1, Route110_TrickHousePuzzle5_EventScript_162C0F
+ case 2, Route110_TrickHousePuzzle5_EventScript_162C32
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162A27:: @ 8162A27
+ setvar VAR_TEMP_3, 1
+ setvar VAR_TEMP_8, 3
+ playse SE_PIN
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_1A0833
+ waitmovement 0
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_1A0835
+ waitmovement 0
+ compare VAR_TEMP_9, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162DF3
+ compare VAR_TEMP_9, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162E2B
+ compare VAR_TEMP_9, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162E63
+ msgbox Route110_TrickHousePuzzle5_Text_19D7D3, 4
+ random 3
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162C55
+ case 1, Route110_TrickHousePuzzle5_EventScript_162C78
+ case 2, Route110_TrickHousePuzzle5_EventScript_162C9B
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162A9B:: @ 8162A9B
+ setvar VAR_TEMP_4, 1
+ setvar VAR_TEMP_8, 4
+ playse SE_PIN
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_1A0833
+ waitmovement 0
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_1A0835
+ waitmovement 0
+ compare VAR_TEMP_9, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162DF3
+ compare VAR_TEMP_9, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162E2B
+ compare VAR_TEMP_9, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162E63
+ msgbox Route110_TrickHousePuzzle5_Text_19D93D, 4
+ random 3
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162CBE
+ case 1, Route110_TrickHousePuzzle5_EventScript_162CE1
+ case 2, Route110_TrickHousePuzzle5_EventScript_162D04
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162B0F:: @ 8162B0F
+ setvar VAR_TEMP_5, 1
+ setvar VAR_TEMP_8, 5
+ playse SE_PIN
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_1A0833
+ waitmovement 0
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_1A0835
+ waitmovement 0
+ compare VAR_TEMP_9, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162E9B
+ compare VAR_TEMP_9, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162ED3
+ compare VAR_TEMP_9, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F0B
+ msgbox Route110_TrickHousePuzzle5_Text_19DA9A, 4
+ random 3
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162D27
+ case 1, Route110_TrickHousePuzzle5_EventScript_162D4A
+ case 2, Route110_TrickHousePuzzle5_EventScript_162D6D
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162B83:: @ 8162B83
+ msgbox Route110_TrickHousePuzzle5_Text_19D4AE, 4
+ multichoice 0, 0, 25, 1
+ switch RESULT
+ case 1, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162BA6:: @ 8162BA6
+ msgbox Route110_TrickHousePuzzle5_Text_19D501, 4
+ multichoice 0, 0, 26, 1
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162BC9:: @ 8162BC9
+ msgbox Route110_TrickHousePuzzle5_Text_19D553, 4
+ multichoice 0, 0, 27, 1
+ switch RESULT
+ case 1, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162BEC:: @ 8162BEC
+ msgbox Route110_TrickHousePuzzle5_Text_19D68E, 4
+ multichoice 0, 0, 28, 1
+ switch RESULT
+ case 2, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162C0F:: @ 8162C0F
+ msgbox Route110_TrickHousePuzzle5_Text_19D6EC, 4
+ multichoice 0, 0, 29, 1
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162C32:: @ 8162C32
+ msgbox Route110_TrickHousePuzzle5_Text_19D745, 4
+ multichoice 0, 0, 30, 1
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162C55:: @ 8162C55
+ msgbox Route110_TrickHousePuzzle5_Text_19D81B, 4
+ multichoice 0, 0, 31, 1
+ switch RESULT
+ case 1, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162C78:: @ 8162C78
+ msgbox Route110_TrickHousePuzzle5_Text_19D865, 4
+ multichoice 0, 0, 32, 1
+ switch RESULT
+ case 2, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162C9B:: @ 8162C9B
+ msgbox Route110_TrickHousePuzzle5_Text_19D8BA, 4
+ multichoice 0, 0, 33, 1
+ switch RESULT
+ case 1, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162CBE:: @ 8162CBE
+ msgbox Route110_TrickHousePuzzle5_Text_19D987, 4
+ multichoice 0, 0, 34, 1
+ switch RESULT
+ case 1, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162CE1:: @ 8162CE1
+ msgbox Route110_TrickHousePuzzle5_Text_19D9DC, 4
+ multichoice 0, 0, 35, 1
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162D04:: @ 8162D04
+ msgbox Route110_TrickHousePuzzle5_Text_19DA1D, 4
+ multichoice 0, 0, 36, 1
+ switch RESULT
+ case 1, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162D27:: @ 8162D27
+ msgbox Route110_TrickHousePuzzle5_Text_19DAEF, 4
+ multichoice 0, 0, 37, 1
+ switch RESULT
+ case 1, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162D4A:: @ 8162D4A
+ msgbox Route110_TrickHousePuzzle5_Text_19DB43, 4
+ multichoice 0, 0, 38, 1
+ switch RESULT
+ case 0, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162D6D:: @ 8162D6D
+ msgbox Route110_TrickHousePuzzle5_Text_19DB97, 4
+ multichoice 0, 0, 39, 1
+ switch RESULT
+ case 2, Route110_TrickHousePuzzle5_EventScript_162DDF
+ goto Route110_TrickHousePuzzle5_EventScript_162D90
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162D90:: @ 8162D90
+ waitse
+ playse SE_HAZURE
+ msgbox Route110_TrickHousePuzzle5_Text_19D5CF, 4
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_16309F
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_16309F
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_16309F
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_16309F
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_16309F
+ msgbox Route110_TrickHousePuzzle5_Text_19D5ED, 4
+ waitmovement 0
+ closemessage
+ msgbox Route110_TrickHousePuzzle5_Text_19D615, 4
+ closemessage
+ warp MAP_ROUTE110_TRICK_HOUSE_PUZZLE5, 255, 0, 21
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162DDF:: @ 8162DDF
+ waitse
+ playse SE_SEIKAI
+ goto Route110_TrickHousePuzzle5_EventScript_162DE9
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162DE9:: @ 8162DE9
+ msgbox Route110_TrickHousePuzzle5_Text_19D599, 4
+ releaseall
+ end
+
+Route110_TrickHousePuzzle5_EventScript_162DF3:: @ 8162DF3
+ compare VAR_TEMP_8, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F43
+ compare VAR_TEMP_8, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F4E
+ compare VAR_TEMP_8, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F59
+ compare VAR_TEMP_8, 4
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F64
+ compare VAR_TEMP_8, 5
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F6F
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162E2B:: @ 8162E2B
+ compare VAR_TEMP_8, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F7A
+ compare VAR_TEMP_8, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F85
+ compare VAR_TEMP_8, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F90
+ compare VAR_TEMP_8, 4
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162F9B
+ compare VAR_TEMP_8, 5
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162FA6
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162E63:: @ 8162E63
+ compare VAR_TEMP_8, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162FB1
+ compare VAR_TEMP_8, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162FBC
+ compare VAR_TEMP_8, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162FC7
+ compare VAR_TEMP_9, 4
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162FD2
+ compare VAR_TEMP_9, 5
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162FDD
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162E9B:: @ 8162E9B
+ compare VAR_TEMP_8, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162FE8
+ compare VAR_TEMP_8, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162FF3
+ compare VAR_TEMP_8, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_162FFE
+ compare VAR_TEMP_8, 4
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_163009
+ compare VAR_TEMP_8, 5
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_163014
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162ED3:: @ 8162ED3
+ compare VAR_TEMP_8, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_16301F
+ compare VAR_TEMP_8, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_16302A
+ compare VAR_TEMP_8, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_163035
+ compare VAR_TEMP_8, 4
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_163040
+ compare VAR_TEMP_8, 5
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_16304B
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F0B:: @ 8162F0B
+ compare VAR_TEMP_8, 1
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_163056
+ compare VAR_TEMP_8, 2
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_163061
+ compare VAR_TEMP_8, 3
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_16306C
+ compare VAR_TEMP_8, 4
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_163077
+ compare VAR_TEMP_8, 5
+ call_if_eq Route110_TrickHousePuzzle5_EventScript_163082
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F43:: @ 8162F43
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_16308D
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F4E:: @ 8162F4E
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_16308D
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F59:: @ 8162F59
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_16308D
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F64:: @ 8162F64
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_16308D
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F6F:: @ 8162F6F
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_16308D
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F7A:: @ 8162F7A
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_16308F
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F85:: @ 8162F85
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_16308F
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F90:: @ 8162F90
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_16308F
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162F9B:: @ 8162F9B
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_16308F
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162FA6:: @ 8162FA6
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_16308F
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162FB1:: @ 8162FB1
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_163092
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162FBC:: @ 8162FBC
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_163092
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162FC7:: @ 8162FC7
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_163092
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162FD2:: @ 8162FD2
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_163092
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162FDD:: @ 8162FDD
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_163092
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162FE8:: @ 8162FE8
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_163096
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162FF3:: @ 8162FF3
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_163096
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_162FFE:: @ 8162FFE
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_163096
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_163009:: @ 8163009
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_163096
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_163014:: @ 8163014
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_163096
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_16301F:: @ 816301F
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_163098
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_16302A:: @ 816302A
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_163098
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_163035:: @ 8163035
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_163098
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_163040:: @ 8163040
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_163098
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_16304B:: @ 816304B
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_163098
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_163056:: @ 8163056
+ applymovement 1, Route110_TrickHousePuzzle5_Movement_16309B
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_163061:: @ 8163061
+ applymovement 2, Route110_TrickHousePuzzle5_Movement_16309B
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_16306C:: @ 816306C
+ applymovement 3, Route110_TrickHousePuzzle5_Movement_16309B
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_163077:: @ 8163077
+ applymovement 4, Route110_TrickHousePuzzle5_Movement_16309B
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_EventScript_163082:: @ 8163082
+ applymovement 5, Route110_TrickHousePuzzle5_Movement_16309B
+ waitmovement 0
+ return
+
+Route110_TrickHousePuzzle5_Movement_16308D:: @ 816308D
+ walk_left
+ end_movement
+
+Route110_TrickHousePuzzle5_Movement_16308F:: @ 816308F
+ walk_left
+ walk_left
+ end_movement
+
+Route110_TrickHousePuzzle5_Movement_163092:: @ 8163092
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+Route110_TrickHousePuzzle5_Movement_163096:: @ 8163096
+ walk_right
+ end_movement
+
+Route110_TrickHousePuzzle5_Movement_163098:: @ 8163098
+ walk_right
+ walk_right
+ end_movement
+
+Route110_TrickHousePuzzle5_Movement_16309B:: @ 816309B
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+Route110_TrickHouseEntrance_Movement_16309F:: @ 816309F
+Route110_TrickHousePuzzle5_Movement_16309F:: @ 816309F
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_left
+ delay_2
+ face_right
+ delay_2
+ face_down
+ end_movement
diff --git a/data/maps/Route110_TrickHousePuzzle6/scripts.inc b/data/maps/Route110_TrickHousePuzzle6/scripts.inc
new file mode 100644
index 000000000..971d2a275
--- /dev/null
+++ b/data/maps/Route110_TrickHousePuzzle6/scripts.inc
@@ -0,0 +1,43 @@
+Route110_TrickHousePuzzle6_MapScripts:: @ 81630CD
+ map_script 3, Route110_TrickHousePuzzle6_MapScript1_1630D8
+ map_script 4, Route110_TrickHousePuzzle6_MapScript2_1630DC
+ .byte 0
+
+Route110_TrickHousePuzzle6_MapScript1_1630D8:: @ 81630D8
+ special RotatingGate_InitPuzzle
+ end
+
+Route110_TrickHousePuzzle6_MapScript2_1630DC:: @ 81630DC
+ map_script_2 VAR_TEMP_0, 16384, Route110_TrickHousePuzzle6_EventScript_1630E6
+ .2byte 0
+
+Route110_TrickHousePuzzle6_EventScript_1630E6:: @ 81630E6
+ special RotatingGate_InitPuzzleAndGraphics
+ end
+
+Route110_TrickHousePuzzle6_EventScript_1630EA:: @ 81630EA
+ lockall
+ compare VAR_TRICK_HOUSE_PUZZLE_6_STATE, 0
+ goto_if_eq Route110_TrickHousePuzzle6_EventScript_1630FC
+ goto Route110_TrickHousePuzzle6_EventScript_161892
+ end
+
+Route110_TrickHousePuzzle6_EventScript_1630FC:: @ 81630FC
+ setvar VAR_TRICK_HOUSE_PUZZLE_6_STATE, 1
+ goto Route110_TrickHousePuzzle6_EventScript_16189C
+ end
+
+Route110_TrickHousePuzzle6_EventScript_163107:: @ 8163107
+ trainerbattle 0, OPPONENT_SOPHIA, 0, Route110_TrickHousePuzzle6_Text_19DC87, Route110_TrickHousePuzzle6_Text_19DCC6
+ msgbox Route110_TrickHousePuzzle6_Text_19DCE7, 6
+ end
+
+Route110_TrickHousePuzzle6_EventScript_16311E:: @ 816311E
+ trainerbattle 0, OPPONENT_BENNY, 0, Route110_TrickHousePuzzle6_Text_19DD49, Route110_TrickHousePuzzle6_Text_19DD83
+ msgbox Route110_TrickHousePuzzle6_Text_19DD96, 6
+ end
+
+Route110_TrickHousePuzzle6_EventScript_163135:: @ 8163135
+ trainerbattle 0, OPPONENT_SEBASTIAN, 0, Route110_TrickHousePuzzle6_Text_19DDCF, Route110_TrickHousePuzzle6_Text_19DDFE
+ msgbox Route110_TrickHousePuzzle6_Text_19DE44, 6
+ end
diff --git a/data/maps/Route110_TrickHousePuzzle7/scripts.inc b/data/maps/Route110_TrickHousePuzzle7/scripts.inc
new file mode 100644
index 000000000..1ee608166
--- /dev/null
+++ b/data/maps/Route110_TrickHousePuzzle7/scripts.inc
@@ -0,0 +1,234 @@
+Route110_TrickHousePuzzle7_MapScripts:: @ 816314C
+ map_script 5, Route110_TrickHousePuzzle7_MapScript1_163161
+ map_script 3, Route110_TrickHousePuzzle7_MapScript1_163253
+ map_script 1, Route110_TrickHousePuzzle7_MapScript1_16326F
+ map_script 2, Route110_TrickHousePuzzle7_MapScript2_16327B
+ .byte 0
+
+Route110_TrickHousePuzzle7_MapScript1_163161:: @ 8163161
+ call Route110_TrickHousePuzzle7_EventScript_163167
+ end
+
+Route110_TrickHousePuzzle7_EventScript_163167:: @ 8163167
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1, Route110_TrickHousePuzzle7_EventScript_163195
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2, Route110_TrickHousePuzzle7_EventScript_1631A8
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3, Route110_TrickHousePuzzle7_EventScript_1631BB
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4, Route110_TrickHousePuzzle7_EventScript_1631CE
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5, Route110_TrickHousePuzzle7_EventScript_1631E1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_163195:: @ 8163195
+ setmetatile 13, 17, 610, 0
+ setmetatile 12, 16, 575, 1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_1631A8:: @ 81631A8
+ setmetatile 12, 13, 610, 0
+ setmetatile 12, 11, 575, 1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_1631BB:: @ 81631BB
+ setmetatile 7, 12, 610, 0
+ setmetatile 5, 10, 575, 1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_1631CE:: @ 81631CE
+ setmetatile 6, 6, 636, 0
+ setmetatile 4, 4, 575, 1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_1631E1:: @ 81631E1
+ setmetatile 8, 4, 609, 0
+ setmetatile 7, 5, 575, 1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_1631F4:: @ 81631F4
+ setmetatile 13, 17, 611, 0
+ setmetatile 12, 16, 574, 1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_163207:: @ 8163207
+ setmetatile 12, 13, 609, 0
+ setmetatile 12, 11, 574, 1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_16321A:: @ 816321A
+ setmetatile 7, 12, 611, 0
+ setmetatile 5, 10, 574, 1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_16322D:: @ 816322D
+ setmetatile 6, 6, 635, 0
+ setmetatile 4, 4, 574, 1
+ return
+
+Route110_TrickHousePuzzle7_EventScript_163240:: @ 8163240
+ setmetatile 8, 4, 608, 0
+ setmetatile 7, 5, 574, 1
+ return
+
+Route110_TrickHousePuzzle7_MapScript1_163253:: @ 8163253
+ compare VAR_TRICK_HOUSE_PUZZLE_7_STATE_2, 1
+ goto_if_eq Route110_TrickHousePuzzle7_EventScript_16326E
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
+ end
+
+Route110_TrickHousePuzzle7_EventScript_16326E:: @ 816326E
+ end
+
+Route110_TrickHousePuzzle7_MapScript1_16326F:: @ 816326F
+ compare VAR_TRICK_HOUSE_PUZZLE_7_STATE_2, 1
+ call_if_eq Route110_TrickHousePuzzle7_EventScript_163167
+ end
+
+Route110_TrickHousePuzzle7_MapScript2_16327B:: @ 816327B
+ map_script_2 VAR_TRICK_HOUSE_PUZZLE_7_STATE_2, 1, Route110_TrickHousePuzzle7_EventScript_163285
+ .2byte 0
+
+Route110_TrickHousePuzzle7_EventScript_163285:: @ 8163285
+ setvar VAR_TRICK_HOUSE_PUZZLE_7_STATE_2, 0
+ end
+
+Route110_TrickHousePuzzle7_EventScript_16328B:: @ 816328B
+ lockall
+ compare VAR_TRICK_HOUSE_PUZZLE_7_STATE, 0
+ goto_if_eq Route110_TrickHousePuzzle7_EventScript_16329D
+ goto Route110_TrickHousePuzzle7_EventScript_161892
+ end
+
+Route110_TrickHousePuzzle7_EventScript_16329D:: @ 816329D
+ setvar VAR_TRICK_HOUSE_PUZZLE_7_STATE, 1
+ goto Route110_TrickHousePuzzle7_EventScript_16189C
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1632A8:: @ 81632A8
+ lockall
+ setvar VAR_TRICK_HOUSE_PUZZLE_7_STATE_2, 1
+ warpteleport MAP_ROUTE110_TRICK_HOUSE_PUZZLE7, 255, 3, 19
+ waitstate
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1632B9:: @ 81632B9
+ lockall
+ delay 32
+ call_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1, Route110_TrickHousePuzzle7_EventScript_163195
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1, Route110_TrickHousePuzzle7_EventScript_1631F4
+ special DrawWholeMapView
+ playse SE_TK_KASYA
+ goto_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1, Route110_TrickHousePuzzle7_EventScript_1633A4
+ goto_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1, Route110_TrickHousePuzzle7_EventScript_1633A9
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1632E8:: @ 81632E8
+ lockall
+ delay 32
+ call_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2, Route110_TrickHousePuzzle7_EventScript_1631A8
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2, Route110_TrickHousePuzzle7_EventScript_163207
+ special DrawWholeMapView
+ playse SE_TK_KASYA
+ goto_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2, Route110_TrickHousePuzzle7_EventScript_1633AE
+ goto_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2, Route110_TrickHousePuzzle7_EventScript_1633B3
+ end
+
+Route110_TrickHousePuzzle7_EventScript_163317:: @ 8163317
+ lockall
+ delay 32
+ call_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3, Route110_TrickHousePuzzle7_EventScript_1631BB
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3, Route110_TrickHousePuzzle7_EventScript_16321A
+ special DrawWholeMapView
+ playse SE_TK_KASYA
+ goto_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3, Route110_TrickHousePuzzle7_EventScript_1633B8
+ goto_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3, Route110_TrickHousePuzzle7_EventScript_1633BD
+ end
+
+Route110_TrickHousePuzzle7_EventScript_163346:: @ 8163346
+ lockall
+ delay 32
+ call_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4, Route110_TrickHousePuzzle7_EventScript_1631CE
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4, Route110_TrickHousePuzzle7_EventScript_16322D
+ special DrawWholeMapView
+ playse SE_TK_KASYA
+ goto_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4, Route110_TrickHousePuzzle7_EventScript_1633C2
+ goto_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4, Route110_TrickHousePuzzle7_EventScript_1633C7
+ end
+
+Route110_TrickHousePuzzle7_EventScript_163375:: @ 8163375
+ lockall
+ delay 32
+ call_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5, Route110_TrickHousePuzzle7_EventScript_1631E1
+ call_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5, Route110_TrickHousePuzzle7_EventScript_163240
+ special DrawWholeMapView
+ playse SE_TK_KASYA
+ goto_if_unset FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5, Route110_TrickHousePuzzle7_EventScript_1633CC
+ goto_if_set FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5, Route110_TrickHousePuzzle7_EventScript_1633D1
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633A4:: @ 81633A4
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633A9:: @ 81633A9
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633AE:: @ 81633AE
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633B3:: @ 81633B3
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633B8:: @ 81633B8
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633BD:: @ 81633BD
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633C2:: @ 81633C2
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633C7:: @ 81633C7
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633CC:: @ 81633CC
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633D1:: @ 81633D1
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
+ releaseall
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633D6:: @ 81633D6
+ trainerbattle 0, OPPONENT_JOSHUA, 0, Route110_TrickHousePuzzle7_Text_19DF0B, Route110_TrickHousePuzzle7_Text_19DF4B
+ msgbox Route110_TrickHousePuzzle7_Text_19DF7E, 6
+ end
+
+Route110_TrickHousePuzzle7_EventScript_1633ED:: @ 81633ED
+ trainerbattle 0, OPPONENT_PATRICIA, 0, Route110_TrickHousePuzzle7_Text_19DFBB, Route110_TrickHousePuzzle7_Text_19DFF2
+ msgbox Route110_TrickHousePuzzle7_Text_19E00F, 6
+ end
+
+Route110_TrickHousePuzzle7_EventScript_163404:: @ 8163404
+ trainerbattle 0, OPPONENT_ALEXIS, 0, Route110_TrickHousePuzzle7_Text_19E054, Route110_TrickHousePuzzle7_Text_19E098
+ msgbox Route110_TrickHousePuzzle7_Text_19E0B2, 6
+ end
diff --git a/data/maps/Route110_TrickHousePuzzle8/scripts.inc b/data/maps/Route110_TrickHousePuzzle8/scripts.inc
new file mode 100644
index 000000000..2c55aae4c
--- /dev/null
+++ b/data/maps/Route110_TrickHousePuzzle8/scripts.inc
@@ -0,0 +1,29 @@
+Route110_TrickHousePuzzle8_MapScripts:: @ 816341B
+ .byte 0
+
+Route110_TrickHousePuzzle8_EventScript_16341C:: @ 816341C
+ lockall
+ compare VAR_TRICK_HOUSE_PUZZLE_8_STATE, 0
+ goto_if_eq Route110_TrickHousePuzzle8_EventScript_16342E
+ goto Route110_TrickHousePuzzle8_EventScript_161892
+ end
+
+Route110_TrickHousePuzzle8_EventScript_16342E:: @ 816342E
+ setvar VAR_TRICK_HOUSE_PUZZLE_8_STATE, 1
+ goto Route110_TrickHousePuzzle8_EventScript_16189C
+ end
+
+Route110_TrickHousePuzzle8_EventScript_163439:: @ 8163439
+ trainerbattle 0, OPPONENT_VINCENT, 0, Route110_TrickHousePuzzle8_Text_19E178, Route110_TrickHousePuzzle8_Text_19E1A1
+ msgbox Route110_TrickHousePuzzle8_Text_19E1C5, 6
+ end
+
+Route110_TrickHousePuzzle8_EventScript_163450:: @ 8163450
+ trainerbattle 0, OPPONENT_ELAINE, 0, Route110_TrickHousePuzzle8_Text_19E201, Route110_TrickHousePuzzle8_Text_19E22C
+ msgbox Route110_TrickHousePuzzle8_Text_19E24C, 6
+ end
+
+Route110_TrickHousePuzzle8_EventScript_163467:: @ 8163467
+ trainerbattle 0, OPPONENT_LEROY, 0, Route110_TrickHousePuzzle8_Text_19E284, Route110_TrickHousePuzzle8_Text_19E2C1
+ msgbox Route110_TrickHousePuzzle8_Text_19E2EE, 6
+ end
diff --git a/data/maps/Route111/scripts.inc b/data/maps/Route111/scripts.inc
new file mode 100644
index 000000000..3e1570aff
--- /dev/null
+++ b/data/maps/Route111/scripts.inc
@@ -0,0 +1,442 @@
+Route111_MapScripts:: @ 814FF91
+ map_script 1, Route111_MapScript1_14FF9C
+ map_script 3, Route111_MapScript1_14FFB9
+ .byte 0
+
+Route111_MapScript1_14FF9C:: @ 814FF9C
+ call_if_unset FLAG_REGI_DOORS_OPENED, Route111_EventScript_14FFA6
+ end
+
+Route111_EventScript_14FFA6:: @ 814FFA6
+ setmetatile 29, 86, 124, 1
+ setmetatile 29, 87, 145, 1
+ return
+
+Route111_MapScript1_14FFB9:: @ 814FFB9
+ call Route111_EventScript_14FFCD
+ call Route111_EventScript_1AE313
+ goto_if_trainer_not_defeated OPPONENT_VICKY, Route111_EventScript_15000D
+ end
+
+Route111_EventScript_14FFCD:: @ 814FFCD
+ getplayerxy VAR_TEMP_0, VAR_TEMP_1
+ compare VAR_TEMP_1, 34
+ goto_if_lt Route111_EventScript_15000C
+ compare VAR_TEMP_1, 107
+ goto_if_gt Route111_EventScript_15000C
+ compare VAR_TEMP_1, 72
+ goto_if_gt Route111_EventScript_150009
+ compare VAR_TEMP_0, 2000
+ goto_if_gt Route111_EventScript_15000C
+ compare VAR_TEMP_0, 8
+ goto_if_lt Route111_EventScript_15000C
+
+Route111_EventScript_150009:: @ 8150009
+ setweather WEATHER_SANDSTORM
+
+Route111_EventScript_15000C:: @ 815000C
+ return
+
+Route111_EventScript_15000D:: @ 815000D
+ clearflag FLAG_HIDE_VICTOR_WINSTRATE
+ setflag FLAG_HIDE_VICTORIA_WINSTRATE
+ setflag FLAG_HIDE_VIVI_WINSTRATE
+ setflag FLAG_HIDE_VICKI_WINSTRATE
+ cleartrainerflag OPPONENT_VICTOR
+ cleartrainerflag OPPONENT_VICTORIA
+ cleartrainerflag OPPONENT_VIVI
+ end
+
+Route111_EventScript_150023:: @ 8150023
+ lockall
+ msgbox Route111_Text_16FA54, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route111_EventScript_15005F
+ giveitem_std ITEM_ROOT_FOSSIL
+ closemessage
+ setflag FLAG_HIDE_ROOT_FOSSIL
+ setflag FLAG_HIDE_CLAW_FOSSIL
+ removeobject 34
+ delay 30
+ applymovement 35, Route111_Movement_1500AF
+ waitmovement 0
+ removeobject 35
+ releaseall
+ end
+
+Route111_EventScript_15005F:: @ 815005F
+ msgbox Route111_Text_16FACE, 4
+ releaseall
+ end
+
+Route111_EventScript_150069:: @ 8150069
+ lockall
+ msgbox Route111_Text_16FAED, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route111_EventScript_1500A5
+ giveitem_std ITEM_CLAW_FOSSIL
+ closemessage
+ setflag FLAG_HIDE_CLAW_FOSSIL
+ setflag FLAG_HIDE_ROOT_FOSSIL
+ removeobject 35
+ delay 30
+ applymovement 34, Route111_Movement_1500AF
+ waitmovement 0
+ removeobject 34
+ releaseall
+ end
+
+Route111_EventScript_1500A5:: @ 81500A5
+ msgbox Route111_Text_16FB67, 4
+ releaseall
+ end
+
+Route111_Movement_1500AF:: @ 81500AF
+ set_visible
+ delay_4
+ set_invisible
+ delay_4
+ set_visible
+ delay_4
+ set_invisible
+ delay_4
+ set_visible
+ delay_8
+ set_invisible
+ delay_8
+ set_visible
+ delay_8
+ set_invisible
+ delay_8
+ set_visible
+ delay_16
+ set_invisible
+ delay_16
+ set_visible
+ end_movement
+
+Route111_EventScript_1500C5:: @ 81500C5
+ lock
+ faceplayer
+ dodailyevents
+ goto_if_set FLAG_DAILY_RECEIVED_BERRY_ROUTE111, Route111_EventScript_150100
+ msgbox Route111_Text_1C56F0, 4
+ giveitem_std ITEM_RAZZ_BERRY
+ compare RESULT, 0
+ goto_if_eq Route111_EventScript_1A029B
+ setflag FLAG_DAILY_RECEIVED_BERRY_ROUTE111
+ special GetPlayerBigGuyGirlString
+ msgbox Route111_Text_1C5781, 4
+ release
+ end
+
+Route111_EventScript_150100:: @ 8150100
+ msgbox Route111_Text_1C57D2, 4
+ release
+ end
+
+@ 815010A
+ lockall
+ setvar VAR_SPECIAL_4, 0
+ goto Route111_EventScript_15013A
+ end
+
+Route111_EventScript_150116:: @ 8150116
+ lockall
+ setvar VAR_SPECIAL_4, 1
+ goto Route111_EventScript_15013A
+ end
+
+Route111_EventScript_150122:: @ 8150122
+ lockall
+ setvar VAR_SPECIAL_4, 2
+ goto Route111_EventScript_15013A
+ end
+
+@ 815012E
+ lockall
+ setvar VAR_SPECIAL_4, 3
+ goto Route111_EventScript_15013A
+ end
+
+Route111_EventScript_15013A:: @ 815013A
+ checkitem ITEM_GO_GOGGLES, 1
+ compare RESULT, 0
+ goto_if_eq Route111_EventScript_150151
+ setvar VAR_TEMP_3, 1
+ releaseall
+ end
+
+Route111_EventScript_150151:: @ 8150151
+ msgbox Route111_Text_1A0F93, 4
+ closemessage
+ compare VAR_SPECIAL_4, 0
+ call_if_eq Route111_EventScript_150188
+ compare VAR_SPECIAL_4, 1
+ call_if_eq Route111_EventScript_150193
+ compare VAR_SPECIAL_4, 2
+ call_if_eq Route111_EventScript_15019E
+ compare VAR_SPECIAL_4, 3
+ call_if_eq Route111_EventScript_1501A9
+ releaseall
+ end
+
+Route111_EventScript_150188:: @ 8150188
+ applymovement 255, Route111_Movement_1501B4
+ waitmovement 0
+ return
+
+Route111_EventScript_150193:: @ 8150193
+ applymovement 255, Route111_Movement_1501B6
+ waitmovement 0
+ return
+
+Route111_EventScript_15019E:: @ 815019E
+ applymovement 255, Route111_Movement_1501B8
+ waitmovement 0
+ return
+
+Route111_EventScript_1501A9:: @ 81501A9
+ applymovement 255, Route111_Movement_1501BA
+ waitmovement 0
+ return
+
+Route111_Movement_1501B4:: @ 81501B4
+ walk_up
+ end_movement
+
+Route111_Movement_1501B6:: @ 81501B6
+ walk_down
+ end_movement
+
+Route111_Movement_1501B8:: @ 81501B8
+ walk_left
+ end_movement
+
+Route111_Movement_1501BA:: @ 81501BA
+ walk_right
+ end_movement
+
+Route111_EventScript_1501BC:: @ 81501BC
+ setweather WEATHER_SUNNY
+ fadenewbgm BGM_DOORO_X1
+ doweather
+ setvar VAR_TEMP_3, 0
+ end
+
+Route111_EventScript_1501C9:: @ 81501C9
+ setweather WEATHER_SANDSTORM
+ fadenewbgm BGM_ASHROAD
+ doweather
+ end
+
+Route111_EventScript_1501D1:: @ 81501D1
+ lock
+ faceplayer
+ setflag FLAG_LANDMARK_WINSTRATE_FAMILY
+ msgbox Route111_Text_16F705, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route111_EventScript_1501F3
+ msgbox Route111_Text_16F785, 4
+ release
+ end
+
+Route111_EventScript_1501F3:: @ 81501F3
+ msgbox Route111_Text_16F7B3, 4
+ trainerbattle 3, OPPONENT_VICTOR, 0, Route111_Text_16F7D2
+ applymovement 1, Route111_Movement_1A0841
+ waitmovement 0
+ call Route111_EventScript_150348
+ msgbox Route111_Text_16F7FF, 4
+ closemessage
+ applymovement 1, Route111_Movement_150356
+ waitmovement 0
+ removeobject 1
+ call Route111_EventScript_15034F
+ applymovement 255, Route111_Movement_15035B
+ waitmovement 0
+ call Route111_EventScript_150348
+ addobject 2
+ applymovement 2, Route111_Movement_150359
+ waitmovement 0
+ call Route111_EventScript_15034F
+ msgbox Route111_Text_16F82D, 4
+ trainerbattle 3, OPPONENT_VICTORIA, 0, Route111_Text_16F8A6
+ applymovement 2, Route111_Movement_1A0841
+ waitmovement 0
+ call Route111_EventScript_150348
+ msgbox Route111_Text_16F8D5, 4
+ closemessage
+ applymovement 2, Route111_Movement_150356
+ waitmovement 0
+ removeobject 2
+ call Route111_EventScript_15034F
+ applymovement 255, Route111_Movement_15035B
+ waitmovement 0
+ call Route111_EventScript_150348
+ addobject 3
+ applymovement 3, Route111_Movement_150359
+ waitmovement 0
+ call Route111_EventScript_15034F
+ msgbox Route111_Text_16F90E, 4
+ trainerbattle 3, OPPONENT_VIVI, 0, Route111_Text_16F956
+ applymovement 3, Route111_Movement_1A0841
+ waitmovement 0
+ call Route111_EventScript_150348
+ msgbox Route111_Text_16F96C, 4
+ closemessage
+ applymovement 3, Route111_Movement_150356
+ waitmovement 0
+ removeobject 3
+ call Route111_EventScript_15034F
+ applymovement 255, Route111_Movement_15035B
+ waitmovement 0
+ call Route111_EventScript_150348
+ addobject 4
+ applymovement 4, Route111_Movement_150359
+ waitmovement 0
+ call Route111_EventScript_15034F
+ msgbox Route111_Text_16F991, 4
+ trainerbattle 3, OPPONENT_VICKY, 0, Route111_Text_16F9EC
+ msgbox Route111_Text_16FA22, 4
+ closemessage
+ applymovement 4, Route111_Movement_1A0841
+ waitmovement 0
+ call Route111_EventScript_150348
+ applymovement 4, Route111_Movement_150356
+ waitmovement 0
+ removeobject 4
+ call Route111_EventScript_15034F
+ release
+ end
+
+Route111_EventScript_150348:: @ 8150348
+ opendoor 13, 113
+ waitdooranim
+ return
+
+Route111_EventScript_15034F:: @ 815034F
+ closedoor 13, 113
+ waitdooranim
+ return
+
+Route111_Movement_150356:: @ 8150356
+ walk_in_place_fastest_up
+ walk_up
+ end_movement
+
+Route111_Movement_150359:: @ 8150359
+ walk_down
+ end_movement
+
+Route111_Movement_15035B:: @ 815035B
+ delay_16
+ delay_16
+ delay_16
+ end_movement
+
+Route111_EventScript_15035F:: @ 815035F
+ msgbox Route111_Text_16FC9C, 3
+ end
+
+Route111_EventScript_150368:: @ 8150368
+ msgbox Route111_Text_16FCB6, 3
+ end
+
+Route111_EventScript_150371:: @ 8150371
+ msgbox Route111_Text_16FCEF, 3
+ end
+
+Route111_EventScript_15037A:: @ 815037A
+ msgbox Route111_Text_16FD05, 3
+ end
+
+Route111_EventScript_150383:: @ 8150383
+ msgbox Route111_Text_16FD1B, 3
+ end
+
+Route111_EventScript_15038C:: @ 815038C
+ msgbox Route111_Text_16FD55, 3
+ end
+
+Route111_EventScript_150395:: @ 8150395
+ msgbox Route111_Text_16FB86, 2
+ end
+
+Route111_EventScript_15039E:: @ 815039E
+ msgbox Route111_Text_16FC3A, 2
+ end
+
+Route111_EventScript_1503A7:: @ 81503A7
+ trainerbattle 0, OPPONENT_DREW, 0, Route111_Text_1BAB4B, Route111_Text_1BABC7
+ msgbox Route111_Text_1BAC10, 6
+ end
+
+Route111_EventScript_1503BE:: @ 81503BE
+ trainerbattle 0, OPPONENT_HEIDI, 0, Route111_Text_1BAC60, Route111_Text_1BACC5
+ msgbox Route111_Text_1BACD8, 6
+ end
+
+Route111_EventScript_1503D5:: @ 81503D5
+ trainerbattle 0, OPPONENT_CLIFF, 0, Route111_Text_1BAD4B, Route111_Text_1BADA3
+ msgbox Route111_Text_1BADC2, 6
+ end
+
+Route111_EventScript_1503EC:: @ 81503EC
+ trainerbattle 0, OPPONENT_BECKY, 0, Route111_Text_1BAE24, Route111_Text_1BAE6E
+ msgbox Route111_Text_1BAE81, 6
+ end
+
+Route111_EventScript_150403:: @ 8150403
+ trainerbattle 0, OPPONENT_DUSTY_1, 0, Route111_Text_1BAEC9, Route111_Text_1BAF14
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route111_EventScript_15042A
+ msgbox Route111_Text_1BAF5B, 6
+ end
+
+Route111_EventScript_15042A:: @ 815042A
+ trainerbattle 5, OPPONENT_DUSTY_1, 0, Route111_Text_1BAFC1, Route111_Text_1BB034
+ msgbox Route111_Text_1BB070, 6
+ end
+
+Route111_EventScript_150441:: @ 8150441
+ trainerbattle 0, OPPONENT_TRAVIS, 0, Route111_Text_1BB111, Route111_Text_1BB140
+ msgbox Route111_Text_1BB15B, 6
+ end
+
+Route111_EventScript_150458:: @ 8150458
+ trainerbattle 0, OPPONENT_IRENE, 0, Route111_Text_1BB199, Route111_Text_1BB1D8
+ msgbox Route111_Text_1BB1F6, 6
+ end
+
+Route111_EventScript_15046F:: @ 815046F
+ trainerbattle 0, OPPONENT_DAISUKE, 0, Route111_Text_1BB250, Route111_Text_1BB27E
+ msgbox Route111_Text_1BB290, 6
+ end
+
+Route111_EventScript_150486:: @ 8150486
+ trainerbattle 0, OPPONENT_WILTON_1, 0, Route111_Text_1BB2E3, Route111_Text_1BB313
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route111_EventScript_1504AD
+ msgbox Route111_Text_1BB33E, 6
+ end
+
+Route111_EventScript_1504AD:: @ 81504AD
+ trainerbattle 5, OPPONENT_WILTON_1, 0, Route111_Text_1BB3A7, Route111_Text_1BB3FA
+ msgbox Route111_Text_1BB40E, 6
+ end
+
+Route111_EventScript_1504C4:: @ 81504C4
+ trainerbattle 0, OPPONENT_BROOKE_1, 0, Route111_Text_1BB44F, Route111_Text_1BB49F
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route111_EventScript_1504EB
+ msgbox Route111_Text_1BB4CE, 6
+ end
+
+Route111_EventScript_1504EB:: @ 81504EB
+ trainerbattle 5, OPPONENT_BROOKE_1, 0, Route111_Text_1BB529, Route111_Text_1BB5A2
+ msgbox Route111_Text_1BB5C1, 6
+ end
diff --git a/data/maps/Route111_OldLadysRestStop/scripts.inc b/data/maps/Route111_OldLadysRestStop/scripts.inc
new file mode 100644
index 000000000..1263c4b83
--- /dev/null
+++ b/data/maps/Route111_OldLadysRestStop/scripts.inc
@@ -0,0 +1,33 @@
+Route111_OldLadysRestStop_MapScripts:: @ 815BFD1
+ map_script 3, Route111_OldLadysRestStop_MapScript1_15BFD7
+ .byte 0
+
+Route111_OldLadysRestStop_MapScript1_15BFD7:: @ 815BFD7
+ setflag FLAG_LANDMARK_OLD_LADY_REST_SHOP
+ end
+
+Route111_OldLadysRestStop_EventScript_15BFDB:: @ 815BFDB
+ lock
+ faceplayer
+ msgbox Route111_OldLadysRestStop_Text_1923AF, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route111_OldLadysRestStop_EventScript_15BFFC
+ compare RESULT, NO
+ goto_if_eq Route111_OldLadysRestStop_EventScript_15C029
+ end
+
+Route111_OldLadysRestStop_EventScript_15BFFC:: @ 815BFFC
+ msgbox Route111_OldLadysRestStop_Text_192423, 4
+ closemessage
+ call Route111_OldLadysRestStop_EventScript_1A02CA
+ msgbox Route111_OldLadysRestStop_Text_19244D, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route111_OldLadysRestStop_EventScript_15BFFC
+ compare RESULT, NO
+ goto_if_eq Route111_OldLadysRestStop_EventScript_15C029
+ end
+
+Route111_OldLadysRestStop_EventScript_15C029:: @ 815C029
+ msgbox Route111_OldLadysRestStop_Text_1924C6, 4
+ release
+ end
diff --git a/data/maps/Route111_WinstrateFamilysHouse/scripts.inc b/data/maps/Route111_WinstrateFamilysHouse/scripts.inc
new file mode 100644
index 000000000..020b51791
--- /dev/null
+++ b/data/maps/Route111_WinstrateFamilysHouse/scripts.inc
@@ -0,0 +1,58 @@
+Route111_WinstrateFamilysHouse_MapScripts:: @ 815BF24
+ .byte 0
+
+Route111_WinstrateFamilysHouse_EventScript_15BF25:: @ 815BF25
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_8, 2
+ msgbox Route111_WinstrateFamilysHouse_Text_191FCE, 4
+ goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
+ end
+
+Route111_WinstrateFamilysHouse_EventScript_15BF3A:: @ 815BF3A
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_8, 3
+ goto_if_set FLAG_RECEIVED_MACHO_BRACE, Route111_WinstrateFamilysHouse_EventScript_15BF72
+ msgbox Route111_WinstrateFamilysHouse_Text_19208A, 4
+ giveitem_std ITEM_MACHO_BRACE
+ compare RESULT, 0
+ goto_if_eq Route111_WinstrateFamilysHouse_EventScript_1A029B
+ setflag FLAG_RECEIVED_MACHO_BRACE
+ goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
+ end
+
+Route111_WinstrateFamilysHouse_EventScript_15BF72:: @ 815BF72
+ msgbox Route111_WinstrateFamilysHouse_Text_19214D, 4
+ goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
+ end
+
+Route111_WinstrateFamilysHouse_EventScript_15BF80:: @ 815BF80
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_8, 1
+ msgbox Route111_WinstrateFamilysHouse_Text_192190, 4
+ goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
+ end
+
+Route111_WinstrateFamilysHouse_EventScript_15BF95:: @ 815BF95
+ lock
+ faceplayer
+ setvar VAR_SPECIAL_8, 4
+ goto_if_set FLAG_TEMP_4, Route111_WinstrateFamilysHouse_EventScript_15BFB6
+ msgbox Route111_WinstrateFamilysHouse_Text_192219, 4
+ setflag FLAG_TEMP_4
+ goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
+ end
+
+Route111_WinstrateFamilysHouse_EventScript_15BFB6:: @ 815BFB6
+ msgbox Route111_WinstrateFamilysHouse_Text_192334, 4
+ goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
+ end
+
+Route111_WinstrateFamilysHouse_EventScript_15BFC4:: @ 815BFC4
+ closemessage
+ applymovement VAR_SPECIAL_8, Route111_WinstrateFamilysHouse_Movement_1A083D
+ waitmovement 0
+ release
+ end
diff --git a/data/maps/Route112/scripts.inc b/data/maps/Route112/scripts.inc
new file mode 100644
index 000000000..83d93f222
--- /dev/null
+++ b/data/maps/Route112/scripts.inc
@@ -0,0 +1,60 @@
+Route112_MapScripts:: @ 8150502
+ map_script 3, Route112_MapScript1_150508
+ .byte 0
+
+Route112_MapScript1_150508:: @ 8150508
+ call Route112_EventScript_1A0196
+ setvar VAR_JAGGED_PASS_ASH_WEATHER, 0
+ end
+
+Route112_EventScript_150513:: @ 8150513
+ msgbox Route112_Text_16FDF0, 2
+ end
+
+Route112_EventScript_15051C:: @ 815051C
+ msgbox Route112_Text_16FE3E, 2
+ end
+
+Route112_EventScript_150525:: @ 8150525
+ msgbox Route112_Text_16FEED, 3
+ end
+
+Route112_EventScript_15052E:: @ 815052E
+ msgbox Route112_Text_16FF19, 3
+ end
+
+Route112_EventScript_150537:: @ 8150537
+ msgbox Route112_Text_16FF64, 3
+ end
+
+Route112_EventScript_150540:: @ 8150540
+ msgbox Route112_Text_16FE7A, 2
+ end
+
+Route112_EventScript_150549:: @ 8150549
+ trainerbattle 0, OPPONENT_BRICE, 0, Route112_Text_1BB619, Route112_Text_1BB655
+ msgbox Route112_Text_1BB667, 6
+ end
+
+Route112_EventScript_150560:: @ 8150560
+ trainerbattle 0, OPPONENT_TRENT_1, 0, Route112_Text_1BB6A0, Route112_Text_1BB707
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route112_EventScript_150587
+ msgbox Route112_Text_1BB721, 6
+ end
+
+Route112_EventScript_150587:: @ 8150587
+ trainerbattle 5, OPPONENT_TRENT_1, 0, Route112_Text_1BB7C7, Route112_Text_1BB801
+ msgbox Route112_Text_1BB819, 6
+ end
+
+Route112_EventScript_15059E:: @ 815059E
+ trainerbattle 0, OPPONENT_LARRY, 0, Route112_Text_1BB893, Route112_Text_1BB8B6
+ msgbox Route112_Text_1BB8BE, 6
+ end
+
+Route112_EventScript_1505B5:: @ 81505B5
+ trainerbattle 0, OPPONENT_CAROL, 0, Route112_Text_1BB8F0, Route112_Text_1BB942
+ msgbox Route112_Text_1BB958, 6
+ end
diff --git a/data/maps/Route112_CableCarStation/scripts.inc b/data/maps/Route112_CableCarStation/scripts.inc
new file mode 100644
index 000000000..a593ccccc
--- /dev/null
+++ b/data/maps/Route112_CableCarStation/scripts.inc
@@ -0,0 +1,88 @@
+Route112_CableCarStation_MapScripts:: @ 815C033
+ map_script 3, Route112_CableCarStation_MapScript1_15C03E
+ map_script 2, Route112_CableCarStation_MapScript2_15C05E
+ .byte 0
+
+Route112_CableCarStation_MapScript1_15C03E:: @ 815C03E
+ setescapewarp MAP_ROUTE112, 255, 28, 28
+ compare VAR_CABLE_CAR_STATION_STATE, 2
+ call_if_eq Route112_CableCarStation_EventScript_15C052
+ end
+
+Route112_CableCarStation_EventScript_15C052:: @ 815C052
+ setobjectxyperm 1, 7, 4
+ setobjectmovementtype 1, 9
+ return
+
+Route112_CableCarStation_MapScript2_15C05E:: @ 815C05E
+ map_script_2 VAR_CABLE_CAR_STATION_STATE, 2, Route112_CableCarStation_EventScript_15C068
+ .2byte 0
+
+Route112_CableCarStation_EventScript_15C068:: @ 815C068
+ lockall
+ applymovement 255, Route112_CableCarStation_Movement_15C0F5
+ applymovement 1, Route112_CableCarStation_Movement_15C0EB
+ waitmovement 0
+ setvar VAR_CABLE_CAR_STATION_STATE, 0
+ setobjectxyperm 1, 6, 7
+ setobjectmovementtype 1, 8
+ releaseall
+ end
+
+Route112_CableCarStation_EventScript_15C08C:: @ 815C08C
+ lock
+ faceplayer
+ msgbox Route112_CableCarStation_Text_1924F5, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route112_CableCarStation_EventScript_15C0AD
+ compare RESULT, NO
+ goto_if_eq Route112_CableCarStation_EventScript_15C0DC
+ end
+
+Route112_CableCarStation_EventScript_15C0AD:: @ 815C0AD
+ msgbox Route112_CableCarStation_Text_1925A9, 4
+ closemessage
+ applymovement 1, Route112_CableCarStation_Movement_15C0E6
+ applymovement 255, Route112_CableCarStation_Movement_15C0F0
+ waitmovement 0
+ setvar VAR_SPECIAL_4, 0
+ setvar VAR_CABLE_CAR_STATION_STATE, 1
+ incrementgamestat GAME_STAT_RODE_CABLE_CAR
+ special CableCarWarp
+ special CableCar
+ waitstate
+ release
+ end
+
+Route112_CableCarStation_EventScript_15C0DC:: @ 815C0DC
+ msgbox Route112_CableCarStation_Text_192548, 4
+ release
+ end
+
+Route112_CableCarStation_Movement_15C0E6:: @ 815C0E6
+ walk_up
+ walk_up
+ walk_right
+ walk_in_place_fastest_left
+ end_movement
+
+Route112_CableCarStation_Movement_15C0EB:: @ 815C0EB
+ delay_16
+ walk_left
+ walk_down
+ walk_down
+ end_movement
+
+Route112_CableCarStation_Movement_15C0F0:: @ 815C0F0
+ walk_up
+ walk_up
+ walk_up
+ delay_16
+ end_movement
+
+Route112_CableCarStation_Movement_15C0F5:: @ 815C0F5
+ walk_down
+ walk_down
+ walk_down
+ delay_16
+ end_movement
diff --git a/data/maps/Route113/scripts.inc b/data/maps/Route113/scripts.inc
new file mode 100644
index 000000000..41b289db0
--- /dev/null
+++ b/data/maps/Route113/scripts.inc
@@ -0,0 +1,100 @@
+Route113_MapScripts:: @ 81505CC
+ map_script 5, Route113_MapScript1_1505D7
+ map_script 3, Route113_MapScript1_1505DA
+ .byte 0
+
+Route113_MapScript1_1505D7:: @ 81505D7
+ setstepcallback 1
+ end
+
+Route113_MapScript1_1505DA:: @ 81505DA
+ call Route113_EventScript_1505E5
+ call Route113_EventScript_1A0196
+ end
+
+Route113_EventScript_1505E5:: @ 81505E5
+ getplayerxy VAR_TEMP_0, VAR_TEMP_1
+ compare VAR_TEMP_0, 19
+ goto_if_lt Route113_EventScript_150604
+ compare VAR_TEMP_0, 84
+ goto_if_gt Route113_EventScript_150604
+ setweather WEATHER_ASH
+ return
+
+Route113_EventScript_150604:: @ 8150604
+ return
+
+Route113_EventScript_150605:: @ 8150605
+ msgbox Route113_Text_16FF7F, 2
+ end
+
+Route113_EventScript_15060E:: @ 815060E
+ msgbox Route113_Text_16FFEE, 2
+ end
+
+Route113_EventScript_150617:: @ 8150617
+ msgbox Route113_Text_170065, 3
+ end
+
+Route113_EventScript_150620:: @ 8150620
+ msgbox Route113_Text_17007B, 3
+ end
+
+Route113_EventScript_150629:: @ 8150629
+ msgbox Route113_Text_17011D, 3
+ end
+
+Route113_EventScript_150632:: @ 8150632
+ msgbox Route113_Text_170096, 3
+ end
+
+Route113_EventScript_15063B:: @ 815063B
+ trainerbattle 0, OPPONENT_NEAL, 0, Route113_Text_1BB9BA, Route113_Text_1BB9E6
+ msgbox Route113_Text_1BB9FB, 6
+ end
+
+Route113_EventScript_150652:: @ 8150652
+ trainerbattle 0, OPPONENT_DILLON, 0, Route113_Text_1BBA62, Route113_Text_1BBA9B
+ msgbox Route113_Text_1BBAB7, 6
+ end
+
+Route113_EventScript_150669:: @ 8150669
+ trainerbattle 0, OPPONENT_MADELINE_1, 0, Route113_Text_1BBB27, Route113_Text_1BBB7A
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route113_EventScript_150690
+ msgbox Route113_Text_1BBB9A, 6
+ end
+
+Route113_EventScript_150690:: @ 8150690
+ trainerbattle 5, OPPONENT_MADELINE_1, 0, Route113_Text_1BBBCE, Route113_Text_1BBC0D
+ msgbox Route113_Text_1BBC1C, 6
+ end
+
+Route113_EventScript_1506A7:: @ 81506A7
+ trainerbattle 0, OPPONENT_LAO_1, 0, Route113_Text_1BBC59, Route113_Text_1BBC90
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route113_EventScript_1506CE
+ msgbox Route113_Text_1BBCAB, 6
+ end
+
+Route113_EventScript_1506CE:: @ 81506CE
+ trainerbattle 5, OPPONENT_LAO_1, 0, Route113_Text_1BBCE6, Route113_Text_1BBD1D
+ msgbox Route113_Text_1BBD38, 6
+ end
+
+Route113_EventScript_1506E5:: @ 81506E5
+ trainerbattle 0, OPPONENT_LUNG, 0, Route113_Text_1BBD92, Route113_Text_1BBDC6
+ msgbox Route113_Text_1BBE1D, 6
+ end
+
+Route113_EventScript_1506FC:: @ 81506FC
+ trainerbattle 4, OPPONENT_TORI_AND_TIA, 0, Route113_Text_1BBE65, Route113_Text_1BBEA1, Route113_Text_1BBF25
+ msgbox Route113_Text_1BBEE4, 6
+ end
+
+Route113_EventScript_150717:: @ 8150717
+ trainerbattle 4, OPPONENT_TORI_AND_TIA, 0, Route113_Text_1BBF62, Route113_Text_1BBF9D, Route113_Text_1BC021
+ msgbox Route113_Text_1BBFE2, 6
+ end
diff --git a/data/maps/Route113_GlassWorkshop/scripts.inc b/data/maps/Route113_GlassWorkshop/scripts.inc
new file mode 100644
index 000000000..e42a6f89a
--- /dev/null
+++ b/data/maps/Route113_GlassWorkshop/scripts.inc
@@ -0,0 +1,308 @@
+Route113_GlassWorkshop_MapScripts:: @ 816354A
+ map_script 3, Route113_GlassWorkshop_MapScript1_163550
+ .byte 0
+
+Route113_GlassWorkshop_MapScript1_163550:: @ 8163550
+ setflag FLAG_LANDMARK_GLASS_WORKSHOP
+ compare VAR_GLASS_WORKSHOP_STATE, 1
+ call_if_eq Route113_GlassWorkshop_EventScript_16355F
+ end
+
+Route113_GlassWorkshop_EventScript_16355F:: @ 816355F
+ setvar VAR_GLASS_WORKSHOP_STATE, 2
+ return
+
+Route113_GlassWorkshop_EventScript_163565:: @ 8163565
+ lock
+ faceplayer
+ compare VAR_GLASS_WORKSHOP_STATE, 10
+ goto_if_ge Route113_GlassWorkshop_EventScript_1638D2
+ compare VAR_GLASS_WORKSHOP_STATE, 2
+ goto_if_eq Route113_GlassWorkshop_EventScript_1635B5
+ compare VAR_GLASS_WORKSHOP_STATE, 1
+ goto_if_eq Route113_GlassWorkshop_EventScript_1635AB
+ msgbox Route113_GlassWorkshop_Text_19E4E6, 4
+ giveitem_std ITEM_SOOT_SACK
+ setvar VAR_GLASS_WORKSHOP_STATE, 1
+ msgbox Route113_GlassWorkshop_Text_19E59B, 4
+ release
+ end
+
+Route113_GlassWorkshop_EventScript_1635AB:: @ 81635AB
+ msgbox Route113_GlassWorkshop_Text_19E59B, 4
+ release
+ end
+
+Route113_GlassWorkshop_EventScript_1635B5:: @ 81635B5
+ checkitem ITEM_SOOT_SACK, 1
+ compare RESULT, 0
+ goto_if_eq Route113_GlassWorkshop_EventScript_1635E4
+ msgbox Route113_GlassWorkshop_Text_19E65B, 4
+ compare VAR_ASH_GATHER_COUNT, 250
+ goto_if_lt Route113_GlassWorkshop_EventScript_163818
+ message Route113_GlassWorkshop_Text_19E757
+ waitmessage
+ goto Route113_GlassWorkshop_EventScript_1635EE
+ end
+
+Route113_GlassWorkshop_EventScript_1635E4:: @ 81635E4
+ msgbox Route113_GlassWorkshop_Text_19EAC1, 4
+ release
+ end
+
+Route113_GlassWorkshop_EventScript_1635EE:: @ 81635EE
+ setvar VAR_SPECIAL_9, 0
+ special ShowGlassWorkshopMenu
+ waitstate
+ switch RESULT
+ case 0, Route113_GlassWorkshop_EventScript_163660
+ case 1, Route113_GlassWorkshop_EventScript_16369C
+ case 2, Route113_GlassWorkshop_EventScript_1636D8
+ case 3, Route113_GlassWorkshop_EventScript_163714
+ case 4, Route113_GlassWorkshop_EventScript_163750
+ case 5, Route113_GlassWorkshop_EventScript_16378C
+ case 6, Route113_GlassWorkshop_EventScript_1637CD
+ case 7, Route113_GlassWorkshop_EventScript_16380E
+ case 127, Route113_GlassWorkshop_EventScript_16380E
+ end
+
+Route113_GlassWorkshop_EventScript_163660:: @ 8163660
+ setvar VAR_SPECIAL_8, ITEM_BLUE_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ setvar VAR_SPECIAL_A, 250
+ compare VAR_ASH_GATHER_COUNT, 250
+ goto_if_lt Route113_GlassWorkshop_EventScript_163830
+ msgbox Route113_GlassWorkshop_Text_19E7CD, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
+ setvar VAR_GLASS_WORKSHOP_STATE, 10
+ subvar VAR_ASH_GATHER_COUNT, 250
+ goto Route113_GlassWorkshop_EventScript_163851
+ end
+
+Route113_GlassWorkshop_EventScript_16369C:: @ 816369C
+ setvar VAR_SPECIAL_8, ITEM_YELLOW_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ setvar VAR_SPECIAL_A, 500
+ compare VAR_ASH_GATHER_COUNT, 500
+ goto_if_lt Route113_GlassWorkshop_EventScript_163830
+ msgbox Route113_GlassWorkshop_Text_19E7CD, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
+ setvar VAR_GLASS_WORKSHOP_STATE, 11
+ subvar VAR_ASH_GATHER_COUNT, 500
+ goto Route113_GlassWorkshop_EventScript_163851
+ end
+
+Route113_GlassWorkshop_EventScript_1636D8:: @ 81636D8
+ setvar VAR_SPECIAL_8, ITEM_RED_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ setvar VAR_SPECIAL_A, 500
+ compare VAR_ASH_GATHER_COUNT, 500
+ goto_if_lt Route113_GlassWorkshop_EventScript_163830
+ msgbox Route113_GlassWorkshop_Text_19E7CD, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
+ setvar VAR_GLASS_WORKSHOP_STATE, 12
+ subvar VAR_ASH_GATHER_COUNT, 500
+ goto Route113_GlassWorkshop_EventScript_163851
+ end
+
+Route113_GlassWorkshop_EventScript_163714:: @ 8163714
+ setvar VAR_SPECIAL_8, ITEM_WHITE_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ setvar VAR_SPECIAL_A, 1000
+ compare VAR_ASH_GATHER_COUNT, 1000
+ goto_if_lt Route113_GlassWorkshop_EventScript_163830
+ msgbox Route113_GlassWorkshop_Text_19E7CD, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
+ setvar VAR_GLASS_WORKSHOP_STATE, 13
+ subvar VAR_ASH_GATHER_COUNT, 1000
+ goto Route113_GlassWorkshop_EventScript_163851
+ end
+
+Route113_GlassWorkshop_EventScript_163750:: @ 8163750
+ setvar VAR_SPECIAL_8, ITEM_BLACK_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ setvar VAR_SPECIAL_A, 1000
+ compare VAR_ASH_GATHER_COUNT, 1000
+ goto_if_lt Route113_GlassWorkshop_EventScript_163830
+ msgbox Route113_GlassWorkshop_Text_19E7CD, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
+ setvar VAR_GLASS_WORKSHOP_STATE, 14
+ subvar VAR_ASH_GATHER_COUNT, 1000
+ goto Route113_GlassWorkshop_EventScript_163851
+ end
+
+Route113_GlassWorkshop_EventScript_16378C:: @ 816378C
+ setvar VAR_SPECIAL_9, 1
+ setvar VAR_SPECIAL_8, DECOR_PRETTY_CHAIR
+ bufferdecorationname 0, VAR_SPECIAL_8
+ setvar VAR_SPECIAL_A, 6000
+ compare VAR_ASH_GATHER_COUNT, 6000
+ goto_if_lt Route113_GlassWorkshop_EventScript_163830
+ msgbox Route113_GlassWorkshop_Text_19E7CD, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
+ setvar VAR_GLASS_WORKSHOP_STATE, 15
+ subvar VAR_ASH_GATHER_COUNT, 6000
+ goto Route113_GlassWorkshop_EventScript_163851
+ end
+
+Route113_GlassWorkshop_EventScript_1637CD:: @ 81637CD
+ setvar VAR_SPECIAL_9, 1
+ setvar VAR_SPECIAL_8, DECOR_PRETTY_DESK
+ bufferdecorationname 0, VAR_SPECIAL_8
+ setvar VAR_SPECIAL_A, 8000
+ compare VAR_ASH_GATHER_COUNT, 8000
+ goto_if_lt Route113_GlassWorkshop_EventScript_163830
+ msgbox Route113_GlassWorkshop_Text_19E7CD, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
+ setvar VAR_GLASS_WORKSHOP_STATE, 16
+ subvar VAR_ASH_GATHER_COUNT, 8000
+ goto Route113_GlassWorkshop_EventScript_163851
+ end
+
+Route113_GlassWorkshop_EventScript_16380E:: @ 816380E
+ msgbox Route113_GlassWorkshop_Text_19E990, 4
+ release
+ end
+
+Route113_GlassWorkshop_EventScript_163818:: @ 8163818
+ setvar VAR_SPECIAL_A, 250
+ subvar VAR_SPECIAL_A, 16456
+ buffernumberstring 0, 32778
+ msgbox Route113_GlassWorkshop_Text_19E697, 4
+ release
+ end
+
+Route113_GlassWorkshop_EventScript_163830:: @ 8163830
+ subvar VAR_SPECIAL_A, 16456
+ buffernumberstring 1, 32778
+ message Route113_GlassWorkshop_Text_19E890
+ waitmessage
+ goto Route113_GlassWorkshop_EventScript_1635EE
+ end
+
+Route113_GlassWorkshop_EventScript_163845:: @ 8163845
+ message Route113_GlassWorkshop_Text_19E802
+ waitmessage
+ goto Route113_GlassWorkshop_EventScript_1635EE
+ end
+
+Route113_GlassWorkshop_EventScript_163851:: @ 8163851
+ msgbox Route113_GlassWorkshop_Text_19E827, 4
+ closemessage
+ fadescreen 1
+ playse SE_SELECT
+ delay 30
+ fadescreen 0
+ msgbox Route113_GlassWorkshop_Text_19E9D7, 4
+ compare VAR_SPECIAL_9, 0
+ call_if_eq Route113_GlassWorkshop_EventScript_163889
+ compare VAR_SPECIAL_9, 1
+ call_if_eq Route113_GlassWorkshop_EventScript_1638A1
+ setvar VAR_GLASS_WORKSHOP_STATE, 2
+ release
+ end
+
+Route113_GlassWorkshop_EventScript_163889:: @ 8163889
+ giveitem_std VAR_SPECIAL_8
+ compare RESULT, 0
+ goto_if_eq Route113_GlassWorkshop_EventScript_1638B4
+ return
+
+Route113_GlassWorkshop_EventScript_1638A1:: @ 81638A1
+ givedecoration_std VAR_SPECIAL_8
+ compare RESULT, 0
+ goto_if_eq Route113_GlassWorkshop_EventScript_1638C3
+ return
+
+Route113_GlassWorkshop_EventScript_1638B4:: @ 81638B4
+ call Route113_GlassWorkshop_EventScript_1A02A5
+ msgbox Route113_GlassWorkshop_Text_19EA06, 4
+ release
+ end
+
+Route113_GlassWorkshop_EventScript_1638C3:: @ 81638C3
+ call Route113_GlassWorkshop_EventScript_1A02B8
+ msgbox Route113_GlassWorkshop_Text_19EA64, 4
+ release
+ end
+
+Route113_GlassWorkshop_EventScript_1638D2:: @ 81638D2
+ switch VAR_GLASS_WORKSHOP_STATE
+ case 10, Route113_GlassWorkshop_EventScript_163925
+ case 11, Route113_GlassWorkshop_EventScript_163939
+ case 12, Route113_GlassWorkshop_EventScript_16394D
+ case 13, Route113_GlassWorkshop_EventScript_163961
+ case 14, Route113_GlassWorkshop_EventScript_163975
+ case 15, Route113_GlassWorkshop_EventScript_163989
+ case 16, Route113_GlassWorkshop_EventScript_16399D
+ end
+
+Route113_GlassWorkshop_EventScript_163925:: @ 8163925
+ setvar VAR_SPECIAL_9, 0
+ setvar VAR_SPECIAL_8, ITEM_BLUE_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ goto Route113_GlassWorkshop_EventScript_1639B1
+ end
+
+Route113_GlassWorkshop_EventScript_163939:: @ 8163939
+ setvar VAR_SPECIAL_9, 0
+ setvar VAR_SPECIAL_8, ITEM_YELLOW_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ goto Route113_GlassWorkshop_EventScript_1639B1
+ end
+
+Route113_GlassWorkshop_EventScript_16394D:: @ 816394D
+ setvar VAR_SPECIAL_9, 0
+ setvar VAR_SPECIAL_8, ITEM_RED_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ goto Route113_GlassWorkshop_EventScript_1639B1
+ end
+
+Route113_GlassWorkshop_EventScript_163961:: @ 8163961
+ setvar VAR_SPECIAL_9, 0
+ setvar VAR_SPECIAL_8, ITEM_WHITE_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ goto Route113_GlassWorkshop_EventScript_1639B1
+ end
+
+Route113_GlassWorkshop_EventScript_163975:: @ 8163975
+ setvar VAR_SPECIAL_9, 0
+ setvar VAR_SPECIAL_8, ITEM_BLACK_FLUTE
+ bufferitemname 0, VAR_SPECIAL_8
+ goto Route113_GlassWorkshop_EventScript_1639B1
+ end
+
+Route113_GlassWorkshop_EventScript_163989:: @ 8163989
+ setvar VAR_SPECIAL_9, 1
+ setvar VAR_SPECIAL_8, DECOR_PRETTY_CHAIR
+ bufferdecorationname 0, DECOR_PRETTY_CHAIR
+ goto Route113_GlassWorkshop_EventScript_1639B1
+ end
+
+Route113_GlassWorkshop_EventScript_16399D:: @ 816399D
+ setvar VAR_SPECIAL_9, 1
+ setvar VAR_SPECIAL_8, DECOR_PRETTY_DESK
+ bufferdecorationname 0, DECOR_PRETTY_DESK
+ goto Route113_GlassWorkshop_EventScript_1639B1
+ end
+
+Route113_GlassWorkshop_EventScript_1639B1:: @ 81639B1
+ msgbox Route113_GlassWorkshop_Text_19E9D7, 4
+ compare VAR_SPECIAL_9, 0
+ call_if_eq Route113_GlassWorkshop_EventScript_163889
+ compare VAR_SPECIAL_9, 1
+ call_if_eq Route113_GlassWorkshop_EventScript_1638A1
+ setvar VAR_GLASS_WORKSHOP_STATE, 2
+ release
+ end
+
+Route113_GlassWorkshop_EventScript_1639D6:: @ 81639D6
+ msgbox Route113_GlassWorkshop_Text_19EB3B, 2
+ end
diff --git a/data/maps/Route114/scripts.inc b/data/maps/Route114/scripts.inc
new file mode 100644
index 000000000..54a4ee59a
--- /dev/null
+++ b/data/maps/Route114/scripts.inc
@@ -0,0 +1,130 @@
+Route114_MapScripts:: @ 8150732
+ .byte 0
+
+Route114_EventScript_150733:: @ 8150733
+ lock
+ faceplayer
+ dodailyevents
+ goto_if_set FLAG_DAILY_RECEIVED_BERRY_ROUTE114, Route114_EventScript_150778
+ msgbox Route114_Text_1C5803, 4
+ random 5
+ addvar RESULT, 15
+ addvar RESULT, 133
+ giveitem_std RESULT
+ compare RESULT, 0
+ goto_if_eq Route114_EventScript_1A029B
+ setflag FLAG_DAILY_RECEIVED_BERRY_ROUTE114
+ msgbox Route114_Text_1C5861, 4
+ release
+ end
+
+Route114_EventScript_150778:: @ 8150778
+ msgbox Route114_Text_1C5878, 4
+ release
+ end
+
+Route114_EventScript_150782:: @ 8150782
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM05, Route114_EventScript_1507B9
+ msgbox Route114_Text_170154, 4
+ giveitem_std ITEM_TM05_ROAR
+ compare RESULT, 0
+ goto_if_eq Route114_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM05
+ msgbox Route114_Text_1701C5, 4
+ release
+ end
+
+Route114_EventScript_1507B9:: @ 81507B9
+ msgbox Route114_Text_1701C5, 4
+ release
+ end
+
+Route114_EventScript_1507C3:: @ 81507C3
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_POOCHYENA, 2
+ msgbox Route114_Text_1701F9, 4
+ waitmoncry
+ release
+ end
+
+Route114_EventScript_1507D6:: @ 81507D6
+ msgbox Route114_Text_170206, 3
+ end
+
+Route114_EventScript_1507DF:: @ 81507DF
+ msgbox Route114_Text_17022E, 3
+ end
+
+Route114_EventScript_1507E8:: @ 81507E8
+ msgbox Route114_Text_170263, 3
+ end
+
+Route114_EventScript_1507F1:: @ 81507F1
+ trainerbattle 0, OPPONENT_LENNY, 0, Route114_Text_1BC05B, Route114_Text_1BC0B5
+ msgbox Route114_Text_1BC0C3, 6
+ end
+
+Route114_EventScript_150808:: @ 8150808
+ trainerbattle 0, OPPONENT_LUCAS_1, 0, Route114_Text_1BC125, Route114_Text_1BC163
+ msgbox Route114_Text_1BC184, 6
+ end
+
+Route114_EventScript_15081F:: @ 815081F
+ trainerbattle 0, OPPONENT_SHANE, 0, Route114_Text_1BC1C8, Route114_Text_1BC23F
+ msgbox Route114_Text_1BC24F, 6
+ end
+
+Route114_EventScript_150836:: @ 8150836
+ trainerbattle 0, OPPONENT_NANCY, 0, Route114_Text_1BC289, Route114_Text_1BC2BE
+ msgbox Route114_Text_1BC2C6, 6
+ end
+
+Route114_EventScript_15084D:: @ 815084D
+ trainerbattle 0, OPPONENT_STEVE_1, 0, Route114_Text_1BC2F5, Route114_Text_1BC327
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route114_EventScript_150874
+ msgbox Route114_Text_1BC337, 6
+ end
+
+Route114_EventScript_150874:: @ 8150874
+ trainerbattle 5, OPPONENT_STEVE_1, 0, Route114_Text_1BC3B3, Route114_Text_1BC3E0
+ msgbox Route114_Text_1BC40F, 6
+ end
+
+Route114_EventScript_15088B:: @ 815088B
+ trainerbattle 0, OPPONENT_BERNIE_1, 0, Route114_Text_1BC45A, Route114_Text_1BC499
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route114_EventScript_1508B2
+ msgbox Route114_Text_1BC4B5, 6
+ end
+
+Route114_EventScript_1508B2:: @ 81508B2
+ trainerbattle 5, OPPONENT_BERNIE_1, 0, Route114_Text_1BC525, Route114_Text_1BC559
+ msgbox Route114_Text_1BC58C, 6
+ end
+
+Route114_EventScript_1508C9:: @ 81508C9
+ trainerbattle 0, OPPONENT_CLAUDE, 0, Route114_Text_1BC5FC, Route114_Text_1BC653
+ msgbox Route114_Text_1BC679, 6
+ end
+
+Route114_EventScript_1508E0:: @ 81508E0
+ trainerbattle 0, OPPONENT_NOLAN, 0, Route114_Text_1BC6EC, Route114_Text_1BC750
+ msgbox Route114_Text_1BC78A, 6
+ end
+
+Route114_EventScript_1508F7:: @ 81508F7
+ trainerbattle 4, OPPONENT_TYRA_AND_IVY, 0, Route114_Text_1BC7E3, Route114_Text_1BC834, Route114_Text_1BC88A
+ msgbox Route114_Text_1BC858, 6
+ end
+
+Route114_EventScript_150912:: @ 8150912
+ trainerbattle 4, OPPONENT_TYRA_AND_IVY, 0, Route114_Text_1BC8D8, Route114_Text_1BC8FB, Route114_Text_1BC96A
+ msgbox Route114_Text_1BC91E, 6
+ end
diff --git a/data/maps/Route114_FossilManiacsHouse/scripts.inc b/data/maps/Route114_FossilManiacsHouse/scripts.inc
new file mode 100644
index 000000000..c93584561
--- /dev/null
+++ b/data/maps/Route114_FossilManiacsHouse/scripts.inc
@@ -0,0 +1,32 @@
+Route114_FossilManiacsHouse_MapScripts:: @ 815C1B9
+ map_script 3, Route114_FossilManiacsHouse_MapScript1_15C1BF
+ .byte 0
+
+Route114_FossilManiacsHouse_MapScript1_15C1BF:: @ 815C1BF
+ setflag FLAG_LANDMARK_FOSSIL_MANIACS_HOUSE
+ end
+
+Route114_FossilManiacsHouse_EventScript_15C1C3:: @ 815C1C3
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM28, Route114_FossilManiacsHouse_EventScript_15C1F2
+ msgbox Route114_FossilManiacsHouse_Text_1925E1, 4
+ giveitem_std ITEM_TM28_DIG
+ compare RESULT, 0
+ goto_if_eq Route114_FossilManiacsHouse_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM28
+ release
+ end
+
+Route114_FossilManiacsHouse_EventScript_15C1F2:: @ 815C1F2
+ msgbox Route114_FossilManiacsHouse_Text_1926AE, 4
+ release
+ end
+
+Route114_FossilManiacsHouse_EventScript_15C1FC:: @ 815C1FC
+ msgbox Route114_FossilManiacsHouse_Text_1926FA, 3
+ end
+
+Route114_FossilManiacsHouse_EventScript_15C205:: @ 815C205
+ msgbox Route114_FossilManiacsHouse_Text_192729, 3
+ end
diff --git a/data/maps/Route114_FossilManiacsTunnel/scripts.inc b/data/maps/Route114_FossilManiacsTunnel/scripts.inc
new file mode 100644
index 000000000..740a48314
--- /dev/null
+++ b/data/maps/Route114_FossilManiacsTunnel/scripts.inc
@@ -0,0 +1,26 @@
+Route114_FossilManiacsTunnel_MapScripts:: @ 815C20E
+ .byte 0
+
+Route114_FossilManiacsTunnel_EventScript_15C20F:: @ 815C20F
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_FOSSIL_MON, Route114_FossilManiacsTunnel_EventScript_15C24E
+ checkitem ITEM_ROOT_FOSSIL, 1
+ compare RESULT, 1
+ goto_if_eq Route114_FossilManiacsTunnel_EventScript_15C244
+ checkitem ITEM_CLAW_FOSSIL, 1
+ compare RESULT, 1
+ goto_if_eq Route114_FossilManiacsTunnel_EventScript_15C244
+ msgbox Route114_FossilManiacsTunnel_Text_192795, 4
+ release
+ end
+
+Route114_FossilManiacsTunnel_EventScript_15C244:: @ 815C244
+ msgbox Route114_FossilManiacsTunnel_Text_1928DE, 4
+ release
+ end
+
+Route114_FossilManiacsTunnel_EventScript_15C24E:: @ 815C24E
+ msgbox Route114_FossilManiacsTunnel_Text_1929DC, 4
+ release
+ end
diff --git a/data/maps/Route114_LanettesHouse/scripts.inc b/data/maps/Route114_LanettesHouse/scripts.inc
new file mode 100644
index 000000000..30eb844ac
--- /dev/null
+++ b/data/maps/Route114_LanettesHouse/scripts.inc
@@ -0,0 +1,53 @@
+Route114_LanettesHouse_MapScripts:: @ 815C258
+ map_script 3, Route114_LanettesHouse_MapScript1_15C25E
+ .byte 0
+
+Route114_LanettesHouse_MapScript1_15C25E:: @ 815C25E
+ setflag FLAG_LANDMARK_LANETTES_HOUSE
+ end
+
+Route114_LanettesHouse_EventScript_15C262:: @ 815C262
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_DOLL_LANETTE, Route114_LanettesHouse_EventScript_15C28F
+ setflag FLAG_SYS_PC_LANETTE
+ msgbox Route114_LanettesHouse_Text_192A0D, 4
+ .ifdef SAPPHIRE
+ givedecoration_std DECOR_LOTAD_DOLL
+ .else
+ givedecoration_std DECOR_SEEDOT_DOLL
+ .endif
+ compare RESULT, 0
+ goto_if_eq Route114_LanettesHouse_EventScript_1A02AE
+ setflag FLAG_RECEIVED_DOLL_LANETTE
+ release
+ end
+
+Route114_LanettesHouse_EventScript_15C28F:: @ 815C28F
+ msgbox Route114_LanettesHouse_Text_192ACC, 4
+ release
+ end
+
+Route114_LanettesHouse_EventScript_15C299:: @ 815C299
+ lockall
+ msgbox Route114_LanettesHouse_Text_192B4A, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route114_LanettesHouse_EventScript_15C2B7
+ msgbox Route114_LanettesHouse_Text_192DA9, 4
+ releaseall
+ end
+
+Route114_LanettesHouse_EventScript_15C2B7:: @ 815C2B7
+ msgbox Route114_LanettesHouse_Text_192C01, MSGBOX_YESNO
+ compare RESULT, YES
+ call_if_eq Route114_LanettesHouse_EventScript_15C2CC
+ releaseall
+ end
+
+Route114_LanettesHouse_EventScript_15C2CC:: @ 815C2CC
+ msgbox Route114_LanettesHouse_Text_192CB4, 4
+ return
+
+Route114_LanettesHouse_EventScript_15C2D5:: @ 815C2D5
+ msgbox Route114_LanettesHouse_Text_192DC1, 3
+ end
diff --git a/data/maps/Route115/scripts.inc b/data/maps/Route115/scripts.inc
new file mode 100644
index 000000000..f16c2088a
--- /dev/null
+++ b/data/maps/Route115/scripts.inc
@@ -0,0 +1,68 @@
+Route115_MapScripts:: @ 815092D
+ .byte 0
+
+Route115_EventScript_15092E:: @ 815092E
+ msgbox Route115_Text_170273, 2
+ end
+
+Route115_EventScript_150937:: @ 8150937
+ msgbox Route115_Text_1702E7, 3
+ end
+
+Route115_EventScript_150940:: @ 8150940
+ msgbox Route115_Text_170301, 3
+ end
+
+Route115_EventScript_150949:: @ 8150949
+ trainerbattle 0, OPPONENT_TIMOTHY_1, 0, Route115_Text_1BC9AC, Route115_Text_1BC9E6
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route115_EventScript_150970
+ msgbox Route115_Text_1BCA0E, 6
+ end
+
+Route115_EventScript_150970:: @ 8150970
+ trainerbattle 5, OPPONENT_TIMOTHY_1, 0, Route115_Text_1BCA6B, Route115_Text_1BCAB3
+ msgbox Route115_Text_1BCAC6, 6
+ end
+
+Route115_EventScript_150987:: @ 8150987
+ trainerbattle 0, OPPONENT_KOICHI, 0, Route115_Text_1BCB0D, Route115_Text_1BCB2E
+ msgbox Route115_Text_1BCB40, 6
+ end
+
+Route115_EventScript_15099E:: @ 815099E
+ trainerbattle 0, OPPONENT_NOB_1, 0, Route115_Text_1BCB8A, Route115_Text_1BCBC1
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route115_EventScript_1509C5
+ msgbox Route115_Text_1BCBDE, 6
+ end
+
+Route115_EventScript_1509C5:: @ 81509C5
+ trainerbattle 5, OPPONENT_NOB_1, 0, Route115_Text_1BCC4C, Route115_Text_1BCCA2
+ msgbox Route115_Text_1BCCBA, 6
+ end
+
+Route115_EventScript_1509DC:: @ 81509DC
+ trainerbattle 0, OPPONENT_CYNDY_1, 0, Route115_Text_1BCCF4, Route115_Text_1BCD32
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route115_EventScript_150A03
+ msgbox Route115_Text_1BCD4C, 6
+ end
+
+Route115_EventScript_150A03:: @ 8150A03
+ trainerbattle 5, OPPONENT_CYNDY_1, 0, Route115_Text_1BCDB0, Route115_Text_1BCDD0
+ msgbox Route115_Text_1BCDEF, 6
+ end
+
+Route115_EventScript_150A1A:: @ 8150A1A
+.ifdef SAPPHIRE
+ trainerbattle 0, OPPONENT_514, 0, UnknownString_81BCE47, UnknownString_81BCE7D
+ msgbox UnknownString_81BCEA4, 6
+.else
+ trainerbattle 0, OPPONENT_514, 0, Route115_Text_1BCEE0, Route115_Text_1BCF16
+ msgbox Route115_Text_1BCF3D, 6
+.endc
+ end
diff --git a/data/maps/Route116/scripts.inc b/data/maps/Route116/scripts.inc
new file mode 100644
index 000000000..77fbf57a4
--- /dev/null
+++ b/data/maps/Route116/scripts.inc
@@ -0,0 +1,271 @@
+Route116_MapScripts:: @ 8150A31
+ map_script 3, Route116_MapScript1_150A37
+ .byte 0
+
+Route116_MapScript1_150A37:: @ 8150A37
+ call_if_set FLAG_RECOVERED_DEVON_GOODS, Route116_EventScript_150A41
+ end
+
+Route116_EventScript_150A41:: @ 8150A41
+ setobjectxyperm 21, 41, 10
+ return
+
+Route116_EventScript_150A49:: @ 8150A49
+ lock
+ faceplayer
+ goto_if_set FLAG_RECOVERED_DEVON_GOODS, Route116_EventScript_150A67
+ goto_if_set FLAG_DEVON_GOODS_STOLEN, Route116_EventScript_150A71
+ msgbox Route116_Text_1703CF, 4
+ release
+ end
+
+Route116_EventScript_150A67:: @ 8150A67
+ msgbox Route116_Text_170556, 4
+ release
+ end
+
+Route116_EventScript_150A71:: @ 8150A71
+ msgbox Route116_Text_1703F7, 4
+ release
+ end
+
+Route116_EventScript_150A7B:: @ 8150A7B
+ lock
+ faceplayer
+ goto_if_set FLAG_MET_DEVON_EMPLOYEE, Route116_EventScript_150B04
+ msgbox Route116_Text_1705AE, 4
+ goto Route116_EventScript_150A94
+ end
+
+Route116_EventScript_150A94:: @ 8150A94
+ setflag FLAG_MET_DEVON_EMPLOYEE
+ giveitem_std ITEM_REPEAT_BALL
+ compare RESULT, 0
+ goto_if_eq Route116_EventScript_150B12
+ msgbox Route116_Text_1707B8, 4
+ closemessage
+ compare FACING, 2
+ call_if_eq Route116_EventScript_150AEE
+ compare FACING, 1
+ call_if_eq Route116_EventScript_150AEE
+ compare FACING, 3
+ call_if_eq Route116_EventScript_150AEE
+ compare FACING, 4
+ call_if_eq Route116_EventScript_150AF9
+ removeobject LAST_TALKED
+ clearflag FLAG_HIDE_EMPLOYEE_DEVON_CORP_3F
+ setflag FLAG_RECEIVED_REPEAT_BALL
+ release
+ end
+
+Route116_EventScript_150AEE:: @ 8150AEE
+ applymovement LAST_TALKED, Route116_Movement_150B1C
+ waitmovement 0
+ return
+
+Route116_EventScript_150AF9:: @ 8150AF9
+ applymovement LAST_TALKED, Route116_Movement_150B25
+ waitmovement 0
+ return
+
+Route116_EventScript_150B04:: @ 8150B04
+ msgbox Route116_Text_170865, 4
+ goto Route116_EventScript_150A94
+ end
+
+Route116_EventScript_150B12:: @ 8150B12
+ msgbox Route116_Text_17082A, 4
+ release
+ end
+
+Route116_Movement_150B1C:: @ 8150B1C
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+Route116_Movement_150B25:: @ 8150B25
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+Route116_EventScript_150B30:: @ 8150B30
+ msgbox Route116_Text_170A46, 3
+ end
+
+Route116_EventScript_150B39:: @ 8150B39
+ msgbox Route116_Text_170A60, 3
+ end
+
+Route116_EventScript_150B42:: @ 8150B42
+ msgbox Route116_Text_170AB8, 3
+ end
+
+Route116_EventScript_150B4B:: @ 8150B4B
+ msgbox Route116_Text_170ACE, 3
+ end
+
+Route116_EventScript_150B54:: @ 8150B54
+ msgbox Route116_Text_170B7D, 3
+ end
+
+Route116_EventScript_150B5D:: @ 8150B5D
+ lock
+ faceplayer
+ msgbox Route116_Text_17032A, 4
+ setvar VAR_ROUTE116_STATE, 2
+ release
+ end
+
+Route116_EventScript_150B6E:: @ 8150B6E
+ lockall
+ applymovement 11, Route116_Movement_1A0843
+ applymovement 255, Route116_Movement_1A083F
+ waitmovement 0
+ msgbox Route116_Text_17032A, 4
+ setvar VAR_ROUTE116_STATE, 2
+ releaseall
+ end
+
+Route116_EventScript_150B8F:: @ 8150B8F
+ lock
+ faceplayer
+ checkitem ITEM_BLACK_GLASSES, 1
+ compare RESULT, 1
+ goto_if_eq Route116_EventScript_150BCA
+ specialvar RESULT, FoundBlackGlasses
+ compare RESULT, 1
+ goto_if_eq Route116_EventScript_150BBB
+ msgbox Route116_Text_1708EE, 4
+ release
+ end
+
+Route116_EventScript_150BBB:: @ 8150BBB
+ msgbox Route116_Text_1709B7, 4
+ closemessage
+ goto Route116_EventScript_150C03
+ end
+
+Route116_EventScript_150BCA:: @ 8150BCA
+ msgbox Route116_Text_1708EE, 4
+ msgbox Route116_Text_170921, 4
+ specialvar RESULT, FoundBlackGlasses
+ compare RESULT, 1
+ goto_if_eq Route116_EventScript_150BF4
+ msgbox Route116_Text_170A03, 4
+ release
+ end
+
+Route116_EventScript_150BF4:: @ 8150BF4
+ msgbox Route116_Text_17094D, 4
+ closemessage
+ goto Route116_EventScript_150C03
+ end
+
+Route116_EventScript_150C03:: @ 8150C03
+ delay 20
+ compare FACING, 2
+ call_if_eq Route116_EventScript_150C37
+ compare FACING, 1
+ call_if_eq Route116_EventScript_150C37
+ compare FACING, 3
+ call_if_eq Route116_EventScript_150C37
+ compare FACING, 4
+ call_if_eq Route116_EventScript_150C42
+ removeobject LAST_TALKED
+ release
+ end
+
+Route116_EventScript_150C37:: @ 8150C37
+ applymovement LAST_TALKED, Route116_Movement_150C4D
+ waitmovement 0
+ return
+
+Route116_EventScript_150C42:: @ 8150C42
+ applymovement LAST_TALKED, Route116_Movement_150C57
+ waitmovement 0
+ return
+
+Route116_Movement_150C4D:: @ 8150C4D
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+Route116_Movement_150C57:: @ 8150C57
+ walk_up
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+Route116_EventScript_150C62:: @ 8150C62
+ trainerbattle 0, OPPONENT_JOEY, 0, Route116_Text_1BD02B, Route116_Text_1BD04C
+ msgbox Route116_Text_1BD078, 6
+ end
+
+Route116_EventScript_150C79:: @ 8150C79
+ trainerbattle 0, OPPONENT_JOSE, 0, Route116_Text_1BD0AF, Route116_Text_1BD0D7
+ msgbox Route116_Text_1BD0F4, 6
+ end
+
+Route116_EventScript_150C90:: @ 8150C90
+ trainerbattle 0, OPPONENT_JERRY_1, 0, Route116_Text_1BD1C0, Route116_Text_1BD21A
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route116_EventScript_150CB7
+ msgbox Route116_Text_1BD248, 6
+ end
+
+Route116_EventScript_150CB7:: @ 8150CB7
+ trainerbattle 5, OPPONENT_JERRY_1, 0, Route116_Text_1BD2A5, Route116_Text_1BD2FE
+ msgbox Route116_Text_1BD31A, 6
+ end
+
+Route116_EventScript_150CCE:: @ 8150CCE
+ trainerbattle 0, OPPONENT_CLARK, 0, Route116_Text_1BCF79, Route116_Text_1BCFBB
+ msgbox Route116_Text_1BCFE3, 6
+ end
+
+Route116_EventScript_150CE5:: @ 8150CE5
+ trainerbattle 0, OPPONENT_JANICE, 0, Route116_Text_1BD131, Route116_Text_1BD165
+ msgbox Route116_Text_1BD180, 6
+ end
+
+Route116_EventScript_150CFC:: @ 8150CFC
+ trainerbattle 0, OPPONENT_KAREN_1, 0, Route116_Text_1BD377, Route116_Text_1BD3AC
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route116_EventScript_150D23
+ msgbox Route116_Text_1BD3C3, 6
+ end
+
+Route116_EventScript_150D23:: @ 8150D23
+ trainerbattle 5, OPPONENT_KAREN_1, 0, Route116_Text_1BD405, Route116_Text_1BD44A
+ msgbox Route116_Text_1BD466, 6
+ end
diff --git a/data/maps/Route116_TunnelersRestHouse/scripts.inc b/data/maps/Route116_TunnelersRestHouse/scripts.inc
new file mode 100644
index 000000000..5ec6ef642
--- /dev/null
+++ b/data/maps/Route116_TunnelersRestHouse/scripts.inc
@@ -0,0 +1,28 @@
+Route116_TunnelersRestHouse_MapScripts:: @ 815C2DE
+ map_script 3, Route116_TunnelersRestHouse_MapScript1_15C2E4
+ .byte 0
+
+Route116_TunnelersRestHouse_MapScript1_15C2E4:: @ 815C2E4
+ setflag FLAG_LANDMARK_TUNNELERS_REST_HOUSE
+ end
+
+Route116_TunnelersRestHouse_EventScript_15C2E8:: @ 815C2E8
+ msgbox Route116_TunnelersRestHouse_Text_192F33, 2
+ end
+
+Route116_TunnelersRestHouse_EventScript_15C2F1:: @ 815C2F1
+ msgbox Route116_TunnelersRestHouse_Text_193049, 2
+ end
+
+Route116_TunnelersRestHouse_EventScript_15C2FA:: @ 815C2FA
+ lock
+ faceplayer
+ goto_if_set FLAG_RUSTURF_TUNNEL_OPENED, Route116_TunnelersRestHouse_EventScript_15C30F
+ msgbox Route116_TunnelersRestHouse_Text_193135, 4
+ release
+ end
+
+Route116_TunnelersRestHouse_EventScript_15C30F:: @ 815C30F
+ msgbox Route116_TunnelersRestHouse_Text_1931C1, 4
+ release
+ end
diff --git a/data/maps/Route117/scripts.inc b/data/maps/Route117/scripts.inc
new file mode 100644
index 000000000..9f42412ab
--- /dev/null
+++ b/data/maps/Route117/scripts.inc
@@ -0,0 +1,121 @@
+Route117_MapScripts:: @ 8150D3A
+ map_script 3, Route117_MapScript1_150D40
+ .byte 0
+
+Route117_MapScript1_150D40:: @ 8150D40
+ call Route117_EventScript_150D46
+ end
+
+Route117_EventScript_150D46:: @ 8150D46
+ goto_if_unset FLAG_PENDING_DAYCARE_EGG, Route117_EventScript_150D56
+ setobjectxyperm 3, 47, 6
+
+Route117_EventScript_150D56:: @ 8150D56
+ return
+
+Route117_EventScript_150D57:: @ 8150D57
+ msgbox Route117_Text_170CA7, 2
+ end
+
+Route117_EventScript_150D60:: @ 8150D60
+ msgbox Route117_Text_170CEB, 2
+ end
+
+Route117_EventScript_150D69:: @ 8150D69
+ msgbox Route117_Text_170C26, 2
+ end
+
+Route117_EventScript_150D72:: @ 8150D72
+ msgbox Route117_Text_170D02, 3
+ end
+
+Route117_EventScript_150D7B:: @ 8150D7B
+ msgbox Route117_Text_170D1E, 3
+ end
+
+Route117_EventScript_150D84:: @ 8150D84
+ msgbox Route117_Text_170D38, 3
+ end
+
+Route117_EventScript_150D8D:: @ 8150D8D
+ trainerbattle 0, OPPONENT_ISAAC_1, 0, Route117_Text_1BD49E, Route117_Text_1BD4D9
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route117_EventScript_150DB4
+ msgbox Route117_Text_1BD4F9, 6
+ end
+
+Route117_EventScript_150DB4:: @ 8150DB4
+ trainerbattle 5, OPPONENT_ISAAC_1, 0, Route117_Text_1BD569, Route117_Text_1BD5AB
+ msgbox Route117_Text_1BD5F2, 6
+ end
+
+Route117_EventScript_150DCB:: @ 8150DCB
+ trainerbattle 0, OPPONENT_LYDIA_1, 0, Route117_Text_1BD634, Route117_Text_1BD67B
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route117_EventScript_150DF2
+ msgbox Route117_Text_1BD69B, 6
+ end
+
+Route117_EventScript_150DF2:: @ 8150DF2
+ trainerbattle 5, OPPONENT_LYDIA_1, 0, Route117_Text_1BD6F2, Route117_Text_1BD733
+ msgbox Route117_Text_1BD74F, 6
+ end
+
+Route117_EventScript_150E09:: @ 8150E09
+ trainerbattle 0, OPPONENT_DYLAN_1, 0, Route117_Text_1BD79A, Route117_Text_1BD7E0
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route117_EventScript_150E30
+ msgbox Route117_Text_1BD7F5, 6
+ end
+
+Route117_EventScript_150E30:: @ 8150E30
+ trainerbattle 5, OPPONENT_DYLAN_1, 0, Route117_Text_1BD83F, Route117_Text_1BD8A2
+ msgbox Route117_Text_1BD8BD, 6
+ end
+
+Route117_EventScript_150E47:: @ 8150E47
+ trainerbattle 0, OPPONENT_MARIA_1, 0, Route117_Text_1BD914, Route117_Text_1BD965
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route117_EventScript_150E6E
+ msgbox Route117_Text_1BD98F, 6
+ end
+
+Route117_EventScript_150E6E:: @ 8150E6E
+ trainerbattle 5, OPPONENT_MARIA_1, 0, Route117_Text_1BD9F1, Route117_Text_1BDA41
+ msgbox Route117_Text_1BDA6B, 6
+ end
+
+Route117_EventScript_150E85:: @ 8150E85
+ trainerbattle 0, OPPONENT_DEREK, 0, Route117_Text_1BDAA7, Route117_Text_1BDAFC
+ msgbox Route117_Text_1BDB24, 6
+ end
+
+Route117_EventScript_150E9C:: @ 8150E9C
+ trainerbattle 4, OPPONENT_ANNA_AND_MEG_1, 0, Route117_Text_1BDBC3, Route117_Text_1BDC07, Route117_Text_1BDC96
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route117_EventScript_150EC7
+ msgbox Route117_Text_1BDC44, 6
+ end
+
+Route117_EventScript_150EC7:: @ 8150EC7
+ trainerbattle 7, OPPONENT_ANNA_AND_MEG_1, 0, Route117_Text_1BDDEF, Route117_Text_1BDE2F, Route117_Text_1BDEA7
+ msgbox Route117_Text_1BDE55, 6
+ end
+
+Route117_EventScript_150EE2:: @ 8150EE2
+ trainerbattle 4, OPPONENT_ANNA_AND_MEG_1, 0, Route117_Text_1BDCD2, Route117_Text_1BDD1E, Route117_Text_1BDD8B
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route117_EventScript_150F0D
+ msgbox Route117_Text_1BDD4E, 6
+ end
+
+Route117_EventScript_150F0D:: @ 8150F0D
+ trainerbattle 7, OPPONENT_ANNA_AND_MEG_1, 0, Route117_Text_1BDEE3, Route117_Text_1BDF26, Route117_Text_1BDF90
+ msgbox Route117_Text_1BDF37, 6
+ end
diff --git a/data/maps/Route117_PokemonDayCare/scripts.inc b/data/maps/Route117_PokemonDayCare/scripts.inc
new file mode 100644
index 000000000..9ad740b4e
--- /dev/null
+++ b/data/maps/Route117_PokemonDayCare/scripts.inc
@@ -0,0 +1,7 @@
+Route117_PokemonDayCare_MapScripts:: @ 815C319
+ map_script 3, Route117_PokemonDayCare_MapScript1_15C31F
+ .byte 0
+
+Route117_PokemonDayCare_MapScript1_15C31F:: @ 815C31F
+ setflag FLAG_LANDMARK_POKEMON_DAYCARE
+ end
diff --git a/data/maps/Route118/scripts.inc b/data/maps/Route118/scripts.inc
new file mode 100644
index 000000000..b938d0cc2
--- /dev/null
+++ b/data/maps/Route118/scripts.inc
@@ -0,0 +1,205 @@
+Route118_MapScripts:: @ 8150F28
+ map_script 3, Route118_MapScript1_150F2E
+ .byte 0
+
+Route118_MapScript1_150F2E:: @ 8150F2E
+ call Route118_EventScript_1AE313
+ end
+
+Route118_EventScript_150F34:: @ 8150F34
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_GOOD_ROD, Route118_EventScript_150F89
+ msgbox Route118_Text_170F12, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route118_EventScript_150F5E
+ compare RESULT, NO
+ goto_if_eq Route118_EventScript_150F7F
+ end
+
+Route118_EventScript_150F5E:: @ 8150F5E
+ msgbox Route118_Text_170F46, 4
+ giveitem_std ITEM_GOOD_ROD
+ setflag FLAG_RECEIVED_GOOD_ROD
+ msgbox Route118_Text_170F7E, 4
+ release
+ end
+
+Route118_EventScript_150F7F:: @ 8150F7F
+ msgbox Route118_Text_170FB0, 4
+ release
+ end
+
+Route118_EventScript_150F89:: @ 8150F89
+ msgbox Route118_Text_170FC8, 4
+ release
+ end
+
+Route118_EventScript_150F93:: @ 8150F93
+ msgbox Route118_Text_170FFE, 2
+ end
+
+Route118_EventScript_150F9C:: @ 8150F9C
+ msgbox Route118_Text_17108B, 3
+ end
+
+Route118_EventScript_150FA5:: @ 8150FA5
+ msgbox Route118_Text_1710A5, 3
+ end
+
+Route118_EventScript_150FAE:: @ 8150FAE
+ lockall
+ setvar VAR_SPECIAL_8, 0
+ applymovement 255, Route118_Movement_1A0841
+ waitmovement 0
+ applymovement 19, Route118_Movement_151069
+ waitmovement 0
+ goto Route118_EventScript_151004
+ end
+
+Route118_EventScript_150FCE:: @ 8150FCE
+ lockall
+ setvar VAR_SPECIAL_8, 1
+ applymovement 255, Route118_Movement_1A0841
+ waitmovement 0
+ goto Route118_EventScript_151004
+ end
+
+Route118_EventScript_150FE4:: @ 8150FE4
+ lockall
+ setvar VAR_SPECIAL_8, 2
+ applymovement 255, Route118_Movement_1A0841
+ waitmovement 0
+ applymovement 19, Route118_Movement_15106B
+ waitmovement 0
+ goto Route118_EventScript_151004
+ end
+
+Route118_EventScript_151004:: @ 8151004
+ playse SE_DANSA
+ applymovement 19, Route118_Movement_15106D
+ waitmovement 0
+ delay 30
+ msgbox Route118_Text_170D66, 4
+ closemessage
+ compare VAR_SPECIAL_8, 0
+ call_if_eq Route118_EventScript_151048
+ compare VAR_SPECIAL_8, 1
+ call_if_eq Route118_EventScript_151053
+ compare VAR_SPECIAL_8, 2
+ call_if_eq Route118_EventScript_15105E
+ setvar VAR_ROUTE118_STATE, 1
+ removeobject 19
+ releaseall
+ end
+
+Route118_EventScript_151048:: @ 8151048
+ applymovement 19, Route118_Movement_151071
+ waitmovement 0
+ return
+
+Route118_EventScript_151053:: @ 8151053
+ applymovement 19, Route118_Movement_15107C
+ waitmovement 0
+ return
+
+Route118_EventScript_15105E:: @ 815105E
+ applymovement 19, Route118_Movement_151086
+ waitmovement 0
+ return
+
+Route118_Movement_151069:: @ 8151069
+ walk_left
+ end_movement
+
+Route118_Movement_15106B:: @ 815106B
+ walk_right
+ end_movement
+
+Route118_Movement_15106D:: @ 815106D
+ jump_2_down
+ delay_16
+ walk_down
+ end_movement
+
+Route118_Movement_151071:: @ 8151071
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+Route118_Movement_15107C:: @ 815107C
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+Route118_Movement_151086:: @ 8151086
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+Route118_EventScript_15108F:: @ 815108F
+ trainerbattle 0, OPPONENT_ROSE_1, 0, Route118_Text_1BDFF4, Route118_Text_1BE03C
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route118_EventScript_1510B6
+ msgbox Route118_Text_1BE05E, 6
+ end
+
+Route118_EventScript_1510B6:: @ 81510B6
+ trainerbattle 5, OPPONENT_ROSE_1, 0, Route118_Text_1BE0AB, Route118_Text_1BE0D3
+ msgbox Route118_Text_1BE104, 6
+ end
+
+Route118_EventScript_1510CD:: @ 81510CD
+ trainerbattle 0, OPPONENT_BARNY, 0, Route118_Text_1BE24A, Route118_Text_1BE291
+ msgbox Route118_Text_1BE2BE, 6
+ end
+
+Route118_EventScript_1510E4:: @ 81510E4
+ trainerbattle 0, OPPONENT_WADE, 0, Route118_Text_1BE318, Route118_Text_1BE385
+ msgbox Route118_Text_1BE39C, 6
+ end
+
+Route118_EventScript_1510FB:: @ 81510FB
+ trainerbattle 0, OPPONENT_DALTON_1, 0, Route118_Text_1BE3E8, Route118_Text_1BE406
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route118_EventScript_151122
+ msgbox Route118_Text_1BE413, 6
+ end
+
+Route118_EventScript_151122:: @ 8151122
+ trainerbattle 5, OPPONENT_DALTON_1, 0, Route118_Text_1BE489, Route118_Text_1BE4CC
+ msgbox Route118_Text_1BE4D9, 6
+ end
+
+Route118_EventScript_151139:: @ 8151139
+ trainerbattle 0, OPPONENT_PERRY, 0, Route118_Text_1BE148, Route118_Text_1BE188
+ msgbox Route118_Text_1BE19D, 6
+ end
+
+Route118_EventScript_151150:: @ 8151150
+ trainerbattle 0, OPPONENT_CHESTER, 0, Route118_Text_1BE1D7, Route118_Text_1BE1F5
+ msgbox Route118_Text_1BE20D, 6
+ end
diff --git a/data/maps/Route119/scripts.inc b/data/maps/Route119/scripts.inc
new file mode 100644
index 000000000..b1f2d33bf
--- /dev/null
+++ b/data/maps/Route119/scripts.inc
@@ -0,0 +1,382 @@
+Route119_MapScripts:: @ 8151167
+ map_script 5, Route119_MapScript1_151172
+ map_script 3, Route119_MapScript1_15119B
+ .byte 0
+
+Route119_MapScript1_151172:: @ 8151172
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, Route119_EventScript_15117C
+ end
+
+Route119_EventScript_15117C:: @ 815117C
+ compare VAR_SPECIAL_4, 6
+ call_if_eq Route119_EventScript_151193
+ compare VAR_SPECIAL_4, 7
+ call_if_eq Route119_EventScript_151197
+ return
+
+Route119_EventScript_151193:: @ 8151193
+ removeobject 35
+ return
+
+Route119_EventScript_151197:: @ 8151197
+ removeobject 36
+ return
+
+Route119_MapScript1_15119B:: @ 815119B
+ call Route119_EventScript_1A014E
+ call Route119_EventScript_1A0172
+ call Route119_EventScript_1A0196
+ compare VAR_WEATHER_INSTITUTE_STATE, 1
+ call_if_eq Route119_EventScript_1511B9
+ special SetRoute119Weather
+ end
+
+Route119_EventScript_1511B9:: @ 81511B9
+ setflag FLAG_HIDE_WEATHER_INSTITUTE_WORKERS_2F
+ clearflag FLAG_HIDE_WEATHER_INSTITUTE_WORKERS_1F
+ setvar VAR_WEATHER_INSTITUTE_STATE, 2
+ return
+
+Route119_EventScript_1511C5:: @ 81511C5
+ setvar VAR_TEMP_1, 1
+ goto Route119_EventScript_1511DB
+ end
+
+Route119_EventScript_1511D0:: @ 81511D0
+ setvar VAR_TEMP_1, 2
+ goto Route119_EventScript_1511DB
+ end
+
+Route119_EventScript_1511DB:: @ 81511DB
+ lockall
+ addobject 25
+ checkplayergender
+ compare RESULT, 0
+ call_if_eq Route119_EventScript_151254
+ compare RESULT, 1
+ call_if_eq Route119_EventScript_151259
+ delay 65
+ compare VAR_TEMP_1, 1
+ call_if_eq Route119_EventScript_1513A6
+ compare VAR_TEMP_1, 2
+ call_if_eq Route119_EventScript_1513B1
+ applymovement 255, Route119_Movement_1A0845
+ waitmovement 0
+ delay 30
+ compare VAR_TEMP_1, 1
+ call_if_eq Route119_EventScript_1513D2
+ compare VAR_TEMP_1, 2
+ call_if_eq Route119_EventScript_1513E1
+ removeobject 25
+ addobject 16
+ delay 30
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq Route119_EventScript_15125E
+ compare RESULT, 1
+ goto_if_eq Route119_EventScript_1512D8
+ releaseall
+ end
+
+Route119_EventScript_151254:: @ 8151254
+ playbgm BGM_GIRL_SUP, TRUE
+ return
+
+Route119_EventScript_151259:: @ 8151259
+ playbgm BGM_BOY_SUP, TRUE
+ return
+
+Route119_EventScript_15125E:: @ 815125E
+ msgbox Route119_Text_1710BB, 4
+ switch VAR_STARTER_MON
+ case 0, Route119_EventScript_15128D
+ case 1, Route119_EventScript_15129D
+ case 2, Route119_EventScript_1512AD
+ end
+
+Route119_EventScript_15128D:: @ 815128D
+ trainerbattle 3, OPPONENT_MAY_6, 0, Route119_Text_171156
+ goto Route119_EventScript_1512BD
+ end
+
+Route119_EventScript_15129D:: @ 815129D
+ trainerbattle 3, OPPONENT_MAY_9, 0, Route119_Text_171156
+ goto Route119_EventScript_1512BD
+ end
+
+Route119_EventScript_1512AD:: @ 81512AD
+ trainerbattle 3, OPPONENT_MAY_3, 0, Route119_Text_171156
+ goto Route119_EventScript_1512BD
+ end
+
+Route119_EventScript_1512BD:: @ 81512BD
+ msgbox Route119_Text_1711B1, 4
+ call Route119_EventScript_151352
+ msgbox Route119_Text_171214, 4
+ goto Route119_EventScript_151362
+ end
+
+Route119_EventScript_1512D8:: @ 81512D8
+ msgbox Route119_Text_171358, 4
+ switch VAR_STARTER_MON
+ case 0, Route119_EventScript_151307
+ case 1, Route119_EventScript_151317
+ case 2, Route119_EventScript_151327
+ end
+
+Route119_EventScript_151307:: @ 8151307
+ trainerbattle 3, OPPONENT_BRENDAN_6, 0, Route119_Text_1713E2
+ goto Route119_EventScript_151337
+ end
+
+Route119_EventScript_151317:: @ 8151317
+ trainerbattle 3, OPPONENT_BRENDAN_9, 0, Route119_Text_1713E2
+ goto Route119_EventScript_151337
+ end
+
+Route119_EventScript_151327:: @ 8151327
+ trainerbattle 3, OPPONENT_BRENDAN_3, 0, Route119_Text_1713E2
+ goto Route119_EventScript_151337
+ end
+
+Route119_EventScript_151337:: @ 8151337
+ msgbox Route119_Text_17140B, 4
+ call Route119_EventScript_151352
+ msgbox Route119_Text_171475, 4
+ goto Route119_EventScript_151362
+ end
+
+Route119_EventScript_151352:: @ 8151352
+ giveitem_std ITEM_HM02_FLY
+ setflag FLAG_RECEIVED_HM02
+ return
+
+Route119_EventScript_151362:: @ 8151362
+ closemessage
+ compare VAR_TEMP_1, 1
+ call_if_eq Route119_EventScript_1513D2
+ compare VAR_TEMP_1, 2
+ call_if_eq Route119_EventScript_1513E1
+ removeobject 16
+ addobject 25
+ delay 30
+ compare VAR_TEMP_1, 1
+ call_if_eq Route119_EventScript_1513BC
+ compare VAR_TEMP_1, 2
+ call_if_eq Route119_EventScript_1513C7
+ removeobject 25
+ setvar VAR_ROUTE119_STATE, 1
+ savebgm 0
+ fadedefaultbgm
+ releaseall
+ end
+
+Route119_EventScript_1513A6:: @ 81513A6
+ applymovement 25, Route119_Movement_1513F0
+ waitmovement 0
+ return
+
+Route119_EventScript_1513B1:: @ 81513B1
+ applymovement 25, Route119_Movement_1513FA
+ waitmovement 0
+ return
+
+Route119_EventScript_1513BC:: @ 81513BC
+ applymovement 25, Route119_Movement_151405
+ waitmovement 0
+ return
+
+Route119_EventScript_1513C7:: @ 81513C7
+ applymovement 25, Route119_Movement_15140F
+ waitmovement 0
+ return
+
+Route119_EventScript_1513D2:: @ 81513D2
+ setobjectxyperm 16, 25, 32
+ setobjectxyperm 25, 25, 32
+ return
+
+Route119_EventScript_1513E1:: @ 81513E1
+ setobjectxyperm 16, 26, 32
+ setobjectxyperm 25, 26, 32
+ return
+
+Route119_Movement_1513F0:: @ 81513F0
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ end_movement
+
+Route119_Movement_1513FA:: @ 81513FA
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ end_movement
+
+Route119_Movement_151405:: @ 8151405
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+Route119_Movement_15140F:: @ 815140F
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+Route119_EventScript_15141A:: @ 815141A
+ msgbox Route119_Text_171698, 2
+ end
+
+Route119_EventScript_151423:: @ 8151423
+ msgbox Route119_Text_171749, 3
+ end
+
+Route119_EventScript_15142C:: @ 815142C
+ msgbox Route119_Text_171762, 3
+ end
+
+Route119_EventScript_151435:: @ 8151435
+ trainerbattle 0, OPPONENT_BRENT, 0, Route119_Text_1BE521, Route119_Text_1BE54F
+ msgbox Route119_Text_1BE561, 6
+ end
+
+Route119_EventScript_15144C:: @ 815144C
+ trainerbattle 0, OPPONENT_DONALD, 0, Route119_Text_1BE5A4, Route119_Text_1BE5DF
+ msgbox Route119_Text_1BE5F8, 6
+ end
+
+Route119_EventScript_151463:: @ 8151463
+ trainerbattle 0, OPPONENT_TAYLOR, 0, Route119_Text_1BE632, Route119_Text_1BE67B
+ msgbox Route119_Text_1BE695, 6
+ end
+
+Route119_EventScript_15147A:: @ 815147A
+ trainerbattle 0, OPPONENT_DOUG, 0, Route119_Text_1BE6EA, Route119_Text_1BE729
+ msgbox Route119_Text_1BE748, 6
+ end
+
+Route119_EventScript_151491:: @ 8151491
+ trainerbattle 0, OPPONENT_GREG, 0, Route119_Text_1BE784, Route119_Text_1BE7D3
+ msgbox Route119_Text_1BE7E9, 6
+ end
+
+Route119_EventScript_1514A8:: @ 81514A8
+ trainerbattle 0, OPPONENT_KENT, 0, Route119_Text_1BE82F, Route119_Text_1BE88D
+ msgbox Route119_Text_1BE89A, 6
+ end
+
+Route119_EventScript_1514BF:: @ 81514BF
+ trainerbattle 0, OPPONENT_JACKSON_1, 0, Route119_Text_1BE8BB, Route119_Text_1BE90E
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route119_EventScript_1514E6
+ msgbox Route119_Text_1BE937, 6
+ end
+
+Route119_EventScript_1514E6:: @ 81514E6
+ trainerbattle 5, OPPONENT_JACKSON_1, 0, Route119_Text_1BE98D, Route119_Text_1BE9D0
+ msgbox Route119_Text_1BE9E8, 6
+ end
+
+Route119_EventScript_1514FD:: @ 81514FD
+ trainerbattle 0, OPPONENT_CATHERINE_1, 0, Route119_Text_1BEA3A, Route119_Text_1BEA88
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route119_EventScript_151524
+ msgbox Route119_Text_1BEAB3, 6
+ end
+
+Route119_EventScript_151524:: @ 8151524
+ trainerbattle 5, OPPONENT_CATHERINE_1, 0, Route119_Text_1BEB22, Route119_Text_1BEB49
+ msgbox Route119_Text_1BEB68, 6
+ end
+
+Route119_EventScript_15153B:: @ 815153B
+ trainerbattle 0, OPPONENT_HUGH, 0, Route119_Text_1BEBC0, Route119_Text_1BEC1C
+ msgbox Route119_Text_1BEC2A, 6
+ end
+
+Route119_EventScript_151552:: @ 8151552
+ trainerbattle 0, OPPONENT_PHIL, 0, Route119_Text_1BEC5E, Route119_Text_1BEC9A
+ msgbox Route119_Text_1BECB1, 6
+ end
+
+Route119_EventScript_151569:: @ 8151569
+ trainerbattle 0, OPPONENT_YASU, 0, Route119_Text_1BECF1, Route119_Text_1BED4C
+ msgbox Route119_Text_1BED5C, 6
+ end
+
+Route119_EventScript_151580:: @ 8151580
+ trainerbattle 0, OPPONENT_TAKASHI, 0, Route119_Text_1BEDB6, Route119_Text_1BEDEC
+ msgbox Route119_Text_1BEE06, 6
+ end
+
+Route119_EventScript_151597:: @ 8151597
+ trainerbattle 0, OPPONENT_HIDEO_2, 0, Route119_Text_1BEE2D, Route119_Text_1BEE4B
+ msgbox Route119_Text_1BEE66, 6
+ end
+
+Route119_EventScript_1515AE:: @ 81515AE
+ trainerbattle 0, OPPONENT_EUGENE, 0, Route119_Text_1BEED0, Route119_Text_1BEF37
+ msgbox Route119_Text_1BEF67, 6
+ end
+
+Route119_EventScript_1515C5:: @ 81515C5
+ lock
+ faceplayer
+ msgbox Route119_Text_171520, 4
+ closemessage
+ applymovement LAST_TALKED, Route119_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+Route119_EventScript_1515DC:: @ 81515DC
+ lock
+ faceplayer
+ msgbox Route119_Text_17157C, 4
+ closemessage
+ applymovement LAST_TALKED, Route119_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+Route119_EventScript_1515F3:: @ 81515F3
+ msgbox Route119_Text_1715D7, 2
+ end
+
+Route119_EventScript_1515FC:: @ 81515FC
+ msgbox Route119_Text_1716F4, 2
+ end
+
+Route119_EventScript_151605:: @ 8151605
+ msgbox Route119_Text_171774, 3
+ end
diff --git a/data/maps/Route119_House/scripts.inc b/data/maps/Route119_House/scripts.inc
new file mode 100644
index 000000000..76763c68e
--- /dev/null
+++ b/data/maps/Route119_House/scripts.inc
@@ -0,0 +1,16 @@
+Route119_House_MapScripts:: @ 8163DDD
+ .byte 0
+
+Route119_House_EventScript_163DDE:: @ 8163DDE
+ msgbox Route119_House_Text_19F371, 2
+ end
+
+Route119_House_EventScript_163DE7:: @ 8163DE7
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_WINGULL, 0
+ msgbox Route119_House_Text_19F406, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/Route119_WeatherInstitute_1F/scripts.inc b/data/maps/Route119_WeatherInstitute_1F/scripts.inc
new file mode 100644
index 000000000..e5ca6550b
--- /dev/null
+++ b/data/maps/Route119_WeatherInstitute_1F/scripts.inc
@@ -0,0 +1,55 @@
+Route119_WeatherInstitute_1F_MapScripts:: @ 8163C2A
+ map_script 3, Route119_WeatherInstitute_1F_MapScript1_163C30
+ .byte 0
+
+Route119_WeatherInstitute_1F_MapScript1_163C30:: @ 8163C30
+ call Route119_WeatherInstitute_1F_EventScript_1A0196
+ compare VAR_WEATHER_INSTITUTE_STATE, 0
+ call_if_eq Route119_WeatherInstitute_1F_EventScript_163C41
+ end
+
+Route119_WeatherInstitute_1F_EventScript_163C41:: @ 8163C41
+ setobjectxyperm 5, 0, 5
+ setobjectmovementtype 5, 10
+ return
+
+Route119_WeatherInstitute_1F_EventScript_163C4D:: @ 8163C4D
+ lock
+ faceplayer
+ special GetPlayerBigGuyGirlString
+ compare VAR_WEATHER_INSTITUTE_STATE, 0
+ goto_if_eq Route119_WeatherInstitute_1F_EventScript_163C67
+ msgbox Route119_WeatherInstitute_1F_Text_19ED22, 4
+ release
+ end
+
+Route119_WeatherInstitute_1F_EventScript_163C67:: @ 8163C67
+ msgbox Route119_WeatherInstitute_1F_Text_19ECF4, 4
+ release
+ end
+
+Route119_WeatherInstitute_1F_EventScript_163C71:: @ 8163C71
+ msgbox Route119_WeatherInstitute_1F_Text_19ED6B, 2
+ end
+
+Route119_WeatherInstitute_1F_EventScript_163C7A:: @ 8163C7A
+ msgbox Route119_WeatherInstitute_1F_Text_19EE25, 2
+ end
+
+Route119_WeatherInstitute_1F_EventScript_163C83:: @ 8163C83
+ lockall
+ msgbox Route119_WeatherInstitute_1F_Text_19EE8B, 4
+ closemessage
+ call Route119_WeatherInstitute_1F_EventScript_1A02CA
+ releaseall
+ end
+
+Route119_WeatherInstitute_1F_EventScript_163C94:: @ 8163C94
+ trainerbattle 0, OPPONENT_WEATHER_INSTITUTE_GRUNT_1, 0, Route119_WeatherInstitute_1F_Text_19EB8A, Route119_WeatherInstitute_1F_Text_19EBEE
+ msgbox Route119_WeatherInstitute_1F_Text_19EC0E, 6
+ end
+
+Route119_WeatherInstitute_1F_EventScript_163CAB:: @ 8163CAB
+ trainerbattle 0, OPPONENT_WEATHER_INSTITUTE_GRUNT_2, 0, Route119_WeatherInstitute_1F_Text_19EC6B, Route119_WeatherInstitute_1F_Text_19EC89
+ msgbox Route119_WeatherInstitute_1F_Text_19EC97, 6
+ end
diff --git a/data/maps/Route119_WeatherInstitute_2F/scripts.inc b/data/maps/Route119_WeatherInstitute_2F/scripts.inc
new file mode 100644
index 000000000..32c264acc
--- /dev/null
+++ b/data/maps/Route119_WeatherInstitute_2F/scripts.inc
@@ -0,0 +1,92 @@
+Route119_WeatherInstitute_2F_MapScripts:: @ 8163CC2
+ map_script 3, Route119_WeatherInstitute_2F_MapScript1_163CC8
+ .byte 0
+
+Route119_WeatherInstitute_2F_MapScript1_163CC8:: @ 8163CC8
+ call Route119_WeatherInstitute_2F_EventScript_1A0196
+ compare VAR_WEATHER_INSTITUTE_STATE, 0
+ call_if_eq Route119_WeatherInstitute_2F_EventScript_163CE4
+ compare VAR_WEATHER_INSTITUTE_STATE, 1
+ call_if_eq Route119_WeatherInstitute_2F_EventScript_163CF0
+ end
+
+Route119_WeatherInstitute_2F_EventScript_163CE4:: @ 8163CE4
+ setobjectxyperm 5, 1, 6
+ setobjectmovementtype 5, 10
+ return
+
+Route119_WeatherInstitute_2F_EventScript_163CF0:: @ 8163CF0
+ setobjectxyperm 5, 4, 6
+ setobjectmovementtype 5, 10
+ return
+
+Route119_WeatherInstitute_2F_EventScript_163CFC:: @ 8163CFC
+ trainerbattle 0, OPPONENT_WEATHER_INSTITUTE_GRUNT_3, 0, Route119_WeatherInstitute_2F_Text_19EEAF, Route119_WeatherInstitute_2F_Text_19EF1B
+ msgbox Route119_WeatherInstitute_2F_Text_19EF3E, 6
+ end
+
+Route119_WeatherInstitute_2F_EventScript_163D13:: @ 8163D13
+ trainerbattle 0, OPPONENT_WEATHER_INSTITUTE_GRUNT_4, 0, Route119_WeatherInstitute_2F_Text_19EFA3, Route119_WeatherInstitute_2F_Text_19EFDD
+ msgbox Route119_WeatherInstitute_2F_Text_19EFE9, 6
+ end
+
+Route119_WeatherInstitute_2F_EventScript_163D2A:: @ 8163D2A
+ trainerbattle 2, OPPONENT_WEATHER_INSTITUTE_GRUNT_5, 0, Route119_WeatherInstitute_2F_Text_19F042, Route119_WeatherInstitute_2F_Text_19F0F4, Route119_WeatherInstitute_2F_EventScript_163D45
+ msgbox Route119_WeatherInstitute_2F_Text_19F11B, 6
+ end
+
+Route119_WeatherInstitute_2F_EventScript_163D45:: @ 8163D45
+ msgbox Route119_WeatherInstitute_2F_Text_19F11B, 4
+ closemessage
+ setvar VAR_WEATHER_INSTITUTE_STATE, 1
+ clearflag FLAG_HIDE_WEATHER_INSTITUTE_WORKERS_2F
+ fadedefaultbgm
+ fadescreen 1
+ setflag FLAG_HIDE_EVIL_TEAM_WEATHER_INSTITUTE
+ removeobject 1
+ removeobject 2
+ removeobject 3
+ fadescreen 0
+ applymovement 5, Route119_WeatherInstitute_2F_Movement_163DC8
+ waitmovement 0
+ moveobjectoffscreen 5
+ goto Route119_WeatherInstitute_2F_EventScript_163D7A
+ end
+
+Route119_WeatherInstitute_2F_EventScript_163D7A:: @ 8163D7A
+ msgbox Route119_WeatherInstitute_2F_Text_19F1CF, 4
+ getpartysize
+ compare RESULT, 6
+ goto_if_eq Route119_WeatherInstitute_2F_EventScript_163DB4
+ playfanfare BGM_FANFA4
+ message Route119_WeatherInstitute_2F_Text_19F267
+ waitfanfare
+ waitmessage
+ givemon SPECIES_CASTFORM, 25, ITEM_MYSTIC_WATER, 0x0, 0x0, 0
+ setflag FLAG_RECEIVED_CASTFORM
+ msgbox Route119_WeatherInstitute_2F_Text_19F27D, 4
+ release
+ end
+
+Route119_WeatherInstitute_2F_EventScript_163DB4:: @ 8163DB4
+ msgbox Route119_WeatherInstitute_2F_Text_19F231, 4
+ release
+ end
+
+Route119_WeatherInstitute_2F_EventScript_163DBE:: @ 8163DBE
+ msgbox Route119_WeatherInstitute_2F_Text_19F2FE, 4
+ release
+ end
+
+Route119_WeatherInstitute_2F_Movement_163DC8:: @ 8163DC8
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+Route119_WeatherInstitute_2F_EventScript_163DCC:: @ 8163DCC
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_CASTFORM, Route119_WeatherInstitute_2F_EventScript_163DBE
+ goto Route119_WeatherInstitute_2F_EventScript_163D7A
+ end
diff --git a/data/maps/Route120/scripts.inc b/data/maps/Route120/scripts.inc
new file mode 100644
index 000000000..6f561391f
--- /dev/null
+++ b/data/maps/Route120/scripts.inc
@@ -0,0 +1,351 @@
+Route120_MapScripts:: @ 815160E
+ map_script 5, Route120_MapScript1_15161E
+ map_script 3, Route120_MapScript1_1516DF
+ map_script 1, Route120_MapScript1_151686
+ .byte 0
+
+Route120_MapScript1_15161E:: @ 815161E
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, Route120_EventScript_151628
+ end
+
+Route120_EventScript_151628:: @ 8151628
+ compare VAR_SPECIAL_4, 0
+ call_if_eq Route120_EventScript_15166B
+ compare VAR_SPECIAL_4, 1
+ call_if_eq Route120_EventScript_151672
+ compare VAR_SPECIAL_4, 2
+ call_if_eq Route120_EventScript_151676
+ compare VAR_SPECIAL_4, 3
+ call_if_eq Route120_EventScript_15167A
+ compare VAR_SPECIAL_4, 4
+ call_if_eq Route120_EventScript_15167E
+ compare VAR_SPECIAL_4, 5
+ call_if_eq Route120_EventScript_151682
+ return
+
+Route120_EventScript_15166B:: @ 815166B
+ removeobject 30
+ removeobject 36
+ return
+
+Route120_EventScript_151672:: @ 8151672
+ removeobject 37
+ return
+
+Route120_EventScript_151676:: @ 8151676
+ removeobject 38
+ return
+
+Route120_EventScript_15167A:: @ 815167A
+ removeobject 39
+ return
+
+Route120_EventScript_15167E:: @ 815167E
+ removeobject 41
+ return
+
+Route120_EventScript_151682:: @ 8151682
+ removeobject 40
+ return
+
+Route120_MapScript1_151686:: @ 8151686
+ call_if_unset FLAG_REGI_DOORS_OPENED, Route120_EventScript_1516A2
+ call_if_set FLAG_RECEIVED_DEVON_SCOPE, Route120_EventScript_1516B5
+ call_if_unset FLAG_RECEIVED_DEVON_SCOPE, Route120_EventScript_1516DA
+ end
+
+Route120_EventScript_1516A2:: @ 81516A2
+ setmetatile 7, 54, 124, 1
+ setmetatile 7, 55, 145, 1
+ return
+
+Route120_EventScript_1516B5:: @ 81516B5
+ setmetatile 13, 15, 663, 0
+ setmetatile 12, 16, 671, 0
+ setmetatile 12, 17, 161, 0
+ setmetatile 13, 17, 161, 0
+ return
+
+Route120_EventScript_1516DA:: @ 81516DA
+ setobjectmovementtype 36, 10
+ return
+
+Route120_MapScript1_1516DF:: @ 81516DF
+ call Route120_EventScript_1AE313
+ call Route120_EventScript_1516EA
+ end
+
+Route120_EventScript_1516EA:: @ 81516EA
+ getplayerxy VAR_TEMP_0, VAR_TEMP_1
+ compare VAR_TEMP_1, 14
+ goto_if_le Route120_EventScript_151715
+ compare VAR_TEMP_1, 60
+ goto_if_le Route120_EventScript_151719
+ compare VAR_TEMP_1, 61
+ goto_if_ge Route120_EventScript_151711
+ return
+
+Route120_EventScript_151711:: @ 8151711
+ setweather WEATHER_CLOUDS
+ return
+
+Route120_EventScript_151715:: @ 8151715
+ setweather WEATHER_SUNNY
+ return
+
+Route120_EventScript_151719:: @ 8151719
+ compare VAR_TEMP_0, 7
+ goto_if_le Route120_EventScript_151735
+ compare VAR_TEMP_0, 19
+ goto_if_le Route120_EventScript_151715
+ goto Route120_EventScript_151735
+ end
+
+Route120_EventScript_151735:: @ 8151735
+ setweather WEATHER_RAIN_LIGHT
+ return
+
+Route120_EventScript_151739:: @ 8151739
+ lock
+ faceplayer
+ dodailyevents
+ goto_if_set FLAG_DAILY_RECEIVED_BERRY_ROUTE120, Route120_EventScript_151837
+ msgbox Route120_Text_1C58F1, MSGBOX_YESNO
+ compare RESULT, YES
+ call_if_eq Route120_EventScript_151841
+ compare RESULT, NO
+ call_if_eq Route120_EventScript_15184A
+ specialvar RESULT, GetPlayerTrainerIdOnesDigit
+ switch RESULT
+ case 0, Route120_EventScript_1517DC
+ case 5, Route120_EventScript_1517DC
+ case 1, Route120_EventScript_1517E7
+ case 6, Route120_EventScript_1517E7
+ case 2, Route120_EventScript_1517F2
+ case 7, Route120_EventScript_1517F2
+ case 3, Route120_EventScript_1517FD
+ case 8, Route120_EventScript_1517FD
+ case 4, Route120_EventScript_151808
+ case 9, Route120_EventScript_151808
+ end
+
+Route120_EventScript_1517DC:: @ 81517DC
+ setvar VAR_SPECIAL_4, ITEM_FIGY_BERRY
+ goto Route120_EventScript_151813
+ end
+
+Route120_EventScript_1517E7:: @ 81517E7
+ setvar VAR_SPECIAL_4, ITEM_WIKI_BERRY
+ goto Route120_EventScript_151813
+ end
+
+Route120_EventScript_1517F2:: @ 81517F2
+ setvar VAR_SPECIAL_4, ITEM_MAGO_BERRY
+ goto Route120_EventScript_151813
+ end
+
+Route120_EventScript_1517FD:: @ 81517FD
+ setvar VAR_SPECIAL_4, ITEM_AGUAV_BERRY
+ goto Route120_EventScript_151813
+ end
+
+Route120_EventScript_151808:: @ 8151808
+ setvar VAR_SPECIAL_4, ITEM_IAPAPA_BERRY
+ goto Route120_EventScript_151813
+ end
+
+Route120_EventScript_151813:: @ 8151813
+ giveitem_std VAR_SPECIAL_4
+ compare RESULT, 0
+ goto_if_eq Route120_EventScript_1A029B
+ setflag FLAG_DAILY_RECEIVED_BERRY_ROUTE120
+ msgbox Route120_Text_1C5A0B, 4
+ release
+ end
+
+Route120_EventScript_151837:: @ 8151837
+ msgbox Route120_Text_1C5A4D, 4
+ release
+ end
+
+Route120_EventScript_151841:: @ 8151841
+ msgbox Route120_Text_1C5979, 4
+ return
+
+Route120_EventScript_15184A:: @ 815184A
+ msgbox Route120_Text_1C59B5, 4
+ return
+
+Route120_EventScript_151853:: @ 8151853
+ lock
+ faceplayer
+ goto_if_set FLAG_NOT_READY_FOR_BATTLE_ROUTE120, Route120_EventScript_151884
+ msgbox Route120_Text_171827, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route120_EventScript_151877
+ goto Route120_EventScript_15189D
+ end
+
+Route120_EventScript_151877:: @ 8151877
+ msgbox Route120_Text_17193D, 4
+ setflag FLAG_NOT_READY_FOR_BATTLE_ROUTE120
+ release
+ end
+
+Route120_EventScript_151884:: @ 8151884
+ msgbox Route120_Text_17196F, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route120_EventScript_151877
+ goto Route120_EventScript_15189D
+ end
+
+Route120_EventScript_15189D:: @ 815189D
+ msgbox Route120_Text_1719A0, 4
+ closemessage
+ compare FACING, 2
+ call_if_eq Route120_EventScript_15197F
+ compare FACING, 3
+ call_if_eq Route120_EventScript_15198A
+ applymovement 31, Route120_Movement_1A083F
+ waitmovement 0
+ delay 20
+ msgbox Route120_Text_1719D4, 4
+ closemessage
+ applymovement 30, Route120_Movement_1A0843
+ waitmovement 0
+ applymovement 30, Route120_Movement_1A0662
+ waitmovement 0
+ waitse
+ playmoncry SPECIES_KECLEON, 2
+ delay 40
+ waitmoncry
+ setwildbattle SPECIES_KECLEON, 30, ITEM_NONE
+ setvar VAR_SPECIAL_4, 0
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ dowildbattle
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ goto Route120_EventScript_151908
+ end
+
+Route120_EventScript_151908:: @ 8151908
+ applymovement 31, Route120_Movement_1A0845
+ applymovement 255, Route120_Movement_1A0841
+ waitmovement 0
+ msgbox Route120_Text_171A40, 4
+ giveitem_std ITEM_DEVON_SCOPE
+ setflag FLAG_RECEIVED_DEVON_SCOPE
+ msgbox Route120_Text_171B0E, 4
+ closemessage
+ applymovement 31, Route120_Movement_1A0845
+ waitmovement 0
+ delay 50
+ setfieldeffectargument 0, 1
+ dofieldeffect FLDEFF_NPCFLY_OUT
+ delay 15
+ removeobject 31
+ waitfieldeffect FLDEFF_NPCFLY_OUT
+ setmetatile 13, 15, 663, 0
+ setmetatile 12, 16, 671, 0
+ setmetatile 12, 17, 161, 0
+ setmetatile 13, 17, 161, 0
+ special DrawWholeMapView
+ release
+ end
+
+Route120_EventScript_15197F:: @ 815197F
+ applymovement 255, Route120_Movement_1A083F
+ waitmovement 0
+ return
+
+Route120_EventScript_15198A:: @ 815198A
+ applymovement 255, Route120_Movement_151995
+ waitmovement 0
+ return
+
+Route120_Movement_151995:: @ 8151995
+ walk_down
+ walk_left
+ end_movement
+
+Route120_EventScript_151998:: @ 8151998
+ msgbox Route120_Text_171B93, 2
+ end
+
+Route120_EventScript_1519A1:: @ 81519A1
+ msgbox Route120_Text_171C5E, 3
+ end
+
+Route120_EventScript_1519AA:: @ 81519AA
+ msgbox Route120_Text_171C77, 3
+ end
+
+Route120_EventScript_1519B3:: @ 81519B3
+ trainerbattle 0, OPPONENT_COLIN, 0, Route120_Text_1BEFC8, Route120_Text_1BF000
+ msgbox Route120_Text_1BF015, 6
+ end
+
+Route120_EventScript_1519CA:: @ 81519CA
+ trainerbattle 0, OPPONENT_ROBERT_1, 0, Route120_Text_1BF07E, Route120_Text_1BF0A5
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route120_EventScript_1519F1
+ msgbox Route120_Text_1BF0C3, 6
+ end
+
+Route120_EventScript_1519F1:: @ 81519F1
+ trainerbattle 5, OPPONENT_ROBERT_1, 0, Route120_Text_1BF0FA, Route120_Text_1BF131
+ msgbox Route120_Text_1BF154, 6
+ end
+
+Route120_EventScript_151A08:: @ 8151A08
+ trainerbattle 0, OPPONENT_CARLOS, 0, Route120_Text_1BF193, Route120_Text_1BF1D4
+ msgbox Route120_Text_1BF215, 6
+ end
+
+Route120_EventScript_151A1F:: @ 8151A1F
+ trainerbattle 0, OPPONENT_JENNA, 0, Route120_Text_1BF26E, Route120_Text_1BF2D2
+ msgbox Route120_Text_1BF2EA, 6
+ end
+
+Route120_EventScript_151A36:: @ 8151A36
+ trainerbattle 0, OPPONENT_BRANDON_1, 0, Route120_Text_1BF32B, Route120_Text_1BF36B
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route120_EventScript_151A5D
+ msgbox Route120_Text_1BF38D, 6
+ end
+
+Route120_EventScript_151A5D:: @ 8151A5D
+ trainerbattle 5, OPPONENT_BRANDON_1, 0, Route120_Text_1BF3D0, Route120_Text_1BF416
+ msgbox Route120_Text_1BF43E, 6
+ end
+
+Route120_EventScript_151A74:: @ 8151A74
+ trainerbattle 0, OPPONENT_JENNIFER, 0, Route120_Text_1BF4A0, Route120_Text_1BF504
+ msgbox Route120_Text_1BF51F, 6
+ end
+
+Route120_EventScript_151A8B:: @ 8151A8B
+ trainerbattle 0, OPPONENT_CHIP, 0, Route120_Text_1BF560, Route120_Text_1BF5D6
+ msgbox Route120_Text_1BF5F4, 6
+ end
+
+Route120_EventScript_151AA2:: @ 8151AA2
+ trainerbattle 0, OPPONENT_CLARISSA, 0, Route120_Text_1BF65B, Route120_Text_1BF6A4
+ msgbox Route120_Text_1BF6D0, 6
+ end
+
+Route120_EventScript_151AB9:: @ 8151AB9
+ trainerbattle 0, OPPONENT_ANGELICA, 0, Route120_Text_1BF728, Route120_Text_1BF78C
+ msgbox Route120_Text_1BF7B2, 6
+ end
+
+Route120_EventScript_151AD0:: @ 8151AD0
+ trainerbattle 0, OPPONENT_KEIGO, 0, Route120_Text_1BF80B, Route120_Text_1BF852
+ msgbox Route120_Text_1BF891, 6
+ end
+
+Route120_EventScript_151AE7:: @ 8151AE7
+ trainerbattle 0, OPPONENT_TSUNAO, 0, Route120_Text_1BF8C5, Route120_Text_1BF920
+ msgbox Route120_Text_1BF946, 6
+ end
diff --git a/data/maps/Route121/scripts.inc b/data/maps/Route121/scripts.inc
new file mode 100644
index 000000000..5fe7f6330
--- /dev/null
+++ b/data/maps/Route121/scripts.inc
@@ -0,0 +1,113 @@
+Route121_MapScripts:: @ 8151AFE
+ map_script 3, Route121_MapScript1_151B04
+ .byte 0
+
+Route121_MapScript1_151B04:: @ 8151B04
+ call Route121_EventScript_1A0196
+ end
+
+Route121_EventScript_151B0A:: @ 8151B0A
+ msgbox Route121_Text_171CB4, 2
+ end
+
+Route121_EventScript_151B13:: @ 8151B13
+ msgbox Route121_Text_171D0C, 3
+ end
+
+Route121_EventScript_151B1C:: @ 8151B1C
+ msgbox Route121_Text_171D5B, 3
+ end
+
+Route121_EventScript_151B25:: @ 8151B25
+ lockall
+ msgbox Route121_Text_171C8F, 4
+ closemessage
+ applymovement 12, Route121_Movement_151B57
+ applymovement 13, Route121_Movement_151B60
+ applymovement 14, Route121_Movement_151B69
+ waitmovement 0
+ removeobject 12
+ removeobject 13
+ removeobject 14
+ setvar VAR_ROUTE121_STATE, 1
+ releaseall
+ end
+
+Route121_Movement_151B57:: @ 8151B57
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+Route121_Movement_151B60:: @ 8151B60
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+Route121_Movement_151B69:: @ 8151B69
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+Route121_EventScript_151B72:: @ 8151B72
+ trainerbattle 0, OPPONENT_VANESSA, 0, Route121_Text_1BF96E, Route121_Text_1BF9A1
+ msgbox Route121_Text_1BF9BA, 6
+ end
+
+Route121_EventScript_151B89:: @ 8151B89
+ trainerbattle 0, OPPONENT_WALTER_1, 0, Route121_Text_1BFA1B, Route121_Text_1BFA8C
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route121_EventScript_151BB0
+ msgbox Route121_Text_1BFA9D, 6
+ end
+
+Route121_EventScript_151BB0:: @ 8151BB0
+ trainerbattle 5, OPPONENT_WALTER_1, 0, Route121_Text_1BFADA, Route121_Text_1BFB4B
+ msgbox Route121_Text_1BFB5C, 6
+ end
+
+Route121_EventScript_151BC7:: @ 8151BC7
+ trainerbattle 0, OPPONENT_TAMMY, 0, Route121_Text_1BFBB4, Route121_Text_1BFBEE
+ msgbox Route121_Text_1BFBFD, 6
+ end
+
+Route121_EventScript_151BDE:: @ 8151BDE
+ trainerbattle 4, OPPONENT_KATE_AND_JOY, 0, Route121_Text_1BFC36, Route121_Text_1BFC7A, Route121_Text_1BFD08
+ msgbox Route121_Text_1BFCB3, 6
+ end
+
+Route121_EventScript_151BF9:: @ 8151BF9
+ trainerbattle 4, OPPONENT_KATE_AND_JOY, 0, Route121_Text_1BFD60, Route121_Text_1BFDA3, Route121_Text_1BFE0D
+ msgbox Route121_Text_1BFDC1, 6
+ end
+
+Route121_EventScript_151C14:: @ 8151C14
+ trainerbattle 0, OPPONENT_JESSICA_1, 0, Route121_Text_1BFE51, Route121_Text_1BFE80
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route121_EventScript_151C3B
+ msgbox Route121_Text_1BFEAE, 6
+ end
+
+Route121_EventScript_151C3B:: @ 8151C3B
+ trainerbattle 5, OPPONENT_JESSICA_1, 0, Route121_Text_1BFEDE, Route121_Text_1BFF0A
+ msgbox Route121_Text_1BFF3A, 6
+ end
diff --git a/data/maps/Route121_SafariZoneEntrance/scripts.inc b/data/maps/Route121_SafariZoneEntrance/scripts.inc
new file mode 100644
index 000000000..6e9ae80fd
--- /dev/null
+++ b/data/maps/Route121_SafariZoneEntrance/scripts.inc
@@ -0,0 +1,138 @@
+Route121_SafariZoneEntrance_MapScripts:: @ 815C323
+ map_script 2, Route121_SafariZoneEntrance_MapScript2_15C329
+ .byte 0
+
+Route121_SafariZoneEntrance_MapScript2_15C329:: @ 815C329
+ map_script_2 VAR_SAFARI_ZONE_STATE, 1, Route121_SafariZoneEntrance_EventScript_15C333
+ .2byte 0
+
+Route121_SafariZoneEntrance_EventScript_15C333:: @ 815C333
+ lockall
+ applymovement 255, Route121_SafariZoneEntrance_Movement_15C348
+ waitmovement 0
+ special ExitSafariMode
+ setvar VAR_SAFARI_ZONE_STATE, 0
+ releaseall
+ end
+
+Route121_SafariZoneEntrance_Movement_15C348:: @ 815C348
+ walk_up
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+Route121_SafariZoneEntrance_EventScript_15C351:: @ 815C351
+ msgbox Route121_SafariZoneEntrance_Text_1C35D0, 2
+ end
+
+Route121_SafariZoneEntrance_EventScript_15C35A:: @ 815C35A
+ lock
+ faceplayer
+ msgbox Route121_SafariZoneEntrance_Text_1C3704, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C379
+ msgbox Route121_SafariZoneEntrance_Text_1C373C, 4
+ release
+ end
+
+Route121_SafariZoneEntrance_EventScript_15C379:: @ 815C379
+ msgbox Route121_SafariZoneEntrance_Text_1C375F, 4
+ release
+ end
+
+Route121_SafariZoneEntrance_EventScript_15C383:: @ 815C383
+ lockall
+ applymovement 255, Route121_SafariZoneEntrance_Movement_1A0841
+ waitmovement 0
+ showmoneybox 0, 0
+ nop
+ msgbox Route121_SafariZoneEntrance_Text_1C3832, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C3B3
+ msgbox Route121_SafariZoneEntrance_Text_1C3895, 4
+ goto Route121_SafariZoneEntrance_EventScript_15C46C
+ end
+
+Route121_SafariZoneEntrance_EventScript_15C3B3:: @ 815C3B3
+ checkitem ITEM_POKEBLOCK_CASE, 1
+ compare RESULT, 0
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C450
+ call Route121_SafariZoneEntrance_EventScript_15C425
+ checkmoney 0x1f4, 0
+ compare RESULT, 0
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C45E
+ msgbox Route121_SafariZoneEntrance_Text_1C38D9, 4
+ takemoney 0x1f4, 0
+ updatemoneybox 0, 0
+ nop
+ msgbox Route121_SafariZoneEntrance_Text_1C38F4, 4
+ playfanfare BGM_FANFA4
+ message Route121_SafariZoneEntrance_Text_1C3910
+ waitfanfare
+ waitmessage
+ msgbox Route121_SafariZoneEntrance_Text_1C392D, 4
+ closemessage
+ hidemoneybox 0, 0
+ applymovement 255, Route121_SafariZoneEntrance_Movement_15C47E
+ waitmovement 0
+ special EnterSafariMode
+ setvar VAR_SAFARI_ZONE_STATE, 2
+ warp MAP_SAFARI_ZONE_SOUTHEAST, 255, 32, 33
+ waitstate
+ end
+
+Route121_SafariZoneEntrance_EventScript_15C425:: @ 815C425
+ getpartysize
+ compare RESULT, 6
+ goto_if_ne Route121_SafariZoneEntrance_EventScript_15C44F
+ specialvar RESULT, CheckFreePokemonStorageSpace
+ compare RESULT, 1
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C44F
+ msgbox Route121_SafariZoneEntrance_Text_1C39A3, 4
+ goto Route121_SafariZoneEntrance_EventScript_15C46C
+ end
+
+Route121_SafariZoneEntrance_EventScript_15C44F:: @ 815C44F
+ return
+
+Route121_SafariZoneEntrance_EventScript_15C450:: @ 815C450
+ msgbox Route121_SafariZoneEntrance_Text_1C39C3, 4
+ goto Route121_SafariZoneEntrance_EventScript_15C46C
+ end
+
+Route121_SafariZoneEntrance_EventScript_15C45E:: @ 815C45E
+ msgbox Route121_SafariZoneEntrance_Text_1C38B5, 4
+ goto Route121_SafariZoneEntrance_EventScript_15C46C
+ end
+
+Route121_SafariZoneEntrance_EventScript_15C46C:: @ 815C46C
+ closemessage
+ hidemoneybox 0, 0
+ applymovement 255, Route121_SafariZoneEntrance_Movement_15C47C
+ waitmovement 0
+ releaseall
+ end
+
+Route121_SafariZoneEntrance_Movement_15C47C:: @ 815C47C
+ walk_right
+ end_movement
+
+Route121_SafariZoneEntrance_Movement_15C47E:: @ 815C47E
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ delay_16
+ end_movement
+
+Route121_SafariZoneEntrance_EventScript_15C487:: @ 815C487
+ msgbox Route121_SafariZoneEntrance_Text_1C3E4B, 3
+ end
diff --git a/data/maps/Route122/scripts.inc b/data/maps/Route122/scripts.inc
new file mode 100644
index 000000000..4c4e49aa1
--- /dev/null
+++ b/data/maps/Route122/scripts.inc
@@ -0,0 +1,2 @@
+Route122_MapScripts:: @ 8151C52
+ .byte 0
diff --git a/data/maps/Route123/scripts.inc b/data/maps/Route123/scripts.inc
new file mode 100644
index 000000000..d954bec1a
--- /dev/null
+++ b/data/maps/Route123/scripts.inc
@@ -0,0 +1,101 @@
+Route123_MapScripts:: @ 8151C53
+ map_script 3, Route123_MapScript1_151C59
+ .byte 0
+
+Route123_MapScript1_151C59:: @ 8151C59
+ special SetRoute123Weather
+ end
+
+Route123_EventScript_151C5D:: @ 8151C5D
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM19, Route123_EventScript_151CAC
+ msgbox Route123_Text_171D83, 4
+ special IsGrassTypeInParty
+ compare RESULT, 0
+ goto_if_eq Route123_EventScript_151CAA
+ msgbox Route123_Text_171DC2, 4
+ giveitem_std ITEM_TM19_GIGA_DRAIN
+ compare RESULT, 0
+ goto_if_eq Route123_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM19
+ msgbox Route123_Text_171E34, 4
+ release
+ end
+
+Route123_EventScript_151CAA:: @ 8151CAA
+ release
+ end
+
+Route123_EventScript_151CAC:: @ 8151CAC
+ msgbox Route123_Text_171E34, 4
+ release
+ end
+
+Route123_EventScript_151CB6:: @ 8151CB6
+ msgbox Route123_Text_171E76, 3
+ end
+
+Route123_EventScript_151CBF:: @ 8151CBF
+ msgbox Route123_Text_171E8E, 3
+ end
+
+Route123_EventScript_151CC8:: @ 8151CC8
+ msgbox Route123_Text_171EBC, 3
+ end
+
+Route123_EventScript_151CD1:: @ 8151CD1
+ trainerbattle 0, OPPONENT_WENDY, 0, Route123_Text_1BFF6A, Route123_Text_1BFFA2
+ msgbox Route123_Text_1BFFC1, 6
+ end
+
+Route123_EventScript_151CE8:: @ 8151CE8
+ trainerbattle 0, OPPONENT_CLYDE, 0, Route123_Text_1BFFF0, Route123_Text_1C0057
+ msgbox Route123_Text_1C0075, 6
+ end
+
+Route123_EventScript_151CFF:: @ 8151CFF
+ trainerbattle 0, OPPONENT_VIOLET, 0, Route123_Text_1C009E, Route123_Text_1C00D4
+ msgbox Route123_Text_1C0100, 6
+ end
+
+Route123_EventScript_151D16:: @ 8151D16
+ trainerbattle 0, OPPONENT_CAMERON_1, 0, Route123_Text_1C013F, Route123_Text_1C01A3
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route123_EventScript_151D3D
+ msgbox Route123_Text_1C01B1, 6
+ end
+
+Route123_EventScript_151D3D:: @ 8151D3D
+ trainerbattle 5, OPPONENT_CAMERON_1, 0, Route123_Text_1C01F9, Route123_Text_1C0240
+ msgbox Route123_Text_1C024E, 6
+ end
+
+Route123_EventScript_151D54:: @ 8151D54
+ trainerbattle 0, OPPONENT_JACKI_1, 0, Route123_Text_1C028C, Route123_Text_1C0303
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route123_EventScript_151D7B
+ msgbox Route123_Text_1C030F, 6
+ end
+
+Route123_EventScript_151D7B:: @ 8151D7B
+ trainerbattle 5, OPPONENT_JACKI_1, 0, Route123_Text_1C0351, Route123_Text_1C0380
+ msgbox Route123_Text_1C038C, 6
+ end
+
+Route123_EventScript_151D92:: @ 8151D92
+ trainerbattle 4, OPPONENT_MIU_AND_YUKI, 0, Route123_Text_1C03CB, Route123_Text_1C040E, Route123_Text_1C0462
+ msgbox Route123_Text_1C0423, 6
+ end
+
+Route123_EventScript_151DAD:: @ 8151DAD
+ trainerbattle 4, OPPONENT_MIU_AND_YUKI, 0, Route123_Text_1C049C, Route123_Text_1C04CD, Route123_Text_1C0519
+ msgbox Route123_Text_1C04E3, 6
+ end
+
+Route123_EventScript_151DC8:: @ 8151DC8
+ trainerbattle 0, OPPONENT_KINDRA, 0, Route123_Text_1C0554, Route123_Text_1C059F
+ msgbox Route123_Text_1C05BC, 6
+ end
diff --git a/data/maps/Route123_BerryMastersHouse/scripts.inc b/data/maps/Route123_BerryMastersHouse/scripts.inc
new file mode 100644
index 000000000..3356df83b
--- /dev/null
+++ b/data/maps/Route123_BerryMastersHouse/scripts.inc
@@ -0,0 +1,145 @@
+Route123_BerryMastersHouse_MapScripts:: @ 81639DF
+ map_script 3, Route123_BerryMastersHouse_MapScript1_1639E5
+ .byte 0
+
+Route123_BerryMastersHouse_MapScript1_1639E5:: @ 81639E5
+ setflag FLAG_LANDMARK_BERRY_MASTERS_HOUSE
+ end
+
+Route123_BerryMastersHouse_EventScript_1639E9:: @ 81639E9
+ lock
+ faceplayer
+ dodailyevents
+ goto_if_set FLAG_DAILY_RECEIVED_BERRY_FROM_BERRYMASTER, Route123_BerryMastersHouse_EventScript_163A5A
+ msgbox Route123_BerryMastersHouse_Text_1C5BC4, 4
+ random 10
+ addvar RESULT, 20
+ addvar RESULT, 133
+ giveitem_std RESULT
+ compare RESULT, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
+ setflag FLAG_DAILY_RECEIVED_BERRY_FROM_BERRYMASTER
+ msgbox Route123_BerryMastersHouse_Text_1C5C66, 4
+ random 10
+ addvar RESULT, 20
+ addvar RESULT, 133
+ giveitem_std RESULT
+ compare RESULT, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
+ msgbox Route123_BerryMastersHouse_Text_1C5C83, 4
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_163A5A:: @ 8163A5A
+ msgbox Route123_BerryMastersHouse_Text_1C5CDC, 4
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_163A64:: @ 8163A64
+ lock
+ faceplayer
+ dodailyevents
+ goto_if_set FLAG_DAILY_RECEIVED_BERRY_FROM_BERRYMASTER_WIFE, Route123_BerryMastersHouse_EventScript_163C13
+ msgbox Route123_BerryMastersHouse_Text_1C5D24, 4
+ setvar VAR_SPECIAL_4, 13
+ call Route123_BerryMastersHouse_EventScript_1A00F3
+ lock
+ faceplayer
+ compare RESULT, 1
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163AAD
+ compare RESULT, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163A9B
+ end
+
+Route123_BerryMastersHouse_EventScript_163A9B:: @ 8163A9B
+ msgbox Route123_BerryMastersHouse_Text_1C5EC0, 4
+ msgbox Route123_BerryMastersHouse_Text_1C5E59, 4
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_163AAD:: @ 8163AAD
+ compare VAR_SPECIAL_4, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
+ compare VAR_SPECIAL_4, 1
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163B1E
+ compare VAR_SPECIAL_4, 2
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163B4F
+ compare VAR_SPECIAL_4, 3
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163B80
+ compare VAR_SPECIAL_4, 4
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163BB1
+ compare VAR_SPECIAL_4, 5
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163BE2
+ end
+
+Route123_BerryMastersHouse_EventScript_163AF0:: @ 8163AF0
+ msgbox Route123_BerryMastersHouse_Text_1C5E0E, 4
+ random 10
+ addvar RESULT, ITEM_CHERI_BERRY
+ giveitem_std RESULT
+ compare RESULT, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
+ goto Route123_BerryMastersHouse_EventScript_163C1D
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_163B1E:: @ 8163B1E
+ goto_if_set FLAG_RECEIVED_SPELON_BERRY, Route123_BerryMastersHouse_EventScript_163AF0
+ msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
+ giveitem_std ITEM_SPELON_BERRY
+ compare RESULT, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
+ setflag FLAG_RECEIVED_SPELON_BERRY
+ goto Route123_BerryMastersHouse_EventScript_163C1D
+ end
+
+Route123_BerryMastersHouse_EventScript_163B4F:: @ 8163B4F
+ goto_if_set FLAG_RECEIVED_PAMTRE_BERRY, Route123_BerryMastersHouse_EventScript_163AF0
+ msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
+ giveitem_std ITEM_PAMTRE_BERRY
+ compare RESULT, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
+ setflag FLAG_RECEIVED_PAMTRE_BERRY
+ goto Route123_BerryMastersHouse_EventScript_163C1D
+ end
+
+Route123_BerryMastersHouse_EventScript_163B80:: @ 8163B80
+ goto_if_set FLAG_RECEIVED_WATMEL_BERRY, Route123_BerryMastersHouse_EventScript_163AF0
+ msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
+ giveitem_std ITEM_WATMEL_BERRY
+ compare RESULT, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
+ setflag FLAG_RECEIVED_WATMEL_BERRY
+ goto Route123_BerryMastersHouse_EventScript_163C1D
+ end
+
+Route123_BerryMastersHouse_EventScript_163BB1:: @ 8163BB1
+ goto_if_set FLAG_RECEIVED_DURIN_BERRY, Route123_BerryMastersHouse_EventScript_163AF0
+ msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
+ giveitem_std ITEM_DURIN_BERRY
+ compare RESULT, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
+ setflag FLAG_RECEIVED_DURIN_BERRY
+ goto Route123_BerryMastersHouse_EventScript_163C1D
+ end
+
+Route123_BerryMastersHouse_EventScript_163BE2:: @ 8163BE2
+ goto_if_set FLAG_RECEIVED_BELUE_BERRY, Route123_BerryMastersHouse_EventScript_163AF0
+ msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
+ giveitem_std ITEM_BELUE_BERRY
+ compare RESULT, 0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
+ setflag FLAG_RECEIVED_BELUE_BERRY
+ goto Route123_BerryMastersHouse_EventScript_163C1D
+ end
+
+Route123_BerryMastersHouse_EventScript_163C13:: @ 8163C13
+ msgbox Route123_BerryMastersHouse_Text_1C5E59, 4
+ release
+ end
+
+Route123_BerryMastersHouse_EventScript_163C1D:: @ 8163C1D
+ setflag FLAG_DAILY_RECEIVED_BERRY_FROM_BERRYMASTER_WIFE
+ msgbox Route123_BerryMastersHouse_Text_1C5E59, 4
+ release
+ end
diff --git a/data/maps/Route124/scripts.inc b/data/maps/Route124/scripts.inc
new file mode 100644
index 000000000..3f02fc6e3
--- /dev/null
+++ b/data/maps/Route124/scripts.inc
@@ -0,0 +1,70 @@
+Route124_MapScripts:: @ 8151DDF
+ map_script 3, Route124_MapScript1_151DE5
+ .byte 0
+
+Route124_MapScript1_151DE5:: @ 8151DE5
+ call_if_set FLAG_SYS_WEATHER_CTRL, Route124_EventScript_1A02C1
+ end
+
+Route124_EventScript_151DEF:: @ 8151DEF
+ msgbox Route124_Text_171ED1, 3
+ end
+
+Route124_EventScript_151DF8:: @ 8151DF8
+ trainerbattle 0, OPPONENT_SPENCER, 0, Route124_Text_1C0624, Route124_Text_1C0675
+ msgbox Route124_Text_1C0693, 6
+ end
+
+Route124_EventScript_151E0F:: @ 8151E0F
+ trainerbattle 0, OPPONENT_ROLAND, 0, Route124_Text_1C06F7, Route124_Text_1C0741
+ msgbox Route124_Text_1C0750, 6
+ end
+
+Route124_EventScript_151E26:: @ 8151E26
+ trainerbattle 0, OPPONENT_JENNY_1, 0, Route124_Text_1C07B4, Route124_Text_1C07F9
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route124_EventScript_151E4D
+ msgbox Route124_Text_1C080E, 6
+ end
+
+Route124_EventScript_151E4D:: @ 8151E4D
+ trainerbattle 5, OPPONENT_JENNY_1, 0, Route124_Text_1C0888, Route124_Text_1C08C8
+ msgbox Route124_Text_1C08EA, 6
+ end
+
+Route124_EventScript_151E64:: @ 8151E64
+ trainerbattle 0, OPPONENT_GRACE, 0, Route124_Text_1C0936, Route124_Text_1C096B
+ msgbox Route124_Text_1C0994, 6
+ end
+
+Route124_EventScript_151E7B:: @ 8151E7B
+ trainerbattle 0, OPPONENT_CHAD, 0, Route124_Text_1C09CE, Route124_Text_1C0A2F
+ msgbox Route124_Text_1C0A52, 6
+ end
+
+Route124_EventScript_151E92:: @ 8151E92
+ trainerbattle 4, OPPONENT_RITA_AND_SAM_1, 0, Route124_Text_1C0ABD, Route124_Text_1C0B36, Route124_Text_1C0BC8
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route124_EventScript_151EBD
+ msgbox Route124_Text_1C0B72, 6
+ end
+
+Route124_EventScript_151EBD:: @ 8151EBD
+ trainerbattle 7, OPPONENT_RITA_AND_SAM_1, 0, Route124_Text_1C0D1F, Route124_Text_1C0DB5, Route124_Text_1C0E5C
+ msgbox Route124_Text_1C0E06, 6
+ end
+
+Route124_EventScript_151ED8:: @ 8151ED8
+ trainerbattle 4, OPPONENT_RITA_AND_SAM_1, 0, Route124_Text_1C0C0E, Route124_Text_1C0C4F, Route124_Text_1C0CE0
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route124_EventScript_151F03
+ msgbox Route124_Text_1C0C7F, 6
+ end
+
+Route124_EventScript_151F03:: @ 8151F03
+ trainerbattle 7, OPPONENT_RITA_AND_SAM_1, 0, Route124_Text_1C0EA2, Route124_Text_1C0EE5, Route124_Text_1C0F90
+ msgbox Route124_Text_1C0F19, 6
+ end
diff --git a/data/maps/Route124_DivingTreasureHuntersHouse/scripts.inc b/data/maps/Route124_DivingTreasureHuntersHouse/scripts.inc
new file mode 100644
index 000000000..7bcddfe19
--- /dev/null
+++ b/data/maps/Route124_DivingTreasureHuntersHouse/scripts.inc
@@ -0,0 +1,294 @@
+Route124_DivingTreasureHuntersHouse_MapScripts:: @ 8163DFA
+ map_script 3, Route124_DivingTreasureHuntersHouse_MapScript1_163E00
+ .byte 0
+
+Route124_DivingTreasureHuntersHouse_MapScript1_163E00:: @ 8163E00
+ setflag FLAG_LANDMARK_HUNTERS_HOUSE
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_163E04:: @ 8163E04
+ lock
+ faceplayer
+ goto_if_set FLAG_MET_DIVING_TREASURE_HUNTER, Route124_DivingTreasureHuntersHouse_EventScript_163E20
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F416, 4
+ setflag FLAG_MET_DIVING_TREASURE_HUNTER
+ goto Route124_DivingTreasureHuntersHouse_EventScript_163E2E
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_163E20:: @ 8163E20
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F48F, 4
+ goto Route124_DivingTreasureHuntersHouse_EventScript_163E2E
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_163E2E:: @ 8163E2E
+ call Route124_DivingTreasureHuntersHouse_EventScript_163E44
+ compare VAR_TEMP_1, 0
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_164329
+ goto Route124_DivingTreasureHuntersHouse_EventScript_163EA2
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_163E44:: @ 8163E44
+ setvar VAR_TEMP_1, 0
+ checkitem ITEM_RED_SHARD, 1
+ compare RESULT, 1
+ call_if_eq Route124_DivingTreasureHuntersHouse_EventScript_163E8A
+ checkitem ITEM_YELLOW_SHARD, 1
+ compare RESULT, 1
+ call_if_eq Route124_DivingTreasureHuntersHouse_EventScript_163E90
+ checkitem ITEM_BLUE_SHARD, 1
+ compare RESULT, 1
+ call_if_eq Route124_DivingTreasureHuntersHouse_EventScript_163E96
+ checkitem ITEM_GREEN_SHARD, 1
+ compare RESULT, 1
+ call_if_eq Route124_DivingTreasureHuntersHouse_EventScript_163E9C
+ return
+
+Route124_DivingTreasureHuntersHouse_EventScript_163E8A:: @ 8163E8A
+ addvar VAR_TEMP_1, 1
+ return
+
+Route124_DivingTreasureHuntersHouse_EventScript_163E90:: @ 8163E90
+ addvar VAR_TEMP_1, 2
+ return
+
+Route124_DivingTreasureHuntersHouse_EventScript_163E96:: @ 8163E96
+ addvar VAR_TEMP_1, 4
+ return
+
+Route124_DivingTreasureHuntersHouse_EventScript_163E9C:: @ 8163E9C
+ addvar VAR_TEMP_1, 8
+ return
+
+Route124_DivingTreasureHuntersHouse_EventScript_163EA2:: @ 8163EA2
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F544, 4
+ goto Route124_DivingTreasureHuntersHouse_EventScript_163EB0
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_163EB0:: @ 8163EB0
+ message Route124_DivingTreasureHuntersHouse_Text_19F5C5
+ waitmessage
+ switch VAR_TEMP_1
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_163F61
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_163F87
+ case 3, Route124_DivingTreasureHuntersHouse_EventScript_163FAD
+ case 4, Route124_DivingTreasureHuntersHouse_EventScript_163FDE
+ case 5, Route124_DivingTreasureHuntersHouse_EventScript_164004
+ case 6, Route124_DivingTreasureHuntersHouse_EventScript_164035
+ case 7, Route124_DivingTreasureHuntersHouse_EventScript_164066
+ case 8, Route124_DivingTreasureHuntersHouse_EventScript_1640A2
+ case 9, Route124_DivingTreasureHuntersHouse_EventScript_1640C8
+ case 10, Route124_DivingTreasureHuntersHouse_EventScript_1640F9
+ case 11, Route124_DivingTreasureHuntersHouse_EventScript_16412A
+ case 12, Route124_DivingTreasureHuntersHouse_EventScript_164166
+ case 13, Route124_DivingTreasureHuntersHouse_EventScript_164197
+ case 14, Route124_DivingTreasureHuntersHouse_EventScript_1641D3
+ case 15, Route124_DivingTreasureHuntersHouse_EventScript_16420F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_163F61:: @ 8163F61
+ multichoice 0, 0, 58, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164256
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_163F87:: @ 8163F87
+ multichoice 0, 0, 59, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164265
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_163FAD:: @ 8163FAD
+ multichoice 0, 0, 60, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164256
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164265
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_163FDE:: @ 8163FDE
+ multichoice 0, 0, 61, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164274
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164004:: @ 8164004
+ multichoice 0, 0, 62, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164256
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164274
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164035:: @ 8164035
+ multichoice 0, 0, 63, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164265
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164274
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164066:: @ 8164066
+ multichoice 0, 0, 64, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164256
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164265
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_164274
+ case 3, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_1640A2:: @ 81640A2
+ multichoice 0, 0, 65, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164283
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_1640C8:: @ 81640C8
+ multichoice 0, 0, 66, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164256
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164283
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_1640F9:: @ 81640F9
+ multichoice 0, 0, 67, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164265
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164283
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_16412A:: @ 816412A
+ multichoice 0, 0, 68, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164256
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164265
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_164283
+ case 3, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164166:: @ 8164166
+ multichoice 0, 0, 69, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164274
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164283
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164197:: @ 8164197
+ multichoice 0, 0, 70, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164256
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164274
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_164283
+ case 3, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_1641D3:: @ 81641D3
+ multichoice 0, 0, 71, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164265
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164274
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_164283
+ case 3, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_16420F:: @ 816420F
+ multichoice 0, 0, 72, 0
+ switch RESULT
+ case 0, Route124_DivingTreasureHuntersHouse_EventScript_164256
+ case 1, Route124_DivingTreasureHuntersHouse_EventScript_164265
+ case 2, Route124_DivingTreasureHuntersHouse_EventScript_164274
+ case 3, Route124_DivingTreasureHuntersHouse_EventScript_164283
+ case 4, Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164256:: @ 8164256
+ setvar VAR_SPECIAL_8, ITEM_RED_SHARD
+ setvar VAR_SPECIAL_9, ITEM_FIRE_STONE
+ goto Route124_DivingTreasureHuntersHouse_EventScript_164292
+
+Route124_DivingTreasureHuntersHouse_EventScript_164265:: @ 8164265
+ setvar VAR_SPECIAL_8, ITEM_YELLOW_SHARD
+ setvar VAR_SPECIAL_9, ITEM_THUNDER_STONE
+ goto Route124_DivingTreasureHuntersHouse_EventScript_164292
+
+Route124_DivingTreasureHuntersHouse_EventScript_164274:: @ 8164274
+ setvar VAR_SPECIAL_8, ITEM_BLUE_SHARD
+ setvar VAR_SPECIAL_9, ITEM_WATER_STONE
+ goto Route124_DivingTreasureHuntersHouse_EventScript_164292
+
+Route124_DivingTreasureHuntersHouse_EventScript_164283:: @ 8164283
+ setvar VAR_SPECIAL_8, ITEM_GREEN_SHARD
+ setvar VAR_SPECIAL_9, ITEM_LEAF_STONE
+ goto Route124_DivingTreasureHuntersHouse_EventScript_164292
+
+Route124_DivingTreasureHuntersHouse_EventScript_164292:: @ 8164292
+ bufferitemname 0, VAR_SPECIAL_8
+ bufferitemname 1, VAR_SPECIAL_9
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F5E0, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ checkitemspace VAR_SPECIAL_9, 1
+ compare RESULT, 1
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_1642D3
+ checkitem VAR_SPECIAL_8, 2
+ compare RESULT, 0
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_1642D3
+ goto Route124_DivingTreasureHuntersHouse_EventScript_164315
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_1642D3:: @ 81642D3
+ takeitem VAR_SPECIAL_8, 1
+ giveitem_std VAR_SPECIAL_9
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F606, 4
+ call Route124_DivingTreasureHuntersHouse_EventScript_163E44
+ compare VAR_TEMP_1, 0
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_164333
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F629, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_163EB0
+ goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164315:: @ 8164315
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F64E, 4
+ release
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_16431F:: @ 816431F
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F686, 4
+ release
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164329:: @ 8164329
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F4D1, 4
+ release
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164333:: @ 8164333
+ release
+ end
+
+Route124_DivingTreasureHuntersHouse_EventScript_164335:: @ 8164335
+ msgbox Route124_DivingTreasureHuntersHouse_Text_19F6C5, 3
+ end
diff --git a/data/maps/Route125/scripts.inc b/data/maps/Route125/scripts.inc
new file mode 100644
index 000000000..a1495ac83
--- /dev/null
+++ b/data/maps/Route125/scripts.inc
@@ -0,0 +1,50 @@
+Route125_MapScripts:: @ 8151F1E
+ map_script 3, Route125_MapScript1_151F24
+ .byte 0
+
+Route125_MapScript1_151F24:: @ 8151F24
+ call_if_set FLAG_SYS_WEATHER_CTRL, Route125_EventScript_1A02C1
+ end
+
+Route125_EventScript_151F2E:: @ 8151F2E
+ trainerbattle 0, OPPONENT_CODY, 0, Route125_Text_1C0FCF, Route125_Text_1C1002
+ msgbox Route125_Text_1C1013, 6
+ end
+
+Route125_EventScript_151F45:: @ 8151F45
+ trainerbattle 0, OPPONENT_STAN, 0, Route125_Text_1C104B, Route125_Text_1C1073
+ msgbox Route125_Text_1C1083, 6
+ end
+
+Route125_EventScript_151F5C:: @ 8151F5C
+ trainerbattle 0, OPPONENT_TANYA, 0, Route125_Text_1C10C3, Route125_Text_1C10FB
+ msgbox Route125_Text_1C110C, 6
+ end
+
+Route125_EventScript_151F73:: @ 8151F73
+ trainerbattle 0, OPPONENT_SHARON, 0, Route125_Text_1C1136, Route125_Text_1C1175
+ msgbox Route125_Text_1C117F, 6
+ end
+
+Route125_EventScript_151F8A:: @ 8151F8A
+ trainerbattle 0, OPPONENT_ERNEST_1, 0, Route125_Text_1C11AF, Route125_Text_1C11ED
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route125_EventScript_151FB1
+ msgbox Route125_Text_1C1208, 6
+ end
+
+Route125_EventScript_151FB1:: @ 8151FB1
+ trainerbattle 5, OPPONENT_ERNEST_1, 0, Route125_Text_1C1282, Route125_Text_1C12C5
+ msgbox Route125_Text_1C12EE, 6
+ end
+
+Route125_EventScript_151FC8:: @ 8151FC8
+ trainerbattle 4, OPPONENT_KIM_AND_IRIS, 0, Route125_Text_1C13A1, Route125_Text_1C13FF, Route125_Text_1C146E
+ msgbox Route125_Text_1C141C, 6
+ end
+
+Route125_EventScript_151FE3:: @ 8151FE3
+ trainerbattle 4, OPPONENT_KIM_AND_IRIS, 0, Route125_Text_1C14AB, Route125_Text_1C14E7, Route125_Text_1C154F
+ msgbox Route125_Text_1C1508, 6
+ end
diff --git a/data/maps/Route126/scripts.inc b/data/maps/Route126/scripts.inc
new file mode 100644
index 000000000..4a28abfb7
--- /dev/null
+++ b/data/maps/Route126/scripts.inc
@@ -0,0 +1,27 @@
+Route126_MapScripts:: @ 8151FFE
+ map_script 3, Route126_MapScript1_152004
+ .byte 0
+
+Route126_MapScript1_152004:: @ 8152004
+ call_if_set FLAG_SYS_WEATHER_CTRL, Route126_EventScript_1A02C1
+ end
+
+Route126_EventScript_15200E:: @ 815200E
+ trainerbattle 0, OPPONENT_BARRY, 0, Route126_Text_1C1590, Route126_Text_1C15C3
+ msgbox Route126_Text_1C15D8, 6
+ end
+
+Route126_EventScript_152025:: @ 8152025
+ trainerbattle 0, OPPONENT_DEAN, 0, Route126_Text_1C1627, Route126_Text_1C1660
+ msgbox Route126_Text_1C166F, 6
+ end
+
+Route126_EventScript_15203C:: @ 815203C
+ trainerbattle 0, OPPONENT_NIKKI, 0, Route126_Text_1C16AB, Route126_Text_1C16C5
+ msgbox Route126_Text_1C1702, 6
+ end
+
+Route126_EventScript_152053:: @ 8152053
+ trainerbattle 0, OPPONENT_BRENDA, 0, Route126_Text_1C1741, Route126_Text_1C1766
+ msgbox Route126_Text_1C1773, 6
+ end
diff --git a/data/maps/Route127/scripts.inc b/data/maps/Route127/scripts.inc
new file mode 100644
index 000000000..7552f7c5d
--- /dev/null
+++ b/data/maps/Route127/scripts.inc
@@ -0,0 +1,42 @@
+Route127_MapScripts:: @ 815206A
+ map_script 3, Route127_MapScript1_152070
+ .byte 0
+
+Route127_MapScript1_152070:: @ 8152070
+ call_if_set FLAG_SYS_WEATHER_CTRL, Route127_EventScript_1A02C1
+ end
+
+Route127_EventScript_15207A:: @ 815207A
+ trainerbattle 0, OPPONENT_CALEB, 0, Route127_Text_1C17A8, Route127_Text_1C17DD
+ msgbox Route127_Text_1C17EC, 6
+ end
+
+Route127_EventScript_152091:: @ 8152091
+ trainerbattle 0, OPPONENT_CONNOR, 0, Route127_Text_1C1828, Route127_Text_1C1860
+ msgbox Route127_Text_1C1877, 6
+ end
+
+Route127_EventScript_1520A8:: @ 81520A8
+ trainerbattle 0, OPPONENT_JONAH, 0, Route127_Text_1C18CC, Route127_Text_1C1930
+ msgbox Route127_Text_1C195D, 6
+ end
+
+Route127_EventScript_1520BF:: @ 81520BF
+ trainerbattle 0, OPPONENT_HENRY, 0, Route127_Text_1C19A3, Route127_Text_1C19D6
+ msgbox Route127_Text_1C19E7, 6
+ end
+
+Route127_EventScript_1520D6:: @ 81520D6
+ trainerbattle 0, OPPONENT_ROGER, 0, Route127_Text_1C1A2E, Route127_Text_1C1A73
+ msgbox Route127_Text_1C1AA0, 6
+ end
+
+Route127_EventScript_1520ED:: @ 81520ED
+ trainerbattle 0, OPPONENT_KOJI, 0, Route127_Text_1C1AE2, Route127_Text_1C1B2A
+ msgbox Route127_Text_1C1B39, 6
+ end
+
+Route127_EventScript_152104:: @ 8152104
+ trainerbattle 0, OPPONENT_BYRON, 0, Route127_Text_1C1B92, Route127_Text_1C1BD9
+ msgbox Route127_Text_1C1BEC, 6
+ end
diff --git a/data/maps/Route128/scripts.inc b/data/maps/Route128/scripts.inc
new file mode 100644
index 000000000..ec4fb954e
--- /dev/null
+++ b/data/maps/Route128/scripts.inc
@@ -0,0 +1,221 @@
+Route128_MapScripts:: @ 815211B
+ map_script 3, Route128_MapScript1_152126
+ map_script 2, Route128_MapScript2_152135
+ .byte 0
+
+Route128_MapScript1_152126:: @ 8152126
+ call_if_set FLAG_SYS_WEATHER_CTRL, Route128_EventScript_1A02C1
+ call Route128_EventScript_1A0196
+ end
+
+Route128_MapScript2_152135:: @ 8152135
+ map_script_2 VAR_ROUTE128_STATE, 1, Route128_EventScript_15213F
+ .2byte 0
+
+Route128_EventScript_15213F:: @ 815213F
+ lockall
+ delay 20
+ .ifndef SAPPHIRE
+ special sub_807E25C
+ waitstate
+ .endif
+ applymovement 4, Route128_Movement_152271
+ waitmovement 0
+ msgbox Route128_Text_171EE0, 4
+ applymovement 4, Route128_Movement_152279
+ waitmovement 0
+ msgbox Route128_Text_171F35, 4
+ closemessage
+ applymovement 5, Route128_Movement_152293
+ waitmovement 0
+ applymovement 4, Route128_Movement_1A0841
+ waitmovement 0
+ msgbox Route128_Text_171F4B, 4
+ closemessage
+ applymovement 5, Route128_Movement_1522A1
+ waitmovement 0
+ applymovement 255, Route128_Movement_1A0841
+ waitmovement 0
+ msgbox Route128_Text_172008, 4
+ closemessage
+ applymovement 4, Route128_Movement_15227E
+ applymovement 255, Route128_Movement_1A083F
+ applymovement 5, Route128_Movement_152290
+ waitmovement 0
+ msgbox Route128_Text_17210B, 4
+ closemessage
+ delay 40
+ applymovement 5, Route128_Movement_152296
+ applymovement 4, Route128_Movement_152283
+ waitmovement 0
+ removeobject 5
+ removeobject 4
+ delay 100
+ setfieldeffectargument 0, 1
+ dofieldeffect FLDEFF_NPCFLY_OUT
+ waitfieldeffect FLDEFF_NPCFLY_OUT
+ addobject 3
+ applymovement 3, Route128_Movement_15226F
+ waitmovement 0
+ applymovement 255, Route128_Movement_1A0843
+ waitmovement 0
+ msgbox Route128_Text_172181, 4
+ closemessage
+ applymovement 3, Route128_Movement_15226D
+ applymovement 255, Route128_Movement_1A0841
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox Route128_Text_1721A2, 4
+ .else
+ msgbox Route128_Text_1722A1, 4
+ .endif
+ applymovement 3, Route128_Movement_1A0845
+ waitmovement 0
+ msgbox Route128_Text_1723BE, 4
+ closemessage
+ applymovement 3, Route128_Movement_1A0845
+ waitmovement 0
+ delay 50
+ setfieldeffectargument 0, 1
+ dofieldeffect FLDEFF_NPCFLY_OUT
+ delay 15
+ removeobject 3
+ waitfieldeffect FLDEFF_NPCFLY_OUT
+ setvar VAR_ROUTE128_STATE, 2
+ releaseall
+ end
+
+@ 815225E
+ walk_fast_left
+ end_movement
+
+@ 8152260
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+Route128_Movement_15226D:: @ 815226D
+ walk_up
+ end_movement
+
+Route128_Movement_15226F:: @ 815226F
+ walk_fast_left
+ end_movement
+
+Route128_Movement_152271:: @ 8152271
+ walk_fast_down
+ walk_in_place_fastest_left
+ delay_16
+ walk_in_place_fastest_right
+ delay_16
+ delay_16
+ walk_in_place_fastest_down
+ end_movement
+
+Route128_Movement_152279:: @ 8152279
+ lock_facing_direction
+ walk_slow_up
+ delay_16
+ unlock_facing_direction
+ end_movement
+
+Route128_Movement_15227E:: @ 815227E
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_in_place_fastest_right
+ end_movement
+
+Route128_Movement_152283:: @ 8152283
+ delay_16
+ delay_16
+ walk_fast_up
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+Route128_Movement_152290:: @ 8152290
+ walk_left
+ walk_left
+ end_movement
+
+Route128_Movement_152293:: @ 8152293
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+Route128_Movement_152296:: @ 8152296
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+Route128_Movement_1522A1:: @ 81522A1
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+Route128_EventScript_1522A4:: @ 81522A4
+ trainerbattle 0, OPPONENT_ISAIAH_1, 0, Route128_Text_1C1C67, Route128_Text_1C1C95
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route128_EventScript_1522CB
+ msgbox Route128_Text_1C1CC3, 6
+ end
+
+Route128_EventScript_1522CB:: @ 81522CB
+ trainerbattle 5, OPPONENT_ISAIAH_1, 0, Route128_Text_1C1D02, Route128_Text_1C1D45
+ msgbox Route128_Text_1C1D6B, 6
+ end
+
+Route128_EventScript_1522E2:: @ 81522E2
+ trainerbattle 0, OPPONENT_KATELYN_1, 0, Route128_Text_1C1DB0, Route128_Text_1C1E25
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq Route128_EventScript_152309
+ msgbox Route128_Text_1C1E4A, 6
+ end
+
+Route128_EventScript_152309:: @ 8152309
+ trainerbattle 5, OPPONENT_KATELYN_1, 0, Route128_Text_1C1E90, Route128_Text_1C1EFA
+ msgbox Route128_Text_1C1F2E, 6
+ end
+
+Route128_EventScript_152320:: @ 8152320
+ trainerbattle 0, OPPONENT_ALEXA, 0, Route128_Text_1C1F6D, Route128_Text_1C1FCC
+ msgbox Route128_Text_1C1FE8, 6
+ end
+
+Route128_EventScript_152337:: @ 8152337
+ trainerbattle 0, OPPONENT_RUBEN, 0, Route128_Text_1C202C, Route128_Text_1C2051
+ msgbox Route128_Text_1C2060, 6
+ end
+
+Route128_EventScript_15234E:: @ 815234E
+ trainerbattle 0, OPPONENT_WAYNE, 0, Route128_Text_1C2090, Route128_Text_1C20FC
+ msgbox Route128_Text_1C210D, 6
+ end
diff --git a/data/maps/Route129/scripts.inc b/data/maps/Route129/scripts.inc
new file mode 100644
index 000000000..ea43c5eab
--- /dev/null
+++ b/data/maps/Route129/scripts.inc
@@ -0,0 +1,22 @@
+Route129_MapScripts:: @ 8152365
+ .byte 0
+
+Route129_EventScript_152366:: @ 8152366
+ trainerbattle 0, OPPONENT_CHASE, 0, Route129_Text_1C2161, Route129_Text_1C2198
+ msgbox Route129_Text_1C21B4, 6
+ end
+
+Route129_EventScript_15237D:: @ 815237D
+ trainerbattle 0, OPPONENT_ALLISON, 0, Route129_Text_1C21ED, Route129_Text_1C222F
+ msgbox Route129_Text_1C2243, 6
+ end
+
+Route129_EventScript_152394:: @ 8152394
+ trainerbattle 0, OPPONENT_REED, 0, Route129_Text_1C22C8, Route129_Text_1C22EC
+ msgbox Route129_Text_1C230F, 6
+ end
+
+Route129_EventScript_1523AB:: @ 81523AB
+ trainerbattle 0, OPPONENT_TISHA, 0, Route129_Text_1C2349, Route129_Text_1C2378
+ msgbox Route129_Text_1C23A3, 6
+ end
diff --git a/data/maps/Route130/scripts.inc b/data/maps/Route130/scripts.inc
new file mode 100644
index 000000000..b0381969d
--- /dev/null
+++ b/data/maps/Route130/scripts.inc
@@ -0,0 +1,40 @@
+Route130_MapScripts:: @ 81523C2
+ map_script 3, Route130_MapScript1_1523C8
+ .byte 0
+
+Route130_MapScript1_1523C8:: @ 81523C8
+ specialvar RESULT, IsMirageIslandPresent
+ compare RESULT, 1
+ goto_if_eq Route130_EventScript_15240C
+ setflag FLAG_TEMP_11
+ setflag FLAG_TEMP_12
+ setflag FLAG_TEMP_13
+ setflag FLAG_TEMP_14
+ setflag FLAG_TEMP_15
+ setflag FLAG_TEMP_16
+ setflag FLAG_TEMP_17
+ setflag FLAG_TEMP_18
+ setflag FLAG_TEMP_19
+ setflag FLAG_TEMP_1A
+ setflag FLAG_TEMP_1B
+ setflag FLAG_TEMP_1C
+ setflag FLAG_TEMP_1D
+ setflag FLAG_TEMP_1E
+ setflag FLAG_TEMP_1F
+ setflag FLAG_TEMP_20
+ setmaplayoutindex 264
+ end
+
+Route130_EventScript_15240C:: @ 815240C
+ setmaplayoutindex 46
+ end
+
+Route130_EventScript_152410:: @ 8152410
+ trainerbattle 0, OPPONENT_RODNEY, 0, Route130_Text_1C2401, Route130_Text_1C245D
+ msgbox Route130_Text_1C2479, 6
+ end
+
+Route130_EventScript_152427:: @ 8152427
+ trainerbattle 0, OPPONENT_KATIE, 0, Route130_Text_1C24DC, Route130_Text_1C2525
+ msgbox Route130_Text_1C256E, 6
+ end
diff --git a/data/maps/Route131/scripts.inc b/data/maps/Route131/scripts.inc
new file mode 100644
index 000000000..ffd204bb9
--- /dev/null
+++ b/data/maps/Route131/scripts.inc
@@ -0,0 +1,41 @@
+Route131_MapScripts:: @ 815243E
+ map_script 3, Route131_MapScript1_152444
+ .byte 0
+
+Route131_MapScript1_152444:: @ 8152444
+ call_if_set FLAG_SYS_GAME_CLEAR, Route131_EventScript_15244E
+ end
+
+Route131_EventScript_15244E:: @ 815244E
+ setmaplayoutindex 320
+ return
+
+Route131_EventScript_152452:: @ 8152452
+ trainerbattle 0, OPPONENT_RICHARD, 0, Route131_Text_1C25B3, Route131_Text_1C25F8
+ msgbox Route131_Text_1C262A, 6
+ end
+
+Route131_EventScript_152469:: @ 8152469
+ trainerbattle 0, OPPONENT_HERMAN, 0, Route131_Text_1C26B9, Route131_Text_1C271F
+ msgbox Route131_Text_1C2726, 6
+ end
+
+Route131_EventScript_152480:: @ 8152480
+ trainerbattle 0, OPPONENT_SUSIE, 0, Route131_Text_1C2774, Route131_Text_1C27A4
+ msgbox Route131_Text_1C27CF, 6
+ end
+
+Route131_EventScript_152497:: @ 8152497
+ trainerbattle 0, OPPONENT_KARA, 0, Route131_Text_1C284A, Route131_Text_1C2883
+ msgbox Route131_Text_1C2898, 6
+ end
+
+Route131_EventScript_1524AE:: @ 81524AE
+ trainerbattle 4, OPPONENT_RELI_AND_IAN, 0, Route131_Text_1C28E2, Route131_Text_1C2918, Route131_Text_1C29B2
+ msgbox Route131_Text_1C2950, 6
+ end
+
+Route131_EventScript_1524C9:: @ 81524C9
+ trainerbattle 4, OPPONENT_RELI_AND_IAN, 0, Route131_Text_1C29F3, Route131_Text_1C2A20, Route131_Text_1C2ACA
+ msgbox Route131_Text_1C2A5D, 6
+ end
diff --git a/data/maps/Route132/scripts.inc b/data/maps/Route132/scripts.inc
new file mode 100644
index 000000000..642330fd4
--- /dev/null
+++ b/data/maps/Route132/scripts.inc
@@ -0,0 +1,22 @@
+Route132_MapScripts:: @ 81524E4
+ .byte 0
+
+Route132_EventScript_1524E5:: @ 81524E5
+ trainerbattle 0, OPPONENT_GILBERT, 0, Route132_Text_1C2AFB, Route132_Text_1C2B5B
+ msgbox Route132_Text_1C2B71, 6
+ end
+
+Route132_EventScript_1524FC:: @ 81524FC
+ trainerbattle 0, OPPONENT_DANA, 0, Route132_Text_1C2BB5, Route132_Text_1C2BEA
+ msgbox Route132_Text_1C2BFA, 6
+ end
+
+Route132_EventScript_152513:: @ 8152513
+ trainerbattle 0, OPPONENT_RONALD, 0, Route132_Text_1C2C32, Route132_Text_1C2C60
+ msgbox Route132_Text_1C2C78, 6
+ end
+
+Route132_EventScript_15252A:: @ 815252A
+ trainerbattle 0, OPPONENT_KIYO, 0, Route132_Text_1C2CD9, Route132_Text_1C2D1F
+ msgbox Route132_Text_1C2D3E, 6
+ end
diff --git a/data/maps/Route133/scripts.inc b/data/maps/Route133/scripts.inc
new file mode 100644
index 000000000..78bec4141
--- /dev/null
+++ b/data/maps/Route133/scripts.inc
@@ -0,0 +1,27 @@
+Route133_MapScripts:: @ 8152541
+ .byte 0
+
+Route133_EventScript_152542:: @ 8152542
+ trainerbattle 0, OPPONENT_FRANKLIN, 0, Route133_Text_1C2DA5, Route133_Text_1C2DF4
+ msgbox Route133_Text_1C2E09, 6
+ end
+
+Route133_EventScript_152559:: @ 8152559
+ trainerbattle 0, OPPONENT_DEBRA, 0, Route133_Text_1C2E61, Route133_Text_1C2EBD
+ msgbox Route133_Text_1C2ECD, 6
+ end
+
+Route133_EventScript_152570:: @ 8152570
+ trainerbattle 0, OPPONENT_LINDA, 0, Route133_Text_1C2EF7, Route133_Text_1C2F19
+ msgbox Route133_Text_1C2F25, 6
+ end
+
+Route133_EventScript_152587:: @ 8152587
+ trainerbattle 0, OPPONENT_WARREN, 0, Route133_Text_1C2F53, Route133_Text_1C2FA3
+ msgbox Route133_Text_1C2FC7, 6
+ end
+
+Route133_EventScript_15259E:: @ 815259E
+ trainerbattle 0, OPPONENT_BECK, 0, Route133_Text_1C302D, Route133_Text_1C305F
+ msgbox Route133_Text_1C307E, 6
+ end
diff --git a/data/maps/Route134/scripts.inc b/data/maps/Route134/scripts.inc
new file mode 100644
index 000000000..06b53ce31
--- /dev/null
+++ b/data/maps/Route134/scripts.inc
@@ -0,0 +1,32 @@
+Route134_MapScripts:: @ 81525B5
+ map_script 5, Route134_MapScript1_1525BB
+ .byte 0
+
+Route134_MapScript1_1525BB:: @ 81525BB
+ setdivewarp MAP_UNDERWATER_ROUTE134, 255, 8, 6
+ end
+
+Route134_EventScript_1525C4:: @ 81525C4
+ trainerbattle 0, OPPONENT_JACK, 0, Route134_Text_1C30C6, Route134_Text_1C3110
+ msgbox Route134_Text_1C311A, 6
+ end
+
+Route134_EventScript_1525DB:: @ 81525DB
+ trainerbattle 0, OPPONENT_LAUREL, 0, Route134_Text_1C315E, Route134_Text_1C3198
+ msgbox Route134_Text_1C31A0, 6
+ end
+
+Route134_EventScript_1525F2:: @ 81525F2
+ trainerbattle 0, OPPONENT_ALEX, 0, Route134_Text_1C31D7, Route134_Text_1C3213
+ msgbox Route134_Text_1C3229, 6
+ end
+
+Route134_EventScript_152609:: @ 8152609
+ trainerbattle 0, OPPONENT_AARON, 0, Route134_Text_1C3319, Route134_Text_1C335C
+ msgbox Route134_Text_1C336E, 6
+ end
+
+Route134_EventScript_152620:: @ 8152620
+ trainerbattle 0, OPPONENT_HITOSHI, 0, Route134_Text_1C3262, Route134_Text_1C329E
+ msgbox Route134_Text_1C32D6, 6
+ end
diff --git a/data/maps/RustboroCity/scripts.inc b/data/maps/RustboroCity/scripts.inc
new file mode 100644
index 000000000..72699ab79
--- /dev/null
+++ b/data/maps/RustboroCity/scripts.inc
@@ -0,0 +1,584 @@
+RustboroCity_MapScripts:: @ 814C372
+ map_script 3, RustboroCity_MapScript1_14C378
+ .byte 0
+
+RustboroCity_MapScript1_14C378:: @ 814C378
+ setflag FLAG_VISITED_RUSTBORO_CITY
+ call RustboroCity_EventScript_1A0196
+ call RustboroCity_EventScript_1A014E
+ end
+
+RustboroCity_EventScript_14C386:: @ 814C386
+ lock
+ faceplayer
+ goto_if_set FLAG_DEVON_GOODS_STOLEN, RustboroCity_EventScript_14C39B
+ msgbox RustboroCity_Text_16689D, 4
+ release
+ end
+
+RustboroCity_EventScript_14C39B:: @ 814C39B
+ msgbox RustboroCity_Text_16690C, 4
+ release
+ end
+
+RustboroCity_EventScript_14C3A5:: @ 814C3A5
+ lock
+ faceplayer
+ msgbox RustboroCity_Text_166A67, 4
+ release
+ end
+
+RustboroCity_EventScript_14C3B1:: @ 814C3B1
+ msgbox RustboroCity_Text_166AE0, 2
+ end
+
+RustboroCity_EventScript_14C3BA:: @ 814C3BA
+ lock
+ faceplayer
+ goto_if_set FLAG_BADGE01_GET, RustboroCity_EventScript_14C3CF
+ msgbox RustboroCity_Text_16696D, 4
+ release
+ end
+
+RustboroCity_EventScript_14C3CF:: @ 814C3CF
+ msgbox RustboroCity_Text_1669FE, 4
+ release
+ end
+
+RustboroCity_EventScript_14C3D9:: @ 814C3D9
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_POKENAV, RustboroCity_EventScript_14C3EE
+ msgbox RustboroCity_Text_166B86, 4
+ release
+ end
+
+RustboroCity_EventScript_14C3EE:: @ 814C3EE
+ msgbox RustboroCity_Text_166BEF, 4
+ release
+ end
+
+RustboroCity_EventScript_14C3F8:: @ 814C3F8
+ msgbox RustboroCity_Text_166C98, 2
+ end
+
+RustboroCity_EventScript_14C401:: @ 814C401
+ msgbox RustboroCity_Text_166CFA, 3
+ end
+
+RustboroCity_EventScript_14C40A:: @ 814C40A
+ msgbox RustboroCity_Text_167374, 3
+ end
+
+RustboroCity_EventScript_14C413:: @ 814C413
+ msgbox RustboroCity_Text_1673FA, 3
+ end
+
+RustboroCity_EventScript_14C41C:: @ 814C41C
+ msgbox RustboroCity_Text_167439, 3
+ end
+
+@ 814C425
+ msgbox RustboroCity_Text_167485, 3
+ end
+
+RustboroCity_EventScript_14C42E:: @ 814C42E
+ msgbox RustboroCity_Text_1674DD, 3
+ end
+
+RustboroCity_EventScript_14C437:: @ 814C437
+ msgbox RustboroCity_Text_167525, 3
+ end
+
+RustboroCity_EventScript_14C440:: @ 814C440
+ msgbox RustboroCity_Text_167568, 3
+ end
+
+RustboroCity_EventScript_14C449:: @ 814C449
+ lock
+ faceplayer
+ msgbox RustboroCity_Text_166D59, 4
+ applymovement 7, RustboroCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+RustboroCity_EventScript_14C45F:: @ 814C45F
+ lock
+ faceplayer
+ msgbox RustboroCity_Text_166DB0, 4
+ applymovement 8, RustboroCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+RustboroCity_EventScript_14C475:: @ 814C475
+ lock
+ faceplayer
+ msgbox RustboroCity_Text_166DEE, 4
+ release
+ end
+
+RustboroCity_EventScript_14C481:: @ 814C481
+ lockall
+ setobjectxyperm 9, 14, 21
+ setobjectmovementtype 9, 10
+ setvar VAR_SPECIAL_4, 0
+ goto RustboroCity_EventScript_14C4F4
+ end
+
+RustboroCity_EventScript_14C498:: @ 814C498
+ lockall
+ setobjectxyperm 9, 14, 21
+ setobjectmovementtype 9, 10
+ setvar VAR_SPECIAL_4, 1
+ goto RustboroCity_EventScript_14C4F4
+ end
+
+RustboroCity_EventScript_14C4AF:: @ 814C4AF
+ lockall
+ setobjectxyperm 9, 14, 21
+ setobjectmovementtype 9, 10
+ setvar VAR_SPECIAL_4, 2
+ goto RustboroCity_EventScript_14C4F4
+ end
+
+RustboroCity_EventScript_14C4C6:: @ 814C4C6
+ lockall
+ setobjectxyperm 9, 14, 21
+ setobjectmovementtype 9, 10
+ setvar VAR_SPECIAL_4, 3
+ goto RustboroCity_EventScript_14C4F4
+ end
+
+RustboroCity_EventScript_14C4DD:: @ 814C4DD
+ lockall
+ setobjectxyperm 9, 14, 21
+ setobjectmovementtype 9, 10
+ setvar VAR_SPECIAL_4, 4
+ goto RustboroCity_EventScript_14C4F4
+ end
+
+RustboroCity_EventScript_14C4F4:: @ 814C4F4
+ msgbox RustboroCity_Text_166E65, 4
+ closemessage
+ addobject 10
+ addobject 9
+ applymovement 10, RustboroCity_Movement_14C5C2
+ waitmovement 0
+ removeobject 10
+ applymovement 9, RustboroCity_Movement_14C5D3
+ waitmovement 0
+ msgbox RustboroCity_Text_166E7E, 4
+ closemessage
+ applymovement 9, RustboroCity_Movement_14C5DB
+ waitmovement 0
+ removeobject 9
+ setobjectxyperm 9, 30, 10
+ clearflag FLAG_HIDE_DEVON_RUSTBORO
+ setflag FLAG_DEVON_GOODS_STOLEN
+ setvar VAR_RUSTBORO_STATE, 2
+ setvar VAR_RUSTURF_TUNNEL_STATE, 2
+ setvar VAR_ROUTE116_STATE, 1
+ clearflag FLAG_HIDE_BRINEY_ROUTE116
+ clearflag FLAG_HIDE_PEEKO_RUSTURF_TUNNEL
+ clearflag FLAG_HIDE_GRUNT_RUSTURF_TUNNEL
+ setflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE
+ setflag FLAG_HIDE_PEEKO_BRINEY_HOUSE
+ releaseall
+ end
+
+@ 814C55D
+ msgbox RustboroCity_Text_166F6B, 4
+ return
+
+@ 814C566
+ msgbox RustboroCity_Text_166FB4, 4
+ return
+
+@ 814C56F
+ applymovement 9, RustboroCity_Movement_14C5E3
+ waitmovement 0
+ return
+
+@ 814C57A
+ applymovement 9, RustboroCity_Movement_14C5E7
+ waitmovement 0
+ return
+
+@ 814C585
+ applymovement 9, RustboroCity_Movement_14C5EC
+ waitmovement 0
+ return
+
+@ 814C590
+ applymovement 9, RustboroCity_Movement_14C5F1
+ waitmovement 0
+ return
+
+@ 814C59B
+ applymovement 9, RustboroCity_Movement_14C5F7
+ waitmovement 0
+ applymovement 255, RustboroCity_Movement_1A0841
+ waitmovement 0
+ return
+
+@ 814C5B0
+ walk_fastest_right
+ walk_fastest_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+RustboroCity_Movement_14C5C2:: @ 814C5C2
+ walk_fastest_right
+ walk_fastest_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ walk_fast_up
+ end_movement
+
+RustboroCity_Movement_14C5D3:: @ 814C5D3
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+RustboroCity_Movement_14C5DB:: @ 814C5DB
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+RustboroCity_Movement_14C5E3:: @ 814C5E3
+ walk_down
+ walk_right
+ walk_right
+ end_movement
+
+RustboroCity_Movement_14C5E7:: @ 814C5E7
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ end_movement
+
+RustboroCity_Movement_14C5EC:: @ 814C5EC
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ end_movement
+
+RustboroCity_Movement_14C5F1:: @ 814C5F1
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ end_movement
+
+RustboroCity_Movement_14C5F7:: @ 814C5F7
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+RustboroCity_EventScript_14C5FF:: @ 814C5FF
+ lock
+ faceplayer
+ goto_if_set FLAG_RECOVERED_DEVON_GOODS, RustboroCity_EventScript_14C614
+ msgbox RustboroCity_Text_166F6B, 4
+ release
+ end
+
+RustboroCity_EventScript_14C614:: @ 814C614
+ waitse
+ setvar VAR_TEMP_1, 4
+ goto RustboroCity_EventScript_14C77D
+ end
+
+RustboroCity_EventScript_14C620:: @ 814C620
+ lockall
+ setvar VAR_TEMP_1, 0
+ goto RustboroCity_EventScript_14C650
+ end
+
+RustboroCity_EventScript_14C62C:: @ 814C62C
+ lockall
+ setvar VAR_TEMP_1, 1
+ goto RustboroCity_EventScript_14C650
+ end
+
+RustboroCity_EventScript_14C638:: @ 814C638
+ lockall
+ setvar VAR_TEMP_1, 2
+ goto RustboroCity_EventScript_14C650
+ end
+
+RustboroCity_EventScript_14C644:: @ 814C644
+ lockall
+ setvar VAR_TEMP_1, 3
+ goto RustboroCity_EventScript_14C650
+ end
+
+RustboroCity_EventScript_14C650:: @ 814C650
+ compare VAR_TEMP_1, 0
+ call_if_eq RustboroCity_EventScript_14C691
+ compare VAR_TEMP_1, 1
+ call_if_eq RustboroCity_EventScript_14C6BD
+ compare VAR_TEMP_1, 2
+ call_if_eq RustboroCity_EventScript_14C6E9
+ compare VAR_TEMP_1, 3
+ call_if_eq RustboroCity_EventScript_14C715
+ setflag FLAG_UNKNOWN_9F
+ setvar VAR_RUSTBORO_STATE, 3
+ moveobjectoffscreen 9
+ msgbox RustboroCity_Text_166EA5, 4
+ releaseall
+ end
+
+RustboroCity_EventScript_14C691:: @ 814C691
+ applymovement 9, RustboroCity_Movement_1A0841
+ waitmovement 0
+ playse SE_PIN
+ applymovement 9, RustboroCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_1A0835
+ waitmovement 0
+ applymovement 255, RustboroCity_Movement_1A0845
+ waitmovement 0
+ return
+
+RustboroCity_EventScript_14C6BD:: @ 814C6BD
+ applymovement 9, RustboroCity_Movement_1A083F
+ waitmovement 0
+ playse SE_PIN
+ applymovement 9, RustboroCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_1A0835
+ waitmovement 0
+ applymovement 255, RustboroCity_Movement_1A0843
+ waitmovement 0
+ return
+
+RustboroCity_EventScript_14C6E9:: @ 814C6E9
+ applymovement 9, RustboroCity_Movement_1A0845
+ waitmovement 0
+ playse SE_PIN
+ applymovement 9, RustboroCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_1A0835
+ waitmovement 0
+ applymovement 255, RustboroCity_Movement_1A0841
+ waitmovement 0
+ return
+
+RustboroCity_EventScript_14C715:: @ 814C715
+ applymovement 9, RustboroCity_Movement_1A0845
+ waitmovement 0
+ playse SE_PIN
+ applymovement 9, RustboroCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_1A0835
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_14C74B
+ waitmovement 0
+ applymovement 255, RustboroCity_Movement_1A0841
+ waitmovement 0
+ return
+
+RustboroCity_Movement_14C74B:: @ 814C74B
+ walk_down
+ end_movement
+
+RustboroCity_EventScript_14C74D:: @ 814C74D
+ lockall
+ setvar VAR_TEMP_1, 0
+ goto RustboroCity_EventScript_14C77D
+ end
+
+RustboroCity_EventScript_14C759:: @ 814C759
+ lockall
+ setvar VAR_TEMP_1, 1
+ goto RustboroCity_EventScript_14C77D
+ end
+
+RustboroCity_EventScript_14C765:: @ 814C765
+ lockall
+ setvar VAR_TEMP_1, 2
+ goto RustboroCity_EventScript_14C77D
+ end
+
+RustboroCity_EventScript_14C771:: @ 814C771
+ lockall
+ setvar VAR_TEMP_1, 3
+ goto RustboroCity_EventScript_14C77D
+ end
+
+RustboroCity_EventScript_14C77D:: @ 814C77D
+ compare VAR_TEMP_1, 0
+ call_if_eq RustboroCity_EventScript_14C7FE
+ compare VAR_TEMP_1, 1
+ call_if_eq RustboroCity_EventScript_14C82A
+ compare VAR_TEMP_1, 2
+ call_if_eq RustboroCity_EventScript_14C856
+ compare VAR_TEMP_1, 3
+ call_if_eq RustboroCity_EventScript_14C882
+ compare VAR_TEMP_1, 4
+ call_if_eq RustboroCity_EventScript_14C8B8
+ msgbox RustboroCity_Text_166FB4, 4
+ giveitem_std ITEM_GREAT_BALL
+ compare RESULT, 0
+ call_if_eq RustboroCity_EventScript_14C7F5
+ msgbox RustboroCity_Text_16707F, 4
+ closemessage
+ setflag FLAG_RETURNED_DEVON_GOODS
+ setflag FLAG_HIDE_DEVON_RUSTBORO
+ setvar VAR_RUSTBORO_STATE, 5
+ delay 30
+ warp MAP_RUSTBORO_CITY_DEVON_CORP_3F, 255, 2, 2
+ waitstate
+ releaseall
+ end
+
+RustboroCity_EventScript_14C7F5:: @ 814C7F5
+ msgbox RustboroCity_Text_16704C, 4
+ return
+
+RustboroCity_EventScript_14C7FE:: @ 814C7FE
+ applymovement 9, RustboroCity_Movement_1A0841
+ waitmovement 0
+ playse SE_PIN
+ applymovement 9, RustboroCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_1A0835
+ waitmovement 0
+ applymovement 255, RustboroCity_Movement_1A0845
+ waitmovement 0
+ return
+
+RustboroCity_EventScript_14C82A:: @ 814C82A
+ applymovement 9, RustboroCity_Movement_1A0843
+ waitmovement 0
+ playse SE_PIN
+ applymovement 9, RustboroCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_1A0835
+ waitmovement 0
+ applymovement 255, RustboroCity_Movement_1A083F
+ waitmovement 0
+ return
+
+RustboroCity_EventScript_14C856:: @ 814C856
+ applymovement 9, RustboroCity_Movement_1A0845
+ waitmovement 0
+ playse SE_PIN
+ applymovement 9, RustboroCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_1A0835
+ waitmovement 0
+ applymovement 255, RustboroCity_Movement_1A0841
+ waitmovement 0
+ return
+
+RustboroCity_EventScript_14C882:: @ 814C882
+ applymovement 9, RustboroCity_Movement_1A0845
+ waitmovement 0
+ playse SE_PIN
+ applymovement 9, RustboroCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_1A0835
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_14C74B
+ waitmovement 0
+ applymovement 255, RustboroCity_Movement_1A0841
+ waitmovement 0
+ return
+
+RustboroCity_EventScript_14C8B8:: @ 814C8B8
+ applymovement 9, RustboroCity_Movement_1A083F
+ waitmovement 0
+ playse SE_PIN
+ applymovement 9, RustboroCity_Movement_1A0833
+ waitmovement 0
+ applymovement 9, RustboroCity_Movement_1A0835
+ waitmovement 0
+ return
+
+RustboroCity_EventScript_14C8DA:: @ 814C8DA
+ lock
+ faceplayer
+ goto_if_set FLAG_MET_RIVAL_RUSTBORO, RustboroCity_EventScript_14C917
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq RustboroCity_EventScript_14C8FD
+ compare RESULT, 1
+ goto_if_eq RustboroCity_EventScript_14C90A
+ end
+
+RustboroCity_EventScript_14C8FD:: @ 814C8FD
+ setflag FLAG_MET_RIVAL_RUSTBORO
+ msgbox RustboroCity_Text_1670A7, 4
+ release
+ end
+
+RustboroCity_EventScript_14C90A:: @ 814C90A
+ setflag FLAG_MET_RIVAL_RUSTBORO
+ msgbox RustboroCity_Text_167213, 4
+ release
+ end
+
+RustboroCity_EventScript_14C917:: @ 814C917
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq RustboroCity_EventScript_14C92F
+ compare RESULT, 1
+ goto_if_eq RustboroCity_EventScript_14C939
+ end
+
+RustboroCity_EventScript_14C92F:: @ 814C92F
+ msgbox RustboroCity_Text_16713C, 4
+ release
+ end
+
+RustboroCity_EventScript_14C939:: @ 814C939
+ msgbox RustboroCity_Text_1672B8, 4
+ release
+ end
diff --git a/data/maps/RustboroCity_CuttersHouse/scripts.inc b/data/maps/RustboroCity_CuttersHouse/scripts.inc
new file mode 100644
index 000000000..b43e0aafe
--- /dev/null
+++ b/data/maps/RustboroCity_CuttersHouse/scripts.inc
@@ -0,0 +1,22 @@
+RustboroCity_CuttersHouse_MapScripts:: @ 8157D26
+ .byte 0
+
+RustboroCity_CuttersHouse_EventScript_157D27:: @ 8157D27
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_HM01, RustboroCity_CuttersHouse_EventScript_157D53
+ msgbox RustboroCity_CuttersHouse_Text_18509C, 4
+ giveitem_std ITEM_HM01_CUT
+ setflag FLAG_RECEIVED_HM01
+ msgbox RustboroCity_CuttersHouse_Text_1851C9, 4
+ release
+ end
+
+RustboroCity_CuttersHouse_EventScript_157D53:: @ 8157D53
+ msgbox RustboroCity_CuttersHouse_Text_1851C9, 4
+ release
+ end
+
+RustboroCity_CuttersHouse_EventScript_157D5D:: @ 8157D5D
+ msgbox RustboroCity_CuttersHouse_Text_1852B3, 2
+ end
diff --git a/data/maps/RustboroCity_DevonCorp_1F/scripts.inc b/data/maps/RustboroCity_DevonCorp_1F/scripts.inc
new file mode 100644
index 000000000..7b56c72a2
--- /dev/null
+++ b/data/maps/RustboroCity_DevonCorp_1F/scripts.inc
@@ -0,0 +1,71 @@
+RustboroCity_DevonCorp_1F_MapScripts:: @ 8157406
+ map_script 3, RustboroCity_DevonCorp_1F_MapScript1_15740C
+ .byte 0
+
+RustboroCity_DevonCorp_1F_MapScript1_15740C:: @ 815740C
+ call_if_unset FLAG_RETURNED_DEVON_GOODS, RustboroCity_DevonCorp_1F_EventScript_157416
+ end
+
+RustboroCity_DevonCorp_1F_EventScript_157416:: @ 8157416
+ setobjectxyperm 2, 14, 2
+ setobjectmovementtype 2, 8
+ return
+
+RustboroCity_DevonCorp_1F_EventScript_157422:: @ 8157422
+ lock
+ faceplayer
+ goto_if_set FLAG_RETURNED_DEVON_GOODS, RustboroCity_DevonCorp_1F_EventScript_15744A
+ goto_if_set FLAG_DEVON_GOODS_STOLEN, RustboroCity_DevonCorp_1F_EventScript_157440
+ msgbox RustboroCity_DevonCorp_1F_Text_1829A4, 4
+ release
+ end
+
+RustboroCity_DevonCorp_1F_EventScript_157440:: @ 8157440
+ msgbox RustboroCity_DevonCorp_1F_Text_182A19, 4
+ release
+ end
+
+RustboroCity_DevonCorp_1F_EventScript_15744A:: @ 815744A
+ msgbox RustboroCity_DevonCorp_1F_Text_182AB3, 4
+ release
+ end
+
+RustboroCity_DevonCorp_1F_EventScript_157454:: @ 8157454
+ lock
+ faceplayer
+ goto_if_set FLAG_RETURNED_DEVON_GOODS, RustboroCity_DevonCorp_1F_EventScript_15747B
+ goto_if_set FLAG_RECOVERED_DEVON_GOODS, RustboroCity_DevonCorp_1F_EventScript_157485
+ goto_if_set FLAG_DEVON_GOODS_STOLEN, RustboroCity_DevonCorp_1F_EventScript_157485
+ msgbox RustboroCity_DevonCorp_1F_Text_182AF0, 4
+ release
+ end
+
+RustboroCity_DevonCorp_1F_EventScript_15747B:: @ 815747B
+ msgbox RustboroCity_DevonCorp_1F_Text_182B5A, 4
+ release
+ end
+
+RustboroCity_DevonCorp_1F_EventScript_157485:: @ 8157485
+ msgbox RustboroCity_DevonCorp_1F_Text_182B2D, 4
+ release
+ end
+
+RustboroCity_DevonCorp_1F_EventScript_15748F:: @ 815748F
+ lock
+ faceplayer
+ goto_if_set FLAG_RETURNED_DEVON_GOODS, RustboroCity_DevonCorp_1F_EventScript_1574B6
+ goto_if_set FLAG_RECOVERED_DEVON_GOODS, RustboroCity_DevonCorp_1F_EventScript_1574C0
+ goto_if_set FLAG_DEVON_GOODS_STOLEN, RustboroCity_DevonCorp_1F_EventScript_1574C0
+ msgbox RustboroCity_DevonCorp_1F_Text_1828EE, 4
+ release
+ end
+
+RustboroCity_DevonCorp_1F_EventScript_1574B6:: @ 81574B6
+ msgbox RustboroCity_DevonCorp_1F_Text_1828EE, 4
+ release
+ end
+
+RustboroCity_DevonCorp_1F_EventScript_1574C0:: @ 81574C0
+ msgbox RustboroCity_DevonCorp_1F_Text_18295E, 4
+ release
+ end
diff --git a/data/maps/RustboroCity_DevonCorp_2F/scripts.inc b/data/maps/RustboroCity_DevonCorp_2F/scripts.inc
new file mode 100644
index 000000000..b7b36dd6d
--- /dev/null
+++ b/data/maps/RustboroCity_DevonCorp_2F/scripts.inc
@@ -0,0 +1,175 @@
+RustboroCity_DevonCorp_2F_MapScripts:: @ 81574CA
+ map_script 3, RustboroCity_DevonCorp_2F_MapScript1_1574D0
+ .byte 0
+
+RustboroCity_DevonCorp_2F_MapScript1_1574D0:: @ 81574D0
+ compare VAR_FOSSIL_RESURRECTION_STATE, 1
+ call_if_eq RustboroCity_DevonCorp_2F_EventScript_1574DC
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_1574DC:: @ 81574DC
+ setvar VAR_FOSSIL_RESURRECTION_STATE, 2
+ return
+
+RustboroCity_DevonCorp_2F_EventScript_1574E2:: @ 81574E2
+ lock
+ faceplayer
+ compare VAR_FOSSIL_RESURRECTION_STATE, 1
+ call_if_eq RustboroCity_DevonCorp_2F_EventScript_1574DC
+ msgbox RustboroCity_DevonCorp_2F_Text_182B81, 4
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_1574F9:: @ 81574F9
+ lock
+ faceplayer
+ compare VAR_FOSSIL_RESURRECTION_STATE, 1
+ call_if_eq RustboroCity_DevonCorp_2F_EventScript_1574DC
+ goto_if_set FLAG_MET_DEVON_EMPLOYEE, RustboroCity_DevonCorp_2F_EventScript_157519
+ msgbox RustboroCity_DevonCorp_2F_Text_182BD8, 4
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_157519:: @ 8157519
+ msgbox RustboroCity_DevonCorp_2F_Text_182C25, 4
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_157523:: @ 8157523
+ lock
+ faceplayer
+ compare VAR_FOSSIL_RESURRECTION_STATE, 1
+ call_if_eq RustboroCity_DevonCorp_2F_EventScript_1574DC
+ goto_if_set FLAG_RECEIVED_POKENAV, RustboroCity_DevonCorp_2F_EventScript_157543
+ msgbox RustboroCity_DevonCorp_2F_Text_182D2A, 4
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_157543:: @ 8157543
+ msgbox RustboroCity_DevonCorp_2F_Text_182D7E, 4
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_15754D:: @ 815754D
+ lock
+ faceplayer
+ compare VAR_FOSSIL_RESURRECTION_STATE, 1
+ call_if_eq RustboroCity_DevonCorp_2F_EventScript_1574DC
+ msgbox RustboroCity_DevonCorp_2F_Text_182E6B, 4
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_157564:: @ 8157564
+ lock
+ faceplayer
+ compare VAR_FOSSIL_RESURRECTION_STATE, 2
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_15764A
+ compare VAR_FOSSIL_RESURRECTION_STATE, 1
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157640
+ msgbox RustboroCity_DevonCorp_2F_Text_182ED5, 4
+ checkitem ITEM_ROOT_FOSSIL, 1
+ compare RESULT, 1
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_1575A6
+ checkitem ITEM_CLAW_FOSSIL, 1
+ compare RESULT, 1
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_1575EE
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_1575A6:: @ 81575A6
+ closemessage
+ playse SE_PIN
+ applymovement 5, RustboroCity_DevonCorp_2F_Movement_1A0833
+ waitmovement 0
+ applymovement 5, RustboroCity_DevonCorp_2F_Movement_1A0835
+ waitmovement 0
+ msgbox RustboroCity_DevonCorp_2F_Text_182F35, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157636
+ bufferitemname 0, ITEM_ROOT_FOSSIL
+ msgbox RustboroCity_DevonCorp_2F_Text_183023, 4
+ takeitem ITEM_ROOT_FOSSIL, 1
+ setvar VAR_FOSSIL_RESURRECTION_STATE, 1
+ setvar VAR_WHICH_FOSSIL_REVIVED, 1
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_1575EE:: @ 81575EE
+ closemessage
+ playse SE_PIN
+ applymovement 5, RustboroCity_DevonCorp_2F_Movement_1A0833
+ waitmovement 0
+ applymovement 5, RustboroCity_DevonCorp_2F_Movement_1A0835
+ waitmovement 0
+ msgbox RustboroCity_DevonCorp_2F_Text_182F35, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157636
+ bufferitemname 0, ITEM_CLAW_FOSSIL
+ msgbox RustboroCity_DevonCorp_2F_Text_183023, 4
+ takeitem ITEM_CLAW_FOSSIL, 1
+ setvar VAR_FOSSIL_RESURRECTION_STATE, 1
+ setvar VAR_WHICH_FOSSIL_REVIVED, 2
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_157636:: @ 8157636
+ msgbox RustboroCity_DevonCorp_2F_Text_182FD7, 4
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_157640:: @ 8157640
+ msgbox RustboroCity_DevonCorp_2F_Text_183072, 4
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_15764A:: @ 815764A
+ compare VAR_WHICH_FOSSIL_REVIVED, 1
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157661
+ compare VAR_WHICH_FOSSIL_REVIVED, 2
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_1576B4
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_157661:: @ 8157661
+ bufferspeciesname 1, SPECIES_LILEEP
+ msgbox RustboroCity_DevonCorp_2F_Text_183124, 4
+ getpartysize
+ compare RESULT, 6
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157707
+ copyvar VAR_SPECIAL_4, RESULT
+ setvar VAR_FOSSIL_RESURRECTION_STATE, 0
+ setflag FLAG_RECEIVED_FOSSIL_MON
+ playfanfare BGM_FANFA4
+ message RustboroCity_DevonCorp_2F_Text_18319E
+ waitfanfare
+ waitmessage
+ givemon SPECIES_LILEEP, 20, ITEM_NONE, 0x0, 0x0, 0
+ msgbox RustboroCity_DevonCorp_2F_Text_1A1102, MSGBOX_YESNO
+ compare RESULT, YES
+ call_if_eq RustboroCity_DevonCorp_2F_EventScript_1A0678
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_1576B4:: @ 81576B4
+ bufferspeciesname 1, SPECIES_ANORITH
+ msgbox RustboroCity_DevonCorp_2F_Text_183124, 4
+ getpartysize
+ compare RESULT, 6
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157707
+ copyvar VAR_SPECIAL_4, RESULT
+ setvar VAR_FOSSIL_RESURRECTION_STATE, 0
+ setflag FLAG_RECEIVED_FOSSIL_MON
+ playfanfare BGM_FANFA4
+ message RustboroCity_DevonCorp_2F_Text_18319E
+ waitfanfare
+ waitmessage
+ givemon SPECIES_ANORITH, 20, ITEM_NONE, 0x0, 0x0, 0
+ msgbox RustboroCity_DevonCorp_2F_Text_1A1102, MSGBOX_YESNO
+ compare RESULT, YES
+ call_if_eq RustboroCity_DevonCorp_2F_EventScript_1A0678
+ release
+ end
+
+RustboroCity_DevonCorp_2F_EventScript_157707:: @ 8157707
+ msgbox RustboroCity_DevonCorp_2F_Text_1831C8, 4
+ release
+ end
diff --git a/data/maps/RustboroCity_DevonCorp_3F/scripts.inc b/data/maps/RustboroCity_DevonCorp_3F/scripts.inc
new file mode 100644
index 000000000..e68269437
--- /dev/null
+++ b/data/maps/RustboroCity_DevonCorp_3F/scripts.inc
@@ -0,0 +1,194 @@
+RustboroCity_DevonCorp_3F_MapScripts:: @ 8157711
+ map_script 3, RustboroCity_DevonCorp_3F_MapScript1_157721
+ map_script 4, RustboroCity_DevonCorp_3F_MapScript2_157739
+ map_script 2, RustboroCity_DevonCorp_3F_MapScript2_157748
+ .byte 0
+
+RustboroCity_DevonCorp_3F_MapScript1_157721:: @ 8157721
+ compare VAR_DEVON_CORP_3F_STATE, 0
+ call_if_eq RustboroCity_DevonCorp_3F_EventScript_15772D
+ end
+
+RustboroCity_DevonCorp_3F_EventScript_15772D:: @ 815772D
+ setobjectxyperm 2, 3, 2
+ setobjectmovementtype 2, 9
+ return
+
+RustboroCity_DevonCorp_3F_MapScript2_157739:: @ 8157739
+ map_script_2 VAR_DEVON_CORP_3F_STATE, 0, RustboroCity_DevonCorp_3F_EventScript_157743
+ .2byte 0
+
+RustboroCity_DevonCorp_3F_EventScript_157743:: @ 8157743
+ turnobject 255, 4
+ end
+
+RustboroCity_DevonCorp_3F_MapScript2_157748:: @ 8157748
+ map_script_2 VAR_DEVON_CORP_3F_STATE, 0, RustboroCity_DevonCorp_3F_EventScript_157752
+ .2byte 0
+
+RustboroCity_DevonCorp_3F_EventScript_157752:: @ 8157752
+ lockall
+ msgbox RustboroCity_DevonCorp_3F_Text_18374C, 4
+ closemessage
+ applymovement 2, RustboroCity_DevonCorp_3F_Movement_157815
+ waitmovement 0
+ delay 80
+ applymovement 2, RustboroCity_DevonCorp_3F_Movement_15781E
+ waitmovement 0
+ msgbox RustboroCity_DevonCorp_3F_Text_183903, 4
+ closemessage
+ playbgm BGM_TSURETEK, FALSE
+ applymovement 2, RustboroCity_DevonCorp_3F_Movement_157803
+ applymovement 255, RustboroCity_DevonCorp_3F_Movement_157827
+ waitmovement 0
+ msgbox RustboroCity_DevonCorp_3F_Text_18394A, 4
+ closemessage
+ fadedefaultbgm
+ applymovement 2, RustboroCity_DevonCorp_3F_Movement_157812
+ applymovement 255, RustboroCity_DevonCorp_3F_Movement_157835
+ waitmovement 0
+ msgbox RustboroCity_DevonCorp_3F_Text_18320B, 4
+ giveitem_std ITEM_LETTER
+ msgbox RustboroCity_DevonCorp_3F_Text_18337E, 4
+ playfanfare BGM_FANFA4
+ message RustboroCity_DevonCorp_3F_Text_183422
+ waitfanfare
+ waitmessage
+ setflag FLAG_SYS_POKENAV_GET
+ setflag FLAG_RECEIVED_POKENAV
+ msgbox RustboroCity_DevonCorp_3F_Text_183439, 4
+ setflag FLAG_HIDE_TUNNER_DIGGER_ROUTE116
+ clearflag FLAG_HIDE_BOYFRIEND_RUSTURF_TUNNEL
+ clearflag FLAG_HIDE_GIRLFRIEND_RUSTURF_TUNNEL
+ clearflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE
+ clearflag FLAG_HIDE_PEEKO_BRINEY_HOUSE
+ setvar VAR_BRINEY_LOCATION, 1
+ clearflag FLAG_HIDE_RIVAL_RUSTBORO
+ setvar VAR_DEVON_CORP_3F_STATE, 1
+ releaseall
+ end
+
+@ 81577FE
+ walk_up
+ walk_up
+ walk_up
+ walk_in_place_fastest_left
+ end_movement
+
+RustboroCity_DevonCorp_3F_Movement_157803:: @ 8157803
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_in_place_fastest_left
+ end_movement
+
+RustboroCity_DevonCorp_3F_Movement_157812:: @ 8157812
+ delay_16
+ walk_in_place_fastest_down
+ end_movement
+
+RustboroCity_DevonCorp_3F_Movement_157815:: @ 8157815
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+RustboroCity_DevonCorp_3F_Movement_15781E:: @ 815781E
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+RustboroCity_DevonCorp_3F_Movement_157827:: @ 8157827
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+RustboroCity_DevonCorp_3F_Movement_157835:: @ 8157835
+ delay_16
+ delay_16
+ walk_down
+ walk_down
+ walk_in_place_fastest_right
+ end_movement
+
+RustboroCity_DevonCorp_3F_EventScript_15783B:: @ 815783B
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_EXP_SHARE, RustboroCity_DevonCorp_3F_EventScript_15789B
+ goto_if_set FLAG_DELIVERED_STEVEN_LETTER, RustboroCity_DevonCorp_3F_EventScript_157864
+ msgbox RustboroCity_DevonCorp_3F_Text_18351E, 4
+ closemessage
+ applymovement LAST_TALKED, RustboroCity_DevonCorp_3F_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+RustboroCity_DevonCorp_3F_EventScript_157864:: @ 8157864
+ msgbox RustboroCity_DevonCorp_3F_Text_18353E, 4
+ giveitem_std ITEM_EXP_SHARE
+ compare RESULT, 0
+ goto_if_eq RustboroCity_DevonCorp_3F_EventScript_1A029B
+ setflag FLAG_RECEIVED_EXP_SHARE
+ msgbox RustboroCity_DevonCorp_3F_Text_1835B3, 4
+ closemessage
+ applymovement LAST_TALKED, RustboroCity_DevonCorp_3F_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+RustboroCity_DevonCorp_3F_EventScript_15789B:: @ 815789B
+ msgbox RustboroCity_DevonCorp_3F_Text_18368D, 4
+ closemessage
+ applymovement LAST_TALKED, RustboroCity_DevonCorp_3F_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+RustboroCity_DevonCorp_3F_EventScript_1578B0:: @ 81578B0
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_REPEAT_BALL, RustboroCity_DevonCorp_3F_EventScript_1578C5
+ msgbox RustboroCity_DevonCorp_3F_Text_18395C, 4
+ release
+ end
+
+RustboroCity_DevonCorp_3F_EventScript_1578C5:: @ 81578C5
+ msgbox RustboroCity_DevonCorp_3F_Text_1839A3, 4
+ release
+ end
+
+RustboroCity_DevonCorp_3F_EventScript_1578CF:: @ 81578CF
+ msgbox RustboroCity_DevonCorp_3F_Text_183A04, 3
+ end
diff --git a/data/maps/RustboroCity_Flat1_1F/scripts.inc b/data/maps/RustboroCity_Flat1_1F/scripts.inc
new file mode 100644
index 000000000..dbbdf22b7
--- /dev/null
+++ b/data/maps/RustboroCity_Flat1_1F/scripts.inc
@@ -0,0 +1,10 @@
+RustboroCity_Flat1_1F_MapScripts:: @ 8157C5F
+ .byte 0
+
+RustboroCity_Flat1_1F_EventScript_157C60:: @ 8157C60
+ msgbox RustboroCity_Flat1_1F_Text_184DB4, 2
+ end
+
+RustboroCity_Flat1_1F_EventScript_157C69:: @ 8157C69
+ msgbox RustboroCity_Flat1_1F_Text_184DE9, 2
+ end
diff --git a/data/maps/RustboroCity_Flat1_2F/scripts.inc b/data/maps/RustboroCity_Flat1_2F/scripts.inc
new file mode 100644
index 000000000..53672bb42
--- /dev/null
+++ b/data/maps/RustboroCity_Flat1_2F/scripts.inc
@@ -0,0 +1,6 @@
+RustboroCity_Flat1_2F_MapScripts:: @ 8157C72
+ .byte 0
+
+RustboroCity_Flat1_2F_EventScript_157C73:: @ 8157C73
+ msgbox RustboroCity_Flat1_2F_Text_184E0D, 2
+ end
diff --git a/data/maps/RustboroCity_Flat2_1F/scripts.inc b/data/maps/RustboroCity_Flat2_1F/scripts.inc
new file mode 100644
index 000000000..a6ba54ce7
--- /dev/null
+++ b/data/maps/RustboroCity_Flat2_1F/scripts.inc
@@ -0,0 +1,16 @@
+RustboroCity_Flat2_1F_MapScripts:: @ 8157D79
+ .byte 0
+
+RustboroCity_Flat2_1F_EventScript_157D7A:: @ 8157D7A
+ msgbox RustboroCity_Flat2_1F_Text_1853DD, 2
+ end
+
+RustboroCity_Flat2_1F_EventScript_157D83:: @ 8157D83
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_SKITTY, 0
+ msgbox RustboroCity_Flat2_1F_Text_185410, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/RustboroCity_Flat2_2F/scripts.inc b/data/maps/RustboroCity_Flat2_2F/scripts.inc
new file mode 100644
index 000000000..5ed9ac0ef
--- /dev/null
+++ b/data/maps/RustboroCity_Flat2_2F/scripts.inc
@@ -0,0 +1,23 @@
+RustboroCity_Flat2_2F_MapScripts:: @ 8157D96
+ .byte 0
+
+RustboroCity_Flat2_2F_EventScript_157D97:: @ 8157D97
+ msgbox RustboroCity_Flat2_2F_Text_185421, 2
+ end
+
+RustboroCity_Flat2_2F_EventScript_157DA0:: @ 8157DA0
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_PREMIER_BALL_RUSTBORO, RustboroCity_Flat2_2F_EventScript_157DCF
+ msgbox RustboroCity_Flat2_2F_Text_185461, 4
+ giveitem_std ITEM_PREMIER_BALL
+ compare RESULT, 0
+ goto_if_eq RustboroCity_Flat2_2F_EventScript_1A029B
+ setflag FLAG_RECEIVED_PREMIER_BALL_RUSTBORO
+ release
+ end
+
+RustboroCity_Flat2_2F_EventScript_157DCF:: @ 8157DCF
+ msgbox RustboroCity_Flat2_2F_Text_1854C4, 4
+ release
+ end
diff --git a/data/maps/RustboroCity_Flat2_3F/scripts.inc b/data/maps/RustboroCity_Flat2_3F/scripts.inc
new file mode 100644
index 000000000..d3b05b5bf
--- /dev/null
+++ b/data/maps/RustboroCity_Flat2_3F/scripts.inc
@@ -0,0 +1,10 @@
+RustboroCity_Flat2_3F_MapScripts:: @ 8157DD9
+ .byte 0
+
+RustboroCity_Flat2_3F_EventScript_157DDA:: @ 8157DDA
+ msgbox RustboroCity_Flat2_3F_Text_18551D, 2
+ end
+
+RustboroCity_Flat2_3F_EventScript_157DE3:: @ 8157DE3
+ msgbox RustboroCity_Flat2_3F_Text_18554D, 2
+ end
diff --git a/data/maps/RustboroCity_Gym/scripts.inc b/data/maps/RustboroCity_Gym/scripts.inc
new file mode 100644
index 000000000..307617e50
--- /dev/null
+++ b/data/maps/RustboroCity_Gym/scripts.inc
@@ -0,0 +1,79 @@
+RustboroCity_Gym_MapScripts:: @ 81578D8
+ .byte 0
+
+RustboroCity_Gym_EventScript_1578D9:: @ 81578D9
+ trainerbattle 1, OPPONENT_ROXANNE, 0, RustboroCity_Gym_Text_183EE5, RustboroCity_Gym_Text_183FC4, RustboroCity_Gym_EventScript_1578FE
+ goto_if_unset FLAG_RECEIVED_TM39, RustboroCity_Gym_EventScript_15793C
+ msgbox RustboroCity_Gym_Text_184252, 4
+ release
+ end
+
+RustboroCity_Gym_EventScript_1578FE:: @ 81578FE
+ message RustboroCity_Gym_Text_1840AB
+ waitmessage
+ call RustboroCity_Gym_EventScript_1A02C5
+ msgbox RustboroCity_Gym_Text_1840D5, 4
+ setflag FLAG_DEFEATED_RUSTBORO_GYM
+ setflag FLAG_BADGE01_GET
+ setvar VAR_RUSTBORO_STATE, 1
+ addvar VAR_PETALBURG_GYM_STATE, 1
+ setvar VAR_SPECIAL_8, 1
+ call RustboroCity_Gym_EventScript_1A01C0
+ compare VAR_PETALBURG_GYM_STATE, 6
+ call_if_eq RustboroCity_Gym_EventScript_1A00FB
+ goto RustboroCity_Gym_EventScript_15793C
+ end
+
+RustboroCity_Gym_EventScript_15793C:: @ 815793C
+ giveitem_std ITEM_TM39_ROCK_TOMB
+ compare RESULT, 0
+ goto_if_eq RustboroCity_Gym_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM39
+ msgbox RustboroCity_Gym_Text_184170, 4
+ release
+ end
+
+RustboroCity_Gym_EventScript_157960:: @ 8157960
+ trainerbattle 0, OPPONENT_JOSH, 0, RustboroCity_Gym_Text_183D99, RustboroCity_Gym_Text_183DDD
+ msgbox RustboroCity_Gym_Text_183DF9, 6
+ end
+
+RustboroCity_Gym_EventScript_157977:: @ 8157977
+ trainerbattle 0, OPPONENT_TOMMY, 0, RustboroCity_Gym_Text_183E38, RustboroCity_Gym_Text_183E78
+ msgbox RustboroCity_Gym_Text_183E98, 6
+ end
+
+RustboroCity_Gym_EventScript_15798E:: @ 815798E
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_RUSTBORO_GYM, RustboroCity_Gym_EventScript_1579A3
+ msgbox RustboroCity_Gym_Text_183A4B, 4
+ release
+ end
+
+RustboroCity_Gym_EventScript_1579A3:: @ 81579A3
+ msgbox RustboroCity_Gym_Text_183C90, 4
+ release
+ end
+
+RustboroCity_Gym_EventScript_1579AD:: @ 81579AD
+ lockall
+ goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_1579CD
+ goto RustboroCity_Gym_EventScript_1579D7
+ end
+
+RustboroCity_Gym_EventScript_1579BD:: @ 81579BD
+ lockall
+ goto_if_set FLAG_BADGE01_GET, RustboroCity_Gym_EventScript_1579CD
+ goto RustboroCity_Gym_EventScript_1579D7
+ end
+
+RustboroCity_Gym_EventScript_1579CD:: @ 81579CD
+ msgbox RustboroCity_Gym_Text_1842E6, 4
+ releaseall
+ end
+
+RustboroCity_Gym_EventScript_1579D7:: @ 81579D7
+ msgbox RustboroCity_Gym_Text_1842CC, 4
+ releaseall
+ end
diff --git a/data/maps/RustboroCity_House1/scripts.inc b/data/maps/RustboroCity_House1/scripts.inc
new file mode 100644
index 000000000..abbac505b
--- /dev/null
+++ b/data/maps/RustboroCity_House1/scripts.inc
@@ -0,0 +1,53 @@
+RustboroCity_House1_MapScripts:: @ 8157C7C
+ .byte 0
+
+RustboroCity_House1_EventScript_157C7D:: @ 8157C7D
+ lock
+ faceplayer
+ goto_if_set FLAG_RUSTBORO_NPC_TRADE_COMPLETED, RustboroCity_House1_EventScript_157D13
+ setvar VAR_SPECIAL_8, 0
+ copyvar VAR_SPECIAL_4, VAR_SPECIAL_8
+ specialvar RESULT, GetInGameTradeSpeciesInfo
+ copyvar VAR_SPECIAL_9, RESULT
+ msgbox RustboroCity_House1_Text_184EBA, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq RustboroCity_House1_EventScript_157CFB
+ special SelectMonForNPCTrade
+ waitstate
+ copyvar VAR_SPECIAL_A, VAR_SPECIAL_4
+ compare VAR_SPECIAL_4, 255
+ goto_if_eq RustboroCity_House1_EventScript_157CFB
+ copyvar VAR_SPECIAL_5, VAR_SPECIAL_A
+ specialvar RESULT, GetTradeSpecies
+ copyvar VAR_SPECIAL_B, RESULT
+ compare RESULT, VAR_SPECIAL_9
+ goto_if_ne RustboroCity_House1_EventScript_157D05
+ copyvar VAR_SPECIAL_4, VAR_SPECIAL_8
+ copyvar VAR_SPECIAL_5, VAR_SPECIAL_A
+ special CreateInGameTradePokemon
+ special DoInGameTradeScene
+ waitstate
+ msgbox RustboroCity_House1_Text_184F6B, 4
+ setflag FLAG_RUSTBORO_NPC_TRADE_COMPLETED
+ release
+ end
+
+RustboroCity_House1_EventScript_157CFB:: @ 8157CFB
+ msgbox RustboroCity_House1_Text_184FC1, 4
+ release
+ end
+
+RustboroCity_House1_EventScript_157D05:: @ 8157D05
+ bufferspeciesname 0, VAR_SPECIAL_9
+ msgbox RustboroCity_House1_Text_184F8F, 4
+ release
+ end
+
+RustboroCity_House1_EventScript_157D13:: @ 8157D13
+ msgbox RustboroCity_House1_Text_184FDD, 4
+ release
+ end
+
+RustboroCity_House1_EventScript_157D1D:: @ 8157D1D
+ msgbox RustboroCity_House1_Text_185020, 2
+ end
diff --git a/data/maps/RustboroCity_House2/scripts.inc b/data/maps/RustboroCity_House2/scripts.inc
new file mode 100644
index 000000000..b448065f4
--- /dev/null
+++ b/data/maps/RustboroCity_House2/scripts.inc
@@ -0,0 +1,10 @@
+RustboroCity_House2_MapScripts:: @ 8157D66
+ .byte 0
+
+RustboroCity_House2_EventScript_157D67:: @ 8157D67
+ msgbox RustboroCity_House2_Text_18532D, 2
+ end
+
+RustboroCity_House2_EventScript_157D70:: @ 8157D70
+ msgbox RustboroCity_House2_Text_185388, 2
+ end
diff --git a/data/maps/RustboroCity_House3/scripts.inc b/data/maps/RustboroCity_House3/scripts.inc
new file mode 100644
index 000000000..86d77c18e
--- /dev/null
+++ b/data/maps/RustboroCity_House3/scripts.inc
@@ -0,0 +1,20 @@
+RustboroCity_House3_MapScripts:: @ 8157DEC
+ .byte 0
+
+RustboroCity_House3_EventScript_157DED:: @ 8157DED
+ msgbox RustboroCity_House3_Text_185584, 2
+ end
+
+RustboroCity_House3_EventScript_157DF6:: @ 8157DF6
+ msgbox RustboroCity_House3_Text_1855FA, 2
+ end
+
+RustboroCity_House3_EventScript_157DFF:: @ 8157DFF
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_PIKACHU, 0
+ msgbox RustboroCity_House3_Text_18567D, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/RustboroCity_Mart/scripts.inc b/data/maps/RustboroCity_Mart/scripts.inc
new file mode 100644
index 000000000..c8e3f3a43
--- /dev/null
+++ b/data/maps/RustboroCity_Mart/scripts.inc
@@ -0,0 +1,69 @@
+RustboroCity_Mart_MapScripts:: @ 8157BD3
+ .byte 0
+
+RustboroCity_Mart_EventScript_157BD4:: @ 8157BD4
+ lock
+ faceplayer
+ message RustboroCity_Mart_Text_1A0BE4
+ waitmessage
+ goto_if_unset FLAG_MET_DEVON_EMPLOYEE, RustboroCity_Mart_EventScript_157BEF
+ goto_if_set FLAG_MET_DEVON_EMPLOYEE, RustboroCity_Mart_EventScript_157C18
+ end
+
+RustboroCity_Mart_EventScript_157BEF:: @ 8157BEF
+ pokemart RustboroCity_Mart_Items1
+ msgbox RustboroCity_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+RustboroCity_Mart_Items1:: @ 8157C00
+ .2byte ITEM_POKE_BALL
+ .2byte ITEM_POTION
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_ESCAPE_ROPE
+ .2byte ITEM_REPEL
+ .2byte ITEM_X_SPEED
+ .2byte ITEM_X_ATTACK
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_NONE
+ release
+ end
+
+RustboroCity_Mart_EventScript_157C18:: @ 8157C18
+ pokemart RustboroCity_Mart_Items2
+ msgbox RustboroCity_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+RustboroCity_Mart_Items2:: @ 8157C28
+ .2byte ITEM_POKE_BALL
+ .2byte ITEM_TIMER_BALL
+ .2byte ITEM_REPEAT_BALL
+ .2byte ITEM_POTION
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_ESCAPE_ROPE
+ .2byte ITEM_REPEL
+ .2byte ITEM_X_SPEED
+ .2byte ITEM_X_ATTACK
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_NONE
+ release
+ end
+
+RustboroCity_Mart_EventScript_157C44:: @ 8157C44
+ msgbox RustboroCity_Mart_Text_184C76, 2
+ end
+
+RustboroCity_Mart_EventScript_157C4D:: @ 8157C4D
+ msgbox RustboroCity_Mart_Text_184CD8, 2
+ end
+
+RustboroCity_Mart_EventScript_157C56:: @ 8157C56
+ msgbox RustboroCity_Mart_Text_184D43, 2
+ end
diff --git a/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc b/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..653cceb25
--- /dev/null
+++ b/data/maps/RustboroCity_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,28 @@
+RustboroCity_PokemonCenter_1F_MapScripts:: @ 8157B79
+ map_script 3, RustboroCity_PokemonCenter_1F_MapScript1_157B7F
+ .byte 0
+
+RustboroCity_PokemonCenter_1F_MapScript1_157B7F:: @ 8157B7F
+ setrespawn 6
+ call RustboroCity_PokemonCenter_1F_EventScript_19FD1B
+ end
+
+RustboroCity_PokemonCenter_1F_EventScript_157B88:: @ 8157B88
+ setvar VAR_SPECIAL_B, 1
+ call RustboroCity_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+RustboroCity_PokemonCenter_1F_EventScript_157B96:: @ 8157B96
+ msgbox RustboroCity_PokemonCenter_1F_Text_184B37, 2
+ end
+
+RustboroCity_PokemonCenter_1F_EventScript_157B9F:: @ 8157B9F
+ msgbox RustboroCity_PokemonCenter_1F_Text_184BAB, 2
+ end
+
+RustboroCity_PokemonCenter_1F_EventScript_157BA8:: @ 8157BA8
+ msgbox RustboroCity_PokemonCenter_1F_Text_184C19, 2
+ end
diff --git a/data/maps/RustboroCity_PokemonCenter_2F/scripts.inc b/data/maps/RustboroCity_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..d0ffc5435
--- /dev/null
+++ b/data/maps/RustboroCity_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+RustboroCity_PokemonCenter_2F_MapScripts:: @ 8157BB1
+ map_script 2, RustboroCity_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, RustboroCity_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, RustboroCity_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+RustboroCity_PokemonCenter_2F_EventScript_157BC1:: @ 8157BC1
+ call RustboroCity_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+RustboroCity_PokemonCenter_2F_EventScript_157BC7:: @ 8157BC7
+ call RustboroCity_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+RustboroCity_PokemonCenter_2F_EventScript_157BCD:: @ 8157BCD
+ call RustboroCity_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/RustboroCity_PokemonSchool/scripts.inc b/data/maps/RustboroCity_PokemonSchool/scripts.inc
new file mode 100644
index 000000000..f8193cbb8
--- /dev/null
+++ b/data/maps/RustboroCity_PokemonSchool/scripts.inc
@@ -0,0 +1,164 @@
+RustboroCity_PokemonSchool_MapScripts:: @ 81579E1
+ .byte 0
+
+RustboroCity_PokemonSchool_EventScript_1579E2:: @ 81579E2
+ lockall
+ msgbox RustboroCity_PokemonSchool_Text_184321, 4
+ goto RustboroCity_PokemonSchool_EventScript_1579F1
+ end
+
+RustboroCity_PokemonSchool_EventScript_1579F1:: @ 81579F1
+ message RustboroCity_PokemonSchool_Text_184368
+ waitmessage
+ multichoicegrid 8, 1, 13, 3, 0
+ switch RESULT
+ case 0, RustboroCity_PokemonSchool_EventScript_157A50
+ case 1, RustboroCity_PokemonSchool_EventScript_157A5E
+ case 2, RustboroCity_PokemonSchool_EventScript_157A6C
+ case 3, RustboroCity_PokemonSchool_EventScript_157A7A
+ case 4, RustboroCity_PokemonSchool_EventScript_157A88
+ case 5, RustboroCity_PokemonSchool_EventScript_157A96
+ case 127, RustboroCity_PokemonSchool_EventScript_157A96
+ end
+
+RustboroCity_PokemonSchool_EventScript_157A50:: @ 8157A50
+ msgbox RustboroCity_PokemonSchool_Text_184389, 4
+ goto RustboroCity_PokemonSchool_EventScript_1579F1
+ end
+
+RustboroCity_PokemonSchool_EventScript_157A5E:: @ 8157A5E
+ msgbox RustboroCity_PokemonSchool_Text_184447, 4
+ goto RustboroCity_PokemonSchool_EventScript_1579F1
+ end
+
+RustboroCity_PokemonSchool_EventScript_157A6C:: @ 8157A6C
+ msgbox RustboroCity_PokemonSchool_Text_1844EC, 4
+ goto RustboroCity_PokemonSchool_EventScript_1579F1
+ end
+
+RustboroCity_PokemonSchool_EventScript_157A7A:: @ 8157A7A
+ msgbox RustboroCity_PokemonSchool_Text_1845A5, 4
+ goto RustboroCity_PokemonSchool_EventScript_1579F1
+ end
+
+RustboroCity_PokemonSchool_EventScript_157A88:: @ 8157A88
+ msgbox RustboroCity_PokemonSchool_Text_184627, 4
+ goto RustboroCity_PokemonSchool_EventScript_1579F1
+ end
+
+RustboroCity_PokemonSchool_EventScript_157A96:: @ 8157A96
+ releaseall
+ end
+
+RustboroCity_PokemonSchool_EventScript_157A98:: @ 8157A98
+ msgbox RustboroCity_PokemonSchool_Text_18480E, 2
+ end
+
+RustboroCity_PokemonSchool_EventScript_157AA1:: @ 8157AA1
+ msgbox RustboroCity_PokemonSchool_Text_18483C, 2
+ end
+
+RustboroCity_PokemonSchool_EventScript_157AAA:: @ 8157AAA
+ msgbox RustboroCity_PokemonSchool_Text_184873, 2
+ end
+
+RustboroCity_PokemonSchool_EventScript_157AB3:: @ 8157AB3
+ msgbox RustboroCity_PokemonSchool_Text_1848D8, 2
+ end
+
+RustboroCity_PokemonSchool_EventScript_157ABC:: @ 8157ABC
+ msgbox RustboroCity_PokemonSchool_Text_184988, 2
+ end
+
+RustboroCity_PokemonSchool_EventScript_157AC5:: @ 8157AC5
+ msgbox RustboroCity_PokemonSchool_Text_184A17, 3
+ end
+
+RustboroCity_PokemonSchool_EventScript_157ACE:: @ 8157ACE
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_QUICK_CLAW, RustboroCity_PokemonSchool_EventScript_157B34
+ compare FACING, 4
+ call_if_eq RustboroCity_PokemonSchool_EventScript_157B1E
+ compare FACING, 3
+ call_if_eq RustboroCity_PokemonSchool_EventScript_157B29
+ msgbox RustboroCity_PokemonSchool_Text_1846A2, 4
+ giveitem_std ITEM_QUICK_CLAW
+ compare RESULT, 0
+ goto_if_eq RustboroCity_PokemonSchool_EventScript_1A029B
+ closemessage
+ applymovement LAST_TALKED, RustboroCity_PokemonSchool_Movement_1A0845
+ waitmovement 0
+ setflag FLAG_RECEIVED_QUICK_CLAW
+ release
+ end
+
+RustboroCity_PokemonSchool_EventScript_157B1E:: @ 8157B1E
+ applymovement LAST_TALKED, RustboroCity_PokemonSchool_Movement_157B60
+ waitmovement 0
+ return
+
+RustboroCity_PokemonSchool_EventScript_157B29:: @ 8157B29
+ applymovement LAST_TALKED, RustboroCity_PokemonSchool_Movement_157B49
+ waitmovement 0
+ return
+
+RustboroCity_PokemonSchool_EventScript_157B34:: @ 8157B34
+ msgbox RustboroCity_PokemonSchool_Text_184737, 4
+ closemessage
+ applymovement LAST_TALKED, RustboroCity_PokemonSchool_Movement_1A0845
+ waitmovement 0
+ release
+ end
+
+RustboroCity_PokemonSchool_Movement_157B49:: @ 8157B49
+ walk_left
+ walk_down
+ walk_down
+ walk_right
+ walk_in_place_fastest_down
+ delay_16
+ delay_16
+ delay_16
+ walk_down
+ walk_in_place_fastest_left
+ delay_16
+ delay_16
+ walk_right
+ delay_16
+ delay_16
+ delay_8
+ walk_up
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_right
+ end_movement
+
+RustboroCity_PokemonSchool_Movement_157B60:: @ 8157B60
+ walk_right
+ walk_right
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_in_place_fastest_down
+ delay_16
+ delay_16
+ delay_16
+ walk_down
+ walk_in_place_fastest_left
+ delay_16
+ delay_16
+ walk_right
+ delay_16
+ delay_16
+ delay_8
+ walk_up
+ walk_right
+ walk_up
+ walk_up
+ walk_left
+ walk_left
+ end_movement
diff --git a/data/maps/RusturfTunnel/scripts.inc b/data/maps/RusturfTunnel/scripts.inc
new file mode 100644
index 000000000..1aae9faba
--- /dev/null
+++ b/data/maps/RusturfTunnel/scripts.inc
@@ -0,0 +1,420 @@
+RusturfTunnel_MapScripts:: @ 815C745
+ map_script 3, RusturfTunnel_MapScript1_15C762
+ map_script 2, RusturfTunnel_MapScript2_15C750
+ .byte 0
+
+RusturfTunnel_MapScript2_15C750:: @ 815C750
+ map_script_2 VAR_RUSTURF_TUNNEL_STATE, 4, RusturfTunnel_EventScript_15C7D1
+ map_script_2 VAR_RUSTURF_TUNNEL_STATE, 5, RusturfTunnel_EventScript_15C7D1
+ .2byte 0
+
+RusturfTunnel_MapScript1_15C762:: @ 815C762
+ call RusturfTunnel_EventScript_1A0196
+ compare VAR_RUSTURF_TUNNEL_STATE, 2
+ call_if_eq RusturfTunnel_EventScript_15C773
+ end
+
+RusturfTunnel_EventScript_15C773:: @ 815C773
+ setobjectxyperm 7, 13, 4
+ setobjectxyperm 6, 13, 5
+ return
+
+RusturfTunnel_EventScript_15C782:: @ 815C782
+ lock
+ faceplayer
+ msgbox RusturfTunnel_Text_194766, 4
+ closemessage
+ applymovement LAST_TALKED, RusturfTunnel_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+RusturfTunnel_EventScript_15C799:: @ 815C799
+ lock
+ faceplayer
+ goto_if_set FLAG_TEMP_1, RusturfTunnel_EventScript_15C7BC
+ setflag FLAG_TEMP_1
+ msgbox RusturfTunnel_Text_1944C5, 4
+ closemessage
+ applymovement LAST_TALKED, RusturfTunnel_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+RusturfTunnel_EventScript_15C7BC:: @ 815C7BC
+ msgbox RusturfTunnel_Text_1945B2, 4
+ closemessage
+ applymovement LAST_TALKED, RusturfTunnel_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+RusturfTunnel_EventScript_15C7D1:: @ 815C7D1
+ lockall
+ compare VAR_TEMP_1, 1
+ call_if_eq RusturfTunnel_EventScript_15C8CA
+ compare VAR_TEMP_1, 2
+ call_if_eq RusturfTunnel_EventScript_15C8DF
+ compare VAR_TEMP_1, 3
+ call_if_eq RusturfTunnel_EventScript_15C8EA
+ call RusturfTunnel_EventScript_15C92D
+ msgbox RusturfTunnel_Text_19461D, 4
+ compare VAR_TEMP_1, 2
+ call_if_eq RusturfTunnel_EventScript_15C8EB
+ compare VAR_TEMP_1, 3
+ call_if_eq RusturfTunnel_EventScript_15C8EB
+ giveitem_std ITEM_HM04_STRENGTH
+ setflag FLAG_RECEIVED_HM04
+ msgbox RusturfTunnel_Text_194693, 4
+ closemessage
+ compare VAR_TEMP_1, 1
+ call_if_eq RusturfTunnel_EventScript_15C880
+ compare VAR_TEMP_1, 2
+ call_if_eq RusturfTunnel_EventScript_15C892
+ compare VAR_TEMP_1, 3
+ call_if_eq RusturfTunnel_EventScript_15C8AE
+ msgbox RusturfTunnel_Text_194706, 4
+ closemessage
+ compare VAR_TEMP_1, 1
+ call_if_eq RusturfTunnel_EventScript_15C8F7
+ compare VAR_TEMP_1, 2
+ call_if_eq RusturfTunnel_EventScript_15C909
+ compare VAR_TEMP_1, 3
+ call_if_eq RusturfTunnel_EventScript_15C91B
+ call RusturfTunnel_EventScript_1A0442
+ releaseall
+ end
+
+RusturfTunnel_EventScript_15C880:: @ 815C880
+ applymovement 255, RusturfTunnel_Movement_15C96A
+ applymovement 1, RusturfTunnel_Movement_15C98F
+ waitmovement 0
+ return
+
+RusturfTunnel_EventScript_15C892:: @ 815C892
+ applymovement 255, RusturfTunnel_Movement_15C96D
+ applymovement 1, RusturfTunnel_Movement_15C994
+ waitmovement 0
+ applymovement 10, RusturfTunnel_Movement_1A0845
+ waitmovement 0
+ return
+
+RusturfTunnel_EventScript_15C8AE:: @ 815C8AE
+ applymovement 255, RusturfTunnel_Movement_15C96D
+ applymovement 1, RusturfTunnel_Movement_15C994
+ waitmovement 0
+ applymovement 10, RusturfTunnel_Movement_1A0845
+ waitmovement 0
+ return
+
+RusturfTunnel_EventScript_15C8CA:: @ 815C8CA
+ applymovement 1, RusturfTunnel_Movement_1A0841
+ waitmovement 0
+ applymovement 255, RusturfTunnel_Movement_1A0845
+ waitmovement 0
+ return
+
+RusturfTunnel_EventScript_15C8DF:: @ 815C8DF
+ applymovement 1, RusturfTunnel_Movement_15C970
+ waitmovement 0
+ return
+
+RusturfTunnel_EventScript_15C8EA:: @ 815C8EA
+ return
+
+RusturfTunnel_EventScript_15C8EB:: @ 815C8EB
+ closemessage
+ applymovement 1, RusturfTunnel_Movement_15C98D
+ waitmovement 0
+ return
+
+RusturfTunnel_EventScript_15C8F7:: @ 815C8F7
+ applymovement 10, RusturfTunnel_Movement_15C945
+ applymovement 1, RusturfTunnel_Movement_15C973
+ waitmovement 0
+ return
+
+RusturfTunnel_EventScript_15C909:: @ 815C909
+ applymovement 10, RusturfTunnel_Movement_15C951
+ applymovement 1, RusturfTunnel_Movement_15C980
+ waitmovement 0
+ return
+
+RusturfTunnel_EventScript_15C91B:: @ 815C91B
+ applymovement 10, RusturfTunnel_Movement_15C951
+ applymovement 1, RusturfTunnel_Movement_15C980
+ waitmovement 0
+ return
+
+RusturfTunnel_EventScript_15C92D:: @ 815C92D
+ playse SE_PIN
+ applymovement 1, RusturfTunnel_Movement_1A0833
+ waitmovement 0
+ applymovement 1, RusturfTunnel_Movement_1A0835
+ waitmovement 0
+ return
+
+RusturfTunnel_Movement_15C945:: @ 815C945
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+RusturfTunnel_Movement_15C951:: @ 815C951
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+@ 815C95D
+ walk_left
+ walk_in_place_fastest_right
+ end_movement
+
+@ 815C960
+ walk_down
+ walk_in_place_fastest_up
+ delay_8
+ walk_in_place_fastest_right
+ end_movement
+
+@ 815C965
+ walk_up
+ walk_in_place_fastest_down
+ delay_8
+ walk_in_place_fastest_right
+ end_movement
+
+RusturfTunnel_Movement_15C96A:: @ 815C96A
+ walk_left
+ walk_in_place_fastest_right
+ end_movement
+
+RusturfTunnel_Movement_15C96D:: @ 815C96D
+ walk_right
+ walk_in_place_fastest_left
+ end_movement
+
+RusturfTunnel_Movement_15C970:: @ 815C970
+ walk_up
+ walk_in_place_fastest_right
+ end_movement
+
+RusturfTunnel_Movement_15C973:: @ 815C973
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+RusturfTunnel_Movement_15C980:: @ 815C980
+ walk_up
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
+
+RusturfTunnel_Movement_15C98D:: @ 815C98D
+ walk_right
+ end_movement
+
+RusturfTunnel_Movement_15C98F:: @ 815C98F
+ walk_in_place_fast_up
+ walk_in_place_fast_up
+ walk_fast_up
+ walk_fast_right
+ end_movement
+
+RusturfTunnel_Movement_15C994:: @ 815C994
+ walk_in_place_fast_right
+ walk_in_place_fast_right
+ walk_fast_right
+ walk_in_place_fastest_up
+ end_movement
+
+RusturfTunnel_EventScript_15C999:: @ 815C999
+ setvar VAR_TEMP_1, 1
+ end
+
+RusturfTunnel_EventScript_15C99F:: @ 815C99F
+ setvar VAR_TEMP_1, 2
+ end
+
+RusturfTunnel_EventScript_15C9A5:: @ 815C9A5
+ setvar VAR_TEMP_1, 3
+ end
+
+RusturfTunnel_EventScript_15C9AB:: @ 815C9AB
+ lockall
+ msgbox RusturfTunnel_Text_194159, 4
+ closemessage
+ applymovement 6, RusturfTunnel_Movement_15C9D3
+ applymovement 7, RusturfTunnel_Movement_15C9D3
+ waitmovement 0
+ moveobjectoffscreen 6
+ moveobjectoffscreen 7
+ setvar VAR_RUSTURF_TUNNEL_STATE, 3
+ releaseall
+ end
+
+RusturfTunnel_Movement_15C9D3:: @ 815C9D3
+ lock_facing_direction
+ walk_right
+ unlock_facing_direction
+ end_movement
+
+RusturfTunnel_EventScript_15C9D7:: @ 815C9D7
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_WINGULL, 0
+ msgbox RusturfTunnel_Text_194188, 4
+ waitmoncry
+ release
+ end
+
+RusturfTunnel_EventScript_15C9EA:: @ 815C9EA
+ lock
+ faceplayer
+ playbgm BGM_EVIL_TEAM, FALSE
+ msgbox RusturfTunnel_Text_19419B, 4
+ trainerbattle 3, OPPONENT_RUSTURF_TUNNEL_GRUNT, 0, RusturfTunnel_Text_194243
+ msgbox RusturfTunnel_Text_194274, 4
+ giveitem_std ITEM_DEVON_GOODS
+ closemessage
+ applymovement 255, RusturfTunnel_Movement_15CA99
+ applymovement 6, RusturfTunnel_Movement_15CAA2
+ waitmovement 0
+ removeobject 6
+ delay 50
+ addobject 5
+ applymovement 5, RusturfTunnel_Movement_15CAAC
+ waitmovement 0
+ applymovement 255, RusturfTunnel_Movement_15CA9F
+ applymovement 5, RusturfTunnel_Movement_15CAC0
+ waitmovement 0
+ msgbox RusturfTunnel_Text_19432A, 4
+ applymovement 5, RusturfTunnel_Movement_1A0839
+ waitmovement 0
+ message RusturfTunnel_Text_19434F
+ waitmessage
+ waitse
+ playmoncry SPECIES_WINGULL, 0
+ waitbuttonpress
+ waitmoncry
+ closemessage
+ applymovement 5, RusturfTunnel_Movement_15CAB4
+ applymovement 7, RusturfTunnel_Movement_15CAC3
+ waitmovement 0
+ removeobject 5
+ removeobject 7
+ clearflag FLAG_DEVON_GOODS_STOLEN
+ setflag FLAG_RECOVERED_DEVON_GOODS
+ setvar VAR_RUSTBORO_STATE, 4
+ setvar VAR_BRINEY_HOUSE_STATE, 1
+ setflag FLAG_HIDE_BRINEY_ROUTE116
+ release
+ end
+
+RusturfTunnel_Movement_15CA99:: @ 815CA99
+ face_down
+ lock_facing_direction
+ walk_up
+ unlock_facing_direction
+ walk_in_place_fastest_left
+ end_movement
+
+RusturfTunnel_Movement_15CA9F:: @ 815CA9F
+ walk_down
+ walk_in_place_fastest_up
+ end_movement
+
+RusturfTunnel_Movement_15CAA2:: @ 815CAA2
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ walk_fast_left
+ end_movement
+
+RusturfTunnel_Movement_15CAAC:: @ 815CAAC
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+RusturfTunnel_Movement_15CAB4:: @ 815CAB4
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+RusturfTunnel_Movement_15CAC0:: @ 815CAC0
+ delay_16
+ walk_right
+ end_movement
+
+RusturfTunnel_Movement_15CAC3:: @ 815CAC3
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+RusturfTunnel_EventScript_15CACD:: @ 815CACD
+ trainerbattle 0, OPPONENT_MIKE_2, 0, RusturfTunnel_Text_194814, RusturfTunnel_Text_1948A2
+ msgbox RusturfTunnel_Text_1948C4, 6
+ end
diff --git a/data/maps/SSTidalCorridor/scripts.inc b/data/maps/SSTidalCorridor/scripts.inc
new file mode 100644
index 000000000..7bc5a7fdd
--- /dev/null
+++ b/data/maps/SSTidalCorridor/scripts.inc
@@ -0,0 +1,189 @@
+SSTidalCorridor_MapScripts:: @ 815FC94
+ map_script 2, SSTidalCorridor_MapScript2_15FC9A
+ .byte 0
+
+SSTidalCorridor_MapScript2_15FC9A:: @ 815FC9A
+ map_script_2 VAR_PORTHOLE_STATE, 1, SSTidalCorridor_EventScript_15FCBC
+ map_script_2 VAR_PORTHOLE_STATE, 5, SSTidalCorridor_EventScript_15FCD2
+ map_script_2 VAR_PORTHOLE_STATE, 9, SSTidalCorridor_EventScript_15FD24
+ map_script_2 VAR_PORTHOLE_STATE, 10, SSTidalCorridor_EventScript_15FD3A
+ .2byte 0
+
+SSTidalCorridor_EventScript_15FCBC:: @ 815FCBC
+ special SetSSTidalFlag
+ setvar VAR_PORTHOLE_STATE, 2
+ lockall
+ playse SE_PINPON
+ msgbox SSTidalCorridor_Text_199007, 4
+ releaseall
+ end
+
+SSTidalCorridor_EventScript_15FCD2:: @ 815FCD2
+ setvar VAR_PORTHOLE_STATE, 6
+ lockall
+ playse SE_PINPON
+ msgbox SSTidalCorridor_Text_199088, 4
+ releaseall
+ end
+
+SSTidalRooms_EventScript_15FCE5:: @ 815FCE5
+ special SetSSTidalFlag
+ setvar VAR_PORTHOLE_STATE, 7
+ playse SE_PINPON
+ msgbox SSTidalRooms_Text_199007, 4
+ return
+
+SSTidalRooms_EventScript_15FCF9:: @ 815FCF9
+ special ResetSSTidalFlag
+ setvar VAR_PORTHOLE_STATE, 4
+ playse SE_PINPON
+ msgbox SSTidalRooms_Text_1990F8, 4
+ return
+
+gUnknown_0815FD0D:: @ 815FD0D
+ compare VAR_PORTHOLE_STATE, 2
+ goto_if_eq SSTidalCorridor_EventScript_15FD24
+ compare VAR_PORTHOLE_STATE, 7
+ goto_if_eq SSTidalCorridor_EventScript_15FD3A
+ end
+
+SSTidalCorridor_EventScript_15FD24:: @ 815FD24
+ special ResetSSTidalFlag
+ setvar VAR_PORTHOLE_STATE, 3
+ lockall
+ playse SE_PINPON
+ msgbox SSTidalCorridor_Text_199088, 4
+ releaseall
+ end
+
+SSTidalCorridor_EventScript_15FD3A:: @ 815FD3A
+ special ResetSSTidalFlag
+ setvar VAR_PORTHOLE_STATE, 8
+ lockall
+ playse SE_PINPON
+ msgbox SSTidalCorridor_Text_1990B4, 4
+ releaseall
+ end
+
+SSTidalRooms_EventScript_15FD50:: @ 815FD50
+ special ResetSSTidalFlag
+ setvar VAR_PORTHOLE_STATE, 8
+ playse SE_PINPON
+ msgbox SSTidalRooms_Text_1990B4, 4
+ return
+
+SSTidalRooms_EventScript_15FD64:: @ 815FD64
+ switch VAR_PORTHOLE_STATE
+ case 2, SSTidalRooms_EventScript_15FCF9
+ case 3, SSTidalRooms_EventScript_15FCF9
+ case 6, SSTidalRooms_EventScript_15FCE5
+ case 7, SSTidalRooms_EventScript_15FD50
+ return
+
+SSTidalCorridor_EventScript_15FD96:: @ 815FD96
+ msgbox SSTidalCorridor_Text_199291, 2
+ end
+
+SSTidalCorridor_EventScript_15FD9F:: @ 815FD9F
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_WINGULL, 0
+ msgbox SSTidalCorridor_Text_199388, 4
+ waitmoncry
+ release
+ end
+
+SSTidalCorridor_EventScript_15FDB2:: @ 815FDB2
+ msgbox SSTidalCorridor_Text_1993A1, 3
+ end
+
+SSTidalCorridor_EventScript_15FDBB:: @ 815FDBB
+ msgbox SSTidalCorridor_Text_1993A9, 3
+ end
+
+SSTidalCorridor_EventScript_15FDC4:: @ 815FDC4
+ msgbox SSTidalCorridor_Text_1993B1, 3
+ end
+
+SSTidalCorridor_EventScript_15FDCD:: @ 815FDCD
+ msgbox SSTidalCorridor_Text_1993B9, 3
+ end
+
+SSTidalCorridor_EventScript_15FDD6:: @ 815FDD6
+ lock
+ faceplayer
+ compare VAR_PORTHOLE_STATE, 4
+ goto_if_eq SSTidalCorridor_EventScript_15FDF8
+ compare VAR_PORTHOLE_STATE, 8
+ goto_if_eq SSTidalCorridor_EventScript_15FE17
+ msgbox SSTidalCorridor_Text_19913B, 4
+ release
+ end
+
+SSTidalCorridor_EventScript_15FDF8:: @ 815FDF8
+ setrespawn 8
+ msgbox SSTidalCorridor_Text_1991F4, 4
+ call_if_set FLAG_RECEIVED_TM49, SSTidalCorridor_EventScript_15FE36
+ warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
+ waitstate
+ release
+ end
+
+SSTidalCorridor_EventScript_15FE17:: @ 815FE17
+ setrespawn 4
+ msgbox SSTidalCorridor_Text_1991F4, 4
+ call_if_set FLAG_RECEIVED_TM49, SSTidalCorridor_EventScript_15FE36
+ warp MAP_SLATEPORT_CITY_HARBOR, 255, 8, 11
+ waitstate
+ release
+ end
+
+SSTidalCorridor_EventScript_15FE36:: @ 815FE36
+ setflag FLAG_HIDE_TM_49_GIVER_SS_TIDAL
+ return
+
+SSTidalCorridor_EventScript_15FE3A:: @ 815FE3A
+ lockall
+ compare VAR_PORTHOLE_STATE, 2
+ goto_if_eq SSTidalCorridor_EventScript_15FE5B
+ compare VAR_PORTHOLE_STATE, 7
+ goto_if_eq SSTidalCorridor_EventScript_15FE5B
+ msgbox SSTidalCorridor_Text_199268, 4
+ releaseall
+ end
+
+SSTidalCorridor_EventScript_15FE5B:: @ 815FE5B
+ special sub_80C7958
+ waitstate
+ end
+
+SSTidalCorridor_EventScript_15FE60:: @ 815FE60
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_SS_TIDAL_TRAINERS, SSTidalCorridor_EventScript_15FE7A
+ call SSTidalCorridor_EventScript_15FE84
+ msgbox SSTidalCorridor_Text_199203, 4
+ release
+ end
+
+SSTidalCorridor_EventScript_15FE7A:: @ 815FE7A
+ msgbox SSTidalCorridor_Text_199255, 4
+ release
+ end
+
+SSTidalCorridor_EventScript_15FE84:: @ 815FE84
+ goto_if_trainer_not_defeated OPPONENT_PHILLIP, SSTidalCorridor_EventScript_15FED5
+ goto_if_trainer_not_defeated OPPONENT_LEONARD, SSTidalCorridor_EventScript_15FED5
+ goto_if_trainer_not_defeated OPPONENT_COLTON, SSTidalCorridor_EventScript_15FED5
+ goto_if_trainer_not_defeated OPPONENT_TUCKER, SSTidalCorridor_EventScript_15FED5
+ goto_if_trainer_not_defeated OPPONENT_THOMAS, SSTidalCorridor_EventScript_15FED5
+ goto_if_trainer_not_defeated OPPONENT_LEA_AND_JED, SSTidalCorridor_EventScript_15FED5
+ goto_if_trainer_not_defeated OPPONENT_GARRET, SSTidalCorridor_EventScript_15FED5
+ goto_if_trainer_not_defeated OPPONENT_ANETTE, SSTidalCorridor_EventScript_15FED5
+ setflag FLAG_DEFEATED_SS_TIDAL_TRAINERS
+ goto SSTidalCorridor_EventScript_15FE7A
+ return
+
+SSTidalCorridor_EventScript_15FED5:: @ 815FED5
+ return
diff --git a/data/maps/SSTidalLowerDeck/scripts.inc b/data/maps/SSTidalLowerDeck/scripts.inc
new file mode 100644
index 000000000..e91c20625
--- /dev/null
+++ b/data/maps/SSTidalLowerDeck/scripts.inc
@@ -0,0 +1,12 @@
+SSTidalLowerDeck_MapScripts:: @ 815FED6
+ .byte 0
+
+SSTidalLowerDeck_EventScript_15FED7:: @ 815FED7
+ trainerbattle 0, OPPONENT_PHILLIP, 0, SSTidalLowerDeck_Text_1993C1, SSTidalLowerDeck_Text_19941A
+ msgbox SSTidalLowerDeck_Text_19942E, 6
+ end
+
+SSTidalLowerDeck_EventScript_15FEEE:: @ 815FEEE
+ trainerbattle 0, OPPONENT_LEONARD, 0, SSTidalLowerDeck_Text_199491, SSTidalLowerDeck_Text_1994F7
+ msgbox SSTidalLowerDeck_Text_199508, 6
+ end
diff --git a/data/maps/SSTidalRooms/scripts.inc b/data/maps/SSTidalRooms/scripts.inc
new file mode 100644
index 000000000..89372bd84
--- /dev/null
+++ b/data/maps/SSTidalRooms/scripts.inc
@@ -0,0 +1,64 @@
+SSTidalRooms_MapScripts:: @ 815FF05
+ .byte 0
+
+SSTidalRooms_EventScript_15FF06:: @ 815FF06
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM49, SSTidalRooms_EventScript_15FF3D
+ msgbox SSTidalRooms_Text_199B65, 4
+ giveitem_std ITEM_TM49_SNATCH
+ compare RESULT, 0
+ goto_if_eq SSTidalRooms_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM49
+ msgbox SSTidalRooms_Text_199C1A, 4
+ release
+ end
+
+SSTidalRooms_EventScript_15FF3D:: @ 815FF3D
+ msgbox SSTidalRooms_Text_199C1A, 4
+ release
+ end
+
+SSTidalRooms_EventScript_15FF47:: @ 815FF47
+ lockall
+ msgbox SSTidalRooms_Text_19956B, 4
+ closemessage
+ call SSTidalRooms_EventScript_1A02CA
+ call SSTidalRooms_EventScript_15FD64
+ releaseall
+ end
+
+SSTidalRooms_EventScript_15FF5D:: @ 815FF5D
+ trainerbattle 0, OPPONENT_COLTON, 0, SSTidalRooms_Text_19958A, SSTidalRooms_Text_199613
+ msgbox SSTidalRooms_Text_199630, 6
+ end
+
+SSTidalRooms_EventScript_15FF74:: @ 815FF74
+ trainerbattle 0, OPPONENT_TUCKER, 0, SSTidalRooms_Text_1996A6, SSTidalRooms_Text_1996BF
+ msgbox SSTidalRooms_Text_1996E1, 6
+ end
+
+SSTidalRooms_EventScript_15FF8B:: @ 815FF8B
+ trainerbattle 0, OPPONENT_THOMAS, 0, SSTidalRooms_Text_199723, SSTidalRooms_Text_199747
+ msgbox SSTidalRooms_Text_199778, 6
+ end
+
+SSTidalRooms_EventScript_15FFA2:: @ 815FFA2
+ trainerbattle 4, OPPONENT_LEA_AND_JED, 0, SSTidalRooms_Text_1997C1, SSTidalRooms_Text_199813, SSTidalRooms_Text_199887
+ msgbox SSTidalRooms_Text_199820, 6
+ end
+
+SSTidalRooms_EventScript_15FFBD:: @ 815FFBD
+ trainerbattle 4, OPPONENT_LEA_AND_JED, 0, SSTidalRooms_Text_1998C5, SSTidalRooms_Text_19990E, SSTidalRooms_Text_199975
+ msgbox SSTidalRooms_Text_19991C, 6
+ end
+
+SSTidalRooms_EventScript_15FFD8:: @ 815FFD8
+ trainerbattle 0, OPPONENT_GARRET, 0, SSTidalRooms_Text_1999B7, SSTidalRooms_Text_1999FF
+ msgbox SSTidalRooms_Text_199A10, 6
+ end
+
+SSTidalRooms_EventScript_15FFEF:: @ 815FFEF
+ trainerbattle 0, OPPONENT_ANETTE, 0, SSTidalRooms_Text_199A62, SSTidalRooms_Text_199ABF
+ msgbox SSTidalRooms_Text_199ADE, 6
+ end
diff --git a/data/maps/SafariZone_Northeast/scripts.inc b/data/maps/SafariZone_Northeast/scripts.inc
new file mode 100644
index 000000000..11e14da0f
--- /dev/null
+++ b/data/maps/SafariZone_Northeast/scripts.inc
@@ -0,0 +1,10 @@
+SafariZone_Northeast_MapScripts:: @ 8160010
+ .byte 0
+
+SafariZone_Northeast_EventScript_160011:: @ 8160011
+ msgbox SafariZone_Northeast_Text_1C3D19, 2
+ end
+
+SafariZone_Northeast_EventScript_16001A:: @ 816001A
+ msgbox SafariZone_Northeast_Text_1C3D80, 2
+ end
diff --git a/data/maps/SafariZone_Northwest/scripts.inc b/data/maps/SafariZone_Northwest/scripts.inc
new file mode 100644
index 000000000..f17b7078d
--- /dev/null
+++ b/data/maps/SafariZone_Northwest/scripts.inc
@@ -0,0 +1,6 @@
+SafariZone_Northwest_MapScripts:: @ 8160006
+ .byte 0
+
+SafariZone_Northwest_EventScript_160007:: @ 8160007
+ msgbox SafariZone_Northwest_Text_1C3CAE, 2
+ end
diff --git a/data/maps/SafariZone_RestHouse/scripts.inc b/data/maps/SafariZone_RestHouse/scripts.inc
new file mode 100644
index 000000000..edaee1580
--- /dev/null
+++ b/data/maps/SafariZone_RestHouse/scripts.inc
@@ -0,0 +1,14 @@
+SafariZone_RestHouse_MapScripts:: @ 8160C2E
+ .byte 0
+
+SafariZone_RestHouse_EventScript_160C2F:: @ 8160C2F
+ msgbox SafariZone_RestHouse_Text_1C3EC9, 2
+ end
+
+SafariZone_RestHouse_EventScript_160C38:: @ 8160C38
+ msgbox SafariZone_RestHouse_Text_1C3F71, 2
+ end
+
+SafariZone_RestHouse_EventScript_160C41:: @ 8160C41
+ msgbox SafariZone_RestHouse_Text_1C3FF4, 2
+ end
diff --git a/data/maps/SafariZone_Southeast/scripts.inc b/data/maps/SafariZone_Southeast/scripts.inc
new file mode 100644
index 000000000..d7d581891
--- /dev/null
+++ b/data/maps/SafariZone_Southeast/scripts.inc
@@ -0,0 +1,118 @@
+SafariZone_Southeast_MapScripts:: @ 8160036
+ map_script 3, SafariZone_Southeast_MapScript1_160073
+ map_script 2, SafariZone_Southeast_MapScript2_160041
+ .byte 0
+
+SafariZone_Southeast_MapScript2_160041:: @ 8160041
+ map_script_2 VAR_SAFARI_ZONE_STATE, 2, SafariZone_Southeast_EventScript_16004B
+ .2byte 0
+
+SafariZone_Southeast_EventScript_16004B:: @ 816004B
+ lockall
+ setvar VAR_TEMP_1, 0
+ applymovement 255, SafariZone_Southeast_Movement_160087
+ waitmovement 0
+ applymovement 1, SafariZone_Southeast_Movement_160089
+ waitmovement 0
+ setobjectxyperm 1, 32, 34
+ setvar VAR_SAFARI_ZONE_STATE, 0
+ releaseall
+ end
+
+SafariZone_Southeast_MapScript1_160073:: @ 8160073
+ compare VAR_SAFARI_ZONE_STATE, 2
+ call_if_eq SafariZone_Southeast_EventScript_16007F
+ end
+
+SafariZone_Southeast_EventScript_16007F:: @ 816007F
+ setobjectxyperm 1, 31, 34
+ return
+
+SafariZone_Southeast_Movement_160087:: @ 8160087
+ walk_down
+ end_movement
+
+SafariZone_Southeast_Movement_160089:: @ 8160089
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+SafariZone_Southeast_EventScript_16008C:: @ 816008C
+ msgbox SafariZone_Southeast_Text_1C3B71, 2
+ end
+
+SafariZone_Southeast_EventScript_160095:: @ 8160095
+ msgbox SafariZone_Southeast_Text_1C3BBD, 2
+ end
+
+SafariZone_Southeast_EventScript_16009E:: @ 816009E
+ msgbox SafariZone_Southeast_Text_1C3DCE, 2
+ end
+
+SafariZone_Southeast_EventScript_1600A7:: @ 81600A7
+ lock
+ faceplayer
+ compare VAR_TEMP_1, 0
+ goto_if_eq SafariZone_Southeast_EventScript_1600D1
+ msgbox SafariZone_Southeast_Text_1C3A56, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq SafariZone_Southeast_EventScript_1600E0
+ msgbox SafariZone_Southeast_Text_1C3A9C, 4
+ release
+ end
+
+SafariZone_Southeast_EventScript_1600D1:: @ 81600D1
+ setvar VAR_TEMP_1, 1
+ msgbox SafariZone_Southeast_Text_1C3B2D, 4
+ release
+ end
+
+SafariZone_Southeast_EventScript_1600E0:: @ 81600E0
+ msgbox SafariZone_Southeast_Text_1C3ACA, 4
+ closemessage
+ switch FACING
+ case 2, SafariZone_Southeast_EventScript_160105
+ case 4, SafariZone_Southeast_EventScript_16011F
+ end
+
+SafariZone_Southeast_EventScript_160105:: @ 8160105
+ applymovement 1, SafariZone_Southeast_Movement_160150
+ waitmovement 0
+ applymovement 255, SafariZone_Southeast_Movement_16014B
+ waitmovement 0
+ goto SafariZone_Southeast_EventScript_160139
+ end
+
+SafariZone_Southeast_EventScript_16011F:: @ 816011F
+ applymovement 1, SafariZone_Southeast_Movement_160153
+ waitmovement 0
+ applymovement 255, SafariZone_Southeast_Movement_16014D
+ waitmovement 0
+ goto SafariZone_Southeast_EventScript_160139
+ end
+
+SafariZone_Southeast_EventScript_160139:: @ 8160139
+ setvar VAR_SAFARI_ZONE_STATE, 1
+ special ExitSafariMode
+ warpdoor MAP_ROUTE121_SAFARI_ZONE_ENTRANCE, 255, 2, 5
+ waitstate
+ end
+
+SafariZone_Southeast_Movement_16014B:: @ 816014B
+ walk_up
+ end_movement
+
+SafariZone_Southeast_Movement_16014D:: @ 816014D
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+SafariZone_Southeast_Movement_160150:: @ 8160150
+ walk_left
+ walk_in_place_fastest_right
+ end_movement
+
+SafariZone_Southeast_Movement_160153:: @ 8160153
+ walk_down
+ walk_in_place_fastest_up
+ end_movement
diff --git a/data/maps/SafariZone_Southwest/scripts.inc b/data/maps/SafariZone_Southwest/scripts.inc
new file mode 100644
index 000000000..51bffeeab
--- /dev/null
+++ b/data/maps/SafariZone_Southwest/scripts.inc
@@ -0,0 +1,10 @@
+SafariZone_Southwest_MapScripts:: @ 8160023
+ .byte 0
+
+SafariZone_Southwest_EventScript_160024:: @ 8160024
+ msgbox SafariZone_Southwest_Text_1C3C39, 2
+ end
+
+SafariZone_Southwest_EventScript_16002D:: @ 816002D
+ msgbox SafariZone_Southwest_Text_1C3EA3, 3
+ end
diff --git a/data/maps/ScorchedSlab/scripts.inc b/data/maps/ScorchedSlab/scripts.inc
new file mode 100644
index 000000000..f0ed9c005
--- /dev/null
+++ b/data/maps/ScorchedSlab/scripts.inc
@@ -0,0 +1,7 @@
+ScorchedSlab_MapScripts:: @ 815F29D
+ map_script 3, ScorchedSlab_MapScript1_15F2A3
+ .byte 0
+
+ScorchedSlab_MapScript1_15F2A3:: @ 815F2A3
+ setflag FLAG_LANDMARK_SCORCHED_SLAB
+ end
diff --git a/data/maps/SeafloorCavern_Entrance/scripts.inc b/data/maps/SeafloorCavern_Entrance/scripts.inc
new file mode 100644
index 000000000..9d59279ea
--- /dev/null
+++ b/data/maps/SeafloorCavern_Entrance/scripts.inc
@@ -0,0 +1,8 @@
+SeafloorCavern_Entrance_MapScripts:: @ 815DA4A
+ map_script 5, SeafloorCavern_Entrance_MapScript1_15DA50
+ .byte 0
+
+SeafloorCavern_Entrance_MapScript1_15DA50:: @ 815DA50
+ setdivewarp MAP_UNDERWATER_SEAFLOOR_CAVERN, 255, 6, 5
+ setescapewarp MAP_UNDERWATER_SEAFLOOR_CAVERN, 255, 6, 5
+ end
diff --git a/data/maps/SeafloorCavern_Room1/scripts.inc b/data/maps/SeafloorCavern_Room1/scripts.inc
new file mode 100644
index 000000000..6478efac1
--- /dev/null
+++ b/data/maps/SeafloorCavern_Room1/scripts.inc
@@ -0,0 +1,17 @@
+SeafloorCavern_Room1_MapScripts:: @ 815DA61
+ map_script 3, SeafloorCavern_Room1_MapScript1_15DA67
+ .byte 0
+
+SeafloorCavern_Room1_MapScript1_15DA67:: @ 815DA67
+ call SeafloorCavern_Room1_EventScript_1A0196
+ end
+
+SeafloorCavern_Room1_EventScript_15DA6D:: @ 815DA6D
+ trainerbattle 0, OPPONENT_SEAFLOOR_CAVERN_GRUNT_1, 0, SeafloorCavern_Room1_Text_1974BA, SeafloorCavern_Room1_Text_1974EA
+ msgbox SeafloorCavern_Room1_Text_1974FF, 6
+ end
+
+SeafloorCavern_Room1_EventScript_15DA84:: @ 815DA84
+ trainerbattle 0, OPPONENT_SEAFLOOR_CAVERN_GRUNT_2, 0, SeafloorCavern_Room1_Text_19753C, SeafloorCavern_Room1_Text_197573
+ msgbox SeafloorCavern_Room1_Text_197589, 6
+ end
diff --git a/data/maps/SeafloorCavern_Room2/scripts.inc b/data/maps/SeafloorCavern_Room2/scripts.inc
new file mode 100644
index 000000000..b4507c8b9
--- /dev/null
+++ b/data/maps/SeafloorCavern_Room2/scripts.inc
@@ -0,0 +1,2 @@
+SeafloorCavern_Room2_MapScripts:: @ 815DA9B
+ .byte 0
diff --git a/data/maps/SeafloorCavern_Room3/scripts.inc b/data/maps/SeafloorCavern_Room3/scripts.inc
new file mode 100644
index 000000000..2ff8c4b26
--- /dev/null
+++ b/data/maps/SeafloorCavern_Room3/scripts.inc
@@ -0,0 +1,12 @@
+SeafloorCavern_Room3_MapScripts:: @ 815DA9C
+ map_script 3, SeafloorCavern_Room3_MapScript1_15DAA2
+ .byte 0
+
+SeafloorCavern_Room3_MapScript1_15DAA2:: @ 815DAA2
+ call SeafloorCavern_Room3_EventScript_1A0196
+ end
+
+SeafloorCavern_Room3_EventScript_15DAA8:: @ 815DAA8
+ trainerbattle 0, OPPONENT_SEAFLOOR_CAVERN_GRUNT_3, 0, SeafloorCavern_Room3_Text_1975DC, SeafloorCavern_Room3_Text_1976F3
+ msgbox SeafloorCavern_Room3_Text_197704, 6
+ end
diff --git a/data/maps/SeafloorCavern_Room4/scripts.inc b/data/maps/SeafloorCavern_Room4/scripts.inc
new file mode 100644
index 000000000..cbed797c0
--- /dev/null
+++ b/data/maps/SeafloorCavern_Room4/scripts.inc
@@ -0,0 +1,12 @@
+SeafloorCavern_Room4_MapScripts:: @ 815DABF
+ map_script 3, SeafloorCavern_Room4_MapScript1_15DAC5
+ .byte 0
+
+SeafloorCavern_Room4_MapScript1_15DAC5:: @ 815DAC5
+ call SeafloorCavern_Room4_EventScript_1A0196
+ end
+
+SeafloorCavern_Room4_EventScript_15DACB:: @ 815DACB
+ trainerbattle 0, OPPONENT_SEAFLOOR_CAVERN_GRUNT_4, 0, SeafloorCavern_Room4_Text_1977B9, SeafloorCavern_Room4_Text_1977E2
+ msgbox SeafloorCavern_Room4_Text_1977ED, 6
+ end
diff --git a/data/maps/SeafloorCavern_Room5/scripts.inc b/data/maps/SeafloorCavern_Room5/scripts.inc
new file mode 100644
index 000000000..79b65c2e6
--- /dev/null
+++ b/data/maps/SeafloorCavern_Room5/scripts.inc
@@ -0,0 +1,2 @@
+SeafloorCavern_Room5_MapScripts:: @ 815DAE2
+ .byte 0
diff --git a/data/maps/SeafloorCavern_Room6/scripts.inc b/data/maps/SeafloorCavern_Room6/scripts.inc
new file mode 100644
index 000000000..3ebeae07f
--- /dev/null
+++ b/data/maps/SeafloorCavern_Room6/scripts.inc
@@ -0,0 +1,2 @@
+SeafloorCavern_Room6_MapScripts:: @ 815DAE3
+ .byte 0
diff --git a/data/maps/SeafloorCavern_Room7/scripts.inc b/data/maps/SeafloorCavern_Room7/scripts.inc
new file mode 100644
index 000000000..acad96ad0
--- /dev/null
+++ b/data/maps/SeafloorCavern_Room7/scripts.inc
@@ -0,0 +1,2 @@
+SeafloorCavern_Room7_MapScripts:: @ 815DAE4
+ .byte 0
diff --git a/data/maps/SeafloorCavern_Room8/scripts.inc b/data/maps/SeafloorCavern_Room8/scripts.inc
new file mode 100644
index 000000000..117f9e6b5
--- /dev/null
+++ b/data/maps/SeafloorCavern_Room8/scripts.inc
@@ -0,0 +1,2 @@
+SeafloorCavern_Room8_MapScripts:: @ 815DAE5
+ .byte 0
diff --git a/data/maps/SeafloorCavern_Room9/scripts.inc b/data/maps/SeafloorCavern_Room9/scripts.inc
new file mode 100644
index 000000000..eb46278dd
--- /dev/null
+++ b/data/maps/SeafloorCavern_Room9/scripts.inc
@@ -0,0 +1,291 @@
+SeafloorCavern_Room9_MapScripts:: @ 815DAE6
+ map_script 3, SeafloorCavern_Room9_MapScript1_15DAEC
+ .byte 0
+
+SeafloorCavern_Room9_MapScript1_15DAEC:: @ 815DAEC
+ call SeafloorCavern_Room9_EventScript_1A0196
+ call SeafloorCavern_Room9_EventScript_1A01B5
+ .ifdef SAPPHIRE
+ setmaplayoutindex 157
+ .else
+ setmaplayoutindex 327
+ .endif
+ end
+
+SeafloorCavern_Room9_EventScript_15DAFA:: @ 815DAFA
+ lockall
+ setvar VAR_SPECIAL_4, 2
+ setvar VAR_SPECIAL_5, 3
+ setvar VAR_SPECIAL_6, 4
+ setvar VAR_SPECIAL_7, 5
+ applymovement 255, SeafloorCavern_Room9_Movement_1A0841
+ waitmovement 0
+ applymovement 255, SeafloorCavern_Room9_Movement_15DD68
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B41B8, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4850, 4
+ .endif
+ closemessage
+ addobject VAR_SPECIAL_4
+ applymovement 255, SeafloorCavern_Room9_Movement_1A083F
+ waitmovement 0
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_15DD36
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B41D5, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B486C, 4
+ .endif
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_1A0841
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B4201, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4897, 4
+ .endif
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_1A0839
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B4289, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B491F, 4
+ .endif
+ .ifdef SAPPHIRE
+ trainerbattle 3, OPPONENT_SEAFLOOR_CAVERN_GRUNT_5, 0, UnknownString_81B4319
+ .else
+ trainerbattle 3, OPPONENT_SEAFLOOR_CAVERN_GRUNT_5, 0, SeafloorCavern_Room9_Text_1B49AE
+ .endif
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B432C, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B49C1, 4
+ .endif
+ setweather WEATHER_NONE
+ doweather
+ special sub_8081924
+ waitstate
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B43C4, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4A5A, 4
+ .endif
+ special WaitWeather
+ waitstate
+ .ifdef SAPPHIRE
+ setvar RESULT, 1
+ .else
+ setvar RESULT, 0
+ .endif
+ playse SE_W197
+ setfieldeffectargument 0, 16
+ setfieldeffectargument 1, 42
+ setfieldeffectargument 2, 0
+ dofieldeffect FLDEFF_SPARKLE
+ waitfieldeffect FLDEFF_SPARKLE
+ .ifdef SAPPHIRE
+ setvar RESULT, 0
+ .else
+ setvar RESULT, 1
+ .endif
+ playfanfare BGM_ME_TAMA
+ playse SE_TAMA
+ special sub_80818A4
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_1A0841
+ applymovement 255, SeafloorCavern_Room9_Movement_1A0841
+ waitmovement 0
+ delay 150
+ removeobject 7
+ addobject 1
+ waitstate
+ delay 60
+ applymovement 1, SeafloorCavern_Room9_Movement_15DD4C
+ waitmovement 0
+ special sub_80818FC
+ waitstate
+ setvar VAR_SPECIAL_4, 1
+ setvar VAR_SPECIAL_5, 1
+ special sub_810F758
+ waitstate
+ applymovement 1, SeafloorCavern_Room9_Movement_15DD57
+ waitmovement 0
+ removeobject 1
+ delay 4
+ setvar VAR_SPECIAL_4, 2
+ setvar VAR_SPECIAL_5, 2
+ special sub_810F758
+ waitstate
+ delay 30
+ setvar VAR_SPECIAL_4, 2
+ setvar VAR_SPECIAL_5, 3
+ setvar VAR_SPECIAL_6, 4
+ setvar VAR_SPECIAL_7, 5
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B43F2, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4A89, 4
+ .endif
+ playse SE_PC_LOGON
+ applymovement 255, SeafloorCavern_Room9_Movement_1A083F
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B4443, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4ADB, 4
+ .endif
+ closemessage
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_15DD41
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B447A, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4B11, 4
+ .endif
+ closemessage
+ playse SE_PC_OFF
+ delay 20
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_1A0845
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B45C6, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4C79, 4
+ .endif
+ closemessage
+ addobject VAR_SPECIAL_5
+ addobject VAR_SPECIAL_6
+ addobject VAR_SPECIAL_7
+ applymovement VAR_SPECIAL_7, SeafloorCavern_Room9_Movement_15DD63
+ applymovement VAR_SPECIAL_6, SeafloorCavern_Room9_Movement_15DD63
+ applymovement VAR_SPECIAL_5, SeafloorCavern_Room9_Movement_15DD5A
+ waitmovement 0
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_1A083F
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B464D, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4D02, 4
+ .endif
+ playse SE_PIN
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_1A0833
+ waitmovement 0
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_1A0835
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B4723, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4DD3, 4
+ .endif
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B4786, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4E37, 4
+ .endif
+ closemessage
+ applymovement VAR_SPECIAL_5, SeafloorCavern_Room9_Movement_15DD60
+ applymovement VAR_SPECIAL_4, SeafloorCavern_Room9_Movement_15DD46
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox UnknownString_81B4818, 4
+ .else
+ msgbox SeafloorCavern_Room9_Text_1B4ECA, 4
+ .endif
+ setvar VAR_ROUTE128_STATE, 1
+ clearflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_1
+ clearflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_2
+ clearflag FLAG_HIDE_WALLACE_SOOTOPOLIS
+ clearflag FLAG_HIDE_STEVEN_SOOTOPOLIS
+ setvar VAR_SOOTOPOLIS_STATE, 1
+ clearflag FLAG_HIDE_EVIL_LEADER_ROUTE128
+ clearflag FLAG_HIDE_OTHER_LEADER_ROUTE128
+ setflag FLAG_SYS_WEATHER_CTRL
+ setflag FLAG_HIDE_SOOTOPOLIS_RESIDENTS
+ setflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
+ setflag FLAG_HIDE_STEVEN_STEVENS_HOUSE
+ setvar VAR_STEVENS_HOUSE_STATE, 1
+ setvar VAR_SEAFLOOR_CAVERN_STATE, 1
+ setflag FLAG_HIDE_EVIL_LEADER_SEAFLOOR_CAVERN
+ setflag FLAG_HIDE_OTHER_LEADER_SEAFLOOR_CAVERN
+ setflag FLAG_HIDE_OTHER_TEAM_GRUNTS_SEAFLOOR_CAVERN
+ setflag FLAG_HIDE_AWAKENED_MON_SEAFLOOR_CAVERN
+ setflag FLAG_HIDE_EVIL_TEAM_GRUNTS_SEAFLOOR_CAVERN
+ warp MAP_ROUTE128, 255, 38, 22
+ waitstate
+ releaseall
+ end
+
+SeafloorCavern_Room9_Movement_15DD36:: @ 815DD36
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+@ 815DD3E
+ walk_left
+ walk_left
+ end_movement
+
+SeafloorCavern_Room9_Movement_15DD41:: @ 815DD41
+ walk_left
+ delay_16
+ end_movement
+
+@ 815DD44
+ walk_right
+ end_movement
+
+SeafloorCavern_Room9_Movement_15DD46:: @ 815DD46
+ face_up
+ lock_facing_direction
+ walk_down
+ unlock_facing_direction
+ walk_in_place_fastest_right
+ end_movement
+
+SeafloorCavern_Room9_Movement_15DD4C:: @ 815DD4C
+ delay_16
+ delay_16
+ walk_slow_down
+ delay_16
+ delay_16
+ delay_16
+ walk_slow_down
+ delay_16
+ delay_16
+ delay_16
+ end_movement
+
+SeafloorCavern_Room9_Movement_15DD57:: @ 815DD57
+ slide_up
+ slide_up
+ end_movement
+
+SeafloorCavern_Room9_Movement_15DD5A:: @ 815DD5A
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ end_movement
+
+SeafloorCavern_Room9_Movement_15DD60:: @ 815DD60
+ walk_right
+ walk_right
+ end_movement
+
+SeafloorCavern_Room9_Movement_15DD63:: @ 815DD63
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ end_movement
+
+SeafloorCavern_Room9_Movement_15DD68:: @ 815DD68
+ delay_16
+ delay_16
+ end_movement
diff --git a/data/maps/SealedChamber_InnerRoom/scripts.inc b/data/maps/SealedChamber_InnerRoom/scripts.inc
new file mode 100644
index 000000000..11aba3ac8
--- /dev/null
+++ b/data/maps/SealedChamber_InnerRoom/scripts.inc
@@ -0,0 +1,87 @@
+SealedChamber_InnerRoom_MapScripts:: @ 815F1E7
+ .byte 0
+
+SealedChamber_InnerRoom_EventScript_15F1E8:: @ 815F1E8
+ lockall
+ braillemessage SealedChamber_InnerRoom_Braille_1C53C1
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ goto_if_set FLAG_REGI_DOORS_OPENED, SealedChamber_InnerRoom_EventScript_15F247
+ specialvar RESULT, CheckRelicanthWailord
+ compare RESULT, 0
+ goto_if_eq SealedChamber_InnerRoom_EventScript_15F247
+ fadeoutbgm 0
+ playse SE_TRACK_MOVE
+ special DoSealedChamberShakingEffect1
+ waitstate
+ delay 40
+ special DoSealedChamberShakingEffect2
+ waitstate
+ playse SE_DOOR
+ delay 40
+ special DoSealedChamberShakingEffect2
+ waitstate
+ playse SE_DOOR
+ delay 40
+ special DoSealedChamberShakingEffect2
+ waitstate
+ playse SE_DOOR
+ delay 40
+ msgbox SealedChamber_InnerRoom_Text_1A138B, 4
+ closemessage
+ fadeinbgm 0
+ setflag FLAG_REGI_DOORS_OPENED
+ releaseall
+ end
+
+SealedChamber_InnerRoom_EventScript_15F247:: @ 815F247
+ releaseall
+ end
+
+SealedChamber_InnerRoom_EventScript_15F249:: @ 815F249
+ lockall
+ braillemessage SealedChamber_InnerRoom_Braille_1C53F2
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_InnerRoom_EventScript_15F257:: @ 815F257
+ lockall
+ braillemessage SealedChamber_InnerRoom_Braille_1C5414
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_InnerRoom_EventScript_15F265:: @ 815F265
+ lockall
+ braillemessage SealedChamber_InnerRoom_Braille_1C5435
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_InnerRoom_EventScript_15F273:: @ 815F273
+ lockall
+ braillemessage SealedChamber_InnerRoom_Braille_1C545C
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_InnerRoom_EventScript_15F281:: @ 815F281
+ lockall
+ braillemessage SealedChamber_InnerRoom_Braille_1C5470
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_InnerRoom_EventScript_15F28F:: @ 815F28F
+ lockall
+ braillemessage SealedChamber_InnerRoom_Braille_1C549B
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
diff --git a/data/maps/SealedChamber_OuterRoom/scripts.inc b/data/maps/SealedChamber_OuterRoom/scripts.inc
new file mode 100644
index 000000000..1f2159010
--- /dev/null
+++ b/data/maps/SealedChamber_OuterRoom/scripts.inc
@@ -0,0 +1,129 @@
+SealedChamber_OuterRoom_MapScripts:: @ 815F0C6
+ map_script 5, SealedChamber_OuterRoom_MapScript1_15F0D6
+ map_script 3, SealedChamber_OuterRoom_MapScript1_15F0E7
+ map_script 1, SealedChamber_OuterRoom_MapScript1_15F0EB
+ .byte 0
+
+SealedChamber_OuterRoom_MapScript1_15F0D6:: @ 815F0D6
+ setdivewarp MAP_UNDERWATER_SEALED_CHAMBER, 255, 12, 44
+ setescapewarp MAP_UNDERWATER_SEALED_CHAMBER, 255, 12, 44
+ end
+
+SealedChamber_OuterRoom_MapScript1_15F0E7:: @ 815F0E7
+ setflag FLAG_LANDMARK_SEALED_CHAMBER
+ end
+
+SealedChamber_OuterRoom_MapScript1_15F0EB:: @ 815F0EB
+ call_if_unset FLAG_SYS_BRAILLE_DIG, SealedChamber_OuterRoom_EventScript_15F0F5
+ end
+
+SealedChamber_OuterRoom_EventScript_15F0F5:: @ 815F0F5
+ setmetatile 9, 1, 553, 1
+ setmetatile 10, 1, 553, 1
+ setmetatile 11, 1, 553, 1
+ setmetatile 9, 2, 565, 1
+ setmetatile 10, 2, 565, 1
+ setmetatile 11, 2, 565, 1
+ return
+
+SealedChamber_OuterRoom_EventScript_15F12C:: @ 815F12C
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C534F
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F13A:: @ 815F13A
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C5359
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F148:: @ 815F148
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C5363
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F156:: @ 815F156
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C536D
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F164:: @ 815F164
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C5377
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F172:: @ 815F172
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C5381
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F180:: @ 815F180
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C538B
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F18E:: @ 815F18E
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C5396
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F19C:: @ 815F19C
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C539E
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F1AA:: @ 815F1AA
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C53A9
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F1B8:: @ 815F1B8
+ lockall
+ goto_if_set FLAG_SYS_BRAILLE_DIG, SealedChamber_OuterRoom_EventScript_15F1CF
+ braillemessage SealedChamber_OuterRoom_Braille_1C53B1
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F1CF:: @ 815F1CF
+ msgbox SealedChamber_OuterRoom_Text_1A13BE, 4
+ releaseall
+ end
+
+SealedChamber_OuterRoom_EventScript_15F1D9:: @ 815F1D9
+ lockall
+ braillemessage SealedChamber_OuterRoom_Braille_1C53B1
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
diff --git a/data/maps/SecretBase_BlueCave1/scripts.inc b/data/maps/SecretBase_BlueCave1/scripts.inc
new file mode 100644
index 000000000..bca6bee55
--- /dev/null
+++ b/data/maps/SecretBase_BlueCave1/scripts.inc
@@ -0,0 +1 @@
+SecretBase_BlueCave1_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_BlueCave2/scripts.inc b/data/maps/SecretBase_BlueCave2/scripts.inc
new file mode 100644
index 000000000..4fc579fb9
--- /dev/null
+++ b/data/maps/SecretBase_BlueCave2/scripts.inc
@@ -0,0 +1 @@
+SecretBase_BlueCave2_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_BlueCave3/scripts.inc b/data/maps/SecretBase_BlueCave3/scripts.inc
new file mode 100644
index 000000000..0a8199f19
--- /dev/null
+++ b/data/maps/SecretBase_BlueCave3/scripts.inc
@@ -0,0 +1 @@
+SecretBase_BlueCave3_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_BlueCave4/scripts.inc b/data/maps/SecretBase_BlueCave4/scripts.inc
new file mode 100644
index 000000000..72c1e9612
--- /dev/null
+++ b/data/maps/SecretBase_BlueCave4/scripts.inc
@@ -0,0 +1 @@
+SecretBase_BlueCave4_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_BrownCave1/scripts.inc b/data/maps/SecretBase_BrownCave1/scripts.inc
new file mode 100644
index 000000000..ddbf182e4
--- /dev/null
+++ b/data/maps/SecretBase_BrownCave1/scripts.inc
@@ -0,0 +1 @@
+SecretBase_BrownCave1_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_BrownCave2/scripts.inc b/data/maps/SecretBase_BrownCave2/scripts.inc
new file mode 100644
index 000000000..06dcb6335
--- /dev/null
+++ b/data/maps/SecretBase_BrownCave2/scripts.inc
@@ -0,0 +1 @@
+SecretBase_BrownCave2_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_BrownCave3/scripts.inc b/data/maps/SecretBase_BrownCave3/scripts.inc
new file mode 100644
index 000000000..a0a85dc11
--- /dev/null
+++ b/data/maps/SecretBase_BrownCave3/scripts.inc
@@ -0,0 +1 @@
+SecretBase_BrownCave3_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_BrownCave4/scripts.inc b/data/maps/SecretBase_BrownCave4/scripts.inc
new file mode 100644
index 000000000..12d931e9e
--- /dev/null
+++ b/data/maps/SecretBase_BrownCave4/scripts.inc
@@ -0,0 +1 @@
+SecretBase_BrownCave4_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_RedCave1/scripts.inc b/data/maps/SecretBase_RedCave1/scripts.inc
new file mode 100644
index 000000000..77b99daec
--- /dev/null
+++ b/data/maps/SecretBase_RedCave1/scripts.inc
@@ -0,0 +1 @@
+SecretBase_RedCave1_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_RedCave2/scripts.inc b/data/maps/SecretBase_RedCave2/scripts.inc
new file mode 100644
index 000000000..735d386fc
--- /dev/null
+++ b/data/maps/SecretBase_RedCave2/scripts.inc
@@ -0,0 +1 @@
+SecretBase_RedCave2_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_RedCave3/scripts.inc b/data/maps/SecretBase_RedCave3/scripts.inc
new file mode 100644
index 000000000..c9b72ca30
--- /dev/null
+++ b/data/maps/SecretBase_RedCave3/scripts.inc
@@ -0,0 +1 @@
+SecretBase_RedCave3_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_RedCave4/scripts.inc b/data/maps/SecretBase_RedCave4/scripts.inc
new file mode 100644
index 000000000..6d2402f03
--- /dev/null
+++ b/data/maps/SecretBase_RedCave4/scripts.inc
@@ -0,0 +1 @@
+SecretBase_RedCave4_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_Shrub1/scripts.inc b/data/maps/SecretBase_Shrub1/scripts.inc
new file mode 100644
index 000000000..79116a0cf
--- /dev/null
+++ b/data/maps/SecretBase_Shrub1/scripts.inc
@@ -0,0 +1 @@
+SecretBase_Shrub1_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_Shrub2/scripts.inc b/data/maps/SecretBase_Shrub2/scripts.inc
new file mode 100644
index 000000000..49835f7f3
--- /dev/null
+++ b/data/maps/SecretBase_Shrub2/scripts.inc
@@ -0,0 +1 @@
+SecretBase_Shrub2_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_Shrub3/scripts.inc b/data/maps/SecretBase_Shrub3/scripts.inc
new file mode 100644
index 000000000..0aeb7bdf9
--- /dev/null
+++ b/data/maps/SecretBase_Shrub3/scripts.inc
@@ -0,0 +1 @@
+SecretBase_Shrub3_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_Shrub4/scripts.inc b/data/maps/SecretBase_Shrub4/scripts.inc
new file mode 100644
index 000000000..f131b308d
--- /dev/null
+++ b/data/maps/SecretBase_Shrub4/scripts.inc
@@ -0,0 +1 @@
+SecretBase_Shrub4_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_Tree1/scripts.inc b/data/maps/SecretBase_Tree1/scripts.inc
new file mode 100644
index 000000000..7345c3bbb
--- /dev/null
+++ b/data/maps/SecretBase_Tree1/scripts.inc
@@ -0,0 +1 @@
+SecretBase_Tree1_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_Tree2/scripts.inc b/data/maps/SecretBase_Tree2/scripts.inc
new file mode 100644
index 000000000..0f2976a8c
--- /dev/null
+++ b/data/maps/SecretBase_Tree2/scripts.inc
@@ -0,0 +1 @@
+SecretBase_Tree2_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_Tree3/scripts.inc b/data/maps/SecretBase_Tree3/scripts.inc
new file mode 100644
index 000000000..cb80b0d25
--- /dev/null
+++ b/data/maps/SecretBase_Tree3/scripts.inc
@@ -0,0 +1 @@
+SecretBase_Tree3_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_Tree4/scripts.inc b/data/maps/SecretBase_Tree4/scripts.inc
new file mode 100644
index 000000000..0a6771740
--- /dev/null
+++ b/data/maps/SecretBase_Tree4/scripts.inc
@@ -0,0 +1 @@
+SecretBase_Tree4_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_YellowCave1/scripts.inc b/data/maps/SecretBase_YellowCave1/scripts.inc
new file mode 100644
index 000000000..b76a5f44e
--- /dev/null
+++ b/data/maps/SecretBase_YellowCave1/scripts.inc
@@ -0,0 +1 @@
+SecretBase_YellowCave1_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_YellowCave2/scripts.inc b/data/maps/SecretBase_YellowCave2/scripts.inc
new file mode 100644
index 000000000..0bc1fc354
--- /dev/null
+++ b/data/maps/SecretBase_YellowCave2/scripts.inc
@@ -0,0 +1 @@
+SecretBase_YellowCave2_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_YellowCave3/scripts.inc b/data/maps/SecretBase_YellowCave3/scripts.inc
new file mode 100644
index 000000000..137f04316
--- /dev/null
+++ b/data/maps/SecretBase_YellowCave3/scripts.inc
@@ -0,0 +1 @@
+SecretBase_YellowCave3_MapScripts:: @ 815F337
diff --git a/data/maps/SecretBase_YellowCave4/scripts.inc b/data/maps/SecretBase_YellowCave4/scripts.inc
new file mode 100644
index 000000000..bb673b7b6
--- /dev/null
+++ b/data/maps/SecretBase_YellowCave4/scripts.inc
@@ -0,0 +1,23 @@
+SecretBase_YellowCave4_MapScripts:: @ 815F337
+ map_script 4, SecretBase_RedCave1_MapScript2_15F358
+ map_script 3, SecretBase_RedCave1_MapScript1_15F34F
+ map_script 2, SecretBase_RedCave1_MapScript2_15F362
+ map_script 5, SecretBase_RedCave1_MapScript1_15F34C
+ .byte 0
+
+SecretBase_RedCave1_MapScript1_15F34C:: @ 815F34C
+ setstepcallback 6
+ end
+
+SecretBase_RedCave1_MapScript1_15F34F:: @ 815F34F
+ call SecretBase_RedCave1_EventScript_1A2F3D
+ special sub_80BBFA4
+ end
+
+SecretBase_RedCave1_MapScript2_15F358:: @ 815F358
+ map_script_2 0x4089, 0, SecretBase_RedCave1_EventScript_1A2F68
+ .2byte 0
+
+SecretBase_RedCave1_MapScript2_15F362:: @ 815F362
+ map_script_2 VAR_0x4097, 0, SecretBase_RedCave1_EventScript_1A2DDE
+ .2byte 0
diff --git a/data/maps/ShoalCave_HighTideEntranceRoom/scripts.inc b/data/maps/ShoalCave_HighTideEntranceRoom/scripts.inc
new file mode 100644
index 000000000..ae1f2c279
--- /dev/null
+++ b/data/maps/ShoalCave_HighTideEntranceRoom/scripts.inc
@@ -0,0 +1,2 @@
+ShoalCave_HighTideEntranceRoom_MapScripts:: @ 815E488
+ .byte 0
diff --git a/data/maps/ShoalCave_HighTideInnerRoom/scripts.inc b/data/maps/ShoalCave_HighTideInnerRoom/scripts.inc
new file mode 100644
index 000000000..9b47c97e7
--- /dev/null
+++ b/data/maps/ShoalCave_HighTideInnerRoom/scripts.inc
@@ -0,0 +1,2 @@
+ShoalCave_HighTideInnerRoom_MapScripts:: @ 815E489
+ .byte 0
diff --git a/data/maps/ShoalCave_LowTideEntranceRoom/scripts.inc b/data/maps/ShoalCave_LowTideEntranceRoom/scripts.inc
new file mode 100644
index 000000000..2005cb67b
--- /dev/null
+++ b/data/maps/ShoalCave_LowTideEntranceRoom/scripts.inc
@@ -0,0 +1,100 @@
+ShoalCave_LowTideEntranceRoom_MapScripts:: @ 815E057
+ map_script 3, ShoalCave_LowTideEntranceRoom_MapScript1_15E05D
+ .byte 0
+
+ShoalCave_LowTideEntranceRoom_MapScript1_15E05D:: @ 815E05D
+ special UpdateShoalTideFlag
+ goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideEntranceRoom_EventScript_15E06E
+ goto ShoalCave_LowTideEntranceRoom_EventScript_15E072
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E06E:: @ 815E06E
+ setmaplayoutindex 169
+ end
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E072:: @ 815E072
+ setmaplayoutindex 165
+ end
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E076:: @ 815E076
+ lock
+ faceplayer
+ dodailyevents
+ call_if_set FLAG_SYS_SHOAL_ITEM, ShoalCave_LowTideEntranceRoom_EventScript_15E176
+ checkitem ITEM_SHOAL_SALT, 4
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E138
+ checkitem ITEM_SHOAL_SHELL, 4
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E138
+ msgbox ShoalCave_LowTideEntranceRoom_Text_1C6793, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E16C
+ checkitemspace ITEM_SHELL_BELL, 1
+ compare RESULT, 0
+ call_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E106
+ compare RESULT, 2
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E12E
+ msgbox ShoalCave_LowTideEntranceRoom_Text_1C6808, 4
+ takeitem ITEM_SHOAL_SALT, 4
+ takeitem ITEM_SHOAL_SHELL, 4
+ giveitem_std ITEM_SHELL_BELL
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_1A029B
+ msgbox ShoalCave_LowTideEntranceRoom_Text_1C688E, 4
+ setflag FLAG_TEMP_2
+ release
+ end
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E106:: @ 815E106
+ checkitem ITEM_SHOAL_SALT, 5
+ compare RESULT, 1
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E117
+ return
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E117:: @ 815E117
+ checkitem ITEM_SHOAL_SHELL, 5
+ compare RESULT, 1
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E128
+ return
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E128:: @ 815E128
+ setvar RESULT, 2
+ return
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E12E:: @ 815E12E
+ msgbox ShoalCave_LowTideEntranceRoom_Text_1C69F5, 4
+ release
+ end
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E138:: @ 815E138
+ checkitem ITEM_SHOAL_SALT, 1
+ compare RESULT, 1
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E162
+ checkitem ITEM_SHOAL_SHELL, 1
+ compare RESULT, 1
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E162
+ msgbox ShoalCave_LowTideEntranceRoom_Text_1C6668, 4
+ release
+ end
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E162:: @ 815E162
+ msgbox ShoalCave_LowTideEntranceRoom_Text_1C670D, 4
+ release
+ end
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E16C:: @ 815E16C
+ msgbox ShoalCave_LowTideEntranceRoom_Text_1C6944, 4
+ release
+ end
+
+ShoalCave_LowTideEntranceRoom_EventScript_15E176:: @ 815E176
+ clearflag FLAG_HIDE_TOOK_SHOAL_SALT_1
+ clearflag FLAG_HIDE_TOOK_SHOAL_SALT_2
+ clearflag FLAG_HIDE_TOOK_SHOAL_SALT_3
+ clearflag FLAG_HIDE_TOOK_SHOAL_SALT_4
+ clearflag FLAG_HIDE_TOOK_SHOAL_SHELL_1
+ clearflag FLAG_HIDE_TOOK_SHOAL_SHELL_2
+ clearflag FLAG_HIDE_TOOK_SHOAL_SHELL_3
+ clearflag FLAG_HIDE_TOOK_SHOAL_SHELL_4
+ clearflag FLAG_SYS_SHOAL_ITEM
+ return
diff --git a/data/maps/ShoalCave_LowTideIceRoom/scripts.inc b/data/maps/ShoalCave_LowTideIceRoom/scripts.inc
new file mode 100644
index 000000000..311ff2126
--- /dev/null
+++ b/data/maps/ShoalCave_LowTideIceRoom/scripts.inc
@@ -0,0 +1,2 @@
+ShoalCave_LowTideIceRoom_MapScripts:: @ 815F300
+ .byte 0
diff --git a/data/maps/ShoalCave_LowTideInnerRoom/scripts.inc b/data/maps/ShoalCave_LowTideInnerRoom/scripts.inc
new file mode 100644
index 000000000..21997d076
--- /dev/null
+++ b/data/maps/ShoalCave_LowTideInnerRoom/scripts.inc
@@ -0,0 +1,142 @@
+ShoalCave_LowTideInnerRoom_MapScripts:: @ 815E192
+ map_script 1, ShoalCave_LowTideInnerRoom_MapScript1_15E1B3
+ map_script 3, ShoalCave_LowTideInnerRoom_MapScript1_15E19D
+ .byte 0
+
+ShoalCave_LowTideInnerRoom_MapScript1_15E19D:: @ 815E19D
+ goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_15E1AB
+ goto ShoalCave_LowTideInnerRoom_EventScript_15E1AF
+
+ShoalCave_LowTideInnerRoom_EventScript_15E1AB:: @ 815E1AB
+ setmaplayoutindex 170
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E1AF:: @ 815E1AF
+ setmaplayoutindex 166
+ end
+
+ShoalCave_LowTideInnerRoom_MapScript1_15E1B3:: @ 815E1B3
+ call ShoalCave_LowTideInnerRoom_EventScript_15E1B9
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E1B9:: @ 815E1B9
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_15E1DA
+ goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_15E1DA
+ setmetatile 31, 8, 856, 1
+ goto ShoalCave_LowTideInnerRoom_EventScript_15E1DA
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E1DA:: @ 815E1DA
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_15E1FB
+ goto_if_set FLAG_SYS_SHOAL_TIDE, ShoalCave_LowTideInnerRoom_EventScript_15E1FB
+ setmetatile 14, 26, 856, 1
+ goto ShoalCave_LowTideInnerRoom_EventScript_15E1FB
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E1FB:: @ 815E1FB
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_15E213
+ setmetatile 41, 20, 857, 1
+ goto ShoalCave_LowTideInnerRoom_EventScript_15E213
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E213:: @ 815E213
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_15E22B
+ setmetatile 41, 10, 857, 1
+ goto ShoalCave_LowTideInnerRoom_EventScript_15E22B
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E22B:: @ 815E22B
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_15E243
+ setmetatile 6, 9, 857, 1
+ goto ShoalCave_LowTideInnerRoom_EventScript_15E243
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E243:: @ 815E243
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_15E256
+ setmetatile 16, 13, 857, 1
+ return
+
+ShoalCave_LowTideInnerRoom_EventScript_15E256:: @ 815E256
+ return
+
+ShoalCave_LowTideInnerRoom_EventScript_15E257:: @ 815E257
+ lockall
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SHELL_1, ShoalCave_LowTideInnerRoom_EventScript_15E289
+ giveitem_std ITEM_SHOAL_SHELL
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ setmetatile 41, 20, 859, 0
+ special DrawWholeMapView
+ setflag FLAG_HIDE_TOOK_SHOAL_SHELL_1
+ releaseall
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E289:: @ 815E289
+ msgbox ShoalCave_LowTideInnerRoom_Text_1C69B8, 4
+ releaseall
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E293:: @ 815E293
+ lockall
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SHELL_2, ShoalCave_LowTideInnerRoom_EventScript_15E289
+ giveitem_std ITEM_SHOAL_SHELL
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ setmetatile 41, 10, 859, 0
+ special DrawWholeMapView
+ setflag FLAG_HIDE_TOOK_SHOAL_SHELL_2
+ releaseall
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E2C5:: @ 815E2C5
+ lockall
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SHELL_3, ShoalCave_LowTideInnerRoom_EventScript_15E289
+ giveitem_std ITEM_SHOAL_SHELL
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ setmetatile 6, 9, 859, 0
+ special DrawWholeMapView
+ setflag FLAG_HIDE_TOOK_SHOAL_SHELL_3
+ releaseall
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E2F7:: @ 815E2F7
+ lockall
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SHELL_4, ShoalCave_LowTideInnerRoom_EventScript_15E289
+ giveitem_std ITEM_SHOAL_SHELL
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ setmetatile 16, 13, 859, 0
+ special DrawWholeMapView
+ setflag FLAG_HIDE_TOOK_SHOAL_SHELL_4
+ releaseall
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E329:: @ 815E329
+ lockall
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SALT_1, ShoalCave_LowTideInnerRoom_EventScript_15E35B
+ giveitem_std ITEM_SHOAL_SALT
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ setmetatile 31, 8, 858, 0
+ special DrawWholeMapView
+ setflag FLAG_HIDE_TOOK_SHOAL_SALT_1
+ releaseall
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E35B:: @ 815E35B
+ msgbox ShoalCave_LowTideInnerRoom_Text_1C6979, 4
+ releaseall
+ end
+
+ShoalCave_LowTideInnerRoom_EventScript_15E365:: @ 815E365
+ lockall
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SALT_2, ShoalCave_LowTideInnerRoom_EventScript_15E35B
+ giveitem_std ITEM_SHOAL_SALT
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ setmetatile 14, 26, 858, 0
+ special DrawWholeMapView
+ setflag FLAG_HIDE_TOOK_SHOAL_SALT_2
+ releaseall
+ end
diff --git a/data/maps/ShoalCave_LowTideLowerRoom/scripts.inc b/data/maps/ShoalCave_LowTideLowerRoom/scripts.inc
new file mode 100644
index 000000000..19223a499
--- /dev/null
+++ b/data/maps/ShoalCave_LowTideLowerRoom/scripts.inc
@@ -0,0 +1,49 @@
+ShoalCave_LowTideLowerRoom_MapScripts:: @ 815E3F3
+ map_script 1, ShoalCave_LowTideLowerRoom_MapScript1_15E3F9
+ .byte 0
+
+ShoalCave_LowTideLowerRoom_MapScript1_15E3F9:: @ 815E3F9
+ call ShoalCave_LowTideLowerRoom_EventScript_15E3FF
+ end
+
+ShoalCave_LowTideLowerRoom_EventScript_15E3FF:: @ 815E3FF
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_15E412
+ setmetatile 18, 2, 856, 1
+ return
+
+ShoalCave_LowTideLowerRoom_EventScript_15E412:: @ 815E412
+ return
+
+ShoalCave_LowTideLowerRoom_EventScript_15E413:: @ 815E413
+ lockall
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SALT_4, ShoalCave_LowTideLowerRoom_EventScript_15E445
+ giveitem_std ITEM_SHOAL_SALT
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_1A029B
+ setmetatile 18, 2, 858, 0
+ special DrawWholeMapView
+ setflag FLAG_HIDE_TOOK_SHOAL_SALT_4
+ releaseall
+ end
+
+ShoalCave_LowTideLowerRoom_EventScript_15E445:: @ 815E445
+ msgbox ShoalCave_LowTideLowerRoom_Text_1C6979, 4
+ releaseall
+ end
+
+ShoalCave_LowTideLowerRoom_EventScript_15E44F:: @ 815E44F
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_FOCUS_BAND, ShoalCave_LowTideLowerRoom_EventScript_15E47E
+ msgbox ShoalCave_LowTideLowerRoom_Text_198200, 4
+ giveitem_std ITEM_FOCUS_BAND
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_1A029B
+ setflag FLAG_RECEIVED_FOCUS_BAND
+ release
+ end
+
+ShoalCave_LowTideLowerRoom_EventScript_15E47E:: @ 815E47E
+ msgbox ShoalCave_LowTideLowerRoom_Text_1982A2, 4
+ release
+ end
diff --git a/data/maps/ShoalCave_LowTideStairsRoom/scripts.inc b/data/maps/ShoalCave_LowTideStairsRoom/scripts.inc
new file mode 100644
index 000000000..5f9726038
--- /dev/null
+++ b/data/maps/ShoalCave_LowTideStairsRoom/scripts.inc
@@ -0,0 +1,32 @@
+ShoalCave_LowTideStairsRoom_MapScripts:: @ 815E397
+ map_script 1, ShoalCave_LowTideStairsRoom_MapScript1_15E39D
+ .byte 0
+
+ShoalCave_LowTideStairsRoom_MapScript1_15E39D:: @ 815E39D
+ call ShoalCave_LowTideStairsRoom_EventScript_15E3A3
+ end
+
+ShoalCave_LowTideStairsRoom_EventScript_15E3A3:: @ 815E3A3
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_15E3B6
+ setmetatile 11, 11, 856, 1
+ return
+
+ShoalCave_LowTideStairsRoom_EventScript_15E3B6:: @ 815E3B6
+ return
+
+ShoalCave_LowTideStairsRoom_EventScript_15E3B7:: @ 815E3B7
+ lockall
+ goto_if_set FLAG_HIDE_TOOK_SHOAL_SALT_3, ShoalCave_LowTideStairsRoom_EventScript_15E3E9
+ giveitem_std ITEM_SHOAL_SALT
+ compare RESULT, 0
+ goto_if_eq ShoalCave_LowTideStairsRoom_EventScript_1A029B
+ setmetatile 11, 11, 858, 0
+ special DrawWholeMapView
+ setflag FLAG_HIDE_TOOK_SHOAL_SALT_3
+ releaseall
+ end
+
+ShoalCave_LowTideStairsRoom_EventScript_15E3E9:: @ 815E3E9
+ msgbox ShoalCave_LowTideStairsRoom_Text_1C6979, 4
+ releaseall
+ end
diff --git a/data/maps/SingleBattleColosseum/scripts.inc b/data/maps/SingleBattleColosseum/scripts.inc
new file mode 100644
index 000000000..d3f2bdcaf
--- /dev/null
+++ b/data/maps/SingleBattleColosseum/scripts.inc
@@ -0,0 +1,2 @@
+SingleBattleColosseum_MapScripts:: @ 815F57C
+ .byte 0
diff --git a/data/maps/SkyPillar_1F/scripts.inc b/data/maps/SkyPillar_1F/scripts.inc
new file mode 100644
index 000000000..aa6c117da
--- /dev/null
+++ b/data/maps/SkyPillar_1F/scripts.inc
@@ -0,0 +1,2 @@
+SkyPillar_1F_MapScripts:: @ 815F2C8
+ .byte 0
diff --git a/data/maps/SkyPillar_2F/scripts.inc b/data/maps/SkyPillar_2F/scripts.inc
new file mode 100644
index 000000000..bd87e8562
--- /dev/null
+++ b/data/maps/SkyPillar_2F/scripts.inc
@@ -0,0 +1,10 @@
+SkyPillar_2F_MapScripts:: @ 815F2C9
+ map_script 2, SkyPillar_2F_MapScript2_1C6BB5
+ map_script 3, SkyPillar_2F_MapScript1_1C6BBF
+ map_script 5, SkyPillar_2F_MapScript1_15F2D9
+ .byte 0
+
+SkyPillar_2F_MapScript1_15F2D9:: @ 815F2D9
+ setstepcallback 7
+ setholewarp MAP_SKY_PILLAR_1F, 255, 0, 0
+ end
diff --git a/data/maps/SkyPillar_3F/scripts.inc b/data/maps/SkyPillar_3F/scripts.inc
new file mode 100644
index 000000000..2dc97fc9c
--- /dev/null
+++ b/data/maps/SkyPillar_3F/scripts.inc
@@ -0,0 +1,2 @@
+SkyPillar_3F_MapScripts:: @ 815F2E4
+ .byte 0
diff --git a/data/maps/SkyPillar_4F/scripts.inc b/data/maps/SkyPillar_4F/scripts.inc
new file mode 100644
index 000000000..860f35b48
--- /dev/null
+++ b/data/maps/SkyPillar_4F/scripts.inc
@@ -0,0 +1,10 @@
+SkyPillar_4F_MapScripts:: @ 815F2E5
+ map_script 2, SkyPillar_4F_MapScript2_1C6BB5
+ map_script 3, SkyPillar_4F_MapScript1_1C6BBF
+ map_script 5, SkyPillar_4F_MapScript1_15F2F5
+ .byte 0
+
+SkyPillar_4F_MapScript1_15F2F5:: @ 815F2F5
+ setstepcallback 7
+ setholewarp MAP_SKY_PILLAR_3F, 255, 0, 0
+ end
diff --git a/data/maps/SkyPillar_5F/scripts.inc b/data/maps/SkyPillar_5F/scripts.inc
new file mode 100644
index 000000000..64e6d0f38
--- /dev/null
+++ b/data/maps/SkyPillar_5F/scripts.inc
@@ -0,0 +1,2 @@
+SkyPillar_5F_MapScripts:: @ 815F301
+ .byte 0
diff --git a/data/maps/SkyPillar_Entrance/scripts.inc b/data/maps/SkyPillar_Entrance/scripts.inc
new file mode 100644
index 000000000..ab991d845
--- /dev/null
+++ b/data/maps/SkyPillar_Entrance/scripts.inc
@@ -0,0 +1,7 @@
+SkyPillar_Entrance_MapScripts:: @ 815F2BD
+ map_script 3, SkyPillar_Entrance_MapScript1_15F2C3
+ .byte 0
+
+SkyPillar_Entrance_MapScript1_15F2C3:: @ 815F2C3
+ setflag FLAG_LANDMARK_SKY_PILLAR
+ end
diff --git a/data/maps/SkyPillar_Outside/scripts.inc b/data/maps/SkyPillar_Outside/scripts.inc
new file mode 100644
index 000000000..51e6a4e83
--- /dev/null
+++ b/data/maps/SkyPillar_Outside/scripts.inc
@@ -0,0 +1,2 @@
+SkyPillar_Outside_MapScripts:: @ 815F2C7
+ .byte 0
diff --git a/data/maps/SkyPillar_Top/scripts.inc b/data/maps/SkyPillar_Top/scripts.inc
new file mode 100644
index 000000000..82149a4bc
--- /dev/null
+++ b/data/maps/SkyPillar_Top/scripts.inc
@@ -0,0 +1,27 @@
+SkyPillar_Top_MapScripts:: @ 815F302
+ map_script 5, SkyPillar_Top_MapScript1_15F308
+ .byte 0
+
+SkyPillar_Top_MapScript1_15F308:: @ 815F308
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, SkyPillar_Top_EventScript_15F312
+ end
+
+SkyPillar_Top_EventScript_15F312:: @ 815F312
+ removeobject LAST_TALKED
+ return
+
+SkyPillar_Top_EventScript_15F316:: @ 815F316
+ lock
+ faceplayer
+ setwildbattle SPECIES_RAYQUAZA, 70, ITEM_NONE
+ waitse
+ playmoncry SPECIES_RAYQUAZA, 2
+ delay 40
+ waitmoncry
+ setflag FLAG_HIDE_RAYQUAZA
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ special ScrSpecial_StartRayquazaBattle
+ waitstate
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ release
+ end
diff --git a/data/maps/SlateportCity/scripts.inc b/data/maps/SlateportCity/scripts.inc
new file mode 100644
index 000000000..7d244e633
--- /dev/null
+++ b/data/maps/SlateportCity/scripts.inc
@@ -0,0 +1,641 @@
+SlateportCity_MapScripts:: @ 814BA36
+ map_script 3, SlateportCity_MapScript1_14BA3C
+ .byte 0
+
+SlateportCity_MapScript1_14BA3C:: @ 814BA3C
+ .ifdef SAPPHIRE
+ setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_AQUA_MEMBER_F
+ setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_AQUA_MEMBER_M
+ .else
+ setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_MAGMA_MEMBER_F
+ setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_MAGMA_MEMBER_M
+ .endif
+ setvar VAR_SLATEPORT_MUSEUM_1F_STATE, 0
+ call SlateportCity_EventScript_14BA5C
+ compare VAR_SLATEPORT_STATE, 1
+ call_if_eq SlateportCity_EventScript_14BA68
+ end
+
+SlateportCity_EventScript_14BA5C:: @ 814BA5C
+ setflag FLAG_VISITED_SLATEPORT_CITY
+ setvar VAR_LINK_CONTEST_ROOM_STATE, 0
+ setflag FLAG_HIDE_CONTEST_REPORTER_SLATEPORT
+ return
+
+SlateportCity_EventScript_14BA68:: @ 814BA68
+ setobjectxyperm 11, 28, 13
+ setobjectxyperm 7, 25, 13
+ setobjectxyperm 3, 25, 14
+ setobjectxyperm 6, 27, 16
+ setobjectxyperm 8, 28, 16
+ setobjectxyperm 1, 29, 16
+ setobjectxyperm 2, 31, 14
+ setobjectmovementtype 11, 8
+ setobjectmovementtype 7, 18
+ setobjectmovementtype 3, 16
+ setobjectmovementtype 6, 7
+ setobjectmovementtype 8, 7
+ setobjectmovementtype 1, 7
+ setobjectmovementtype 2, 9
+ return
+
+SlateportCity_EventScript_14BAB6:: @ 814BAB6
+ lock
+ faceplayer
+ message SlateportCity_Text_164642
+ waitmessage
+ pokemart SlateportCity_Items1
+ msgbox SlateportCity_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+SlateportCity_Items1:: @ 814BAD0
+ .2byte ITEM_PROTEIN
+ .2byte ITEM_IRON
+ .2byte ITEM_CARBOS
+ .2byte ITEM_ZINC
+ .2byte ITEM_CALCIUM
+ .2byte ITEM_HP_UP
+ .2byte ITEM_NONE
+ release
+ end
+
+SlateportCity_EventScript_14BAE0:: @ 814BAE0
+ lock
+ faceplayer
+ bufferleadmonspeciesname 0
+ msgbox SlateportCity_Text_164682, 4
+ specialvar RESULT, LeadMonHasEffortRibbon
+ compare RESULT, 1
+ call_if_eq SlateportCity_EventScript_14BB35
+ specialvar RESULT, ScrSpecial_AreLeadMonEVsMaxedOut
+ compare RESULT, 0
+ call_if_eq SlateportCity_EventScript_14BB2B
+ msgbox SlateportCity_Text_164691, 4
+ playfanfare BGM_FANFA4
+ message SlateportCity_Text_1646DD
+ waitfanfare
+ waitmessage
+ msgbox SlateportCity_Text_1646FC, 4
+ special GivLeadMonEffortRibbon
+ release
+ end
+
+SlateportCity_EventScript_14BB2B:: @ 814BB2B
+ msgbox SlateportCity_Text_16471C, 4
+ release
+ end
+
+SlateportCity_EventScript_14BB35:: @ 814BB35
+ msgbox SlateportCity_Text_164775, 4
+ release
+ end
+
+SlateportCity_EventScript_14BB3F:: @ 814BB3F
+ lock
+ faceplayer
+ compare VAR_SLATEPORT_STATE, 1
+ call_if_eq SlateportCity_EventScript_14BB56
+ msgbox SlateportCity_Text_164814, 4
+ release
+ end
+
+SlateportCity_EventScript_14BB56:: @ 814BB56
+ msgbox SlateportCity_Text_165376, 4
+ release
+ end
+
+SlateportCity_EventScript_14BB60:: @ 814BB60
+ lock
+ faceplayer
+ compare VAR_SLATEPORT_STATE, 1
+ call_if_eq SlateportCity_EventScript_14BB77
+ msgbox SlateportCity_Text_1648A0, 4
+ release
+ end
+
+SlateportCity_EventScript_14BB77:: @ 814BB77
+ msgbox SlateportCity_Text_165222, 4
+ release
+ end
+
+SlateportCity_EventScript_14BB81:: @ 814BB81
+ lock
+ faceplayer
+ compare VAR_SLATEPORT_STATE, 1
+ call_if_eq SlateportCity_EventScript_14BBA1
+ goto_if_set FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_14BBAB
+ msgbox SlateportCity_Text_164937, 4
+ release
+ end
+
+SlateportCity_EventScript_14BBA1:: @ 814BBA1
+ msgbox SlateportCity_Text_1652A0, 4
+ release
+ end
+
+SlateportCity_EventScript_14BBAB:: @ 814BBAB
+ msgbox SlateportCity_Text_164995, 4
+ release
+ end
+
+SlateportCity_EventScript_14BBB5:: @ 814BBB5
+ lock
+ faceplayer
+ compare VAR_SLATEPORT_STATE, 1
+ call_if_eq SlateportCity_EventScript_14BBCC
+ msgbox SlateportCity_Text_164A30, 4
+ release
+ end
+
+SlateportCity_EventScript_14BBCC:: @ 814BBCC
+ msgbox SlateportCity_Text_16530A, 4
+ release
+ end
+
+SlateportCity_EventScript_14BBD6:: @ 814BBD6
+ compare VAR_SLATEPORT_STATE, 1
+ goto_if_eq SlateportCity_EventScript_14BBEA
+ msgbox SlateportCity_Text_164AA9, 2
+ end
+
+SlateportCity_EventScript_14BBEA:: @ 814BBEA
+ msgbox SlateportCity_Text_1653D1, 3
+ end
+
+SlateportCity_EventScript_14BBF3:: @ 814BBF3
+ lock
+ faceplayer
+ compare VAR_SLATEPORT_STATE, 1
+ call_if_eq SlateportCity_EventScript_14BC0A
+ msgbox SlateportCity_Text_164B34, 4
+ release
+ end
+
+SlateportCity_EventScript_14BC0A:: @ 814BC0A
+ msgbox SlateportCity_Text_1653F4, 4
+ release
+ end
+
+SlateportCity_EventScript_14BC14:: @ 814BC14
+ lock
+ faceplayer
+ goto_if_set FLAG_DOCK_REJECTED_DEVON_GOODS, SlateportCity_EventScript_14BC29
+ msgbox SlateportCity_Text_164BBF, 4
+ release
+ end
+
+SlateportCity_EventScript_14BC29:: @ 814BC29
+ msgbox SlateportCity_Text_164BEA, 4
+ release
+ end
+
+SlateportCity_EventScript_14BC33:: @ 814BC33
+ msgbox SlateportCity_Text_165856, 3
+ end
+
+SlateportCity_EventScript_14BC3C:: @ 814BC3C
+ lockall
+ goto_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_EventScript_14BC63
+ goto_if_set FLAG_BADGE07_GET, SlateportCity_EventScript_14BC59
+ msgbox SlateportCity_Text_1658A0, 4
+ releaseall
+ end
+
+SlateportCity_EventScript_14BC59:: @ 814BC59
+ msgbox SlateportCity_Text_1658E8, 4
+ releaseall
+ end
+
+SlateportCity_EventScript_14BC63:: @ 814BC63
+ msgbox SlateportCity_Text_165952, 4
+ releaseall
+ end
+
+SlateportCity_EventScript_14BC6D:: @ 814BC6D
+ msgbox SlateportCity_Text_1659B3, 3
+ end
+
+SlateportCity_EventScript_14BC76:: @ 814BC76
+ msgbox SlateportCity_Text_1659E3, 3
+ end
+
+SlateportCity_EventScript_14BC7F:: @ 814BC7F
+ msgbox SlateportCity_Text_165A17, 3
+ end
+
+SlateportCity_EventScript_14BC88:: @ 814BC88
+ msgbox SlateportCity_Text_165A57, 3
+ end
+
+SlateportCity_EventScript_14BC91:: @ 814BC91
+ lockall
+ goto_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_EventScript_14BCA5
+ msgbox SlateportCity_Text_165A8B, 4
+ releaseall
+ end
+
+SlateportCity_EventScript_14BCA5:: @ 814BCA5
+ msgbox SlateportCity_Text_165B02, 4
+ releaseall
+ end
+
+SlateportCity_EventScript_14BCAF:: @ 814BCAF
+ msgbox SlateportCity_Text_165B48, 3
+ end
+
+SlateportCity_EventScript_14BCB8:: @ 814BCB8
+ lock
+ faceplayer
+ compare VAR_SLATEPORT_STATE, 1
+ call_if_eq SlateportCity_EventScript_14BCCF
+ msgbox SlateportCity_Text_164F9E, 4
+ release
+ end
+
+SlateportCity_EventScript_14BCCF:: @ 814BCCF
+ msgbox SlateportCity_Text_164F9E, 4
+ release
+ end
+
+SlateportCity_EventScript_14BCD9:: @ 814BCD9
+ msgbox SlateportCity_Text_164FFC, 2
+ end
+
+SlateportCity_EventScript_14BCE2:: @ 814BCE2
+ msgbox SlateportCity_Text_164E85, 2
+ end
+
+SlateportCity_EventScript_14BCEB:: @ 814BCEB
+ msgbox SlateportCity_Text_164EDB, 2
+ end
+
+SlateportCity_EventScript_14BCF4:: @ 814BCF4
+ msgbox SlateportCity_Text_164F62, 2
+ end
+
+SlateportCity_EventScript_14BCFD:: @ 814BCFD
+ msgbox SlateportCity_Text_16507C, 2
+ end
+
+SlateportCity_EventScript_14BD06:: @ 814BD06
+ lock
+ faceplayer
+ msgbox SlateportCity_Text_1650F1, MSGBOX_YESNO
+ compare RESULT, YES
+ call_if_eq SlateportCity_EventScript_14BD28
+ compare RESULT, NO
+ call_if_eq SlateportCity_EventScript_14BD31
+ release
+ end
+
+SlateportCity_EventScript_14BD28:: @ 814BD28
+ msgbox SlateportCity_Text_16511E, 4
+ return
+
+SlateportCity_EventScript_14BD31:: @ 814BD31
+ msgbox SlateportCity_Text_1651A1, 4
+ return
+
+SlateportCity_EventScript_14BD3A:: @ 814BD3A
+ lock
+ faceplayer
+ msgbox SlateportCity_Text_164C64, 4
+ closemessage
+ applymovement 5, SlateportCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+SlateportCity_EventScript_14BD51:: @ 814BD51
+ lock
+ faceplayer
+ msgbox SlateportCity_Text_164C9F, 4
+ closemessage
+ applymovement 19, SlateportCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+SlateportCity_EventScript_14BD68:: @ 814BD68
+ lock
+ faceplayer
+ msgbox SlateportCity_Text_164CE8, 4
+ closemessage
+ applymovement 20, SlateportCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+SlateportCity_EventScript_14BD7F:: @ 814BD7F
+ lock
+ faceplayer
+ msgbox SlateportCity_Text_164D2B, 4
+ closemessage
+ applymovement 27, SlateportCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+SlateportCity_EventScript_14BD96:: @ 814BD96
+ lock
+ faceplayer
+ msgbox SlateportCity_Text_164D92, 4
+ closemessage
+ applymovement 28, SlateportCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+SlateportCity_EventScript_14BDAD:: @ 814BDAD
+ lock
+ faceplayer
+ msgbox SlateportCity_Text_164DD5, 4
+ closemessage
+ applymovement 29, SlateportCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+SlateportCity_EventScript_14BDC4:: @ 814BDC4
+ lock
+ faceplayer
+ msgbox SlateportCity_Text_164DF4, 4
+ closemessage
+ applymovement 30, SlateportCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+SlateportCity_EventScript_14BDDB:: @ 814BDDB
+ lock
+ faceplayer
+ msgbox SlateportCity_Text_164E46, 4
+ closemessage
+ applymovement 31, SlateportCity_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+SlateportCity_EventScript_14BDF2:: @ 814BDF2
+ lock
+ faceplayer
+ message SlateportCity_Text_1A0BE4
+ waitmessage
+ pokemartdecoration SlateportCity_Decorations1
+ msgbox SlateportCity_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+SlateportCity_Decorations1:: @ 814BE0C
+ .2byte DECOR_AZURILL_DOLL
+ .2byte DECOR_MARILL_DOLL
+ .2byte DECOR_SKITTY_DOLL
+ .2byte DECOR_NONE
+ release
+ end
+
+SlateportCity_EventScript_14BE16:: @ 814BE16
+ msgbox SlateportCity_Text_1A116E, 4
+ release
+ end
+
+SlateportCity_EventScript_14BE20:: @ 814BE20
+ lock
+ faceplayer
+ goto_if_unset FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_14BE16
+ message SlateportCity_Text_1A0BE4
+ waitmessage
+ pokemartdecoration SlateportCity_Decorations2
+ msgbox SlateportCity_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+SlateportCity_Decorations2:: @ 814BE40
+ .2byte DECOR_RED_BRICK
+ .2byte DECOR_BLUE_BRICK
+ .2byte DECOR_YELLOW_BRICK
+ .2byte DECOR_RED_BALLOON
+ .2byte DECOR_BLUE_BALLOON
+ .2byte DECOR_YELLOW_BALLOON
+ .2byte DECOR_C_LOW_NOTE_MAT
+ .2byte DECOR_D_NOTE_MAT
+ .2byte DECOR_E_NOTE_MAT
+ .2byte DECOR_F_NOTE_MAT
+ .2byte DECOR_G_NOTE_MAT
+ .2byte DECOR_A_NOTE_MAT
+ .2byte DECOR_B_NOTE_MAT
+ .2byte DECOR_C_HIGH_NOTE_MAT
+ .2byte DECOR_NONE
+ release
+ end
+
+@ 814BE60
+ lock
+ faceplayer
+ goto_if_unset FLAG_RECEIVED_SECRET_POWER, SlateportCity_EventScript_14BE16
+ message SlateportCity_Text_1A0BE4
+ waitmessage
+ pokemartdecoration SlateportCity_Decorations3
+ msgbox SlateportCity_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+SlateportCity_Decorations3:: @ 814BE80
+ .2byte DECOR_MUD_BALL
+ .2byte DECOR_SLIDE
+ .2byte DECOR_FENCE_LENGTH
+ .2byte DECOR_FENCE_WIDTH
+ .2byte DECOR_TIRE
+ .2byte DECOR_BREAKABLE_DOOR
+ .2byte DECOR_SOLID_BOARD
+ .2byte DECOR_STAND
+ .2byte DECOR_TV
+ .2byte DECOR_ROUND_TV
+ .2byte DECOR_CUTE_TV
+ .2byte DECOR_NONE
+ release
+ end
+
+SlateportCity_EventScript_14BE9A:: @ 814BE9A
+ lock
+ faceplayer
+ message SlateportCity_Text_1A0BE4
+ waitmessage
+ pokemart SlateportCity_Items2
+ msgbox SlateportCity_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+SlateportCity_Items2:: @ 814BEB4
+ .2byte ITEM_TM10_HIDDEN_POWER
+ .2byte ITEM_TM43_SECRET_POWER
+ .2byte ITEM_NONE
+ release
+ end
+
+SlateportCity_EventScript_14BEBC:: @ 814BEBC
+ lockall
+ msgbox SlateportCity_Text_165498, 4
+ msgbox SlateportCity_Text_1654E0, 4
+ closemessage
+ applymovement 10, SlateportCity_Movement_1A0843
+ waitmovement 0
+ delay 10
+ applymovement 9, SlateportCity_Movement_1A0845
+ waitmovement 0
+ delay 25
+ applymovement 11, SlateportCity_Movement_14C000
+ applymovement 255, SlateportCity_Movement_14C00E
+ applymovement 10, SlateportCity_Movement_14BFDD
+ applymovement 9, SlateportCity_Movement_14BFEA
+ waitmovement 0
+ removeobject 10
+ removeobject 9
+ msgbox SlateportCity_Text_16558D, 4
+ applymovement 11, SlateportCity_Movement_1A0841
+ waitmovement 0
+ msgbox SlateportCity_Text_1655E7, 4
+ playbgm BGM_EVIL_TEAM, FALSE
+ msgbox SlateportCity_Text_1656BC, 4
+ applymovement 6, SlateportCity_Movement_1A083F
+ applymovement 1, SlateportCity_Movement_1A083F
+ applymovement 7, SlateportCity_Movement_14BFCD
+ applymovement 3, SlateportCity_Movement_1A0831
+ applymovement 2, SlateportCity_Movement_14BFD5
+ waitmovement 0
+ applymovement 11, SlateportCity_Movement_1A0845
+ waitmovement 0
+ msgbox SlateportCity_Text_16578F, 4
+ playse SE_PIN
+ applymovement 11, SlateportCity_Movement_1A0833
+ waitmovement 0
+ applymovement 11, SlateportCity_Movement_1A0835
+ waitmovement 0
+ msgbox SlateportCity_Text_1657FA, 4
+ applymovement 11, SlateportCity_Movement_1A0839
+ waitmovement 0
+ msgbox SlateportCity_Text_16583A, 4
+ closemessage
+ applymovement 11, SlateportCity_Movement_14BFFB
+ applymovement 255, SlateportCity_Movement_14C008
+ waitmovement 0
+ removeobject 11
+ clearflag FLAG_HIDE_STERN_SLATEPORT_HARBOR
+ clearflag FLAG_HIDE_SUBMARINE_SHADOW_SLATEPORT_HARBOR
+ clearflag FLAG_HIDE_GRUNT_1_SLATEPORT_HARBOR
+ clearflag FLAG_HIDE_GRUNT_2_SLATEPORT_HARBOR
+ setvar VAR_SLATEPORT_STATE, 2
+ warp MAP_SLATEPORT_CITY_HARBOR, 255, 11, 14
+ waitstate
+ releaseall
+ end
+
+SlateportCity_Movement_14BFCD:: @ 814BFCD
+ delay_16
+ delay_16
+ emote_question_mark
+ walk_in_place_fastest_right
+ delay_16
+ delay_16
+ walk_in_place_fastest_left
+ end_movement
+
+SlateportCity_Movement_14BFD5:: @ 814BFD5
+ emote_question_mark
+ walk_in_place_fastest_up
+ delay_16
+ walk_in_place_fastest_down
+ delay_16
+ delay_16
+ walk_in_place_fastest_left
+ end_movement
+
+SlateportCity_Movement_14BFDD:: @ 814BFDD
+ delay_16
+ walk_left
+ walk_left
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+SlateportCity_Movement_14BFEA:: @ 814BFEA
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+@ 814BFF8
+ walk_down
+ walk_in_place_fastest_up
+ end_movement
+
+SlateportCity_Movement_14BFFB:: @ 814BFFB
+ walk_right
+ walk_up
+ walk_up
+ set_invisible
+ end_movement
+
+SlateportCity_Movement_14C000:: @ 814C000
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ walk_down
+ walk_left
+ end_movement
+
+SlateportCity_Movement_14C008:: @ 814C008
+ walk_in_place_fastest_right
+ delay_16
+ delay_16
+ walk_right
+ walk_up
+ end_movement
+
+SlateportCity_Movement_14C00E:: @ 814C00E
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ walk_in_place_fastest_down
+ end_movement
+
+SlateportCity_EventScript_14C017:: @ 814C017
+ msgbox SlateportCity_Text_165425, 3
+ end
+
+SlateportCity_EventScript_14C020:: @ 814C020
+ msgbox SlateportCity_Text_165458, 3
+ end
+
+SlateportCity_EventScript_14C029:: @ 814C029
+ msgbox SlateportCity_Text_1647A7, 2
+ end
diff --git a/data/maps/SlateportCity_ContestHall/scripts.inc b/data/maps/SlateportCity_ContestHall/scripts.inc
new file mode 100644
index 000000000..5f6a3c15d
--- /dev/null
+++ b/data/maps/SlateportCity_ContestHall/scripts.inc
@@ -0,0 +1,112 @@
+SlateportCity_ContestHall_MapScripts:: @ 815554B
+ .byte 0
+
+SlateportCity_ContestHall_EventScript_15554C:: @ 815554C
+ msgbox SlateportCity_ContestHall_Text_17CB71, 2
+ end
+
+SlateportCity_ContestHall_EventScript_155555:: @ 8155555
+ msgbox SlateportCity_ContestHall_Text_17CC80, 2
+ end
+
+SlateportCity_ContestHall_EventScript_15555E:: @ 815555E
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM41, SlateportCity_ContestHall_EventScript_155595
+ msgbox SlateportCity_ContestHall_Text_17CCE2, 4
+ giveitem_std ITEM_TM41_TORMENT
+ compare RESULT, 0
+ goto_if_eq SlateportCity_ContestHall_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM41
+ msgbox SlateportCity_ContestHall_Text_17CE28, 4
+ release
+ end
+
+SlateportCity_ContestHall_EventScript_155595:: @ 8155595
+ msgbox SlateportCity_ContestHall_Text_17CE28, 4
+ release
+ end
+
+SlateportCity_ContestHall_EventScript_15559F:: @ 815559F
+ msgbox SlateportCity_ContestHall_Text_17CEF3, 2
+ lockall
+ applymovement 3, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_1555B4:: @ 81555B4
+ msgbox SlateportCity_ContestHall_Text_17CFA7, 2
+ lockall
+ applymovement 4, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_1555C9:: @ 81555C9
+ msgbox SlateportCity_ContestHall_Text_17D054, 2
+ lockall
+ applymovement 5, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_1555DE:: @ 81555DE
+ msgbox SlateportCity_ContestHall_Text_17D07F, 2
+ lockall
+ applymovement 6, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_1555F3:: @ 81555F3
+ msgbox SlateportCity_ContestHall_Text_17D0F9, 2
+ lockall
+ applymovement 7, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_155608:: @ 8155608
+ msgbox SlateportCity_ContestHall_Text_17D222, 2
+ lockall
+ applymovement 8, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_15561D:: @ 815561D
+ msgbox SlateportCity_ContestHall_Text_17D39A, 2
+ lockall
+ applymovement 9, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_155632:: @ 8155632
+ msgbox SlateportCity_ContestHall_Text_17D3F0, 2
+ lockall
+ applymovement 10, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_155647:: @ 8155647
+ msgbox SlateportCity_ContestHall_Text_17D300, 2
+ lockall
+ applymovement 12, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_15565C:: @ 815565C
+ msgbox SlateportCity_ContestHall_Text_17D27F, 2
+ lockall
+ applymovement 11, SlateportCity_ContestHall_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_ContestHall_EventScript_155671:: @ 8155671
+ msgbox SlateportCity_ContestHall_Text_17D447, 3
+ end
diff --git a/data/maps/SlateportCity_ContestLobby/scripts.inc b/data/maps/SlateportCity_ContestLobby/scripts.inc
new file mode 100644
index 000000000..fd26671dd
--- /dev/null
+++ b/data/maps/SlateportCity_ContestLobby/scripts.inc
@@ -0,0 +1,134 @@
+SlateportCity_ContestLobby_MapScripts:: @ 8155411
+ map_script 3, SlateportCity_ContestLobby_MapScript1_155417
+ .byte 0
+
+SlateportCity_ContestLobby_MapScript1_155417:: @ 8155417
+ call SlateportCity_ContestLobby_EventScript_1AE188
+ end
+
+SlateportCity_ContestLobby_EventScript_15541D:: @ 815541D
+ setvar VAR_SPECIAL_B, 7
+ setvar CONTEST_RANK, 2
+ call SlateportCity_ContestLobby_EventScript_1A4E92
+ call SlateportCity_ContestLobby_EventScript_155448
+ special SetContestTrainerGfxIds
+ call SlateportCity_ContestLobby_EventScript_15FBDB
+ setvar VAR_CONTEST_LOCATION, 3
+ warp MAP_LINK_CONTEST_ROOM1, 255, 7, 5
+ waitstate
+ end
+
+SlateportCity_ContestLobby_EventScript_155448:: @ 8155448
+ lockall
+ applymovement 1, SlateportCity_ContestLobby_Movement_1554CC
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 4, 2, 545, 1
+ setmetatile 4, 3, 609, 1
+ special DrawWholeMapView
+ applymovement 1, SlateportCity_ContestLobby_Movement_1554CF
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 4, 2, 721, 1
+ setmetatile 4, 3, 729, 1
+ special DrawWholeMapView
+ delay 20
+ applymovement 1, SlateportCity_ContestLobby_Movement_1554DC
+ waitmovement 0
+ applymovement 255, SlateportCity_ContestLobby_Movement_1554CA
+ waitmovement 0
+ msgbox SlateportCity_ContestLobby_Text_1A6832, 4
+ closemessage
+ applymovement 1, SlateportCity_ContestLobby_Movement_1554D3
+ applymovement 255, SlateportCity_ContestLobby_Movement_1554C0
+ waitmovement 0
+ releaseall
+ return
+
+SlateportCity_ContestLobby_Movement_1554C0:: @ 81554C0
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+SlateportCity_ContestLobby_Movement_1554CA:: @ 81554CA
+ walk_in_place_fastest_left
+ end_movement
+
+SlateportCity_ContestLobby_Movement_1554CC:: @ 81554CC
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+SlateportCity_ContestLobby_Movement_1554CF:: @ 81554CF
+ walk_down
+ walk_down
+ walk_in_place_fastest_up
+ end_movement
+
+SlateportCity_ContestLobby_Movement_1554D3:: @ 81554D3
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+SlateportCity_ContestLobby_Movement_1554DC:: @ 81554DC
+ walk_in_place_fastest_right
+ end_movement
+
+SlateportCity_ContestLobby_EventScript_1554DE:: @ 81554DE
+ msgbox SlateportCity_ContestLobby_Text_17C937, 2
+ end
+
+SlateportCity_ContestLobby_EventScript_1554E7:: @ 81554E7
+ msgbox SlateportCity_ContestLobby_Text_17C9D5, 2
+ end
+
+SlateportCity_ContestLobby_EventScript_1554F0:: @ 81554F0
+ msgbox SlateportCity_ContestLobby_Text_17CAEC, 2
+ end
+
+SlateportCity_ContestLobby_EventScript_1554F9:: @ 81554F9
+ lockall
+ goto_if_set FLAG_RECEIVED_POKEBLOCK_CASE, SlateportCity_ContestLobby_EventScript_155526
+ applymovement 7, SlateportCity_ContestLobby_Movement_1A0839
+ waitmovement 0
+ msgbox SlateportCity_ContestLobby_Text_17CA67, 4
+ giveitem_std ITEM_POKEBLOCK_CASE
+ setflag FLAG_RECEIVED_POKEBLOCK_CASE
+ releaseall
+ end
+
+SlateportCity_ContestLobby_EventScript_155526:: @ 8155526
+ msgbox SlateportCity_ContestLobby_Text_17CA88, 2
+ end
+
+SlateportCity_ContestLobby_EventScript_15552F:: @ 815552F
+ lockall
+ fadescreen 1
+ drawcontestwinner 3
+ releaseall
+ end
+
+SlateportCity_ContestLobby_EventScript_155536:: @ 8155536
+ msgbox SlateportCity_ContestLobby_Text_1B7225, 2
+ end
+
+@ 815553F
+ lockall
+ special ShowBerryBlenderRecordWindow
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
diff --git a/data/maps/SlateportCity_Harbor/scripts.inc b/data/maps/SlateportCity_Harbor/scripts.inc
new file mode 100644
index 000000000..8ab61661a
--- /dev/null
+++ b/data/maps/SlateportCity_Harbor/scripts.inc
@@ -0,0 +1,369 @@
+SlateportCity_Harbor_MapScripts:: @ 8155F5D
+ map_script 3, SlateportCity_Harbor_MapScript1_155F63
+ .byte 0
+
+SlateportCity_Harbor_MapScript1_155F63:: @ 8155F63
+ setescapewarp MAP_SLATEPORT_CITY, 255, 28, 13
+ setvar VAR_TEMP_1, 0
+ compare VAR_SLATEPORT_HARBOR_STATE, 1
+ call_if_eq SlateportCity_Harbor_EventScript_155F89
+ call_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_Harbor_EventScript_155F85
+ end
+
+SlateportCity_Harbor_EventScript_155F85:: @ 8155F85
+ clearflag FLAG_HIDE_SS_TIDAL_SLATEPORT_HARBOR
+ return
+
+SlateportCity_Harbor_EventScript_155F89:: @ 8155F89
+ savebgm BGM_EVIL_TEAM
+ setobjectxyperm 4, 12, 13
+ setobjectmovementtype 4, 9
+ setflag FLAG_HIDE_WORKERS_SLATEPORT_HARBOR
+ return
+
+SlateportCity_Harbor_EventScript_155F9B:: @ 8155F9B
+ lockall
+ setvar VAR_SPECIAL_8, 0
+ goto SlateportCity_Harbor_EventScript_155FD5
+ end
+
+SlateportCity_Harbor_EventScript_155FA7:: @ 8155FA7
+ lockall
+ setvar VAR_SPECIAL_8, 1
+ goto SlateportCity_Harbor_EventScript_155FD5
+ end
+
+SlateportCity_Harbor_EventScript_155FB3:: @ 8155FB3
+ lockall
+ setvar VAR_SPECIAL_8, 2
+ goto SlateportCity_Harbor_EventScript_155FD5
+ end
+
+SlateportCity_Harbor_EventScript_155FBF:: @ 8155FBF
+ lockall
+ setvar VAR_SPECIAL_8, 3
+ applymovement 255, SlateportCity_Harbor_Movement_1560C2
+ waitmovement 0
+ goto SlateportCity_Harbor_EventScript_155FD5
+ end
+
+SlateportCity_Harbor_EventScript_155FD5:: @ 8155FD5
+ applymovement 7, SlateportCity_Harbor_Movement_1A0845
+ waitmovement 0
+ applymovement 255, SlateportCity_Harbor_Movement_1A0841
+ waitmovement 0
+ msgbox SlateportCity_Harbor_Text_17FD7D, 4
+ closemessage
+ applymovement 6, SlateportCity_Harbor_Movement_15609B
+ applymovement 7, SlateportCity_Harbor_Movement_15609B
+ applymovement 8, SlateportCity_Harbor_Movement_1560A5
+ waitmovement 0
+ removeobject 6
+ removeobject 7
+ removeobject 8
+ setvar VAR_SLATEPORT_HARBOR_STATE, 2
+ compare VAR_SPECIAL_8, 0
+ call_if_eq SlateportCity_Harbor_EventScript_15605C
+ compare VAR_SPECIAL_8, 1
+ call_if_eq SlateportCity_Harbor_EventScript_156071
+ compare VAR_SPECIAL_8, 2
+ call_if_eq SlateportCity_Harbor_EventScript_156086
+ compare VAR_SPECIAL_8, 3
+ call_if_eq SlateportCity_Harbor_EventScript_156086
+ msgbox SlateportCity_Harbor_Text_17FE60, 4
+ closemessage
+ setflag FLAG_HIDE_GRUNT_1_BLOCKING_HIDEOUT
+ setflag FLAG_HIDE_GRUNT_2_BLOCKING_HIDEOUT
+ moveobjectoffscreen 4
+ setobjectmovementtype 4, 10
+ releaseall
+ end
+
+SlateportCity_Harbor_EventScript_15605C:: @ 815605C
+ applymovement 4, SlateportCity_Harbor_Movement_1560B3
+ waitmovement 0
+ applymovement 255, SlateportCity_Harbor_Movement_1A0845
+ waitmovement 0
+ return
+
+SlateportCity_Harbor_EventScript_156071:: @ 8156071
+ applymovement 4, SlateportCity_Harbor_Movement_1560B9
+ waitmovement 0
+ applymovement 255, SlateportCity_Harbor_Movement_1A0843
+ waitmovement 0
+ return
+
+SlateportCity_Harbor_EventScript_156086:: @ 8156086
+ applymovement 4, SlateportCity_Harbor_Movement_1560BE
+ waitmovement 0
+ applymovement 255, SlateportCity_Harbor_Movement_1A0843
+ waitmovement 0
+ return
+
+SlateportCity_Harbor_Movement_15609B:: @ 815609B
+ delay_16
+ delay_16
+ jump_up
+ set_invisible
+ end_movement
+
+@ 81560A0
+ delay_16
+ delay_16
+ jump_up
+ set_invisible
+ end_movement
+
+SlateportCity_Harbor_Movement_1560A5:: @ 81560A5
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ walk_right
+ walk_right
+ walk_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ walk_fast_right
+ end_movement
+
+SlateportCity_Harbor_Movement_1560B3:: @ 81560B3
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ end_movement
+
+SlateportCity_Harbor_Movement_1560B9:: @ 81560B9
+ walk_left
+ walk_left
+ walk_up
+ walk_left
+ end_movement
+
+SlateportCity_Harbor_Movement_1560BE:: @ 81560BE
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+SlateportCity_Harbor_Movement_1560C2:: @ 81560C2
+ walk_up
+ end_movement
+
+SlateportCity_Harbor_EventScript_1560C4:: @ 81560C4
+ lock
+ faceplayer
+ goto_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_Harbor_EventScript_1560D9
+ msgbox SlateportCity_Harbor_Text_17FA0A, 4
+ release
+ end
+
+SlateportCity_Harbor_EventScript_1560D9:: @ 81560D9
+ msgbox SlateportCity_Harbor_Text_17FA73, 4
+ checkitem ITEM_SS_TICKET, 1
+ compare RESULT, 0
+ goto_if_eq SlateportCity_Harbor_EventScript_156135
+ message SlateportCity_Harbor_Text_17FB0A
+ waitmessage
+ goto SlateportCity_Harbor_EventScript_1560FD
+ end
+
+SlateportCity_Harbor_EventScript_1560FD:: @ 81560FD
+ multichoicedefault 18, 6, 52, 2, 0
+ switch RESULT
+ case 0, SlateportCity_Harbor_EventScript_15613F
+ case 1, SlateportCity_Harbor_EventScript_156167
+ case 2, SlateportCity_Harbor_EventScript_1561DA
+ case 127, SlateportCity_Harbor_EventScript_1561DA
+ end
+
+SlateportCity_Harbor_EventScript_156135:: @ 8156135
+ msgbox SlateportCity_Harbor_Text_17FAAD, 4
+ release
+ end
+
+SlateportCity_Harbor_EventScript_15613F:: @ 815613F
+ msgbox SlateportCity_Harbor_Text_17FB81, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq SlateportCity_Harbor_EventScript_15618A
+ setvar VAR_PORTHOLE_STATE, 1
+ call SlateportCity_Harbor_EventScript_156196
+ warp MAP_SS_TIDAL_CORRIDOR, 255, 1, 10
+ waitstate
+ release
+ end
+
+SlateportCity_Harbor_EventScript_156167:: @ 8156167
+ msgbox SlateportCity_Harbor_Text_17FB9C, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq SlateportCity_Harbor_EventScript_15618A
+ call SlateportCity_Harbor_EventScript_156196
+ warp MAP_BATTLE_TOWER_OUTSIDE, 255, 19, 23
+ waitstate
+ release
+ end
+
+SlateportCity_Harbor_EventScript_15618A:: @ 815618A
+ message SlateportCity_Harbor_Text_17FBE5
+ waitmessage
+ goto SlateportCity_Harbor_EventScript_1560FD
+ end
+
+SlateportCity_Harbor_EventScript_156196:: @ 8156196
+ msgbox SlateportCity_Harbor_Text_17FBB6, 4
+ closemessage
+ applymovement LAST_TALKED, SlateportCity_Harbor_Movement_1A0841
+ waitmovement 0
+ delay 30
+ hideobjectat LAST_TALKED, MAP_SLATEPORT_CITY_HARBOR
+ compare FACING, 2
+ call_if_eq SlateportCity_Harbor_EventScript_1561EF
+ compare FACING, 4
+ call_if_eq SlateportCity_Harbor_EventScript_1561E4
+ delay 30
+ hideobjectat 255, MAP_PETALBURG_CITY
+ setvar VAR_SPECIAL_4, 5
+ call SlateportCity_Harbor_EventScript_1A040E
+ return
+
+SlateportCity_Harbor_EventScript_1561DA:: @ 81561DA
+ msgbox SlateportCity_Harbor_Text_17FB5F, 4
+ release
+ end
+
+SlateportCity_Harbor_EventScript_1561E4:: @ 81561E4
+ applymovement 255, SlateportCity_Harbor_Movement_1561FA
+ waitmovement 0
+ return
+
+SlateportCity_Harbor_EventScript_1561EF:: @ 81561EF
+ applymovement 255, SlateportCity_Harbor_Movement_1561FD
+ waitmovement 0
+ return
+
+SlateportCity_Harbor_Movement_1561FA:: @ 81561FA
+ walk_right
+ walk_in_place_fastest_up
+ end_movement
+
+SlateportCity_Harbor_Movement_1561FD:: @ 81561FD
+ walk_up
+ end_movement
+
+SlateportCity_Harbor_EventScript_1561FF:: @ 81561FF
+ msgbox SlateportCity_Harbor_Text_17FC07, 2
+ end
+
+SlateportCity_Harbor_EventScript_156208:: @ 8156208
+ msgbox SlateportCity_Harbor_Text_17FC7C, 2
+ end
+
+SlateportCity_Harbor_EventScript_156211:: @ 8156211
+ lock
+ faceplayer
+ goto_if_set FLAG_BADGE07_GET, SlateportCity_Harbor_EventScript_15626F
+ goto_if_set FLAG_EVIL_TEAM_ESCAPED_STERN_SPOKE, SlateportCity_Harbor_EventScript_156265
+ goto_if_set FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE, SlateportCity_Harbor_EventScript_156258
+ compare VAR_SLATEPORT_HARBOR_STATE, 2
+ goto_if_eq SlateportCity_Harbor_EventScript_15624E
+ msgbox SlateportCity_Harbor_Text_17FD1C, 4
+ closemessage
+ applymovement LAST_TALKED, SlateportCity_Harbor_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+SlateportCity_Harbor_EventScript_15624E:: @ 815624E
+ msgbox SlateportCity_Harbor_Text_17FE60, 4
+ release
+ end
+
+SlateportCity_Harbor_EventScript_156258:: @ 8156258
+ setflag FLAG_EVIL_TEAM_ESCAPED_STERN_SPOKE
+ msgbox SlateportCity_Harbor_Text_17FF35, 4
+ release
+ end
+
+SlateportCity_Harbor_EventScript_156265:: @ 8156265
+ msgbox SlateportCity_Harbor_Text_1800A0, 4
+ release
+ end
+
+SlateportCity_Harbor_EventScript_15626F:: @ 815626F
+ compare VAR_TEMP_1, 1
+ goto_if_eq SlateportCity_Harbor_EventScript_156380
+ checkitem ITEM_SCANNER, 1
+ compare RESULT, 1
+ goto_if_eq SlateportCity_Harbor_EventScript_1562A7
+ goto_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_Harbor_EventScript_15629D
+ msgbox SlateportCity_Harbor_Text_18017B, 4
+ release
+ end
+
+SlateportCity_Harbor_EventScript_15629D:: @ 815629D
+ msgbox SlateportCity_Harbor_Text_1801EA, 4
+ release
+ end
+
+SlateportCity_Harbor_EventScript_1562A7:: @ 81562A7
+ message SlateportCity_Harbor_Text_18028B
+ waitmessage
+ goto SlateportCity_Harbor_EventScript_1562B3
+ end
+
+SlateportCity_Harbor_EventScript_1562B3:: @ 81562B3
+ multichoice 0, 0, 46, 0
+ switch RESULT
+ case 0, SlateportCity_Harbor_EventScript_1562EA
+ case 1, SlateportCity_Harbor_EventScript_15632A
+ case 2, SlateportCity_Harbor_EventScript_15636A
+ case 127, SlateportCity_Harbor_EventScript_15636A
+ end
+
+SlateportCity_Harbor_EventScript_1562EA:: @ 81562EA
+ msgbox SlateportCity_Harbor_Text_1803DD, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq SlateportCity_Harbor_EventScript_156374
+ giveitem_std ITEM_DEEP_SEA_TOOTH
+ compare RESULT, 0
+ goto_if_eq SlateportCity_Harbor_EventScript_1A029B
+ takeitem ITEM_SCANNER, 1
+ msgbox SlateportCity_Harbor_Text_18046B, 4
+ setflag FLAG_EXCHANGED_SCANNER
+ goto SlateportCity_Harbor_EventScript_156380
+ end
+
+SlateportCity_Harbor_EventScript_15632A:: @ 815632A
+ msgbox SlateportCity_Harbor_Text_180412, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq SlateportCity_Harbor_EventScript_156374
+ giveitem_std ITEM_DEEP_SEA_SCALE
+ compare RESULT, 0
+ goto_if_eq SlateportCity_Harbor_EventScript_1A029B
+ takeitem ITEM_SCANNER, 1
+ msgbox SlateportCity_Harbor_Text_18046B, 4
+ setflag FLAG_EXCHANGED_SCANNER
+ goto SlateportCity_Harbor_EventScript_156380
+ end
+
+SlateportCity_Harbor_EventScript_15636A:: @ 815636A
+ msgbox SlateportCity_Harbor_Text_180360, 4
+ release
+ end
+
+SlateportCity_Harbor_EventScript_156374:: @ 8156374
+ message SlateportCity_Harbor_Text_180447
+ waitmessage
+ goto SlateportCity_Harbor_EventScript_1562B3
+ end
+
+SlateportCity_Harbor_EventScript_156380:: @ 8156380
+ setvar VAR_TEMP_1, 1
+ msgbox SlateportCity_Harbor_Text_180491, 4
+ release
+ end
diff --git a/data/maps/SlateportCity_House1/scripts.inc b/data/maps/SlateportCity_House1/scripts.inc
new file mode 100644
index 000000000..be2955937
--- /dev/null
+++ b/data/maps/SlateportCity_House1/scripts.inc
@@ -0,0 +1,72 @@
+SlateportCity_House1_MapScripts:: @ 815567A
+ .byte 0
+
+SlateportCity_House1_EventScript_15567B:: @ 815567B
+ lock
+ faceplayer
+ msgbox SlateportCity_House1_Text_17D46A, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq SlateportCity_House1_EventScript_15569C
+ compare RESULT, NO
+ goto_if_eq SlateportCity_House1_EventScript_1556BF
+ end
+
+SlateportCity_House1_EventScript_15569C:: @ 815569C
+ msgbox SlateportCity_House1_Text_17D4DB, 4
+ special SelectMonForNPCTrade
+ waitstate
+ compare VAR_SPECIAL_4, 255
+ goto_if_ne SlateportCity_House1_EventScript_1556C9
+ compare VAR_SPECIAL_4, 255
+ goto_if_eq SlateportCity_House1_EventScript_1556BF
+ end
+
+SlateportCity_House1_EventScript_1556BF:: @ 81556BF
+ msgbox SlateportCity_House1_Text_17D61E, 4
+ release
+ end
+
+SlateportCity_House1_EventScript_1556C9:: @ 81556C9
+ specialvar RESULT, ScriptGetPartyMonSpecies
+ compare RESULT, SPECIES_EGG
+ goto_if_eq SlateportCity_House1_EventScript_15571C
+ special TV_CopyNicknameToStringVar1AndEnsureTerminated
+ special TV_CheckMonOTIDEqualsPlayerID
+ compare RESULT, 1
+ goto_if_eq SlateportCity_House1_EventScript_155726
+ specialvar RESULT, MonOTNameMatchesPlayer
+ special TV_CopyNicknameToStringVar1AndEnsureTerminated
+ compare RESULT, 1
+ goto_if_eq SlateportCity_House1_EventScript_155726
+ msgbox SlateportCity_House1_Text_17D505, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq SlateportCity_House1_EventScript_155730
+ compare RESULT, NO
+ goto_if_eq SlateportCity_House1_EventScript_1556BF
+ end
+
+SlateportCity_House1_EventScript_15571C:: @ 815571C
+ msgbox SlateportCity_House1_Text_17D752, 4
+ release
+ end
+
+SlateportCity_House1_EventScript_155726:: @ 8155726
+ msgbox SlateportCity_House1_Text_17D6CC, 4
+ release
+ end
+
+SlateportCity_House1_EventScript_155730:: @ 8155730
+ msgbox SlateportCity_House1_Text_17D580, 4
+ call SlateportCity_House1_EventScript_1A0678
+ specialvar RESULT, TV_PutNameRaterShowOnTheAirIfNicnkameChanged
+ special TV_CopyNicknameToStringVar1AndEnsureTerminated
+ compare RESULT, 1
+ goto_if_eq SlateportCity_House1_EventScript_15575A
+ msgbox SlateportCity_House1_Text_17D63A, 4
+ release
+ end
+
+SlateportCity_House1_EventScript_15575A:: @ 815575A
+ msgbox SlateportCity_House1_Text_17D5B0, 4
+ release
+ end
diff --git a/data/maps/SlateportCity_House2/scripts.inc b/data/maps/SlateportCity_House2/scripts.inc
new file mode 100644
index 000000000..934fae153
--- /dev/null
+++ b/data/maps/SlateportCity_House2/scripts.inc
@@ -0,0 +1,21 @@
+SlateportCity_House2_MapScripts:: @ 815638F
+ .byte 0
+
+SlateportCity_House2_EventScript_156390:: @ 8156390
+ msgbox SlateportCity_House2_Text_1804CF, 2
+ end
+
+SlateportCity_House2_EventScript_156399:: @ 8156399
+ lock
+ faceplayer
+ checkitem ITEM_CONTEST_PASS, 1
+ compare RESULT, 1
+ goto_if_eq SlateportCity_House2_EventScript_1563B5
+ msgbox SlateportCity_House2_Text_180567, 4
+ release
+ end
+
+SlateportCity_House2_EventScript_1563B5:: @ 81563B5
+ msgbox SlateportCity_House2_Text_1805CD, 4
+ release
+ end
diff --git a/data/maps/SlateportCity_Mart/scripts.inc b/data/maps/SlateportCity_Mart/scripts.inc
new file mode 100644
index 000000000..39a1d5ba2
--- /dev/null
+++ b/data/maps/SlateportCity_Mart/scripts.inc
@@ -0,0 +1,35 @@
+SlateportCity_Mart_MapScripts:: @ 8156410
+ .byte 0
+
+SlateportCity_Mart_EventScript_156411:: @ 8156411
+ lock
+ faceplayer
+ message SlateportCity_Mart_Text_1A0BE4
+ waitmessage
+ pokemart SlateportCity_Mart_Items
+ msgbox SlateportCity_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+SlateportCity_Mart_Items:: @ 8156428
+ .2byte ITEM_POKE_BALL
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_POTION
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_ESCAPE_ROPE
+ .2byte ITEM_REPEL
+ .2byte ITEM_HARBOR_MAIL
+ .2byte ITEM_NONE
+ release
+ end
+
+SlateportCity_Mart_EventScript_15643E:: @ 815643E
+ msgbox SlateportCity_Mart_Text_180730, 2
+ end
+
+SlateportCity_Mart_EventScript_156447:: @ 8156447
+ msgbox SlateportCity_Mart_Text_18079D, 2
+ end
diff --git a/data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc b/data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc
new file mode 100644
index 000000000..cb65f1be5
--- /dev/null
+++ b/data/maps/SlateportCity_OceanicMuseum_1F/scripts.inc
@@ -0,0 +1,217 @@
+SlateportCity_OceanicMuseum_1F_MapScripts:: @ 8155ACA
+ map_script 3, SlateportCity_OceanicMuseum_1F_MapScript1_155AD0
+ .byte 0
+
+SlateportCity_OceanicMuseum_1F_MapScript1_155AD0:: @ 8155AD0
+ .ifdef SAPPHIRE
+ setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_AQUA_MEMBER_F
+ setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_AQUA_MEMBER_M
+ .else
+ setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_MAGMA_MEMBER_F
+ setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_MAGMA_MEMBER_M
+ .endif
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155ADB:: @ 8155ADB
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E1DE, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155AE4:: @ 8155AE4
+ lockall
+ applymovement 255, SlateportCity_OceanicMuseum_1F_Movement_1A083F
+ waitmovement 0
+ goto SlateportCity_OceanicMuseum_1F_EventScript_155B06
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155AF5:: @ 8155AF5
+ lockall
+ applymovement 255, SlateportCity_OceanicMuseum_1F_Movement_1A0843
+ waitmovement 0
+ goto SlateportCity_OceanicMuseum_1F_EventScript_155B06
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155B06:: @ 8155B06
+ showmoneybox 0, 0
+ nop
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E18D, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_155B2D
+ closemessage
+ hidemoneybox 0, 0
+ applymovement 255, SlateportCity_OceanicMuseum_1F_Movement_155B8D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155B2D:: @ 8155B2D
+ checkmoney 0x32, 0
+ compare RESULT, 0
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_155B5A
+ takemoney 0x32, 0
+ updatemoneybox 0, 0
+ nop
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E1DE, 4
+ setvar VAR_SLATEPORT_MUSEUM_1F_STATE, 1
+ hidemoneybox 0, 0
+ releaseall
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155B5A:: @ 8155B5A
+ goto_if_unset FLAG_DELIVERED_DEVON_GOODS, SlateportCity_OceanicMuseum_1F_EventScript_155B7B
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E1F5, 4
+ closemessage
+ hidemoneybox 0, 0
+ applymovement 255, SlateportCity_OceanicMuseum_1F_Movement_155B8D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155B7B:: @ 8155B7B
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E22D, 4
+ setvar VAR_SLATEPORT_MUSEUM_1F_STATE, 1
+ hidemoneybox 0, 0
+ releaseall
+ end
+
+SlateportCity_OceanicMuseum_1F_Movement_155B8D:: @ 8155B8D
+ walk_down
+ end_movement
+
+SlateportCity_OceanicMuseum_1F_EventScript_155B8F:: @ 8155B8F
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E2BB, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155B98:: @ 8155B98
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E2E3, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BA1:: @ 8155BA1
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E338, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BAA:: @ 8155BAA
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E36F, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BB3:: @ 8155BB3
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E3A9, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BBC:: @ 8155BBC
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E3ED, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BC5:: @ 8155BC5
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E6C9, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BCE:: @ 8155BCE
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E741, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BD7:: @ 8155BD7
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E7C4, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BE0:: @ 8155BE0
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E892, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BE9:: @ 8155BE9
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E944, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BF2:: @ 8155BF2
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17EA19, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155BFB:: @ 8155BFB
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17EB0D, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155C04:: @ 8155C04
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17EBBC, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155C0D:: @ 8155C0D
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17EC98, 3
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155C16:: @ 8155C16
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E434, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155C1F:: @ 8155C1F
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E477, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155C28:: @ 8155C28
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E4D7, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155C31:: @ 8155C31
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E540, 2
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155C3A:: @ 8155C3A
+ lock
+ faceplayer
+ delay 8
+ playse SE_PIN
+ applymovement 13, SlateportCity_OceanicMuseum_1F_Movement_1A0833
+ waitmovement 0
+ applymovement 13, SlateportCity_OceanicMuseum_1F_Movement_1A0835
+ waitmovement 0
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E582, 4
+ giveitem_std ITEM_TM46_THIEF
+ compare RESULT, 0
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_155CC2
+ setflag FLAG_RECEIVED_TM46
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E606, 4
+ closemessage
+ compare FACING, 2
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_155C98
+ compare FACING, 2
+ goto_if_ne SlateportCity_OceanicMuseum_1F_EventScript_155CAD
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155C98:: @ 8155C98
+ applymovement 13, SlateportCity_OceanicMuseum_1F_Movement_155CD3
+ waitmovement 0
+ setflag FLAG_HIDE_SCARED_GRUNT_OCEANIC_MUSEUM
+ playse SE_KAIDAN
+ removeobject 13
+ release
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155CAD:: @ 8155CAD
+ applymovement 13, SlateportCity_OceanicMuseum_1F_Movement_155CCC
+ waitmovement 0
+ setflag FLAG_HIDE_SCARED_GRUNT_OCEANIC_MUSEUM
+ playse SE_KAIDAN
+ removeobject 13
+ release
+ end
+
+SlateportCity_OceanicMuseum_1F_EventScript_155CC2:: @ 8155CC2
+ msgbox SlateportCity_OceanicMuseum_1F_Text_17E695, 4
+ release
+ end
+
+SlateportCity_OceanicMuseum_1F_Movement_155CCC:: @ 8155CCC
+ face_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ delay_8
+ end_movement
+
+SlateportCity_OceanicMuseum_1F_Movement_155CD3:: @ 8155CD3
+ walk_fast_right
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ walk_fast_down
+ delay_8
+ end_movement
diff --git a/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc b/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
new file mode 100644
index 000000000..6947d52b1
--- /dev/null
+++ b/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
@@ -0,0 +1,272 @@
+SlateportCity_OceanicMuseum_2F_MapScripts:: @ 8155CDA
+ map_script 3, SlateportCity_OceanicMuseum_2F_MapScript1_155CE0
+ .byte 0
+
+SlateportCity_OceanicMuseum_2F_MapScript1_155CE0:: @ 8155CE0
+ call SlateportCity_OceanicMuseum_2F_EventScript_1A0196
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
+ lock
+ faceplayer
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17ECFD, 4
+ closemessage
+ playbgm BGM_EVIL_TEAM, TRUE
+ addobject 3
+ applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_155EB4
+ waitmovement 0
+ addobject 4
+ applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155EC3
+ waitmovement 0
+ applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_155EB8
+ applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155EC5
+ waitmovement 0
+ compare FACING, 1
+ call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_155E62
+ compare FACING, 4
+ call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_155E62
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17EDAE, 4
+ compare FACING, 4
+ call_if_ne SlateportCity_OceanicMuseum_2F_EventScript_155E6D
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17EDD7, 4
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17EE01, 4
+ closemessage
+ applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155EB2
+ waitmovement 0
+ compare FACING, 1
+ call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_155E78
+ compare FACING, 3
+ call_if_eq SlateportCity_OceanicMuseum_2F_EventScript_155E83
+ trainerbattle 3, OPPONENT_MUSEUM_2F_GRUNT_1, 0, SlateportCity_OceanicMuseum_2F_Text_17EE4E
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17EE66, 4
+ closemessage
+ applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155EBF
+ waitmovement 0
+ applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_155EB2
+ waitmovement 0
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17EEA5, 4
+ savebgm 0
+ trainerbattle 3, OPPONENT_MUSEUM_2F_GRUNT_2, 0, SlateportCity_OceanicMuseum_2F_Text_17EED6
+ applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_155EBF
+ waitmovement 0
+ applymovement 3, SlateportCity_OceanicMuseum_2F_Movement_1A0845
+ applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_1A0841
+ waitmovement 0
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17EEEA, 4
+ closemessage
+ delay 35
+ addobject 2
+ applymovement 2, SlateportCity_OceanicMuseum_2F_Movement_155EA8
+ applymovement 4, SlateportCity_OceanicMuseum_2F_Movement_155ECE
+ waitmovement 0
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17EF62, 4
+ applymovement 2, SlateportCity_OceanicMuseum_2F_Movement_155EA6
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17EFC9, 4
+ .else
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F17E, 4
+ .endif
+ closemessage
+ fadescreen 1
+ removeobject 2
+ removeobject 3
+ removeobject 4
+ fadescreen 0
+ delay 30
+ setflag FLAG_HIDE_EVIL_TEAM_OCEANIC_MUSEUM
+ applymovement 255, SlateportCity_OceanicMuseum_2F_Movement_1A0843
+ waitmovement 0
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F352, 4
+ setvar VAR_SPECIAL_4, 269
+ call SlateportCity_OceanicMuseum_2F_EventScript_1A067F
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F433, 4
+ closemessage
+ applymovement 1, SlateportCity_OceanicMuseum_2F_Movement_155E98
+ waitmovement 0
+ playse SE_KAIDAN
+ removeobject 1
+ setflag FLAG_HIDE_EVIL_TEAM_ROUTE110
+ setflag FLAG_DELIVERED_DEVON_GOODS
+ clearflag FLAG_HIDE_DEVON_EMPLOYEE_ROUTE116
+ setflag FLAG_HIDE_EMPLOYEE_DEVON_CORP_3F
+ release
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155E62:: @ 8155E62
+ applymovement 255, SlateportCity_OceanicMuseum_2F_Movement_1A083F
+ waitmovement 0
+ return
+
+SlateportCity_OceanicMuseum_2F_EventScript_155E6D:: @ 8155E6D
+ applymovement 1, SlateportCity_OceanicMuseum_2F_Movement_1A083F
+ waitmovement 0
+ return
+
+SlateportCity_OceanicMuseum_2F_EventScript_155E78:: @ 8155E78
+ applymovement 255, SlateportCity_OceanicMuseum_2F_Movement_155E8E
+ waitmovement 0
+ return
+
+SlateportCity_OceanicMuseum_2F_EventScript_155E83:: @ 8155E83
+ applymovement 255, SlateportCity_OceanicMuseum_2F_Movement_155E92
+ waitmovement 0
+ return
+
+SlateportCity_OceanicMuseum_2F_Movement_155E8E:: @ 8155E8E
+ walk_left
+ walk_down
+ walk_in_place_fastest_left
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155E92:: @ 8155E92
+ walk_up
+ walk_left
+ walk_left
+ walk_down
+ walk_in_place_fastest_left
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155E98:: @ 8155E98
+ walk_up
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ delay_8
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155EA6:: @ 8155EA6
+ walk_right
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155EA8:: @ 8155EA8
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155EB2:: @ 8155EB2
+ walk_right
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155EB4:: @ 8155EB4
+ walk_down
+ walk_right
+ walk_in_place_fastest_down
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155EB8:: @ 8155EB8
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155EBF:: @ 8155EBF
+ lock_facing_direction
+ walk_left
+ unlock_facing_direction
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155EC3:: @ 8155EC3
+ walk_down
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155EC5:: @ 8155EC5
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_Movement_155ECE:: @ 8155ECE
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_8
+ walk_fast_down
+ walk_in_place_fastest_up
+ end_movement
+
+SlateportCity_OceanicMuseum_2F_EventScript_155EDA:: @ 8155EDA
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F572, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155EE3:: @ 8155EE3
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F5E3, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155EEC:: @ 8155EEC
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F653, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155EF5:: @ 8155EF5
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F754, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155EFE:: @ 8155EFE
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F7BC, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155F07:: @ 8155F07
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F84E, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155F10:: @ 8155F10
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F8BC, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155F19:: @ 8155F19
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F918, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155F22:: @ 8155F22
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F975, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155F2B:: @ 8155F2B
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F9C7, 3
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155F34:: @ 8155F34
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F4B6, 2
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155F3D:: @ 8155F3D
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F50E, 2
+ end
+
+SlateportCity_OceanicMuseum_2F_EventScript_155F46:: @ 8155F46
+ lock
+ faceplayer
+ msgbox SlateportCity_OceanicMuseum_2F_Text_17F53B, 4
+ closemessage
+ applymovement LAST_TALKED, SlateportCity_OceanicMuseum_2F_Movement_1A083D
+ waitmovement 0
+ release
+ end
diff --git a/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc b/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..37b2b95ab
--- /dev/null
+++ b/data/maps/SlateportCity_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,24 @@
+SlateportCity_PokemonCenter_1F_MapScripts:: @ 81563BF
+ map_script 3, SlateportCity_PokemonCenter_1F_MapScript1_1563C5
+ .byte 0
+
+SlateportCity_PokemonCenter_1F_MapScript1_1563C5:: @ 81563C5
+ setrespawn 4
+ call SlateportCity_PokemonCenter_1F_EventScript_19FD1B
+ end
+
+SlateportCity_PokemonCenter_1F_EventScript_1563CE:: @ 81563CE
+ setvar VAR_SPECIAL_B, 1
+ call SlateportCity_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+SlateportCity_PokemonCenter_1F_EventScript_1563DC:: @ 81563DC
+ msgbox SlateportCity_PokemonCenter_1F_Text_180602, 2
+ end
+
+SlateportCity_PokemonCenter_1F_EventScript_1563E5:: @ 81563E5
+ msgbox SlateportCity_PokemonCenter_1F_Text_1806CB, 2
+ end
diff --git a/data/maps/SlateportCity_PokemonCenter_2F/scripts.inc b/data/maps/SlateportCity_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..98782b24d
--- /dev/null
+++ b/data/maps/SlateportCity_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+SlateportCity_PokemonCenter_2F_MapScripts:: @ 81563EE
+ map_script 2, SlateportCity_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, SlateportCity_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, SlateportCity_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+SlateportCity_PokemonCenter_2F_EventScript_1563FE:: @ 81563FE
+ call SlateportCity_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+SlateportCity_PokemonCenter_2F_EventScript_156404:: @ 8156404
+ call SlateportCity_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+SlateportCity_PokemonCenter_2F_EventScript_15640A:: @ 815640A
+ call SlateportCity_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/SlateportCity_PokemonFanClub/scripts.inc b/data/maps/SlateportCity_PokemonFanClub/scripts.inc
new file mode 100644
index 000000000..6a8c88e1e
--- /dev/null
+++ b/data/maps/SlateportCity_PokemonFanClub/scripts.inc
@@ -0,0 +1,252 @@
+SlateportCity_PokemonFanClub_MapScripts:: @ 8155764
+ map_script 3, SlateportCity_PokemonFanClub_MapScript1_15576A
+ .byte 0
+
+SlateportCity_PokemonFanClub_MapScript1_15576A:: @ 815576A
+ end
+
+SlateportCity_PokemonFanClub_EventScript_15576B:: @ 815576B
+ lock
+ faceplayer
+ switch VAR_SLATEPORT_FAN_CLUB_STATE
+ case 0, SlateportCity_PokemonFanClub_EventScript_155795
+ case 1, SlateportCity_PokemonFanClub_EventScript_1557A8
+ case 2, SlateportCity_PokemonFanClub_EventScript_1557FE
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155795:: @ 8155795
+ setvar VAR_SLATEPORT_FAN_CLUB_STATE, 1
+ msgbox SlateportCity_PokemonFanClub_Text_17D773, 4
+ goto SlateportCity_PokemonFanClub_EventScript_155808
+ end
+
+SlateportCity_PokemonFanClub_EventScript_1557A8:: @ 81557A8
+ setvar VAR_TEMP_2, 0
+ call_if_set FLAG_RECEIVED_YELLOW_SCARF, SlateportCity_PokemonFanClub_EventScript_155893
+ call_if_set FLAG_RECEIVED_GREEN_SCARF, SlateportCity_PokemonFanClub_EventScript_155893
+ call_if_set FLAG_RECEIVED_PINK_SCARF, SlateportCity_PokemonFanClub_EventScript_155893
+ call_if_set FLAG_RECEIVED_BLUE_SCARF, SlateportCity_PokemonFanClub_EventScript_155893
+ call_if_set FLAG_RECEIVED_RED_SCARF, SlateportCity_PokemonFanClub_EventScript_155893
+ compare VAR_TEMP_2, 5
+ call_if_eq SlateportCity_PokemonFanClub_EventScript_15588D
+ compare VAR_SLATEPORT_FAN_CLUB_STATE, 2
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1557FE
+ msgbox SlateportCity_PokemonFanClub_Text_17DA14, 4
+ goto SlateportCity_PokemonFanClub_EventScript_155808
+ end
+
+SlateportCity_PokemonFanClub_EventScript_1557FE:: @ 81557FE
+ msgbox SlateportCity_PokemonFanClub_Text_17DDD5, 4
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155808:: @ 8155808
+ msgbox SlateportCity_PokemonFanClub_Text_17DA49, 4
+ setvar VAR_TEMP_1, 0
+ call_if_unset FLAG_RECEIVED_YELLOW_SCARF, SlateportCity_PokemonFanClub_EventScript_1559FE
+ call_if_unset FLAG_RECEIVED_GREEN_SCARF, SlateportCity_PokemonFanClub_EventScript_1559E7
+ call_if_unset FLAG_RECEIVED_PINK_SCARF, SlateportCity_PokemonFanClub_EventScript_1559D0
+ call_if_unset FLAG_RECEIVED_BLUE_SCARF, SlateportCity_PokemonFanClub_EventScript_1559B9
+ call_if_unset FLAG_RECEIVED_RED_SCARF, SlateportCity_PokemonFanClub_EventScript_1559A2
+ bufferleadmonspeciesname 0
+ switch VAR_TEMP_1
+ case 0, SlateportCity_PokemonFanClub_EventScript_155899
+ case 1, SlateportCity_PokemonFanClub_EventScript_1558A3
+ case 2, SlateportCity_PokemonFanClub_EventScript_1558D4
+ case 3, SlateportCity_PokemonFanClub_EventScript_155905
+ case 4, SlateportCity_PokemonFanClub_EventScript_155936
+ case 5, SlateportCity_PokemonFanClub_EventScript_155967
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_15588D:: @ 815588D
+ setvar VAR_SLATEPORT_FAN_CLUB_STATE, 2
+ return
+
+SlateportCity_PokemonFanClub_EventScript_155893:: @ 8155893
+ addvar VAR_TEMP_2, 1
+ return
+
+SlateportCity_PokemonFanClub_EventScript_155899:: @ 8155899
+ msgbox SlateportCity_PokemonFanClub_Text_17DA5C, 4
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_1558A3:: @ 81558A3
+ checkitemspace ITEM_RED_SCARF, 1
+ compare RESULT, 0
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
+ msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
+ setflag FLAG_RECEIVED_RED_SCARF
+ giveitem_std ITEM_RED_SCARF
+ msgbox SlateportCity_PokemonFanClub_Text_17DC1B, 4
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_1558D4:: @ 81558D4
+ checkitemspace ITEM_BLUE_SCARF, 1
+ compare RESULT, 0
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
+ msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
+ setflag FLAG_RECEIVED_BLUE_SCARF
+ giveitem_std ITEM_BLUE_SCARF
+ msgbox SlateportCity_PokemonFanClub_Text_17DC74, 4
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155905:: @ 8155905
+ checkitemspace ITEM_PINK_SCARF, 1
+ compare RESULT, 0
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
+ msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
+ setflag FLAG_RECEIVED_PINK_SCARF
+ giveitem_std ITEM_PINK_SCARF
+ msgbox SlateportCity_PokemonFanClub_Text_17DCCB, 4
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155936:: @ 8155936
+ checkitemspace ITEM_GREEN_SCARF, 1
+ compare RESULT, 0
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
+ msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
+ setflag FLAG_RECEIVED_GREEN_SCARF
+ giveitem_std ITEM_GREEN_SCARF
+ msgbox SlateportCity_PokemonFanClub_Text_17DD27, 4
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155967:: @ 8155967
+ checkitemspace ITEM_YELLOW_SCARF, 1
+ compare RESULT, 0
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
+ msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
+ setflag FLAG_RECEIVED_YELLOW_SCARF
+ giveitem_std ITEM_YELLOW_SCARF
+ msgbox SlateportCity_PokemonFanClub_Text_17DD78, 4
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155998:: @ 8155998
+ msgbox SlateportCity_PokemonFanClub_Text_17DB0B, 4
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_1559A2:: @ 81559A2
+ specialvar RESULT, CheckLeadMonCool
+ compare RESULT, 1
+ call_if_eq SlateportCity_PokemonFanClub_EventScript_1559B3
+ return
+
+SlateportCity_PokemonFanClub_EventScript_1559B3:: @ 81559B3
+ setvar VAR_TEMP_1, 1
+ return
+
+SlateportCity_PokemonFanClub_EventScript_1559B9:: @ 81559B9
+ specialvar RESULT, CheckLeadMonBeauty
+ compare RESULT, 1
+ call_if_eq SlateportCity_PokemonFanClub_EventScript_1559CA
+ return
+
+SlateportCity_PokemonFanClub_EventScript_1559CA:: @ 81559CA
+ setvar VAR_TEMP_1, 2
+ return
+
+SlateportCity_PokemonFanClub_EventScript_1559D0:: @ 81559D0
+ specialvar RESULT, CheckLeadMonCute
+ compare RESULT, 1
+ call_if_eq SlateportCity_PokemonFanClub_EventScript_1559E1
+ return
+
+SlateportCity_PokemonFanClub_EventScript_1559E1:: @ 81559E1
+ setvar VAR_TEMP_1, 3
+ return
+
+SlateportCity_PokemonFanClub_EventScript_1559E7:: @ 81559E7
+ specialvar RESULT, CheckLeadMonSmart
+ compare RESULT, 1
+ call_if_eq SlateportCity_PokemonFanClub_EventScript_1559F8
+ return
+
+SlateportCity_PokemonFanClub_EventScript_1559F8:: @ 81559F8
+ setvar VAR_TEMP_1, 4
+ return
+
+SlateportCity_PokemonFanClub_EventScript_1559FE:: @ 81559FE
+ specialvar RESULT, CheckLeadMonTough
+ compare RESULT, 1
+ call_if_eq SlateportCity_PokemonFanClub_EventScript_155A0F
+ return
+
+SlateportCity_PokemonFanClub_EventScript_155A0F:: @ 8155A0F
+ setvar VAR_TEMP_1, 5
+ return
+
+SlateportCity_PokemonFanClub_EventScript_155A15:: @ 8155A15
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_SOOTHE_BELL, SlateportCity_PokemonFanClub_EventScript_155A75
+ msgbox SlateportCity_PokemonFanClub_Text_17DE6B, 4
+ specialvar RESULT, GetLeadMonFriendshipScore
+ compare RESULT, 4
+ goto_if_ge SlateportCity_PokemonFanClub_EventScript_155A3A
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155A3A:: @ 8155A3A
+ playse SE_PIN
+ applymovement LAST_TALKED, SlateportCity_PokemonFanClub_Movement_1A0833
+ waitmovement 0
+ applymovement LAST_TALKED, SlateportCity_PokemonFanClub_Movement_1A0835
+ waitmovement 0
+ msgbox SlateportCity_PokemonFanClub_Text_17DF57, 4
+ giveitem_std ITEM_SOOTHE_BELL
+ compare RESULT, 0
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1A029B
+ setflag FLAG_RECEIVED_SOOTHE_BELL
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155A75:: @ 8155A75
+ msgbox SlateportCity_PokemonFanClub_Text_17DFB8, 4
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155A7F:: @ 8155A7F
+ msgbox SlateportCity_PokemonFanClub_Text_17E03B, 2
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155A88:: @ 8155A88
+ msgbox SlateportCity_PokemonFanClub_Text_17E0ED, 2
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155A91:: @ 8155A91
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_SKITTY, 0
+ msgbox SlateportCity_PokemonFanClub_Text_17E14E, 4
+ waitmoncry
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155AA4:: @ 8155AA4
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_ZIGZAGOON, 0
+ msgbox SlateportCity_PokemonFanClub_Text_17E164, 4
+ waitmoncry
+ release
+ end
+
+SlateportCity_PokemonFanClub_EventScript_155AB7:: @ 8155AB7
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_AZUMARILL, 0
+ msgbox SlateportCity_PokemonFanClub_Text_17E178, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/SlateportCity_SternsShipyard_1F/scripts.inc b/data/maps/SlateportCity_SternsShipyard_1F/scripts.inc
new file mode 100644
index 000000000..dd31e8e26
--- /dev/null
+++ b/data/maps/SlateportCity_SternsShipyard_1F/scripts.inc
@@ -0,0 +1,63 @@
+SlateportCity_SternsShipyard_1F_MapScripts:: @ 8155335
+ .byte 0
+
+SlateportCity_SternsShipyard_1F_EventScript_155336:: @ 8155336
+ lockall
+ goto_if_set FLAG_SYS_GAME_CLEAR, SlateportCity_SternsShipyard_1F_EventScript_155388
+ goto_if_set FLAG_BADGE07_GET, SlateportCity_SternsShipyard_1F_EventScript_15539C
+ goto_if_set FLAG_DELIVERED_DEVON_GOODS, SlateportCity_SternsShipyard_1F_EventScript_1553CF
+ goto_if_set FLAG_DOCK_REJECTED_DEVON_GOODS, SlateportCity_SternsShipyard_1F_EventScript_1553B0
+ msgbox SlateportCity_SternsShipyard_1F_Text_17C14B, 4
+ applymovement 1, SlateportCity_SternsShipyard_1F_Movement_1A0839
+ waitmovement 0
+ msgbox SlateportCity_SternsShipyard_1F_Text_17C1EC, 4
+ closemessage
+ applymovement 1, SlateportCity_SternsShipyard_1F_Movement_1A083D
+ waitmovement 0
+ setflag FLAG_DOCK_REJECTED_DEVON_GOODS
+ setflag FLAG_HIDE_EVIL_TEAM_SLATEPORT
+ releaseall
+ end
+
+SlateportCity_SternsShipyard_1F_EventScript_155388:: @ 8155388
+ applymovement 1, SlateportCity_SternsShipyard_1F_Movement_1A0839
+ waitmovement 0
+ msgbox SlateportCity_SternsShipyard_1F_Text_17C472, 4
+ releaseall
+ end
+
+SlateportCity_SternsShipyard_1F_EventScript_15539C:: @ 815539C
+ applymovement 1, SlateportCity_SternsShipyard_1F_Movement_1A0839
+ waitmovement 0
+ msgbox SlateportCity_SternsShipyard_1F_Text_17C3F7, 4
+ releaseall
+ end
+
+SlateportCity_SternsShipyard_1F_EventScript_1553B0:: @ 81553B0
+ applymovement 1, SlateportCity_SternsShipyard_1F_Movement_1A0839
+ waitmovement 0
+ msgbox SlateportCity_SternsShipyard_1F_Text_17C2F2, 4
+ closemessage
+ applymovement 1, SlateportCity_SternsShipyard_1F_Movement_1A083D
+ waitmovement 0
+ releaseall
+ end
+
+SlateportCity_SternsShipyard_1F_EventScript_1553CF:: @ 81553CF
+ applymovement 1, SlateportCity_SternsShipyard_1F_Movement_1A0839
+ waitmovement 0
+ msgbox SlateportCity_SternsShipyard_1F_Text_17C360, 4
+ releaseall
+ end
+
+SlateportCity_SternsShipyard_1F_EventScript_1553E3:: @ 81553E3
+ msgbox SlateportCity_SternsShipyard_1F_Text_17C6BB, 2
+ end
+
+SlateportCity_SternsShipyard_1F_EventScript_1553EC:: @ 81553EC
+ msgbox SlateportCity_SternsShipyard_1F_Text_17C764, 2
+ end
+
+SlateportCity_SternsShipyard_1F_EventScript_1553F5:: @ 81553F5
+ msgbox SlateportCity_SternsShipyard_1F_Text_17C53D, 2
+ end
diff --git a/data/maps/SlateportCity_SternsShipyard_2F/scripts.inc b/data/maps/SlateportCity_SternsShipyard_2F/scripts.inc
new file mode 100644
index 000000000..df9227dd3
--- /dev/null
+++ b/data/maps/SlateportCity_SternsShipyard_2F/scripts.inc
@@ -0,0 +1,10 @@
+SlateportCity_SternsShipyard_2F_MapScripts:: @ 81553FE
+ .byte 0
+
+SlateportCity_SternsShipyard_2F_EventScript_1553FF:: @ 81553FF
+ msgbox SlateportCity_SternsShipyard_2F_Text_17C7A2, 2
+ end
+
+SlateportCity_SternsShipyard_2F_EventScript_155408:: @ 8155408
+ msgbox SlateportCity_SternsShipyard_2F_Text_17C80C, 2
+ end
diff --git a/data/maps/SootopolisCity/scripts.inc b/data/maps/SootopolisCity/scripts.inc
new file mode 100644
index 000000000..e18eca17c
--- /dev/null
+++ b/data/maps/SootopolisCity/scripts.inc
@@ -0,0 +1,458 @@
+SootopolisCity_MapScripts:: @ 814D07D
+ map_script 1, SootopolisCity_MapScript1_14D08D
+ map_script 3, SootopolisCity_MapScript1_14D10D
+ map_script 5, SootopolisCity_MapScript1_14D165
+ .byte 0
+
+SootopolisCity_MapScript1_14D08D:: @ 814D08D
+ call_if_unset FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, SootopolisCity_EventScript_14D0A0
+ call_if_set FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, SootopolisCity_EventScript_14D0B1
+ end
+
+SootopolisCity_EventScript_14D0A0:: @ 814D0A0
+ setobjectxyperm 3, 31, 18
+ setmetatile 31, 32, 592, 1
+ return
+
+SootopolisCity_EventScript_14D0B1:: @ 814D0B1
+ call_if_unset FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_EventScript_14D0BB
+ return
+
+SootopolisCity_EventScript_14D0BB:: @ 814D0BB
+ setmetatile 9, 6, 584, 1
+ setmetatile 9, 17, 584, 1
+ setmetatile 9, 26, 584, 1
+ setmetatile 44, 17, 584, 1
+ setmetatile 8, 35, 584, 1
+ setmetatile 53, 28, 584, 1
+ setmetatile 45, 6, 584, 1
+ setmetatile 48, 25, 584, 1
+ setmetatile 31, 32, 592, 1
+ return
+
+SootopolisCity_MapScript1_14D10D:: @ 814D10D
+ setflag FLAG_VISITED_SOOTOPOLIS_CITY
+ call_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_EventScript_14D159
+ call_if_set FLAG_SYS_WEATHER_CTRL, SootopolisCity_EventScript_14D123
+ end
+
+SootopolisCity_EventScript_14D123:: @ 814D123
+ call SootopolisCity_EventScript_1A02C1
+ setobjectxyperm 1, 29, 19
+ setobjectxyperm 2, 33, 19
+ compare VAR_SOOTOPOLIS_STATE, 1
+ call_if_eq SootopolisCity_EventScript_14D142
+ return
+
+SootopolisCity_EventScript_14D142:: @ 814D142
+ setobjectxyperm 10, 29, 6
+ setobjectmovementtype 10, 10
+ setobjectxyperm 5, 30, 6
+ setobjectmovementtype 5, 9
+ return
+
+SootopolisCity_EventScript_14D159:: @ 814D159
+ setobjectxyperm 10, 31, 33
+ setobjectmovementtype 10, 8
+ return
+
+SootopolisCity_MapScript1_14D165:: @ 814D165
+ setdivewarp MAP_UNDERWATER_SOOTOPOLIS_CITY, 255, 9, 6
+ end
+
+SootopolisCity_EventScript_14D16E:: @ 814D16E
+ lock
+ faceplayer
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_EventScript_14D183
+ msgbox SootopolisCity_Text_1696A4, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D183:: @ 814D183
+ msgbox SootopolisCity_Text_16A455, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D18D:: @ 814D18D
+ msgbox SootopolisCity_Text_16A2B2, 2
+ end
+
+SootopolisCity_EventScript_14D196:: @ 814D196
+ msgbox SootopolisCity_Text_16A2FB, 2
+ end
+
+SootopolisCity_EventScript_14D19F:: @ 814D19F
+ lock
+ faceplayer
+ dodailyevents
+ special GetPlayerBigGuyGirlString
+ goto_if_set FLAG_DAILY_RECEIVED_BERRY_SOOTOPOLIS, SootopolisCity_EventScript_14D241
+ msgbox SootopolisCity_Text_1C63F2, 4
+ random 10
+ addvar RESULT, 20
+ addvar RESULT, ITEM_CHERI_BERRY
+ giveitem_std RESULT
+ compare RESULT, 0
+ goto_if_eq SootopolisCity_EventScript_1A029B
+ setflag FLAG_DAILY_RECEIVED_BERRY_SOOTOPOLIS
+ msgbox SootopolisCity_Text_1C64D0, 4
+ random 2
+ compare RESULT, 0
+ goto_if_eq SootopolisCity_EventScript_14D1FF
+ compare RESULT, 1
+ goto_if_eq SootopolisCity_EventScript_14D220
+ end
+
+SootopolisCity_EventScript_14D1FF:: @ 814D1FF
+ giveitem_std ITEM_FIGY_BERRY
+ compare RESULT, 0
+ goto_if_eq SootopolisCity_EventScript_1A029B
+ msgbox SootopolisCity_Text_1C650B, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D220:: @ 814D220
+ giveitem_std ITEM_IAPAPA_BERRY
+ compare RESULT, 0
+ goto_if_eq SootopolisCity_EventScript_1A029B
+ msgbox SootopolisCity_Text_1C650B, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D241:: @ 814D241
+ msgbox SootopolisCity_Text_1C6540, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq SootopolisCity_EventScript_14D25E
+ msgbox SootopolisCity_Text_1C6626, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D25E:: @ 814D25E
+ msgbox SootopolisCity_Text_1C65D4, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D268:: @ 814D268
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_SOOTOPOLIS_GYM, SootopolisCity_EventScript_14D27D
+ msgbox SootopolisCity_Text_16A4D6, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D27D:: @ 814D27D
+ msgbox SootopolisCity_Text_16A531, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D287:: @ 814D287
+ lock
+ faceplayer
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_EventScript_14D29C
+ msgbox SootopolisCity_Text_169813, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D29C:: @ 814D29C
+ msgbox SootopolisCity_Text_16A587, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D2A6:: @ 814D2A6
+ lock
+ faceplayer
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_EventScript_14D2BB
+ msgbox SootopolisCity_Text_1698A0, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D2BB:: @ 814D2BB
+ msgbox SootopolisCity_Text_16A614, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D2C5:: @ 814D2C5
+ lock
+ faceplayer
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_EventScript_14D2DA
+ msgbox SootopolisCity_Text_1697A7, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D2DA:: @ 814D2DA
+ msgbox SootopolisCity_Text_16A6AE, 4
+ release
+ end
+
+SootopolisCity_EventScript_14D2E4:: @ 814D2E4
+ msgbox SootopolisCity_Text_16972B, 2
+ end
+
+SootopolisCity_EventScript_14D2ED:: @ 814D2ED
+ msgbox SootopolisCity_Text_16A6C7, 3
+ end
+
+SootopolisCity_EventScript_14D2F6:: @ 814D2F6
+ msgbox SootopolisCity_Text_16A711, 3
+ end
+
+ClosedSootopolisDoorScript:: @ 814D2FF
+ msgbox ClosedSootopolisDoorText, 3
+ end
+
+SootopolisCity_EventScript_14D308:: @ 814D308
+ lockall
+ applymovement 10, SootopolisCity_Movement_1A083F
+ applymovement 255, SootopolisCity_Movement_1A0843
+ waitmovement 0
+ playse SE_PIN
+ applymovement 10, SootopolisCity_Movement_1A0833
+ waitmovement 0
+ applymovement 10, SootopolisCity_Movement_1A0835
+ waitmovement 0
+ applymovement 10, SootopolisCity_Movement_14D413
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox SootopolisCity_Text_169988, 4
+ .else
+ msgbox SootopolisCity_Text_169E0F, 4
+ .endif
+ closemessage
+ applymovement 10, SootopolisCity_Movement_14D417
+ applymovement 255, SootopolisCity_Movement_14D440
+ waitmovement 10
+ .ifdef SAPPHIRE
+ msgbox SootopolisCity_Text_1699FD, 4
+ .else
+ msgbox SootopolisCity_Text_169E82, 4
+ .endif
+ playse SE_PIN
+ applymovement 5, SootopolisCity_Movement_1A0833
+ waitmovement 0
+ applymovement 5, SootopolisCity_Movement_1A0835
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox SootopolisCity_Text_169AB7, 4
+ .else
+ msgbox SootopolisCity_Text_169F3C, 4
+ .endif
+ closemessage
+ delay 30
+ applymovement 5, SootopolisCity_Movement_14D46A
+ applymovement 10, SootopolisCity_Movement_14D41D
+ applymovement 255, SootopolisCity_Movement_14D445
+ waitmovement 0
+ applymovement 5, SootopolisCity_Movement_1A0843
+ applymovement 255, SootopolisCity_Movement_1A0843
+ waitmovement 0
+ delay 30
+ applymovement 10, SootopolisCity_Movement_1A0845
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox SootopolisCity_Text_169AE7, 4
+ .else
+ msgbox SootopolisCity_Text_169F6B, 4
+ .endif
+ closemessage
+ delay 30
+ applymovement 5, SootopolisCity_Movement_14D47C
+ applymovement 255, SootopolisCity_Movement_14D457
+ applymovement 10, SootopolisCity_Movement_14D42D
+ waitmovement 0
+ applymovement 5, SootopolisCity_Movement_1A083F
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox SootopolisCity_Text_169BC7, 4
+ .else
+ msgbox SootopolisCity_Text_16A06C, 4
+ .endif
+ applymovement 255, SootopolisCity_Movement_1A083F
+ waitmovement 0
+ .ifdef SAPPHIRE
+ msgbox SootopolisCity_Text_169C99, 4
+ .else
+ msgbox SootopolisCity_Text_16A13E, 4
+ .endif
+ moveobjectoffscreen 5
+ setobjectmovementtype 5, 9
+ moveobjectoffscreen 10
+ setobjectmovementtype 10, 10
+ setvar VAR_SOOTOPOLIS_STATE, 2
+ releaseall
+ end
+
+SootopolisCity_Movement_14D413:: @ 814D413
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+SootopolisCity_Movement_14D417:: @ 814D417
+ walk_right
+ walk_right
+ walk_right
+ walk_up
+ walk_in_place_fastest_down
+ end_movement
+
+SootopolisCity_Movement_14D41D:: @ 814D41D
+ walk_down
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ end_movement
+
+SootopolisCity_Movement_14D42D:: @ 814D42D
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+SootopolisCity_Movement_14D440:: @ 814D440
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+SootopolisCity_Movement_14D445:: @ 814D445
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+SootopolisCity_Movement_14D457:: @ 814D457
+ delay_16
+ delay_16
+ walk_left
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+SootopolisCity_Movement_14D46A:: @ 814D46A
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ end_movement
+
+SootopolisCity_Movement_14D47C:: @ 814D47C
+ delay_16
+ delay_16
+ walk_left
+ walk_left
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ walk_right
+ end_movement
+
+SootopolisCity_EventScript_14D48F:: @ 814D48F
+ .ifdef SAPPHIRE
+ msgbox SootopolisCity_Text_169D37, 2
+ .else
+ msgbox SootopolisCity_Text_16A1DB, 2
+ .endif
+ end
+
+SootopolisCity_EventScript_14D498:: @ 814D498
+ lock
+ faceplayer
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_EventScript_14D4AD
+ .ifdef SAPPHIRE
+ msgbox SootopolisCity_Text_169DA6, 4
+ .else
+ msgbox SootopolisCity_Text_16A249, 4
+ .endif
+ release
+ end
+
+SootopolisCity_EventScript_14D4AD:: @ 814D4AD
+ msgbox SootopolisCity_Text_16A33E, 4
+ closemessage
+ applymovement LAST_TALKED, SootopolisCity_Movement_1A0845
+ waitmovement 0
+ delay 50
+ setfieldeffectargument 0, 1
+ dofieldeffect FLDEFF_NPCFLY_OUT
+ delay 15
+ removeobject LAST_TALKED
+ waitfieldeffect FLDEFF_NPCFLY_OUT
+ release
+ end
diff --git a/data/maps/SootopolisCity_Gym_1F/scripts.inc b/data/maps/SootopolisCity_Gym_1F/scripts.inc
new file mode 100644
index 000000000..a404013e0
--- /dev/null
+++ b/data/maps/SootopolisCity_Gym_1F/scripts.inc
@@ -0,0 +1,155 @@
+SootopolisCity_Gym_1F_MapScripts:: @ 815AF07
+ map_script 2, SootopolisCity_Gym_1F_MapScript2_15AF86
+ map_script 5, SootopolisCity_Gym_1F_MapScript1_15AF22
+ map_script 1, SootopolisCity_Gym_1F_MapScript1_15AF25
+ map_script 3, SootopolisCity_Gym_1F_MapScript1_15AF1C
+ .byte 0
+
+SootopolisCity_Gym_1F_MapScript1_15AF1C:: @ 815AF1C
+ setvar VAR_ICE_STEP_COUNT, 1
+ end
+
+SootopolisCity_Gym_1F_MapScript1_15AF22:: @ 815AF22
+ setstepcallback 4
+ end
+
+SootopolisCity_Gym_1F_MapScript1_15AF25:: @ 815AF25
+ call SootopolisCity_Gym_1F_EventScript_15AF2E
+ special SetSootopolisGymCrackedIceMetatiles
+ end
+
+SootopolisCity_Gym_1F_EventScript_15AF2E:: @ 815AF2E
+ compare VAR_ICE_STEP_COUNT, 8
+ goto_if_lt SootopolisCity_Gym_1F_EventScript_15AF85
+ compare VAR_ICE_STEP_COUNT, 28
+ goto_if_lt SootopolisCity_Gym_1F_EventScript_15AF73
+ compare VAR_ICE_STEP_COUNT, 69
+ goto_if_lt SootopolisCity_Gym_1F_EventScript_15AF61
+ setmetatile 8, 4, 519, 0
+ setmetatile 8, 5, 519, 0
+
+SootopolisCity_Gym_1F_EventScript_15AF61:: @ 815AF61
+ setmetatile 8, 10, 519, 0
+ setmetatile 8, 11, 519, 0
+
+SootopolisCity_Gym_1F_EventScript_15AF73:: @ 815AF73
+ setmetatile 8, 15, 519, 0
+ setmetatile 8, 16, 519, 0
+
+SootopolisCity_Gym_1F_EventScript_15AF85:: @ 815AF85
+ return
+
+SootopolisCity_Gym_1F_MapScript2_15AF86:: @ 815AF86
+ map_script_2 VAR_ICE_STEP_COUNT, 8, SootopolisCity_Gym_1F_EventScript_15AFA8
+ map_script_2 VAR_ICE_STEP_COUNT, 28, SootopolisCity_Gym_1F_EventScript_15AFBC
+ map_script_2 VAR_ICE_STEP_COUNT, 69, SootopolisCity_Gym_1F_EventScript_15AFD0
+ map_script_2 VAR_ICE_STEP_COUNT, 0, SootopolisCity_Gym_1F_EventScript_15AFE4
+ .2byte 0
+
+SootopolisCity_Gym_1F_EventScript_15AFA8:: @ 815AFA8
+ addvar VAR_ICE_STEP_COUNT, 1
+ delay 40
+ playse SE_RU_GASHIN
+ call SootopolisCity_Gym_1F_EventScript_15AF2E
+ special DrawWholeMapView
+ end
+
+SootopolisCity_Gym_1F_EventScript_15AFBC:: @ 815AFBC
+ addvar VAR_ICE_STEP_COUNT, 1
+ delay 40
+ playse SE_RU_GASHIN
+ call SootopolisCity_Gym_1F_EventScript_15AF2E
+ special DrawWholeMapView
+ end
+
+SootopolisCity_Gym_1F_EventScript_15AFD0:: @ 815AFD0
+ addvar VAR_ICE_STEP_COUNT, 1
+ delay 40
+ playse SE_RU_GASHIN
+ call SootopolisCity_Gym_1F_EventScript_15AF2E
+ special DrawWholeMapView
+ end
+
+SootopolisCity_Gym_1F_EventScript_15AFE4:: @ 815AFE4
+ lockall
+ delay 20
+ applymovement 255, SootopolisCity_Gym_1F_Movement_15AFFD
+ waitmovement 0
+ playse SE_RU_HYUU
+ delay 60
+ warphole MAP_SOOTOPOLIS_CITY_GYM_B1F
+ waitstate
+ end
+
+SootopolisCity_Gym_1F_Movement_15AFFD:: @ 815AFFD
+ set_invisible
+ end_movement
+
+SootopolisCity_Gym_1F_EventScript_15AFFF:: @ 815AFFF
+ trainerbattle 1, OPPONENT_WALLACE, 0, SootopolisCity_Gym_1F_Text_18F0CA, SootopolisCity_Gym_1F_Text_18F282, SootopolisCity_Gym_1F_EventScript_15B02D
+ goto_if_unset FLAG_RECEIVED_TM03, SootopolisCity_Gym_1F_EventScript_15B056
+ goto_if_unset FLAG_BADGE06_GET, SootopolisCity_Gym_1F_EventScript_15B07A
+ msgbox SootopolisCity_Gym_1F_Text_18F4D7, 4
+ release
+ end
+
+SootopolisCity_Gym_1F_EventScript_15B02D:: @ 815B02D
+ message SootopolisCity_Gym_1F_Text_18F342
+ waitmessage
+ call SootopolisCity_Gym_1F_EventScript_1A02C5
+ msgbox SootopolisCity_Gym_1F_Text_18F36B, 4
+ setflag FLAG_DEFEATED_SOOTOPOLIS_GYM
+ setflag FLAG_BADGE08_GET
+ setvar VAR_SPECIAL_8, 8
+ call SootopolisCity_Gym_1F_EventScript_1A01C0
+ goto SootopolisCity_Gym_1F_EventScript_15B056
+ end
+
+SootopolisCity_Gym_1F_EventScript_15B056:: @ 815B056
+ giveitem_std ITEM_TM03_WATER_PULSE
+ compare RESULT, 0
+ goto_if_eq SootopolisCity_Gym_1F_EventScript_1A029B
+ msgbox SootopolisCity_Gym_1F_Text_18F466, 4
+ setflag FLAG_RECEIVED_TM03
+ release
+ end
+
+SootopolisCity_Gym_1F_EventScript_15B07A:: @ 815B07A
+ msgbox SootopolisCity_Gym_1F_Text_18F5B4, 4
+ release
+ end
+
+SootopolisCity_Gym_1F_EventScript_15B084:: @ 815B084
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_SOOTOPOLIS_GYM, SootopolisCity_Gym_1F_EventScript_15B099
+ msgbox SootopolisCity_Gym_1F_Text_18E8A5, 4
+ release
+ end
+
+SootopolisCity_Gym_1F_EventScript_15B099:: @ 815B099
+ msgbox SootopolisCity_Gym_1F_Text_18E9C9, 4
+ release
+ end
+
+SootopolisCity_Gym_1F_EventScript_15B0A3:: @ 815B0A3
+ lockall
+ goto_if_set FLAG_BADGE08_GET, SootopolisCity_Gym_1F_EventScript_15B0C3
+ goto SootopolisCity_Gym_1F_EventScript_15B0CD
+ end
+
+SootopolisCity_Gym_1F_EventScript_15B0B3:: @ 815B0B3
+ lockall
+ goto_if_set FLAG_BADGE08_GET, SootopolisCity_Gym_1F_EventScript_15B0C3
+ goto SootopolisCity_Gym_1F_EventScript_15B0CD
+ end
+
+SootopolisCity_Gym_1F_EventScript_15B0C3:: @ 815B0C3
+ msgbox SootopolisCity_Gym_1F_Text_18F665, 4
+ releaseall
+ end
+
+SootopolisCity_Gym_1F_EventScript_15B0CD:: @ 815B0CD
+ msgbox SootopolisCity_Gym_1F_Text_18F649, 4
+ releaseall
+ end
diff --git a/data/maps/SootopolisCity_Gym_B1F/scripts.inc b/data/maps/SootopolisCity_Gym_B1F/scripts.inc
new file mode 100644
index 000000000..e54970701
--- /dev/null
+++ b/data/maps/SootopolisCity_Gym_B1F/scripts.inc
@@ -0,0 +1,42 @@
+SootopolisCity_Gym_B1F_MapScripts:: @ 815B0D7
+ .byte 0
+
+SootopolisCity_Gym_B1F_EventScript_15B0D8:: @ 815B0D8
+ trainerbattle 0, OPPONENT_ANDREA, 0, SootopolisCity_Gym_B1F_Text_18EA87, SootopolisCity_Gym_B1F_Text_18EACF
+ msgbox SootopolisCity_Gym_B1F_Text_18EAED, 6
+ end
+
+SootopolisCity_Gym_B1F_EventScript_15B0EF:: @ 815B0EF
+ trainerbattle 0, OPPONENT_CRISSY, 0, SootopolisCity_Gym_B1F_Text_18EB22, SootopolisCity_Gym_B1F_Text_18EB81
+ msgbox SootopolisCity_Gym_B1F_Text_18EBB1, 6
+ end
+
+SootopolisCity_Gym_B1F_EventScript_15B106:: @ 815B106
+ trainerbattle 0, OPPONENT_BRIANNA_2, 0, SootopolisCity_Gym_B1F_Text_18EBFA, SootopolisCity_Gym_B1F_Text_18EC5E
+ msgbox SootopolisCity_Gym_B1F_Text_18EC92, 6
+ end
+
+SootopolisCity_Gym_B1F_EventScript_15B11D:: @ 815B11D
+ trainerbattle 0, OPPONENT_CONNIE, 0, SootopolisCity_Gym_B1F_Text_18ECEB, SootopolisCity_Gym_B1F_Text_18ED18
+ msgbox SootopolisCity_Gym_B1F_Text_18ED2B, 6
+ end
+
+SootopolisCity_Gym_B1F_EventScript_15B134:: @ 815B134
+ trainerbattle 0, OPPONENT_BRIDGET, 0, SootopolisCity_Gym_B1F_Text_18ED91, SootopolisCity_Gym_B1F_Text_18EDE8
+ msgbox SootopolisCity_Gym_B1F_Text_18EE03, 6
+ end
+
+SootopolisCity_Gym_B1F_EventScript_15B14B:: @ 815B14B
+ trainerbattle 0, OPPONENT_OLIVIA, 0, SootopolisCity_Gym_B1F_Text_18EE96, SootopolisCity_Gym_B1F_Text_18EEDC
+ msgbox SootopolisCity_Gym_B1F_Text_18EEF7, 6
+ end
+
+SootopolisCity_Gym_B1F_EventScript_15B162:: @ 815B162
+ trainerbattle 0, OPPONENT_TIFFANY, 0, SootopolisCity_Gym_B1F_Text_18EF39, SootopolisCity_Gym_B1F_Text_18EFB8
+ msgbox SootopolisCity_Gym_B1F_Text_18EFCA, 6
+ end
+
+SootopolisCity_Gym_B1F_EventScript_15B179:: @ 815B179
+ trainerbattle 0, OPPONENT_MARISSA, 0, SootopolisCity_Gym_B1F_Text_18F037, SootopolisCity_Gym_B1F_Text_18F07F
+ msgbox SootopolisCity_Gym_B1F_Text_18F085, 6
+ end
diff --git a/data/maps/SootopolisCity_House1/scripts.inc b/data/maps/SootopolisCity_House1/scripts.inc
new file mode 100644
index 000000000..d1b842f7b
--- /dev/null
+++ b/data/maps/SootopolisCity_House1/scripts.inc
@@ -0,0 +1,28 @@
+SootopolisCity_House1_MapScripts:: @ 815B29A
+ .byte 0
+
+SootopolisCity_House1_EventScript_15B29B:: @ 815B29B
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM31, SootopolisCity_House1_EventScript_15B2C7
+ msgbox SootopolisCity_House1_Text_18F991, 4
+ giveitem_std ITEM_TM31_BRICK_BREAK
+ setflag FLAG_RECEIVED_TM31
+ msgbox SootopolisCity_House1_Text_18FA03, 4
+ release
+ end
+
+SootopolisCity_House1_EventScript_15B2C7:: @ 815B2C7
+ msgbox SootopolisCity_House1_Text_18FA03, 4
+ release
+ end
+
+SootopolisCity_House1_EventScript_15B2D1:: @ 815B2D1
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_KECLEON, 0
+ msgbox SootopolisCity_House1_Text_18FA50, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/SootopolisCity_House2/scripts.inc b/data/maps/SootopolisCity_House2/scripts.inc
new file mode 100644
index 000000000..d714993d4
--- /dev/null
+++ b/data/maps/SootopolisCity_House2/scripts.inc
@@ -0,0 +1,21 @@
+SootopolisCity_House2_MapScripts:: @ 815B2E4
+ .byte 0
+
+SootopolisCity_House2_EventScript_15B2E5:: @ 815B2E5
+ lock
+ faceplayer
+ msgbox SootopolisCity_House2_Text_18FA66, MSGBOX_YESNO
+ compare RESULT, YES
+ call_if_eq SootopolisCity_House2_EventScript_15B307
+ compare RESULT, NO
+ call_if_eq SootopolisCity_House2_EventScript_15B310
+ release
+ end
+
+SootopolisCity_House2_EventScript_15B307:: @ 815B307
+ msgbox SootopolisCity_House2_Text_18FAAE, 4
+ return
+
+SootopolisCity_House2_EventScript_15B310:: @ 815B310
+ msgbox SootopolisCity_House2_Text_18FB04, 4
+ return
diff --git a/data/maps/SootopolisCity_House3/scripts.inc b/data/maps/SootopolisCity_House3/scripts.inc
new file mode 100644
index 000000000..6ffa30d3d
--- /dev/null
+++ b/data/maps/SootopolisCity_House3/scripts.inc
@@ -0,0 +1,21 @@
+SootopolisCity_House3_MapScripts:: @ 815B319
+ .byte 0
+
+SootopolisCity_House3_EventScript_15B31A:: @ 815B31A
+ lock
+ faceplayer
+ msgbox SootopolisCity_House3_Text_18FB36, MSGBOX_YESNO
+ compare RESULT, YES
+ goto_if_eq SootopolisCity_House3_EventScript_15B339
+ msgbox SootopolisCity_House3_Text_18FBC0, 4
+ release
+ end
+
+SootopolisCity_House3_EventScript_15B339:: @ 815B339
+ msgbox SootopolisCity_House3_Text_18FB9C, 4
+ release
+ end
+
+SootopolisCity_House3_EventScript_15B343:: @ 815B343
+ msgbox SootopolisCity_House3_Text_18FC1A, 2
+ end
diff --git a/data/maps/SootopolisCity_House4/scripts.inc b/data/maps/SootopolisCity_House4/scripts.inc
new file mode 100644
index 000000000..b552cc6d6
--- /dev/null
+++ b/data/maps/SootopolisCity_House4/scripts.inc
@@ -0,0 +1,20 @@
+SootopolisCity_House4_MapScripts:: @ 815B34C
+ .byte 0
+
+SootopolisCity_House4_EventScript_15B34D:: @ 815B34D
+ msgbox SootopolisCity_House4_Text_18FC92, 2
+ end
+
+SootopolisCity_House4_EventScript_15B356:: @ 815B356
+ msgbox SootopolisCity_House4_Text_18FD41, 2
+ end
+
+SootopolisCity_House4_EventScript_15B35F:: @ 815B35F
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_AZUMARILL, 0
+ msgbox SootopolisCity_House4_Text_18FDD8, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/SootopolisCity_House5/scripts.inc b/data/maps/SootopolisCity_House5/scripts.inc
new file mode 100644
index 000000000..26e5c7d5c
--- /dev/null
+++ b/data/maps/SootopolisCity_House5/scripts.inc
@@ -0,0 +1,10 @@
+SootopolisCity_House5_MapScripts:: @ 815B372
+ .byte 0
+
+SootopolisCity_House5_EventScript_15B373:: @ 815B373
+ msgbox SootopolisCity_House5_Text_18FDEC, 2
+ end
+
+SootopolisCity_House5_EventScript_15B37C:: @ 815B37C
+ msgbox SootopolisCity_House5_Text_18FE7B, 2
+ end
diff --git a/data/maps/SootopolisCity_House6/scripts.inc b/data/maps/SootopolisCity_House6/scripts.inc
new file mode 100644
index 000000000..24c59500a
--- /dev/null
+++ b/data/maps/SootopolisCity_House6/scripts.inc
@@ -0,0 +1,34 @@
+SootopolisCity_House6_MapScripts:: @ 815B385
+ .byte 0
+
+SootopolisCity_House6_EventScript_15B386:: @ 815B386
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_WAILMER_DOLL, SootopolisCity_House6_EventScript_15B3CD
+ msgbox SootopolisCity_House6_Text_18FEA1, MSGBOX_YESNO
+ compare RESULT, NO
+ call_if_eq SootopolisCity_House6_EventScript_15B3C3
+ msgbox SootopolisCity_House6_Text_18FF12, 4
+ givedecoration_std DECOR_WAILMER_DOLL
+ compare RESULT, 0
+ goto_if_eq SootopolisCity_House6_EventScript_15B3D7
+ setflag FLAG_RECEIVED_WAILMER_DOLL
+ release
+ end
+
+SootopolisCity_House6_EventScript_15B3C3:: @ 815B3C3
+ msgbox SootopolisCity_House6_Text_18FF6D, 4
+ release
+ end
+
+SootopolisCity_House6_EventScript_15B3CD:: @ 815B3CD
+ msgbox SootopolisCity_House6_Text_18FF95, 4
+ release
+ end
+
+SootopolisCity_House6_EventScript_15B3D7:: @ 815B3D7
+ bufferdecorationname 1, DECOR_WAILMER_DOLL
+ msgbox SootopolisCity_House6_Text_1A0CEF, 4
+ msgbox SootopolisCity_House6_Text_18FF28, 4
+ release
+ end
diff --git a/data/maps/SootopolisCity_House7/scripts.inc b/data/maps/SootopolisCity_House7/scripts.inc
new file mode 100644
index 000000000..a9b06b176
--- /dev/null
+++ b/data/maps/SootopolisCity_House7/scripts.inc
@@ -0,0 +1,10 @@
+SootopolisCity_House7_MapScripts:: @ 815B3ED
+ .byte 0
+
+SootopolisCity_House7_EventScript_15B3EE:: @ 815B3EE
+ msgbox SootopolisCity_House7_Text_18FFA9, 2
+ end
+
+SootopolisCity_House7_EventScript_15B3F7:: @ 815B3F7
+ msgbox SootopolisCity_House7_Text_19005B, 2
+ end
diff --git a/data/maps/SootopolisCity_House8/scripts.inc b/data/maps/SootopolisCity_House8/scripts.inc
new file mode 100644
index 000000000..91dd3490b
--- /dev/null
+++ b/data/maps/SootopolisCity_House8/scripts.inc
@@ -0,0 +1,114 @@
+SootopolisCity_House8_MapScripts:: @ 815B400
+ .byte 0
+
+SootopolisCity_House8_EventScript_15B401:: @ 815B401
+ special GetShroomishSizeRecordInfo
+ lock
+ faceplayer
+ msgbox SootopolisCity_House8_Text_1900F7, 4
+ special SelectMonForNPCTrade
+ waitstate
+ copyvar RESULT, VAR_SPECIAL_4
+ compare RESULT, 255
+ goto_if_eq SootopolisCity_House8_EventScript_15B448
+ special CompareShroomishSize
+ compare RESULT, 1
+ goto_if_eq SootopolisCity_House8_EventScript_15B452
+ compare RESULT, 2
+ goto_if_eq SootopolisCity_House8_EventScript_15B45C
+ compare RESULT, 3
+ goto_if_eq SootopolisCity_House8_EventScript_15B466
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B448:: @ 815B448
+ msgbox SootopolisCity_House8_Text_190366, 4
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B452:: @ 815B452
+ msgbox SootopolisCity_House8_Text_190329, 4
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B45C:: @ 815B45C
+ msgbox SootopolisCity_House8_Text_1902E4, 4
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B466:: @ 815B466
+ msgbox SootopolisCity_House8_Text_19021D, 4
+ giveitem_std ITEM_ELIXIR
+ compare RESULT, 0
+ goto_if_eq SootopolisCity_House8_EventScript_15B488
+ closemessage
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B488:: @ 815B488
+ msgbox SootopolisCity_House8_Text_1902C4, 4
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B492:: @ 815B492
+ special GetBarboachSizeRecordInfo
+ lock
+ faceplayer
+ msgbox SootopolisCity_House8_Text_190431, 4
+ special SelectMonForNPCTrade
+ waitstate
+ copyvar RESULT, VAR_SPECIAL_4
+ compare RESULT, 255
+ goto_if_eq SootopolisCity_House8_EventScript_15B4D9
+ special CompareBarboachSize
+ compare RESULT, 1
+ goto_if_eq SootopolisCity_House8_EventScript_15B4E3
+ compare RESULT, 2
+ goto_if_eq SootopolisCity_House8_EventScript_15B4ED
+ compare RESULT, 3
+ goto_if_eq SootopolisCity_House8_EventScript_15B4F7
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B4D9:: @ 815B4D9
+ msgbox SootopolisCity_House8_Text_19065A, 4
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B4E3:: @ 815B4E3
+ msgbox SootopolisCity_House8_Text_190628, 4
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B4ED:: @ 815B4ED
+ msgbox SootopolisCity_House8_Text_1905E6, 4
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B4F7:: @ 815B4F7
+ msgbox SootopolisCity_House8_Text_190536, 4
+ giveitem_std ITEM_ELIXIR
+ compare RESULT, 0
+ goto_if_eq SootopolisCity_House8_EventScript_15B519
+ closemessage
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B519:: @ 815B519
+ msgbox SootopolisCity_House8_Text_1905C1, 4
+ release
+ end
+
+SootopolisCity_House8_EventScript_15B523:: @ 815B523
+ special GetShroomishSizeRecordInfo
+ lockall
+ msgbox SootopolisCity_House8_Text_1903C9, 4
+ releaseall
+ end
+
+SootopolisCity_House8_EventScript_15B531:: @ 815B531
+ special GetBarboachSizeRecordInfo
+ lockall
+ msgbox SootopolisCity_House8_Text_1906BE, 4
+ releaseall
+ end
diff --git a/data/maps/SootopolisCity_Mart/scripts.inc b/data/maps/SootopolisCity_Mart/scripts.inc
new file mode 100644
index 000000000..1687bd91e
--- /dev/null
+++ b/data/maps/SootopolisCity_Mart/scripts.inc
@@ -0,0 +1,55 @@
+SootopolisCity_Mart_MapScripts:: @ 815B21A
+ .byte 0
+
+SootopolisCity_Mart_EventScript_15B21B:: @ 815B21B
+ lock
+ faceplayer
+ message SootopolisCity_Mart_Text_1A0BE4
+ waitmessage
+ pokemart SootopolisCity_Mart_Items
+ msgbox SootopolisCity_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+SootopolisCity_Mart_Items:: @ 815B234
+ .2byte ITEM_ULTRA_BALL
+ .2byte ITEM_HYPER_POTION
+ .2byte ITEM_MAX_POTION
+ .2byte ITEM_FULL_HEAL
+ .2byte ITEM_REVIVE
+ .2byte ITEM_MAX_REPEL
+ .2byte ITEM_X_ATTACK
+ .2byte ITEM_X_DEFEND
+ .2byte ITEM_SHADOW_MAIL
+ .2byte ITEM_NONE
+ release
+ end
+
+SootopolisCity_Mart_EventScript_15B24A:: @ 815B24A
+ lock
+ faceplayer
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_Mart_EventScript_15B268
+ goto_if_unset FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, SootopolisCity_Mart_EventScript_15B268
+ msgbox SootopolisCity_Mart_Text_18F8D7, 4
+ release
+ end
+
+SootopolisCity_Mart_EventScript_15B268:: @ 815B268
+ msgbox SootopolisCity_Mart_Text_18F890, 4
+ release
+ end
+
+SootopolisCity_Mart_EventScript_15B272:: @ 815B272
+ lock
+ faceplayer
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_Mart_EventScript_15B290
+ goto_if_unset FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, SootopolisCity_Mart_EventScript_15B290
+ msgbox SootopolisCity_Mart_Text_18F96B, 4
+ release
+ end
+
+SootopolisCity_Mart_EventScript_15B290:: @ 815B290
+ msgbox SootopolisCity_Mart_Text_18F8F2, 4
+ release
+ end
diff --git a/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc b/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..820dd4858
--- /dev/null
+++ b/data/maps/SootopolisCity_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,43 @@
+SootopolisCity_PokemonCenter_1F_MapScripts:: @ 815B190
+ map_script 3, SootopolisCity_PokemonCenter_1F_MapScript1_15B196
+ .byte 0
+
+SootopolisCity_PokemonCenter_1F_MapScript1_15B196:: @ 815B196
+ setrespawn 10
+ end
+
+@ 815B19A
+ setvar VAR_SPECIAL_B, 1
+ call VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+SootopolisCity_PokemonCenter_1F_EventScript_15B1A8:: @ 815B1A8
+ lock
+ faceplayer
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_PokemonCenter_1F_EventScript_15B1C6
+ goto_if_unset FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, SootopolisCity_PokemonCenter_1F_EventScript_15B1C6
+ msgbox SootopolisCity_PokemonCenter_1F_Text_18F770, 4
+ release
+ end
+
+SootopolisCity_PokemonCenter_1F_EventScript_15B1C6:: @ 815B1C6
+ msgbox SootopolisCity_PokemonCenter_1F_Text_18F6A2, 4
+ release
+ end
+
+SootopolisCity_PokemonCenter_1F_EventScript_15B1D0:: @ 815B1D0
+ lock
+ faceplayer
+ goto_if_set FLAG_LEGENDARY_BATTLE_COMPLETED, SootopolisCity_PokemonCenter_1F_EventScript_15B1EE
+ goto_if_unset FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, SootopolisCity_PokemonCenter_1F_EventScript_15B1EE
+ msgbox SootopolisCity_PokemonCenter_1F_Text_18F860, 4
+ release
+ end
+
+SootopolisCity_PokemonCenter_1F_EventScript_15B1EE:: @ 815B1EE
+ msgbox SootopolisCity_PokemonCenter_1F_Text_18F7EA, 4
+ release
+ end
diff --git a/data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc b/data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..0547e666f
--- /dev/null
+++ b/data/maps/SootopolisCity_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,17 @@
+SootopolisCity_PokemonCenter_2F_MapScripts:: @ 815B1F8
+ map_script 2, SootopolisCity_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, SootopolisCity_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, SootopolisCity_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+SootopolisCity_PokemonCenter_2F_EventScript_15B208:: @ 815B208
+ call SootopolisCity_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+SootopolisCity_PokemonCenter_2F_EventScript_15B20E:: @ 815B20E
+ call SootopolisCity_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+SootopolisCity_PokemonCenter_2F_EventScript_15B214:: @ 815B214
+ call SootopolisCity_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/SouthernIsland_Exterior/scripts.inc b/data/maps/SouthernIsland_Exterior/scripts.inc
new file mode 100644
index 000000000..13e4774e2
--- /dev/null
+++ b/data/maps/SouthernIsland_Exterior/scripts.inc
@@ -0,0 +1,54 @@
+SouthernIsland_Exterior_MapScripts:: @ 8160AD6
+ map_script 3, SouthernIsland_Exterior_MapScript1_160ADC
+ .byte 0
+
+SouthernIsland_Exterior_MapScript1_160ADC:: @ 8160ADC
+ setflag FLAG_LANDMARK_SOUTHERN_ISLAND
+ end
+
+SouthernIsland_Exterior_EventScript_160AE0:: @ 8160AE0
+ lock
+ faceplayer
+ msgbox SouthernIsland_Exterior_Text_1C5215, MSGBOX_YESNO
+ compare RESULT, NO
+ goto_if_eq SouthernIsland_Exterior_EventScript_160B25
+ msgbox SouthernIsland_Exterior_Text_1C5281, 4
+ closemessage
+ applymovement LAST_TALKED, SouthernIsland_Exterior_Movement_1A0845
+ waitmovement 0
+ delay 30
+ hideobjectat 1, MAP_SOUTHERN_ISLAND_EXTERIOR
+ setvar VAR_SPECIAL_4, 2
+ call SouthernIsland_Exterior_EventScript_1A047C
+ warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
+ waitstate
+ release
+ end
+
+SouthernIsland_Exterior_EventScript_160B25:: @ 8160B25
+ msgbox SouthernIsland_Exterior_Text_1C52A6, 4
+ release
+ end
+
+BattleTower_Outside_EventScript_160B2F:: @ 8160B2F
+ applymovement 255, BattleTower_Outside_Movement_160B45
+ waitmovement 0
+ return
+
+BattleTower_Outside_EventScript_160B3A:: @ 8160B3A
+ applymovement 255, BattleTower_Outside_Movement_160B47
+ waitmovement 0
+ return
+
+BattleTower_Outside_Movement_160B45:: @ 8160B45
+ walk_down
+ end_movement
+
+BattleTower_Outside_Movement_160B47:: @ 8160B47
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+SouthernIsland_Exterior_EventScript_160B4A:: @ 8160B4A
+ msgbox SouthernIsland_Exterior_Text_1C52FB, 3
+ end
diff --git a/data/maps/SouthernIsland_Interior/scripts.inc b/data/maps/SouthernIsland_Interior/scripts.inc
new file mode 100644
index 000000000..7094ebed8
--- /dev/null
+++ b/data/maps/SouthernIsland_Interior/scripts.inc
@@ -0,0 +1,110 @@
+SouthernIsland_Interior_MapScripts:: @ 8160B53
+ map_script 5, SouthernIsland_Interior_MapScript1_160B5E
+ map_script 3, SouthernIsland_Interior_MapScript1_160B6C
+ .byte 0
+
+SouthernIsland_Interior_MapScript1_160B5E:: @ 8160B5E
+ call_if_set FLAG_SYS_CTRL_OBJ_DELETE, SouthernIsland_Interior_EventScript_160B68
+ end
+
+SouthernIsland_Interior_EventScript_160B68:: @ 8160B68
+ removeobject 2
+ return
+
+SouthernIsland_Interior_MapScript1_160B6C:: @ 8160B6C
+ .ifdef SAPPHIRE
+ setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_LATIOS
+ .else
+ setvar VAR_OBJ_GFX_ID_1, EVENT_OBJ_GFX_LATIAS
+ .endif
+ call SouthernIsland_Interior_EventScript_160B77
+ end
+
+SouthernIsland_Interior_EventScript_160B77:: @ 8160B77
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq SouthernIsland_Interior_EventScript_160B8F
+ compare RESULT, 1
+ goto_if_eq SouthernIsland_Interior_EventScript_160B95
+ end
+
+SouthernIsland_Interior_EventScript_160B8F:: @ 8160B8F
+ setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
+ return
+
+SouthernIsland_Interior_EventScript_160B95:: @ 8160B95
+ setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
+ return
+
+SouthernIsland_Interior_EventScript_160B9B:: @ 8160B9B
+ lockall
+ setvar VAR_SPECIAL_8, 12
+ goto SouthernIsland_Interior_EventScript_160BA7
+ end
+
+SouthernIsland_Interior_EventScript_160BA7:: @ 8160BA7
+ goto_if_set FLAG_ENCOUNTERED_LATIAS_OR_LATIOS, SouthernIsland_Interior_EventScript_160C08
+ goto_if_unset FLAG_SYS_HAS_EON_TICKET, SouthernIsland_Interior_EventScript_160C08
+ setflag FLAG_ENCOUNTERED_LATIAS_OR_LATIOS
+ special SpawnCameraDummy
+ applymovement 127, SouthernIsland_Interior_Movement_160C12
+ waitmovement 0
+ delay 50
+ waitse
+ playmoncry SPECIES_LATIAS_OR_LATIOS, 0
+ delay 30
+ waitmoncry
+ addobject 2
+ delay 30
+ applymovement 127, SouthernIsland_Interior_Movement_160C16
+ applymovement 2, SouthernIsland_Interior_Movement_160C22
+ waitmovement 0
+ delay 50
+ special RemoveCameraDummy
+ setwildbattle SPECIES_LATIAS_OR_LATIOS, 50, ITEM_SOUL_DEW
+ setflag FLAG_HIDE_LATIOS_OR_LATIAS_STATIONARY
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
+ special ScrSpecial_StartSouthernIslandBattle
+ waitstate
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
+ releaseall
+ end
+
+SouthernIsland_Interior_EventScript_160C08:: @ 8160C08
+ msgbox SouthernIsland_Interior_Text_1C52C5, 4
+ releaseall
+ end
+
+SouthernIsland_Interior_Movement_160C12:: @ 8160C12
+ walk_up
+ walk_up
+ walk_up
+ end_movement
+
+SouthernIsland_Interior_Movement_160C16:: @ 8160C16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ delay_16
+ walk_down
+ walk_down
+ walk_down
+ walk_in_place_fastest_up
+ end_movement
+
+SouthernIsland_Interior_Movement_160C22:: @ 8160C22
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ delay_16
+ delay_16
+ walk_down
+ walk_down
+ walk_down
+ walk_down
+ end_movement
diff --git a/data/maps/TradeCenter/scripts.inc b/data/maps/TradeCenter/scripts.inc
new file mode 100644
index 000000000..dadb3e875
--- /dev/null
+++ b/data/maps/TradeCenter/scripts.inc
@@ -0,0 +1,2 @@
+TradeCenter_MapScripts:: @ 815F57D
+ .byte 0
diff --git a/data/maps/Underwater1/scripts.inc b/data/maps/Underwater1/scripts.inc
new file mode 100644
index 000000000..ab2e910fe
--- /dev/null
+++ b/data/maps/Underwater1/scripts.inc
@@ -0,0 +1,2 @@
+Underwater1_MapScripts:: @ 8152637
+ .byte 0
diff --git a/data/maps/Underwater2/scripts.inc b/data/maps/Underwater2/scripts.inc
new file mode 100644
index 000000000..cf60a2b34
--- /dev/null
+++ b/data/maps/Underwater2/scripts.inc
@@ -0,0 +1,2 @@
+Underwater2_MapScripts:: @ 8152638
+ .byte 0
diff --git a/data/maps/Underwater3/scripts.inc b/data/maps/Underwater3/scripts.inc
new file mode 100644
index 000000000..c34b07b1c
--- /dev/null
+++ b/data/maps/Underwater3/scripts.inc
@@ -0,0 +1,2 @@
+Underwater3_MapScripts:: @ 8152639
+ .byte 0
diff --git a/data/maps/Underwater4/scripts.inc b/data/maps/Underwater4/scripts.inc
new file mode 100644
index 000000000..0d2256e07
--- /dev/null
+++ b/data/maps/Underwater4/scripts.inc
@@ -0,0 +1,2 @@
+Underwater4_MapScripts:: @ 815263A
+ .byte 0
diff --git a/data/maps/Underwater_Route134/scripts.inc b/data/maps/Underwater_Route134/scripts.inc
new file mode 100644
index 000000000..464731b10
--- /dev/null
+++ b/data/maps/Underwater_Route134/scripts.inc
@@ -0,0 +1,7 @@
+Underwater_Route134_MapScripts:: @ 815F071
+ map_script 5, Underwater_Route134_MapScript1_15F077
+ .byte 0
+
+Underwater_Route134_MapScript1_15F077:: @ 815F077
+ setdivewarp MAP_ROUTE134, 255, 60, 31
+ end
diff --git a/data/maps/Underwater_SeafloorCavern/scripts.inc b/data/maps/Underwater_SeafloorCavern/scripts.inc
new file mode 100644
index 000000000..d34558e40
--- /dev/null
+++ b/data/maps/Underwater_SeafloorCavern/scripts.inc
@@ -0,0 +1,43 @@
+Underwater_SeafloorCavern_MapScripts:: @ 815D99E
+ map_script 5, Underwater_SeafloorCavern_MapScript1_15DA36
+ map_script 3, Underwater_SeafloorCavern_MapScript1_15D9AE
+ map_script 1, Underwater_SeafloorCavern_MapScript1_15D9BF
+ .byte 0
+
+Underwater_SeafloorCavern_MapScript1_15D9AE:: @ 815D9AE
+ setflag FLAG_LANDMARK_SEAFLOOR_CAVERN
+ goto_if_set FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, Underwater_SeafloorCavern_EventScript_15D9BB
+ end
+
+Underwater_SeafloorCavern_EventScript_15D9BB:: @ 815D9BB
+ setflag FLAG_HIDE_UNDERWATER_SUBMARINE_INTERACTION
+ end
+
+Underwater_SeafloorCavern_MapScript1_15D9BF:: @ 815D9BF
+ call_if_set FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN, Underwater_SeafloorCavern_EventScript_15D9C9
+ end
+
+Underwater_SeafloorCavern_EventScript_15D9C9:: @ 815D9C9
+ setmetatile 5, 3, 542, 1
+ setmetatile 6, 3, 542, 1
+ setmetatile 7, 3, 542, 1
+ setmetatile 8, 3, 542, 1
+ setmetatile 5, 4, 552, 0
+ setmetatile 6, 4, 552, 0
+ setmetatile 7, 4, 552, 0
+ setmetatile 8, 4, 552, 0
+ setmetatile 5, 5, 552, 0
+ setmetatile 6, 5, 552, 0
+ setmetatile 7, 5, 552, 0
+ setmetatile 8, 5, 552, 0
+ return
+
+Underwater_SeafloorCavern_MapScript1_15DA36:: @ 815DA36
+ setdivewarp MAP_SEAFLOOR_CAVERN_ENTRANCE, 255, 10, 17
+ end
+
+Underwater_SeafloorCavern_EventScript_15DA3F:: @ 815DA3F
+ lockall
+ msgbox Underwater_SeafloorCavern_Text_197435, 4
+ releaseall
+ end
diff --git a/data/maps/Underwater_SealedChamber/scripts.inc b/data/maps/Underwater_SealedChamber/scripts.inc
new file mode 100644
index 000000000..3151c4575
--- /dev/null
+++ b/data/maps/Underwater_SealedChamber/scripts.inc
@@ -0,0 +1,27 @@
+Underwater_SealedChamber_MapScripts:: @ 815F080
+ map_script 6, Underwater_SealedChamber_MapScript1_15F086
+ .byte 0
+
+Underwater_SealedChamber_MapScript1_15F086:: @ 815F086
+ getplayerxy VAR_SPECIAL_4, VAR_SPECIAL_5
+ compare VAR_SPECIAL_4, 12
+ goto_if_ne Underwater_SealedChamber_EventScript_15F0A6
+ compare VAR_SPECIAL_5, 44
+ goto_if_ne Underwater_SealedChamber_EventScript_15F0A6
+ goto Underwater_SealedChamber_EventScript_15F0AF
+
+Underwater_SealedChamber_EventScript_15F0A6:: @ 815F0A6
+ setdivewarp MAP_ROUTE134, 255, 60, 31
+ end
+
+Underwater_SealedChamber_EventScript_15F0AF:: @ 815F0AF
+ setdivewarp MAP_SEALED_CHAMBER_OUTER_ROOM, 255, 10, 19
+ end
+
+Underwater_SealedChamber_EventScript_15F0B8:: @ 815F0B8
+ lockall
+ braillemessage Underwater_SealedChamber_Braille_1C533D
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
diff --git a/data/maps/Underwater_SootopolisCity/scripts.inc b/data/maps/Underwater_SootopolisCity/scripts.inc
new file mode 100644
index 000000000..bba04eec8
--- /dev/null
+++ b/data/maps/Underwater_SootopolisCity/scripts.inc
@@ -0,0 +1,7 @@
+Underwater_SootopolisCity_MapScripts:: @ 815CAE4
+ map_script 5, Underwater_SootopolisCity_MapScript1_15CAEA
+ .byte 0
+
+Underwater_SootopolisCity_MapScript1_15CAEA:: @ 815CAEA
+ setdivewarp MAP_SOOTOPOLIS_CITY, 255, 29, 53
+ end
diff --git a/data/maps/UnknownMap_25_29/scripts.inc b/data/maps/UnknownMap_25_29/scripts.inc
new file mode 100644
index 000000000..a62e0c9f3
--- /dev/null
+++ b/data/maps/UnknownMap_25_29/scripts.inc
@@ -0,0 +1 @@
+UnknownMap_25_29_MapScripts:: @ 815F580
diff --git a/data/maps/UnknownMap_25_30/scripts.inc b/data/maps/UnknownMap_25_30/scripts.inc
new file mode 100644
index 000000000..70a1f0ac2
--- /dev/null
+++ b/data/maps/UnknownMap_25_30/scripts.inc
@@ -0,0 +1 @@
+UnknownMap_25_30_MapScripts:: @ 815F580
diff --git a/data/maps/UnknownMap_25_31/scripts.inc b/data/maps/UnknownMap_25_31/scripts.inc
new file mode 100644
index 000000000..44c67cab5
--- /dev/null
+++ b/data/maps/UnknownMap_25_31/scripts.inc
@@ -0,0 +1 @@
+UnknownMap_25_31_MapScripts:: @ 815F580
diff --git a/data/maps/UnknownMap_25_32/scripts.inc b/data/maps/UnknownMap_25_32/scripts.inc
new file mode 100644
index 000000000..485a626e6
--- /dev/null
+++ b/data/maps/UnknownMap_25_32/scripts.inc
@@ -0,0 +1 @@
+UnknownMap_25_32_MapScripts:: @ 815F580
diff --git a/data/maps/UnknownMap_25_33/scripts.inc b/data/maps/UnknownMap_25_33/scripts.inc
new file mode 100644
index 000000000..68feb9cc6
--- /dev/null
+++ b/data/maps/UnknownMap_25_33/scripts.inc
@@ -0,0 +1 @@
+UnknownMap_25_33_MapScripts:: @ 815F580
diff --git a/data/maps/UnknownMap_25_34/scripts.inc b/data/maps/UnknownMap_25_34/scripts.inc
new file mode 100644
index 000000000..7377d2298
--- /dev/null
+++ b/data/maps/UnknownMap_25_34/scripts.inc
@@ -0,0 +1,429 @@
+UnknownMap_25_34_MapScripts:: @ 815F580
+ map_script 4, LinkContestRoom1_MapScript2_15F610
+ map_script 2, LinkContestRoom1_MapScript2_15F606
+ map_script 3, LinkContestRoom1_MapScript1_15F595
+ map_script 5, LinkContestRoom1_MapScript1_15F5F4
+ .byte 0
+
+LinkContestRoom1_MapScript1_15F595:: @ 815F595
+ call LinkContestRoom1_EventScript_15F5A5
+ setvar VAR_TEMP_0, 1
+ call LinkContestRoom1_EventScript_15F630
+ end
+
+LinkContestRoom1_EventScript_15F5A5:: @ 815F5A5
+ special ScriptGetMultiplayerId
+ compare RESULT, 0
+ call_if_eq LinkContestRoom1_EventScript_15F5E0
+ compare RESULT, 1
+ call_if_eq LinkContestRoom1_EventScript_15F5E4
+ compare RESULT, 2
+ call_if_eq LinkContestRoom1_EventScript_15F5E8
+ compare RESULT, 3
+ call_if_eq LinkContestRoom1_EventScript_15F5EC
+ compare RESULT, 4
+ call_if_eq LinkContestRoom1_EventScript_15F5F0
+ return
+
+LinkContestRoom1_EventScript_15F5E0:: @ 815F5E0
+ savebgm BGM_TEST1
+ return
+
+LinkContestRoom1_EventScript_15F5E4:: @ 815F5E4
+ savebgm BGM_TEST2
+ return
+
+LinkContestRoom1_EventScript_15F5E8:: @ 815F5E8
+ savebgm BGM_TEST3
+ return
+
+LinkContestRoom1_EventScript_15F5EC:: @ 815F5EC
+ savebgm BGM_TEST4
+ return
+
+LinkContestRoom1_EventScript_15F5F0:: @ 815F5F0
+ savebgm BGM_CONTEST0
+ return
+
+LinkContestRoom1_MapScript1_15F5F4:: @ 815F5F4
+ compare VAR_TEMP_9, 1
+ call_if_eq LinkContestRoom1_EventScript_15F600
+ end
+
+LinkContestRoom1_EventScript_15F600:: @ 815F600
+ call LinkContestRoom1_EventScript_15F919
+ return
+
+LinkContestRoom1_MapScript2_15F606:: @ 815F606
+ map_script_2 VAR_LINK_CONTEST_ROOM_STATE, 1, LinkContestRoom1_EventScript_15F61A
+ .2byte 0
+
+LinkContestRoom1_MapScript2_15F610:: @ 815F610
+ map_script_2 VAR_LINK_CONTEST_ROOM_STATE, 1, LinkContestRoom1_EventScript_15F625
+ .2byte 0
+
+LinkContestRoom1_EventScript_15F61A:: @ 815F61A
+ call LinkContestRoom1_EventScript_1A514D
+ call LinkContestRoom1_EventScript_15FB64
+ end
+
+LinkContestRoom1_EventScript_15F625:: @ 815F625
+ hideobjectat 255, MAP_LITTLEROOT_TOWN
+ call LinkContestRoom1_EventScript_15F919
+ end
+
+LinkContestRoom1_EventScript_15F630:: @ 815F630
+ call LinkContestRoom1_EventScript_15F6E6
+ call LinkContestRoom1_EventScript_15F646
+ compare VAR_TEMP_0, 8
+ goto_if_lt LinkContestRoom1_EventScript_15F630
+ return
+
+LinkContestRoom1_EventScript_15F646:: @ 815F646
+ switch VAR_TEMP_0
+ case 1, LinkContestRoom1_EventScript_15F699
+ case 2, LinkContestRoom1_EventScript_15F6A4
+ case 3, LinkContestRoom1_EventScript_15F6AF
+ case 4, LinkContestRoom1_EventScript_15F6BA
+ case 5, LinkContestRoom1_EventScript_15F6C5
+ case 6, LinkContestRoom1_EventScript_15F6D0
+ case 7, LinkContestRoom1_EventScript_15F6DB
+ end
+
+LinkContestRoom1_EventScript_15F699:: @ 815F699
+ copyvar VAR_OBJ_GFX_ID_4, VAR_TEMP_1
+ addvar VAR_TEMP_0, 1
+ return
+
+LinkContestRoom1_EventScript_15F6A4:: @ 815F6A4
+ copyvar VAR_OBJ_GFX_ID_5, VAR_TEMP_1
+ addvar VAR_TEMP_0, 1
+ return
+
+LinkContestRoom1_EventScript_15F6AF:: @ 815F6AF
+ copyvar VAR_OBJ_GFX_ID_6, VAR_TEMP_1
+ addvar VAR_TEMP_0, 1
+ return
+
+LinkContestRoom1_EventScript_15F6BA:: @ 815F6BA
+ copyvar VAR_OBJ_GFX_ID_7, VAR_TEMP_1
+ addvar VAR_TEMP_0, 1
+ return
+
+LinkContestRoom1_EventScript_15F6C5:: @ 815F6C5
+ copyvar VAR_OBJ_GFX_ID_8, VAR_TEMP_1
+ addvar VAR_TEMP_0, 1
+ return
+
+LinkContestRoom1_EventScript_15F6D0:: @ 815F6D0
+ copyvar VAR_OBJ_GFX_ID_9, VAR_TEMP_1
+ addvar VAR_TEMP_0, 1
+ return
+
+LinkContestRoom1_EventScript_15F6DB:: @ 815F6DB
+ copyvar VAR_OBJ_GFX_ID_A, VAR_TEMP_1
+ addvar VAR_TEMP_0, 1
+ return
+
+LinkContestRoom1_EventScript_15F6E6:: @ 815F6E6
+ setvar RESULT, 32
+ special ScriptRandom
+ addvar RESULT, 1
+ switch RESULT
+ case 1, LinkContestRoom1_EventScript_15F859
+ case 2, LinkContestRoom1_EventScript_15F85F
+ case 3, LinkContestRoom1_EventScript_15F865
+ case 4, LinkContestRoom1_EventScript_15F86B
+ case 5, LinkContestRoom1_EventScript_15F871
+ case 6, LinkContestRoom1_EventScript_15F877
+ case 7, LinkContestRoom1_EventScript_15F87D
+ case 8, LinkContestRoom1_EventScript_15F883
+ case 9, LinkContestRoom1_EventScript_15F889
+ case 10, LinkContestRoom1_EventScript_15F88F
+ case 11, LinkContestRoom1_EventScript_15F895
+ case 12, LinkContestRoom1_EventScript_15F89B
+ case 13, LinkContestRoom1_EventScript_15F8A1
+ case 14, LinkContestRoom1_EventScript_15F8A7
+ case 15, LinkContestRoom1_EventScript_15F8AD
+ case 16, LinkContestRoom1_EventScript_15F8B3
+ case 17, LinkContestRoom1_EventScript_15F8B9
+ case 18, LinkContestRoom1_EventScript_15F8BF
+ case 19, LinkContestRoom1_EventScript_15F8C5
+ case 20, LinkContestRoom1_EventScript_15F8CB
+ case 21, LinkContestRoom1_EventScript_15F8D1
+ case 22, LinkContestRoom1_EventScript_15F8D7
+ case 23, LinkContestRoom1_EventScript_15F8DD
+ case 24, LinkContestRoom1_EventScript_15F8E3
+ case 25, LinkContestRoom1_EventScript_15F8E9
+ case 26, LinkContestRoom1_EventScript_15F8EF
+ case 27, LinkContestRoom1_EventScript_15F8F5
+ case 28, LinkContestRoom1_EventScript_15F8FB
+ case 29, LinkContestRoom1_EventScript_15F901
+ case 30, LinkContestRoom1_EventScript_15F907
+ case 31, LinkContestRoom1_EventScript_15F90D
+ case 32, LinkContestRoom1_EventScript_15F913
+ end
+
+LinkContestRoom1_EventScript_15F859:: @ 815F859
+ setvar VAR_TEMP_1, 5
+ return
+
+LinkContestRoom1_EventScript_15F85F:: @ 815F85F
+ setvar VAR_TEMP_1, 6
+ return
+
+LinkContestRoom1_EventScript_15F865:: @ 815F865
+ setvar VAR_TEMP_1, 7
+ return
+
+LinkContestRoom1_EventScript_15F86B:: @ 815F86B
+ setvar VAR_TEMP_1, 8
+ return
+
+LinkContestRoom1_EventScript_15F871:: @ 815F871
+ setvar VAR_TEMP_1, 10
+ return
+
+LinkContestRoom1_EventScript_15F877:: @ 815F877
+ setvar VAR_TEMP_1, 11
+ return
+
+LinkContestRoom1_EventScript_15F87D:: @ 815F87D
+ setvar VAR_TEMP_1, 12
+ return
+
+LinkContestRoom1_EventScript_15F883:: @ 815F883
+ setvar VAR_TEMP_1, 13
+ return
+
+LinkContestRoom1_EventScript_15F889:: @ 815F889
+ setvar VAR_TEMP_1, 14
+ return
+
+LinkContestRoom1_EventScript_15F88F:: @ 815F88F
+ setvar VAR_TEMP_1, 15
+ return
+
+LinkContestRoom1_EventScript_15F895:: @ 815F895
+ setvar VAR_TEMP_1, 17
+ return
+
+LinkContestRoom1_EventScript_15F89B:: @ 815F89B
+ setvar VAR_TEMP_1, 18
+ return
+
+LinkContestRoom1_EventScript_15F8A1:: @ 815F8A1
+ setvar VAR_TEMP_1, 19
+ return
+
+LinkContestRoom1_EventScript_15F8A7:: @ 815F8A7
+ setvar VAR_TEMP_1, 20
+ return
+
+LinkContestRoom1_EventScript_15F8AD:: @ 815F8AD
+ setvar VAR_TEMP_1, 21
+ return
+
+LinkContestRoom1_EventScript_15F8B3:: @ 815F8B3
+ setvar VAR_TEMP_1, 22
+ return
+
+LinkContestRoom1_EventScript_15F8B9:: @ 815F8B9
+ setvar VAR_TEMP_1, 25
+ return
+
+LinkContestRoom1_EventScript_15F8BF:: @ 815F8BF
+ setvar VAR_TEMP_1, 26
+ return
+
+LinkContestRoom1_EventScript_15F8C5:: @ 815F8C5
+ setvar VAR_TEMP_1, 27
+ return
+
+LinkContestRoom1_EventScript_15F8CB:: @ 815F8CB
+ setvar VAR_TEMP_1, 47
+ return
+
+LinkContestRoom1_EventScript_15F8D1:: @ 815F8D1
+ setvar VAR_TEMP_1, 30
+ return
+
+LinkContestRoom1_EventScript_15F8D7:: @ 815F8D7
+ setvar VAR_TEMP_1, 31
+ return
+
+LinkContestRoom1_EventScript_15F8DD:: @ 815F8DD
+ setvar VAR_TEMP_1, 32
+ return
+
+LinkContestRoom1_EventScript_15F8E3:: @ 815F8E3
+ setvar VAR_TEMP_1, 33
+ return
+
+LinkContestRoom1_EventScript_15F8E9:: @ 815F8E9
+ setvar VAR_TEMP_1, 34
+ return
+
+LinkContestRoom1_EventScript_15F8EF:: @ 815F8EF
+ setvar VAR_TEMP_1, 35
+ return
+
+LinkContestRoom1_EventScript_15F8F5:: @ 815F8F5
+ setvar VAR_TEMP_1, 36
+ return
+
+LinkContestRoom1_EventScript_15F8FB:: @ 815F8FB
+ setvar VAR_TEMP_1, 37
+ return
+
+LinkContestRoom1_EventScript_15F901:: @ 815F901
+ setvar VAR_TEMP_1, 38
+ return
+
+LinkContestRoom1_EventScript_15F907:: @ 815F907
+ setvar VAR_TEMP_1, 44
+ return
+
+LinkContestRoom1_EventScript_15F90D:: @ 815F90D
+ setvar VAR_TEMP_1, 45
+ return
+
+LinkContestRoom1_EventScript_15F913:: @ 815F913
+ setvar VAR_TEMP_1, 46
+ return
+
+LinkContestRoom1_EventScript_15F919:: @ 815F919
+ switch VAR_CONTEST_LOCATION
+ case 1, LinkContestRoom1_EventScript_15F956
+ case 2, LinkContestRoom1_EventScript_15F969
+ case 3, LinkContestRoom1_EventScript_15F9C4
+ case 4, LinkContestRoom1_EventScript_15FA70
+ case 5, LinkContestRoom1_EventScript_15FA70
+ return
+
+LinkContestRoom1_EventScript_15F956:: @ 815F956
+ createvobject 5, 20, 3, 2, 3, 1
+ createvobject 46, 24, 11, 2, 3, 1
+ return
+
+LinkContestRoom1_EventScript_15F969:: @ 815F969
+ createvobject 45, 0, 2, 3, 3, 4
+ createvobject 66, 1, 2, 4, 3, 4
+ createvobject 55, 2, 2, 7, 3, 4
+ createvobject 46, 3, 2, 8, 3, 4
+ createvobject 5, 10, 12, 3, 3, 3
+ createvobject 20, 11, 12, 4, 3, 3
+ createvobject 24, 12, 12, 7, 3, 3
+ createvobject 12, 13, 12, 8, 3, 3
+ createvobject 47, 20, 3, 2, 3, 1
+ createvobject 46, 24, 11, 2, 3, 1
+ return
+
+LinkContestRoom1_EventScript_15F9C4:: @ 815F9C4
+ createvobject 45, 0, 2, 3, 3, 4
+ createvobject 66, 1, 2, 4, 3, 4
+ createvobject 55, 2, 2, 7, 3, 4
+ createvobject 48, 3, 2, 8, 3, 4
+ createvobject 5, 10, 12, 3, 3, 3
+ createvobject 20, 11, 12, 4, 3, 3
+ createvobject 24, 12, 12, 7, 3, 3
+ createvobject 45, 13, 12, 8, 3, 3
+ createvobject 22, 20, 3, 2, 3, 1
+ createvobject 23, 20, 6, 2, 3, 1
+ createvobject 34, 20, 7, 2, 3, 1
+ createvobject 46, 24, 8, 2, 3, 1
+ createvobject 48, 24, 11, 2, 3, 1
+ createvobject 11, 25, 3, 9, 3, 2
+ createvobject 35, 26, 4, 9, 3, 2
+ createvobject 17, 27, 5, 9, 3, 2
+ createvobject 41, 28, 9, 9, 3, 2
+ createvobject 38, 29, 10, 9, 3, 2
+ createvobject 83, 30, 11, 9, 3, 2
+ return
+
+LinkContestRoom1_EventScript_15FA70:: @ 815FA70
+ createvobject 45, 0, 2, 3, 3, 4
+ createvobject 66, 1, 2, 4, 3, 4
+ createvobject 55, 2, 2, 7, 3, 4
+ createvobject 12, 3, 2, 8, 3, 4
+ createvobject 39, 4, 1, 3, 3, 4
+ createvobject 34, 6, 1, 5, 3, 4
+ createvobject 26, 7, 1, 6, 3, 4
+ createvobject 48, 9, 1, 8, 3, 4
+ createvobject 5, 10, 12, 3, 3, 3
+ createvobject 20, 11, 12, 4, 3, 3
+ createvobject 24, 12, 12, 7, 3, 3
+ createvobject 45, 13, 12, 8, 3, 3
+ createvobject 50, 14, 13, 3, 3, 3
+ createvobject 52, 15, 13, 4, 3, 3
+ createvobject 65, 17, 13, 6, 3, 3
+ createvobject 83, 18, 13, 7, 3, 3
+ createvobject 116, 19, 13, 8, 3, 3
+ createvobject 25, 20, 3, 2, 3, 1
+ createvobject 31, 21, 6, 2, 3, 1
+ createvobject 33, 22, 7, 2, 3, 1
+ createvobject 46, 24, 11, 2, 3, 1
+ createvobject 49, 25, 3, 9, 3, 2
+ createvobject 35, 26, 4, 9, 3, 2
+ createvobject 48, 27, 5, 9, 3, 2
+ createvobject 41, 28, 9, 9, 3, 2
+ createvobject 38, 29, 10, 9, 3, 2
+ createvobject 83, 30, 11, 9, 3, 2
+ return
+
+LinkContestRoom1_EventScript_15FB64:: @ 815FB64
+ switch VAR_CONTEST_LOCATION
+ case 1, LinkContestRoom1_EventScript_15FBA1
+ case 2, LinkContestRoom1_EventScript_15FBAD
+ case 3, LinkContestRoom1_EventScript_15FBB9
+ case 4, LinkContestRoom1_EventScript_15FBC5
+ case 5, LinkContestRoom1_EventScript_15FBD1
+ return
+
+LinkContestRoom1_EventScript_15FBA1:: @ 815FBA1
+ incrementgamestat GAME_STAT_ENTERED_CONTEST
+ warp MAP_VERDANTURF_TOWN_CONTEST_LOBBY, 255, 5, 4
+ waitstate
+ end
+
+LinkContestRoom1_EventScript_15FBAD:: @ 815FBAD
+ incrementgamestat GAME_STAT_ENTERED_CONTEST
+ warp MAP_FALLARBOR_TOWN_CONTEST_LOBBY, 255, 5, 4
+ waitstate
+ end
+
+LinkContestRoom1_EventScript_15FBB9:: @ 815FBB9
+ incrementgamestat GAME_STAT_ENTERED_CONTEST
+ warp MAP_SLATEPORT_CITY_CONTEST_LOBBY, 255, 5, 4
+ waitstate
+ end
+
+LinkContestRoom1_EventScript_15FBC5:: @ 815FBC5
+ incrementgamestat GAME_STAT_ENTERED_CONTEST
+ warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 255, 6, 4
+ waitstate
+ end
+
+LinkContestRoom1_EventScript_15FBD1:: @ 815FBD1
+ warp MAP_LILYCOVE_CITY_CONTEST_LOBBY, 255, 7, 4
+ waitstate
+ end
+
+FallarborTown_ContestLobby_EventScript_15FBDB:: @ 815FBDB
+LilycoveCity_ContestLobby_EventScript_15FBDB:: @ 815FBDB
+SlateportCity_ContestLobby_EventScript_15FBDB:: @ 815FBDB
+VerdanturfTown_ContestLobby_EventScript_15FBDB:: @ 815FBDB
+ checkplayergender
+ compare RESULT, 0
+ goto_if_eq FallarborTown_ContestLobby_EventScript_15FBF3
+ compare RESULT, 1
+ goto_if_eq FallarborTown_ContestLobby_EventScript_15FBF9
+ return
+
+FallarborTown_ContestLobby_EventScript_15FBF3:: @ 815FBF3
+ setvar VAR_OBJ_GFX_ID_3, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
+ return
+
+FallarborTown_ContestLobby_EventScript_15FBF9:: @ 815FBF9
+ setvar VAR_OBJ_GFX_ID_3, EVENT_OBJ_GFX_RIVAL_MAY_NORMAL
+ return
diff --git a/data/maps/VerdanturfTown/scripts.inc b/data/maps/VerdanturfTown/scripts.inc
new file mode 100644
index 000000000..c8adf85c3
--- /dev/null
+++ b/data/maps/VerdanturfTown/scripts.inc
@@ -0,0 +1,63 @@
+VerdanturfTown_MapScripts:: @ 814E854
+ map_script 3, VerdanturfTown_MapScript1_14E85A
+ .byte 0
+
+VerdanturfTown_MapScript1_14E85A:: @ 814E85A
+ setflag FLAG_VISITED_VERDANTURF_TOWN
+ setvar VAR_LINK_CONTEST_ROOM_STATE, 0
+ setflag FLAG_HIDE_CONTEST_REPORTER_VERDANTURF
+ end
+
+VerdanturfTown_EventScript_14E866:: @ 814E866
+ lock
+ faceplayer
+ goto_if_set FLAG_RUSTURF_TUNNEL_OPENED, VerdanturfTown_EventScript_14E885
+ msgbox VerdanturfTown_Text_16CAEB, 4
+ applymovement 2, VerdanturfTown_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+VerdanturfTown_EventScript_14E885:: @ 814E885
+ msgbox VerdanturfTown_Text_16CBCE, 4
+ applymovement 2, VerdanturfTown_Movement_1A083D
+ waitmovement 0
+ release
+ end
+
+VerdanturfTown_EventScript_14E899:: @ 814E899
+ msgbox VerdanturfTown_Text_16CC24, 2
+ end
+
+VerdanturfTown_EventScript_14E8A2:: @ 814E8A2
+ msgbox VerdanturfTown_Text_16CCD0, 2
+ end
+
+VerdanturfTown_EventScript_14E8AB:: @ 814E8AB
+ lock
+ faceplayer
+ goto_if_set FLAG_RUSTURF_TUNNEL_OPENED, VerdanturfTown_EventScript_14E8C0
+ msgbox VerdanturfTown_Text_16CD4D, 4
+ release
+ end
+
+VerdanturfTown_EventScript_14E8C0:: @ 814E8C0
+ msgbox VerdanturfTown_Text_16CE30, 4
+ release
+ end
+
+VerdanturfTown_EventScript_14E8CA:: @ 814E8CA
+ msgbox VerdanturfTown_Text_16CEC0, 3
+ end
+
+VerdanturfTown_EventScript_14E8D3:: @ 814E8D3
+ msgbox VerdanturfTown_Text_16CF0D, 3
+ end
+
+VerdanturfTown_EventScript_14E8DC:: @ 814E8DC
+ msgbox VerdanturfTown_Text_16CF1B, 3
+ end
+
+VerdanturfTown_EventScript_14E8E5:: @ 814E8E5
+ msgbox VerdanturfTown_Text_16CF6D, 3
+ end
diff --git a/data/maps/VerdanturfTown_ContestHall/scripts.inc b/data/maps/VerdanturfTown_ContestHall/scripts.inc
new file mode 100644
index 000000000..380385a88
--- /dev/null
+++ b/data/maps/VerdanturfTown_ContestHall/scripts.inc
@@ -0,0 +1,20 @@
+VerdanturfTown_ContestHall_MapScripts:: @ 8153E95
+ .byte 0
+
+ .byte 0 @ XXX
+
+VerdanturfTown_ContestHall_EventScript_153E97:: @ 8153E97
+ msgbox VerdanturfTown_ContestHall_Text_177FB4, 2
+ end
+
+VerdanturfTown_ContestHall_EventScript_153EA0:: @ 8153EA0
+ msgbox VerdanturfTown_ContestHall_Text_178091, 2
+ end
+
+VerdanturfTown_ContestHall_EventScript_153EA9:: @ 8153EA9
+ msgbox VerdanturfTown_ContestHall_Text_178120, 2
+ end
+
+VerdanturfTown_ContestHall_EventScript_153EB2:: @ 8153EB2
+ msgbox VerdanturfTown_ContestHall_Text_1781A5, 3
+ end
diff --git a/data/maps/VerdanturfTown_ContestLobby/scripts.inc b/data/maps/VerdanturfTown_ContestLobby/scripts.inc
new file mode 100644
index 000000000..32661485d
--- /dev/null
+++ b/data/maps/VerdanturfTown_ContestLobby/scripts.inc
@@ -0,0 +1,128 @@
+VerdanturfTown_ContestLobby_MapScripts:: @ 8153D6A
+ map_script 3, VerdanturfTown_ContestLobby_MapScript1_153D70
+ .byte 0
+
+VerdanturfTown_ContestLobby_MapScript1_153D70:: @ 8153D70
+ call VerdanturfTown_ContestLobby_EventScript_1AE188
+ end
+
+VerdanturfTown_ContestLobby_EventScript_153D76:: @ 8153D76
+ setvar VAR_SPECIAL_B, 5
+ setvar CONTEST_RANK, 0
+ call VerdanturfTown_ContestLobby_EventScript_1A4E92
+ call VerdanturfTown_ContestLobby_EventScript_153DA1
+ special SetContestTrainerGfxIds
+ call VerdanturfTown_ContestLobby_EventScript_15FBDB
+ setvar VAR_CONTEST_LOCATION, 1
+ warp MAP_LINK_CONTEST_ROOM1, 255, 7, 5
+ waitstate
+ end
+
+VerdanturfTown_ContestLobby_EventScript_153DA1:: @ 8153DA1
+ lockall
+ applymovement 1, VerdanturfTown_ContestLobby_Movement_153E25
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 4, 2, 545, 1
+ setmetatile 4, 3, 609, 1
+ special DrawWholeMapView
+ applymovement 1, VerdanturfTown_ContestLobby_Movement_153E28
+ waitmovement 0
+ playse SE_HASHI
+ setmetatile 4, 2, 721, 1
+ setmetatile 4, 3, 729, 1
+ special DrawWholeMapView
+ delay 20
+ applymovement 1, VerdanturfTown_ContestLobby_Movement_153E35
+ waitmovement 0
+ applymovement 255, VerdanturfTown_ContestLobby_Movement_153E23
+ waitmovement 0
+ msgbox VerdanturfTown_ContestLobby_Text_1A6832, 4
+ closemessage
+ applymovement 1, VerdanturfTown_ContestLobby_Movement_153E2C
+ applymovement 255, VerdanturfTown_ContestLobby_Movement_153E19
+ waitmovement 0
+ releaseall
+ return
+
+VerdanturfTown_ContestLobby_Movement_153E19:: @ 8153E19
+ walk_left
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+VerdanturfTown_ContestLobby_Movement_153E23:: @ 8153E23
+ walk_in_place_fastest_left
+ end_movement
+
+VerdanturfTown_ContestLobby_Movement_153E25:: @ 8153E25
+ walk_left
+ walk_in_place_fastest_down
+ end_movement
+
+VerdanturfTown_ContestLobby_Movement_153E28:: @ 8153E28
+ walk_down
+ walk_down
+ walk_in_place_fastest_up
+ end_movement
+
+VerdanturfTown_ContestLobby_Movement_153E2C:: @ 8153E2C
+ walk_left
+ walk_left
+ walk_left
+ walk_up
+ walk_up
+ walk_up
+ delay_8
+ set_invisible
+ end_movement
+
+VerdanturfTown_ContestLobby_Movement_153E35:: @ 8153E35
+ walk_in_place_fastest_right
+ end_movement
+
+VerdanturfTown_ContestLobby_EventScript_153E37:: @ 8153E37
+ lockall
+ fadescreen 1
+ drawcontestwinner 1
+ releaseall
+ end
+
+VerdanturfTown_ContestLobby_EventScript_153E3E:: @ 8153E3E
+ msgbox VerdanturfTown_ContestLobby_Text_177D6C, 2
+ end
+
+VerdanturfTown_ContestLobby_EventScript_153E47:: @ 8153E47
+ lock
+ faceplayer
+ goto_if_set FLAG_RECEIVED_TM45, VerdanturfTown_ContestLobby_EventScript_153E76
+ msgbox VerdanturfTown_ContestLobby_Text_177DEC, 4
+ giveitem_std ITEM_TM45_ATTRACT
+ compare RESULT, 0
+ goto_if_eq VerdanturfTown_ContestLobby_EventScript_1A029B
+ setflag FLAG_RECEIVED_TM45
+ release
+ end
+
+VerdanturfTown_ContestLobby_EventScript_153E76:: @ 8153E76
+ msgbox VerdanturfTown_ContestLobby_Text_177E98, 4
+ release
+ end
+
+VerdanturfTown_ContestLobby_EventScript_153E80:: @ 8153E80
+ msgbox VerdanturfTown_ContestLobby_Text_177ECD, 2
+ end
+
+VerdanturfTown_ContestLobby_EventScript_153E89:: @ 8153E89
+ lockall
+ special ShowBerryBlenderRecordWindow
+ waitbuttonpress
+ erasebox 0, 0, 29, 19
+ releaseall
+ end
diff --git a/data/maps/VerdanturfTown_FriendshipRatersHouse/scripts.inc b/data/maps/VerdanturfTown_FriendshipRatersHouse/scripts.inc
new file mode 100644
index 000000000..ed60ec1c7
--- /dev/null
+++ b/data/maps/VerdanturfTown_FriendshipRatersHouse/scripts.inc
@@ -0,0 +1,63 @@
+VerdanturfTown_FriendshipRatersHouse_MapScripts:: @ 815402F
+ .byte 0
+
+VerdanturfTown_FriendshipRatersHouse_EventScript_154030:: @ 8154030
+ lock
+ faceplayer
+ msgbox VerdanturfTown_FriendshipRatersHouse_Text_178A9C, 4
+ specialvar RESULT, GetLeadMonFriendshipScore
+ switch RESULT
+ case 0, VerdanturfTown_FriendshipRatersHouse_EventScript_154093
+ case 1, VerdanturfTown_FriendshipRatersHouse_EventScript_15409D
+ case 2, VerdanturfTown_FriendshipRatersHouse_EventScript_1540A7
+ case 3, VerdanturfTown_FriendshipRatersHouse_EventScript_1540B1
+ case 4, VerdanturfTown_FriendshipRatersHouse_EventScript_1540BB
+ case 5, VerdanturfTown_FriendshipRatersHouse_EventScript_1540C5
+ case 6, VerdanturfTown_FriendshipRatersHouse_EventScript_1540CF
+ release
+ end
+
+VerdanturfTown_FriendshipRatersHouse_EventScript_154093:: @ 8154093
+ msgbox VerdanturfTown_FriendshipRatersHouse_Text_178C90, 4
+ release
+ end
+
+VerdanturfTown_FriendshipRatersHouse_EventScript_15409D:: @ 815409D
+ msgbox VerdanturfTown_FriendshipRatersHouse_Text_178C39, 4
+ release
+ end
+
+VerdanturfTown_FriendshipRatersHouse_EventScript_1540A7:: @ 81540A7
+ msgbox VerdanturfTown_FriendshipRatersHouse_Text_178BFA, 4
+ release
+ end
+
+VerdanturfTown_FriendshipRatersHouse_EventScript_1540B1:: @ 81540B1
+ msgbox VerdanturfTown_FriendshipRatersHouse_Text_178BC4, 4
+ release
+ end
+
+VerdanturfTown_FriendshipRatersHouse_EventScript_1540BB:: @ 81540BB
+ msgbox VerdanturfTown_FriendshipRatersHouse_Text_178B82, 4
+ release
+ end
+
+VerdanturfTown_FriendshipRatersHouse_EventScript_1540C5:: @ 81540C5
+ msgbox VerdanturfTown_FriendshipRatersHouse_Text_178B43, 4
+ release
+ end
+
+VerdanturfTown_FriendshipRatersHouse_EventScript_1540CF:: @ 81540CF
+ msgbox VerdanturfTown_FriendshipRatersHouse_Text_178AF2, 4
+ release
+ end
+
+VerdanturfTown_FriendshipRatersHouse_EventScript_1540D9:: @ 81540D9
+ lock
+ faceplayer
+ waitse
+ playmoncry SPECIES_PIKACHU, 0
+ msgbox VerdanturfTown_FriendshipRatersHouse_Text_178CFD, 4
+ waitmoncry
+ release
+ end
diff --git a/data/maps/VerdanturfTown_House/scripts.inc b/data/maps/VerdanturfTown_House/scripts.inc
new file mode 100644
index 000000000..45a22ae93
--- /dev/null
+++ b/data/maps/VerdanturfTown_House/scripts.inc
@@ -0,0 +1,10 @@
+VerdanturfTown_House_MapScripts:: @ 81540EC
+ .byte 0
+
+VerdanturfTown_House_EventScript_1540ED:: @ 81540ED
+ msgbox VerdanturfTown_House_Text_178D11, 2
+ end
+
+VerdanturfTown_House_EventScript_1540F6:: @ 81540F6
+ msgbox VerdanturfTown_House_Text_178D8E, 2
+ end
diff --git a/data/maps/VerdanturfTown_Mart/scripts.inc b/data/maps/VerdanturfTown_Mart/scripts.inc
new file mode 100644
index 000000000..db72de227
--- /dev/null
+++ b/data/maps/VerdanturfTown_Mart/scripts.inc
@@ -0,0 +1,41 @@
+VerdanturfTown_Mart_MapScripts:: @ 8153EBB
+ .byte 0
+
+VerdanturfTown_Mart_EventScript_153EBC:: @ 8153EBC
+ lock
+ faceplayer
+ message VerdanturfTown_Mart_Text_1A0BE4
+ waitmessage
+ pokemart VerdanturfTown_Mart_Items
+ msgbox VerdanturfTown_Mart_Text_1A0C02, 4
+ release
+ end
+
+ .align 2
+VerdanturfTown_Mart_Items:: @ 8153ED4
+ .2byte ITEM_GREAT_BALL
+ .2byte ITEM_NEST_BALL
+ .2byte ITEM_SUPER_POTION
+ .2byte ITEM_ANTIDOTE
+ .2byte ITEM_PARALYZE_HEAL
+ .2byte ITEM_AWAKENING
+ .2byte ITEM_BURN_HEAL
+ .2byte ITEM_ICE_HEAL
+ .2byte ITEM_REPEL
+ .2byte ITEM_X_SPECIAL
+ .2byte ITEM_FLUFFY_TAIL
+ .2byte ITEM_NONE
+ release
+ end
+
+VerdanturfTown_Mart_EventScript_153EEE:: @ 8153EEE
+ msgbox VerdanturfTown_Mart_Text_1781C9, 2
+ end
+
+VerdanturfTown_Mart_EventScript_153EF7:: @ 8153EF7
+ msgbox VerdanturfTown_Mart_Text_178240, 2
+ end
+
+VerdanturfTown_Mart_EventScript_153F00:: @ 8153F00
+ msgbox VerdanturfTown_Mart_Text_1782C0, 2
+ end
diff --git a/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc b/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc
new file mode 100644
index 000000000..956a28ac5
--- /dev/null
+++ b/data/maps/VerdanturfTown_PokemonCenter_1F/scripts.inc
@@ -0,0 +1,25 @@
+VerdanturfTown_PokemonCenter_1F_MapScripts:: @ 8153F09
+ map_script 3, VerdanturfTown_PokemonCenter_1F_MapScript1_153F0F
+ .byte 0
+
+VerdanturfTown_PokemonCenter_1F_MapScript1_153F0F:: @ 8153F0F
+ setrespawn 18
+ call VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B
+ end
+
+PacifidlogTown_PokemonCenter_1F_EventScript_153F18:: @ 8153F18
+VerdanturfTown_PokemonCenter_1F_EventScript_153F18:: @ 8153F18
+ setvar VAR_SPECIAL_B, 1
+ call VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B
+ waitmessage
+ waitbuttonpress
+ release
+ end
+
+VerdanturfTown_PokemonCenter_1F_EventScript_153F26:: @ 8153F26
+ msgbox VerdanturfTown_PokemonCenter_1F_Text_17831D, 2
+ end
+
+VerdanturfTown_PokemonCenter_1F_EventScript_153F2F:: @ 8153F2F
+ msgbox VerdanturfTown_PokemonCenter_1F_Text_178389, 2
+ end
diff --git a/data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc b/data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc
new file mode 100644
index 000000000..ec52d45a7
--- /dev/null
+++ b/data/maps/VerdanturfTown_PokemonCenter_2F/scripts.inc
@@ -0,0 +1,19 @@
+VerdanturfTown_PokemonCenter_2F_MapScripts:: @ 8153F38
+ map_script 2, VerdanturfTown_PokemonCenter_2F_MapScript2_1A3D88
+ map_script 4, VerdanturfTown_PokemonCenter_2F_MapScript2_1A3D03
+ map_script 1, VerdanturfTown_PokemonCenter_2F_MapScript1_1A3D32
+ .byte 0
+
+PacifidlogTown_PokemonCenter_2F_EventScript_153F48:: @ 8153F48
+VerdanturfTown_PokemonCenter_2F_EventScript_153F48:: @ 8153F48
+ call VerdanturfTown_PokemonCenter_2F_EventScript_1A3EA6
+ end
+
+PacifidlogTown_PokemonCenter_2F_EventScript_153F4E:: @ 8153F4E
+VerdanturfTown_PokemonCenter_2F_EventScript_153F4E:: @ 8153F4E
+ call VerdanturfTown_PokemonCenter_2F_EventScript_1A40CC
+ end
+
+VerdanturfTown_PokemonCenter_2F_EventScript_153F54:: @ 8153F54
+ call VerdanturfTown_PokemonCenter_2F_EventScript_1A41FB
+ end
diff --git a/data/maps/VerdanturfTown_WandasHouse/scripts.inc b/data/maps/VerdanturfTown_WandasHouse/scripts.inc
new file mode 100644
index 000000000..4410beaba
--- /dev/null
+++ b/data/maps/VerdanturfTown_WandasHouse/scripts.inc
@@ -0,0 +1,83 @@
+VerdanturfTown_WandasHouse_MapScripts:: @ 8153F5A
+ .byte 0
+
+VerdanturfTown_WandasHouse_EventScript_153F5B:: @ 8153F5B
+ lock
+ faceplayer
+ goto_if_set FLAG_WALLY_SPEECH, VerdanturfTown_WandasHouse_EventScript_153F73
+ msgbox VerdanturfTown_WandasHouse_Text_1783F6, 4
+ setflag FLAG_WALLY_SPEECH
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_153F73:: @ 8153F73
+ msgbox VerdanturfTown_WandasHouse_Text_178521, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_153F7D:: @ 8153F7D
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_WALLY_VICTORY_ROAD, VerdanturfTown_WandasHouse_EventScript_153FA5
+ goto_if_set FLAG_DEFEATED_LAVARIDGE_GYM, VerdanturfTown_WandasHouse_EventScript_153F9B
+ msgbox VerdanturfTown_WandasHouse_Text_17859A, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_153F9B:: @ 8153F9B
+ msgbox VerdanturfTown_WandasHouse_Text_178683, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_153FA5:: @ 8153FA5
+ msgbox VerdanturfTown_WandasHouse_Text_1786B5, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_153FAF:: @ 8153FAF
+ msgbox VerdanturfTown_WandasHouse_Text_17886A, 2
+ end
+
+VerdanturfTown_WandasHouse_EventScript_153FB8:: @ 8153FB8
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_LAVARIDGE_GYM, VerdanturfTown_WandasHouse_EventScript_153FE0
+ goto_if_set FLAG_DEFEATED_WALLY_MAUVILLE, VerdanturfTown_WandasHouse_EventScript_153FD6
+ msgbox VerdanturfTown_WandasHouse_Text_1787FB, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_153FD6:: @ 8153FD6
+ msgbox VerdanturfTown_WandasHouse_Text_178739, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_153FE0:: @ 8153FE0
+ msgbox VerdanturfTown_WandasHouse_Text_1787FB, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_153FEA:: @ 8153FEA
+ lock
+ faceplayer
+ goto_if_set FLAG_DEFEATED_WALLY_VICTORY_ROAD, VerdanturfTown_WandasHouse_EventScript_154025
+ goto_if_set FLAG_DEFEATED_LAVARIDGE_GYM, VerdanturfTown_WandasHouse_EventScript_15401B
+ goto_if_set FLAG_RUSTURF_TUNNEL_OPENED, VerdanturfTown_WandasHouse_EventScript_154011
+ msgbox VerdanturfTown_WandasHouse_Text_1788B1, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_154011:: @ 8154011
+ msgbox VerdanturfTown_WandasHouse_Text_178983, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_15401B:: @ 815401B
+ msgbox VerdanturfTown_WandasHouse_Text_1789DD, 4
+ release
+ end
+
+VerdanturfTown_WandasHouse_EventScript_154025:: @ 8154025
+ msgbox VerdanturfTown_WandasHouse_Text_178A47, 4
+ release
+ end
diff --git a/data/maps/VictoryRoad_1F/scripts.inc b/data/maps/VictoryRoad_1F/scripts.inc
new file mode 100644
index 000000000..045189759
--- /dev/null
+++ b/data/maps/VictoryRoad_1F/scripts.inc
@@ -0,0 +1,119 @@
+VictoryRoad_1F_MapScripts:: @ 815DE83
+ map_script 3, VictoryRoad_1F_MapScript1_15DE89
+ .byte 0
+
+VictoryRoad_1F_MapScript1_15DE89:: @ 815DE89
+ call_if_set FLAG_DEFEATED_WALLY_VICTORY_ROAD, VictoryRoad_1F_EventScript_15DE93
+ end
+
+VictoryRoad_1F_EventScript_15DE93:: @ 815DE93
+ setflag FLAG_HIDE_WALLY_BATTLE_VICTORY_ROAD
+ return
+
+VictoryRoad_1F_EventScript_15DE97:: @ 815DE97
+ lockall
+ addobject 4
+ applymovement 4, VictoryRoad_1F_Movement_15DF07
+ waitmovement 0
+ goto VictoryRoad_1F_EventScript_15DED3
+ end
+
+VictoryRoad_1F_EventScript_15DEAB:: @ 815DEAB
+ lockall
+ addobject 4
+ applymovement 4, VictoryRoad_1F_Movement_15DF13
+ waitmovement 0
+ goto VictoryRoad_1F_EventScript_15DED3
+ end
+
+VictoryRoad_1F_EventScript_15DEBF:: @ 815DEBF
+ lockall
+ addobject 4
+ applymovement 4, VictoryRoad_1F_Movement_15DF1E
+ waitmovement 0
+ goto VictoryRoad_1F_EventScript_15DED3
+ end
+
+VictoryRoad_1F_EventScript_15DED3:: @ 815DED3
+ applymovement 255, VictoryRoad_1F_Movement_1A083F
+ waitmovement 0
+ msgbox VictoryRoad_1F_Text_19782B, 4
+ trainerbattle 3, OPPONENT_WALLY_1, 0, VictoryRoad_1F_Text_197943
+ msgbox VictoryRoad_1F_Text_197967, 4
+ clearflag FLAG_HIDE_WALLY_BATTLE_VICTORY_ROAD
+ moveobjectoffscreen 4
+ setflag FLAG_DEFEATED_WALLY_VICTORY_ROAD
+ setvar VAR_VICTORY_ROAD_1F_STATE, 1
+ releaseall
+ end
+
+VictoryRoad_1F_Movement_15DF07:: @ 815DF07
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_right
+ walk_right
+ end_movement
+
+VictoryRoad_1F_Movement_15DF13:: @ 815DF13
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_right
+ walk_right
+ end_movement
+
+VictoryRoad_1F_Movement_15DF1E:: @ 815DF1E
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_up
+ walk_right
+ walk_right
+ end_movement
+
+VictoryRoad_1F_EventScript_15DF28:: @ 815DF28
+ msgbox VictoryRoad_1F_Text_197967, 2
+ end
+
+VictoryRoad_1F_EventScript_15DF31:: @ 815DF31
+ trainerbattle 0, OPPONENT_WALLY_3, 0, VictoryRoad_1F_Text_1979BA, VictoryRoad_1F_Text_197A23
+ specialvar RESULT, ShouldTryRematchBattle
+ compare RESULT, 1
+ goto_if_eq VictoryRoad_1F_EventScript_15DF58
+ msgbox VictoryRoad_1F_Text_197A47, 6
+ end
+
+VictoryRoad_1F_EventScript_15DF58:: @ 815DF58
+ trainerbattle 5, OPPONENT_WALLY_3, 0, VictoryRoad_1F_Text_1979BA, VictoryRoad_1F_Text_197A23
+ msgbox VictoryRoad_1F_Text_197A47, 6
+ end
+
+VictoryRoad_1F_EventScript_15DF6F:: @ 815DF6F
+ trainerbattle 0, OPPONENT_EDGAR, 0, VictoryRoad_1F_Text_197AD1, VictoryRoad_1F_Text_197B1A
+ msgbox VictoryRoad_1F_Text_197B36, 6
+ end
+
+VictoryRoad_1F_EventScript_15DF86:: @ 815DF86
+ trainerbattle 0, OPPONENT_ALBERT, 0, VictoryRoad_1F_Text_197B99, VictoryRoad_1F_Text_197BE1
+ msgbox VictoryRoad_1F_Text_197BF7, 6
+ end
+
+VictoryRoad_1F_EventScript_15DF9D:: @ 815DF9D
+ trainerbattle 0, OPPONENT_HOPE, 0, VictoryRoad_1F_Text_197C45, VictoryRoad_1F_Text_197C8D
+ msgbox VictoryRoad_1F_Text_197CAF, 6
+ end
diff --git a/data/maps/VictoryRoad_B1F/scripts.inc b/data/maps/VictoryRoad_B1F/scripts.inc
new file mode 100644
index 000000000..e07cd4286
--- /dev/null
+++ b/data/maps/VictoryRoad_B1F/scripts.inc
@@ -0,0 +1,17 @@
+VictoryRoad_B1F_MapScripts:: @ 815DFB4
+ .byte 0
+
+VictoryRoad_B1F_EventScript_15DFB5:: @ 815DFB5
+ trainerbattle 0, OPPONENT_SAMUEL, 0, VictoryRoad_B1F_Text_197CE9, VictoryRoad_B1F_Text_197D42
+ msgbox VictoryRoad_B1F_Text_197D5B, 6
+ end
+
+VictoryRoad_B1F_EventScript_15DFCC:: @ 815DFCC
+ trainerbattle 0, OPPONENT_SHANNON, 0, VictoryRoad_B1F_Text_197D98, VictoryRoad_B1F_Text_197DE8
+ msgbox VictoryRoad_B1F_Text_197E13, 6
+ end
+
+VictoryRoad_B1F_EventScript_15DFE3:: @ 815DFE3
+ trainerbattle 0, OPPONENT_MICHELLE, 0, VictoryRoad_B1F_Text_197E5D, VictoryRoad_B1F_Text_197EA6
+ msgbox VictoryRoad_B1F_Text_197EB6, 6
+ end
diff --git a/data/maps/VictoryRoad_B2F/scripts.inc b/data/maps/VictoryRoad_B2F/scripts.inc
new file mode 100644
index 000000000..6b8fe2569
--- /dev/null
+++ b/data/maps/VictoryRoad_B2F/scripts.inc
@@ -0,0 +1,22 @@
+VictoryRoad_B2F_MapScripts:: @ 815DFFA
+ .byte 0
+
+VictoryRoad_B2F_EventScript_15DFFB:: @ 815DFFB
+ trainerbattle 0, OPPONENT_VITO, 0, VictoryRoad_B2F_Text_197EF2, VictoryRoad_B2F_Text_197F46
+ msgbox VictoryRoad_B2F_Text_197F71, 6
+ end
+
+VictoryRoad_B2F_EventScript_15E012:: @ 815E012
+ trainerbattle 0, OPPONENT_OWEN, 0, VictoryRoad_B2F_Text_197FE5, VictoryRoad_B2F_Text_19802B
+ msgbox VictoryRoad_B2F_Text_198047, 6
+ end
+
+VictoryRoad_B2F_EventScript_15E029:: @ 815E029
+ trainerbattle 0, OPPONENT_CAROLINE, 0, VictoryRoad_B2F_Text_198089, VictoryRoad_B2F_Text_1980AD
+ msgbox VictoryRoad_B2F_Text_1980C8, 6
+ end
+
+VictoryRoad_B2F_EventScript_15E040:: @ 815E040
+ trainerbattle 0, OPPONENT_JULIE, 0, VictoryRoad_B2F_Text_198121, VictoryRoad_B2F_Text_1981A3
+ msgbox VictoryRoad_B2F_Text_1981BA, 6
+ end