summaryrefslogtreecommitdiff
path: root/data/scripts/maps
diff options
context:
space:
mode:
Diffstat (limited to 'data/scripts/maps')
-rw-r--r--data/scripts/maps/AbandonedShip_CaptainsOffice.inc4
-rw-r--r--data/scripts/maps/AbandonedShip_Corridors_B1F.inc14
-rw-r--r--data/scripts/maps/AbandonedShip_Deck.inc2
-rw-r--r--data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc56
-rw-r--r--data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc60
-rw-r--r--data/scripts/maps/AncientTomb.inc34
-rw-r--r--data/scripts/maps/AquaHideout_1F.inc4
-rw-r--r--data/scripts/maps/AquaHideout_B1F.inc2
-rw-r--r--data/scripts/maps/AquaHideout_B2F.inc4
-rw-r--r--data/scripts/maps/BattleTower_Corridor.inc8
-rw-r--r--data/scripts/maps/BattleTower_Lobby.inc30
-rw-r--r--data/scripts/maps/BattleTower_Outside.inc6
-rw-r--r--data/scripts/maps/CaveOfOrigin_1F.inc2
-rw-r--r--data/scripts/maps/CaveOfOrigin_B1F.inc2
-rw-r--r--data/scripts/maps/CaveOfOrigin_B2F.inc2
-rw-r--r--data/scripts/maps/CaveOfOrigin_B3F.inc2
-rw-r--r--data/scripts/maps/CaveOfOrigin_B4F.inc34
-rw-r--r--data/scripts/maps/DesertRuins.inc34
-rw-r--r--data/scripts/maps/DewfordTown.inc58
-rw-r--r--data/scripts/maps/DewfordTown_Gym.inc34
-rw-r--r--data/scripts/maps/DewfordTown_Hall.inc6
-rw-r--r--data/scripts/maps/DewfordTown_House1.inc4
-rw-r--r--data/scripts/maps/DewfordTown_House2.inc6
-rw-r--r--data/scripts/maps/DewfordTown_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/EverGrandeCity.inc4
-rw-r--r--data/scripts/maps/EverGrandeCity_ChampionsRoom.inc6
-rw-r--r--data/scripts/maps/EverGrandeCity_DrakesRoom.inc6
-rw-r--r--data/scripts/maps/EverGrandeCity_GlaciasRoom.inc6
-rw-r--r--data/scripts/maps/EverGrandeCity_HallOfFame.inc8
-rw-r--r--data/scripts/maps/EverGrandeCity_PhoebesRoom.inc6
-rw-r--r--data/scripts/maps/EverGrandeCity_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/EverGrandeCity_PokemonLeague.inc14
-rw-r--r--data/scripts/maps/EverGrandeCity_SidneysRoom.inc6
-rw-r--r--data/scripts/maps/FallarborTown.inc12
-rw-r--r--data/scripts/maps/FallarborTown_ContestLobby.inc12
-rw-r--r--data/scripts/maps/FallarborTown_House1.inc16
-rw-r--r--data/scripts/maps/FallarborTown_House2.inc6
-rw-r--r--data/scripts/maps/FallarborTown_Mart.inc4
-rw-r--r--data/scripts/maps/FallarborTown_PokemonCenter_1F.inc6
-rw-r--r--data/scripts/maps/FieryPath.inc2
-rw-r--r--data/scripts/maps/FortreeCity.inc12
-rw-r--r--data/scripts/maps/FortreeCity_DecorationShop.inc4
-rw-r--r--data/scripts/maps/FortreeCity_Gym.inc16
-rw-r--r--data/scripts/maps/FortreeCity_House1.inc12
-rw-r--r--data/scripts/maps/FortreeCity_House2.inc10
-rw-r--r--data/scripts/maps/FortreeCity_House4.inc18
-rw-r--r--data/scripts/maps/FortreeCity_House5.inc4
-rw-r--r--data/scripts/maps/FortreeCity_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/GraniteCave_1F.inc6
-rw-r--r--data/scripts/maps/GraniteCave_B1F.inc2
-rw-r--r--data/scripts/maps/GraniteCave_StevensRoom.inc6
-rw-r--r--data/scripts/maps/InsideOfTruck.inc28
-rw-r--r--data/scripts/maps/IslandCave.inc48
-rw-r--r--data/scripts/maps/JaggedPass.inc2
-rw-r--r--data/scripts/maps/LavaridgeTown.inc20
-rw-r--r--data/scripts/maps/LavaridgeTown_Gym_1F.inc18
-rw-r--r--data/scripts/maps/LavaridgeTown_HerbShop.inc6
-rw-r--r--data/scripts/maps/LavaridgeTown_House.inc4
-rw-r--r--data/scripts/maps/LavaridgeTown_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/LilycoveCity.inc128
-rw-r--r--data/scripts/maps/LilycoveCity_ContestLobby.inc70
-rw-r--r--data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc4
-rw-r--r--data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc6
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc4
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc26
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc14
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStore_5F.inc8
-rw-r--r--data/scripts/maps/LilycoveCity_Harbor.inc18
-rw-r--r--data/scripts/maps/LilycoveCity_House1.inc4
-rw-r--r--data/scripts/maps/LilycoveCity_House2.inc6
-rw-r--r--data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc46
-rw-r--r--data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc6
-rw-r--r--data/scripts/maps/LittlerootTown.inc46
-rw-r--r--data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc10
-rw-r--r--data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc2
-rw-r--r--data/scripts/maps/LittlerootTown_MaysHouse_1F.inc14
-rw-r--r--data/scripts/maps/LittlerootTown_MaysHouse_2F.inc10
-rw-r--r--data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc18
-rw-r--r--data/scripts/maps/MagmaHideout_B1F.inc2
-rw-r--r--data/scripts/maps/MauvilleCity.inc42
-rw-r--r--data/scripts/maps/MauvilleCity_BikeShop.inc20
-rw-r--r--data/scripts/maps/MauvilleCity_GameCorner.inc74
-rw-r--r--data/scripts/maps/MauvilleCity_Gym.inc84
-rw-r--r--data/scripts/maps/MauvilleCity_House1.inc6
-rw-r--r--data/scripts/maps/MauvilleCity_House2.inc8
-rw-r--r--data/scripts/maps/MauvilleCity_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/MeteorFalls_1F_1R.inc6
-rw-r--r--data/scripts/maps/MossdeepCity.inc18
-rw-r--r--data/scripts/maps/MossdeepCity_GameCorner_1F.inc4
-rw-r--r--data/scripts/maps/MossdeepCity_GameCorner_B1F.inc4
-rw-r--r--data/scripts/maps/MossdeepCity_Gym.inc102
-rw-r--r--data/scripts/maps/MossdeepCity_House1.inc2
-rw-r--r--data/scripts/maps/MossdeepCity_House2.inc8
-rw-r--r--data/scripts/maps/MossdeepCity_House3.inc6
-rw-r--r--data/scripts/maps/MossdeepCity_House4.inc6
-rw-r--r--data/scripts/maps/MossdeepCity_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc8
-rw-r--r--data/scripts/maps/MossdeepCity_StevensHouse.inc26
-rw-r--r--data/scripts/maps/MtChimney.inc12
-rw-r--r--data/scripts/maps/MtPyre_1F.inc6
-rw-r--r--data/scripts/maps/MtPyre_2F.inc2
-rw-r--r--data/scripts/maps/MtPyre_Summit.inc22
-rw-r--r--data/scripts/maps/NewMauville_Entrance.inc26
-rw-r--r--data/scripts/maps/NewMauville_Inside.inc198
-rw-r--r--data/scripts/maps/OldaleTown.inc22
-rw-r--r--data/scripts/maps/OldaleTown_Mart.inc4
-rw-r--r--data/scripts/maps/OldaleTown_PokemonCenter_1F.inc6
-rw-r--r--data/scripts/maps/PacifidlogTown.inc4
-rw-r--r--data/scripts/maps/PacifidlogTown_House2.inc30
-rw-r--r--data/scripts/maps/PacifidlogTown_House3.inc8
-rw-r--r--data/scripts/maps/PacifidlogTown_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/PetalburgCity.inc2
-rw-r--r--data/scripts/maps/PetalburgCity_Gym.inc100
-rw-r--r--data/scripts/maps/PetalburgCity_Mart.inc2
-rw-r--r--data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/PetalburgCity_WallysHouse.inc20
-rw-r--r--data/scripts/maps/PetalburgWoods.inc8
-rw-r--r--data/scripts/maps/Route101.inc10
-rw-r--r--data/scripts/maps/Route103.inc6
-rw-r--r--data/scripts/maps/Route104.inc52
-rw-r--r--data/scripts/maps/Route104_MrBrineysHouse.inc24
-rw-r--r--data/scripts/maps/Route104_PrettyPetalFlowerShop.inc30
-rw-r--r--data/scripts/maps/Route104_Prototype.inc8
-rw-r--r--data/scripts/maps/Route105.inc6
-rw-r--r--data/scripts/maps/Route109.inc34
-rw-r--r--data/scripts/maps/Route109_SeashoreHouse.inc18
-rw-r--r--data/scripts/maps/Route110.inc2
-rw-r--r--data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc4
-rw-r--r--data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc4
-rw-r--r--data/scripts/maps/Route110_TrickHouseEnd.inc22
-rw-r--r--data/scripts/maps/Route110_TrickHouseEntrance.inc62
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle1.inc2
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle2.inc16
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle3.inc356
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle7.inc120
-rw-r--r--data/scripts/maps/Route111.inc34
-rw-r--r--data/scripts/maps/Route111_OldLadysRestStop.inc2
-rw-r--r--data/scripts/maps/Route111_WinstrateFamilysHouse.inc10
-rw-r--r--data/scripts/maps/Route113.inc2
-rw-r--r--data/scripts/maps/Route113_GlassWorkshop.inc40
-rw-r--r--data/scripts/maps/Route114.inc16
-rw-r--r--data/scripts/maps/Route114_FossilManiacsHouse.inc8
-rw-r--r--data/scripts/maps/Route114_FossilManiacsTunnel.inc2
-rw-r--r--data/scripts/maps/Route114_LanettesHouse.inc12
-rw-r--r--data/scripts/maps/Route116.inc16
-rw-r--r--data/scripts/maps/Route116_TunnelersRestHouse.inc4
-rw-r--r--data/scripts/maps/Route117.inc2
-rw-r--r--data/scripts/maps/Route117_PokemonDayCare.inc2
-rw-r--r--data/scripts/maps/Route118.inc6
-rw-r--r--data/scripts/maps/Route119.inc10
-rw-r--r--data/scripts/maps/Route119_House.inc4
-rw-r--r--data/scripts/maps/Route119_WeatherInstitute_2F.inc12
-rw-r--r--data/scripts/maps/Route120.inc62
-rw-r--r--data/scripts/maps/Route121_SafariZoneEntrance.inc2
-rw-r--r--data/scripts/maps/Route123.inc6
-rw-r--r--data/scripts/maps/Route123_BerryMastersHouse.inc48
-rw-r--r--data/scripts/maps/Route124.inc2
-rw-r--r--data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc14
-rw-r--r--data/scripts/maps/Route125.inc2
-rw-r--r--data/scripts/maps/Route126.inc2
-rw-r--r--data/scripts/maps/Route127.inc2
-rw-r--r--data/scripts/maps/Route128.inc6
-rw-r--r--data/scripts/maps/Route130.inc32
-rw-r--r--data/scripts/maps/Route131.inc2
-rw-r--r--data/scripts/maps/RustboroCity.inc38
-rw-r--r--data/scripts/maps/RustboroCity_CuttersHouse.inc6
-rw-r--r--data/scripts/maps/RustboroCity_DevonCorp_1F.inc18
-rw-r--r--data/scripts/maps/RustboroCity_DevonCorp_2F.inc28
-rw-r--r--data/scripts/maps/RustboroCity_DevonCorp_3F.inc28
-rw-r--r--data/scripts/maps/RustboroCity_Flat2_1F.inc4
-rw-r--r--data/scripts/maps/RustboroCity_Flat2_2F.inc6
-rw-r--r--data/scripts/maps/RustboroCity_Gym.inc16
-rw-r--r--data/scripts/maps/RustboroCity_House1.inc6
-rw-r--r--data/scripts/maps/RustboroCity_House3.inc4
-rw-r--r--data/scripts/maps/RustboroCity_Mart.inc4
-rw-r--r--data/scripts/maps/RustboroCity_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/RustboroCity_PokemonSchool.inc6
-rw-r--r--data/scripts/maps/RusturfTunnel.inc26
-rw-r--r--data/scripts/maps/SSTidalCorridor.inc18
-rw-r--r--data/scripts/maps/SSTidalRooms.inc6
-rw-r--r--data/scripts/maps/ScorchedSlab.inc2
-rw-r--r--data/scripts/maps/SeafloorCavern_Room9.inc36
-rw-r--r--data/scripts/maps/SealedChamber_InnerRoom.inc18
-rw-r--r--data/scripts/maps/SealedChamber_OuterRoom.inc42
-rw-r--r--data/scripts/maps/SecretBase_YellowCave4.inc2
-rw-r--r--data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc30
-rw-r--r--data/scripts/maps/ShoalCave_LowTideInnerRoom.inc78
-rw-r--r--data/scripts/maps/ShoalCave_LowTideLowerRoom.inc18
-rw-r--r--data/scripts/maps/ShoalCave_LowTideStairsRoom.inc12
-rw-r--r--data/scripts/maps/SkyPillar_2F.inc2
-rw-r--r--data/scripts/maps/SkyPillar_4F.inc2
-rw-r--r--data/scripts/maps/SkyPillar_Entrance.inc2
-rw-r--r--data/scripts/maps/SkyPillar_Top.inc12
-rw-r--r--data/scripts/maps/SlateportCity.inc34
-rw-r--r--data/scripts/maps/SlateportCity_ContestHall.inc6
-rw-r--r--data/scripts/maps/SlateportCity_ContestLobby.inc16
-rw-r--r--data/scripts/maps/SlateportCity_Harbor.inc38
-rw-r--r--data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc10
-rw-r--r--data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc10
-rw-r--r--data/scripts/maps/SlateportCity_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/SlateportCity_PokemonFanClub.inc60
-rw-r--r--data/scripts/maps/SlateportCity_SternsShipyard_1F.inc12
-rw-r--r--data/scripts/maps/SootopolisCity.inc58
-rw-r--r--data/scripts/maps/SootopolisCity_Gym_1F.inc32
-rw-r--r--data/scripts/maps/SootopolisCity_House1.inc10
-rw-r--r--data/scripts/maps/SootopolisCity_House4.inc4
-rw-r--r--data/scripts/maps/SootopolisCity_House6.inc8
-rw-r--r--data/scripts/maps/SootopolisCity_House8.inc4
-rw-r--r--data/scripts/maps/SootopolisCity_Mart.inc8
-rw-r--r--data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc12
-rw-r--r--data/scripts/maps/SouthernIsland_Exterior.inc4
-rw-r--r--data/scripts/maps/SouthernIsland_Interior.inc18
-rw-r--r--data/scripts/maps/Underwater_SeafloorCavern.inc32
-rw-r--r--data/scripts/maps/Underwater_SealedChamber.inc2
-rw-r--r--data/scripts/maps/UnknownMap_25_34.inc2
-rw-r--r--data/scripts/maps/VerdanturfTown.inc8
-rw-r--r--data/scripts/maps/VerdanturfTown_ContestLobby.inc16
-rw-r--r--data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc4
-rw-r--r--data/scripts/maps/VerdanturfTown_PokemonCenter_1F.inc4
-rw-r--r--data/scripts/maps/VerdanturfTown_WandasHouse.inc18
-rw-r--r--data/scripts/maps/VictoryRoad_1F.inc8
221 files changed, 2081 insertions, 2081 deletions
diff --git a/data/scripts/maps/AbandonedShip_CaptainsOffice.inc b/data/scripts/maps/AbandonedShip_CaptainsOffice.inc
index eb912028a..2430ba4af 100644
--- a/data/scripts/maps/AbandonedShip_CaptainsOffice.inc
+++ b/data/scripts/maps/AbandonedShip_CaptainsOffice.inc
@@ -4,12 +4,12 @@ AbandonedShip_CaptainsOffice_MapScripts:: @ 815EAF4
AbandonedShip_CaptainsOffice_EventScript_15EAF5:: @ 815EAF5
lock
faceplayer
- checkflag 294
+ checkflag FLAG_EXCHANGED_SCANNER
goto_if_eq AbandonedShip_CaptainsOffice_EventScript_15EB2D
checkitem ITEM_SCANNER, 1
compare RESULT, 1
goto_if_eq AbandonedShip_CaptainsOffice_EventScript_15EB23
- checkflag 1078
+ checkflag FLAG_ITEM_ABANDONED_SHIP_HIDDEN_FLOOR_ROOMS_2
goto_if_eq AbandonedShip_CaptainsOffice_EventScript_15EB2D
msgbox AbandonedShip_CaptainsOffice_Text_198C85, 4
release
diff --git a/data/scripts/maps/AbandonedShip_Corridors_B1F.inc b/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
index de3ba5442..c27951abb 100644
--- a/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
+++ b/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
@@ -8,18 +8,18 @@ AbandonedShip_Corridors_B1F_MapScript1_15E99A:: @ 815E99A
end
AbandonedShip_Corridors_B1F_MapScript1_15E9A3:: @ 815E9A3
- checkflag 239
+ checkflag FLAG_USED_STORAGE_KEY
call_if 0, AbandonedShip_Corridors_B1F_EventScript_15E9B6
- checkflag 239
+ checkflag FLAG_USED_STORAGE_KEY
call_if 1, AbandonedShip_Corridors_B1F_EventScript_15E9C0
end
AbandonedShip_Corridors_B1F_EventScript_15E9B6:: @ 815E9B6
- setmaptile 11, 4, 563, 1
+ setmetatile 11, 4, 563, 1
return
AbandonedShip_Corridors_B1F_EventScript_15E9C0:: @ 815E9C0
- setmaptile 11, 4, 555, 1
+ setmetatile 11, 4, 555, 1
return
AbandonedShip_Corridors_B1F_EventScript_15E9CA:: @ 815E9CA
@@ -28,15 +28,15 @@ AbandonedShip_Corridors_B1F_EventScript_15E9CA:: @ 815E9CA
AbandonedShip_Corridors_B1F_EventScript_15E9D3:: @ 815E9D3
lockall
- checkflag 239
+ checkflag FLAG_USED_STORAGE_KEY
goto_if_eq 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 21
- removeitem ITEM_STORAGE_KEY, 1
- setflag 239
+ takeitem ITEM_STORAGE_KEY, 1
+ setflag FLAG_USED_STORAGE_KEY
call AbandonedShip_Corridors_B1F_EventScript_15E9C0
special DrawWholeMapView
releaseall
diff --git a/data/scripts/maps/AbandonedShip_Deck.inc b/data/scripts/maps/AbandonedShip_Deck.inc
index 49f837744..68d872f01 100644
--- a/data/scripts/maps/AbandonedShip_Deck.inc
+++ b/data/scripts/maps/AbandonedShip_Deck.inc
@@ -3,5 +3,5 @@ AbandonedShip_Deck_MapScripts:: @ 815E95A
.byte 0
AbandonedShip_Deck_MapScript1_15E960:: @ 815E960
- setflag 2110
+ setflag FLAG_LANDMARK_ABANDONED_SHIP
end
diff --git a/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc b/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
index e6c143091..35e86543b 100644
--- a/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
+++ b/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
@@ -8,67 +8,67 @@ AbandonedShip_HiddenFloorCorridors_MapScript1_15EB51:: @ 815EB51
end
AbandonedShip_HiddenFloorCorridors_MapScript1_15EB5A:: @ 815EB5A
- checkflag 240
+ checkflag FLAG_USED_ROOM_1_KEY
call_if 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBCB
- checkflag 241
+ checkflag FLAG_USED_ROOM_2_KEY
call_if 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBD5
- checkflag 242
+ checkflag FLAG_USED_ROOM_4_KEY
call_if 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBDF
- checkflag 243
+ checkflag FLAG_USED_ROOM_6_KEY
call_if 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9
- checkflag 240
+ checkflag FLAG_USED_ROOM_1_KEY
call_if 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
- checkflag 241
+ checkflag FLAG_USED_ROOM_2_KEY
call_if 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
- checkflag 242
+ checkflag FLAG_USED_ROOM_4_KEY
call_if 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
- checkflag 243
+ checkflag FLAG_USED_ROOM_6_KEY
call_if 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
end
AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3:: @ 815EBA3
- setmaptile 3, 8, 555, 1
+ setmetatile 3, 8, 555, 1
return
AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD:: @ 815EBAD
- setmaptile 6, 8, 555, 1
+ setmetatile 6, 8, 555, 1
return
AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7:: @ 815EBB7
- setmaptile 3, 3, 538, 0
+ setmetatile 3, 3, 538, 0
return
AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1:: @ 815EBC1
- setmaptile 9, 3, 538, 0
+ setmetatile 9, 3, 538, 0
return
AbandonedShip_HiddenFloorCorridors_EventScript_15EBCB:: @ 815EBCB
- setmaptile 3, 8, 563, 1
+ setmetatile 3, 8, 563, 1
return
AbandonedShip_HiddenFloorCorridors_EventScript_15EBD5:: @ 815EBD5
- setmaptile 6, 8, 563, 1
+ setmetatile 6, 8, 563, 1
return
AbandonedShip_HiddenFloorCorridors_EventScript_15EBDF:: @ 815EBDF
- setmaptile 3, 3, 564, 0
+ setmetatile 3, 3, 564, 0
return
AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9:: @ 815EBE9
- setmaptile 9, 3, 564, 0
+ setmetatile 9, 3, 564, 0
return
AbandonedShip_HiddenFloorCorridors_EventScript_15EBF3:: @ 815EBF3
lockall
- checkflag 240
+ checkflag FLAG_USED_ROOM_1_KEY
goto_if_eq 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 21
- removeitem ITEM_ROOM_1_KEY, 1
- setflag 240
+ takeitem ITEM_ROOM_1_KEY, 1
+ setflag FLAG_USED_ROOM_1_KEY
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
special DrawWholeMapView
releaseall
@@ -76,15 +76,15 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EBF3:: @ 815EBF3
AbandonedShip_HiddenFloorCorridors_EventScript_15EC2A:: @ 815EC2A
lockall
- checkflag 241
+ checkflag FLAG_USED_ROOM_2_KEY
goto_if_eq 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 21
- removeitem ITEM_ROOM_2_KEY, 1
- setflag 241
+ takeitem ITEM_ROOM_2_KEY, 1
+ setflag FLAG_USED_ROOM_2_KEY
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
special DrawWholeMapView
releaseall
@@ -92,15 +92,15 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC2A:: @ 815EC2A
AbandonedShip_HiddenFloorCorridors_EventScript_15EC61:: @ 815EC61
lockall
- checkflag 242
+ checkflag FLAG_USED_ROOM_4_KEY
goto_if_eq 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 21
- removeitem ITEM_ROOM_4_KEY, 1
- setflag 242
+ takeitem ITEM_ROOM_4_KEY, 1
+ setflag FLAG_USED_ROOM_4_KEY
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
special DrawWholeMapView
releaseall
@@ -108,15 +108,15 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC61:: @ 815EC61
AbandonedShip_HiddenFloorCorridors_EventScript_15EC98:: @ 815EC98
lockall
- checkflag 243
+ checkflag FLAG_USED_ROOM_6_KEY
goto_if_eq 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 21
- removeitem ITEM_ROOM_6_KEY, 1
- setflag 243
+ takeitem ITEM_ROOM_6_KEY, 1
+ setflag FLAG_USED_ROOM_6_KEY
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
special DrawWholeMapView
releaseall
diff --git a/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc b/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc
index eb5c1dccd..c1e77a8c7 100644
--- a/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc
+++ b/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc
@@ -39,9 +39,9 @@ AbandonedShip_HiddenFloorRooms_EventScript_15ED95:: @ 815ED95
AbandonedShip_HiddenFloorRooms_EventScript_15ED9B:: @ 815ED9B
delay 20
- setfieldeffect 0, 10
- setfieldeffect 1, 10
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 10
+ setfieldeffectargument 1, 10
+ setfieldeffectargument 2, 0
dofieldeffect 54
specialvar RESULT, sub_810F4D4
compare RESULT, 0
@@ -69,13 +69,13 @@ AbandonedShip_HiddenFloorRooms_EventScript_15EDEA:: @ 815EDEA
AbandonedShip_HiddenFloorRooms_EventScript_15EDEB:: @ 815EDEB
delay 20
- setfieldeffect 0, 8
- setfieldeffect 1, 5
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 8
+ setfieldeffectargument 1, 5
+ setfieldeffectargument 2, 0
dofieldeffect 54
- setfieldeffect 0, 11
- setfieldeffect 1, 3
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 11
+ setfieldeffectargument 1, 3
+ setfieldeffectargument 2, 0
dofieldeffect 54
specialvar RESULT, sub_810F4FC
compare RESULT, 0
@@ -86,17 +86,17 @@ AbandonedShip_HiddenFloorRooms_EventScript_15EDEB:: @ 815EDEB
AbandonedShip_HiddenFloorRooms_EventScript_15EE23:: @ 815EE23
delay 20
- setfieldeffect 0, 16
- setfieldeffect 1, 3
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 16
+ setfieldeffectargument 1, 3
+ setfieldeffectargument 2, 0
dofieldeffect 54
- setfieldeffect 0, 25
- setfieldeffect 1, 2
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 25
+ setfieldeffectargument 1, 2
+ setfieldeffectargument 2, 0
dofieldeffect 54
- setfieldeffect 0, 24
- setfieldeffect 1, 6
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 24
+ setfieldeffectargument 1, 6
+ setfieldeffectargument 2, 0
dofieldeffect 54
specialvar RESULT, sub_810F4B0
compare RESULT, 0
@@ -109,30 +109,30 @@ AbandonedShip_HiddenFloorRooms_EventScript_15EE6A:: @ 815EE6A
end
AbandonedShip_HiddenFloorRooms_EventScript_15EE6B:: @ 815EE6B
- setfieldeffect 0, 42
- setfieldeffect 1, 10
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 42
+ setfieldeffectargument 1, 10
+ setfieldeffectargument 2, 0
dofieldeffect 54
return
AbandonedShip_HiddenFloorRooms_EventScript_15EE7B:: @ 815EE7B
- setfieldeffect 0, 20
- setfieldeffect 1, 5
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 20
+ setfieldeffectargument 1, 5
+ setfieldeffectargument 2, 0
dofieldeffect 54
return
AbandonedShip_HiddenFloorRooms_EventScript_15EE8B:: @ 815EE8B
- setfieldeffect 0, 1
- setfieldeffect 1, 12
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 1
+ setfieldeffectargument 1, 12
+ setfieldeffectargument 2, 0
dofieldeffect 54
return
AbandonedShip_HiddenFloorRooms_EventScript_15EE9B:: @ 815EE9B
- setfieldeffect 0, 1
- setfieldeffect 1, 2
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 1
+ setfieldeffectargument 1, 2
+ setfieldeffectargument 2, 0
dofieldeffect 54
return
diff --git a/data/scripts/maps/AncientTomb.inc b/data/scripts/maps/AncientTomb.inc
index 188691e73..b849f41ba 100644
--- a/data/scripts/maps/AncientTomb.inc
+++ b/data/scripts/maps/AncientTomb.inc
@@ -5,7 +5,7 @@ AncientTomb_MapScripts:: @ 815EFBE
.byte 0
AncientTomb_MapScript1_15EFCE:: @ 815EFCE
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, AncientTomb_EventScript_15EFD8
end
@@ -14,29 +14,29 @@ AncientTomb_EventScript_15EFD8:: @ 815EFD8
return
AncientTomb_MapScript1_15EFDC:: @ 815EFDC
- setflag 2137
+ setflag FLAG_LANDMARK_ANCIENT_TOMB
end
AncientTomb_MapScript1_15EFE0:: @ 815EFE0
- checkflag 2130
+ checkflag FLAG_SYS_BRAILLE_FLY
call_if 0, AncientTomb_EventScript_15EFEA
end
AncientTomb_EventScript_15EFEA:: @ 815EFEA
- setmaptile 7, 19, 553, 1
- setmaptile 8, 19, 553, 1
- setmaptile 9, 19, 553, 1
- setmaptile 7, 20, 565, 1
- setmaptile 8, 20, 565, 1
- setmaptile 9, 20, 565, 1
+ 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
- checkflag 2130
+ checkflag FLAG_SYS_BRAILLE_FLY
goto_if_eq AncientTomb_EventScript_15F038
braillemessage AncientTomb_Braille_1C552E
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -49,7 +49,7 @@ AncientTomb_EventScript_15F038:: @ 815F038
AncientTomb_EventScript_15F042:: @ 815F042
lockall
braillemessage AncientTomb_Braille_1C552E
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -58,14 +58,14 @@ AncientTomb_EventScript_15F050:: @ 815F050
lock
faceplayer
waitse
- playpokecry SPECIES_REGISTEEL, 2
+ playmoncry SPECIES_REGISTEEL, 2
delay 40
- waitpokecry
+ waitmoncry
setwildbattle SPECIES_REGISTEEL, 40, ITEM_NONE
- setflag 937
- setflag 2145
+ setflag FLAG_HIDE_REGISTEEL
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
special ScrSpecial_StartRegiBattle
waitstate
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
release
end
diff --git a/data/scripts/maps/AquaHideout_1F.inc b/data/scripts/maps/AquaHideout_1F.inc
index 2eb2ae7e9..028a0ee7b 100644
--- a/data/scripts/maps/AquaHideout_1F.inc
+++ b/data/scripts/maps/AquaHideout_1F.inc
@@ -10,7 +10,7 @@ AquaHideout_1F_EventScript_15D7CE:: @ 815D7CE
MagmaHideout_1F_EventScript_15D7CE:: @ 815D7CE
lock
faceplayer
- checkflag 111
+ checkflag FLAG_MT_PYRE_ORB_STOLEN
goto_if_eq AquaHideout_1F_EventScript_15D7E3
msgbox AquaHideout_1F_Text_196AFD, 4
release
@@ -25,7 +25,7 @@ AquaHideout_1F_EventScript_15D7ED:: @ 815D7ED
MagmaHideout_1F_EventScript_15D7ED:: @ 815D7ED
lock
faceplayer
- checkflag 111
+ checkflag FLAG_MT_PYRE_ORB_STOLEN
goto_if_eq AquaHideout_1F_EventScript_15D802
msgbox AquaHideout_1F_Text_196C83, 4
release
diff --git a/data/scripts/maps/AquaHideout_B1F.inc b/data/scripts/maps/AquaHideout_B1F.inc
index 0001d7574..82d0c10c5 100644
--- a/data/scripts/maps/AquaHideout_B1F.inc
+++ b/data/scripts/maps/AquaHideout_B1F.inc
@@ -4,7 +4,7 @@ AquaHideout_B1F_MapScripts:: @ 815D831
.byte 0
AquaHideout_B1F_MapScript1_15D83C:: @ 815D83C
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, AquaHideout_B1F_EventScript_15D846
end
diff --git a/data/scripts/maps/AquaHideout_B2F.inc b/data/scripts/maps/AquaHideout_B2F.inc
index 230d0e2db..a587fcc92 100644
--- a/data/scripts/maps/AquaHideout_B2F.inc
+++ b/data/scripts/maps/AquaHideout_B2F.inc
@@ -64,8 +64,8 @@ AquaHideout_B2F_EventScript_15D8FD:: @ 815D8FD
applymovement 0x8008, AquaHideout_B2F_Movement_1A0839
waitmovement 0
msgbox AquaHideout_B2F_Text_1971AE, 4
- setflag 112
- setflag 852
+ setflag FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE
+ setflag FLAG_HIDE_GRUNTS_LILYCOVE
release
end
diff --git a/data/scripts/maps/BattleTower_Corridor.inc b/data/scripts/maps/BattleTower_Corridor.inc
index ac97aa14b..828d975fc 100644
--- a/data/scripts/maps/BattleTower_Corridor.inc
+++ b/data/scripts/maps/BattleTower_Corridor.inc
@@ -6,13 +6,13 @@ BattleTower_Corridor_MapScripts:: @ 8160845
BattleTower_Corridor_MapScript1_160850:: @ 8160850
compare 0x8006, 1
goto_if_eq BattleTower_Corridor_EventScript_16086E
- setmaptile 12, 0, 519, 0
- setmaptile 12, 1, 527, 0
+ setmetatile 12, 0, 519, 0
+ setmetatile 12, 1, 527, 0
end
BattleTower_Corridor_EventScript_16086E:: @ 816086E
- setmaptile 15, 0, 519, 0
- setmaptile 15, 1, 527, 0
+ setmetatile 15, 0, 519, 0
+ setmetatile 15, 1, 527, 0
end
BattleTower_Corridor_MapScript2_160881:: @ 8160881
diff --git a/data/scripts/maps/BattleTower_Lobby.inc b/data/scripts/maps/BattleTower_Lobby.inc
index 5a0e6105c..69db45ede 100644
--- a/data/scripts/maps/BattleTower_Lobby.inc
+++ b/data/scripts/maps/BattleTower_Lobby.inc
@@ -13,14 +13,14 @@ BattleTower_Lobby_MapScript1_160293:: @ 8160293
BattleTower_Lobby_EventScript_16029C:: @ 816029C
setvar 0x8004, 10
special sub_8135668
- checkflag 238
+ checkflag FLAG_RECEIVED_GOLD_SHIELD
goto_if_eq BattleTower_Lobby_EventScript_1602E4
- checkflag 237
+ checkflag FLAG_RECEIVED_SILVER_SHIELD
goto_if_eq BattleTower_Lobby_EventScript_1602CD
specialvar 0x8007, sub_810F404
compare 0x8007, 50
goto_if 0, BattleTower_Lobby_EventScript_1602E4
- clearflag 941
+ clearflag FLAG_HIDE_AWARD_MAN_BATTLE_TOWER
special sub_810F8FC
return
@@ -28,12 +28,12 @@ BattleTower_Lobby_EventScript_1602CD:: @ 81602CD
specialvar 0x8007, sub_810F404
compare 0x8007, 100
goto_if 0, BattleTower_Lobby_EventScript_1602E4
- clearflag 941
+ clearflag FLAG_HIDE_AWARD_MAN_BATTLE_TOWER
special sub_810F8FC
return
BattleTower_Lobby_EventScript_1602E4:: @ 81602E4
- setflag 941
+ setflag FLAG_HIDE_AWARD_MAN_BATTLE_TOWER
return
BattleTower_Lobby_MapScript1_1602E8:: @ 81602E8
@@ -379,7 +379,7 @@ BattleTower_Lobby_EventScript_16071E:: @ 816071E
BattleTower_Lobby_EventScript_160727:: @ 8160727
lockall
special ShowBattleTowerRecords
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -387,16 +387,16 @@ BattleTower_Lobby_EventScript_160727:: @ 8160727
BattleTower_Lobby_EventScript_160733:: @ 8160733
lock
faceplayer
- checkflag 238
+ checkflag FLAG_RECEIVED_GOLD_SHIELD
goto_if_eq BattleTower_Lobby_EventScript_1607C5
- checkflag 237
+ checkflag FLAG_RECEIVED_SILVER_SHIELD
goto_if_eq BattleTower_Lobby_EventScript_160773
msgbox BattleTower_Lobby_Text_19A9EE, 4
- setvar 0x8008, 42
- givedecoration 42
+ setvar 0x8008, DECOR_SILVER_SHIELD
+ givedecoration_std DECOR_SILVER_SHIELD
compare RESULT, 0
goto_if_eq BattleTower_Lobby_EventScript_1607AF
- setflag 237
+ setflag FLAG_RECEIVED_SILVER_SHIELD
msgbox BattleTower_Lobby_Text_19ABAA, 4
release
end
@@ -406,17 +406,17 @@ BattleTower_Lobby_EventScript_160773:: @ 8160773
compare RESULT, 100
goto_if 0, BattleTower_Lobby_EventScript_1607C5
msgbox BattleTower_Lobby_Text_19AAC4, 4
- setvar 0x8008, 43
- givedecoration 43
+ setvar 0x8008, DECOR_GOLD_SHIELD
+ givedecoration_std DECOR_GOLD_SHIELD
compare RESULT, 0
goto_if_eq BattleTower_Lobby_EventScript_1607AF
- setflag 238
+ setflag FLAG_RECEIVED_GOLD_SHIELD
msgbox BattleTower_Lobby_Text_19ABAA, 4
release
end
BattleTower_Lobby_EventScript_1607AF:: @ 81607AF
- getdecorname 1, 0x8008
+ bufferdecorationname 1, 0x8008
msgbox BattleTower_Lobby_Text_1A0CEF, 4
msgbox BattleTower_Lobby_Text_19ABED, 4
release
diff --git a/data/scripts/maps/BattleTower_Outside.inc b/data/scripts/maps/BattleTower_Outside.inc
index a37310d16..e0aba0b9c 100644
--- a/data/scripts/maps/BattleTower_Outside.inc
+++ b/data/scripts/maps/BattleTower_Outside.inc
@@ -3,9 +3,9 @@ BattleTower_Outside_MapScripts:: @ 8160156
.byte 0
BattleTower_Outside_MapScript1_16015C:: @ 816015C
- setflag 2120
+ setflag FLAG_LANDMARK_BATTLE_TOWER
setvar 0x40bc, 0
- setflag 918
+ setflag FLAG_HIDE_REPORTER_BATTLE_TOWER
end
BattleTower_Outside_EventScript_160168:: @ 8160168
@@ -67,7 +67,7 @@ BattleTower_Outside_EventScript_160232:: @ 8160232
applymovement LAST_TALKED, BattleTower_Outside_Movement_1A0845
waitmovement 0
delay 30
- hideobject 5, 26, 4
+ hideobjectat 5, MAP_BATTLE_TOWER_OUTSIDE
setvar 0x8004, 4
call BattleTower_Outside_EventScript_1A047C
return
diff --git a/data/scripts/maps/CaveOfOrigin_1F.inc b/data/scripts/maps/CaveOfOrigin_1F.inc
index 3ad36cc18..6411aad49 100644
--- a/data/scripts/maps/CaveOfOrigin_1F.inc
+++ b/data/scripts/maps/CaveOfOrigin_1F.inc
@@ -3,6 +3,6 @@ CaveOfOrigin_1F_MapScripts:: @ 815DD6C
.byte 0
CaveOfOrigin_1F_MapScript1_15DD72:: @ 815DD72
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
call_if 1, CaveOfOrigin_1F_EventScript_1A04E3
end
diff --git a/data/scripts/maps/CaveOfOrigin_B1F.inc b/data/scripts/maps/CaveOfOrigin_B1F.inc
index c3bbdd45f..b8d4149b6 100644
--- a/data/scripts/maps/CaveOfOrigin_B1F.inc
+++ b/data/scripts/maps/CaveOfOrigin_B1F.inc
@@ -3,6 +3,6 @@ CaveOfOrigin_B1F_MapScripts:: @ 815DD7C
.byte 0
CaveOfOrigin_B1F_MapScript1_15DD82:: @ 815DD82
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
call_if 1, CaveOfOrigin_B1F_EventScript_1A04E3
end
diff --git a/data/scripts/maps/CaveOfOrigin_B2F.inc b/data/scripts/maps/CaveOfOrigin_B2F.inc
index fb65de171..9b014d0e9 100644
--- a/data/scripts/maps/CaveOfOrigin_B2F.inc
+++ b/data/scripts/maps/CaveOfOrigin_B2F.inc
@@ -3,6 +3,6 @@ CaveOfOrigin_B2F_MapScripts:: @ 815DD8C
.byte 0
CaveOfOrigin_B2F_MapScript1_15DD92:: @ 815DD92
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
call_if 1, CaveOfOrigin_B2F_EventScript_1A04E3
end
diff --git a/data/scripts/maps/CaveOfOrigin_B3F.inc b/data/scripts/maps/CaveOfOrigin_B3F.inc
index c21b04e91..d6f7bdaf1 100644
--- a/data/scripts/maps/CaveOfOrigin_B3F.inc
+++ b/data/scripts/maps/CaveOfOrigin_B3F.inc
@@ -3,6 +3,6 @@ CaveOfOrigin_B3F_MapScripts:: @ 815DD9C
.byte 0
CaveOfOrigin_B3F_MapScript1_15DDA2:: @ 815DDA2
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
call_if 1, CaveOfOrigin_B3F_EventScript_1A04E3
end
diff --git a/data/scripts/maps/CaveOfOrigin_B4F.inc b/data/scripts/maps/CaveOfOrigin_B4F.inc
index c6c3cd45e..1b5146760 100644
--- a/data/scripts/maps/CaveOfOrigin_B4F.inc
+++ b/data/scripts/maps/CaveOfOrigin_B4F.inc
@@ -4,7 +4,7 @@ CaveOfOrigin_B4F_MapScripts:: @ 815DDAC
.byte 0
CaveOfOrigin_B4F_MapScript1_15DDB7:: @ 815DDB7
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, CaveOfOrigin_B4F_EventScript_15DDC1
end
@@ -19,7 +19,7 @@ CaveOfOrigin_B4F_MapScript1_15DDC5:: @ 815DDC5
setmaplayoutindex 313
.endif
call CaveOfOrigin_B4F_EventScript_1A01B5
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
call_if 1, CaveOfOrigin_B4F_EventScript_1A04E3
end
@@ -38,9 +38,9 @@ CaveOfOrigin_B4F_EventScript_15DDD7:: @ 815DDD7
special WaitWeather
waitstate
playse 209
- setfieldeffect 0, 9
- setfieldeffect 1, 13
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 9
+ setfieldeffectargument 1, 13
+ setfieldeffectargument 2, 0
dofieldeffect 54
waitfieldeffect 54
.ifdef SAPPHIRE
@@ -58,26 +58,26 @@ CaveOfOrigin_B4F_EventScript_15DDD7:: @ 815DDD7
delay 60
setwildbattle SPECIES_GROUDON_OR_KYOGRE, 45, ITEM_NONE
waitse
- playpokecry SPECIES_GROUDON_OR_KYOGRE, 2
+ playmoncry SPECIES_GROUDON_OR_KYOGRE, 2
delay 40
- waitpokecry
- setflag 2145
+ waitmoncry
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
special ScrSpecial_StartGroudonKyogreBattle
waitstate
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar RESULT, sub_810E300
compare RESULT, 1
call_if 1, CaveOfOrigin_B4F_EventScript_15DE73
- setflag 816
- setflag 855
- setflag 856
- clearflag 815
+ 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 0x409b, 1
- setflag 113
- clearflag 854
- clearflag 2090
+ setflag FLAG_LEGENDARY_BATTLE_COMPLETED
+ clearflag FLAG_HIDE_SOOTOPOLIS_RESIDENTS
+ clearflag FLAG_SYS_WEATHER_CTRL
setvar 0x40b9, 2
- clearflag 916
+ clearflag FLAG_HIDE_LEADER_MT_PYRE_SUMMIT
releaseall
end
diff --git a/data/scripts/maps/DesertRuins.inc b/data/scripts/maps/DesertRuins.inc
index 9f6f7b388..7aa56a82d 100644
--- a/data/scripts/maps/DesertRuins.inc
+++ b/data/scripts/maps/DesertRuins.inc
@@ -5,7 +5,7 @@ DesertRuins_MapScripts:: @ 815CAF3
.byte 0
DesertRuins_MapScript1_15CB03:: @ 815CB03
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, DesertRuins_EventScript_15CB0D
end
@@ -14,29 +14,29 @@ DesertRuins_EventScript_15CB0D:: @ 815CB0D
return
DesertRuins_MapScript1_15CB11:: @ 815CB11
- checkflag 2128
+ checkflag FLAG_SYS_BRAILLE_STRENGTH
call_if 0, DesertRuins_EventScript_15CB1B
end
DesertRuins_EventScript_15CB1B:: @ 815CB1B
- setmaptile 7, 19, 553, 1
- setmaptile 8, 19, 553, 1
- setmaptile 9, 19, 553, 1
- setmaptile 7, 20, 565, 1
- setmaptile 8, 20, 565, 1
- setmaptile 9, 20, 565, 1
+ 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 2134
+ setflag FLAG_LANDMARK_DESERT_RUINS
end
DesertRuins_EventScript_15CB56:: @ 815CB56
lockall
- checkflag 2128
+ checkflag FLAG_SYS_BRAILLE_STRENGTH
goto_if_eq DesertRuins_EventScript_15CB6D
braillemessage DesertRuins_Braille_1C54C8
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -49,7 +49,7 @@ DesertRuins_EventScript_15CB6D:: @ 815CB6D
DesertRuins_EventScript_15CB77:: @ 815CB77
lockall
braillemessage DesertRuins_Braille_1C54C8
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -58,14 +58,14 @@ DesertRuins_EventScript_15CB85:: @ 815CB85
lock
faceplayer
waitse
- playpokecry SPECIES_REGIROCK, 2
+ playmoncry SPECIES_REGIROCK, 2
delay 40
- waitpokecry
+ waitmoncry
setwildbattle SPECIES_REGIROCK, 40, ITEM_NONE
- setflag 935
- setflag 2145
+ setflag FLAG_HIDE_REGIROCK
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
special ScrSpecial_StartRegiBattle
waitstate
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
release
end
diff --git a/data/scripts/maps/DewfordTown.inc b/data/scripts/maps/DewfordTown.inc
index 7f8fe6fef..bb1fdeda4 100644
--- a/data/scripts/maps/DewfordTown.inc
+++ b/data/scripts/maps/DewfordTown.inc
@@ -3,13 +3,13 @@ DewfordTown_MapScripts:: @ 814DFF8
.byte 0
DewfordTown_MapScript1_14DFFE:: @ 814DFFE
- setflag 2065
+ setflag FLAG_VISITED_DEWFORD_TOWN
end
DewfordTown_EventScript_14E002:: @ 814E002
lock
faceplayer
- checkflag 189
+ checkflag FLAG_DELIVERED_STEVEN_LETTER
goto_if 0, DewfordTown_EventScript_14E076
message DewfordTown_Text_16B522
waitmessage
@@ -74,7 +74,7 @@ DewfordTown_EventScript_14E0BD:: @ 814E0BD
DewfordTown_EventScript_14E0C6:: @ 814E0C6
lock
faceplayer
- checkflag 257
+ checkflag FLAG_RECEIVED_OLD_ROD
goto_if_eq DewfordTown_EventScript_14E11B
msgbox DewfordTown_Text_16B665, 5
compare RESULT, 1
@@ -85,8 +85,8 @@ DewfordTown_EventScript_14E0C6:: @ 814E0C6
DewfordTown_EventScript_14E0F0:: @ 814E0F0
msgbox DewfordTown_Text_16B6A8, 4
- giveitem ITEM_OLD_ROD
- setflag 257
+ giveitem_std ITEM_OLD_ROD
+ setflag FLAG_RECEIVED_OLD_ROD
msgbox DewfordTown_Text_16B6F9, 4
release
end
@@ -118,30 +118,30 @@ DewfordTown_EventScript_14E147:: @ 814E147
DewfordTown_EventScript_14E151:: @ 814E151
call DewfordTown_EventScript_1A010C
- setobjectpriority 2, 0, 11, 0
- setobjectpriority 255, 0, 11, 0
+ 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
- hideobject 255, 0, 11
+ hideobjectat 255, MAP_DEWFORD_TOWN
call DewfordTown_EventScript_1A02E7
applymovement 4, DewfordTown_Movement_14E293
applymovement 255, DewfordTown_Movement_14E293
waitmovement 0
- showobject 255, 0, 19
+ showobjectat 255, MAP_ROUTE104
call DewfordTown_EventScript_1A02EF
applymovement 255, DewfordTown_Movement_14E405
waitmovement 0
- showobject 255, 0, 19
- clearflag 739
- clearflag 881
- clearflag 742
- setflag 743
- hideobject 4, 0, 11
+ 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 0x408e, 2
- resetobjectpriority 255, 0, 11
+ resetobjectpriority 255, MAP_DEWFORD_TOWN
warp MAP_ROUTE104_MR_BRINEYS_HOUSE, 255, 5, 4
copyvar 0x4096, 0x8008
waitstate
@@ -150,40 +150,40 @@ DewfordTown_EventScript_14E151:: @ 814E151
DewfordTown_EventScript_14E1D8:: @ 814E1D8
call DewfordTown_EventScript_1A010C
- setobjectpriority 2, 0, 11, 0
- setobjectpriority 255, 0, 11, 1
+ 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
- hideobject 255, 0, 11
+ 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
- showobject 255, 0, 24
+ showobjectat 255, MAP_ROUTE109
applymovement 255, DewfordTown_Movement_14E409
waitmovement 0
setobjectxyperm 2, 21, 26
addobject 2
- setobjectpriority 2, 0, 24, 0
+ setobjectpriority 2, MAP_ROUTE109, 0
applymovement 2, DewfordTown_Movement_14E410
waitmovement 0
- clearflag 741
+ clearflag FLAG_HIDE_MR_BRINEY_ROUTE109
addobject 1
- clearflag 744
- setflag 743
- hideobject 4, 0, 11
- checkflag 149
+ clearflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109
+ setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
+ hideobjectat 4, MAP_DEWFORD_TOWN
+ checkflag FLAG_DELIVERED_DEVON_GOODS
call_if 0, DewfordTown_EventScript_14E281
- checkflag 149
+ checkflag FLAG_DELIVERED_DEVON_GOODS
call_if 1, DewfordTown_EventScript_14E28A
closemessage
copyvar 0x4096, 0x8008
- resetobjectpriority 255, 0, 11
- resetobjectpriority 2, 0, 24
+ resetobjectpriority 255, MAP_DEWFORD_TOWN
+ resetobjectpriority 2, MAP_ROUTE109
moveobjectoffscreen 2
release
end
diff --git a/data/scripts/maps/DewfordTown_Gym.inc b/data/scripts/maps/DewfordTown_Gym.inc
index 92776afb1..afd918a96 100644
--- a/data/scripts/maps/DewfordTown_Gym.inc
+++ b/data/scripts/maps/DewfordTown_Gym.inc
@@ -20,23 +20,23 @@ DewfordTown_Gym_EventScript_153071:: @ 8153071
goto DewfordTown_Gym_EventScript_1530AE
DewfordTown_Gym_EventScript_1530AA:: @ 81530AA
- setdarklevel 0
+ setflashradius 0
return
DewfordTown_Gym_EventScript_1530AE:: @ 81530AE
- setdarklevel 1
+ setflashradius 1
return
DewfordTown_Gym_EventScript_1530B2:: @ 81530B2
- setdarklevel 2
+ setflashradius 2
return
DewfordTown_Gym_EventScript_1530B6:: @ 81530B6
- setdarklevel 3
+ setflashradius 3
return
DewfordTown_Gym_EventScript_1530BA:: @ 81530BA
- setdarklevel 4
+ setflashradius 4
return
DewfordTown_Gym_EventScript_1530BE:: @ 81530BE
@@ -57,25 +57,25 @@ DewfordTown_Gym_EventScript_1530F5:: @ 81530F5
DewfordTown_Gym_EventScript_1530F6:: @ 81530F6
playse 35
- animdarklevel 3
+ animateflash 3
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_153101:: @ 8153101
playse 35
- animdarklevel 2
+ animateflash 2
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_15310C:: @ 815310C
playse 35
- animdarklevel 1
+ animateflash 1
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_153117:: @ 8153117
playse 35
- animdarklevel 0
+ animateflash 0
call DewfordTown_Gym_EventScript_153071
return
@@ -100,7 +100,7 @@ DewfordTown_Gym_EventScript_153151:: @ 8153151
DewfordTown_Gym_EventScript_153152:: @ 8153152
trainerbattle 1, OPPONENT_BRAWLY, 0, DewfordTown_Gym_Text_175182, DewfordTown_Gym_Text_175246, DewfordTown_Gym_EventScript_153177
- checkflag 166
+ checkflag FLAG_RECEIVED_TM08
goto_if 0, DewfordTown_Gym_EventScript_1531B5
msgbox DewfordTown_Gym_Text_175412, 4
release
@@ -112,8 +112,8 @@ DewfordTown_Gym_EventScript_153177:: @ 8153177
waitmessage
call DewfordTown_Gym_EventScript_1A02C5
msgbox DewfordTown_Gym_Text_1752E6, 4
- setflag 1204
- setflag 2056
+ setflag FLAG_DEFEATED_DEWFORD_GYM
+ setflag FLAG_BADGE02_GET
addvar 0x4085, 1
compare 0x4085, 6
call_if 1, DewfordTown_Gym_EventScript_1A00FB
@@ -123,11 +123,11 @@ DewfordTown_Gym_EventScript_153177:: @ 8153177
end
DewfordTown_Gym_EventScript_1531B5:: @ 81531B5
- giveitem ITEM_TM08
+ giveitem_std ITEM_TM08
compare RESULT, 0
goto_if_eq DewfordTown_Gym_EventScript_1A029B
msgbox DewfordTown_Gym_Text_1753BF, 4
- setflag 166
+ setflag FLAG_RECEIVED_TM08
release
end
@@ -164,7 +164,7 @@ DewfordTown_Gym_EventScript_153238:: @ 8153238
DewfordTown_Gym_EventScript_15323F:: @ 815323F
lock
faceplayer
- checkflag 1204
+ checkflag FLAG_DEFEATED_DEWFORD_GYM
goto_if_eq DewfordTown_Gym_EventScript_153254
msgbox DewfordTown_Gym_Text_174D98, 4
release
@@ -177,14 +177,14 @@ DewfordTown_Gym_EventScript_153254:: @ 8153254
DewfordTown_Gym_EventScript_15325E:: @ 815325E
lockall
- checkflag 2056
+ checkflag FLAG_BADGE02_GET
goto_if_eq DewfordTown_Gym_EventScript_15327E
goto DewfordTown_Gym_EventScript_153288
end
DewfordTown_Gym_EventScript_15326E:: @ 815326E
lockall
- checkflag 2056
+ checkflag FLAG_BADGE02_GET
goto_if_eq DewfordTown_Gym_EventScript_15327E
goto DewfordTown_Gym_EventScript_153288
end
diff --git a/data/scripts/maps/DewfordTown_Hall.inc b/data/scripts/maps/DewfordTown_Hall.inc
index ea4016147..a3830ebb8 100644
--- a/data/scripts/maps/DewfordTown_Hall.inc
+++ b/data/scripts/maps/DewfordTown_Hall.inc
@@ -252,13 +252,13 @@ DewfordTown_Hall_EventScript_15359D:: @ 815359D
lock
faceplayer
call DewfordTown_Hall_EventScript_1A0102
- checkflag 230
+ checkflag FLAG_RECEIVED_TM36
goto_if_eq DewfordTown_Hall_EventScript_1535D1
msgbox DewfordTown_Hall_Text_175E13, 4
- giveitem ITEM_TM36
+ giveitem_std ITEM_TM36
compare RESULT, 0
goto_if_eq DewfordTown_Hall_EventScript_1A029B
- setflag 230
+ setflag FLAG_RECEIVED_TM36
release
end
diff --git a/data/scripts/maps/DewfordTown_House1.inc b/data/scripts/maps/DewfordTown_House1.inc
index e8897b974..4a112eea2 100644
--- a/data/scripts/maps/DewfordTown_House1.inc
+++ b/data/scripts/maps/DewfordTown_House1.inc
@@ -13,8 +13,8 @@ DewfordTown_House1_EventScript_153001:: @ 8153001
lock
faceplayer
waitse
- playpokecry SPECIES_ZIGZAGOON, 0
+ playmoncry SPECIES_ZIGZAGOON, 0
msgbox DewfordTown_House1_Text_174CC8, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/DewfordTown_House2.inc b/data/scripts/maps/DewfordTown_House2.inc
index befe47404..e704efa50 100644
--- a/data/scripts/maps/DewfordTown_House2.inc
+++ b/data/scripts/maps/DewfordTown_House2.inc
@@ -4,13 +4,13 @@ DewfordTown_House2_MapScripts:: @ 81535DB
DewfordTown_House2_EventScript_1535DC:: @ 81535DC
lock
faceplayer
- checkflag 289
+ checkflag FLAG_RECEIVED_SILK_SCARF
goto_if_eq DewfordTown_House2_EventScript_153615
msgbox DewfordTown_House2_Text_175EFE, 4
- giveitem ITEM_SILK_SCARF
+ giveitem_std ITEM_SILK_SCARF
compare RESULT, 0
goto_if_eq DewfordTown_House2_EventScript_15360B
- setflag 289
+ setflag FLAG_RECEIVED_SILK_SCARF
release
end
diff --git a/data/scripts/maps/DewfordTown_PokemonCenter_1F.inc b/data/scripts/maps/DewfordTown_PokemonCenter_1F.inc
index 70e75492e..c1288078f 100644
--- a/data/scripts/maps/DewfordTown_PokemonCenter_1F.inc
+++ b/data/scripts/maps/DewfordTown_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ DewfordTown_PokemonCenter_1F_MapScripts:: @ 8153014
.byte 0
DewfordTown_PokemonCenter_1F_MapScript1_15301A:: @ 815301A
- sethealplace 15
+ setrespawn 15
call DewfordTown_PokemonCenter_1F_EventScript_19FD1B
end
@@ -11,7 +11,7 @@ DewfordTown_PokemonCenter_1F_EventScript_153023:: @ 8153023
setvar 0x800b, 1
call DewfordTown_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/EverGrandeCity.inc b/data/scripts/maps/EverGrandeCity.inc
index c9768d006..b4fa64cae 100644
--- a/data/scripts/maps/EverGrandeCity.inc
+++ b/data/scripts/maps/EverGrandeCity.inc
@@ -3,7 +3,7 @@ EverGrandeCity_MapScripts:: @ 814D4D5
.byte 0
EverGrandeCity_MapScript1_14D4DB:: @ 814D4DB
- checkflag 2090
+ checkflag FLAG_SYS_WEATHER_CTRL
call_if 1, EverGrandeCity_EventScript_1A02C1
end
@@ -20,6 +20,6 @@ EverGrandeCity_EventScript_14D4F7:: @ 814D4F7
end
EverGrandeCity_EventScript_14D500:: @ 814D500
- setflag 2078
+ setflag FLAG_VISITED_EVER_GRANDE_CITY
setvar 0x4001, 1
end
diff --git a/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc b/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
index b13c930cf..d59476417 100644
--- a/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
@@ -46,8 +46,8 @@ EverGrandeCity_ChampionsRoom_EventScript_15B805:: @ 815B805
EverGrandeCity_ChampionsRoom_EventScript_15B821:: @ 815B821
playse 8
- setmaptile 6, 1, 838, 0
- setmaptile 6, 2, 839, 0
+ setmetatile 6, 1, 838, 0
+ setmetatile 6, 2, 839, 0
special DrawWholeMapView
msgbox EverGrandeCity_ChampionsRoom_Text_1910FE, 4
closemessage
@@ -136,7 +136,7 @@ EverGrandeCity_ChampionsRoom_EventScript_15B8F0:: @ 815B8F0
applymovement 1, EverGrandeCity_ChampionsRoom_Movement_15B9FF
applymovement 255, EverGrandeCity_ChampionsRoom_Movement_15B9E0
waitmovement 0
- setflag 781
+ setflag FLAG_HIDE_PETALBURG_GYM_GUIDE
warp MAP_EVER_GRANDE_CITY_HALL_OF_FAME, 255, 7, 16
waitstate
releaseall
diff --git a/data/scripts/maps/EverGrandeCity_DrakesRoom.inc b/data/scripts/maps/EverGrandeCity_DrakesRoom.inc
index 3d3d56ff9..f7088e821 100644
--- a/data/scripts/maps/EverGrandeCity_DrakesRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_DrakesRoom.inc
@@ -24,7 +24,7 @@ EverGrandeCity_DrakesRoom_EventScript_15B736:: @ 815B736
end
EverGrandeCity_DrakesRoom_MapScript1_15B743:: @ 815B743
- checkflag 1248
+ checkflag FLAG_DEFEATED_ELITE_4_DRAKE
call_if 1, EverGrandeCity_DrakesRoom_EventScript_15B758
compare 0x409c, 4
call_if 1, EverGrandeCity_DrakesRoom_EventScript_15B75E
@@ -41,7 +41,7 @@ EverGrandeCity_DrakesRoom_EventScript_15B75E:: @ 815B75E
EverGrandeCity_DrakesRoom_EventScript_15B764:: @ 815B764
lock
faceplayer
- checkflag 1248
+ checkflag FLAG_DEFEATED_ELITE_4_DRAKE
goto_if_eq EverGrandeCity_DrakesRoom_EventScript_15B78B
playbgm 450, 0
msgbox EverGrandeCity_DrakesRoom_Text_190CEB, 4
@@ -57,7 +57,7 @@ EverGrandeCity_DrakesRoom_EventScript_15B78B:: @ 815B78B
EverGrandeCity_DrakesRoom_EventScript_15B795:: @ 815B795
setvar 0x8004, 0
special sub_810FF60
- setflag 1248
+ setflag FLAG_DEFEATED_ELITE_4_DRAKE
call EverGrandeCity_DrakesRoom_EventScript_1A0693
msgbox EverGrandeCity_DrakesRoom_Text_190E5D, 4
release
diff --git a/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc b/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc
index 07f6e8877..be9e7a897 100644
--- a/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc
@@ -24,7 +24,7 @@ EverGrandeCity_GlaciasRoom_EventScript_15B69C:: @ 815B69C
end
EverGrandeCity_GlaciasRoom_MapScript1_15B6A9:: @ 815B6A9
- checkflag 1247
+ checkflag FLAG_DEFEATED_ELITE_4_GLACIA
call_if 1, EverGrandeCity_GlaciasRoom_EventScript_15B6BE
compare 0x409c, 3
call_if 1, EverGrandeCity_GlaciasRoom_EventScript_15B6C4
@@ -41,7 +41,7 @@ EverGrandeCity_GlaciasRoom_EventScript_15B6C4:: @ 815B6C4
EverGrandeCity_GlaciasRoom_EventScript_15B6CA:: @ 815B6CA
lock
faceplayer
- checkflag 1247
+ checkflag FLAG_DEFEATED_ELITE_4_GLACIA
goto_if_eq EverGrandeCity_GlaciasRoom_EventScript_15B6F1
playbgm 450, 0
msgbox EverGrandeCity_GlaciasRoom_Text_190AF9, 4
@@ -55,7 +55,7 @@ EverGrandeCity_GlaciasRoom_EventScript_15B6F1:: @ 815B6F1
end
EverGrandeCity_GlaciasRoom_EventScript_15B6FB:: @ 815B6FB
- setflag 1247
+ setflag FLAG_DEFEATED_ELITE_4_GLACIA
call EverGrandeCity_GlaciasRoom_EventScript_1A0693
msgbox EverGrandeCity_GlaciasRoom_Text_190C8F, 4
release
diff --git a/data/scripts/maps/EverGrandeCity_HallOfFame.inc b/data/scripts/maps/EverGrandeCity_HallOfFame.inc
index d9baaee89..904dc7531 100644
--- a/data/scripts/maps/EverGrandeCity_HallOfFame.inc
+++ b/data/scripts/maps/EverGrandeCity_HallOfFame.inc
@@ -51,16 +51,16 @@ EverGrandeCity_HallOfFame_EventScript_15BBA8:: @ 815BBA8
end
EverGrandeCity_HallOfFame_EventScript_15BC41:: @ 815BC41
- sethealplace 1
- fadescreendelay 1, 24
+ setrespawn 1
+ fadescreenspeed 1, 24
special GameClear
waitstate
releaseall
end
EverGrandeCity_HallOfFame_EventScript_15BC4D:: @ 815BC4D
- sethealplace 2
- fadescreendelay 1, 24
+ setrespawn 2
+ fadescreenspeed 1, 24
special GameClear
waitstate
releaseall
diff --git a/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc b/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
index b7c1618ba..5ffa16d37 100644
--- a/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
@@ -24,7 +24,7 @@ EverGrandeCity_PhoebesRoom_EventScript_15B602:: @ 815B602
end
EverGrandeCity_PhoebesRoom_MapScript1_15B60F:: @ 815B60F
- checkflag 1246
+ checkflag FLAG_DEFEATED_ELITE_4_PHOEBE
call_if 1, EverGrandeCity_PhoebesRoom_EventScript_15B624
compare 0x409c, 2
call_if 1, EverGrandeCity_PhoebesRoom_EventScript_15B62A
@@ -41,7 +41,7 @@ EverGrandeCity_PhoebesRoom_EventScript_15B62A:: @ 815B62A
EverGrandeCity_PhoebesRoom_EventScript_15B630:: @ 815B630
lock
faceplayer
- checkflag 1246
+ checkflag FLAG_DEFEATED_ELITE_4_PHOEBE
goto_if_eq EverGrandeCity_PhoebesRoom_EventScript_15B657
playbgm 450, 0
msgbox EverGrandeCity_PhoebesRoom_Text_1908F5, 4
@@ -55,7 +55,7 @@ EverGrandeCity_PhoebesRoom_EventScript_15B657:: @ 815B657
end
EverGrandeCity_PhoebesRoom_EventScript_15B661:: @ 815B661
- setflag 1246
+ setflag FLAG_DEFEATED_ELITE_4_PHOEBE
call EverGrandeCity_PhoebesRoom_EventScript_1A0693
msgbox EverGrandeCity_PhoebesRoom_Text_190A2A, 4
release
diff --git a/data/scripts/maps/EverGrandeCity_PokemonCenter_1F.inc b/data/scripts/maps/EverGrandeCity_PokemonCenter_1F.inc
index 57262b211..018658416 100644
--- a/data/scripts/maps/EverGrandeCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/EverGrandeCity_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ EverGrandeCity_PokemonCenter_1F_MapScripts:: @ 815BC66
.byte 0
EverGrandeCity_PokemonCenter_1F_MapScript1_15BC6C:: @ 815BC6C
- sethealplace 11
+ setrespawn 11
end
EverGrandeCity_PokemonCenter_1F_EventScript_15BC70:: @ 815BC70
@@ -11,7 +11,7 @@ SootopolisCity_PokemonCenter_1F_EventScript_15BC70:: @ 815BC70
setvar 0x800b, 1
call SootopolisCity_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/EverGrandeCity_PokemonLeague.inc b/data/scripts/maps/EverGrandeCity_PokemonLeague.inc
index acbdac899..4a8919b98 100644
--- a/data/scripts/maps/EverGrandeCity_PokemonLeague.inc
+++ b/data/scripts/maps/EverGrandeCity_PokemonLeague.inc
@@ -3,9 +3,9 @@ EverGrandeCity_PokemonLeague_MapScripts:: @ 815BA75
.byte 0
EverGrandeCity_PokemonLeague_MapScript1_15BA7B:: @ 815BA7B
- sethealplace 20
- setflag 2132
- checkflag 263
+ setrespawn 20
+ setflag FLAG_SYS_POKEMON_LEAGUE_FLY
+ checkflag FLAG_ENTERED_ELITE_FOUR
call_if 0, EverGrandeCity_PokemonLeague_EventScript_15BA8B
end
@@ -18,7 +18,7 @@ EverGrandeCity_PokemonLeague_EventScript_15BA9A:: @ 815BA9A
setvar 0x800b, 1
call EverGrandeCity_PokemonLeague_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
@@ -47,7 +47,7 @@ EverGrandeCity_PokemonLeague_Items:: @ 815BAC0
EverGrandeCity_PokemonLeague_EventScript_15BAD2:: @ 815BAD2
lockall
- checkflag 263
+ checkflag FLAG_ENTERED_ELITE_FOUR
goto_if_eq EverGrandeCity_PokemonLeague_EventScript_15BB57
getplayerxy 0x4000, 0x4001
compare 0x4000, 11
@@ -57,7 +57,7 @@ EverGrandeCity_PokemonLeague_EventScript_15BAD2:: @ 815BAD2
message EverGrandeCity_PokemonLeague_Text_1916FD
waitmessage
delay 75
- checkflag 2060
+ checkflag FLAG_BADGE06_GET
goto_if 0, EverGrandeCity_PokemonLeague_EventScript_15BB4A
closemessage
applymovement 3, EverGrandeCity_PokemonLeague_Movement_15BB7E
@@ -71,7 +71,7 @@ EverGrandeCity_PokemonLeague_EventScript_15BAD2:: @ 815BAD2
closemessage
moveobjectoffscreen 3
moveobjectoffscreen 4
- setflag 263
+ setflag FLAG_ENTERED_ELITE_FOUR
releaseall
end
diff --git a/data/scripts/maps/EverGrandeCity_SidneysRoom.inc b/data/scripts/maps/EverGrandeCity_SidneysRoom.inc
index daca98176..6e958aeed 100644
--- a/data/scripts/maps/EverGrandeCity_SidneysRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_SidneysRoom.inc
@@ -5,7 +5,7 @@ EverGrandeCity_SidneysRoom_MapScripts:: @ 815B53F
.byte 0
EverGrandeCity_SidneysRoom_MapScript1_15B54F:: @ 815B54F
- checkflag 1245
+ checkflag FLAG_DEFEATED_ELITE_4_SYDNEY
call_if 1, EverGrandeCity_SidneysRoom_EventScript_15B564
compare 0x409c, 1
call_if 1, EverGrandeCity_SidneysRoom_EventScript_15B56A
@@ -42,7 +42,7 @@ EverGrandeCity_SidneysRoom_EventScript_15B589:: @ 815B589
EverGrandeCity_SidneysRoom_EventScript_15B596:: @ 815B596
lock
faceplayer
- checkflag 1245
+ checkflag FLAG_DEFEATED_ELITE_4_SYDNEY
goto_if_eq EverGrandeCity_SidneysRoom_EventScript_15B5BD
playbgm 450, 0
msgbox EverGrandeCity_SidneysRoom_Text_190728, 4
@@ -56,7 +56,7 @@ EverGrandeCity_SidneysRoom_EventScript_15B5BD:: @ 815B5BD
end
EverGrandeCity_SidneysRoom_EventScript_15B5C7:: @ 815B5C7
- setflag 1245
+ setflag FLAG_DEFEATED_ELITE_4_SYDNEY
call EverGrandeCity_SidneysRoom_EventScript_1A0693
msgbox EverGrandeCity_SidneysRoom_Text_19086D, 4
release
diff --git a/data/scripts/maps/FallarborTown.inc b/data/scripts/maps/FallarborTown.inc
index 13c8a9f2e..8ea580e28 100644
--- a/data/scripts/maps/FallarborTown.inc
+++ b/data/scripts/maps/FallarborTown.inc
@@ -3,16 +3,16 @@ FallarborTown_MapScripts:: @ 814E7E0
.byte 0
FallarborTown_MapScript1_14E7E6:: @ 814E7E6
- setflag 2067
+ setflag FLAG_VISITED_FALLARBOR_TOWN
setvar 0x4086, 0
- setflag 800
- clearflag 270
+ setflag FLAG_HIDE_CONTEST_REPORTER_FALLARBOR
+ clearflag FLAG_CONTEST_SKETCH_CREATED
end
FallarborTown_EventScript_14E7F5:: @ 814E7F5
lock
faceplayer
- checkflag 139
+ checkflag FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY
goto_if_eq FallarborTown_EventScript_14E80A
msgbox FallarborTown_Text_16C7FF, 4
release
@@ -35,9 +35,9 @@ FallarborTown_EventScript_14E826:: @ 814E826
lock
faceplayer
waitse
- playpokecry SPECIES_AZURILL, 0
+ playmoncry SPECIES_AZURILL, 0
msgbox FallarborTown_Text_16C92C, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/FallarborTown_ContestLobby.inc b/data/scripts/maps/FallarborTown_ContestLobby.inc
index da19b96a7..72da4cd40 100644
--- a/data/scripts/maps/FallarborTown_ContestLobby.inc
+++ b/data/scripts/maps/FallarborTown_ContestLobby.inc
@@ -23,14 +23,14 @@ FallarborTown_ContestLobby_EventScript_1539F8:: @ 81539F8
applymovement 1, FallarborTown_ContestLobby_Movement_153A7C
waitmovement 0
playse 71
- setmaptile 4, 2, 545, 1
- setmaptile 4, 3, 609, 1
+ setmetatile 4, 2, 545, 1
+ setmetatile 4, 3, 609, 1
special DrawWholeMapView
applymovement 1, FallarborTown_ContestLobby_Movement_153A7F
waitmovement 0
playse 71
- setmaptile 4, 2, 721, 1
- setmaptile 4, 3, 729, 1
+ setmetatile 4, 2, 721, 1
+ setmetatile 4, 3, 729, 1
special DrawWholeMapView
delay 20
applymovement 1, FallarborTown_ContestLobby_Movement_153A8C
@@ -92,7 +92,7 @@ FallarborTown_ContestLobby_EventScript_153A8E:: @ 8153A8E
end
FallarborTown_ContestLobby_EventScript_153A97:: @ 8153A97
- checkflag 270
+ checkflag FLAG_CONTEST_SKETCH_CREATED
goto_if_eq FallarborTown_ContestLobby_EventScript_153AA9
msgbox FallarborTown_ContestLobby_Text_177246, 2
end
@@ -115,7 +115,7 @@ FallarborTown_ContestLobby_EventScript_153ABB:: @ 8153ABB
FallarborTown_ContestLobby_EventScript_153AC2:: @ 8153AC2
lockall
special ShowBerryBlenderRecordWindow
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
diff --git a/data/scripts/maps/FallarborTown_House1.inc b/data/scripts/maps/FallarborTown_House1.inc
index 0228fe25d..17267f926 100644
--- a/data/scripts/maps/FallarborTown_House1.inc
+++ b/data/scripts/maps/FallarborTown_House1.inc
@@ -8,7 +8,7 @@ FallarborTown_House1_MapScript1_153BB4:: @ 8153BB4
FallarborTown_House1_EventScript_153BB5:: @ 8153BB5
lock
faceplayer
- checkflag 229
+ checkflag FLAG_RECEIVED_TM27
goto_if_eq FallarborTown_House1_EventScript_153C54
checkitem ITEM_METEORITE, 1
compare RESULT, 1
@@ -18,19 +18,19 @@ FallarborTown_House1_EventScript_153BB5:: @ 8153BB5
end
FallarborTown_House1_EventScript_153BDA:: @ 8153BDA
- checkflag 2
+ checkflag FLAG_TEMP_2
call_if 0, FallarborTown_House1_EventScript_153C2D
- checkflag 2
+ checkflag FLAG_TEMP_2
call_if 1, FallarborTown_House1_EventScript_153C3E
compare RESULT, 0
goto_if_eq FallarborTown_House1_EventScript_153C47
msgbox FallarborTown_House1_Text_1778C4, 4
- giveitem ITEM_TM27
+ giveitem_std ITEM_TM27
compare RESULT, 0
goto_if_eq FallarborTown_House1_EventScript_1A029B
setvar 0x8004, 280
call FallarborTown_House1_EventScript_1A067F
- setflag 229
+ setflag FLAG_RECEIVED_TM27
msgbox FallarborTown_House1_Text_177910, 4
release
end
@@ -45,7 +45,7 @@ FallarborTown_House1_EventScript_153C3E:: @ 8153C3E
return
FallarborTown_House1_EventScript_153C47:: @ 8153C47
- setflag 2
+ setflag FLAG_TEMP_2
msgbox FallarborTown_House1_Text_17797D, 4
release
end
@@ -58,9 +58,9 @@ FallarborTown_House1_EventScript_153C54:: @ 8153C54
FallarborTown_House1_EventScript_153C5E:: @ 8153C5E
lock
faceplayer
- checkflag 229
+ checkflag FLAG_RECEIVED_TM27
goto_if_eq FallarborTown_House1_EventScript_153C86
- checkflag 139
+ checkflag FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY
goto_if_eq FallarborTown_House1_EventScript_153C7C
msgbox FallarborTown_House1_Text_177A2B, 4
release
diff --git a/data/scripts/maps/FallarborTown_House2.inc b/data/scripts/maps/FallarborTown_House2.inc
index 3b215a697..001863d5c 100644
--- a/data/scripts/maps/FallarborTown_House2.inc
+++ b/data/scripts/maps/FallarborTown_House2.inc
@@ -5,10 +5,10 @@ FallarborTown_House2_EventScript_153C91:: @ 8153C91
lockall
applymovement 1, FallarborTown_House2_Movement_1A0839
waitmovement 0
- checkflag 1
+ checkflag FLAG_TEMP_1
goto_if_eq FallarborTown_House2_EventScript_153CB6
msgbox FallarborTown_House2_Text_177AF4, 4
- setflag 1
+ setflag FLAG_TEMP_1
goto FallarborTown_House2_EventScript_153CB6
end
@@ -43,7 +43,7 @@ FallarborTown_House2_EventScript_153D1A:: @ 8153D1A
compare 0x8004, 0
goto_if_eq FallarborTown_House2_EventScript_153CE4
msgbox FallarborTown_House2_Text_177CC3, 4
- removeitem ITEM_HEART_SCALE, 1
+ takeitem ITEM_HEART_SCALE, 1
goto FallarborTown_House2_EventScript_153D60
end
diff --git a/data/scripts/maps/FallarborTown_Mart.inc b/data/scripts/maps/FallarborTown_Mart.inc
index e6f715697..cfd239e8a 100644
--- a/data/scripts/maps/FallarborTown_Mart.inc
+++ b/data/scripts/maps/FallarborTown_Mart.inc
@@ -41,8 +41,8 @@ FallarborTown_Mart_EventScript_1539AE:: @ 81539AE
lock
faceplayer
waitse
- playpokecry SPECIES_SKITTY, 0
+ playmoncry SPECIES_SKITTY, 0
msgbox FallarborTown_Mart_Text_1770D3, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/FallarborTown_PokemonCenter_1F.inc b/data/scripts/maps/FallarborTown_PokemonCenter_1F.inc
index 5b1f1c948..dd6e83be3 100644
--- a/data/scripts/maps/FallarborTown_PokemonCenter_1F.inc
+++ b/data/scripts/maps/FallarborTown_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ FallarborTown_PokemonCenter_1F_MapScripts:: @ 8153AF3
.byte 0
FallarborTown_PokemonCenter_1F_MapScript1_153AF9:: @ 8153AF9
- sethealplace 17
+ setrespawn 17
call FallarborTown_PokemonCenter_1F_EventScript_19FD1B
end
@@ -11,7 +11,7 @@ FallarborTown_PokemonCenter_1F_EventScript_153B02:: @ 8153B02
setvar 0x800b, 1
call FallarborTown_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
@@ -48,7 +48,7 @@ FallarborTown_PokemonCenter_1F_EventScript_153B59:: @ 8153B59
FallarborTown_PokemonCenter_1F_EventScript_153B69:: @ 8153B69
playse 18
removeobject 4
- clearflag 870
+ clearflag FLAG_HIDE_LANETTE
release
end
diff --git a/data/scripts/maps/FieryPath.inc b/data/scripts/maps/FieryPath.inc
index bd984ad20..f0bd22071 100644
--- a/data/scripts/maps/FieryPath.inc
+++ b/data/scripts/maps/FieryPath.inc
@@ -3,5 +3,5 @@ FieryPath_MapScripts:: @ 815D318
.byte 0
FieryPath_MapScript1_15D31E:: @ 815D31E
- setflag 2122
+ setflag FLAG_LANDMARK_FIERY_PATH
end
diff --git a/data/scripts/maps/FortreeCity.inc b/data/scripts/maps/FortreeCity.inc
index 6ea89dcb7..239c1410d 100644
--- a/data/scripts/maps/FortreeCity.inc
+++ b/data/scripts/maps/FortreeCity.inc
@@ -4,11 +4,11 @@ FortreeCity_MapScripts:: @ 814C943
.byte 0
FortreeCity_MapScript1_14C94E:: @ 814C94E
- setflag 2074
+ setflag FLAG_VISITED_FORTREE_CITY
end
FortreeCity_MapScript1_14C952:: @ 814C952
- tileeffect 2
+ setstepcallback 2
end
FortreeCity_EventScript_14C955:: @ 814C955
@@ -18,7 +18,7 @@ FortreeCity_EventScript_14C955:: @ 814C955
FortreeCity_EventScript_14C95E:: @ 814C95E
lock
faceplayer
- checkflag 295
+ checkflag FLAG_KECLEON_FLED_FORTREE
goto_if_eq FortreeCity_EventScript_14C973
msgbox FortreeCity_Text_1675C2, 4
release
@@ -76,13 +76,13 @@ FortreeCity_EventScript_14C9E4:: @ 814C9E4
applymovement LAST_TALKED, FortreeCity_Movement_1A0662
waitmovement 0
waitse
- playpokecry SPECIES_KECLEON, 2
+ playmoncry SPECIES_KECLEON, 2
delay 40
- waitpokecry
+ waitmoncry
applymovement LAST_TALKED, FortreeCity_Movement_14CA13
waitmovement 0
removeobject LAST_TALKED
- setflag 295
+ setflag FLAG_KECLEON_FLED_FORTREE
release
end
diff --git a/data/scripts/maps/FortreeCity_DecorationShop.inc b/data/scripts/maps/FortreeCity_DecorationShop.inc
index fca20b866..56a360708 100644
--- a/data/scripts/maps/FortreeCity_DecorationShop.inc
+++ b/data/scripts/maps/FortreeCity_DecorationShop.inc
@@ -14,7 +14,7 @@ FortreeCity_DecorationShop_EventScript_15826A:: @ 815826A
faceplayer
message FortreeCity_DecorationShop_Text_1A0BE4
waitmessage
- pokemartdecor FortreeCity_DecorationShop_Decorations1
+ pokemartdecoration FortreeCity_DecorationShop_Decorations1
msgbox FortreeCity_DecorationShop_Text_1A0C02, 4
release
end
@@ -38,7 +38,7 @@ FortreeCity_DecorationShop_EventScript_158298:: @ 8158298
faceplayer
message FortreeCity_DecorationShop_Text_1A0BE4
waitmessage
- pokemartdecor FortreeCity_DecorationShop_Decorations2
+ pokemartdecoration FortreeCity_DecorationShop_Decorations2
msgbox FortreeCity_DecorationShop_Text_1A0C02, 4
release
end
diff --git a/data/scripts/maps/FortreeCity_Gym.inc b/data/scripts/maps/FortreeCity_Gym.inc
index 7309be0bb..a0eb6186a 100644
--- a/data/scripts/maps/FortreeCity_Gym.inc
+++ b/data/scripts/maps/FortreeCity_Gym.inc
@@ -17,7 +17,7 @@ FortreeCity_Gym_EventScript_157EEC:: @ 8157EEC
FortreeCity_Gym_EventScript_157EF0:: @ 8157EF0
trainerbattle 1, OPPONENT_WINONA, 0, FortreeCity_Gym_Text_185CCB, FortreeCity_Gym_Text_185DBA, FortreeCity_Gym_EventScript_157F15
- checkflag 170
+ checkflag FLAG_RECEIVED_TM40
goto_if 0, FortreeCity_Gym_EventScript_157F3E
msgbox FortreeCity_Gym_Text_185F98, 4
release
@@ -28,19 +28,19 @@ FortreeCity_Gym_EventScript_157F15:: @ 8157F15
waitmessage
call FortreeCity_Gym_EventScript_1A02C5
msgbox FortreeCity_Gym_Text_185E73, 4
- setflag 1225
- setflag 2060
+ setflag FLAG_DEFEATED_FORTREE_GYM
+ setflag FLAG_BADGE06_GET
setvar 0x8008, 6
call FortreeCity_Gym_EventScript_1A01C0
goto FortreeCity_Gym_EventScript_157F3E
end
FortreeCity_Gym_EventScript_157F3E:: @ 8157F3E
- giveitem ITEM_TM40
+ giveitem_std ITEM_TM40
compare RESULT, 0
goto_if_eq FortreeCity_Gym_EventScript_1A029B
msgbox FortreeCity_Gym_Text_185F4A, 4
- setflag 170
+ setflag FLAG_RECEIVED_TM40
release
end
@@ -67,7 +67,7 @@ FortreeCity_Gym_EventScript_157FA7:: @ 8157FA7
FortreeCity_Gym_EventScript_157FBE:: @ 8157FBE
lock
faceplayer
- checkflag 1225
+ checkflag FLAG_DEFEATED_FORTREE_GYM
goto_if_eq FortreeCity_Gym_EventScript_157FD3
msgbox FortreeCity_Gym_Text_18589C, 4
release
@@ -80,14 +80,14 @@ FortreeCity_Gym_EventScript_157FD3:: @ 8157FD3
FortreeCity_Gym_EventScript_157FDD:: @ 8157FDD
lockall
- checkflag 2060
+ checkflag FLAG_BADGE06_GET
goto_if_eq FortreeCity_Gym_EventScript_157FFD
goto FortreeCity_Gym_EventScript_158007
end
FortreeCity_Gym_EventScript_157FED:: @ 8157FED
lockall
- checkflag 2060
+ checkflag FLAG_BADGE06_GET
goto_if_eq FortreeCity_Gym_EventScript_157FFD
goto FortreeCity_Gym_EventScript_158007
end
diff --git a/data/scripts/maps/FortreeCity_House1.inc b/data/scripts/maps/FortreeCity_House1.inc
index 7b7ef0b2e..14b9b2c31 100644
--- a/data/scripts/maps/FortreeCity_House1.inc
+++ b/data/scripts/maps/FortreeCity_House1.inc
@@ -4,7 +4,7 @@ FortreeCity_House1_MapScripts:: @ 8157E12
FortreeCity_House1_EventScript_157E13:: @ 8157E13
lock
faceplayer
- checkflag 155
+ checkflag FLAG_FORTREE_NPC_TRADE_COMPLETED
goto_if_eq FortreeCity_House1_EventScript_157EAD
setvar 0x8008, 1
copyvar 0x8004, 0x8008
@@ -28,9 +28,9 @@ FortreeCity_House1_EventScript_157E13:: @ 8157E13
special sub_804DB68
special sub_804E174
waitstate
- getspeciesname 0, 0x8009
+ bufferspeciesname 0, 0x8009
msgbox FortreeCity_House1_Text_1856F7, 4
- setflag 155
+ setflag FLAG_FORTREE_NPC_TRADE_COMPLETED
release
end
@@ -40,7 +40,7 @@ FortreeCity_House1_EventScript_157E95:: @ 8157E95
end
FortreeCity_House1_EventScript_157E9F:: @ 8157E9F
- getspeciesname 0, 0x8009
+ bufferspeciesname 0, 0x8009
msgbox FortreeCity_House1_Text_185737, 4
release
end
@@ -58,8 +58,8 @@ FortreeCity_House1_EventScript_157EC0:: @ 8157EC0
lock
faceplayer
waitse
- playpokecry SPECIES_ZIGZAGOON, 0
+ playmoncry SPECIES_ZIGZAGOON, 0
msgbox FortreeCity_House1_Text_185888, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/FortreeCity_House2.inc b/data/scripts/maps/FortreeCity_House2.inc
index f210dd3ac..ae70b8644 100644
--- a/data/scripts/maps/FortreeCity_House2.inc
+++ b/data/scripts/maps/FortreeCity_House2.inc
@@ -4,9 +4,9 @@ FortreeCity_House2_MapScripts:: @ 81580B3
FortreeCity_House2_EventScript_1580B4:: @ 81580B4
lock
faceplayer
- checkflag 264
+ checkflag FLAG_RECEIVED_TM10
goto_if_eq FortreeCity_House2_EventScript_158157
- checkflag 118
+ checkflag FLAG_MET_HIDDEN_POWER_GIVER
call_if 0, FortreeCity_House2_EventScript_15814B
msgbox FortreeCity_House2_Text_186360, 4
multichoice 21, 8, 54, 1
@@ -21,17 +21,17 @@ FortreeCity_House2_EventScript_1580B4:: @ 81580B4
switch RESULT
case 0, FortreeCity_House2_EventScript_158161
msgbox FortreeCity_House2_Text_1864C6, 4
- giveitem ITEM_TM10
+ giveitem_std ITEM_TM10
compare RESULT, 0
goto_if_eq FortreeCity_House2_EventScript_1A029B
- setflag 264
+ setflag FLAG_RECEIVED_TM10
msgbox FortreeCity_House2_Text_18652F, 4
release
end
FortreeCity_House2_EventScript_15814B:: @ 815814B
msgbox FortreeCity_House2_Text_186306, 4
- setflag 118
+ setflag FLAG_MET_HIDDEN_POWER_GIVER
return
FortreeCity_House2_EventScript_158157:: @ 8158157
diff --git a/data/scripts/maps/FortreeCity_House4.inc b/data/scripts/maps/FortreeCity_House4.inc
index b261e14fb..1b1b41877 100644
--- a/data/scripts/maps/FortreeCity_House4.inc
+++ b/data/scripts/maps/FortreeCity_House4.inc
@@ -7,16 +7,16 @@ FortreeCity_House4_EventScript_15817F:: @ 815817F
FortreeCity_House4_EventScript_158188:: @ 8158188
lockall
- checkflag 223
+ checkflag FLAG_RECEIVED_MENTAL_HERB
goto_if_eq FortreeCity_House4_EventScript_158204
- checkflag 224
+ checkflag FLAG_WINGULL_DELIVERED_MAIL
goto_if_eq FortreeCity_House4_EventScript_1581D6
- checkflag 222
+ checkflag FLAG_WINGULL_SENT_ON_ERRAND
goto_if_eq FortreeCity_House4_EventScript_1581C2
msgbox FortreeCity_House4_Text_186835, 4
closemessage
- setflag 222
- clearflag 934
+ setflag FLAG_WINGULL_SENT_ON_ERRAND
+ clearflag FLAG_HIDE_WINGULL_MOSSDEEP_HOUSE
applymovement 3, FortreeCity_House4_Movement_158218
waitmovement 0
removeobject 3
@@ -34,10 +34,10 @@ FortreeCity_House4_EventScript_1581D6:: @ 81581D6
applymovement LAST_TALKED, FortreeCity_House4_Movement_1A0839
waitmovement 0
msgbox FortreeCity_House4_Text_186881, 4
- giveitem ITEM_MENTAL_HERB
+ giveitem_std ITEM_MENTAL_HERB
compare RESULT, 0
goto_if_eq FortreeCity_House4_EventScript_1A029B
- setflag 223
+ setflag FLAG_RECEIVED_MENTAL_HERB
releaseall
end
@@ -60,8 +60,8 @@ FortreeCity_House4_EventScript_15821E:: @ 815821E
lock
faceplayer
waitse
- playpokecry SPECIES_WINGULL, 0
+ playmoncry SPECIES_WINGULL, 0
msgbox FortreeCity_House4_Text_18695C, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/FortreeCity_House5.inc b/data/scripts/maps/FortreeCity_House5.inc
index fe10b53b0..888ebe0e2 100644
--- a/data/scripts/maps/FortreeCity_House5.inc
+++ b/data/scripts/maps/FortreeCity_House5.inc
@@ -13,8 +13,8 @@ FortreeCity_House5_EventScript_158244:: @ 8158244
lock
faceplayer
waitse
- playpokecry SPECIES_ZIGZAGOON, 0
+ playmoncry SPECIES_ZIGZAGOON, 0
msgbox FortreeCity_House5_Text_186A4F, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/FortreeCity_PokemonCenter_1F.inc b/data/scripts/maps/FortreeCity_PokemonCenter_1F.inc
index 5268cbeed..b82927be1 100644
--- a/data/scripts/maps/FortreeCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/FortreeCity_PokemonCenter_1F.inc
@@ -3,14 +3,14 @@ FortreeCity_PokemonCenter_1F_MapScripts:: @ 8158011
.byte 0
FortreeCity_PokemonCenter_1F_MapScript1_158017:: @ 8158017
- sethealplace 7
+ setrespawn 7
end
FortreeCity_PokemonCenter_1F_EventScript_15801B:: @ 815801B
setvar 0x800b, 1
call FortreeCity_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/GraniteCave_1F.inc b/data/scripts/maps/GraniteCave_1F.inc
index f389a774e..33296e510 100644
--- a/data/scripts/maps/GraniteCave_1F.inc
+++ b/data/scripts/maps/GraniteCave_1F.inc
@@ -4,11 +4,11 @@ GraniteCave_1F_MapScripts:: @ 815CBA6
GraniteCave_1F_EventScript_15CBA7:: @ 815CBA7
lock
faceplayer
- checkflag 109
+ checkflag FLAG_RECEIVED_HM05
goto_if_eq GraniteCave_1F_EventScript_15CBD3
msgbox GraniteCave_1F_Text_194917, 4
- giveitem ITEM_HM05
- setflag 109
+ giveitem_std ITEM_HM05
+ setflag FLAG_RECEIVED_HM05
msgbox GraniteCave_1F_Text_194A3E, 4
release
end
diff --git a/data/scripts/maps/GraniteCave_B1F.inc b/data/scripts/maps/GraniteCave_B1F.inc
index 07a95c3f1..c6be3feca 100644
--- a/data/scripts/maps/GraniteCave_B1F.inc
+++ b/data/scripts/maps/GraniteCave_B1F.inc
@@ -5,6 +5,6 @@ GraniteCave_B1F_MapScripts:: @ 815CBDD
.byte 0
GraniteCave_B1F_MapScript1_15CBED:: @ 815CBED
- tileeffect 7
+ setstepcallback 7
setholewarp MAP_GRANITE_CAVE_B2F, 255, 0, 0
end
diff --git a/data/scripts/maps/GraniteCave_StevensRoom.inc b/data/scripts/maps/GraniteCave_StevensRoom.inc
index 070276e58..344ccd479 100644
--- a/data/scripts/maps/GraniteCave_StevensRoom.inc
+++ b/data/scripts/maps/GraniteCave_StevensRoom.inc
@@ -5,11 +5,11 @@ GraniteCave_StevensRoom_EventScript_15CBFA:: @ 815CBFA
lock
faceplayer
msgbox GraniteCave_StevensRoom_Text_194AE5, 4
- setvar 0x8004, 274
+ setvar 0x8004, ITEM_LETTER
call GraniteCave_StevensRoom_EventScript_1A067F
- setflag 189
+ setflag FLAG_DELIVERED_STEVEN_LETTER
msgbox GraniteCave_StevensRoom_Text_194BDD, 4
- giveitem ITEM_TM47
+ giveitem_std ITEM_TM47
compare RESULT, 0
call_if 1, GraniteCave_StevensRoom_EventScript_15CC83
msgbox GraniteCave_StevensRoom_Text_194C8D, 4
diff --git a/data/scripts/maps/InsideOfTruck.inc b/data/scripts/maps/InsideOfTruck.inc
index 737bacf71..18cfb904d 100644
--- a/data/scripts/maps/InsideOfTruck.inc
+++ b/data/scripts/maps/InsideOfTruck.inc
@@ -4,13 +4,13 @@ InsideOfTruck_MapScripts:: @ 815FBFF
.byte 0
InsideOfTruck_MapScript1_15FC0A:: @ 815FC0A
- setmaptile 4, 1, 520, 0
- setmaptile 4, 2, 528, 0
- setmaptile 4, 3, 536, 0
+ setmetatile 4, 1, 520, 0
+ setmetatile 4, 2, 528, 0
+ setmetatile 4, 3, 536, 0
end
InsideOfTruck_MapScript1_15FC26:: @ 815FC26
- tileeffect 5
+ setstepcallback 5
end
InsideOfTruck_EventScript_15FC29:: @ 815FC29
@@ -24,24 +24,24 @@ InsideOfTruck_EventScript_15FC29:: @ 815FC29
end
InsideOfTruck_EventScript_15FC45:: @ 815FC45
- sethealplace 1
+ setrespawn 1
setvar 0x4092, 1
- setflag 759
- setflag 762
- setflag 784
- setflag 760
+ setflag FLAG_HIDE_MAY_MOM_DOWNSTAIRS
+ setflag FLAG_HIDE_MOVING_TRUCK_MAY
+ setflag FLAG_HIDE_BRENDAN_MOM
+ setflag FLAG_HIDE_BRENDAN_UPSTAIRS
setvar 0x408c, 1
setdynamicwarp MAP_LITTLEROOT_TOWN, 255, 3, 10
releaseall
end
InsideOfTruck_EventScript_15FC68:: @ 815FC68
- sethealplace 2
+ setrespawn 2
setvar 0x4092, 2
- setflag 758
- setflag 761
- setflag 785
- setflag 722
+ setflag FLAG_HIDE_BRENDAN_MOM_DOWNSTAIRS
+ setflag FLAG_HIDE_MOVING_TRUCK_BRENDAN
+ setflag FLAG_HIDE_MAY_MOM
+ setflag FLAG_HIDE_MAY_UPSTAIRS
setvar 0x4082, 1
setdynamicwarp MAP_LITTLEROOT_TOWN, 255, 12, 10
releaseall
diff --git a/data/scripts/maps/IslandCave.inc b/data/scripts/maps/IslandCave.inc
index 75399bde8..dbc71b6bb 100644
--- a/data/scripts/maps/IslandCave.inc
+++ b/data/scripts/maps/IslandCave.inc
@@ -5,7 +5,7 @@ IslandCave_MapScripts:: @ 815EEB6
.byte 0
IslandCave_MapScript1_15EEC6:: @ 815EEC6
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, IslandCave_EventScript_15EED0
end
@@ -14,38 +14,38 @@ IslandCave_EventScript_15EED0:: @ 815EED0
return
IslandCave_MapScript1_15EED4:: @ 815EED4
- checkflag 2129
+ checkflag FLAG_SYS_BRAILLE_WAIT
call_if 0, IslandCave_EventScript_15EEDE
end
IslandCave_EventScript_15EEDE:: @ 815EEDE
- setmaptile 7, 19, 553, 1
- setmaptile 8, 19, 553, 1
- setmaptile 9, 19, 553, 1
- setmaptile 7, 20, 565, 1
- setmaptile 8, 20, 565, 1
- setmaptile 9, 20, 565, 1
+ 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 2133
+ setflag FLAG_LANDMARK_ISLAND_CAVE
end
S_OpenRegiceChamber:: @ 815EF19
- setmaptile 7, 19, 554, 1
- setmaptile 8, 19, 555, 1
- setmaptile 9, 19, 556, 1
- setmaptile 7, 20, 562, 1
- setmaptile 8, 20, 563, 0
- setmaptile 9, 20, 564, 1
+ 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 2129
+ setflag FLAG_SYS_BRAILLE_WAIT
end
IslandCave_EventScript_15EF59:: @ 815EF59
lockall
- checkflag 2129
+ checkflag FLAG_SYS_BRAILLE_WAIT
goto_if_eq IslandCave_EventScript_15EF72
braillemessage IslandCave_Braille_1C54FC
special DoBrailleWait
@@ -61,7 +61,7 @@ IslandCave_EventScript_15EF72:: @ 815EF72
IslandCave_EventScript_15EF7C:: @ 815EF7C
lockall
braillemessage IslandCave_Braille_1C54FC
- checkflag 2129
+ checkflag FLAG_SYS_BRAILLE_WAIT
goto_if_eq IslandCave_EventScript_15EF95
special DoBrailleWait
waitstate
@@ -69,7 +69,7 @@ IslandCave_EventScript_15EF7C:: @ 815EF7C
end
IslandCave_EventScript_15EF95:: @ 815EF95
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -78,14 +78,14 @@ IslandCave_EventScript_15EF9D:: @ 815EF9D
lock
faceplayer
waitse
- playpokecry SPECIES_REGICE, 2
+ playmoncry SPECIES_REGICE, 2
delay 40
- waitpokecry
+ waitmoncry
setwildbattle SPECIES_REGICE, 40, ITEM_NONE
- setflag 936
- setflag 2145
+ setflag FLAG_HIDE_REGICE
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
special ScrSpecial_StartRegiBattle
waitstate
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
release
end
diff --git a/data/scripts/maps/JaggedPass.inc b/data/scripts/maps/JaggedPass.inc
index 6f910d0ad..c7efee318 100644
--- a/data/scripts/maps/JaggedPass.inc
+++ b/data/scripts/maps/JaggedPass.inc
@@ -4,7 +4,7 @@ JaggedPass_MapScripts:: @ 815D266
.byte 0
JaggedPass_MapScript1_15D271:: @ 815D271
- tileeffect 1
+ setstepcallback 1
end
JaggedPass_MapScript1_15D274:: @ 815D274
diff --git a/data/scripts/maps/LavaridgeTown.inc b/data/scripts/maps/LavaridgeTown.inc
index 5192176a7..8b4384ed8 100644
--- a/data/scripts/maps/LavaridgeTown.inc
+++ b/data/scripts/maps/LavaridgeTown.inc
@@ -4,8 +4,8 @@ LavaridgeTown_MapScripts:: @ 814E4A3
.byte 0
LavaridgeTown_MapScript1_14E4AE:: @ 814E4AE
- setflag 2066
- checkflag 139
+ setflag FLAG_VISITED_LAVARIDGE_TOWN
+ checkflag FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY
call_if 1, LavaridgeTown_EventScript_14E4DF
call LavaridgeTown_EventScript_1A014E
call LavaridgeTown_EventScript_1A0172
@@ -19,7 +19,7 @@ LavaridgeTown_EventScript_14E4D0:: @ 814E4D0
return
LavaridgeTown_EventScript_14E4DF:: @ 814E4DF
- clearflag 877
+ clearflag FLAG_HIDE_MT_CHIMNEY_PEOPLE
return
LavaridgeTown_MapScript2_14E4E3:: @ 814E4E3
@@ -83,16 +83,16 @@ LavaridgeTown_EventScript_14E575:: @ 814E575
LavaridgeTown_EventScript_14E5AB:: @ 814E5AB
msgbox LavaridgeTown_Text_16BDA4, 4
- giveitem ITEM_GO_GOGGLES
- setflag 221
+ 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 ITEM_GO_GOGGLES
- setflag 221
+ giveitem_std ITEM_GO_GOGGLES
+ setflag FLAG_RECEIVED_GO_GOGGLES
msgbox LavaridgeTown_Text_16C020, 4
goto LavaridgeTown_EventScript_14E5F5
end
@@ -272,16 +272,16 @@ LavaridgeTown_EventScript_14E751:: @ 814E751
LavaridgeTown_EventScript_14E75A:: @ 814E75A
lock
faceplayer
- checkflag 266
+ checkflag FLAG_RECEIVED_LAVARIDGE_EGG
goto_if_eq LavaridgeTown_EventScript_14E79E
msgbox LavaridgeTown_Text_16C174, 5
compare RESULT, 0
goto_if_eq LavaridgeTown_EventScript_14E7B2
- countpokemon
+ getpartysize
compare RESULT, 6
goto_if_eq LavaridgeTown_EventScript_14E7A8
msgbox LavaridgeTown_Text_16C2B6, 4
- setflag 266
+ setflag FLAG_RECEIVED_LAVARIDGE_EGG
playfanfare 370
message LavaridgeTown_Text_16C2EA
waitfanfare
diff --git a/data/scripts/maps/LavaridgeTown_Gym_1F.inc b/data/scripts/maps/LavaridgeTown_Gym_1F.inc
index 2edffe9f0..9dd1ae59d 100644
--- a/data/scripts/maps/LavaridgeTown_Gym_1F.inc
+++ b/data/scripts/maps/LavaridgeTown_Gym_1F.inc
@@ -70,7 +70,7 @@ LavaridgeTown_Gym_1F_EventScript_153740:: @ 8153740
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
- checkflag 168
+ checkflag FLAG_RECEIVED_TM50
goto_if 0, LavaridgeTown_Gym_1F_EventScript_1537A7
msgbox LavaridgeTown_Gym_1F_Text_176C4A, 4
release
@@ -81,24 +81,24 @@ LavaridgeTown_Gym_1F_EventScript_153766:: @ 8153766
waitmessage
call LavaridgeTown_Gym_1F_EventScript_1A02C5
msgbox LavaridgeTown_Gym_1F_Text_176A8C, 4
- setflag 1213
- setflag 2058
+ setflag FLAG_DEFEATED_LAVARIDGE_GYM
+ setflag FLAG_BADGE04_GET
addvar 0x4085, 1
compare 0x4085, 6
call_if 1, LavaridgeTown_Gym_1F_EventScript_1A00FB
setvar 0x8008, 4
call LavaridgeTown_Gym_1F_EventScript_1A01C0
- setflag 806
+ setflag FLAG_HIDE_WALLY_WANDAS_HOUSE
setvar 0x4053, 1
goto LavaridgeTown_Gym_1F_EventScript_1537A7
end
LavaridgeTown_Gym_1F_EventScript_1537A7:: @ 81537A7
- giveitem ITEM_TM50
+ giveitem_std ITEM_TM50
compare RESULT, 0
goto_if_eq LavaridgeTown_Gym_1F_EventScript_1A029B
msgbox LavaridgeTown_Gym_1F_Text_176B8F, 4
- setflag 168
+ setflag FLAG_RECEIVED_TM50
release
end
@@ -135,7 +135,7 @@ LavaridgeTown_Gym_1F_EventScript_15383E:: @ 815383E
LavaridgeTown_Gym_1F_EventScript_153859:: @ 8153859
lock
faceplayer
- checkflag 1213
+ checkflag FLAG_DEFEATED_LAVARIDGE_GYM
goto_if_eq LavaridgeTown_Gym_1F_EventScript_15386E
msgbox LavaridgeTown_Gym_1F_Text_176312, 4
release
@@ -148,14 +148,14 @@ LavaridgeTown_Gym_1F_EventScript_15386E:: @ 815386E
LavaridgeTown_Gym_1F_EventScript_153878:: @ 8153878
lockall
- checkflag 2058
+ checkflag FLAG_BADGE04_GET
goto_if_eq LavaridgeTown_Gym_1F_EventScript_153898
goto LavaridgeTown_Gym_1F_EventScript_1538A2
end
LavaridgeTown_Gym_1F_EventScript_153888:: @ 8153888
lockall
- checkflag 2058
+ checkflag FLAG_BADGE04_GET
goto_if_eq LavaridgeTown_Gym_1F_EventScript_153898
goto LavaridgeTown_Gym_1F_EventScript_1538A2
end
diff --git a/data/scripts/maps/LavaridgeTown_HerbShop.inc b/data/scripts/maps/LavaridgeTown_HerbShop.inc
index 5ec6731d4..913734dd5 100644
--- a/data/scripts/maps/LavaridgeTown_HerbShop.inc
+++ b/data/scripts/maps/LavaridgeTown_HerbShop.inc
@@ -28,13 +28,13 @@ LavaridgeTown_HerbShop_EventScript_15364C:: @ 815364C
LavaridgeTown_HerbShop_EventScript_153655:: @ 8153655
lock
faceplayer
- checkflag 254
+ checkflag FLAG_RECEIVED_CHARCOAL
goto_if_eq LavaridgeTown_HerbShop_EventScript_153684
msgbox LavaridgeTown_HerbShop_Text_1761A2, 4
- giveitem ITEM_CHARCOAL
+ giveitem_std ITEM_CHARCOAL
compare RESULT, 0
goto_if_eq LavaridgeTown_HerbShop_EventScript_1A029B
- setflag 254
+ setflag FLAG_RECEIVED_CHARCOAL
release
end
diff --git a/data/scripts/maps/LavaridgeTown_House.inc b/data/scripts/maps/LavaridgeTown_House.inc
index c75cb9e4b..6fc14e0b6 100644
--- a/data/scripts/maps/LavaridgeTown_House.inc
+++ b/data/scripts/maps/LavaridgeTown_House.inc
@@ -9,8 +9,8 @@ LavaridgeTown_House_EventScript_1538B7:: @ 81538B7
lock
faceplayer
waitse
- playpokecry SPECIES_ZIGZAGOON, 0
+ playmoncry SPECIES_ZIGZAGOON, 0
msgbox LavaridgeTown_House_Text_176D94, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/LavaridgeTown_PokemonCenter_1F.inc b/data/scripts/maps/LavaridgeTown_PokemonCenter_1F.inc
index 9d0f31059..0efda9c1e 100644
--- a/data/scripts/maps/LavaridgeTown_PokemonCenter_1F.inc
+++ b/data/scripts/maps/LavaridgeTown_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ LavaridgeTown_PokemonCenter_1F_MapScripts:: @ 815390C
.byte 0
LavaridgeTown_PokemonCenter_1F_MapScript1_153912:: @ 8153912
- sethealplace 16
+ setrespawn 16
call LavaridgeTown_PokemonCenter_1F_EventScript_19FD1B
end
@@ -11,7 +11,7 @@ LavaridgeTown_PokemonCenter_1F_EventScript_15391B:: @ 815391B
setvar 0x800b, 1
call LavaridgeTown_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/LilycoveCity.inc b/data/scripts/maps/LilycoveCity.inc
index cf8e2e07d..6494f2a6f 100644
--- a/data/scripts/maps/LilycoveCity.inc
+++ b/data/scripts/maps/LilycoveCity.inc
@@ -4,10 +4,10 @@ LilycoveCity_MapScripts:: @ 814CA15
.byte 0
LilycoveCity_MapScript1_14CA20:: @ 814CA20
- setflag 2075
+ setflag FLAG_VISITED_LILYCOVE_CITY
setvar 0x4086, 0
- setflag 802
- checkflag 2090
+ setflag FLAG_HIDE_CONTEST_REPORTER_LILYCOVE
+ checkflag FLAG_SYS_WEATHER_CTRL
call_if 1, LilycoveCity_EventScript_1A02C1
call LilycoveCity_EventScript_1A0196
call LilycoveCity_EventScript_1A014E
@@ -15,64 +15,64 @@ LilycoveCity_MapScript1_14CA20:: @ 814CA20
LilycoveCity_MapScript1_14CA3F:: @ 814CA3F
.ifndef SAPPHIRE
- setmaptile 69, 4, 169, 1
- setmaptile 70, 4, 680, 1
- setmaptile 71, 4, 681, 1
- setmaptile 72, 4, 682, 1
- setmaptile 69, 5, 145, 1
- setmaptile 70, 5, 688, 1
- setmaptile 71, 5, 689, 0
- setmaptile 72, 5, 690, 1
- setmaptile 69, 6, 446, 0
- setmaptile 70, 6, 447, 0
- setmaptile 71, 6, 368, 0
- setmaptile 72, 6, 445, 0
+ 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
- checkflag 112
+ checkflag FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE
call_if 0, LilycoveCity_EventScript_14CABE
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
call_if 1, LilycoveCity_EventScript_14CB2B
end
LilycoveCity_EventScript_14CABE:: @ 814CABE
- setmaptile 76, 12, 656, 1
- setmaptile 77, 12, 657, 1
- setmaptile 76, 13, 672, 1
- setmaptile 77, 13, 673, 1
- setmaptile 76, 14, 664, 1
- setmaptile 77, 14, 665, 1
- setmaptile 76, 15, 672, 1
- setmaptile 77, 15, 673, 1
- setmaptile 77, 16, 664, 1
- setmaptile 78, 16, 665, 1
- setmaptile 77, 17, 672, 1
- setmaptile 78, 17, 673, 1
+ 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
- setmaptile 69, 4, 169, 1
- setmaptile 70, 4, 169, 1
- setmaptile 71, 4, 169, 1
- setmaptile 72, 4, 169, 1
- setmaptile 69, 5, 145, 1
- setmaptile 70, 5, 145, 1
- setmaptile 71, 5, 145, 1
- setmaptile 72, 5, 145, 1
+ 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
- checkflag 2255
+ checkflag FLAG_DAILY_RECEIVED_BERRY_LILYCOVE
goto_if_eq LilycoveCity_EventScript_14CBB4
msgbox LilycoveCity_Text_1C5A7A, 4
random 10
- addvar RESULT, 133
- giveitem RESULT
+ addvar RESULT, ITEM_CHERI_BERRY
+ giveitem_std RESULT
compare RESULT, 0
goto_if_eq LilycoveCity_EventScript_1A029B
- setflag 2255
+ setflag FLAG_DAILY_RECEIVED_BERRY_LILYCOVE
msgbox LilycoveCity_Text_1C5B1D, 4
release
end
@@ -89,7 +89,7 @@ LilycoveCity_EventScript_14CBBE:: @ 814CBBE
LilycoveCity_EventScript_14CBC7:: @ 814CBC7
lock
faceplayer
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
goto_if_eq LilycoveCity_EventScript_14CBDC
msgbox LilycoveCity_Text_168750, 4
release
@@ -107,7 +107,7 @@ LilycoveCity_EventScript_14CBE6:: @ 814CBE6
LilycoveCity_EventScript_14CBEF:: @ 814CBEF
lock
faceplayer
- checkflag 112
+ checkflag FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE
goto_if_eq LilycoveCity_EventScript_14CC04
msgbox LilycoveCity_Text_1688C1, 4
release
@@ -121,7 +121,7 @@ LilycoveCity_EventScript_14CC04:: @ 814CC04
LilycoveCity_EventScript_14CC0E:: @ 814CC0E
lock
faceplayer
- checkflag 112
+ checkflag FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE
goto_if_eq LilycoveCity_EventScript_14CC23
msgbox LilycoveCity_Text_1689BF, 4
release
@@ -147,7 +147,7 @@ LilycoveCity_EventScript_14CC3F:: @ 814CC3F
LilycoveCity_EventScript_14CC48:: @ 814CC48
lock
faceplayer
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
goto_if_eq LilycoveCity_EventScript_14CC5D
msgbox LilycoveCity_Text_168C16, 4
release
@@ -186,7 +186,7 @@ LilycoveCity_EventScript_14CCA2:: @ 814CCA2
LilycoveCity_EventScript_14CCAC:: @ 814CCAC
lockall
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq LilycoveCity_EventScript_14CCC0
msgbox LilycoveCity_Text_168EDA, 4
releaseall
@@ -211,7 +211,7 @@ LilycoveCity_EventScript_14CCDC:: @ 814CCDC
LilycoveCity_EventScript_14CCE5:: @ 814CCE5
lockall
- checkflag 218
+ checkflag FLAG_MET_WAILMER_TRAINER
goto_if_eq LilycoveCity_EventScript_14CD18
msgbox LilycoveCity_Text_16864A, 4
applymovement LAST_TALKED, LilycoveCity_Movement_1A0839
@@ -219,7 +219,7 @@ LilycoveCity_EventScript_14CCE5:: @ 814CCE5
msgbox LilycoveCity_Text_168675, 4
applymovement LAST_TALKED, LilycoveCity_Movement_1A083D
waitmovement 0
- setflag 218
+ setflag FLAG_MET_WAILMER_TRAINER
releaseall
end
@@ -256,9 +256,9 @@ LilycoveCity_EventScript_14CD46:: @ 814CD46
LilycoveCity_EventScript_14CD60:: @ 814CD60
playbgm 415, 1
- checkflag 286
+ checkflag FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE
call_if 1, LilycoveCity_EventScript_14CDB0
- checkflag 286
+ checkflag FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE
call_if 0, LilycoveCity_EventScript_14CDB9
compare RESULT, 0
goto_if_eq LilycoveCity_EventScript_14CDC2
@@ -278,7 +278,7 @@ LilycoveCity_EventScript_14CDB9:: @ 814CDB9
return
LilycoveCity_EventScript_14CDC2:: @ 814CDC2
- setflag 286
+ setflag FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE
msgbox LilycoveCity_Text_167AEB, 4
savebgm 0
fadedefaultbgm
@@ -287,9 +287,9 @@ LilycoveCity_EventScript_14CDC2:: @ 814CDC2
LilycoveCity_EventScript_14CDD3:: @ 814CDD3
playbgm 421, 1
- checkflag 286
+ checkflag FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE
call_if 1, LilycoveCity_EventScript_14CE23
- checkflag 286
+ checkflag FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE
call_if 0, LilycoveCity_EventScript_14CE2C
compare RESULT, 0
goto_if_eq LilycoveCity_EventScript_14CE35
@@ -309,7 +309,7 @@ LilycoveCity_EventScript_14CE2C:: @ 814CE2C
return
LilycoveCity_EventScript_14CE35:: @ 814CE35
- setflag 286
+ setflag FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE
msgbox LilycoveCity_Text_16802C, 4
savebgm 0
fadedefaultbgm
@@ -349,19 +349,19 @@ LilycoveCity_EventScript_14CE96:: @ 814CE96
LilycoveCity_EventScript_14CEA6:: @ 814CEA6
msgbox LilycoveCity_Text_167C6B, 4
setvar RESULT, 0
- checkflag 2060
+ checkflag FLAG_BADGE06_GET
call_if 1, LilycoveCity_EventScript_14CEDE
compare RESULT, 0
call_if 1, LilycoveCity_EventScript_14CEEE
compare RESULT, 1
call_if 1, LilycoveCity_EventScript_14CEF7
- clearflag 722
- clearflag 849
+ clearflag FLAG_HIDE_MAY_UPSTAIRS
+ clearflag FLAG_HIDE_MAY_PICHU_DOLL
goto LilycoveCity_EventScript_14CF6B
end
LilycoveCity_EventScript_14CEDE:: @ 814CEDE
- checkflag 2062
+ checkflag FLAG_BADGE08_GET
goto_if_eq LilycoveCity_EventScript_14CEE8
return
@@ -374,7 +374,7 @@ LilycoveCity_EventScript_14CEEE:: @ 814CEEE
return
LilycoveCity_EventScript_14CEF7:: @ 814CEF7
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq LilycoveCity_EventScript_14CF09
msgbox LilycoveCity_Text_167DDD, 4
return
@@ -386,13 +386,13 @@ LilycoveCity_EventScript_14CF09:: @ 814CF09
LilycoveCity_EventScript_14CF12:: @ 814CF12
msgbox LilycoveCity_Text_168149, 4
setvar RESULT, 0
- checkflag 2060
+ checkflag FLAG_BADGE06_GET
call_if 1, LilycoveCity_EventScript_14CEDE
compare RESULT, 0
call_if 1, LilycoveCity_EventScript_14CF47
compare RESULT, 1
call_if 1, LilycoveCity_EventScript_14CF50
- clearflag 760
+ clearflag FLAG_HIDE_BRENDAN_UPSTAIRS
goto LilycoveCity_EventScript_14CF6B
end
@@ -401,7 +401,7 @@ LilycoveCity_EventScript_14CF47:: @ 814CF47
return
LilycoveCity_EventScript_14CF50:: @ 814CF50
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq LilycoveCity_EventScript_14CF62
msgbox LilycoveCity_Text_168282, 4
return
@@ -415,13 +415,13 @@ LilycoveCity_EventScript_14CF6B:: @ 814CF6B
applymovement LAST_TALKED, LilycoveCity_Movement_1A0845
waitmovement 0
delay 50
- setfieldeffect 0, 1
+ setfieldeffectargument 0, 1
dofieldeffect 30
delay 15
removeobject LAST_TALKED
waitfieldeffect 30
savebgm 0
fadedefaultbgm
- setflag 292
+ setflag FLAG_MET_RIVAL_LILYCOVE
release
end
diff --git a/data/scripts/maps/LilycoveCity_ContestLobby.inc b/data/scripts/maps/LilycoveCity_ContestLobby.inc
index 656516fd6..c97a01989 100644
--- a/data/scripts/maps/LilycoveCity_ContestLobby.inc
+++ b/data/scripts/maps/LilycoveCity_ContestLobby.inc
@@ -13,7 +13,7 @@ LilycoveCity_ContestLobby_MapScript2_158877:: @ 8158877
.2byte 0
LilycoveCity_ContestLobby_EventScript_158889:: @ 8158889
- checkflag 775
+ checkflag FLAG_HIDE_LILYCOVE_MUSEUM_CURATOR
goto_if_eq LilycoveCity_ContestLobby_EventScript_158898
setvar 0x4099, 0
end
@@ -97,23 +97,23 @@ LilycoveCity_ContestLobby_EventScript_158994:: @ 8158994
return
LilycoveCity_ContestLobby_EventScript_1589D6:: @ 81589D6
- clearflag 776
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_LADY
return
LilycoveCity_ContestLobby_EventScript_1589DA:: @ 81589DA
- clearflag 777
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_GIRL
return
LilycoveCity_ContestLobby_EventScript_1589DE:: @ 81589DE
- clearflag 778
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_MAN
return
LilycoveCity_ContestLobby_EventScript_1589E2:: @ 81589E2
- clearflag 779
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTER
return
LilycoveCity_ContestLobby_EventScript_1589E6:: @ 81589E6
- clearflag 780
+ clearflag FLAG_HIDE_LILYCOVE_MUSEUM_VISITORS
return
LilycoveCity_ContestLobby_EventScript_1589EA:: @ 81589EA
@@ -126,23 +126,23 @@ LilycoveCity_ContestLobby_EventScript_1589EA:: @ 81589EA
return
LilycoveCity_ContestLobby_EventScript_158A27:: @ 8158A27
- setflag 160
+ setflag FLAG_COOL_PAINTING_MADE
return
LilycoveCity_ContestLobby_EventScript_158A2B:: @ 8158A2B
- setflag 161
+ setflag FLAG_BEAUTY_PAINTING_MADE
return
LilycoveCity_ContestLobby_EventScript_158A2F:: @ 8158A2F
- setflag 162
+ setflag FLAG_CUTE_PAINTING_MADE
return
LilycoveCity_ContestLobby_EventScript_158A33:: @ 8158A33
- setflag 163
+ setflag FLAG_SMART_PAINTING_MADE
return
LilycoveCity_ContestLobby_EventScript_158A37:: @ 8158A37
- setflag 164
+ setflag FLAG_TOUGH_PAINTING_MADE
return
LilycoveCity_ContestLobby_Movement_158A3B:: @ 8158A3B
@@ -188,7 +188,7 @@ LilycoveCity_ContestLobby_Movement_158A52:: @ 8158A52
step_end
LilycoveCity_ContestLobby_EventScript_158A5B:: @ 8158A5B
- checkflag 775
+ checkflag FLAG_HIDE_LILYCOVE_MUSEUM_CURATOR
goto_if_eq LilycoveCity_ContestLobby_EventScript_158A6A
setvar 0x4099, 0
end
@@ -307,11 +307,11 @@ LilycoveCity_ContestLobby_EventScript_158B85:: @ 8158B85
checkitem ITEM_CONTEST_PASS, 1
compare RESULT, 0
goto_if_eq LilycoveCity_ContestLobby_EventScript_158BBA
- checkflag 2
+ checkflag FLAG_TEMP_2
goto_if_eq LilycoveCity_ContestLobby_EventScript_158BAE
message LilycoveCity_ContestLobby_Text_18848C
waitmessage
- setflag 2
+ setflag FLAG_TEMP_2
goto LilycoveCity_ContestLobby_EventScript_158BF0
end
@@ -334,7 +334,7 @@ LilycoveCity_ContestLobby_EventScript_158BC4:: @ 8158BC4
erasebox 0, 0, 15, 9
compare RESULT, 0
goto_if_eq LilycoveCity_ContestLobby_EventScript_158C35
- setflag 3
+ setflag FLAG_TEMP_3
return
LilycoveCity_ContestLobby_EventScript_158BF0:: @ 8158BF0
@@ -354,13 +354,13 @@ LilycoveCity_ContestLobby_EventScript_158C27:: @ 8158C27
LilycoveCity_ContestLobby_EventScript_158C35:: @ 8158C35
msgbox LilycoveCity_ContestLobby_Text_188559, 4
releaseall
- clearflag 3
+ clearflag FLAG_TEMP_3
end
LilycoveCity_ContestLobby_EventScript_158C42:: @ 8158C42
msgbox LilycoveCity_ContestLobby_Text_188703, 4
setvar CONTEST_RANK, 0
- choosecontestpkmn
+ choosecontestmon
compare 0x8004, 255
goto_if_eq LilycoveCity_ContestLobby_EventScript_158CEA
special sub_80C43F4
@@ -402,7 +402,7 @@ LilycoveCity_ContestLobby_EventScript_158CC0:: @ 8158CC0
end
LilycoveCity_ContestLobby_EventScript_158CEA:: @ 8158CEA
- checkflag 3
+ checkflag FLAG_TEMP_3
call_if 0, LilycoveCity_ContestLobby_EventScript_158BC4
message LilycoveCity_ContestLobby_Text_1886DC
waitmessage
@@ -445,7 +445,7 @@ LilycoveCity_ContestLobby_EventScript_158D90:: @ 8158D90
msgbox LilycoveCity_ContestLobby_Text_18878D, 4
closemessage
releaseall
- clearflag 3
+ clearflag FLAG_TEMP_3
end
LilycoveCity_ContestLobby_EventScript_158DA1:: @ 8158DA1
@@ -453,7 +453,7 @@ LilycoveCity_ContestLobby_EventScript_158DA1:: @ 8158DA1
msgbox LilycoveCity_ContestLobby_Text_1887F4, 4
closemessage
releaseall
- clearflag 3
+ clearflag FLAG_TEMP_3
end
LilycoveCity_ContestLobby_EventScript_158DB2:: @ 8158DB2
@@ -461,7 +461,7 @@ LilycoveCity_ContestLobby_EventScript_158DB2:: @ 8158DB2
msgbox LilycoveCity_ContestLobby_Text_18881F, 4
closemessage
releaseall
- clearflag 3
+ clearflag FLAG_TEMP_3
end
LilycoveCity_ContestLobby_EventScript_158DC3:: @ 8158DC3
@@ -472,7 +472,7 @@ LilycoveCity_ContestLobby_EventScript_158DC3:: @ 8158DC3
LilycoveCity_ContestLobby_EventScript_158DD1:: @ 8158DD1
special sub_80C496C
addvar 0x8004, 1
- getnumberstring 1, 32772
+ buffernumberstring 1, 32772
messageautoscroll LilycoveCity_ContestLobby_Text_188845
waitmessage
addvar 0x8004, 65535
@@ -497,14 +497,14 @@ LilycoveCity_ContestLobby_EventScript_158E0B:: @ 8158E0B
applymovement 2, LilycoveCity_ContestLobby_Movement_158E9C
waitmovement 0
playse 71
- setmaptile 9, 2, 545, 1
- setmaptile 9, 3, 609, 1
+ setmetatile 9, 2, 545, 1
+ setmetatile 9, 3, 609, 1
special DrawWholeMapView
applymovement 2, LilycoveCity_ContestLobby_Movement_158EA0
waitmovement 0
playse 71
- setmaptile 9, 2, 721, 1
- setmaptile 9, 3, 729, 1
+ setmetatile 9, 2, 721, 1
+ setmetatile 9, 3, 729, 1
special DrawWholeMapView
delay 20
applymovement 2, LilycoveCity_ContestLobby_Movement_158EAE
@@ -583,13 +583,13 @@ LilycoveCity_ContestLobby_EventScript_158EB0:: @ 8158EB0
end
LilycoveCity_ContestLobby_EventScript_158EE8:: @ 8158EE8
- setflag 775
+ setflag FLAG_HIDE_LILYCOVE_MUSEUM_CURATOR
copyvar 0x4094, 0x1
- additem ITEM_CONTEST_PASS, 1
+ giveitem ITEM_CONTEST_PASS, 1
setvar 0x800b, 8
setvar CONTEST_RANK, 3
setvar 0x4099, 1
- setflag 2107
+ setflag FLAG_SYS_RIBBON_GET
end
LilycoveCity_ContestLobby_EventScript_158F08:: @ 8158F08
@@ -636,14 +636,14 @@ LilycoveCity_ContestLobby_EventScript_158F86:: @ 8158F86
applymovement 1, LilycoveCity_ContestLobby_Movement_15900B
waitmovement 0
playse 71
- setmaptile 4, 2, 545, 1
- setmaptile 4, 3, 609, 1
+ setmetatile 4, 2, 545, 1
+ setmetatile 4, 3, 609, 1
special DrawWholeMapView
applymovement 1, LilycoveCity_ContestLobby_Movement_15900F
waitmovement 0
playse 71
- setmaptile 4, 2, 721, 1
- setmaptile 4, 3, 729, 1
+ setmetatile 4, 2, 721, 1
+ setmetatile 4, 3, 729, 1
special DrawWholeMapView
delay 20
applymovement 1, LilycoveCity_ContestLobby_Movement_15901C
@@ -707,7 +707,7 @@ LilycoveCity_ContestLobby_EventScript_15901E:: @ 815901E
end
LilycoveCity_ContestLobby_EventScript_159027:: @ 8159027
- checkflag 150
+ checkflag FLAG_RECEIVED_CONTEST_PASS
goto_if 0, LilycoveCity_ContestLobby_EventScript_159039
msgbox LilycoveCity_ContestLobby_Text_188DDA, 2
end
@@ -765,7 +765,7 @@ LilycoveCity_ContestLobby_EventScript_15908D:: @ 815908D
SlateportCity_ContestLobby_EventScript_15908D:: @ 815908D
lockall
special ShowBerryBlenderRecordWindow
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
diff --git a/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc b/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc
index 7b602b2c7..3e4caf100 100644
--- a/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc
+++ b/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc
@@ -3,9 +3,9 @@ LilycoveCity_CoveLilyMotel_1F_MapScripts:: @ 81582C4
LilycoveCity_CoveLilyMotel_1F_EventScript_1582C5:: @ 81582C5
lockall
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq LilycoveCity_CoveLilyMotel_1F_EventScript_158326
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
goto_if_eq LilycoveCity_CoveLilyMotel_1F_EventScript_1582FF
msgbox LilycoveCity_CoveLilyMotel_1F_Text_186B71, 4
applymovement 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A0839
diff --git a/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc b/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc
index fd9ea8a58..00a10b655 100644
--- a/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc
+++ b/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc
@@ -4,9 +4,9 @@ LilycoveCity_CoveLilyMotel_2F_MapScripts:: @ 81583A0
LilycoveCity_CoveLilyMotel_2F_EventScript_1583A1:: @ 81583A1
lock
faceplayer
- checkflag 2
+ checkflag FLAG_TEMP_2
call_if 0, LilycoveCity_CoveLilyMotel_2F_EventScript_1583C7
- checkflag 2
+ checkflag FLAG_TEMP_2
call_if 1, LilycoveCity_CoveLilyMotel_2F_EventScript_1583DD
specialvar RESULT, sub_8090FC0
compare RESULT, 1
@@ -19,7 +19,7 @@ LilycoveCity_CoveLilyMotel_2F_EventScript_1583C7:: @ 81583C7
return
LilycoveCity_CoveLilyMotel_2F_EventScript_1583D0:: @ 81583D0
- setflag 2
+ setflag FLAG_TEMP_2
playfanfare 370
waitfanfare
goto LilycoveCity_CoveLilyMotel_2F_EventScript_1583DD
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc b/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc
index 0e6bdc140..ca60bbc89 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc
@@ -4,7 +4,7 @@ LilycoveCity_DepartmentStoreElevator_MapScripts:: @ 815A39B
LilycoveCity_DepartmentStoreElevator_EventScript_15A39C:: @ 815A39C
lock
faceplayer
- checkflag 2
+ checkflag FLAG_TEMP_2
call_if 0, LilycoveCity_DepartmentStoreElevator_EventScript_15A4CF
copyvar 0x8005, 0x4043
special sub_810E944
@@ -76,7 +76,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8:: @ 815A4B8
waitmovement 0
special sub_810EBEC
waitstate
- setflag 2
+ setflag FLAG_TEMP_2
return
LilycoveCity_DepartmentStoreElevator_EventScript_15A4CF:: @ 815A4CF
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc b/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
index 29914a9b5..2806b6125 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
@@ -11,11 +11,11 @@ LilycoveCity_DepartmentStoreRooftop_MapScript1_15A145:: @ 815A145
end
LilycoveCity_DepartmentStoreRooftop_EventScript_15A15F:: @ 815A15F
- clearflag 962
+ clearflag FLAG_HIDE_ROOFTOP_LADY_LILYCOVE_MART
return
LilycoveCity_DepartmentStoreRooftop_EventScript_15A163:: @ 815A163
- setflag 962
+ setflag FLAG_HIDE_ROOFTOP_LADY_LILYCOVE_MART
return
LilycoveCity_DepartmentStoreRooftop_EventScript_15A167:: @ 815A167
@@ -23,7 +23,7 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A167:: @ 815A167
faceplayer
message LilycoveCity_DepartmentStoreRooftop_Text_1A0BE4
waitmessage
- pokemartdecor LilycoveCity_DepartmentStoreRooftop_Decorations
+ pokemartdecoration LilycoveCity_DepartmentStoreRooftop_Decorations
msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C02, 4
release
end
@@ -146,12 +146,12 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A260
updatemoneybox 0, 0
nop
- getitemname 0, 0x4000
+ bufferitemname 0, 0x4000
playse 106
msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C75F, 4
- additem 0x4000, 1
- getitemname 1, 0x4000
- getstdstring 2, 14
+ giveitem 0x4000, 1
+ bufferitemname 1, 0x4000
+ bufferstdstring 2, 14
msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C8C, 4
random 64
compare RESULT, 0
@@ -161,9 +161,9 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
playse 106
msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C780, 4
- additem 0x4000, 1
- getitemname 1, 0x4000
- getstdstring 2, 14
+ giveitem 0x4000, 1
+ bufferitemname 1, 0x4000
+ bufferstdstring 2, 14
msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C8C, 4
random 64
compare RESULT, 0
@@ -173,9 +173,9 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
playse 106
msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C780, 4
- additem 0x4000, 1
- getitemname 1, 0x4000
- getstdstring 2, 14
+ giveitem 0x4000, 1
+ bufferitemname 1, 0x4000
+ bufferstdstring 2, 14
msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C8C, 4
goto LilycoveCity_DepartmentStoreRooftop_EventScript_15A36E
end
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc b/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc
index 7acd29523..dbfd79e98 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc
@@ -11,12 +11,12 @@ LilycoveCity_DepartmentStore_1F_EventScript_159D5E:: @ 8159D5E
dodailyevents
compare 0x4045, 0
goto_if 5, LilycoveCity_DepartmentStore_1F_EventScript_159EB1
- checkflag 2250
+ checkflag FLAG_DAILY_PICKED_LOTTO_TICKET
goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E4C
msgbox LilycoveCity_DepartmentStore_1F_Text_1C4B5E, 5
compare RESULT, 0
goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E56
- setflag 2250
+ setflag FLAG_DAILY_PICKED_LOTTO_TICKET
message LilycoveCity_DepartmentStore_1F_Text_1C4CC6
waitmessage
special RetrieveLotteryNumber
@@ -40,7 +40,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_159D5E:: @ 8159D5E
call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E3A
compare 0x8006, 1
call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E43
- getitemname 0, 0x8005
+ bufferitemname 0, 0x8005
compare 0x8004, 1
call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E78
compare 0x8004, 2
@@ -49,7 +49,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_159D5E:: @ 8159D5E
call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E8A
compare 0x8004, 4
call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E93
- giveitem 0x8005
+ giveitem_std 0x8005
compare RESULT, 0
goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E9C
goto LilycoveCity_DepartmentStore_1F_EventScript_159E6E
@@ -111,7 +111,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_159EA7:: @ 8159EA7
LilycoveCity_DepartmentStore_1F_EventScript_159EB1:: @ 8159EB1
msgbox LilycoveCity_DepartmentStore_1F_Text_1C4FCC, 4
- giveitem 0x4045
+ giveitem_std 0x4045
compare RESULT, 0
goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159EA7
setvar 0x4045, 0
@@ -134,9 +134,9 @@ LilycoveCity_DepartmentStore_1F_EventScript_159EF2:: @ 8159EF2
lock
faceplayer
waitse
- playpokecry SPECIES_AZUMARILL, 0
+ playmoncry SPECIES_AZUMARILL, 0
msgbox LilycoveCity_DepartmentStore_1F_Text_18C0C3, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStore_5F.inc b/data/scripts/maps/LilycoveCity_DepartmentStore_5F.inc
index 835a0f48d..184d3b816 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStore_5F.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStore_5F.inc
@@ -6,7 +6,7 @@ LilycoveCity_DepartmentStore_5F_EventScript_15A061:: @ 815A061
faceplayer
message LilycoveCity_DepartmentStore_5F_Text_1A0BE4
waitmessage
- pokemartbp LilycoveCity_DepartmentStore_5F_Items1
+ pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Items1
msgbox LilycoveCity_DepartmentStore_5F_Text_1A0C02, 4
release
end
@@ -34,7 +34,7 @@ LilycoveCity_DepartmentStore_5F_EventScript_15A094:: @ 815A094
faceplayer
message LilycoveCity_DepartmentStore_5F_Text_1A0BE4
waitmessage
- pokemartbp LilycoveCity_DepartmentStore_5F_Items2
+ pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Items2
msgbox LilycoveCity_DepartmentStore_5F_Text_1A0C02, 4
release
end
@@ -59,7 +59,7 @@ LilycoveCity_DepartmentStore_5F_EventScript_15A0C2:: @ 815A0C2
faceplayer
message LilycoveCity_DepartmentStore_5F_Text_1A0BE4
waitmessage
- pokemartbp LilycoveCity_DepartmentStore_5F_Items3
+ pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Items3
msgbox LilycoveCity_DepartmentStore_5F_Text_1A0C02, 4
release
end
@@ -84,7 +84,7 @@ LilycoveCity_DepartmentStore_5F_EventScript_15A0F2:: @ 815A0F2
faceplayer
message LilycoveCity_DepartmentStore_5F_Text_1A0BE4
waitmessage
- pokemartbp LilycoveCity_DepartmentStore_5F_Items4
+ pokemartdecoration2 LilycoveCity_DepartmentStore_5F_Items4
msgbox LilycoveCity_DepartmentStore_5F_Text_1A0C02, 4
release
end
diff --git a/data/scripts/maps/LilycoveCity_Harbor.inc b/data/scripts/maps/LilycoveCity_Harbor.inc
index 4dcc1ba71..9687c73fe 100644
--- a/data/scripts/maps/LilycoveCity_Harbor.inc
+++ b/data/scripts/maps/LilycoveCity_Harbor.inc
@@ -16,7 +16,7 @@ LilycoveCity_Harbor_EventScript_1598A2:: @ 81598A2
end
LilycoveCity_Harbor_EventScript_1598BA:: @ 81598BA
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq LilycoveCity_Harbor_EventScript_1598CD
msgbox LilycoveCity_Harbor_Text_18B306, 4
release
@@ -79,13 +79,13 @@ LilycoveCity_Harbor_EventScript_15998A:: @ 815998A
applymovement LAST_TALKED, LilycoveCity_Harbor_Movement_1A0841
waitmovement 0
delay 30
- hideobject LAST_TALKED, 13, 10
+ hideobjectat LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR
compare FACING, 2
call_if 1, LilycoveCity_Harbor_EventScript_1599D9
compare FACING, 4
call_if 1, LilycoveCity_Harbor_EventScript_1599CE
delay 30
- hideobject 255, 0, 0
+ hideobjectat 255, MAP_PETALBURG_CITY
setvar 0x8004, 2
call LilycoveCity_Harbor_EventScript_1A040E
return
@@ -106,18 +106,18 @@ LilycoveCity_Harbor_EventScript_1599E4:: @ 81599E4
end
LilycoveCity_Harbor_EventScript_1599EE:: @ 81599EE
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if 0, LilycoveCity_Harbor_EventScript_1598BA
- checkflag 206
+ checkflag FLAG_ECOUNTERED_LATIAS_OR_LATIOS
goto_if_eq LilycoveCity_Harbor_EventScript_1598BA
- checkflag 2131
+ checkflag FLAG_SYS_HAS_EON_TICKET
goto_if 0, LilycoveCity_Harbor_EventScript_1598BA
msgbox LilycoveCity_Harbor_Text_1C50F2, 4
closemessage
applymovement LAST_TALKED, LilycoveCity_Harbor_Movement_1A0841
waitmovement 0
delay 30
- hideobject LAST_TALKED, 13, 10
+ hideobjectat LAST_TALKED, MAP_LILYCOVE_CITY_HARBOR
delay 60
addobject 4
delay 30
@@ -134,7 +134,7 @@ LilycoveCity_Harbor_EventScript_1599EE:: @ 81599EE
compare FACING, 4
call_if 1, LilycoveCity_Harbor_EventScript_1599CE
delay 30
- hideobject 255, 0, 0
+ hideobjectat 255, MAP_PETALBURG_CITY
special ScrSpecial_HealPlayerParty
setvar 0x8004, 2
call LilycoveCity_Harbor_EventScript_1A040E
@@ -159,7 +159,7 @@ LilycoveCity_Harbor_Movement_159A89:: @ 8159A89
LilycoveCity_Harbor_EventScript_159A8D:: @ 8159A8D
lock
faceplayer
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq LilycoveCity_Harbor_EventScript_159AA2
msgbox LilycoveCity_Harbor_Text_18B504, 4
release
diff --git a/data/scripts/maps/LilycoveCity_House1.inc b/data/scripts/maps/LilycoveCity_House1.inc
index 4defe37b8..15535a122 100644
--- a/data/scripts/maps/LilycoveCity_House1.inc
+++ b/data/scripts/maps/LilycoveCity_House1.inc
@@ -9,8 +9,8 @@ LilycoveCity_House1_EventScript_159B8F:: @ 8159B8F
lock
faceplayer
waitse
- playpokecry SPECIES_KECLEON, 0
+ playmoncry SPECIES_KECLEON, 0
msgbox LilycoveCity_House1_Text_18B82B, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/LilycoveCity_House2.inc b/data/scripts/maps/LilycoveCity_House2.inc
index d3399f5ac..d0065c9e8 100644
--- a/data/scripts/maps/LilycoveCity_House2.inc
+++ b/data/scripts/maps/LilycoveCity_House2.inc
@@ -4,13 +4,13 @@ LilycoveCity_House2_MapScripts:: @ 8159BA2
LilycoveCity_House2_EventScript_159BA3:: @ 8159BA3
lock
faceplayer
- checkflag 234
+ checkflag FLAG_RECEIVED_TM44
goto_if_eq LilycoveCity_House2_EventScript_159BDA
msgbox LilycoveCity_House2_Text_18B83C, 4
- giveitem ITEM_TM44
+ giveitem_std ITEM_TM44
compare RESULT, 0
goto_if_eq LilycoveCity_House2_EventScript_1A029B
- setflag 234
+ setflag FLAG_RECEIVED_TM44
msgbox LilycoveCity_House2_Text_18B883, 4
release
end
diff --git a/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc b/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
index a4599f14a..577805fb2 100644
--- a/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
+++ b/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
@@ -4,61 +4,61 @@ LilycoveCity_LilycoveMuseum_2F_MapScripts:: @ 81585AC
.byte 0
LilycoveCity_LilycoveMuseum_2F_MapScript1_1585B7:: @ 81585B7
- checkflag 160
+ checkflag FLAG_COOL_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_1585FD
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585C6
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585C6:: @ 81585C6
- checkflag 161
+ checkflag FLAG_BEAUTY_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158615
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585D5
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585D5:: @ 81585D5
- checkflag 162
+ checkflag FLAG_CUTE_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15862D
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585E4
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585E4:: @ 81585E4
- checkflag 163
+ checkflag FLAG_SMART_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158645
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585F3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585F3:: @ 81585F3
- checkflag 164
+ checkflag FLAG_TOUGH_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15865D
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585FD:: @ 81585FD
- setmaptile 10, 6, 606, 1
- setmaptile 11, 6, 607, 1
+ setmetatile 10, 6, 606, 1
+ setmetatile 11, 6, 607, 1
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585C6
end
LilycoveCity_LilycoveMuseum_2F_EventScript_158615:: @ 8158615
- setmaptile 18, 6, 604, 1
- setmaptile 19, 6, 605, 1
+ setmetatile 18, 6, 604, 1
+ setmetatile 19, 6, 605, 1
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585D5
end
LilycoveCity_LilycoveMuseum_2F_EventScript_15862D:: @ 815862D
- setmaptile 14, 10, 608, 1
- setmaptile 15, 10, 609, 1
+ setmetatile 14, 10, 608, 1
+ setmetatile 15, 10, 609, 1
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585E4
end
LilycoveCity_LilycoveMuseum_2F_EventScript_158645:: @ 8158645
- setmaptile 6, 10, 602, 1
- setmaptile 7, 10, 603, 1
+ setmetatile 6, 10, 602, 1
+ setmetatile 7, 10, 603, 1
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585F3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_15865D:: @ 815865D
- setmaptile 2, 6, 610, 1
- setmaptile 3, 6, 611, 1
+ setmetatile 2, 6, 610, 1
+ setmetatile 3, 6, 611, 1
end
LilycoveCity_LilycoveMuseum_2F_MapScript2_158670:: @ 8158670
@@ -96,7 +96,7 @@ LilycoveCity_LilycoveMuseum_2F_Movement_1586D5:: @ 81586D5
LilycoveCity_LilycoveMuseum_2F_EventScript_1586D8:: @ 81586D8
lockall
- checkflag 236
+ checkflag FLAG_RECEIVED_GLASS_ORNAMENT
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158793
specialvar 0x8004, sub_80C4D50
switch 0x8004
@@ -124,10 +124,10 @@ LilycoveCity_LilycoveMuseum_2F_EventScript_158735:: @ 8158735
LilycoveCity_LilycoveMuseum_2F_EventScript_15875C:: @ 815875C
applymovement 1, LilycoveCity_LilycoveMuseum_2F_Movement_1A0839
msgbox LilycoveCity_LilycoveMuseum_2F_Text_188120, 4
- givedecoration 44
+ givedecoration_std DECOR_GLASS_ORNAMENT
compare RESULT, 0
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158783
- setflag 236
+ setflag FLAG_RECEIVED_GLASS_ORNAMENT
closemessage
releaseall
end
@@ -146,35 +146,35 @@ LilycoveCity_LilycoveMuseum_2F_EventScript_158793:: @ 8158793
LilycoveCity_LilycoveMuseum_2F_EventScript_15879D:: @ 815879D
lockall
- checkflag 162
+ checkflag FLAG_CUTE_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15883C
msgbox LilycoveCity_LilycoveMuseum_2F_Text_188219, 3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1587B0:: @ 81587B0
lockall
- checkflag 164
+ checkflag FLAG_TOUGH_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158858
msgbox LilycoveCity_LilycoveMuseum_2F_Text_18824C, 3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1587C3:: @ 81587C3
lockall
- checkflag 160
+ checkflag FLAG_COOL_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158820
msgbox LilycoveCity_LilycoveMuseum_2F_Text_1882B4, 3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1587D6:: @ 81587D6
lockall
- checkflag 161
+ checkflag FLAG_BEAUTY_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15882E
msgbox LilycoveCity_LilycoveMuseum_2F_Text_188281, 3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1587E9:: @ 81587E9
lockall
- checkflag 163
+ checkflag FLAG_SMART_PAINTING_MADE
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15884A
msgbox LilycoveCity_LilycoveMuseum_2F_Text_1882E6, 3
end
diff --git a/data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc b/data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc
index 20b5c5f13..38428311b 100644
--- a/data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc
@@ -3,14 +3,14 @@ LilycoveCity_PokemonCenter_1F_MapScripts:: @ 8159327
.byte 0
LilycoveCity_PokemonCenter_1F_MapScript1_15932D:: @ 815932D
- sethealplace 8
+ setrespawn 8
end
LilycoveCity_PokemonCenter_1F_EventScript_159331:: @ 8159331
setvar 0x800b, 1
call LilycoveCity_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
@@ -21,7 +21,7 @@ LilycoveCity_PokemonCenter_1F_EventScript_15933F:: @ 815933F
LilycoveCity_PokemonCenter_1F_EventScript_159348:: @ 8159348
lock
faceplayer
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_15935D
msgbox LilycoveCity_PokemonCenter_1F_Text_18A048, 4
release
diff --git a/data/scripts/maps/LittlerootTown.inc b/data/scripts/maps/LittlerootTown.inc
index 3027e1f77..13c18d51e 100644
--- a/data/scripts/maps/LittlerootTown.inc
+++ b/data/scripts/maps/LittlerootTown.inc
@@ -4,10 +4,10 @@ LittlerootTown_MapScripts:: @ 814D509
.byte 0
LittlerootTown_MapScript1_14D514:: @ 814D514
- setflag 2063
+ setflag FLAG_VISITED_LITTLEROOT_TOWN
compare 0x4092, 2
call_if 1, LittlerootTown_EventScript_14D57B
- checkflag 82
+ checkflag FLAG_RESCUED_BIRCH
call_if 0, LittlerootTown_EventScript_14D583
compare 0x4050, 3
call_if 1, LittlerootTown_EventScript_14D5A6
@@ -22,12 +22,12 @@ LittlerootTown_MapScript1_14D514:: @ 814D514
end
LittlerootTown_EventScript_14D563:: @ 814D563
- setflag 301
+ setflag FLAG_RIVAL_LEFT_FOR_ROUTE103
return
LittlerootTown_EventScript_14D567:: @ 814D567
setvar 0x40c7, 2
- setflag 979
+ setflag FLAG_HIDE_RIVAL_OLDALE_TOWN
return
LittlerootTown_EventScript_14D570:: @ 814D570
@@ -52,7 +52,7 @@ LittlerootTown_EventScript_14D59A:: @ 814D59A
return
LittlerootTown_EventScript_14D5A6:: @ 814D5A6
- clearflag 752
+ clearflag FLAG_HIDE_MOM_LITTLEROOT
setobjectmovementtype 4, 8
checkplayergender
compare RESULT, 0
@@ -80,7 +80,7 @@ LittlerootTown_EventScript_14D5EF:: @ 814D5EF
setvar 0x8004, 5
setvar 0x8005, 8
call LittlerootTown_EventScript_14D62B
- setflag 761
+ setflag FLAG_HIDE_MOVING_TRUCK_BRENDAN
warpsilent MAP_LITTLEROOT_TOWN_BRENDANS_HOUSE_1F, 255, 8, 8
waitstate
releaseall
@@ -91,7 +91,7 @@ LittlerootTown_EventScript_14D60D:: @ 814D60D
setvar 0x8004, 14
setvar 0x8005, 8
call LittlerootTown_EventScript_14D62B
- setflag 762
+ setflag FLAG_HIDE_MOVING_TRUCK_MAY
warpsilent MAP_LITTLEROOT_TOWN_MAYS_HOUSE_1F, 255, 2, 8
waitstate
releaseall
@@ -122,12 +122,12 @@ LittlerootTown_EventScript_14D62B:: @ 814D62B
applymovement 4, LittlerootTown_Movement_14D6B5
applymovement 255, LittlerootTown_Movement_14D6BD
waitmovement 0
- setflag 752
+ setflag FLAG_HIDE_MOM_LITTLEROOT
setvar 0x4092, 3
- hideobject 255, 0, 0
+ hideobjectat 255, MAP_PETALBURG_CITY
closedoor 0x8004, 0x8005
waitdooranim
- clearflag 868
+ clearflag FLAG_HIDE_FAT_MAN_LITTLEROOT
clearflag 0x4000
return
@@ -187,9 +187,9 @@ LittlerootTown_EventScript_14D6D6:: @ 814D6D6
LittlerootTown_EventScript_14D6DF:: @ 814D6DF
lock
faceplayer
- checkflag 116
+ checkflag FLAG_ADVENTURE_STARTED
goto_if_eq LittlerootTown_EventScript_14D72F
- checkflag 82
+ checkflag FLAG_RESCUED_BIRCH
goto_if_eq LittlerootTown_EventScript_14D722
compare 0x4050, 0
goto_if 5, LittlerootTown_EventScript_14D708
@@ -599,7 +599,7 @@ LittlerootTown_EventScript_14DB46:: @ 814DB46
waitdooranim
applymovement 4, LittlerootTown_Movement_14DCE0
waitmovement 0
- hideobject 4, 0, 9
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
closedoor 0x8009, 0x800a
waitdooranim
return
@@ -611,7 +611,7 @@ LittlerootTown_EventScript_14DB6C:: @ 814DB6C
waitdooranim
applymovement 4, LittlerootTown_Movement_14DCE0
waitmovement 0
- hideobject 4, 0, 9
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
closedoor 0x8009, 0x800a
waitdooranim
return
@@ -623,7 +623,7 @@ LittlerootTown_EventScript_14DB92:: @ 814DB92
waitdooranim
applymovement 4, LittlerootTown_Movement_14DCE0
waitmovement 0
- hideobject 4, 0, 9
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
closedoor 0x8009, 0x800a
waitdooranim
return
@@ -635,7 +635,7 @@ LittlerootTown_EventScript_14DBB8:: @ 814DBB8
waitdooranim
applymovement 4, LittlerootTown_Movement_14DCE0
waitmovement 0
- hideobject 4, 0, 9
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
closedoor 0x8009, 0x800a
waitdooranim
return
@@ -647,7 +647,7 @@ LittlerootTown_EventScript_14DBDE:: @ 814DBDE
waitdooranim
applymovement 4, LittlerootTown_Movement_14DCE0
waitmovement 0
- hideobject 4, 0, 9
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
closedoor 0x8009, 0x800a
waitdooranim
return
@@ -659,7 +659,7 @@ LittlerootTown_EventScript_14DC04:: @ 814DC04
waitdooranim
applymovement 4, LittlerootTown_Movement_14DCE0
waitmovement 0
- hideobject 4, 0, 9
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
closedoor 0x8009, 0x800a
waitdooranim
return
@@ -671,7 +671,7 @@ LittlerootTown_EventScript_14DC2A:: @ 814DC2A
waitdooranim
applymovement 4, LittlerootTown_Movement_14DCE0
waitmovement 0
- hideobject 4, 0, 9
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
closedoor 0x8009, 0x800a
waitdooranim
return
@@ -683,7 +683,7 @@ LittlerootTown_EventScript_14DC50:: @ 814DC50
waitdooranim
applymovement 4, LittlerootTown_Movement_14DCE0
waitmovement 0
- hideobject 4, 0, 9
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
closedoor 0x8009, 0x800a
waitdooranim
return
@@ -853,7 +853,7 @@ LittlerootTown_EventScript_14DCE2:: @ 814DCE2
waitdooranim
applymovement 4, LittlerootTown_Movement_14DCE0
waitmovement 0
- hideobject 4, 0, 9
+ hideobjectat 4, MAP_LITTLEROOT_TOWN
closedoor 0x8009, 0x800a
waitdooranim
goto LittlerootTown_EventScript_14DD2B
@@ -861,7 +861,7 @@ LittlerootTown_EventScript_14DCE2:: @ 814DCE2
LittlerootTown_EventScript_14DD2B:: @ 814DD2B
removeobject 4
- setflag 2144
+ setflag FLAG_SYS_B_DASH
setvar 0x4050, 4
release
end
@@ -872,7 +872,7 @@ LittlerootTown_EventScript_14DD38:: @ 814DD38
message LittlerootTown_Text_16AA32
waitfanfare
waitmessage
- setflag 274
+ setflag FLAG_RECEIVED_RUNNING_SHOES
msgbox LittlerootTown_Text_16AA5C, 4
msgbox LittlerootTown_Text_16AB10, 4
closemessage
diff --git a/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc b/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc
index d3694bd22..d4dd94aae 100644
--- a/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc
+++ b/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc
@@ -7,13 +7,13 @@ LittlerootTown_BrendansHouse_1F_MapScripts:: @ 815263B
LittlerootTown_BrendansHouse_1F_MapScript1_15264B:: @ 815264B
compare 0x4092, 6
call_if 0, LittlerootTown_BrendansHouse_1F_EventScript_152660
- checkflag 274
+ checkflag FLAG_RECEIVED_RUNNING_SHOES
call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_152673
end
LittlerootTown_BrendansHouse_1F_EventScript_152660:: @ 8152660
- setmaptile 5, 4, 624, 1
- setmaptile 5, 2, 616, 1
+ setmetatile 5, 4, 624, 1
+ setmetatile 5, 2, 616, 1
return
LittlerootTown_BrendansHouse_1F_EventScript_152673:: @ 8152673
@@ -23,7 +23,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_152673:: @ 8152673
return
LittlerootTown_BrendansHouse_1F_EventScript_152680:: @ 8152680
- setmaptile 3, 7, 659, 1
+ setmetatile 3, 7, 659, 1
return
LittlerootTown_BrendansHouse_1F_MapScript1_15268A:: @ 815268A
@@ -100,7 +100,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_152744:: @ 8152744
waitmovement 0
special GetRivalSonDaughterString
msgbox LittlerootTown_BrendansHouse_1F_Text_1730C2, 4
- setflag 87
+ setflag FLAG_MET_RIVAL_MOM
setvar 0x4082, 2
releaseall
end
diff --git a/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc b/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
index 8ff7f8b81..8f3b07312 100644
--- a/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
+++ b/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
@@ -4,7 +4,7 @@ LittlerootTown_BrendansHouse_2F_MapScripts:: @ 81527A4
.byte 0
LittlerootTown_BrendansHouse_2F_MapScript1_1527AF:: @ 81527AF
- checkflag 130
+ checkflag FLAG_DEFEATED_RIVAL_ROUTE103
call_if 0, LittlerootTown_BrendansHouse_2F_EventScript_1527CE
compare 0x4092, 4
call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1B6950
diff --git a/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc b/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc
index a4d6f2403..e23a05243 100644
--- a/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc
+++ b/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc
@@ -7,13 +7,13 @@ LittlerootTown_MaysHouse_1F_MapScripts:: @ 8152879
LittlerootTown_MaysHouse_1F_MapScript1_152889:: @ 8152889
compare 0x4092, 6
call_if 0, LittlerootTown_MaysHouse_1F_EventScript_15289E
- checkflag 274
+ checkflag FLAG_RECEIVED_RUNNING_SHOES
call_if 1, LittlerootTown_MaysHouse_1F_EventScript_1528B1
end
LittlerootTown_MaysHouse_1F_EventScript_15289E:: @ 815289E
- setmaptile 5, 4, 624, 1
- setmaptile 5, 2, 616, 1
+ setmetatile 5, 4, 624, 1
+ setmetatile 5, 2, 616, 1
return
LittlerootTown_MaysHouse_1F_EventScript_1528B1:: @ 81528B1
@@ -23,7 +23,7 @@ LittlerootTown_MaysHouse_1F_EventScript_1528B1:: @ 81528B1
return
LittlerootTown_MaysHouse_1F_EventScript_1528BE:: @ 81528BE
- setmaptile 6, 7, 659, 1
+ setmetatile 6, 7, 659, 1
return
LittlerootTown_MaysHouse_1F_MapScript1_1528C8:: @ 81528C8
@@ -100,7 +100,7 @@ LittlerootTown_MaysHouse_1F_EventScript_152982:: @ 8152982
waitmovement 0
special GetRivalSonDaughterString
msgbox LittlerootTown_MaysHouse_1F_Text_1730C2, 4
- setflag 87
+ setflag FLAG_MET_RIVAL_MOM
setvar 0x408c, 2
releaseall
end
@@ -135,9 +135,9 @@ LittlerootTown_BrendansHouse_1F_EventScript_1529EB:: @ 81529EB
LittlerootTown_MaysHouse_1F_EventScript_1529EB:: @ 81529EB
lock
faceplayer
- checkflag 130
+ checkflag FLAG_DEFEATED_RIVAL_ROUTE103
goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_152A21
- checkflag 301
+ checkflag FLAG_RIVAL_LEFT_FOR_ROUTE103
goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_152A17
compare 0x408d, 3
goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_152A2B
diff --git a/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc b/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc
index 68bdf0fcb..020c39eac 100644
--- a/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc
+++ b/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc
@@ -4,7 +4,7 @@ LittlerootTown_MaysHouse_2F_MapScripts:: @ 8152A50
.byte 0
LittlerootTown_MaysHouse_2F_MapScript1_152A5B:: @ 8152A5B
- checkflag 130
+ checkflag FLAG_DEFEATED_RIVAL_ROUTE103
call_if 0, LittlerootTown_MaysHouse_2F_EventScript_152A7A
compare 0x4092, 4
call_if 1, LittlerootTown_MaysHouse_2F_EventScript_1B6950
@@ -30,7 +30,7 @@ LittlerootTown_MaysHouse_2F_EventScript_152A90:: @ 8152A90
LittlerootTown_BrendansHouse_2F_EventScript_152A9D:: @ 8152A9D
LittlerootTown_MaysHouse_2F_EventScript_152A9D:: @ 8152A9D
lockall
- checkflag 292
+ checkflag FLAG_MET_RIVAL_LILYCOVE
goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152BB5
checkplayergender
compare RESULT, 0
@@ -117,18 +117,18 @@ LittlerootTown_BrendansHouse_2F_EventScript_152BB5:: @ 8152BB5
call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152BDB
compare RESULT, 1
call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152BED
- setflag 293
+ setflag FLAG_MET_RIVAL_IN_HOUSE_AFTER_LILYCOVE
releaseall
end
LittlerootTown_BrendansHouse_2F_EventScript_152BDB:: @ 8152BDB
- checkflag 293
+ checkflag FLAG_MET_RIVAL_IN_HOUSE_AFTER_LILYCOVE
goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152BFF
msgbox LittlerootTown_BrendansHouse_2F_Text_1737AE, 4
return
LittlerootTown_BrendansHouse_2F_EventScript_152BED:: @ 8152BED
- checkflag 293
+ checkflag FLAG_MET_RIVAL_IN_HOUSE_AFTER_LILYCOVE
goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152C08
msgbox LittlerootTown_BrendansHouse_2F_Text_1738F2, 4
return
diff --git a/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc b/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc
index e7ccd73f6..6792c5932 100644
--- a/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc
+++ b/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc
@@ -24,7 +24,7 @@ LittlerootTown_ProfessorBirchsLab_MapScript2_152CAC:: @ 8152CAC
LittlerootTown_ProfessorBirchsLab_EventScript_152CBE:: @ 8152CBE
lockall
- getfirstpartypokename 0
+ bufferleadmonspeciesname 0
message LittlerootTown_ProfessorBirchsLab_Text_173D94
waitmessage
playfanfare 370
@@ -52,7 +52,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152CFA:: @ 8152CFA
LittlerootTown_ProfessorBirchsLab_EventScript_152D19:: @ 8152D19
msgbox LittlerootTown_ProfessorBirchsLab_Text_174015, 4
- clearflag 991
+ clearflag FLAG_HIDE_BOY_ROUTE101
setvar 0x4084, 3
releaseall
end
@@ -87,10 +87,10 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152D63:: @ 8152D63
faceplayer
compare 0x4084, 3
goto_if 4, LittlerootTown_ProfessorBirchsLab_EventScript_152D90
- checkflag 88
+ checkflag FLAG_BIRCH_AIDE_MET
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D86
msgbox LittlerootTown_ProfessorBirchsLab_Text_173B29, 4
- setflag 88
+ setflag FLAG_BIRCH_AIDE_MET
release
end
@@ -107,7 +107,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152D90:: @ 8152D90
LittlerootTown_ProfessorBirchsLab_EventScript_152D9A:: @ 8152D9A
lock
faceplayer
- checkflag 896
+ checkflag FLAG_UNKNOWN_BIRCH_380
goto_if 0, LittlerootTown_ProfessorBirchsLab_EventScript_1A037F
compare 0x4084, 5
goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152E7B
@@ -129,7 +129,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152DBA:: @ 8152DBA
compare RESULT, 1
call_if 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E40
setvar 0x4084, 5
- setflag 116
+ setflag FLAG_ADVENTURE_STARTED
setvar 0x4051, 1
setvar 0x408d, 4
setvar 0x4050, 3
@@ -138,7 +138,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152DBA:: @ 8152DBA
LittlerootTown_ProfessorBirchsLab_EventScript_152E13:: @ 8152E13
msgbox LittlerootTown_ProfessorBirchsLab_Text_1743D4, 4
- giveitem ITEM_POKE_BALL, 5
+ giveitem_std ITEM_POKE_BALL, 5
compare RESULT, 0
call_if 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E85
msgbox LittlerootTown_ProfessorBirchsLab_Text_17443D, 4
@@ -147,7 +147,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152E13:: @ 8152E13
LittlerootTown_ProfessorBirchsLab_EventScript_152E40:: @ 8152E40
msgbox LittlerootTown_ProfessorBirchsLab_Text_17453C, 4
- giveitem ITEM_POKE_BALL, 5
+ giveitem_std ITEM_POKE_BALL, 5
compare RESULT, 0
call_if 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E8E
msgbox LittlerootTown_ProfessorBirchsLab_Text_17458C, 4
@@ -159,7 +159,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152E6D:: @ 8152E6D
message LittlerootTown_ProfessorBirchsLab_Text_17422F
waitfanfare
waitmessage
- setflag 2049
+ setflag FLAG_SYS_POKEDEX_GET
return
LittlerootTown_ProfessorBirchsLab_EventScript_152E7B:: @ 8152E7B
diff --git a/data/scripts/maps/MagmaHideout_B1F.inc b/data/scripts/maps/MagmaHideout_B1F.inc
index 780eea4f5..6dbdc0461 100644
--- a/data/scripts/maps/MagmaHideout_B1F.inc
+++ b/data/scripts/maps/MagmaHideout_B1F.inc
@@ -3,7 +3,7 @@ MagmaHideout_B1F_MapScripts:: @ 815F2A8
.byte 0
MagmaHideout_B1F_MapScript1_15F2AE:: @ 815F2AE
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, MagmaHideout_B1F_EventScript_15F2B8
end
diff --git a/data/scripts/maps/MauvilleCity.inc b/data/scripts/maps/MauvilleCity.inc
index 5c93aa252..6a7e02848 100644
--- a/data/scripts/maps/MauvilleCity.inc
+++ b/data/scripts/maps/MauvilleCity.inc
@@ -3,18 +3,18 @@ MauvilleCity_MapScripts:: @ 814C032
.byte 0
MauvilleCity_MapScript1_14C038:: @ 814C038
- setflag 2072
- clearflag 961
- setflag 2098
- clearflag 99
+ setflag FLAG_VISITED_MAUVILLE_CITY
+ clearflag FLAG_HIDE_OCEANIC_MUSEUM_VISITORS
+ setflag FLAG_SYS_TV_START
+ clearflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
setvar 0x4093, 0
- checkflag 209
+ checkflag FLAG_RECEIVED_TM24
call_if 1, MauvilleCity_EventScript_14C053
end
MauvilleCity_EventScript_14C053:: @ 814C053
- clearflag 913
- setflag 912
+ clearflag FLAG_HIDE_WATTSON_MAUVILLE_GYM
+ setflag FLAG_HIDE_WATTSON_MAUVILLE
return
MauvilleCity_EventScript_14C05A:: @ 814C05A
@@ -52,10 +52,10 @@ MauvilleCity_EventScript_14C099:: @ 814C099
MauvilleCity_EventScript_14C0A2:: @ 814C0A2
lock
faceplayer
- checkflag 98
+ checkflag FLAG_TV_EXPLAINED
goto_if_eq MauvilleCity_EventScript_14C0BA
msgbox MauvilleCity_Text_16674A, 4
- setflag 98
+ setflag FLAG_TV_EXPLAINED
release
end
@@ -67,7 +67,7 @@ MauvilleCity_EventScript_14C0BA:: @ 814C0BA
MauvilleCity_EventScript_14C0C4:: @ 814C0C4
lock
faceplayer
- checkflag 284
+ checkflag FLAG_DECLINED_WALLY_BATTLE_MAUVILLE
goto_if_eq MauvilleCity_EventScript_14C0E4
msgbox MauvilleCity_Text_165B76, 4
closemessage
@@ -86,7 +86,7 @@ MauvilleCity_EventScript_14C0E4:: @ 814C0E4
MauvilleCity_EventScript_14C0F9:: @ 814C0F9
lockall
- checkflag 284
+ checkflag FLAG_DECLINED_WALLY_BATTLE_MAUVILLE
goto_if_eq MauvilleCity_EventScript_14C292
applymovement 6, MauvilleCity_Movement_1A0843
waitmovement 0
@@ -156,9 +156,9 @@ MauvilleCity_EventScript_14C1D9:: @ 814C1D9
MauvilleCity_EventScript_14C22B:: @ 814C22B
removeobject 6
removeobject 7
- clearflag 806
- clearflag 809
- setflag 190
+ clearflag FLAG_HIDE_WALLY_WANDAS_HOUSE
+ clearflag FLAG_HIDE_WALLY_FATHER_WANDAS_HOUSE
+ setflag FLAG_DEFEATED_WALLY_MAUVILLE
releaseall
end
@@ -177,7 +177,7 @@ MauvilleCity_EventScript_14C23C:: @ 814C23C
return
MauvilleCity_EventScript_14C285:: @ 814C285
- setflag 284
+ setflag FLAG_DECLINED_WALLY_BATTLE_MAUVILLE
msgbox MauvilleCity_Text_165DE8, 4
release
end
@@ -284,15 +284,15 @@ MauvilleCity_Movement_14C2E8:: @ 814C2E8
MauvilleCity_EventScript_14C2F2:: @ 814C2F2
lock
faceplayer
- checkflag 209
+ checkflag FLAG_RECEIVED_TM24
goto_if_eq MauvilleCity_EventScript_14C368
compare 0x40ba, 2
goto_if_eq MauvilleCity_EventScript_14C33C
- checkflag 208
+ checkflag FLAG_RECEIVED_BASEMENT_KEY
goto_if_eq MauvilleCity_EventScript_14C332
msgbox MauvilleCity_Text_1661C1, 4
- giveitem ITEM_BASEMENT_KEY
- setflag 208
+ giveitem_std ITEM_BASEMENT_KEY
+ setflag FLAG_RECEIVED_BASEMENT_KEY
msgbox MauvilleCity_Text_166331, 4
release
end
@@ -304,10 +304,10 @@ MauvilleCity_EventScript_14C332:: @ 814C332
MauvilleCity_EventScript_14C33C:: @ 814C33C
msgbox MauvilleCity_Text_1663EB, 4
- giveitem ITEM_TM24
+ giveitem_std ITEM_TM24
compare RESULT, 0
goto_if_eq MauvilleCity_EventScript_1A029B
- setflag 209
+ setflag FLAG_RECEIVED_TM24
msgbox MauvilleCity_Text_166488, 4
release
end
diff --git a/data/scripts/maps/MauvilleCity_BikeShop.inc b/data/scripts/maps/MauvilleCity_BikeShop.inc
index a93ff5170..6c2dc57e1 100644
--- a/data/scripts/maps/MauvilleCity_BikeShop.inc
+++ b/data/scripts/maps/MauvilleCity_BikeShop.inc
@@ -4,9 +4,9 @@ MauvilleCity_BikeShop_MapScripts:: @ 8156795
MauvilleCity_BikeShop_EventScript_156796:: @ 8156796
lock
faceplayer
- checkflag 90
+ checkflag FLAG_RECEIVED_BIKE
goto_if_eq MauvilleCity_BikeShop_EventScript_15686E
- checkflag 89
+ checkflag FLAG_DECLINED_BIKE
goto_if_eq MauvilleCity_BikeShop_EventScript_1567D1
msgbox MauvilleCity_BikeShop_Text_180F9F, 4
msgbox MauvilleCity_BikeShop_Text_181016, 5
@@ -34,25 +34,25 @@ MauvilleCity_BikeShop_EventScript_1567F0:: @ 81567F0
end
MauvilleCity_BikeShop_EventScript_156817:: @ 8156817
- setflag 89
+ setflag FLAG_DECLINED_BIKE
msgbox MauvilleCity_BikeShop_Text_181067, 4
release
end
MauvilleCity_BikeShop_EventScript_156824:: @ 8156824
- setflag 90
+ setflag FLAG_RECEIVED_BIKE
goto MauvilleCity_BikeShop_EventScript_1567F0
end
MauvilleCity_BikeShop_EventScript_15682D:: @ 815682D
msgbox MauvilleCity_BikeShop_Text_181332, 4
- giveitem ITEM_MACH_BIKE
+ giveitem_std ITEM_MACH_BIKE
goto MauvilleCity_BikeShop_EventScript_156861
end
MauvilleCity_BikeShop_EventScript_156847:: @ 8156847
msgbox MauvilleCity_BikeShop_Text_18134A, 4
- giveitem ITEM_ACRO_BIKE
+ giveitem_std ITEM_ACRO_BIKE
goto MauvilleCity_BikeShop_EventScript_156861
end
@@ -90,16 +90,16 @@ MauvilleCity_BikeShop_EventScript_1568BF:: @ 81568BF
MauvilleCity_BikeShop_EventScript_1568C9:: @ 81568C9
incrementgamestat GAME_STAT_TRADED_BIKES
msgbox MauvilleCity_BikeShop_Text_181439, 4
- removeitem ITEM_ACRO_BIKE, 1
- giveitem ITEM_MACH_BIKE
+ 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
- removeitem ITEM_MACH_BIKE, 1
- giveitem ITEM_ACRO_BIKE
+ takeitem ITEM_MACH_BIKE, 1
+ giveitem_std ITEM_ACRO_BIKE
goto MauvilleCity_BikeShop_EventScript_156861
end
diff --git a/data/scripts/maps/MauvilleCity_GameCorner.inc b/data/scripts/maps/MauvilleCity_GameCorner.inc
index 2e0231287..8228238f3 100644
--- a/data/scripts/maps/MauvilleCity_GameCorner.inc
+++ b/data/scripts/maps/MauvilleCity_GameCorner.inc
@@ -129,17 +129,17 @@ MauvilleCity_GameCorner_EventScript_156BA6:: @ 8156BA6
MauvilleCity_GameCorner_EventScript_156BE2:: @ 8156BE2
setvar 0x4001, 1
- getdecorname 0, 88
+ bufferdecorationname 0, 88
goto MauvilleCity_GameCorner_EventScript_156C0C
MauvilleCity_GameCorner_EventScript_156BF0:: @ 8156BF0
setvar 0x4001, 2
- getdecorname 0, 89
+ bufferdecorationname 0, 89
goto MauvilleCity_GameCorner_EventScript_156C0C
MauvilleCity_GameCorner_EventScript_156BFE:: @ 8156BFE
setvar 0x4001, 3
- getdecorname 0, 90
+ bufferdecorationname 0, 90
goto MauvilleCity_GameCorner_EventScript_156C0C
MauvilleCity_GameCorner_EventScript_156C0C:: @ 8156C0C
@@ -156,12 +156,12 @@ MauvilleCity_GameCorner_EventScript_156C46:: @ 8156C46
checkcoins 16386
compare 0x4002, 1000
goto_if 0, MauvilleCity_GameCorner_EventScript_156CF4
- getdecorname 1, 88
- checkdecor 88
+ bufferdecorationname 1, 88
+ checkdecorspace 88
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
takecoins 1000
- adddecor 88
+ givedecoration 88
updatecoinsbox 0, 0
playse 95
msgbox MauvilleCity_GameCorner_Text_181E49, 4
@@ -172,12 +172,12 @@ MauvilleCity_GameCorner_EventScript_156C80:: @ 8156C80
checkcoins 16386
compare 0x4002, 1000
goto_if 0, MauvilleCity_GameCorner_EventScript_156CF4
- getdecorname 1, 89
- checkdecor 89
+ bufferdecorationname 1, 89
+ checkdecorspace 89
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
takecoins 1000
- adddecor 89
+ givedecoration 89
updatecoinsbox 0, 0
playse 95
msgbox MauvilleCity_GameCorner_Text_181E49, 4
@@ -188,12 +188,12 @@ MauvilleCity_GameCorner_EventScript_156CBA:: @ 8156CBA
checkcoins 16386
compare 0x4002, 1000
goto_if 0, MauvilleCity_GameCorner_EventScript_156CF4
- getdecorname 1, 90
- checkdecor 90
+ bufferdecorationname 1, 90
+ checkdecorspace 90
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
takecoins 1000
- adddecor 90
+ givedecoration 90
updatecoinsbox 0, 0
playse 95
msgbox MauvilleCity_GameCorner_Text_181E49, 4
@@ -252,27 +252,27 @@ MauvilleCity_GameCorner_EventScript_156D54:: @ 8156D54
MauvilleCity_GameCorner_EventScript_156DA6:: @ 8156DA6
setvar 0x4001, 1
- getitemname 0, ITEM_TM32
+ bufferitemname 0, ITEM_TM32
goto MauvilleCity_GameCorner_EventScript_156DEC
MauvilleCity_GameCorner_EventScript_156DB4:: @ 8156DB4
setvar 0x4001, 2
- getitemname 0, ITEM_TM29
+ bufferitemname 0, ITEM_TM29
goto MauvilleCity_GameCorner_EventScript_156DEC
MauvilleCity_GameCorner_EventScript_156DC2:: @ 8156DC2
setvar 0x4001, 3
- getitemname 0, ITEM_TM35
+ bufferitemname 0, ITEM_TM35
goto MauvilleCity_GameCorner_EventScript_156DEC
MauvilleCity_GameCorner_EventScript_156DD0:: @ 8156DD0
setvar 0x4001, 4
- getitemname 0, ITEM_TM24
+ bufferitemname 0, ITEM_TM24
goto MauvilleCity_GameCorner_EventScript_156DEC
MauvilleCity_GameCorner_EventScript_156DDE:: @ 8156DDE
setvar 0x4001, 5
- getitemname 0, ITEM_TM13
+ bufferitemname 0, ITEM_TM13
goto MauvilleCity_GameCorner_EventScript_156DEC
MauvilleCity_GameCorner_EventScript_156DEC:: @ 8156DEC
@@ -295,7 +295,7 @@ MauvilleCity_GameCorner_EventScript_156E3C:: @ 8156E3C
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
takecoins 1500
- additem ITEM_TM32, 1
+ giveitem ITEM_TM32, 1
updatecoinsbox 0, 0
playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
@@ -310,7 +310,7 @@ MauvilleCity_GameCorner_EventScript_156E76:: @ 8156E76
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
takecoins 3500
- additem ITEM_TM29, 1
+ giveitem ITEM_TM29, 1
updatecoinsbox 0, 0
playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
@@ -325,7 +325,7 @@ MauvilleCity_GameCorner_EventScript_156EB0:: @ 8156EB0
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
takecoins 4000
- additem ITEM_TM35, 1
+ giveitem ITEM_TM35, 1
updatecoinsbox 0, 0
playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
@@ -340,7 +340,7 @@ MauvilleCity_GameCorner_EventScript_156EEA:: @ 8156EEA
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
takecoins 4000
- additem ITEM_TM24, 1
+ giveitem ITEM_TM24, 1
updatecoinsbox 0, 0
playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
@@ -355,7 +355,7 @@ MauvilleCity_GameCorner_EventScript_156F24:: @ 8156F24
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
takecoins 4000
- additem ITEM_TM13, 1
+ giveitem ITEM_TM13, 1
updatecoinsbox 0, 0
playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
@@ -389,7 +389,7 @@ MauvilleCity_GameCorner_EventScript_156F8D:: @ 8156F8D
MauvilleCity_GameCorner_EventScript_156F96:: @ 8156F96
lock
faceplayer
- checkflag 226
+ checkflag FLAG_RECEIVED_STARTER_DOLL
goto_if_eq MauvilleCity_GameCorner_EventScript_157072
msgbox MauvilleCity_GameCorner_Text_181F3D, 5
compare RESULT, 0
@@ -401,35 +401,35 @@ MauvilleCity_GameCorner_EventScript_156F96:: @ 8156F96
end
MauvilleCity_GameCorner_EventScript_156FDB:: @ 8156FDB
- getdecorname 1, 88
- checkdecor 88
+ 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 88
- setflag 226
+ givedecoration_std DECOR_TREECKO_DOLL
+ setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_157072
end
MauvilleCity_GameCorner_EventScript_157005:: @ 8157005
- getdecorname 1, 89
- checkdecor 89
+ 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 89
- setflag 226
+ givedecoration_std DECOR_TORCHIC_DOLL
+ setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_157072
end
MauvilleCity_GameCorner_EventScript_15702F:: @ 815702F
- getdecorname 1, 90
- checkdecor 90
+ 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 90
- setflag 226
+ givedecoration_std DECOR_MUDKIP_DOLL
+ setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_157072
end
@@ -460,12 +460,12 @@ MauvilleCity_GameCorner_EventScript_15707C:: @ 815707C
end
MauvilleCity_GameCorner_EventScript_15709C:: @ 815709C
- checkflag 225
+ checkflag FLAG_RECEIVED_20_COINS
goto_if_eq MauvilleCity_GameCorner_EventScript_1570CA
checkcoins 16385
compare 0x4001, 1
goto_if 4, MauvilleCity_GameCorner_EventScript_1570CA
- setflag 225
+ setflag FLAG_RECEIVED_20_COINS
givecoins 20
msgbox MauvilleCity_GameCorner_Text_18208E, 4
playse 95
diff --git a/data/scripts/maps/MauvilleCity_Gym.inc b/data/scripts/maps/MauvilleCity_Gym.inc
index 5221add7a..799fb0992 100644
--- a/data/scripts/maps/MauvilleCity_Gym.inc
+++ b/data/scripts/maps/MauvilleCity_Gym.inc
@@ -3,7 +3,7 @@ MauvilleCity_Gym_MapScripts:: @ 8156450
.byte 0
MauvilleCity_Gym_MapScript1_156456:: @ 8156456
- checkflag 1208
+ checkflag FLAG_DEFEATED_MAUVILLE_GYM
goto_if_eq MauvilleCity_Gym_EventScript_1565A7
switch 0x4093
case 0, MauvilleCity_Gym_EventScript_156491
@@ -13,36 +13,36 @@ MauvilleCity_Gym_MapScript1_156456:: @ 8156456
end
MauvilleCity_Gym_EventScript_156491:: @ 8156491
- checkflag 99
+ checkflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
goto_if_eq MauvilleCity_Gym_EventScript_15649B
end
MauvilleCity_Gym_EventScript_15649B:: @ 815649B
- setmaptile 4, 7, 560, 0
- setmaptile 4, 8, 568, 0
- setmaptile 5, 7, 561, 0
- setmaptile 5, 8, 569, 0
- setmaptile 3, 8, 578, 1
- setmaptile 3, 9, 538, 0
- setmaptile 3, 10, 593, 0
- setmaptile 1, 10, 546, 0
- setmaptile 1, 11, 554, 1
- setmaptile 2, 10, 547, 0
- setmaptile 2, 11, 555, 1
- setmaptile 4, 10, 546, 0
- setmaptile 4, 11, 554, 1
- setmaptile 5, 10, 547, 0
- setmaptile 5, 11, 555, 1
- setmaptile 6, 11, 578, 1
- setmaptile 6, 12, 538, 0
- setmaptile 6, 13, 593, 0
- setmaptile 3, 11, 577, 1
- setmaptile 3, 12, 585, 1
- setmaptile 3, 13, 592, 1
- setmaptile 4, 13, 560, 0
- setmaptile 4, 14, 568, 0
- setmaptile 5, 13, 561, 0
- setmaptile 5, 14, 569, 0
+ 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
@@ -69,7 +69,7 @@ MauvilleCity_Gym_EventScript_1565A7:: @ 81565A7
MauvilleCity_Gym_EventScript_1565AB:: @ 81565AB
trainerbattle 1, OPPONENT_WATTSON, 0, MauvilleCity_Gym_Text_180C32, MauvilleCity_Gym_Text_180D64, MauvilleCity_Gym_EventScript_1565DB
- checkflag 167
+ checkflag FLAG_RECEIVED_TM34
goto_if 0, MauvilleCity_Gym_EventScript_15661D
compare 0x40ba, 2
goto_if_eq MauvilleCity_Gym_EventScript_156641
@@ -82,8 +82,8 @@ MauvilleCity_Gym_EventScript_1565DB:: @ 81565DB
waitmessage
call MauvilleCity_Gym_EventScript_1A02C5
msgbox MauvilleCity_Gym_Text_180DDA, 4
- setflag 1208
- setflag 2057
+ setflag FLAG_DEFEATED_MAUVILLE_GYM
+ setflag FLAG_BADGE03_GET
addvar 0x4085, 1
compare 0x4085, 6
call_if 1, MauvilleCity_Gym_EventScript_1A00FB
@@ -96,11 +96,11 @@ MauvilleCity_Gym_EventScript_1565DB:: @ 81565DB
end
MauvilleCity_Gym_EventScript_15661D:: @ 815661D
- giveitem ITEM_TM34
+ giveitem_std ITEM_TM34
compare RESULT, 0
goto_if_eq MauvilleCity_Gym_EventScript_1A029B
msgbox MauvilleCity_Gym_Text_180E76, 4
- setflag 167
+ setflag FLAG_RECEIVED_TM34
release
end
@@ -111,7 +111,7 @@ MauvilleCity_Gym_EventScript_156641:: @ 8156641
MauvilleCity_Gym_EventScript_15664B:: @ 815664B
lockall
- checkflag 1208
+ checkflag FLAG_DEFEATED_MAUVILLE_GYM
goto_if_eq MauvilleCity_Gym_EventScript_1566DA
compare 0x4093, 1
goto_if_eq MauvilleCity_Gym_EventScript_1566DA
@@ -122,7 +122,7 @@ MauvilleCity_Gym_EventScript_15664B:: @ 815664B
MauvilleCity_Gym_EventScript_156670:: @ 8156670
lockall
- checkflag 1208
+ checkflag FLAG_DEFEATED_MAUVILLE_GYM
goto_if_eq MauvilleCity_Gym_EventScript_1566DA
compare 0x4093, 2
goto_if_eq MauvilleCity_Gym_EventScript_1566DA
@@ -133,7 +133,7 @@ MauvilleCity_Gym_EventScript_156670:: @ 8156670
MauvilleCity_Gym_EventScript_156695:: @ 8156695
lockall
- checkflag 1208
+ checkflag FLAG_DEFEATED_MAUVILLE_GYM
goto_if_eq MauvilleCity_Gym_EventScript_1566DA
compare 0x4093, 3
goto_if_eq MauvilleCity_Gym_EventScript_1566DA
@@ -147,9 +147,9 @@ MauvilleCity_Gym_EventScript_1566BA:: @ 81566BA
special MauvilleGymSpecial1
special DrawWholeMapView
playse 44
- checkflag 99
+ checkflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
goto_if_eq MauvilleCity_Gym_EventScript_1566E1
- checkflag 99
+ checkflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
goto_if 0, MauvilleCity_Gym_EventScript_1566DC
releaseall
end
@@ -159,12 +159,12 @@ MauvilleCity_Gym_EventScript_1566DA:: @ 81566DA
end
MauvilleCity_Gym_EventScript_1566DC:: @ 81566DC
- setflag 99
+ setflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
releaseall
end
MauvilleCity_Gym_EventScript_1566E1:: @ 81566E1
- clearflag 99
+ clearflag FLAG_MAUVILLE_GYM_BARRIERS_STATE
releaseall
end
@@ -191,7 +191,7 @@ MauvilleCity_Gym_EventScript_15672B:: @ 815672B
MauvilleCity_Gym_EventScript_156742:: @ 8156742
lock
faceplayer
- checkflag 1208
+ checkflag FLAG_DEFEATED_MAUVILLE_GYM
goto_if_eq MauvilleCity_Gym_EventScript_156757
msgbox MauvilleCity_Gym_Text_180815, 4
release
@@ -204,14 +204,14 @@ MauvilleCity_Gym_EventScript_156757:: @ 8156757
MauvilleCity_Gym_EventScript_156761:: @ 8156761
lockall
- checkflag 2057
+ checkflag FLAG_BADGE03_GET
goto_if_eq MauvilleCity_Gym_EventScript_156781
goto MauvilleCity_Gym_EventScript_15678B
end
MauvilleCity_Gym_EventScript_156771:: @ 8156771
lockall
- checkflag 2057
+ checkflag FLAG_BADGE03_GET
goto_if_eq MauvilleCity_Gym_EventScript_156781
goto MauvilleCity_Gym_EventScript_15678B
end
diff --git a/data/scripts/maps/MauvilleCity_House1.inc b/data/scripts/maps/MauvilleCity_House1.inc
index e76564847..210288517 100644
--- a/data/scripts/maps/MauvilleCity_House1.inc
+++ b/data/scripts/maps/MauvilleCity_House1.inc
@@ -4,11 +4,11 @@ MauvilleCity_House1_MapScripts:: @ 81569FC
MauvilleCity_House1_EventScript_1569FD:: @ 81569FD
lock
faceplayer
- checkflag 107
+ checkflag FLAG_RECEIVED_HM06
goto_if_eq MauvilleCity_House1_EventScript_156A29
msgbox MauvilleCity_House1_Text_181B1A, 4
- giveitem ITEM_HM06
- setflag 107
+ giveitem_std ITEM_HM06
+ setflag FLAG_RECEIVED_HM06
msgbox MauvilleCity_House1_Text_181B64, 4
release
end
diff --git a/data/scripts/maps/MauvilleCity_House2.inc b/data/scripts/maps/MauvilleCity_House2.inc
index a500a246e..a058003bc 100644
--- a/data/scripts/maps/MauvilleCity_House2.inc
+++ b/data/scripts/maps/MauvilleCity_House2.inc
@@ -4,7 +4,7 @@ MauvilleCity_House2_MapScripts:: @ 81572BF
MauvilleCity_House2_EventScript_1572C0:: @ 81572C0
lock
faceplayer
- checkflag 258
+ checkflag FLAG_RECEIVED_COIN_CASE
goto_if_eq MauvilleCity_House2_EventScript_15733D
msgbox MauvilleCity_House2_Text_18244E, 4
checkitem ITEM_HARBOR_MAIL, 1
@@ -28,9 +28,9 @@ MauvilleCity_House2_EventScript_1572E5:: @ 81572E5
MauvilleCity_House2_EventScript_15731B:: @ 815731B
msgbox MauvilleCity_House2_Text_182515, 4
- removeitem ITEM_HARBOR_MAIL, 1
- giveitem ITEM_COIN_CASE
- setflag 258
+ takeitem ITEM_HARBOR_MAIL, 1
+ giveitem_std ITEM_COIN_CASE
+ setflag FLAG_RECEIVED_COIN_CASE
goto MauvilleCity_House2_EventScript_15733D
end
diff --git a/data/scripts/maps/MauvilleCity_PokemonCenter_1F.inc b/data/scripts/maps/MauvilleCity_PokemonCenter_1F.inc
index 7122b8c3c..de30e21cd 100644
--- a/data/scripts/maps/MauvilleCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/MauvilleCity_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ MauvilleCity_PokemonCenter_1F_MapScripts:: @ 8157351
.byte 0
MauvilleCity_PokemonCenter_1F_MapScript1_157357:: @ 8157357
- sethealplace 5
+ setrespawn 5
call MauvilleCity_PokemonCenter_1F_EventScript_19FD1B
goto MauvilleCity_PokemonCenter_1F_EventScript_157365
end
@@ -16,7 +16,7 @@ MauvilleCity_PokemonCenter_1F_EventScript_157369:: @ 8157369
setvar 0x800b, 1
call MauvilleCity_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/MeteorFalls_1F_1R.inc b/data/scripts/maps/MeteorFalls_1F_1R.inc
index 06abbc8f6..7ce6e3704 100644
--- a/data/scripts/maps/MeteorFalls_1F_1R.inc
+++ b/data/scripts/maps/MeteorFalls_1F_1R.inc
@@ -77,7 +77,7 @@ MeteorFalls_1F_1R_EventScript_15C49C:: @ 815C49C
removeobject 7
removeobject 8
removeobject 9
- setflag 819
+ setflag FLAG_HIDE_GRUNTS_BLOCKING_CABLE_CAR
setvar 0x40bf, 1
releaseall
end
@@ -215,9 +215,9 @@ MeteorFalls_1F_1R_Movement_15C64F:: @ 815C64F
MeteorFalls_1F_1R_EventScript_15C656:: @ 815C656
lock
faceplayer
- checkflag 244
+ checkflag FLAG_MET_PROF_COSMO
goto_if_eq MeteorFalls_1F_1R_EventScript_15C66E
- setflag 244
+ setflag FLAG_MET_PROF_COSMO
msgbox MeteorFalls_1F_1R_Text_1937EB, 4
release
end
diff --git a/data/scripts/maps/MossdeepCity.inc b/data/scripts/maps/MossdeepCity.inc
index 44deb9d63..f165bd3ef 100644
--- a/data/scripts/maps/MossdeepCity.inc
+++ b/data/scripts/maps/MossdeepCity.inc
@@ -3,11 +3,11 @@ MossdeepCity_MapScripts:: @ 814CF92
.byte 0
MossdeepCity_MapScript1_14CF98:: @ 814CF98
- clearflag 100
- clearflag 101
- clearflag 102
- clearflag 103
- checkflag 2090
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_1
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_2
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_3
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_4
+ checkflag FLAG_SYS_WEATHER_CTRL
call_if 1, MossdeepCity_EventScript_1A02C1
end
@@ -52,7 +52,7 @@ MossdeepCity_EventScript_14CFFF:: @ 814CFFF
end
MossdeepCity_EventScript_14D008:: @ 814D008
- setflag 2076
+ setflag FLAG_VISITED_MOSSDEEP_CITY
setvar 0x4001, 1
end
@@ -68,16 +68,16 @@ MossdeepCity_EventScript_14D011:: @ 814D011
MossdeepCity_EventScript_14D027:: @ 814D027
lock
faceplayer
- checkflag 276
+ checkflag FLAG_RECEIVED_KINGS_ROCK
goto_if_eq MossdeepCity_EventScript_14D069
msgbox MossdeepCity_Text_1690A9, 5
compare RESULT, 0
goto_if_eq MossdeepCity_EventScript_14D073
msgbox MossdeepCity_Text_169117, 4
- giveitem ITEM_KINGS_ROCK
+ giveitem_std ITEM_KINGS_ROCK
compare RESULT, 0
goto_if_eq MossdeepCity_EventScript_1A029B
- setflag 276
+ setflag FLAG_RECEIVED_KINGS_ROCK
release
end
diff --git a/data/scripts/maps/MossdeepCity_GameCorner_1F.inc b/data/scripts/maps/MossdeepCity_GameCorner_1F.inc
index afc02e82c..75fc3c6b8 100644
--- a/data/scripts/maps/MossdeepCity_GameCorner_1F.inc
+++ b/data/scripts/maps/MossdeepCity_GameCorner_1F.inc
@@ -11,8 +11,8 @@ MossdeepCity_GameCorner_1F_MapScript1_15AC62:: @ 815AC62
end
MossdeepCity_GameCorner_1F_EventScript_15AC71:: @ 815AC71
- setmaptile 3, 0, 653, 1
- setmaptile 3, 1, 661, 1
+ setmetatile 3, 0, 653, 1
+ setmetatile 3, 1, 661, 1
return
MossdeepCity_GameCorner_1F_MapScript1_15AC84:: @ 815AC84
diff --git a/data/scripts/maps/MossdeepCity_GameCorner_B1F.inc b/data/scripts/maps/MossdeepCity_GameCorner_B1F.inc
index 94f44e311..12a94154b 100644
--- a/data/scripts/maps/MossdeepCity_GameCorner_B1F.inc
+++ b/data/scripts/maps/MossdeepCity_GameCorner_B1F.inc
@@ -48,14 +48,14 @@ MossdeepCity_GameCorner_B1F_EventScript_15AEE3:: @ 815AEE3
setvar 0x40c0, 1
special ShowFieldMessageStringVar4
waitmessage
- waitbutton
+ waitbuttonpress
return
MossdeepCity_GameCorner_B1F_EventScript_15AEEE:: @ 815AEEE
setvar 0x40c0, 2
special ShowFieldMessageStringVar4
waitmessage
- waitbutton
+ waitbuttonpress
return
MossdeepCity_GameCorner_B1F_Movement_15AEF9:: @ 815AEF9
diff --git a/data/scripts/maps/MossdeepCity_Gym.inc b/data/scripts/maps/MossdeepCity_Gym.inc
index 19b3c5045..b1550a4c1 100644
--- a/data/scripts/maps/MossdeepCity_Gym.inc
+++ b/data/scripts/maps/MossdeepCity_Gym.inc
@@ -3,54 +3,54 @@ MossdeepCity_Gym_MapScripts:: @ 815A4D3
.byte 0
MossdeepCity_Gym_MapScript1_15A4D9:: @ 815A4D9
- checkflag 100
+ checkflag FLAG_MOSSDEEP_GYM_SWITCH_1
goto_if_eq MossdeepCity_Gym_EventScript_15A510
goto MossdeepCity_Gym_EventScript_15A4E8
end
MossdeepCity_Gym_EventScript_15A4E8:: @ 815A4E8
- checkflag 101
+ checkflag FLAG_MOSSDEEP_GYM_SWITCH_2
goto_if_eq MossdeepCity_Gym_EventScript_15A528
goto MossdeepCity_Gym_EventScript_15A4F7
end
MossdeepCity_Gym_EventScript_15A4F7:: @ 815A4F7
- checkflag 102
+ checkflag FLAG_MOSSDEEP_GYM_SWITCH_3
goto_if_eq MossdeepCity_Gym_EventScript_15A540
goto MossdeepCity_Gym_EventScript_15A506
end
MossdeepCity_Gym_EventScript_15A506:: @ 815A506
- checkflag 103
+ checkflag FLAG_MOSSDEEP_GYM_SWITCH_4
goto_if_eq MossdeepCity_Gym_EventScript_15A558
end
MossdeepCity_Gym_EventScript_15A510:: @ 815A510
- setmaptile 5, 5, 516, 0
- setmaptile 2, 7, 569, 1
+ setmetatile 5, 5, 516, 0
+ setmetatile 2, 7, 569, 1
goto MossdeepCity_Gym_EventScript_15A4E8
end
MossdeepCity_Gym_EventScript_15A528:: @ 815A528
- setmaptile 8, 14, 516, 0
- setmaptile 8, 10, 569, 1
+ setmetatile 8, 14, 516, 0
+ setmetatile 8, 10, 569, 1
goto MossdeepCity_Gym_EventScript_15A4F7
end
MossdeepCity_Gym_EventScript_15A540:: @ 815A540
- setmaptile 15, 17, 524, 0
- setmaptile 17, 15, 569, 1
+ setmetatile 15, 17, 524, 0
+ setmetatile 17, 15, 569, 1
goto MossdeepCity_Gym_EventScript_15A506
end
MossdeepCity_Gym_EventScript_15A558:: @ 815A558
- setmaptile 1, 23, 525, 0
- setmaptile 5, 24, 569, 1
+ 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
- checkflag 171
+ checkflag FLAG_RECEIVED_TM04
goto_if 0, MossdeepCity_Gym_EventScript_15A5C6
msgbox MossdeepCity_Gym_Text_18D273, 4
release
@@ -61,34 +61,34 @@ MossdeepCity_Gym_EventScript_15A594:: @ 815A594
waitmessage
call MossdeepCity_Gym_EventScript_1A02C5
msgbox MossdeepCity_Gym_Text_18D128, 4
- setflag 1229
- setflag 2061
- clearflag 869
- clearflag 915
+ setflag FLAG_DEFEATED_MOSSDEEP_GYM
+ setflag FLAG_BADGE07_GET
+ clearflag FLAG_HIDE_BRINEY_SLATEPORT_SHIPYARD
+ clearflag FLAG_UNKNOWN_393
setvar 0x8008, 7
call MossdeepCity_Gym_EventScript_1A01C0
- clearflag 905
+ clearflag FLAG_HIDE_WORKERS_SLATEPORT_HARBOR
goto MossdeepCity_Gym_EventScript_15A5C6
end
MossdeepCity_Gym_EventScript_15A5C6:: @ 815A5C6
- giveitem ITEM_TM04
+ giveitem_std ITEM_TM04
compare RESULT, 0
goto_if_eq MossdeepCity_Gym_EventScript_1A029B
msgbox MossdeepCity_Gym_Text_18D1CF, 4
- setflag 171
+ setflag FLAG_RECEIVED_TM04
release
end
MossdeepCity_Gym_EventScript_15A5EA:: @ 815A5EA
lockall
- checkflag 100
+ checkflag FLAG_MOSSDEEP_GYM_SWITCH_1
goto_if_eq MossdeepCity_Gym_EventScript_15A621
- setflag 100
+ setflag FLAG_MOSSDEEP_GYM_SWITCH_1
applymovement 255, MossdeepCity_Gym_Movement_15A7F7
waitmovement 0
- setmaptile 5, 5, 516, 0
- setmaptile 2, 7, 569, 1
+ setmetatile 5, 5, 516, 0
+ setmetatile 2, 7, 569, 1
goto MossdeepCity_Gym_EventScript_15A619
end
@@ -99,74 +99,74 @@ MossdeepCity_Gym_EventScript_15A619:: @ 815A619
end
MossdeepCity_Gym_EventScript_15A621:: @ 815A621
- clearflag 100
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_1
applymovement 255, MossdeepCity_Gym_Movement_15A7F7
waitmovement 0
- setmaptile 5, 5, 524, 0
- setmaptile 2, 7, 568, 1
+ setmetatile 5, 5, 524, 0
+ setmetatile 2, 7, 568, 1
goto MossdeepCity_Gym_EventScript_15A619
end
MossdeepCity_Gym_EventScript_15A646:: @ 815A646
lockall
- checkflag 101
+ checkflag FLAG_MOSSDEEP_GYM_SWITCH_2
goto_if_eq MossdeepCity_Gym_EventScript_15A675
- setflag 101
+ setflag FLAG_MOSSDEEP_GYM_SWITCH_2
applymovement 255, MossdeepCity_Gym_Movement_15A7F7
waitmovement 0
- setmaptile 8, 14, 516, 0
- setmaptile 8, 10, 569, 1
+ setmetatile 8, 14, 516, 0
+ setmetatile 8, 10, 569, 1
goto MossdeepCity_Gym_EventScript_15A619
end
MossdeepCity_Gym_EventScript_15A675:: @ 815A675
- clearflag 101
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_2
applymovement 255, MossdeepCity_Gym_Movement_15A7F7
waitmovement 0
- setmaptile 8, 14, 517, 0
- setmaptile 8, 10, 568, 1
+ setmetatile 8, 14, 517, 0
+ setmetatile 8, 10, 568, 1
goto MossdeepCity_Gym_EventScript_15A619
end
MossdeepCity_Gym_EventScript_15A69A:: @ 815A69A
lockall
- checkflag 102
+ checkflag FLAG_MOSSDEEP_GYM_SWITCH_3
goto_if_eq MossdeepCity_Gym_EventScript_15A6C9
- setflag 102
+ setflag FLAG_MOSSDEEP_GYM_SWITCH_3
applymovement 255, MossdeepCity_Gym_Movement_15A7F7
waitmovement 0
- setmaptile 15, 17, 524, 0
- setmaptile 17, 15, 569, 1
+ setmetatile 15, 17, 524, 0
+ setmetatile 17, 15, 569, 1
goto MossdeepCity_Gym_EventScript_15A619
end
MossdeepCity_Gym_EventScript_15A6C9:: @ 815A6C9
- clearflag 102
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_3
applymovement 255, MossdeepCity_Gym_Movement_15A7F7
waitmovement 0
- setmaptile 15, 17, 516, 0
- setmaptile 17, 15, 568, 1
+ setmetatile 15, 17, 516, 0
+ setmetatile 17, 15, 568, 1
goto MossdeepCity_Gym_EventScript_15A619
end
MossdeepCity_Gym_EventScript_15A6EE:: @ 815A6EE
lockall
- checkflag 103
+ checkflag FLAG_MOSSDEEP_GYM_SWITCH_4
goto_if_eq MossdeepCity_Gym_EventScript_15A71D
- setflag 103
+ setflag FLAG_MOSSDEEP_GYM_SWITCH_4
applymovement 255, MossdeepCity_Gym_Movement_15A7F7
waitmovement 0
- setmaptile 1, 23, 525, 0
- setmaptile 5, 24, 569, 1
+ setmetatile 1, 23, 525, 0
+ setmetatile 5, 24, 569, 1
goto MossdeepCity_Gym_EventScript_15A619
end
MossdeepCity_Gym_EventScript_15A71D:: @ 815A71D
- clearflag 103
+ clearflag FLAG_MOSSDEEP_GYM_SWITCH_4
applymovement 255, MossdeepCity_Gym_Movement_15A7F7
waitmovement 0
- setmaptile 1, 23, 516, 0
- setmaptile 5, 24, 568, 1
+ setmetatile 1, 23, 516, 0
+ setmetatile 5, 24, 568, 1
goto MossdeepCity_Gym_EventScript_15A619
end
@@ -210,7 +210,7 @@ MossdeepCity_Gym_EventScript_15A7C1:: @ 815A7C1
MossdeepCity_Gym_EventScript_15A7D8:: @ 815A7D8
lock
faceplayer
- checkflag 1229
+ checkflag FLAG_DEFEATED_MOSSDEEP_GYM
goto_if_eq MossdeepCity_Gym_EventScript_15A7ED
msgbox MossdeepCity_Gym_Text_18C7E3, 4
release
@@ -228,14 +228,14 @@ MossdeepCity_Gym_Movement_15A7F7:: @ 815A7F7
MossdeepCity_Gym_EventScript_15A7FA:: @ 815A7FA
lockall
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
goto_if_eq MossdeepCity_Gym_EventScript_15A81A
goto MossdeepCity_Gym_EventScript_15A824
end
MossdeepCity_Gym_EventScript_15A80A:: @ 815A80A
lockall
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
goto_if_eq MossdeepCity_Gym_EventScript_15A81A
goto MossdeepCity_Gym_EventScript_15A824
end
diff --git a/data/scripts/maps/MossdeepCity_House1.inc b/data/scripts/maps/MossdeepCity_House1.inc
index 62edffc8b..97a5fc452 100644
--- a/data/scripts/maps/MossdeepCity_House1.inc
+++ b/data/scripts/maps/MossdeepCity_House1.inc
@@ -4,7 +4,7 @@ MossdeepCity_House1_MapScripts:: @ 815A82E
MossdeepCity_House1_EventScript_15A82F:: @ 815A82F
lock
faceplayer
- getfirstpartypokename 0
+ bufferleadmonspeciesname 0
msgbox MossdeepCity_House1_Text_18D465, 4
specialvar RESULT, GetPokeblockNameByMonNature
compare RESULT, 0
diff --git a/data/scripts/maps/MossdeepCity_House2.inc b/data/scripts/maps/MossdeepCity_House2.inc
index f7f66b843..1da204ff0 100644
--- a/data/scripts/maps/MossdeepCity_House2.inc
+++ b/data/scripts/maps/MossdeepCity_House2.inc
@@ -13,12 +13,12 @@ MossdeepCity_House2_EventScript_15A87B:: @ 815A87B
lock
faceplayer
waitse
- playpokecry SPECIES_WINGULL, 0
+ playmoncry SPECIES_WINGULL, 0
msgbox MossdeepCity_House2_Text_18D61E, 4
- waitpokecry
+ waitmoncry
closemessage
- setflag 224
- clearflag 933
+ setflag FLAG_WINGULL_DELIVERED_MAIL
+ clearflag FLAG_HIDE_WINGULL_FORTREE_HOUSE
compare FACING, 2
call_if 1, MossdeepCity_House2_EventScript_15A8AE
compare FACING, 3
diff --git a/data/scripts/maps/MossdeepCity_House3.inc b/data/scripts/maps/MossdeepCity_House3.inc
index 8f9bf4dc5..6632ac793 100644
--- a/data/scripts/maps/MossdeepCity_House3.inc
+++ b/data/scripts/maps/MossdeepCity_House3.inc
@@ -4,14 +4,14 @@ MossdeepCity_House3_MapScripts:: @ 815A971
MossdeepCity_House3_EventScript_15A972:: @ 815A972
lock
faceplayer
- checkflag 152
+ checkflag FLAG_RECEIVED_SUPER_ROD
goto_if_eq MossdeepCity_House3_EventScript_15A9B1
msgbox MossdeepCity_House3_Text_18D909, 5
compare RESULT, 0
goto_if_eq MossdeepCity_House3_EventScript_15A9BB
msgbox MossdeepCity_House3_Text_18D9A9, 4
- giveitem ITEM_SUPER_ROD
- setflag 152
+ giveitem_std ITEM_SUPER_ROD
+ setflag FLAG_RECEIVED_SUPER_ROD
msgbox MossdeepCity_House3_Text_18D9E3, 4
release
end
diff --git a/data/scripts/maps/MossdeepCity_House4.inc b/data/scripts/maps/MossdeepCity_House4.inc
index fd173899d..856ee1287 100644
--- a/data/scripts/maps/MossdeepCity_House4.inc
+++ b/data/scripts/maps/MossdeepCity_House4.inc
@@ -4,7 +4,7 @@ MossdeepCity_House4_MapScripts:: @ 815AB30
MossdeepCity_House4_EventScript_15AB31:: @ 815AB31
lock
faceplayer
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq MossdeepCity_House4_EventScript_15AB46
msgbox MossdeepCity_House4_Text_18E0E3, 4
release
@@ -35,8 +35,8 @@ MossdeepCity_House4_EventScript_15AB77:: @ 815AB77
lock
faceplayer
waitse
- playpokecry SPECIES_SKITTY, 0
+ playmoncry SPECIES_SKITTY, 0
msgbox MossdeepCity_House4_Text_18E1E1, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/MossdeepCity_PokemonCenter_1F.inc b/data/scripts/maps/MossdeepCity_PokemonCenter_1F.inc
index 4ed3ea57e..c26238102 100644
--- a/data/scripts/maps/MossdeepCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/MossdeepCity_PokemonCenter_1F.inc
@@ -3,14 +3,14 @@ MossdeepCity_PokemonCenter_1F_MapScripts:: @ 815A8D0
.byte 0
MossdeepCity_PokemonCenter_1F_MapScript1_15A8D6:: @ 815A8D6
- sethealplace 9
+ setrespawn 9
end
MossdeepCity_PokemonCenter_1F_EventScript_15A8DA:: @ 815A8DA
setvar 0x800b, 1
call MossdeepCity_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc b/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc
index 260cb4b6e..884124567 100644
--- a/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc
+++ b/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc
@@ -6,7 +6,7 @@ MossdeepCity_SpaceCenter_1F_EventScript_15AB8B:: @ 815AB8B
faceplayer
dodailyevents
specialvar RESULT, GetWeekCount
- getnumberstring 0, RESULT
+ buffernumberstring 0, RESULT
compare RESULT, 0
call_if 1, MossdeepCity_SpaceCenter_1F_EventScript_15ABBA
compare RESULT, 1
@@ -32,13 +32,13 @@ MossdeepCity_SpaceCenter_1F_EventScript_15ABCC:: @ 815ABCC
MossdeepCity_SpaceCenter_1F_EventScript_15ABD5:: @ 815ABD5
lock
faceplayer
- checkflag 192
+ checkflag FLAG_RECEIVED_SUN_STONE_MOSSDEEP
goto_if_eq MossdeepCity_SpaceCenter_1F_EventScript_15AC0C
msgbox MossdeepCity_SpaceCenter_1F_Text_18E335, 4
- giveitem ITEM_SUN_STONE
+ giveitem_std ITEM_SUN_STONE
compare RESULT, 0
goto_if_eq MossdeepCity_SpaceCenter_1F_EventScript_1A029B
- setflag 192
+ setflag FLAG_RECEIVED_SUN_STONE_MOSSDEEP
msgbox MossdeepCity_SpaceCenter_1F_Text_18E39B, 4
release
end
diff --git a/data/scripts/maps/MossdeepCity_StevensHouse.inc b/data/scripts/maps/MossdeepCity_StevensHouse.inc
index 8bf899780..7e08cfa69 100644
--- a/data/scripts/maps/MossdeepCity_StevensHouse.inc
+++ b/data/scripts/maps/MossdeepCity_StevensHouse.inc
@@ -5,12 +5,12 @@ MossdeepCity_StevensHouse_MapScripts:: @ 815A9C5
.byte 0
MossdeepCity_StevensHouse_MapScript1_15A9D5:: @ 815A9D5
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
call_if 0, MossdeepCity_StevensHouse_EventScript_15A9DF
end
MossdeepCity_StevensHouse_EventScript_15A9DF:: @ 815A9DF
- setmaptile 6, 4, 753, 1
+ setmetatile 6, 4, 753, 1
return
MossdeepCity_StevensHouse_MapScript1_15A9E9:: @ 815A9E9
@@ -39,9 +39,9 @@ MossdeepCity_StevensHouse_EventScript_15AA0B:: @ 815AA0B
applymovement 1, MossdeepCity_StevensHouse_Movement_15AA6E
waitmovement 0
msgbox MossdeepCity_StevensHouse_Text_18DA77, 4
- giveitem ITEM_HM08
- setflag 123
- setflag 302
+ giveitem_std ITEM_HM08
+ setflag FLAG_RECEIVED_HM08
+ setflag FLAG_OMIT_DIVE_FROM_STEVEN_LETTER
msgbox MossdeepCity_StevensHouse_Text_18DB22, 4
closemessage
delay 20
@@ -74,7 +74,7 @@ MossdeepCity_StevensHouse_EventScript_15AA7C:: @ 815AA7C
msgbox MossdeepCity_StevensHouse_Text_18DD12, 5
compare RESULT, 0
goto_if_eq MossdeepCity_StevensHouse_EventScript_15AAE6
- countpokemon
+ getpartysize
compare RESULT, 6
goto_if_eq MossdeepCity_StevensHouse_EventScript_15AADC
copyvar 0x8004, RESULT
@@ -83,13 +83,13 @@ MossdeepCity_StevensHouse_EventScript_15AA7C:: @ 815AA7C
message MossdeepCity_StevensHouse_Text_18DD61
waitfanfare
waitmessage
- givepoke SPECIES_BELDUM, 5, ITEM_NONE, 0x0, 0x0, 0
- getspeciesname 1, SPECIES_BELDUM
+ givemon SPECIES_BELDUM, 5, ITEM_NONE, 0x0, 0x0, 0
+ bufferspeciesname 1, SPECIES_BELDUM
msgbox MossdeepCity_StevensHouse_Text_1A1102, 5
compare RESULT, 1
call_if 1, MossdeepCity_StevensHouse_EventScript_1A0678
- setflag 968
- setflag 298
+ setflag FLAG_HIDE_BELDUM_BALL_STEVENS_HOUSE
+ setflag FLAG_RECEIVED_BELDUM
releaseall
end
@@ -113,7 +113,7 @@ MossdeepCity_StevensHouse_EventScript_15AAF9:: @ 815AAF9
MossdeepCity_StevensHouse_EventScript_15AB02:: @ 815AB02
lockall
- checkflag 302
+ checkflag FLAG_OMIT_DIVE_FROM_STEVEN_LETTER
goto_if_eq MossdeepCity_StevensHouse_EventScript_15AB16
msgbox MossdeepCity_StevensHouse_Text_18DF1A, 4
releaseall
@@ -125,6 +125,6 @@ MossdeepCity_StevensHouse_EventScript_15AB16:: @ 815AB16
end
MossdeepCity_StevensHouse_EventScript_15AB20:: @ 815AB20
- giveitem ITEM_HM08, 1, 1
- setflag 123
+ giveitem_std ITEM_HM08, 1, 1
+ setflag FLAG_RECEIVED_HM08
end
diff --git a/data/scripts/maps/MtChimney.inc b/data/scripts/maps/MtChimney.inc
index a8eec9a32..a51695b59 100644
--- a/data/scripts/maps/MtChimney.inc
+++ b/data/scripts/maps/MtChimney.inc
@@ -9,7 +9,7 @@ MtChimney_MapScript1_15CF87:: @ 815CF87
end
MtChimney_MapScript1_15CF92:: @ 815CF92
- tileeffect 1
+ setstepcallback 1
end
MtChimney_EventScript_15CF95:: @ 815CF95
@@ -27,7 +27,7 @@ MtChimney_EventScript_15CF95:: @ 815CF95
checkitemspace ITEM_LAVA_COOKIE, 1
compare RESULT, 1
call_if 1, MtChimney_EventScript_15D000
- giveitem ITEM_LAVA_COOKIE
+ giveitem_std ITEM_LAVA_COOKIE
compare RESULT, 0
goto_if_eq MtChimney_EventScript_15CFF3
hidemoneybox 0, 0
@@ -406,16 +406,16 @@ MtChimney_EventScript_15D174:: @ 815D174
MtChimney_EventScript_15D17D:: @ 815D17D
lockall
- checkflag 139
+ checkflag FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY
goto_if 0, MtChimney_EventScript_15D1D0
- checkflag 115
+ checkflag FLAG_RECEIVED_METEORITE
goto_if_eq MtChimney_EventScript_15D1C6
msgbox MtChimney_Text_195870, 5
compare RESULT, 0
goto_if_eq MtChimney_EventScript_15D1BC
msgbox MtChimney_Text_1958C6, 4
- giveitem ITEM_METEORITE
- setflag 115
+ giveitem_std ITEM_METEORITE
+ setflag FLAG_RECEIVED_METEORITE
releaseall
end
diff --git a/data/scripts/maps/MtPyre_1F.inc b/data/scripts/maps/MtPyre_1F.inc
index 026d54bfe..7073000d5 100644
--- a/data/scripts/maps/MtPyre_1F.inc
+++ b/data/scripts/maps/MtPyre_1F.inc
@@ -4,13 +4,13 @@ MtPyre_1F_MapScripts:: @ 815D322
MtPyre_1F_EventScript_15D323:: @ 815D323
lock
faceplayer
- checkflag 282
+ checkflag FLAG_RECEIVED_CLEANSE_TAG
goto_if_eq MtPyre_1F_EventScript_15D352
msgbox MtPyre_1F_Text_196151, 4
- giveitem ITEM_CLEANSE_TAG
+ giveitem_std ITEM_CLEANSE_TAG
compare RESULT, 0
goto_if_eq MtPyre_1F_EventScript_1A029B
- setflag 282
+ setflag FLAG_RECEIVED_CLEANSE_TAG
release
end
diff --git a/data/scripts/maps/MtPyre_2F.inc b/data/scripts/maps/MtPyre_2F.inc
index 90ad1d9cc..1d2368597 100644
--- a/data/scripts/maps/MtPyre_2F.inc
+++ b/data/scripts/maps/MtPyre_2F.inc
@@ -5,7 +5,7 @@ MtPyre_2F_MapScripts:: @ 815D36E
.byte 0
MtPyre_2F_MapScript1_15D37E:: @ 815D37E
- tileeffect 7
+ setstepcallback 7
setholewarp MAP_MT_PYRE_1F, 255, 0, 0
end
diff --git a/data/scripts/maps/MtPyre_Summit.inc b/data/scripts/maps/MtPyre_Summit.inc
index 533fb6e90..73e2e4d97 100644
--- a/data/scripts/maps/MtPyre_Summit.inc
+++ b/data/scripts/maps/MtPyre_Summit.inc
@@ -47,8 +47,8 @@ MtPyre_Summit_EventScript_15D4E1:: @ 815D4E1
removeobject 4
removeobject 5
removeobject 6
- setflag 916
- setflag 917
+ setflag FLAG_HIDE_LEADER_MT_PYRE_SUMMIT
+ setflag FLAG_HIDE_GRUNTS_MT_PYRE_SUMMIT
fadescreen 0
delay 20
call MtPyre_Summit_EventScript_15D57A
@@ -63,16 +63,16 @@ MtPyre_Summit_EventScript_15D4E1:: @ 815D4E1
.else
msgbox MtPyre_Summit_Text_1B5FE6, 4
.endif
- giveitem ITEM_RED_OR_BLUE_ORB
- setflag 212
+ giveitem_std ITEM_RED_OR_BLUE_ORB
+ setflag FLAG_RECEIVED_RED_OR_BLUE_ORB
releaseall
end
MtPyre_Summit_EventScript_15D57A:: @ 815D57A
- setflag 111
+ setflag FLAG_MT_PYRE_ORB_STOLEN
setvar 0x4058, 1
- clearflag 840
- clearflag 835
+ clearflag FLAG_HIDE_STERN_SLATEPORT
+ clearflag FLAG_HIDE_GABBY_AND_TY_SLATEPORT
setvar 0x40a0, 1
setvar 0x40b9, 1
return
@@ -169,11 +169,11 @@ MtPyre_Summit_EventScript_15D61A:: @ 815D61A
MtPyre_Summit_EventScript_15D623:: @ 815D623
lock
faceplayer
- checkflag 259
+ checkflag FLAG_RETURNED_RED_OR_BLUE_ORB
goto_if_eq MtPyre_Summit_EventScript_15D6C4
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq MtPyre_Summit_EventScript_15D64A
- checkflag 129
+ checkflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
goto_if_eq MtPyre_Summit_EventScript_15D6BA
.ifdef SAPPHIRE
msgbox UnknownString_81B54BE, 4
@@ -210,7 +210,7 @@ MtPyre_Summit_EventScript_15D669:: @ 815D669
.else
msgbox MtPyre_Summit_Text_1B639C, 4
.endif
- setflag 259
+ setflag FLAG_RETURNED_RED_OR_BLUE_ORB
release
end
diff --git a/data/scripts/maps/NewMauville_Entrance.inc b/data/scripts/maps/NewMauville_Entrance.inc
index 6429ff2f9..a88b35087 100644
--- a/data/scripts/maps/NewMauville_Entrance.inc
+++ b/data/scripts/maps/NewMauville_Entrance.inc
@@ -9,16 +9,16 @@ NewMauville_Entrance_MapScript1_15E495:: @ 815E495
end
NewMauville_Entrance_EventScript_15E4A1:: @ 815E4A1
- setmaptile 3, 0, 788, 1
- setmaptile 4, 0, 789, 1
- setmaptile 5, 0, 790, 1
- setmaptile 3, 1, 796, 1
- setmaptile 4, 1, 797, 1
- setmaptile 5, 1, 798, 1
+ 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 2112
+ setflag FLAG_LANDMARK_NEW_MAUVILLE
end
NewMauville_Entrance_EventScript_15E4DC:: @ 815E4DC
@@ -33,12 +33,12 @@ NewMauville_Entrance_EventScript_15E4DC:: @ 815E4DC
compare RESULT, 0
goto_if_eq NewMauville_Entrance_EventScript_15E55D
msgbox NewMauville_Entrance_Text_1982EA, 4
- setmaptile 3, 0, 707, 0
- setmaptile 4, 0, 708, 0
- setmaptile 5, 0, 709, 0
- setmaptile 3, 1, 715, 1
- setmaptile 4, 1, 716, 0
- setmaptile 5, 1, 717, 1
+ 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 20
setvar 0x40ba, 1
diff --git a/data/scripts/maps/NewMauville_Inside.inc b/data/scripts/maps/NewMauville_Inside.inc
index 2d2a46ab4..aefb23c61 100644
--- a/data/scripts/maps/NewMauville_Inside.inc
+++ b/data/scripts/maps/NewMauville_Inside.inc
@@ -9,7 +9,7 @@ NewMauville_Inside_MapScript1_15E56F:: @ 815E56F
call_if 1, NewMauville_Inside_EventScript_15E5DA
compare 0x4002, 1
call_if 1, NewMauville_Inside_EventScript_15E728
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, NewMauville_Inside_EventScript_15E58F
end
@@ -48,83 +48,83 @@ NewMauville_Inside_EventScript_15E5C2:: @ 815E5C2
end
NewMauville_Inside_EventScript_15E5DA:: @ 815E5DA
- setmaptile 23, 34, 617, 1
- setmaptile 23, 35, 625, 1
- setmaptile 23, 36, 621, 0
- setmaptile 23, 37, 641, 0
- setmaptile 10, 16, 617, 1
- setmaptile 10, 17, 625, 1
- setmaptile 10, 18, 621, 0
- setmaptile 10, 19, 641, 0
- setmaptile 10, 0, 617, 1
- setmaptile 10, 1, 625, 1
- setmaptile 10, 2, 621, 0
- setmaptile 10, 3, 641, 0
- setmaptile 37, 33, 694, 1
- setmaptile 37, 34, 702, 1
- setmaptile 37, 35, 710, 1
- setmaptile 37, 36, 718, 1
- setmaptile 28, 22, 694, 1
- setmaptile 28, 23, 702, 1
- setmaptile 28, 24, 710, 1
- setmaptile 28, 25, 718, 1
- setmaptile 10, 24, 694, 1
- setmaptile 10, 25, 702, 1
- setmaptile 10, 26, 710, 1
- setmaptile 10, 27, 718, 1
- setmaptile 21, 2, 694, 1
- setmaptile 21, 3, 702, 1
- setmaptile 21, 4, 710, 1
- setmaptile 21, 5, 718, 1
- setmaptile 6, 11, 591, 0
- setmaptile 13, 10, 591, 0
- setmaptile 16, 22, 591, 0
- setmaptile 4, 26, 591, 0
- setmaptile 30, 38, 591, 0
- setmaptile 2, 11, 558, 0
- setmaptile 17, 10, 558, 0
- setmaptile 25, 18, 558, 0
- setmaptile 18, 36, 558, 0
+ 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
- setmaptile 23, 34, 695, 1
- setmaptile 23, 35, 703, 1
- setmaptile 23, 36, 711, 1
- setmaptile 23, 37, 719, 1
- setmaptile 10, 16, 695, 1
- setmaptile 10, 17, 703, 1
- setmaptile 10, 18, 711, 1
- setmaptile 10, 19, 719, 1
- setmaptile 10, 0, 695, 1
- setmaptile 10, 1, 703, 1
- setmaptile 10, 2, 711, 1
- setmaptile 10, 3, 719, 1
- setmaptile 37, 33, 617, 1
- setmaptile 37, 34, 625, 1
- setmaptile 37, 35, 621, 0
- setmaptile 37, 36, 641, 0
- setmaptile 28, 22, 617, 1
- setmaptile 28, 23, 625, 1
- setmaptile 28, 24, 621, 0
- setmaptile 28, 25, 641, 0
- setmaptile 10, 24, 617, 1
- setmaptile 10, 25, 625, 1
- setmaptile 10, 26, 621, 0
- setmaptile 10, 27, 641, 0
- setmaptile 21, 2, 617, 1
- setmaptile 21, 3, 625, 1
- setmaptile 21, 4, 621, 0
- setmaptile 21, 5, 641, 0
- setmaptile 2, 11, 591, 0
- setmaptile 17, 10, 591, 0
- setmaptile 25, 18, 591, 0
- setmaptile 18, 36, 591, 0
- setmaptile 6, 11, 566, 0
- setmaptile 13, 10, 566, 0
- setmaptile 16, 22, 566, 0
- setmaptile 4, 26, 566, 0
- setmaptile 30, 38, 566, 0
+ 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
@@ -136,15 +136,15 @@ NewMauville_Inside_EventScript_15E876:: @ 815E876
end
NewMauville_Inside_EventScript_15E88B:: @ 815E88B
- setmaptile 33, 6, 591, 0
- setmaptile 32, 2, 752, 1
- setmaptile 33, 2, 753, 1
- setmaptile 34, 2, 754, 1
- setmaptile 35, 2, 755, 1
- setmaptile 32, 3, 756, 1
- setmaptile 33, 3, 757, 1
- setmaptile 34, 3, 758, 1
- setmaptile 35, 3, 759, 1
+ 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
@@ -166,13 +166,13 @@ NewMauville_Inside_EventScript_15E900:: @ 815E900
faceplayer
setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
waitse
- playpokecry SPECIES_VOLTORB, 2
+ playmoncry SPECIES_VOLTORB, 2
delay 40
- waitpokecry
- setflag 974
- setflag 2145
+ waitmoncry
+ setflag FLAG_HIDE_VOLTORB_1_NEW_MAUVILLE
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
dowildbattle
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
release
end
@@ -181,13 +181,13 @@ NewMauville_Inside_EventScript_15E91E:: @ 815E91E
faceplayer
setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
waitse
- playpokecry SPECIES_VOLTORB, 2
+ playmoncry SPECIES_VOLTORB, 2
delay 40
- waitpokecry
- setflag 975
- setflag 2145
+ waitmoncry
+ setflag FLAG_HIDE_VOLTORB_2_NEW_MAUVILLE
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
dowildbattle
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
release
end
@@ -196,12 +196,12 @@ NewMauville_Inside_EventScript_15E93C:: @ 815E93C
faceplayer
setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
waitse
- playpokecry SPECIES_VOLTORB, 2
+ playmoncry SPECIES_VOLTORB, 2
delay 40
- waitpokecry
- setflag 976
- setflag 2145
+ waitmoncry
+ setflag FLAG_HIDE_VOLTORB_3_NEW_MAUVILLE
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
dowildbattle
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
release
end
diff --git a/data/scripts/maps/OldaleTown.inc b/data/scripts/maps/OldaleTown.inc
index e80df2cd2..465cbcfc6 100644
--- a/data/scripts/maps/OldaleTown.inc
+++ b/data/scripts/maps/OldaleTown.inc
@@ -4,12 +4,12 @@ OldaleTown_MapScripts:: @ 814DD62
OldaleTown_MapScript1_14DD68:: @ 814DD68
call OldaleTown_EventScript_1A014E
- setflag 2064
- checkflag 116
+ setflag FLAG_VISITED_OLDALE_TOWN
+ checkflag FLAG_ADVENTURE_STARTED
call_if 0, OldaleTown_EventScript_14DD92
- checkflag 132
+ checkflag FLAG_RECEIVED_POTION_OLDALE
call_if 0, OldaleTown_EventScript_14DD9E
- checkflag 116
+ checkflag FLAG_ADVENTURE_STARTED
call_if 1, OldaleTown_EventScript_14DD8C
end
@@ -38,11 +38,11 @@ OldaleTown_EventScript_14DDB3:: @ 814DDB3
OldaleTown_EventScript_14DDBC:: @ 814DDBC
lock
faceplayer
- checkflag 132
+ checkflag FLAG_RECEIVED_POTION_OLDALE
goto_if_eq OldaleTown_EventScript_14DE79
- checkflag 1
+ checkflag FLAG_TEMP_1
goto_if_eq OldaleTown_EventScript_14DE79
- setflag 1
+ setflag FLAG_TEMP_1
playbgm 420, 0
msgbox OldaleTown_Text_16AEF2, 4
closemessage
@@ -75,11 +75,11 @@ OldaleTown_EventScript_14DE35:: @ 814DE35
OldaleTown_EventScript_14DE4C:: @ 814DE4C
msgbox OldaleTown_Text_16AF2F, 4
- giveitem ITEM_POTION
+ giveitem_std ITEM_POTION
compare RESULT, 0
goto_if_eq OldaleTown_EventScript_14DE83
msgbox OldaleTown_Text_16AFE1, 4
- setflag 132
+ setflag FLAG_RECEIVED_POTION_OLDALE
fadedefaultbgm
release
end
@@ -195,7 +195,7 @@ OldaleTown_Movement_14DECB:: @ 814DECB
OldaleTown_EventScript_14DEDF:: @ 814DEDF
lock
faceplayer
- checkflag 116
+ checkflag FLAG_ADVENTURE_STARTED
goto_if_eq OldaleTown_EventScript_14DF26
msgbox OldaleTown_Text_16B0CC, 4
closemessage
@@ -279,7 +279,7 @@ OldaleTown_EventScript_14DFC6:: @ 814DFC6
waitmovement 0
removeobject 4
setvar 0x40c7, 2
- setflag 979
+ setflag FLAG_HIDE_RIVAL_OLDALE_TOWN
releaseall
end
diff --git a/data/scripts/maps/OldaleTown_Mart.inc b/data/scripts/maps/OldaleTown_Mart.inc
index b9698b58f..f90c787c2 100644
--- a/data/scripts/maps/OldaleTown_Mart.inc
+++ b/data/scripts/maps/OldaleTown_Mart.inc
@@ -6,7 +6,7 @@ OldaleTown_Mart_EventScript_152F79:: @ 8152F79
faceplayer
message OldaleTown_Mart_Text_1A0BE4
waitmessage
- checkflag 116
+ checkflag FLAG_ADVENTURE_STARTED
goto_if_eq OldaleTown_Mart_EventScript_152FA8
pokemart OldaleTown_Mart_Items1
msgbox OldaleTown_Mart_Text_1A0C02, 4
@@ -43,7 +43,7 @@ OldaleTown_Mart_Items2:: @ 8152FB8
OldaleTown_Mart_EventScript_152FC6:: @ 8152FC6
lock
faceplayer
- checkflag 116
+ checkflag FLAG_ADVENTURE_STARTED
goto_if_eq OldaleTown_Mart_EventScript_152FDB
msgbox OldaleTown_Mart_Text_174A8A, 4
release
diff --git a/data/scripts/maps/OldaleTown_PokemonCenter_1F.inc b/data/scripts/maps/OldaleTown_PokemonCenter_1F.inc
index 494f109fe..cbf3acd27 100644
--- a/data/scripts/maps/OldaleTown_PokemonCenter_1F.inc
+++ b/data/scripts/maps/OldaleTown_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ OldaleTown_PokemonCenter_1F_MapScripts:: @ 8152F08
.byte 0
OldaleTown_PokemonCenter_1F_MapScript1_152F0E:: @ 8152F0E
- sethealplace 14
+ setrespawn 14
call OldaleTown_PokemonCenter_1F_EventScript_19FD1B
end
@@ -11,7 +11,7 @@ OldaleTown_PokemonCenter_1F_EventScript_152F17:: @ 8152F17
setvar 0x800b, 1
call OldaleTown_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
@@ -26,7 +26,7 @@ OldaleTown_PokemonCenter_1F_EventScript_152F2E:: @ 8152F2E
OldaleTown_PokemonCenter_1F_EventScript_152F37:: @ 8152F37
lock
faceplayer
- checkflag 2049
+ checkflag FLAG_SYS_POKEDEX_GET
goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_152F4C
msgbox OldaleTown_PokemonCenter_1F_Text_1749C0, 4
release
diff --git a/data/scripts/maps/PacifidlogTown.inc b/data/scripts/maps/PacifidlogTown.inc
index c7cfb08df..d7ac80a0a 100644
--- a/data/scripts/maps/PacifidlogTown.inc
+++ b/data/scripts/maps/PacifidlogTown.inc
@@ -4,11 +4,11 @@ PacifidlogTown_MapScripts:: @ 814E8EE
.byte 0
PacifidlogTown_MapScript1_14E8F9:: @ 814E8F9
- setflag 2069
+ setflag FLAG_VISITED_PACIFIDLOG_TOWN
end
PacifidlogTown_MapScript1_14E8FD:: @ 814E8FD
- tileeffect 3
+ setstepcallback 3
end
PacifidlogTown_EventScript_14E900:: @ 814E900
diff --git a/data/scripts/maps/PacifidlogTown_House2.inc b/data/scripts/maps/PacifidlogTown_House2.inc
index e04a8caae..f073201ca 100644
--- a/data/scripts/maps/PacifidlogTown_House2.inc
+++ b/data/scripts/maps/PacifidlogTown_House2.inc
@@ -6,13 +6,13 @@ PacifidlogTown_House2_EventScript_154168:: @ 8154168
faceplayer
dodailyevents
call PacifidlogTown_House2_EventScript_1541B4
- checkflag 299
+ checkflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
goto_if_eq PacifidlogTown_House2_EventScript_154254
- checkflag 300
+ checkflag FLAG_MET_FANCLUB_YOUNGER_BROTHER
call_if 1, PacifidlogTown_House2_EventScript_1541CE
- checkflag 300
+ checkflag FLAG_MET_FANCLUB_YOUNGER_BROTHER
call_if 0, PacifidlogTown_House2_EventScript_1541D7
- setflag 300
+ setflag FLAG_MET_FANCLUB_YOUNGER_BROTHER
specialvar RESULT, GetLeadMonFriendshipScore
compare RESULT, 4
goto_if 4, PacifidlogTown_House2_EventScript_1541EC
@@ -23,7 +23,7 @@ PacifidlogTown_House2_EventScript_154168:: @ 8154168
end
PacifidlogTown_House2_EventScript_1541B4:: @ 81541B4
- checkflag 299
+ checkflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
goto_if 0, PacifidlogTown_House2_EventScript_1A14DC
specialvar RESULT, sub_810F908
compare RESULT, 0
@@ -40,15 +40,15 @@ PacifidlogTown_House2_EventScript_1541D7:: @ 81541D7
return
PacifidlogTown_House2_EventScript_1541E8:: @ 81541E8
- clearflag 299
+ clearflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
return
PacifidlogTown_House2_EventScript_1541EC:: @ 81541EC
msgbox PacifidlogTown_House2_Text_179169, 4
- giveitem ITEM_TM27
+ giveitem_std ITEM_TM27
compare RESULT, 0
goto_if_eq PacifidlogTown_House2_EventScript_1A029B
- setflag 299
+ setflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
special sub_810F950
msgbox PacifidlogTown_House2_Text_179283, 4
release
@@ -61,10 +61,10 @@ PacifidlogTown_House2_EventScript_15421B:: @ 815421B
PacifidlogTown_House2_EventScript_154225:: @ 8154225
msgbox PacifidlogTown_House2_Text_17922D, 4
- giveitem ITEM_TM21
+ giveitem_std ITEM_TM21
compare RESULT, 0
goto_if_eq PacifidlogTown_House2_EventScript_1A029B
- setflag 299
+ setflag FLAG_RECEIVED_FANCLUB_TM_THIS_WEEK
special sub_810F950
msgbox PacifidlogTown_House2_Text_179283, 4
release
@@ -72,7 +72,7 @@ PacifidlogTown_House2_EventScript_154225:: @ 8154225
PacifidlogTown_House2_EventScript_154254:: @ 8154254
specialvar RESULT, sub_810F908
- getnumberstring 0, RESULT
+ buffernumberstring 0, RESULT
msgbox PacifidlogTown_House2_Text_1792F2, 4
release
end
@@ -81,9 +81,9 @@ PacifidlogTown_House2_EventScript_154267:: @ 8154267
lock
faceplayer
waitse
- playpokecry SPECIES_AZURILL, 0
+ playmoncry SPECIES_AZURILL, 0
msgbox PacifidlogTown_House2_Text_17938B, 4
- waitpokecry
+ waitmoncry
msgbox PacifidlogTown_House2_Text_17939B, 4
release
end
@@ -92,9 +92,9 @@ PacifidlogTown_House2_EventScript_154282:: @ 8154282
lock
faceplayer
waitse
- playpokecry SPECIES_AZURILL, 2
+ playmoncry SPECIES_AZURILL, 2
msgbox PacifidlogTown_House2_Text_1793CC, 4
- waitpokecry
+ waitmoncry
msgbox PacifidlogTown_House2_Text_1793DD, 4
release
end
diff --git a/data/scripts/maps/PacifidlogTown_House3.inc b/data/scripts/maps/PacifidlogTown_House3.inc
index 28b9dbd80..624a221d5 100644
--- a/data/scripts/maps/PacifidlogTown_House3.inc
+++ b/data/scripts/maps/PacifidlogTown_House3.inc
@@ -4,7 +4,7 @@ PacifidlogTown_House3_MapScripts:: @ 815429D
PacifidlogTown_House3_EventScript_15429E:: @ 815429E
lock
faceplayer
- checkflag 154
+ checkflag FLAG_PACIFIDLOG_NPC_TRADE_COMPLETED
goto_if_eq PacifidlogTown_House3_EventScript_154338
setvar 0x8008, 2
copyvar 0x8004, 0x8008
@@ -28,9 +28,9 @@ PacifidlogTown_House3_EventScript_15429E:: @ 815429E
special sub_804DB68
special sub_804E174
waitstate
- getspeciesname 0, 0x8009
+ bufferspeciesname 0, 0x8009
msgbox PacifidlogTown_House3_Text_1794C4, 4
- setflag 154
+ setflag FLAG_PACIFIDLOG_NPC_TRADE_COMPLETED
release
end
@@ -40,7 +40,7 @@ PacifidlogTown_House3_EventScript_154320:: @ 8154320
end
PacifidlogTown_House3_EventScript_15432A:: @ 815432A
- getspeciesname 0, 0x8009
+ bufferspeciesname 0, 0x8009
msgbox PacifidlogTown_House3_Text_1794DF, 4
release
end
diff --git a/data/scripts/maps/PacifidlogTown_PokemonCenter_1F.inc b/data/scripts/maps/PacifidlogTown_PokemonCenter_1F.inc
index 64dd5008c..95d5448e8 100644
--- a/data/scripts/maps/PacifidlogTown_PokemonCenter_1F.inc
+++ b/data/scripts/maps/PacifidlogTown_PokemonCenter_1F.inc
@@ -3,14 +3,14 @@ PacifidlogTown_PokemonCenter_1F_MapScripts:: @ 81540FF
.byte 0
PacifidlogTown_PokemonCenter_1F_MapScript1_154105:: @ 8154105
- sethealplace 19
+ setrespawn 19
end
@ 8154109
setvar 0x800b, 1
call VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/PetalburgCity.inc b/data/scripts/maps/PetalburgCity.inc
index b4548ddce..45cdce991 100644
--- a/data/scripts/maps/PetalburgCity.inc
+++ b/data/scripts/maps/PetalburgCity.inc
@@ -4,7 +4,7 @@ PetalburgCity_MapScripts:: @ 814B70C
.byte 0
PetalburgCity_MapScript1_14B717:: @ 814B717
- setflag 2070
+ setflag FLAG_VISITED_PETALBURG_CITY
compare 0x4057, 0
call_if 1, PetalburgCity_EventScript_14B731
compare 0x4057, 2
diff --git a/data/scripts/maps/PetalburgCity_Gym.inc b/data/scripts/maps/PetalburgCity_Gym.inc
index 6c92316d6..add786bf0 100644
--- a/data/scripts/maps/PetalburgCity_Gym.inc
+++ b/data/scripts/maps/PetalburgCity_Gym.inc
@@ -48,7 +48,7 @@ PetalburgCity_Gym_MapScript1_15451B:: @ 815451B
call_if 1, PetalburgCity_Gym_EventScript_15453B
compare 0x4085, 6
call_if 0, PetalburgCity_Gym_EventScript_154543
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
call_if 1, PetalburgCity_Gym_EventScript_15454B
end
@@ -86,7 +86,7 @@ PetalburgCity_Gym_EventScript_15456C:: @ 815456C
waitmovement 0
playse 9
removeobject 10
- setflag 726
+ setflag FLAG_HIDE_WALLY_PETALBURG
delay 30
applymovement 255, PetalburgCity_Gym_Movement_1A0841
waitmovement 0
@@ -205,12 +205,12 @@ PetalburgCity_Gym_EventScript_154669:: @ 8154669
compare 0x8008, 3
call_if 1, PetalburgCity_Gym_EventScript_154872
removeobject 10
- setflag 728
+ setflag FLAG_HIDE_WALLY_MOM_PETALBURG_1
setvar 0x4085, 1
setvar 0x4057, 2
- clearflag 726
- clearflag 866
- setflag 889
+ 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
@@ -354,9 +354,9 @@ PetalburgCity_Gym_EventScript_15493D:: @ 815493D
call PetalburgCity_Gym_EventScript_154969
compare RESULT, 1
goto_if_eq PetalburgCity_Gym_EventScript_1549B8
- checkflag 169
+ checkflag FLAG_RECEIVED_TM42
goto_if 0, PetalburgCity_Gym_EventScript_154A2C
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq PetalburgCity_Gym_EventScript_154B69
msgbox PetalburgCity_Gym_Text_17AA6B, 4
release
@@ -383,7 +383,7 @@ PetalburgCity_Gym_EventScript_1549B2:: @ 81549B2
return
PetalburgCity_Gym_EventScript_1549B8:: @ 81549B8
- giveitem ITEM_ENIGMA_BERRY
+ giveitem_std ITEM_ENIGMA_BERRY
compare RESULT, 0
goto_if_eq PetalburgCity_Gym_EventScript_1A029B
setvar 0x402d, 0
@@ -397,25 +397,25 @@ PetalburgCity_Gym_EventScript_1549D6:: @ 81549D6
waitmessage
call PetalburgCity_Gym_EventScript_1A02C5
msgbox PetalburgCity_Gym_Text_17A805, 4
- setflag 1217
+ setflag FLAG_DEFEATED_PETALBURG_GYM
setvar 0x4085, 7
- setflag 2059
+ setflag FLAG_BADGE05_GET
call PetalburgCity_Gym_EventScript_1A0424
- setflag 913
- clearflag 912
+ setflag FLAG_HIDE_WATTSON_MAUVILLE_GYM
+ clearflag FLAG_HIDE_WATTSON_MAUVILLE
setvar 0x8008, 5
call PetalburgCity_Gym_EventScript_1A01C0
- clearflag 940
+ 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 ITEM_TM42
+ giveitem_std ITEM_TM42
compare RESULT, 0
goto_if_eq PetalburgCity_Gym_EventScript_1A029B
- setflag 169
+ setflag FLAG_RECEIVED_TM42
msgbox PetalburgCity_Gym_Text_17A8CF, 4
msgbox PetalburgCity_Gym_Text_17A976, 4
closemessage
@@ -765,7 +765,7 @@ PetalburgCity_Gym_EventScript_154DC3:: @ 8154DC3
PetalburgCity_Gym_EventScript_154DF6:: @ 8154DF6
trainerbattle 2, OPPONENT_RANDALL, 0, PetalburgCity_Gym_Text_17ADA5, PetalburgCity_Gym_Text_17AE11, PetalburgCity_Gym_EventScript_154E1A
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_Gym_EventScript_154E29
msgbox PetalburgCity_Gym_Text_17AE30, 6
end
@@ -783,7 +783,7 @@ PetalburgCity_Gym_EventScript_154E29:: @ 8154E29
PetalburgCity_Gym_EventScript_154E32:: @ 8154E32
trainerbattle 2, OPPONENT_PARKER, 0, PetalburgCity_Gym_Text_17AF5A, PetalburgCity_Gym_Text_17AF98, PetalburgCity_Gym_EventScript_154E56
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_Gym_EventScript_154E65
msgbox PetalburgCity_Gym_Text_17AFD3, 6
end
@@ -801,7 +801,7 @@ PetalburgCity_Gym_EventScript_154E65:: @ 8154E65
PetalburgCity_Gym_EventScript_154E6E:: @ 8154E6E
trainerbattle 2, OPPONENT_GEORGE, 0, PetalburgCity_Gym_Text_17B058, PetalburgCity_Gym_Text_17B0F7, PetalburgCity_Gym_EventScript_154E92
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_Gym_EventScript_154EA1
msgbox PetalburgCity_Gym_Text_17B12C, 6
end
@@ -819,7 +819,7 @@ PetalburgCity_Gym_EventScript_154EA1:: @ 8154EA1
PetalburgCity_Gym_EventScript_154EAA:: @ 8154EAA
trainerbattle 2, OPPONENT_BERKE, 0, PetalburgCity_Gym_Text_17B237, PetalburgCity_Gym_Text_17B2C0, PetalburgCity_Gym_EventScript_154ECE
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_Gym_EventScript_154EDD
msgbox PetalburgCity_Gym_Text_17B2E4, 6
end
@@ -837,7 +837,7 @@ PetalburgCity_Gym_EventScript_154EDD:: @ 8154EDD
PetalburgCity_Gym_EventScript_154EE6:: @ 8154EE6
trainerbattle 2, OPPONENT_MARY, 0, PetalburgCity_Gym_Text_17B3F7, PetalburgCity_Gym_Text_17B454, PetalburgCity_Gym_EventScript_154F0A
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_Gym_EventScript_154F19
msgbox PetalburgCity_Gym_Text_17B46F, 6
end
@@ -855,7 +855,7 @@ PetalburgCity_Gym_EventScript_154F19:: @ 8154F19
PetalburgCity_Gym_EventScript_154F22:: @ 8154F22
trainerbattle 2, OPPONENT_LORI, 0, PetalburgCity_Gym_Text_17B58D, PetalburgCity_Gym_Text_17B5CB, PetalburgCity_Gym_EventScript_154F46
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_Gym_EventScript_154F55
msgbox PetalburgCity_Gym_Text_17B5EA, 6
end
@@ -873,7 +873,7 @@ PetalburgCity_Gym_EventScript_154F55:: @ 8154F55
PetalburgCity_Gym_EventScript_154F5E:: @ 8154F5E
trainerbattle 2, OPPONENT_JODY, 0, PetalburgCity_Gym_Text_17B6D4, PetalburgCity_Gym_Text_17B732, PetalburgCity_Gym_EventScript_154F82
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_Gym_EventScript_154F91
msgbox PetalburgCity_Gym_Text_17B749, 6
end
@@ -962,51 +962,51 @@ PetalburgCity_Gym_EventScript_155081:: @ 8155081
return
PetalburgCity_Gym_EventScript_1550A2:: @ 81550A2
- setmaptile 6, 85, 528, 0
- setmaptile 7, 85, 529, 0
- setmaptile 1, 98, 528, 0
- setmaptile 2, 98, 529, 0
+ 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
- setmaptile 6, 46, 528, 0
- setmaptile 7, 46, 529, 0
- setmaptile 1, 59, 528, 0
- setmaptile 2, 59, 529, 0
+ 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
- setmaptile 6, 59, 528, 0
- setmaptile 7, 59, 529, 0
- setmaptile 1, 72, 528, 0
- setmaptile 2, 72, 529, 0
+ 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
- setmaptile 1, 20, 528, 0
- setmaptile 2, 20, 529, 0
+ setmetatile 1, 20, 528, 0
+ setmetatile 2, 20, 529, 0
return
PetalburgCity_Gym_EventScript_155124:: @ 8155124
- setmaptile 6, 20, 528, 0
- setmaptile 7, 20, 529, 0
- setmaptile 1, 33, 528, 0
- setmaptile 2, 33, 529, 0
+ 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
- setmaptile 6, 33, 528, 0
- setmaptile 7, 33, 529, 0
+ setmetatile 6, 33, 528, 0
+ setmetatile 7, 33, 529, 0
return
PetalburgCity_Gym_EventScript_15515C:: @ 815515C
- setmaptile 1, 7, 528, 0
- setmaptile 2, 7, 529, 0
+ setmetatile 1, 7, 528, 0
+ setmetatile 2, 7, 529, 0
return
PetalburgCity_Gym_EventScript_15516F:: @ 815516F
- setmaptile 6, 7, 528, 0
- setmaptile 7, 7, 529, 0
+ setmetatile 6, 7, 528, 0
+ setmetatile 7, 7, 529, 0
return
PetalburgCity_Gym_EventScript_155182:: @ 8155182
@@ -1021,7 +1021,7 @@ PetalburgCity_Gym_EventScript_155187:: @ 8155187
PetalburgCity_Gym_EventScript_15518B:: @ 815518B
lock
faceplayer
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_Gym_EventScript_1551A0
msgbox PetalburgCity_Gym_Text_17AB96, 4
release
@@ -1034,14 +1034,14 @@ PetalburgCity_Gym_EventScript_1551A0:: @ 81551A0
PetalburgCity_Gym_EventScript_1551AA:: @ 81551AA
lockall
- checkflag 2059
+ checkflag FLAG_BADGE05_GET
goto_if_eq PetalburgCity_Gym_EventScript_1551CA
goto PetalburgCity_Gym_EventScript_1551D4
end
PetalburgCity_Gym_EventScript_1551BA:: @ 81551BA
lockall
- checkflag 2059
+ checkflag FLAG_BADGE05_GET
goto_if_eq PetalburgCity_Gym_EventScript_1551CA
goto PetalburgCity_Gym_EventScript_1551D4
end
diff --git a/data/scripts/maps/PetalburgCity_Mart.inc b/data/scripts/maps/PetalburgCity_Mart.inc
index e4186eaae..66e247323 100644
--- a/data/scripts/maps/PetalburgCity_Mart.inc
+++ b/data/scripts/maps/PetalburgCity_Mart.inc
@@ -6,7 +6,7 @@ PetalburgCity_Mart_EventScript_1552B0:: @ 81552B0
faceplayer
message PetalburgCity_Mart_Text_1A0BE4
waitmessage
- checkflag 296
+ checkflag FLAG_PETALBURG_MART_EXPANDED_ITEMS
goto_if_eq PetalburgCity_Mart_EventScript_1552EA
pokemart PetalburgCity_Mart_Items1
msgbox PetalburgCity_Mart_Text_1A0C02, 4
diff --git a/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc b/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc
index e2013a1d6..1dc99159a 100644
--- a/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ PetalburgCity_PokemonCenter_1F_MapScripts:: @ 8155204
.byte 0
PetalburgCity_PokemonCenter_1F_MapScript1_15520A:: @ 815520A
- sethealplace 3
+ setrespawn 3
call PetalburgCity_PokemonCenter_1F_EventScript_19FD1B
end
@@ -11,7 +11,7 @@ PetalburgCity_PokemonCenter_1F_EventScript_155213:: @ 8155213
setvar 0x800b, 1
call PetalburgCity_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/PetalburgCity_WallysHouse.inc b/data/scripts/maps/PetalburgCity_WallysHouse.inc
index d8e95d8c6..08bbcb0c7 100644
--- a/data/scripts/maps/PetalburgCity_WallysHouse.inc
+++ b/data/scripts/maps/PetalburgCity_WallysHouse.inc
@@ -4,29 +4,29 @@ PetalburgCity_WallysHouse_MapScripts:: @ 81543C3
PetalburgCity_WallysHouse_EventScript_1543C4:: @ 81543C4
lock
faceplayer
- checkflag 126
+ checkflag FLAG_DEFEATED_WALLY_VICTORY_ROAD
goto_if_eq PetalburgCity_WallysHouse_EventScript_1543F7
- checkflag 122
+ checkflag FLAG_RECEIVED_HM03
goto_if_eq PetalburgCity_WallysHouse_EventScript_154427
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_WallysHouse_EventScript_154406
- checkflag 135
+ checkflag FLAG_THANKED_FOR_PLAYING_WITH_WALLY
goto_if_eq PetalburgCity_WallysHouse_EventScript_15443B
msgbox PetalburgCity_WallysHouse_Text_179805, 4
- setflag 135
+ setflag FLAG_THANKED_FOR_PLAYING_WITH_WALLY
release
end
PetalburgCity_WallysHouse_EventScript_1543F7:: @ 81543F7
- checkflag 122
+ checkflag FLAG_RECEIVED_HM03
goto_if_eq PetalburgCity_WallysHouse_EventScript_154431
goto PetalburgCity_WallysHouse_EventScript_154406
end
PetalburgCity_WallysHouse_EventScript_154406:: @ 8154406
msgbox PetalburgCity_WallysHouse_Text_179996, 4
- giveitem ITEM_HM03
- setflag 122
+ giveitem_std ITEM_HM03
+ setflag FLAG_RECEIVED_HM03
msgbox PetalburgCity_WallysHouse_Text_179B14, 4
release
end
@@ -49,9 +49,9 @@ PetalburgCity_WallysHouse_EventScript_15443B:: @ 815443B
PetalburgCity_WallysHouse_EventScript_154445:: @ 8154445
lock
faceplayer
- checkflag 122
+ checkflag FLAG_RECEIVED_HM03
goto_if_eq PetalburgCity_WallysHouse_EventScript_15446D
- checkflag 1217
+ checkflag FLAG_DEFEATED_PETALBURG_GYM
goto_if_eq PetalburgCity_WallysHouse_EventScript_154463
msgbox PetalburgCity_WallysHouse_Text_179C2C, 4
release
diff --git a/data/scripts/maps/PetalburgWoods.inc b/data/scripts/maps/PetalburgWoods.inc
index 0b0c72f70..be74cbf4c 100644
--- a/data/scripts/maps/PetalburgWoods.inc
+++ b/data/scripts/maps/PetalburgWoods.inc
@@ -90,7 +90,7 @@ PetalburgWoods_EventScript_15CDFA:: @ 815CDFA
applymovement 255, PetalburgWoods_Movement_1A0845
waitmovement 0
msgbox PetalburgWoods_Text_19507E, 4
- giveitem ITEM_GREAT_BALL
+ giveitem_std ITEM_GREAT_BALL
compare RESULT, 0
goto_if_eq PetalburgWoods_EventScript_15CE3F
goto PetalburgWoods_EventScript_15CE4D
@@ -241,13 +241,13 @@ PetalburgWoods_EventScript_15CED3:: @ 815CED3
PetalburgWoods_EventScript_15CEDC:: @ 815CEDC
lock
faceplayer
- checkflag 297
+ checkflag FLAG_RECEIVED_MIRACLE_SEED
goto_if_eq PetalburgWoods_EventScript_15CF0B
msgbox PetalburgWoods_Text_19549E, 4
- giveitem ITEM_MIRACLE_SEED
+ giveitem_std ITEM_MIRACLE_SEED
compare RESULT, 0
goto_if_eq PetalburgWoods_EventScript_1A029B
- setflag 297
+ setflag FLAG_RECEIVED_MIRACLE_SEED
release
end
diff --git a/data/scripts/maps/Route101.inc b/data/scripts/maps/Route101.inc
index 747b56197..1810a6495 100644
--- a/data/scripts/maps/Route101.inc
+++ b/data/scripts/maps/Route101.inc
@@ -217,8 +217,8 @@ Route101_EventScript_14EA76:: @ 814EA76
Route101_EventScript_14EA7F:: @ 814EA7F
lock
faceplayer
- setflag 2048
- setflag 82
+ setflag FLAG_SYS_POKEMON_GET
+ setflag FLAG_RESCUED_BIRCH
fadescreen 1
removeobject 4
setobjectxy 255, 6, 13
@@ -230,9 +230,9 @@ Route101_EventScript_14EA7F:: @ 814EA7F
waitmovement 0
msgbox Route101_Text_16D191, 4
special ScrSpecial_HealPlayerParty
- setflag 720
- clearflag 721
- setflag 700
+ setflag FLAG_HIDE_BIRCH_BATTLE_POOCHYENA
+ clearflag FLAG_HIDE_BIRCH_IN_LAB
+ setflag FLAG_HIDE_BIRCH_STARTERS_BAG
setvar 0x4084, 2
setvar 0x4060, 3
clearflag 0x4000
diff --git a/data/scripts/maps/Route103.inc b/data/scripts/maps/Route103.inc
index ff0ccce30..ee9decedc 100644
--- a/data/scripts/maps/Route103.inc
+++ b/data/scripts/maps/Route103.inc
@@ -119,10 +119,10 @@ Route103_EventScript_14ED46:: @ 814ED46
removeobject 2
setvar 0x4062, 1
setvar 0x4084, 4
- clearflag 889
- setflag 130
+ clearflag FLAG_HIDE_RIVAL_BIRCH_LAB
+ setflag FLAG_DEFEATED_RIVAL_ROUTE103
setvar 0x40c7, 1
- clearflag 979
+ clearflag FLAG_HIDE_RIVAL_OLDALE_TOWN
savebgm 0
fadedefaultbgm
releaseall
diff --git a/data/scripts/maps/Route104.inc b/data/scripts/maps/Route104.inc
index 651f2afb4..a04dcd86d 100644
--- a/data/scripts/maps/Route104.inc
+++ b/data/scripts/maps/Route104.inc
@@ -17,27 +17,27 @@ Route104_MapScript1_14EEA8:: @ 814EEA8
end
Route104_EventScript_14EEAE:: @ 814EEAE
- checkflag 127
+ checkflag FLAG_MET_PRETTY_PETAL_SHOP_OWNER
goto_if 0, Route104_EventScript_14EEC4
- checkflag 2057
+ checkflag FLAG_BADGE03_GET
goto_if 0, Route104_EventScript_14EEC4
- clearflag 906
+ clearflag FLAG_HIDE_FLOWER_SHOP_WORKER_OUTSIDE
return
Route104_EventScript_14EEC4:: @ 814EEC4
- setflag 906
+ setflag FLAG_HIDE_FLOWER_SHOP_WORKER_OUTSIDE
return
Route104_EventScript_14EEC8:: @ 814EEC8
lock
faceplayer
- checkflag 246
+ checkflag FLAG_RECEIVED_CHESTO_BERRY_ROUTE104
goto_if_eq Route104_EventScript_14EEFF
msgbox Route104_Text_1C55B9, 4
- giveitem ITEM_CHESTO_BERRY
+ giveitem_std ITEM_CHESTO_BERRY
compare RESULT, 0
goto_if_eq Route104_EventScript_1A029B
- setflag 246
+ setflag FLAG_RECEIVED_CHESTO_BERRY_ROUTE104
msgbox Route104_Text_1C5665, 4
release
end
@@ -50,13 +50,13 @@ Route104_EventScript_14EEFF:: @ 814EEFF
Route104_EventScript_14EF09:: @ 814EF09
lock
faceplayer
- checkflag 279
+ checkflag FLAG_RECEIVED_WHITE_HERB
goto_if_eq Route104_EventScript_14EF38
msgbox Route104_Text_16DD91, 4
- giveitem ITEM_WHITE_HERB
+ giveitem_std ITEM_WHITE_HERB
compare RESULT, 0
goto_if_eq Route104_EventScript_1A029B
- setflag 279
+ setflag FLAG_RECEIVED_WHITE_HERB
release
end
@@ -104,13 +104,13 @@ Route104_EventScript_14EF8A:: @ 814EF8A
Route104_EventScript_14EF93:: @ 814EF93
lock
faceplayer
- checkflag 262
+ checkflag FLAG_RECEIVED_TM09
goto_if_eq Route104_EventScript_14EFC2
msgbox Route104_Text_16DC5F, 4
- giveitem ITEM_TM09
+ giveitem_std ITEM_TM09
compare RESULT, 0
goto_if_eq Route104_EventScript_1A029B
- setflag 262
+ setflag FLAG_RECEIVED_TM09
release
end
@@ -124,14 +124,14 @@ Route104_EventScript_14EFCC:: @ 814EFCC
end
Route104_EventScript_14EFD5:: @ 814EFD5
- setobjectpriority 8, 0, 19, 0
- setobjectpriority 255, 0, 19, 0
+ 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
- hideobject 255, 0, 19
+ hideobjectat 255, MAP_ROUTE104
call Route104_EventScript_1A02E7
applymovement 7, Route104_Movement_14F09F
applymovement 255, Route104_Movement_14F09F
@@ -139,28 +139,28 @@ Route104_EventScript_14EFD5:: @ 814EFD5
applymovement 255, Route104_Movement_14F166
waitmovement 0
call Route104_EventScript_1A02EF
- showobject 255, 0, 11
+ showobjectat 255, MAP_DEWFORD_TOWN
applymovement 255, Route104_Movement_14F168
waitmovement 0
setobjectxyperm 2, 12, 8
addobject 2
- setobjectpriority 2, 0, 11, 0
- clearflag 740
+ setobjectpriority 2, MAP_DEWFORD_TOWN, 0
+ clearflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN
applymovement 2, Route104_Movement_14F16F
waitmovement 0
addobject 4
- clearflag 743
+ clearflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
call Route104_EventScript_1A02EF
- setflag 742
- hideobject 7, 0, 19
+ setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104
+ hideobjectat 7, MAP_ROUTE104
copyvar 0x4096, 0x8008
- resetobjectpriority 255, 0, 19
- resetobjectpriority 2, 0, 11
+ resetobjectpriority 255, MAP_ROUTE104
+ resetobjectpriority 2, MAP_DEWFORD_TOWN
moveobjectoffscreen 2
setvar 0x408e, 0
- checkflag 189
+ checkflag FLAG_DELIVERED_STEVEN_LETTER
goto_if 0, Route104_EventScript_14F08B
- checkflag 189
+ checkflag FLAG_DELIVERED_STEVEN_LETTER
goto_if_eq Route104_EventScript_14F095
end
diff --git a/data/scripts/maps/Route104_MrBrineysHouse.inc b/data/scripts/maps/Route104_MrBrineysHouse.inc
index a4c360bc0..4eb1d9705 100644
--- a/data/scripts/maps/Route104_MrBrineysHouse.inc
+++ b/data/scripts/maps/Route104_MrBrineysHouse.inc
@@ -3,15 +3,15 @@ Route104_MrBrineysHouse_MapScripts:: @ 815BCB2
.byte 0
Route104_MrBrineysHouse_MapScript1_15BCB8:: @ 815BCB8
- setflag 2109
+ setflag FLAG_LANDMARK_MR_BRINEY_HOUSE
compare 0x4090, 1
call_if 1, Route104_MrBrineysHouse_EventScript_15BCD4
- checkflag 188
+ checkflag FLAG_RECEIVED_POKENAV
call_if 1, Route104_MrBrineysHouse_EventScript_15BCD0
end
Route104_MrBrineysHouse_EventScript_15BCD0:: @ 815BCD0
- setflag 814
+ setflag FLAG_HIDE_RIVAL_RUSTBORO
return
Route104_MrBrineysHouse_EventScript_15BCD4:: @ 815BCD4
@@ -24,17 +24,17 @@ Route104_MrBrineysHouse_EventScript_15BCD4:: @ 815BCD4
Route104_MrBrineysHouse_EventScript_15BCEB:: @ 815BCEB
lock
faceplayer
- checkflag 147
+ checkflag FLAG_MR_BRINEY_SAILING_INTRO
call_if 0, Route104_MrBrineysHouse_EventScript_15BD0E
- checkflag 189
+ checkflag FLAG_DELIVERED_STEVEN_LETTER
goto_if 0, Route104_MrBrineysHouse_EventScript_15BD65
- checkflag 149
+ checkflag FLAG_DELIVERED_DEVON_GOODS
goto_if 0, Route104_MrBrineysHouse_EventScript_15BD7E
goto Route104_MrBrineysHouse_EventScript_15BD32
end
Route104_MrBrineysHouse_EventScript_15BD0E:: @ 815BD0E
- setflag 147
+ setflag FLAG_MR_BRINEY_SAILING_INTRO
msgbox Route104_MrBrineysHouse_Text_191A82, 4
msgbox Route104_MrBrineysHouse_Text_191AAD, 5
compare RESULT, 0
@@ -80,9 +80,9 @@ Route104_MrBrineysHouse_EventScript_15BDAB:: @ 815BDAB
msgbox Route104_MrBrineysHouse_Text_191BFD, 4
call Route104_MrBrineysHouse_EventScript_1A010C
setvar 0x408e, 1
- clearflag 738
- setflag 739
- setflag 881
+ 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
@@ -92,8 +92,8 @@ Route104_MrBrineysHouse_EventScript_15BDD1:: @ 815BDD1
lock
faceplayer
waitse
- playpokecry SPECIES_WINGULL, 0
+ playmoncry SPECIES_WINGULL, 0
msgbox Route104_MrBrineysHouse_Text_191FB9, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc b/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc
index 4c5becf88..2de6bf51f 100644
--- a/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc
+++ b/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc
@@ -3,12 +3,12 @@ Route104_PrettyPetalFlowerShop_MapScripts:: @ 815BDE4
.byte 0
Route104_PrettyPetalFlowerShop_MapScript1_15BDEA:: @ 815BDEA
- setflag 2108
- checkflag 127
+ setflag FLAG_LANDMARK_FLOWER_SHOP
+ checkflag FLAG_MET_PRETTY_PETAL_SHOP_OWNER
goto_if 0, Route104_PrettyPetalFlowerShop_EventScript_15BE03
- checkflag 2057
+ checkflag FLAG_BADGE03_GET
goto_if 0, Route104_PrettyPetalFlowerShop_EventScript_15BE03
- setflag 1
+ setflag FLAG_TEMP_1
end
Route104_PrettyPetalFlowerShop_EventScript_15BE03:: @ 815BE03
@@ -18,12 +18,12 @@ Route104_PrettyPetalFlowerShop_EventScript_15BE03:: @ 815BE03
Route104_PrettyPetalFlowerShop_EventScript_15BE0B:: @ 815BE0B
lock
faceplayer
- checkflag 1
+ checkflag FLAG_TEMP_1
goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BE7C
msgbox Route104_PrettyPetalFlowerShop_Text_1C5EC6, 4
- checkflag 127
+ checkflag FLAG_MET_PRETTY_PETAL_SHOP_OWNER
goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BE4A
- setflag 127
+ setflag FLAG_MET_PRETTY_PETAL_SHOP_OWNER
msgbox Route104_PrettyPetalFlowerShop_Text_1C5F48, 5
compare RESULT, 1
call_if 1, Route104_PrettyPetalFlowerShop_EventScript_15BE6A
@@ -52,7 +52,7 @@ Route104_PrettyPetalFlowerShop_EventScript_15BE73:: @ 815BE73
Route104_PrettyPetalFlowerShop_EventScript_15BE7C:: @ 815BE7C
message Route104_PrettyPetalFlowerShop_Text_1A0C42
waitmessage
- pokemartbp Route104_PrettyPetalFlowerShop_Items
+ pokemartdecoration2 Route104_PrettyPetalFlowerShop_Items
msgbox Route104_PrettyPetalFlowerShop_Text_1A0C02, 4
release
end
@@ -72,7 +72,7 @@ Route104_PrettyPetalFlowerShop_Items:: @ 815BE94
Route104_PrettyPetalFlowerShop_EventScript_15BEA4:: @ 815BEA4
lock
faceplayer
- checkflag 94
+ checkflag FLAG_RECEIVED_WAILMER_PAIL
goto_if 0, Route104_PrettyPetalFlowerShop_EventScript_15BEB9
msgbox Route104_PrettyPetalFlowerShop_Text_1C61E8, 4
release
@@ -80,9 +80,9 @@ Route104_PrettyPetalFlowerShop_EventScript_15BEA4:: @ 815BEA4
Route104_PrettyPetalFlowerShop_EventScript_15BEB9:: @ 815BEB9
msgbox Route104_PrettyPetalFlowerShop_Text_1C6158, 4
- giveitem ITEM_WAILMER_PAIL
+ giveitem_std ITEM_WAILMER_PAIL
msgbox Route104_PrettyPetalFlowerShop_Text_1C61E8, 4
- setflag 94
+ setflag FLAG_RECEIVED_WAILMER_PAIL
release
end
@@ -90,15 +90,15 @@ Route104_PrettyPetalFlowerShop_EventScript_15BEDA:: @ 815BEDA
lock
faceplayer
dodailyevents
- checkflag 2256
+ checkflag FLAG_DAILY_RECEIVED_BERRY_FLOWER_SHOP
goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BF1A
msgbox Route104_PrettyPetalFlowerShop_Text_1C62DA, 4
random 8
- addvar RESULT, 133
- giveitem RESULT
+ addvar RESULT, ITEM_CHERI_BERRY
+ giveitem_std RESULT
compare RESULT, 0
goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_1A029B
- setflag 2256
+ setflag FLAG_DAILY_RECEIVED_BERRY_FLOWER_SHOP
msgbox Route104_PrettyPetalFlowerShop_Text_1C6335, 4
release
end
diff --git a/data/scripts/maps/Route104_Prototype.inc b/data/scripts/maps/Route104_Prototype.inc
index 3c218747a..b3b256d79 100644
--- a/data/scripts/maps/Route104_Prototype.inc
+++ b/data/scripts/maps/Route104_Prototype.inc
@@ -16,9 +16,9 @@ Route104_Prototype_EventScript_160C4B:: @ 8160C4B
goto_if 0, Route104_Prototype_EventScript_160C99
checktrainerflag OPPONENT_MIKE_1
goto_if 0, Route104_Prototype_EventScript_160C99
- setflag 215
+ setflag FLAG_ROUTE104_PROTOTYPE_COMPLETED_1
msgbox Route104_Prototype_Text_19B267, 4
- checkflag 216
+ checkflag FLAG_ROUTE104_PROTOTYPE_COMPLETED_2
goto_if_eq Route104_Prototype_EventScript_160CFB
release
end
@@ -43,9 +43,9 @@ Route104_Prototype_EventScript_160CA3:: @ 8160CA3
goto_if 0, Route104_Prototype_EventScript_160CF1
checktrainerflag OPPONENT_MIKE_1
goto_if 0, Route104_Prototype_EventScript_160CF1
- setflag 216
+ setflag FLAG_ROUTE104_PROTOTYPE_COMPLETED_2
msgbox Route104_Prototype_Text_19B2E9, 4
- checkflag 215
+ checkflag FLAG_ROUTE104_PROTOTYPE_COMPLETED_1
goto_if_eq Route104_Prototype_EventScript_160CFB
release
end
diff --git a/data/scripts/maps/Route105.inc b/data/scripts/maps/Route105.inc
index 1182dae7e..30157e52f 100644
--- a/data/scripts/maps/Route105.inc
+++ b/data/scripts/maps/Route105.inc
@@ -3,13 +3,13 @@ Route105_MapScripts:: @ 814F298
.byte 0
Route105_MapScript1_14F29E:: @ 814F29E
- checkflag 228
+ checkflag FLAG_REGI_DOORS_OPENED
call_if 0, Route105_EventScript_14F2A8
end
Route105_EventScript_14F2A8:: @ 814F2A8
- setmaptile 9, 19, 124, 1
- setmaptile 9, 20, 145, 1
+ setmetatile 9, 19, 124, 1
+ setmetatile 9, 20, 145, 1
return
Route105_EventScript_14F2BB:: @ 814F2BB
diff --git a/data/scripts/maps/Route109.inc b/data/scripts/maps/Route109.inc
index 9f0ef8c8d..a9fa7d906 100644
--- a/data/scripts/maps/Route109.inc
+++ b/data/scripts/maps/Route109.inc
@@ -3,8 +3,8 @@ Route109_MapScripts:: @ 814F4D2
Route109_EventScript_14F4D3:: @ 814F4D3
call Route109_EventScript_1A010C
- setobjectpriority 2, 0, 24, 0
- setobjectpriority 255, 0, 24, 0
+ setobjectpriority 2, MAP_ROUTE109, 0
+ setobjectpriority 255, MAP_ROUTE109, 0
applymovement 2, Route109_Movement_14F67B
waitmovement 0
removeobject 2
@@ -33,30 +33,30 @@ Route109_EventScript_14F538:: @ 814F538
end
Route109_EventScript_14F548:: @ 814F548
- hideobject 255, 0, 24
+ hideobjectat 255, MAP_ROUTE109
call Route109_EventScript_1A02E7
applymovement 1, Route109_Movement_14F5BF
applymovement 255, Route109_Movement_14F5BF
waitmovement 0
call Route109_EventScript_1A02EF
- showobject 255, 0, 11
+ showobjectat 255, MAP_DEWFORD_TOWN
applymovement 255, Route109_Movement_14F670
waitmovement 0
addobject 4
- clearflag 743
+ clearflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD
setobjectxyperm 2, 12, 8
addobject 2
- setobjectpriority 2, 0, 11, 0
+ setobjectpriority 2, MAP_DEWFORD_TOWN, 0
applymovement 2, Route109_Movement_14F67D
waitmovement 0
- clearflag 740
- setflag 744
- hideobject 1, 0, 24
+ 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 0x4096, 0x8008
- resetobjectpriority 255, 0, 24
- resetobjectpriority 2, 0, 11
+ resetobjectpriority 255, MAP_ROUTE109
+ resetobjectpriority 2, MAP_DEWFORD_TOWN
moveobjectoffscreen 2
release
end
@@ -271,7 +271,7 @@ Route109_Movement_14F67D:: @ 814F67D
Route109_EventScript_14F680:: @ 814F680
lock
faceplayer
- checkflag 149
+ checkflag FLAG_DELIVERED_DEVON_GOODS
goto_if 0, Route109_EventScript_14F691
goto Route109_EventScript_14F6AF
end
@@ -328,16 +328,16 @@ Route109_EventScript_14F725:: @ 814F725
lock
faceplayer
special GetPlayerBigGuyGirlString
- checkflag 280
+ checkflag FLAG_RECEIVED_SOFT_SAND
goto_if_eq Route109_EventScript_14F762
msgbox Route109_Text_16E433, 4
- giveitem ITEM_SOFT_SAND
+ giveitem_std ITEM_SOFT_SAND
compare RESULT, 0
goto_if_eq Route109_EventScript_1A029B
closemessage
applymovement LAST_TALKED, Route109_Movement_1A083D
waitmovement 0
- setflag 280
+ setflag FLAG_RECEIVED_SOFT_SAND
release
end
@@ -360,9 +360,9 @@ Route109_EventScript_14F788:: @ 814F788
lock
faceplayer
waitse
- playpokecry SPECIES_ZIGZAGOON, 0
+ playmoncry SPECIES_ZIGZAGOON, 0
msgbox Route109_Text_16E5CA, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/Route109_SeashoreHouse.inc b/data/scripts/maps/Route109_SeashoreHouse.inc
index 4d8d363aa..7a12f5850 100644
--- a/data/scripts/maps/Route109_SeashoreHouse.inc
+++ b/data/scripts/maps/Route109_SeashoreHouse.inc
@@ -3,20 +3,20 @@ Route109_SeashoreHouse_MapScripts:: @ 8160DCA
.byte 0
Route109_SeashoreHouse_MapScript1_160DD0:: @ 8160DD0
- setflag 2111
+ setflag FLAG_LANDMARK_SEASHORE_HOUSE
end
Route109_SeashoreHouse_EventScript_160DD4:: @ 8160DD4
lock
faceplayer
- checkflag 140
+ checkflag FLAG_RECEIVED_6_SODA_POP
goto_if_eq Route109_SeashoreHouse_EventScript_160E36
- checkflag 141
+ checkflag FLAG_DEFEATED_SEASHORE_HOUSE_TRAINERS
goto_if_eq Route109_SeashoreHouse_EventScript_160E08
- checkflag 2
+ checkflag FLAG_TEMP_2
goto_if_eq Route109_SeashoreHouse_EventScript_160DFE
msgbox Route109_SeashoreHouse_Text_19B4D9, 4
- setflag 2
+ setflag FLAG_TEMP_2
release
end
@@ -27,10 +27,10 @@ Route109_SeashoreHouse_EventScript_160DFE:: @ 8160DFE
Route109_SeashoreHouse_EventScript_160E08:: @ 8160E08
msgbox Route109_SeashoreHouse_Text_19B609, 4
- giveitem ITEM_SODA_POP, 6
+ giveitem_std ITEM_SODA_POP, 6
compare RESULT, 0
goto_if_eq Route109_SeashoreHouse_EventScript_160E2C
- setflag 140
+ setflag FLAG_RECEIVED_6_SODA_POP
release
end
@@ -61,7 +61,7 @@ Route109_SeashoreHouse_EventScript_160E5A:: @ 8160E5A
takemoney 0x12c, 0
updatemoneybox 0, 0
nop
- giveitem ITEM_SODA_POP
+ giveitem_std ITEM_SODA_POP
hidemoneybox 0, 0
release
end
@@ -100,7 +100,7 @@ Route109_SeashoreHouse_EventScript_160F09:: @ 8160F09
goto_if 0, Route109_SeashoreHouse_EventScript_160F29
checktrainerflag OPPONENT_SIMON
goto_if 0, Route109_SeashoreHouse_EventScript_160F29
- setflag 141
+ setflag FLAG_DEFEATED_SEASHORE_HOUSE_TRAINERS
release
end
diff --git a/data/scripts/maps/Route110.inc b/data/scripts/maps/Route110.inc
index 146be5959..5e10782e9 100644
--- a/data/scripts/maps/Route110.inc
+++ b/data/scripts/maps/Route110.inc
@@ -420,7 +420,7 @@ Route110_EventScript_14FE8A:: @ 814FE8A
end
Route110_EventScript_14FEA5:: @ 814FEA5
- giveitem ITEM_ITEMFINDER
+ giveitem_std ITEM_ITEMFINDER
return
Route110_EventScript_14FEB2:: @ 814FEB2
diff --git a/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc b/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc
index c60bc366e..8e33517ca 100644
--- a/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc
+++ b/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc
@@ -28,7 +28,7 @@ Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634F7:: @ 81634F7
call_if 1, Route110_SeasideCyclingRoadNorthEntrance_EventScript_16351D
compare RESULT, 0
goto_if_eq Route110_SeasideCyclingRoadNorthEntrance_EventScript_163523
- setflag 2091
+ setflag FLAG_SYS_CYCLING_ROAD
setvar 0x4001, 1
releaseall
end
@@ -55,7 +55,7 @@ Route110_SeasideCyclingRoadNorthEntrance_EventScript_16353A:: @ 816353A
@ Coord event directly in front of the gatesman heading right to left
lockall
setvar 0x40a9, 0
- clearflag 2091
+ clearflag FLAG_SYS_CYCLING_ROAD
setvar 0x4001, 0
releaseall
end
diff --git a/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc b/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc
index cf18a8e36..51cab5ddd 100644
--- a/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc
+++ b/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc
@@ -13,7 +13,7 @@ Route110_SeasideCyclingRoadSouthEntrance_EventScript_16348B:: @ 816348B
specialvar RESULT, GetPlayerAvatarBike
compare RESULT, 0
goto_if_eq Route110_SeasideCyclingRoadSouthEntrance_EventScript_1634A6
- setflag 2091
+ setflag FLAG_SYS_CYCLING_ROAD
setvar 0x4001, 1
releaseall
end
@@ -32,7 +32,7 @@ Route110_SeasideCyclingRoadSouthEntrance_Movement_1634BB:: @ 81634BB
Route110_SeasideCyclingRoadSouthEntrance_EventScript_1634BD:: @ 81634BD
lockall
- clearflag 2091
+ clearflag FLAG_SYS_CYCLING_ROAD
setvar 0x4001, 0
releaseall
end
diff --git a/data/scripts/maps/Route110_TrickHouseEnd.inc b/data/scripts/maps/Route110_TrickHouseEnd.inc
index 12309207c..813cbb9e9 100644
--- a/data/scripts/maps/Route110_TrickHouseEnd.inc
+++ b/data/scripts/maps/Route110_TrickHouseEnd.inc
@@ -22,7 +22,7 @@ Route110_TrickHouseEnd_MapScript2_161965:: @ 8161965
Route110_TrickHouseEnd_EventScript_16196F:: @ 816196F
addobject 1
- showobject 1, 29, 1
+ showobjectat 1, MAP_ROUTE110_TRICK_HOUSE_END
turnobject 1, 4
end
@@ -37,7 +37,7 @@ Route110_TrickHouseEnd_EventScript_161986:: @ 8161986
end
Route110_TrickHouseEnd_EventScript_161994:: @ 8161994
- setmaptile 10, 1, 539, 1
+ setmetatile 10, 1, 539, 1
return
Route110_TrickHouseEnd_EventScript_16199E:: @ 816199E
@@ -60,7 +60,7 @@ Route110_TrickHouseEnd_EventScript_161A0B:: @ 8161A0B
msgbox Route110_TrickHouseEnd_Text_19C2B2, 4
msgbox Route110_TrickHouseEnd_Text_19C90B, 4
setvar 0x40c1, 0
- giveitem ITEM_RARE_CANDY
+ giveitem_std ITEM_RARE_CANDY
compare RESULT, 0
call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
@@ -73,7 +73,7 @@ Route110_TrickHouseEnd_EventScript_161A47:: @ 8161A47
msgbox Route110_TrickHouseEnd_Text_19C333, 4
msgbox Route110_TrickHouseEnd_Text_19C90B, 4
setvar 0x40c1, 0
- giveitem ITEM_TIMER_BALL
+ giveitem_std ITEM_TIMER_BALL
compare RESULT, 0
call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
@@ -86,7 +86,7 @@ Route110_TrickHouseEnd_EventScript_161A83:: @ 8161A83
msgbox Route110_TrickHouseEnd_Text_19C3A7, 4
msgbox Route110_TrickHouseEnd_Text_19C90B, 4
setvar 0x40c1, 0
- giveitem ITEM_HARD_STONE
+ giveitem_std ITEM_HARD_STONE
compare RESULT, 0
call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
@@ -99,7 +99,7 @@ Route110_TrickHouseEnd_EventScript_161ABF:: @ 8161ABF
msgbox Route110_TrickHouseEnd_Text_19C41F, 4
msgbox Route110_TrickHouseEnd_Text_19C90B, 4
setvar 0x40c1, 0
- giveitem ITEM_SMOKE_BALL
+ giveitem_std ITEM_SMOKE_BALL
compare RESULT, 0
call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
@@ -112,7 +112,7 @@ Route110_TrickHouseEnd_EventScript_161AFB:: @ 8161AFB
msgbox Route110_TrickHouseEnd_Text_19C491, 4
msgbox Route110_TrickHouseEnd_Text_19C90B, 4
setvar 0x40c1, 0
- giveitem ITEM_TM12
+ giveitem_std ITEM_TM12
compare RESULT, 0
call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
@@ -125,7 +125,7 @@ Route110_TrickHouseEnd_EventScript_161B37:: @ 8161B37
msgbox Route110_TrickHouseEnd_Text_19C515, 4
msgbox Route110_TrickHouseEnd_Text_19C90B, 4
setvar 0x40c1, 0
- giveitem ITEM_MAGNET
+ giveitem_std ITEM_MAGNET
compare RESULT, 0
call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
@@ -138,7 +138,7 @@ Route110_TrickHouseEnd_EventScript_161B73:: @ 8161B73
msgbox Route110_TrickHouseEnd_Text_19C567, 4
msgbox Route110_TrickHouseEnd_Text_19C90B, 4
setvar 0x40c1, 0
- giveitem ITEM_PP_MAX
+ giveitem_std ITEM_PP_MAX
compare RESULT, 0
call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
@@ -167,9 +167,9 @@ Route110_TrickHouseEnd_EventScript_161BAF:: @ 8161BAF
msgbox Route110_TrickHouseEnd_Text_19C691, 4
setvar 0x40c1, 0
.ifdef SAPPHIRE
- givedecoration 32
+ givedecoration_std 32
.else
- givedecoration 31
+ givedecoration_std 31
.endc
compare RESULT, 0
call_if 1, Route110_TrickHouseEnd_EventScript_161C61
diff --git a/data/scripts/maps/Route110_TrickHouseEntrance.inc b/data/scripts/maps/Route110_TrickHouseEntrance.inc
index 7d2c77645..b9582b64c 100644
--- a/data/scripts/maps/Route110_TrickHouseEntrance.inc
+++ b/data/scripts/maps/Route110_TrickHouseEntrance.inc
@@ -5,7 +5,7 @@ Route110_TrickHouseEntrance_MapScripts:: @ 8160F2B
.byte 0
Route110_TrickHouseEntrance_MapScript1_160F3B:: @ 8160F3B
- setflag 2114
+ setflag FLAG_LANDMARK_TRICK_HOUSE
compare 0x40b5, 1
goto_if_eq Route110_TrickHouseEntrance_EventScript_160FCE
compare 0x40c1, 1
@@ -63,37 +63,37 @@ Route110_TrickHouseEntrance_EventScript_160FDE:: @ 8160FDE
return
Route110_TrickHouseEntrance_EventScript_16103C:: @ 816103C
- checkflag 2057
+ checkflag FLAG_BADGE03_GET
call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_161046:: @ 8161046
- checkflag 2058
+ checkflag FLAG_BADGE04_GET
call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_161050:: @ 8161050
- checkflag 2059
+ checkflag FLAG_BADGE05_GET
call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_16105A:: @ 816105A
- checkflag 2060
+ checkflag FLAG_BADGE06_GET
call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_161064:: @ 8161064
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_16106E:: @ 816106E
- checkflag 2062
+ checkflag FLAG_BADGE08_GET
call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_161078:: @ 8161078
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
@@ -139,14 +139,14 @@ Route110_TrickHouseEntrance_MapScript2_1610B2:: @ 81610B2
Route110_TrickHouseEntrance_EventScript_1610F4:: @ 81610F4
addobject 1
- showobject 1, 29, 0
+ showobjectat 1, MAP_ROUTE110_TRICK_HOUSE_ENTRANCE
turnobject 1, 4
turnobject 255, 3
end
Route110_TrickHouseEntrance_EventScript_161105:: @ 8161105
addobject 1
- hideobject 1, 29, 0
+ hideobjectat 1, MAP_ROUTE110_TRICK_HOUSE_ENTRANCE
switch 0x4044
case 0, Route110_TrickHouseEntrance_EventScript_16116B
case 1, Route110_TrickHouseEntrance_EventScript_161173
@@ -368,7 +368,7 @@ Route110_TrickHouseEntrance_EventScript_16136E:: @ 816136E
end
Route110_TrickHouseEntrance_EventScript_1613CE:: @ 81613CE
- giveitem ITEM_RARE_CANDY
+ giveitem_std ITEM_RARE_CANDY
compare RESULT, 1
goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
@@ -378,7 +378,7 @@ Route110_TrickHouseEntrance_EventScript_1613CE:: @ 81613CE
end
Route110_TrickHouseEntrance_EventScript_1613FA:: @ 81613FA
- giveitem ITEM_TIMER_BALL
+ giveitem_std ITEM_TIMER_BALL
compare RESULT, 1
goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
@@ -388,7 +388,7 @@ Route110_TrickHouseEntrance_EventScript_1613FA:: @ 81613FA
end
Route110_TrickHouseEntrance_EventScript_161426:: @ 8161426
- giveitem ITEM_HARD_STONE
+ giveitem_std ITEM_HARD_STONE
compare RESULT, 1
goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
@@ -398,7 +398,7 @@ Route110_TrickHouseEntrance_EventScript_161426:: @ 8161426
end
Route110_TrickHouseEntrance_EventScript_161452:: @ 8161452
- giveitem ITEM_SMOKE_BALL
+ giveitem_std ITEM_SMOKE_BALL
compare RESULT, 1
goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
@@ -408,7 +408,7 @@ Route110_TrickHouseEntrance_EventScript_161452:: @ 8161452
end
Route110_TrickHouseEntrance_EventScript_16147E:: @ 816147E
- giveitem ITEM_TM12
+ giveitem_std ITEM_TM12
compare RESULT, 1
goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
@@ -418,7 +418,7 @@ Route110_TrickHouseEntrance_EventScript_16147E:: @ 816147E
end
Route110_TrickHouseEntrance_EventScript_1614AA:: @ 81614AA
- giveitem ITEM_MAGNET
+ giveitem_std ITEM_MAGNET
compare RESULT, 1
goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
@@ -428,7 +428,7 @@ Route110_TrickHouseEntrance_EventScript_1614AA:: @ 81614AA
end
Route110_TrickHouseEntrance_EventScript_1614D6:: @ 81614D6
- giveitem ITEM_PP_MAX
+ giveitem_std ITEM_PP_MAX
compare RESULT, 1
goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
@@ -450,9 +450,9 @@ Route110_TrickHouseEntrance_EventScript_161518:: @ 8161518
waitmovement 0
msgbox Route110_TrickHouseEntrance_Text_19C128, 4
.ifdef SAPPHIRE
- givedecoration 32
+ givedecoration_std 32
.else
- givedecoration 31
+ givedecoration_std 31
.endif
compare RESULT, 1
goto_if_eq Route110_TrickHouseEntrance_EventScript_161551
@@ -501,7 +501,7 @@ Route110_TrickHouseEntrance_EventScript_1615C7:: @ 81615C7
end
Route110_TrickHouseEntrance_EventScript_1615DD:: @ 81615DD
- setmaptile 5, 1, 537, 0
+ setmetatile 5, 1, 537, 0
special DrawWholeMapView
delay 20
applymovement 255, Route110_TrickHouseEntrance_Movement_1A0856
@@ -607,7 +607,7 @@ Route110_TrickHouseEntrance_EventScript_161740:: @ 8161740
msgbox UnknownString_819CAD1, 4
playse SE_PIN
setvar 0x40AB, 2
- setmaptile 13, 1, 523, 0
+ setmetatile 13, 1, 523, 0
special DrawWholeMapView
releaseall
end
@@ -618,7 +618,7 @@ Route110_TrickHouseEntrance_EventScript_161769:: @ 8161769
msgbox UnknownString_819CCCB, 4
playse SE_PIN
setvar 0x40AC, 2
- setmaptile 13, 1, 523, 0
+ setmetatile 13, 1, 523, 0
special DrawWholeMapView
releaseall
end
@@ -629,7 +629,7 @@ Route110_TrickHouseEntrance_EventScript_161792:: @ 8161792
msgbox UnknownString_819CEF9, 4
playse SE_PIN
setvar 0x40AD, 2
- setmaptile 13, 1, 523, 0
+ setmetatile 13, 1, 523, 0
special DrawWholeMapView
releaseall
end
@@ -640,7 +640,7 @@ Route110_TrickHouseEntrance_EventScript_1617BB:: @ 81617BB
msgbox UnknownString_819D164, 4
playse SE_PIN
setvar 0x40AE, 2
- setmaptile 13, 1, 523, 0
+ setmetatile 13, 1, 523, 0
special DrawWholeMapView
releaseall
end
@@ -651,7 +651,7 @@ Route110_TrickHouseEntrance_EventScript_1617E4:: @ 81617E4
msgbox UnknownString_819D3A5, 4
playse SE_PIN
setvar 0x40AF, 2
- setmaptile 13, 1, 523, 0
+ setmetatile 13, 1, 523, 0
special DrawWholeMapView
releaseall
end
@@ -662,7 +662,7 @@ Route110_TrickHouseEntrance_EventScript_16180D:: @ 816180D
msgbox UnknownString_819DC0A, 4
playse SE_PIN
setvar 0x40B0, 2
- setmaptile 13, 1, 523, 0
+ setmetatile 13, 1, 523, 0
special DrawWholeMapView
releaseall
end
@@ -673,7 +673,7 @@ Route110_TrickHouseEntrance_EventScript_161836:: @ 8161836
msgbox UnknownString_819DE8D, 4
playse SE_PIN
setvar 0x40B1, 2
- setmaptile 13, 1, 523, 0
+ setmetatile 13, 1, 523, 0
special DrawWholeMapView
releaseall
end
@@ -684,7 +684,7 @@ Route110_TrickHouseEntrance_EventScript_16185F:: @ 816185F
msgbox UnknownString_819E0FF, 4
playse SE_PIN
setvar 0x40B2, 2
- setmaptile 13, 1, 523, 0
+ setmetatile 13, 1, 523, 0
special DrawWholeMapView
releaseall
end
@@ -757,9 +757,9 @@ Route110_TrickHouseEntrance_EventScript_16190B:: @ 816190B
return
Route110_TrickHouseEntrance_EventScript_161920:: @ 8161920
- setfieldeffect 0, 32772
- setfieldeffect 1, 32773
- setfieldeffect 2, 32774
+ setfieldeffectargument 0, 32772
+ setfieldeffectargument 1, 32773
+ setfieldeffectargument 2, 32774
dofieldeffect 54
waitfieldeffect 54
delay 10
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle1.inc b/data/scripts/maps/Route110_TrickHousePuzzle1.inc
index 3a89c2db1..4fffd9914 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle1.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle1.inc
@@ -8,7 +8,7 @@ Route110_TrickHousePuzzle1_MapScript1_161CFE:: @ 8161CFE
end
Route110_TrickHousePuzzle1_EventScript_161D0A:: @ 8161D0A
- setmaptile 13, 1, 523, 0
+ setmetatile 13, 1, 523, 0
end
Route110_TrickHousePuzzle1_EventScript_161D14:: @ 8161D14
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle2.inc b/data/scripts/maps/Route110_TrickHousePuzzle2.inc
index f71a9611a..6425d05cb 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle2.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle2.inc
@@ -70,23 +70,23 @@ Route110_TrickHousePuzzle2_EventScript_161E19:: @ 8161E19
end
Route110_TrickHousePuzzle2_EventScript_161E2C:: @ 8161E2C
- setmaptile 14, 21, 601, 0
- setmaptile 1, 12, 618, 0
+ setmetatile 14, 21, 601, 0
+ setmetatile 1, 12, 618, 0
return
Route110_TrickHousePuzzle2_EventScript_161E3F:: @ 8161E3F
- setmaptile 8, 17, 601, 0
- setmaptile 12, 13, 618, 0
+ setmetatile 8, 17, 601, 0
+ setmetatile 12, 13, 618, 0
return
Route110_TrickHousePuzzle2_EventScript_161E52:: @ 8161E52
- setmaptile 4, 10, 601, 0
- setmaptile 8, 4, 618, 0
+ setmetatile 4, 10, 601, 0
+ setmetatile 8, 4, 618, 0
return
Route110_TrickHousePuzzle2_EventScript_161E65:: @ 8161E65
- setmaptile 5, 2, 601, 0
- setmaptile 12, 5, 618, 0
+ setmetatile 5, 2, 601, 0
+ setmetatile 12, 5, 618, 0
return
Route110_TrickHousePuzzle2_EventScript_161E78:: @ 8161E78
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle3.inc b/data/scripts/maps/Route110_TrickHousePuzzle3.inc
index a50ecd3ce..54cea16c9 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle3.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle3.inc
@@ -24,13 +24,13 @@ Route110_TrickHousePuzzle3_MapScript1_161EE4:: @ 8161EE4
end
Route110_TrickHousePuzzle3_EventScript_161F12:: @ 8161F12
- setmaptile 5, 20, 600, 0
- setmaptile 4, 12, 600, 0
- setmaptile 11, 10, 600, 0
- setmaptile 3, 8, 600, 0
- setmaptile 13, 7, 600, 0
- setmaptile 1, 3, 600, 0
- setmaptile 10, 2, 600, 0
+ 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 0x4008, 1
call_if 1, Route110_TrickHousePuzzle3_EventScript_161F9F
compare 0x4008, 2
@@ -48,201 +48,201 @@ Route110_TrickHousePuzzle3_EventScript_161F12:: @ 8161F12
return
Route110_TrickHousePuzzle3_EventScript_161F9F:: @ 8161F9F
- setmaptile 5, 20, 601, 0
+ setmetatile 5, 20, 601, 0
return
Route110_TrickHousePuzzle3_EventScript_161FA9:: @ 8161FA9
- setmaptile 4, 12, 601, 0
+ setmetatile 4, 12, 601, 0
return
Route110_TrickHousePuzzle3_EventScript_161FB3:: @ 8161FB3
- setmaptile 11, 10, 601, 0
+ setmetatile 11, 10, 601, 0
return
Route110_TrickHousePuzzle3_EventScript_161FBD:: @ 8161FBD
- setmaptile 3, 8, 601, 0
+ setmetatile 3, 8, 601, 0
return
Route110_TrickHousePuzzle3_EventScript_161FC7:: @ 8161FC7
- setmaptile 13, 7, 601, 0
+ setmetatile 13, 7, 601, 0
return
Route110_TrickHousePuzzle3_EventScript_161FD1:: @ 8161FD1
- setmaptile 1, 3, 601, 0
+ setmetatile 1, 3, 601, 0
return
Route110_TrickHousePuzzle3_EventScript_161FDB:: @ 8161FDB
- setmaptile 10, 2, 601, 0
+ setmetatile 10, 2, 601, 0
return
Route110_TrickHousePuzzle3_EventScript_161FE5:: @ 8161FE5
- setmaptile 1, 6, 587, 0
- setmaptile 2, 6, 588, 0
- setmaptile 1, 7, 595, 0
- setmaptile 2, 7, 596, 0
- setmaptile 4, 9, 587, 0
- setmaptile 5, 9, 588, 0
- setmaptile 4, 10, 595, 0
- setmaptile 5, 10, 596, 0
- setmaptile 4, 18, 587, 0
- setmaptile 5, 18, 588, 0
- setmaptile 4, 19, 595, 0
- setmaptile 5, 19, 596, 0
- setmaptile 7, 3, 587, 0
- setmaptile 8, 3, 588, 0
- setmaptile 7, 4, 595, 0
- setmaptile 8, 4, 596, 0
- setmaptile 7, 9, 587, 0
- setmaptile 8, 9, 588, 0
- setmaptile 7, 10, 595, 0
- setmaptile 8, 10, 596, 0
- setmaptile 7, 18, 587, 0
- setmaptile 8, 18, 588, 0
- setmaptile 7, 19, 595, 0
- setmaptile 8, 19, 596, 0
- setmaptile 13, 3, 587, 0
- setmaptile 14, 3, 588, 0
- setmaptile 13, 4, 595, 0
- setmaptile 14, 4, 596, 0
- setmaptile 13, 9, 587, 0
- setmaptile 14, 9, 588, 0
- setmaptile 13, 10, 595, 0
- setmaptile 14, 10, 596, 0
- setmaptile 13, 15, 587, 0
- setmaptile 14, 15, 588, 0
- setmaptile 13, 16, 595, 0
- setmaptile 14, 16, 596, 0
- setmaptile 3, 13, 589, 1
- setmaptile 3, 14, 597, 0
- setmaptile 6, 7, 589, 1
- setmaptile 6, 8, 597, 0
- setmaptile 9, 16, 589, 1
- setmaptile 9, 17, 597, 0
- setmaptile 12, 4, 589, 1
- setmaptile 12, 5, 597, 0
- setmaptile 12, 10, 589, 1
- setmaptile 12, 11, 597, 0
- setmaptile 1, 15, 568, 0
- setmaptile 2, 15, 569, 0
- setmaptile 1, 16, 576, 1
- setmaptile 2, 16, 577, 1
- setmaptile 4, 6, 568, 0
- setmaptile 5, 6, 569, 0
- setmaptile 4, 7, 576, 1
- setmaptile 5, 7, 577, 1
- setmaptile 7, 12, 568, 0
- setmaptile 8, 12, 569, 0
- setmaptile 7, 13, 576, 1
- setmaptile 8, 13, 577, 1
- setmaptile 10, 12, 568, 0
- setmaptile 11, 12, 569, 0
- setmaptile 10, 13, 576, 1
- setmaptile 11, 13, 577, 1
- setmaptile 10, 18, 568, 0
- setmaptile 11, 18, 569, 0
- setmaptile 10, 19, 576, 1
- setmaptile 11, 19, 577, 1
- setmaptile 3, 4, 570, 1
- setmaptile 3, 5, 578, 1
- setmaptile 6, 10, 570, 1
- setmaptile 6, 11, 578, 1
- setmaptile 6, 13, 570, 1
- setmaptile 6, 14, 578, 1
- setmaptile 6, 16, 570, 1
- setmaptile 6, 17, 578, 1
- setmaptile 9, 4, 570, 1
- setmaptile 9, 5, 578, 1
- setmaptile 9, 7, 570, 1
- setmaptile 9, 8, 578, 1
- setmaptile 12, 13, 570, 1
- setmaptile 12, 14, 578, 1
- setmaptile 12, 16, 570, 1
- setmaptile 12, 17, 578, 1
+ 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
- setmaptile 1, 6, 571, 0
- setmaptile 2, 6, 572, 0
- setmaptile 1, 7, 579, 1
- setmaptile 2, 7, 580, 1
- setmaptile 4, 9, 571, 0
- setmaptile 5, 9, 572, 0
- setmaptile 4, 10, 579, 1
- setmaptile 5, 10, 580, 1
- setmaptile 4, 18, 571, 0
- setmaptile 5, 18, 572, 0
- setmaptile 4, 19, 579, 1
- setmaptile 5, 19, 580, 1
- setmaptile 7, 3, 571, 0
- setmaptile 8, 3, 572, 0
- setmaptile 7, 4, 579, 1
- setmaptile 8, 4, 580, 1
- setmaptile 7, 9, 571, 0
- setmaptile 8, 9, 572, 0
- setmaptile 7, 10, 579, 1
- setmaptile 8, 10, 580, 1
- setmaptile 7, 18, 571, 0
- setmaptile 8, 18, 572, 0
- setmaptile 7, 19, 579, 1
- setmaptile 8, 19, 580, 1
- setmaptile 13, 3, 571, 0
- setmaptile 14, 3, 572, 0
- setmaptile 13, 4, 579, 1
- setmaptile 14, 4, 580, 1
- setmaptile 13, 9, 571, 0
- setmaptile 14, 9, 572, 0
- setmaptile 13, 10, 579, 1
- setmaptile 14, 10, 580, 1
- setmaptile 13, 15, 571, 0
- setmaptile 14, 15, 572, 0
- setmaptile 13, 16, 579, 1
- setmaptile 14, 16, 580, 1
- setmaptile 3, 13, 573, 1
- setmaptile 3, 14, 581, 1
- setmaptile 6, 7, 573, 1
- setmaptile 6, 8, 581, 1
- setmaptile 9, 16, 573, 1
- setmaptile 9, 17, 581, 1
- setmaptile 12, 4, 573, 1
- setmaptile 12, 5, 581, 1
- setmaptile 12, 10, 573, 1
- setmaptile 12, 11, 581, 1
- setmaptile 1, 15, 584, 0
- setmaptile 2, 15, 585, 0
- setmaptile 1, 16, 592, 0
- setmaptile 2, 16, 593, 0
- setmaptile 4, 6, 584, 0
- setmaptile 5, 6, 585, 0
- setmaptile 4, 7, 592, 0
- setmaptile 5, 7, 593, 0
- setmaptile 7, 12, 584, 0
- setmaptile 8, 12, 585, 0
- setmaptile 7, 13, 592, 0
- setmaptile 8, 13, 593, 0
- setmaptile 10, 12, 584, 0
- setmaptile 11, 12, 585, 0
- setmaptile 10, 13, 592, 0
- setmaptile 11, 13, 593, 0
- setmaptile 10, 18, 584, 0
- setmaptile 11, 18, 585, 0
- setmaptile 10, 19, 592, 0
- setmaptile 11, 19, 593, 0
- setmaptile 3, 4, 586, 1
- setmaptile 3, 5, 594, 0
- setmaptile 6, 10, 586, 1
- setmaptile 6, 11, 594, 0
- setmaptile 6, 13, 586, 1
- setmaptile 6, 14, 594, 0
- setmaptile 6, 16, 586, 1
- setmaptile 6, 17, 594, 0
- setmaptile 9, 4, 586, 1
- setmaptile 9, 5, 594, 0
- setmaptile 9, 7, 586, 1
- setmaptile 9, 8, 594, 0
- setmaptile 12, 13, 586, 1
- setmaptile 12, 14, 594, 0
- setmaptile 12, 16, 586, 1
- setmaptile 12, 17, 594, 0
+ 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
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle7.inc b/data/scripts/maps/Route110_TrickHousePuzzle7.inc
index 1841b025f..4ff925639 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle7.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle7.inc
@@ -10,76 +10,76 @@ Route110_TrickHousePuzzle7_MapScript1_163161:: @ 8163161
end
Route110_TrickHousePuzzle7_EventScript_163167:: @ 8163167
- checkflag 194
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
call_if 1, Route110_TrickHousePuzzle7_EventScript_163195
- checkflag 195
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
call_if 1, Route110_TrickHousePuzzle7_EventScript_1631A8
- checkflag 196
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
call_if 1, Route110_TrickHousePuzzle7_EventScript_1631BB
- checkflag 197
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
call_if 1, Route110_TrickHousePuzzle7_EventScript_1631CE
- checkflag 198
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
call_if 1, Route110_TrickHousePuzzle7_EventScript_1631E1
return
Route110_TrickHousePuzzle7_EventScript_163195:: @ 8163195
- setmaptile 13, 17, 610, 0
- setmaptile 12, 16, 575, 1
+ setmetatile 13, 17, 610, 0
+ setmetatile 12, 16, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631A8:: @ 81631A8
- setmaptile 12, 13, 610, 0
- setmaptile 12, 11, 575, 1
+ setmetatile 12, 13, 610, 0
+ setmetatile 12, 11, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631BB:: @ 81631BB
- setmaptile 7, 12, 610, 0
- setmaptile 5, 10, 575, 1
+ setmetatile 7, 12, 610, 0
+ setmetatile 5, 10, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631CE:: @ 81631CE
- setmaptile 6, 6, 636, 0
- setmaptile 4, 4, 575, 1
+ setmetatile 6, 6, 636, 0
+ setmetatile 4, 4, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631E1:: @ 81631E1
- setmaptile 8, 4, 609, 0
- setmaptile 7, 5, 575, 1
+ setmetatile 8, 4, 609, 0
+ setmetatile 7, 5, 575, 1
return
Route110_TrickHousePuzzle7_EventScript_1631F4:: @ 81631F4
- setmaptile 13, 17, 611, 0
- setmaptile 12, 16, 574, 1
+ setmetatile 13, 17, 611, 0
+ setmetatile 12, 16, 574, 1
return
Route110_TrickHousePuzzle7_EventScript_163207:: @ 8163207
- setmaptile 12, 13, 609, 0
- setmaptile 12, 11, 574, 1
+ setmetatile 12, 13, 609, 0
+ setmetatile 12, 11, 574, 1
return
Route110_TrickHousePuzzle7_EventScript_16321A:: @ 816321A
- setmaptile 7, 12, 611, 0
- setmaptile 5, 10, 574, 1
+ setmetatile 7, 12, 611, 0
+ setmetatile 5, 10, 574, 1
return
Route110_TrickHousePuzzle7_EventScript_16322D:: @ 816322D
- setmaptile 6, 6, 635, 0
- setmaptile 4, 4, 574, 1
+ setmetatile 6, 6, 635, 0
+ setmetatile 4, 4, 574, 1
return
Route110_TrickHousePuzzle7_EventScript_163240:: @ 8163240
- setmaptile 8, 4, 608, 0
- setmaptile 7, 5, 574, 1
+ setmetatile 8, 4, 608, 0
+ setmetatile 7, 5, 574, 1
return
Route110_TrickHousePuzzle7_MapScript1_163253:: @ 8163253
compare 0x40b6, 1
goto_if_eq Route110_TrickHousePuzzle7_EventScript_16326E
- clearflag 194
- clearflag 195
- clearflag 196
- clearflag 197
- clearflag 198
+ 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
@@ -121,125 +121,125 @@ Route110_TrickHousePuzzle7_EventScript_1632A8:: @ 81632A8
Route110_TrickHousePuzzle7_EventScript_1632B9:: @ 81632B9
lockall
delay 32
- checkflag 194
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
call_if 0, Route110_TrickHousePuzzle7_EventScript_163195
- checkflag 194
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
call_if 1, Route110_TrickHousePuzzle7_EventScript_1631F4
special DrawWholeMapView
playse 36
- checkflag 194
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633A4
- checkflag 194
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633A9
end
Route110_TrickHousePuzzle7_EventScript_1632E8:: @ 81632E8
lockall
delay 32
- checkflag 195
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
call_if 0, Route110_TrickHousePuzzle7_EventScript_1631A8
- checkflag 195
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
call_if 1, Route110_TrickHousePuzzle7_EventScript_163207
special DrawWholeMapView
playse 36
- checkflag 195
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633AE
- checkflag 195
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633B3
end
Route110_TrickHousePuzzle7_EventScript_163317:: @ 8163317
lockall
delay 32
- checkflag 196
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
call_if 0, Route110_TrickHousePuzzle7_EventScript_1631BB
- checkflag 196
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
call_if 1, Route110_TrickHousePuzzle7_EventScript_16321A
special DrawWholeMapView
playse 36
- checkflag 196
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633B8
- checkflag 196
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633BD
end
Route110_TrickHousePuzzle7_EventScript_163346:: @ 8163346
lockall
delay 32
- checkflag 197
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
call_if 0, Route110_TrickHousePuzzle7_EventScript_1631CE
- checkflag 197
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
call_if 1, Route110_TrickHousePuzzle7_EventScript_16322D
special DrawWholeMapView
playse 36
- checkflag 197
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633C2
- checkflag 197
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633C7
end
Route110_TrickHousePuzzle7_EventScript_163375:: @ 8163375
lockall
delay 32
- checkflag 198
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
call_if 0, Route110_TrickHousePuzzle7_EventScript_1631E1
- checkflag 198
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
call_if 1, Route110_TrickHousePuzzle7_EventScript_163240
special DrawWholeMapView
playse 36
- checkflag 198
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633CC
- checkflag 198
+ checkflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633D1
end
Route110_TrickHousePuzzle7_EventScript_1633A4:: @ 81633A4
- setflag 194
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633A9:: @ 81633A9
- clearflag 194
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_1
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633AE:: @ 81633AE
- setflag 195
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633B3:: @ 81633B3
- clearflag 195
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_2
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633B8:: @ 81633B8
- setflag 196
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633BD:: @ 81633BD
- clearflag 196
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_3
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633C2:: @ 81633C2
- setflag 197
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633C7:: @ 81633C7
- clearflag 197
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633CC:: @ 81633CC
- setflag 198
+ setflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
releaseall
end
Route110_TrickHousePuzzle7_EventScript_1633D1:: @ 81633D1
- clearflag 198
+ clearflag FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5
releaseall
end
diff --git a/data/scripts/maps/Route111.inc b/data/scripts/maps/Route111.inc
index 545e62921..0a7e6befc 100644
--- a/data/scripts/maps/Route111.inc
+++ b/data/scripts/maps/Route111.inc
@@ -4,13 +4,13 @@ Route111_MapScripts:: @ 814FF91
.byte 0
Route111_MapScript1_14FF9C:: @ 814FF9C
- checkflag 228
+ checkflag FLAG_REGI_DOORS_OPENED
call_if 0, Route111_EventScript_14FFA6
end
Route111_EventScript_14FFA6:: @ 814FFA6
- setmaptile 29, 86, 124, 1
- setmaptile 29, 87, 145, 1
+ setmetatile 29, 86, 124, 1
+ setmetatile 29, 87, 145, 1
return
Route111_MapScript1_14FFB9:: @ 814FFB9
@@ -40,10 +40,10 @@ Route111_EventScript_15000C:: @ 815000C
return
Route111_EventScript_15000D:: @ 815000D
- clearflag 768
- setflag 769
- setflag 770
- setflag 771
+ 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
@@ -54,10 +54,10 @@ Route111_EventScript_150023:: @ 8150023
msgbox Route111_Text_16FA54, 5
compare RESULT, 0
goto_if_eq Route111_EventScript_15005F
- giveitem ITEM_ROOT_FOSSIL
+ giveitem_std ITEM_ROOT_FOSSIL
closemessage
- setflag 963
- setflag 964
+ setflag FLAG_HIDE_ROOT_FOSSIL
+ setflag FLAG_HIDE_CLAW_FOSSIL
removeobject 34
delay 30
applymovement 35, Route111_Movement_1500AF
@@ -76,10 +76,10 @@ Route111_EventScript_150069:: @ 8150069
msgbox Route111_Text_16FAED, 5
compare RESULT, 0
goto_if_eq Route111_EventScript_1500A5
- giveitem ITEM_CLAW_FOSSIL
+ giveitem_std ITEM_CLAW_FOSSIL
closemessage
- setflag 964
- setflag 963
+ setflag FLAG_HIDE_CLAW_FOSSIL
+ setflag FLAG_HIDE_ROOT_FOSSIL
removeobject 35
delay 30
applymovement 34, Route111_Movement_1500AF
@@ -121,13 +121,13 @@ Route111_EventScript_1500C5:: @ 81500C5
lock
faceplayer
dodailyevents
- checkflag 2252
+ checkflag FLAG_DAILY_RECEIVED_BERRY_ROUTE111
goto_if_eq Route111_EventScript_150100
msgbox Route111_Text_1C56F0, 4
- giveitem ITEM_RAZZ_BERRY
+ giveitem_std ITEM_RAZZ_BERRY
compare RESULT, 0
goto_if_eq Route111_EventScript_1A029B
- setflag 2252
+ setflag FLAG_DAILY_RECEIVED_BERRY_ROUTE111
special GetPlayerBigGuyGirlString
msgbox Route111_Text_1C5781, 4
release
@@ -236,7 +236,7 @@ Route111_EventScript_1501C9:: @ 81501C9
Route111_EventScript_1501D1:: @ 81501D1
lock
faceplayer
- setflag 2115
+ setflag FLAG_LANDMARK_WINSTRATE_FAMILY
msgbox Route111_Text_16F705, 5
compare RESULT, 1
goto_if_eq Route111_EventScript_1501F3
diff --git a/data/scripts/maps/Route111_OldLadysRestStop.inc b/data/scripts/maps/Route111_OldLadysRestStop.inc
index 5576a44ff..c0fb6f489 100644
--- a/data/scripts/maps/Route111_OldLadysRestStop.inc
+++ b/data/scripts/maps/Route111_OldLadysRestStop.inc
@@ -3,7 +3,7 @@ Route111_OldLadysRestStop_MapScripts:: @ 815BFD1
.byte 0
Route111_OldLadysRestStop_MapScript1_15BFD7:: @ 815BFD7
- setflag 2113
+ setflag FLAG_LANDMARK_OLD_LADY_REST_SHOP
end
Route111_OldLadysRestStop_EventScript_15BFDB:: @ 815BFDB
diff --git a/data/scripts/maps/Route111_WinstrateFamilysHouse.inc b/data/scripts/maps/Route111_WinstrateFamilysHouse.inc
index d9a94ce75..981971e41 100644
--- a/data/scripts/maps/Route111_WinstrateFamilysHouse.inc
+++ b/data/scripts/maps/Route111_WinstrateFamilysHouse.inc
@@ -13,13 +13,13 @@ Route111_WinstrateFamilysHouse_EventScript_15BF3A:: @ 815BF3A
lock
faceplayer
setvar 0x8008, 3
- checkflag 277
+ checkflag FLAG_RECEIVED_MACHO_BRACE
goto_if_eq Route111_WinstrateFamilysHouse_EventScript_15BF72
msgbox Route111_WinstrateFamilysHouse_Text_19208A, 4
- giveitem ITEM_MACHO_BRACE
+ giveitem_std ITEM_MACHO_BRACE
compare RESULT, 0
goto_if_eq Route111_WinstrateFamilysHouse_EventScript_1A029B
- setflag 277
+ setflag FLAG_RECEIVED_MACHO_BRACE
goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
end
@@ -40,10 +40,10 @@ Route111_WinstrateFamilysHouse_EventScript_15BF95:: @ 815BF95
lock
faceplayer
setvar 0x8008, 4
- checkflag 4
+ checkflag FLAG_TEMP_4
goto_if_eq Route111_WinstrateFamilysHouse_EventScript_15BFB6
msgbox Route111_WinstrateFamilysHouse_Text_192219, 4
- setflag 4
+ setflag FLAG_TEMP_4
goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
end
diff --git a/data/scripts/maps/Route113.inc b/data/scripts/maps/Route113.inc
index 2eb34cdf3..37fd0ed3f 100644
--- a/data/scripts/maps/Route113.inc
+++ b/data/scripts/maps/Route113.inc
@@ -4,7 +4,7 @@ Route113_MapScripts:: @ 81505CC
.byte 0
Route113_MapScript1_1505D7:: @ 81505D7
- tileeffect 1
+ setstepcallback 1
end
Route113_MapScript1_1505DA:: @ 81505DA
diff --git a/data/scripts/maps/Route113_GlassWorkshop.inc b/data/scripts/maps/Route113_GlassWorkshop.inc
index d0b608339..8d853b88d 100644
--- a/data/scripts/maps/Route113_GlassWorkshop.inc
+++ b/data/scripts/maps/Route113_GlassWorkshop.inc
@@ -3,7 +3,7 @@ Route113_GlassWorkshop_MapScripts:: @ 816354A
.byte 0
Route113_GlassWorkshop_MapScript1_163550:: @ 8163550
- setflag 2116
+ setflag FLAG_LANDMARK_GLASS_WORKSHOP
compare 0x40be, 1
call_if 1, Route113_GlassWorkshop_EventScript_16355F
end
@@ -22,7 +22,7 @@ Route113_GlassWorkshop_EventScript_163565:: @ 8163565
compare 0x40be, 1
goto_if_eq Route113_GlassWorkshop_EventScript_1635AB
msgbox Route113_GlassWorkshop_Text_19E4E6, 4
- giveitem ITEM_SOOT_SACK
+ giveitem_std ITEM_SOOT_SACK
setvar 0x40be, 1
msgbox Route113_GlassWorkshop_Text_19E59B, 4
release
@@ -68,7 +68,7 @@ Route113_GlassWorkshop_EventScript_1635EE:: @ 81635EE
Route113_GlassWorkshop_EventScript_163660:: @ 8163660
setvar 0x8008, 39
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
setvar 0x800a, 250
compare 0x4048, 250
goto_if 0, Route113_GlassWorkshop_EventScript_163830
@@ -82,7 +82,7 @@ Route113_GlassWorkshop_EventScript_163660:: @ 8163660
Route113_GlassWorkshop_EventScript_16369C:: @ 816369C
setvar 0x8008, 40
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
setvar 0x800a, 500
compare 0x4048, 500
goto_if 0, Route113_GlassWorkshop_EventScript_163830
@@ -96,7 +96,7 @@ Route113_GlassWorkshop_EventScript_16369C:: @ 816369C
Route113_GlassWorkshop_EventScript_1636D8:: @ 81636D8
setvar 0x8008, 41
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
setvar 0x800a, 500
compare 0x4048, 500
goto_if 0, Route113_GlassWorkshop_EventScript_163830
@@ -110,7 +110,7 @@ Route113_GlassWorkshop_EventScript_1636D8:: @ 81636D8
Route113_GlassWorkshop_EventScript_163714:: @ 8163714
setvar 0x8008, 43
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
setvar 0x800a, 1000
compare 0x4048, 1000
goto_if 0, Route113_GlassWorkshop_EventScript_163830
@@ -124,7 +124,7 @@ Route113_GlassWorkshop_EventScript_163714:: @ 8163714
Route113_GlassWorkshop_EventScript_163750:: @ 8163750
setvar 0x8008, 42
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
setvar 0x800a, 1000
compare 0x4048, 1000
goto_if 0, Route113_GlassWorkshop_EventScript_163830
@@ -139,7 +139,7 @@ Route113_GlassWorkshop_EventScript_163750:: @ 8163750
Route113_GlassWorkshop_EventScript_16378C:: @ 816378C
setvar 0x8009, 1
setvar 0x8008, 13
- getdecorname 0, 0x8008
+ bufferdecorationname 0, 0x8008
setvar 0x800a, 6000
compare 0x4048, 6000
goto_if 0, Route113_GlassWorkshop_EventScript_163830
@@ -154,7 +154,7 @@ Route113_GlassWorkshop_EventScript_16378C:: @ 816378C
Route113_GlassWorkshop_EventScript_1637CD:: @ 81637CD
setvar 0x8009, 1
setvar 0x8008, 6
- getdecorname 0, 0x8008
+ bufferdecorationname 0, 0x8008
setvar 0x800a, 8000
compare 0x4048, 8000
goto_if 0, Route113_GlassWorkshop_EventScript_163830
@@ -174,14 +174,14 @@ Route113_GlassWorkshop_EventScript_16380E:: @ 816380E
Route113_GlassWorkshop_EventScript_163818:: @ 8163818
setvar 0x800a, 250
subvar 0x800a, 16456
- getnumberstring 0, 32778
+ buffernumberstring 0, 32778
msgbox Route113_GlassWorkshop_Text_19E697, 4
release
end
Route113_GlassWorkshop_EventScript_163830:: @ 8163830
subvar 0x800a, 16456
- getnumberstring 1, 32778
+ buffernumberstring 1, 32778
message Route113_GlassWorkshop_Text_19E890
waitmessage
goto Route113_GlassWorkshop_EventScript_1635EE
@@ -210,13 +210,13 @@ Route113_GlassWorkshop_EventScript_163851:: @ 8163851
end
Route113_GlassWorkshop_EventScript_163889:: @ 8163889
- giveitem 0x8008
+ giveitem_std 0x8008
compare RESULT, 0
goto_if_eq Route113_GlassWorkshop_EventScript_1638B4
return
Route113_GlassWorkshop_EventScript_1638A1:: @ 81638A1
- givedecoration 0x8008
+ givedecoration_std 0x8008
compare RESULT, 0
goto_if_eq Route113_GlassWorkshop_EventScript_1638C3
return
@@ -247,49 +247,49 @@ Route113_GlassWorkshop_EventScript_1638D2:: @ 81638D2
Route113_GlassWorkshop_EventScript_163925:: @ 8163925
setvar 0x8009, 0
setvar 0x8008, 39
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
goto Route113_GlassWorkshop_EventScript_1639B1
end
Route113_GlassWorkshop_EventScript_163939:: @ 8163939
setvar 0x8009, 0
setvar 0x8008, 40
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
goto Route113_GlassWorkshop_EventScript_1639B1
end
Route113_GlassWorkshop_EventScript_16394D:: @ 816394D
setvar 0x8009, 0
setvar 0x8008, 41
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
goto Route113_GlassWorkshop_EventScript_1639B1
end
Route113_GlassWorkshop_EventScript_163961:: @ 8163961
setvar 0x8009, 0
setvar 0x8008, 43
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
goto Route113_GlassWorkshop_EventScript_1639B1
end
Route113_GlassWorkshop_EventScript_163975:: @ 8163975
setvar 0x8009, 0
setvar 0x8008, 42
- getitemname 0, 0x8008
+ bufferitemname 0, 0x8008
goto Route113_GlassWorkshop_EventScript_1639B1
end
Route113_GlassWorkshop_EventScript_163989:: @ 8163989
setvar 0x8009, 1
setvar 0x8008, 13
- getdecorname 0, 13
+ bufferdecorationname 0, 13
goto Route113_GlassWorkshop_EventScript_1639B1
end
Route113_GlassWorkshop_EventScript_16399D:: @ 816399D
setvar 0x8009, 1
setvar 0x8008, 6
- getdecorname 0, 6
+ bufferdecorationname 0, 6
goto Route113_GlassWorkshop_EventScript_1639B1
end
diff --git a/data/scripts/maps/Route114.inc b/data/scripts/maps/Route114.inc
index 0730db23a..302c162b0 100644
--- a/data/scripts/maps/Route114.inc
+++ b/data/scripts/maps/Route114.inc
@@ -5,16 +5,16 @@ Route114_EventScript_150733:: @ 8150733
lock
faceplayer
dodailyevents
- checkflag 2251
+ checkflag FLAG_DAILY_RECEIVED_BERRY_ROUTE114
goto_if_eq Route114_EventScript_150778
msgbox Route114_Text_1C5803, 4
random 5
addvar RESULT, 15
addvar RESULT, 133
- giveitem RESULT
+ giveitem_std RESULT
compare RESULT, 0
goto_if_eq Route114_EventScript_1A029B
- setflag 2251
+ setflag FLAG_DAILY_RECEIVED_BERRY_ROUTE114
msgbox Route114_Text_1C5861, 4
release
end
@@ -27,13 +27,13 @@ Route114_EventScript_150778:: @ 8150778
Route114_EventScript_150782:: @ 8150782
lock
faceplayer
- checkflag 231
+ checkflag FLAG_RECEIVED_TM05
goto_if_eq Route114_EventScript_1507B9
msgbox Route114_Text_170154, 4
- giveitem ITEM_TM05
+ giveitem_std ITEM_TM05
compare RESULT, 0
goto_if_eq Route114_EventScript_1A029B
- setflag 231
+ setflag FLAG_RECEIVED_TM05
msgbox Route114_Text_1701C5, 4
release
end
@@ -47,9 +47,9 @@ Route114_EventScript_1507C3:: @ 81507C3
lock
faceplayer
waitse
- playpokecry SPECIES_POOCHYENA, 2
+ playmoncry SPECIES_POOCHYENA, 2
msgbox Route114_Text_1701F9, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/Route114_FossilManiacsHouse.inc b/data/scripts/maps/Route114_FossilManiacsHouse.inc
index b217f24c4..1a1445fde 100644
--- a/data/scripts/maps/Route114_FossilManiacsHouse.inc
+++ b/data/scripts/maps/Route114_FossilManiacsHouse.inc
@@ -3,19 +3,19 @@ Route114_FossilManiacsHouse_MapScripts:: @ 815C1B9
.byte 0
Route114_FossilManiacsHouse_MapScript1_15C1BF:: @ 815C1BF
- setflag 2135
+ setflag FLAG_LANDMARK_FOSSIL_MANIACS_HOUSE
end
Route114_FossilManiacsHouse_EventScript_15C1C3:: @ 815C1C3
lock
faceplayer
- checkflag 261
+ checkflag FLAG_RECEIVED_TM28
goto_if_eq Route114_FossilManiacsHouse_EventScript_15C1F2
msgbox Route114_FossilManiacsHouse_Text_1925E1, 4
- giveitem ITEM_TM28
+ giveitem_std ITEM_TM28
compare RESULT, 0
goto_if_eq Route114_FossilManiacsHouse_EventScript_1A029B
- setflag 261
+ setflag FLAG_RECEIVED_TM28
release
end
diff --git a/data/scripts/maps/Route114_FossilManiacsTunnel.inc b/data/scripts/maps/Route114_FossilManiacsTunnel.inc
index 13843f758..2ce9c1bfa 100644
--- a/data/scripts/maps/Route114_FossilManiacsTunnel.inc
+++ b/data/scripts/maps/Route114_FossilManiacsTunnel.inc
@@ -4,7 +4,7 @@ Route114_FossilManiacsTunnel_MapScripts:: @ 815C20E
Route114_FossilManiacsTunnel_EventScript_15C20F:: @ 815C20F
lock
faceplayer
- checkflag 267
+ checkflag FLAG_RECEIVED_FOSSIL_MON
goto_if_eq Route114_FossilManiacsTunnel_EventScript_15C24E
checkitem ITEM_ROOT_FOSSIL, 1
compare RESULT, 1
diff --git a/data/scripts/maps/Route114_LanettesHouse.inc b/data/scripts/maps/Route114_LanettesHouse.inc
index e4334647c..f8ff5de73 100644
--- a/data/scripts/maps/Route114_LanettesHouse.inc
+++ b/data/scripts/maps/Route114_LanettesHouse.inc
@@ -3,24 +3,24 @@ Route114_LanettesHouse_MapScripts:: @ 815C258
.byte 0
Route114_LanettesHouse_MapScript1_15C25E:: @ 815C25E
- setflag 2117
+ setflag FLAG_LANDMARK_LANETTES_HOUSE
end
Route114_LanettesHouse_EventScript_15C262:: @ 815C262
lock
faceplayer
- checkflag 131
+ checkflag FLAG_RECEIVED_DOLL_LANETTE
goto_if_eq Route114_LanettesHouse_EventScript_15C28F
- setflag 2123
+ setflag FLAG_SYS_PC_LANETTE
msgbox Route114_LanettesHouse_Text_192A0D, 4
.ifdef SAPPHIRE
- givedecoration 99
+ givedecoration_std DECOR_LOTAD_DOLL
.else
- givedecoration 100
+ givedecoration_std DECOR_SEEDOT_DOLL
.endif
compare RESULT, 0
goto_if_eq Route114_LanettesHouse_EventScript_1A02AE
- setflag 131
+ setflag FLAG_RECEIVED_DOLL_LANETTE
release
end
diff --git a/data/scripts/maps/Route116.inc b/data/scripts/maps/Route116.inc
index beb01e083..9aadedb32 100644
--- a/data/scripts/maps/Route116.inc
+++ b/data/scripts/maps/Route116.inc
@@ -3,7 +3,7 @@ Route116_MapScripts:: @ 8150A31
.byte 0
Route116_MapScript1_150A37:: @ 8150A37
- checkflag 143
+ checkflag FLAG_RECOVERED_DEVON_GOODS
call_if 1, Route116_EventScript_150A41
end
@@ -14,9 +14,9 @@ Route116_EventScript_150A41:: @ 8150A41
Route116_EventScript_150A49:: @ 8150A49
lock
faceplayer
- checkflag 143
+ checkflag FLAG_RECOVERED_DEVON_GOODS
goto_if_eq Route116_EventScript_150A67
- checkflag 142
+ checkflag FLAG_DEVON_GOODS_STOLEN
goto_if_eq Route116_EventScript_150A71
msgbox Route116_Text_1703CF, 4
release
@@ -35,15 +35,15 @@ Route116_EventScript_150A71:: @ 8150A71
Route116_EventScript_150A7B:: @ 8150A7B
lock
faceplayer
- checkflag 287
+ checkflag FLAG_MET_DEVON_EMPLOYEE
goto_if_eq Route116_EventScript_150B04
msgbox Route116_Text_1705AE, 4
goto Route116_EventScript_150A94
end
Route116_EventScript_150A94:: @ 8150A94
- setflag 287
- giveitem ITEM_REPEAT_BALL
+ setflag FLAG_MET_DEVON_EMPLOYEE
+ giveitem_std ITEM_REPEAT_BALL
compare RESULT, 0
goto_if_eq Route116_EventScript_150B12
msgbox Route116_Text_1707B8, 4
@@ -57,8 +57,8 @@ Route116_EventScript_150A94:: @ 8150A94
compare FACING, 4
call_if 1, Route116_EventScript_150AF9
removeobject LAST_TALKED
- clearflag 949
- setflag 256
+ clearflag FLAG_HIDE_EMPLOYEE_DEVON_CORP_3F
+ setflag FLAG_RECEIVED_REPEAT_BALL
release
end
diff --git a/data/scripts/maps/Route116_TunnelersRestHouse.inc b/data/scripts/maps/Route116_TunnelersRestHouse.inc
index 10991c38c..24091c4ac 100644
--- a/data/scripts/maps/Route116_TunnelersRestHouse.inc
+++ b/data/scripts/maps/Route116_TunnelersRestHouse.inc
@@ -3,7 +3,7 @@ Route116_TunnelersRestHouse_MapScripts:: @ 815C2DE
.byte 0
Route116_TunnelersRestHouse_MapScript1_15C2E4:: @ 815C2E4
- setflag 2138
+ setflag FLAG_LANDMARK_TUNNELERS_REST_HOUSE
end
Route116_TunnelersRestHouse_EventScript_15C2E8:: @ 815C2E8
@@ -17,7 +17,7 @@ Route116_TunnelersRestHouse_EventScript_15C2F1:: @ 815C2F1
Route116_TunnelersRestHouse_EventScript_15C2FA:: @ 815C2FA
lock
faceplayer
- checkflag 199
+ checkflag FLAG_RUSTURF_TUNNEL_OPENED
goto_if_eq Route116_TunnelersRestHouse_EventScript_15C30F
msgbox Route116_TunnelersRestHouse_Text_193135, 4
release
diff --git a/data/scripts/maps/Route117.inc b/data/scripts/maps/Route117.inc
index 40affd3fd..44c4c156c 100644
--- a/data/scripts/maps/Route117.inc
+++ b/data/scripts/maps/Route117.inc
@@ -7,7 +7,7 @@ Route117_MapScript1_150D40:: @ 8150D40
end
Route117_EventScript_150D46:: @ 8150D46
- checkflag 134
+ checkflag FLAG_PENDING_DAYCARE_EGG
goto_if 0, Route117_EventScript_150D56
setobjectxyperm 3, 47, 6
diff --git a/data/scripts/maps/Route117_PokemonDayCare.inc b/data/scripts/maps/Route117_PokemonDayCare.inc
index 2a3ee79e1..9ad740b4e 100644
--- a/data/scripts/maps/Route117_PokemonDayCare.inc
+++ b/data/scripts/maps/Route117_PokemonDayCare.inc
@@ -3,5 +3,5 @@ Route117_PokemonDayCare_MapScripts:: @ 815C319
.byte 0
Route117_PokemonDayCare_MapScript1_15C31F:: @ 815C31F
- setflag 2118
+ setflag FLAG_LANDMARK_POKEMON_DAYCARE
end
diff --git a/data/scripts/maps/Route118.inc b/data/scripts/maps/Route118.inc
index b96346f15..ca69e01c4 100644
--- a/data/scripts/maps/Route118.inc
+++ b/data/scripts/maps/Route118.inc
@@ -9,7 +9,7 @@ Route118_MapScript1_150F2E:: @ 8150F2E
Route118_EventScript_150F34:: @ 8150F34
lock
faceplayer
- checkflag 227
+ checkflag FLAG_RECEIVED_GOOD_ROD
goto_if_eq Route118_EventScript_150F89
msgbox Route118_Text_170F12, 5
compare RESULT, 1
@@ -20,8 +20,8 @@ Route118_EventScript_150F34:: @ 8150F34
Route118_EventScript_150F5E:: @ 8150F5E
msgbox Route118_Text_170F46, 4
- giveitem ITEM_GOOD_ROD
- setflag 227
+ giveitem_std ITEM_GOOD_ROD
+ setflag FLAG_RECEIVED_GOOD_ROD
msgbox Route118_Text_170F7E, 4
release
end
diff --git a/data/scripts/maps/Route119.inc b/data/scripts/maps/Route119.inc
index 2179a7e18..aff1254a9 100644
--- a/data/scripts/maps/Route119.inc
+++ b/data/scripts/maps/Route119.inc
@@ -4,7 +4,7 @@ Route119_MapScripts:: @ 8151167
.byte 0
Route119_MapScript1_151172:: @ 8151172
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, Route119_EventScript_15117C
end
@@ -33,8 +33,8 @@ Route119_MapScript1_15119B:: @ 815119B
end
Route119_EventScript_1511B9:: @ 81511B9
- setflag 893
- clearflag 892
+ setflag FLAG_HIDE_WEATHER_INSTITUTE_WORKERS_2F
+ clearflag FLAG_HIDE_WEATHER_INSTITUTE_WORKERS_1F
setvar 0x40b3, 2
return
@@ -148,8 +148,8 @@ Route119_EventScript_151337:: @ 8151337
end
Route119_EventScript_151352:: @ 8151352
- giveitem ITEM_HM02
- setflag 110
+ giveitem_std ITEM_HM02
+ setflag FLAG_RECEIVED_HM02
return
Route119_EventScript_151362:: @ 8151362
diff --git a/data/scripts/maps/Route119_House.inc b/data/scripts/maps/Route119_House.inc
index 42cc89068..76763c68e 100644
--- a/data/scripts/maps/Route119_House.inc
+++ b/data/scripts/maps/Route119_House.inc
@@ -9,8 +9,8 @@ Route119_House_EventScript_163DE7:: @ 8163DE7
lock
faceplayer
waitse
- playpokecry SPECIES_WINGULL, 0
+ playmoncry SPECIES_WINGULL, 0
msgbox Route119_House_Text_19F406, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/Route119_WeatherInstitute_2F.inc b/data/scripts/maps/Route119_WeatherInstitute_2F.inc
index ac64904a2..991725b8c 100644
--- a/data/scripts/maps/Route119_WeatherInstitute_2F.inc
+++ b/data/scripts/maps/Route119_WeatherInstitute_2F.inc
@@ -39,10 +39,10 @@ Route119_WeatherInstitute_2F_EventScript_163D45:: @ 8163D45
msgbox Route119_WeatherInstitute_2F_Text_19F11B, 4
closemessage
setvar 0x40b3, 1
- clearflag 893
+ clearflag FLAG_HIDE_WEATHER_INSTITUTE_WORKERS_2F
fadedefaultbgm
fadescreen 1
- setflag 890
+ setflag FLAG_HIDE_EVIL_TEAM_WEATHER_INSTITUTE
removeobject 1
removeobject 2
removeobject 3
@@ -55,15 +55,15 @@ Route119_WeatherInstitute_2F_EventScript_163D45:: @ 8163D45
Route119_WeatherInstitute_2F_EventScript_163D7A:: @ 8163D7A
msgbox Route119_WeatherInstitute_2F_Text_19F1CF, 4
- countpokemon
+ getpartysize
compare RESULT, 6
goto_if_eq Route119_WeatherInstitute_2F_EventScript_163DB4
playfanfare 370
message Route119_WeatherInstitute_2F_Text_19F267
waitfanfare
waitmessage
- givepoke SPECIES_CASTFORM, 25, ITEM_MYSTIC_WATER, 0x0, 0x0, 0
- setflag 151
+ givemon SPECIES_CASTFORM, 25, ITEM_MYSTIC_WATER, 0x0, 0x0, 0
+ setflag FLAG_RECEIVED_CASTFORM
msgbox Route119_WeatherInstitute_2F_Text_19F27D, 4
release
end
@@ -87,7 +87,7 @@ Route119_WeatherInstitute_2F_Movement_163DC8:: @ 8163DC8
Route119_WeatherInstitute_2F_EventScript_163DCC:: @ 8163DCC
lock
faceplayer
- checkflag 151
+ checkflag FLAG_RECEIVED_CASTFORM
goto_if_eq Route119_WeatherInstitute_2F_EventScript_163DBE
goto Route119_WeatherInstitute_2F_EventScript_163D7A
end
diff --git a/data/scripts/maps/Route120.inc b/data/scripts/maps/Route120.inc
index 868d00324..cd84f95af 100644
--- a/data/scripts/maps/Route120.inc
+++ b/data/scripts/maps/Route120.inc
@@ -5,7 +5,7 @@ Route120_MapScripts:: @ 815160E
.byte 0
Route120_MapScript1_15161E:: @ 815161E
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, Route120_EventScript_151628
end
@@ -50,24 +50,24 @@ Route120_EventScript_151682:: @ 8151682
return
Route120_MapScript1_151686:: @ 8151686
- checkflag 228
+ checkflag FLAG_REGI_DOORS_OPENED
call_if 0, Route120_EventScript_1516A2
- checkflag 285
+ checkflag FLAG_RECEIVED_DEVON_SCOPE
call_if 1, Route120_EventScript_1516B5
- checkflag 285
+ checkflag FLAG_RECEIVED_DEVON_SCOPE
call_if 0, Route120_EventScript_1516DA
end
Route120_EventScript_1516A2:: @ 81516A2
- setmaptile 7, 54, 124, 1
- setmaptile 7, 55, 145, 1
+ setmetatile 7, 54, 124, 1
+ setmetatile 7, 55, 145, 1
return
Route120_EventScript_1516B5:: @ 81516B5
- setmaptile 13, 15, 663, 0
- setmaptile 12, 16, 671, 0
- setmaptile 12, 17, 161, 0
- setmaptile 13, 17, 161, 0
+ 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
@@ -113,7 +113,7 @@ Route120_EventScript_151739:: @ 8151739
lock
faceplayer
dodailyevents
- checkflag 2254
+ checkflag FLAG_DAILY_RECEIVED_BERRY_ROUTE120
goto_if_eq Route120_EventScript_151837
msgbox Route120_Text_1C58F1, 5
compare RESULT, 1
@@ -135,35 +135,35 @@ Route120_EventScript_151739:: @ 8151739
end
Route120_EventScript_1517DC:: @ 81517DC
- setvar 0x8004, 143
+ setvar 0x8004, ITEM_FIGY_BERRY
goto Route120_EventScript_151813
end
Route120_EventScript_1517E7:: @ 81517E7
- setvar 0x8004, 144
+ setvar 0x8004, ITEM_WIKI_BERRY
goto Route120_EventScript_151813
end
Route120_EventScript_1517F2:: @ 81517F2
- setvar 0x8004, 145
+ setvar 0x8004, ITEM_MAGO_BERRY
goto Route120_EventScript_151813
end
Route120_EventScript_1517FD:: @ 81517FD
- setvar 0x8004, 146
+ setvar 0x8004, ITEM_AGUAV_BERRY
goto Route120_EventScript_151813
end
Route120_EventScript_151808:: @ 8151808
- setvar 0x8004, 147
+ setvar 0x8004, ITEM_IAPAPA_BERRY
goto Route120_EventScript_151813
end
Route120_EventScript_151813:: @ 8151813
- giveitem 0x8004
+ giveitem_std 0x8004
compare RESULT, 0
goto_if_eq Route120_EventScript_1A029B
- setflag 2254
+ setflag FLAG_DAILY_RECEIVED_BERRY_ROUTE120
msgbox Route120_Text_1C5A0B, 4
release
end
@@ -184,7 +184,7 @@ Route120_EventScript_15184A:: @ 815184A
Route120_EventScript_151853:: @ 8151853
lock
faceplayer
- checkflag 290
+ checkflag FLAG_NOT_READY_FOR_BATTLE_ROUTE120
goto_if_eq Route120_EventScript_151884
msgbox Route120_Text_171827, 5
compare RESULT, 0
@@ -194,7 +194,7 @@ Route120_EventScript_151853:: @ 8151853
Route120_EventScript_151877:: @ 8151877
msgbox Route120_Text_17193D, 4
- setflag 290
+ setflag FLAG_NOT_READY_FOR_BATTLE_ROUTE120
release
end
@@ -222,14 +222,14 @@ Route120_EventScript_15189D:: @ 815189D
applymovement 30, Route120_Movement_1A0662
waitmovement 0
waitse
- playpokecry SPECIES_KECLEON, 2
+ playmoncry SPECIES_KECLEON, 2
delay 40
- waitpokecry
+ waitmoncry
setwildbattle SPECIES_KECLEON, 30, ITEM_NONE
setvar 0x8004, 0
- setflag 2145
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
dowildbattle
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
goto Route120_EventScript_151908
end
@@ -238,22 +238,22 @@ Route120_EventScript_151908:: @ 8151908
applymovement 255, Route120_Movement_1A0841
waitmovement 0
msgbox Route120_Text_171A40, 4
- giveitem ITEM_DEVON_SCOPE
- setflag 285
+ 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
- setfieldeffect 0, 1
+ setfieldeffectargument 0, 1
dofieldeffect 30
delay 15
removeobject 31
waitfieldeffect 30
- setmaptile 13, 15, 663, 0
- setmaptile 12, 16, 671, 0
- setmaptile 12, 17, 161, 0
- setmaptile 13, 17, 161, 0
+ setmetatile 13, 15, 663, 0
+ setmetatile 12, 16, 671, 0
+ setmetatile 12, 17, 161, 0
+ setmetatile 13, 17, 161, 0
special DrawWholeMapView
release
end
diff --git a/data/scripts/maps/Route121_SafariZoneEntrance.inc b/data/scripts/maps/Route121_SafariZoneEntrance.inc
index 9f8753b76..431444dae 100644
--- a/data/scripts/maps/Route121_SafariZoneEntrance.inc
+++ b/data/scripts/maps/Route121_SafariZoneEntrance.inc
@@ -87,7 +87,7 @@ Route121_SafariZoneEntrance_EventScript_15C3B3:: @ 815C3B3
end
Route121_SafariZoneEntrance_EventScript_15C425:: @ 815C425
- countpokemon
+ getpartysize
compare RESULT, 6
goto_if 5, Route121_SafariZoneEntrance_EventScript_15C44F
specialvar RESULT, CheckFreePokemonStorageSpace
diff --git a/data/scripts/maps/Route123.inc b/data/scripts/maps/Route123.inc
index 14c5a2dba..adfebfe08 100644
--- a/data/scripts/maps/Route123.inc
+++ b/data/scripts/maps/Route123.inc
@@ -9,17 +9,17 @@ Route123_MapScript1_151C59:: @ 8151C59
Route123_EventScript_151C5D:: @ 8151C5D
lock
faceplayer
- checkflag 232
+ checkflag FLAG_RECEIVED_TM19
goto_if_eq 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 ITEM_TM19
+ giveitem_std ITEM_TM19
compare RESULT, 0
goto_if_eq Route123_EventScript_1A029B
- setflag 232
+ setflag FLAG_RECEIVED_TM19
msgbox Route123_Text_171E34, 4
release
end
diff --git a/data/scripts/maps/Route123_BerryMastersHouse.inc b/data/scripts/maps/Route123_BerryMastersHouse.inc
index 64888759d..6948bff87 100644
--- a/data/scripts/maps/Route123_BerryMastersHouse.inc
+++ b/data/scripts/maps/Route123_BerryMastersHouse.inc
@@ -3,28 +3,28 @@ Route123_BerryMastersHouse_MapScripts:: @ 81639DF
.byte 0
Route123_BerryMastersHouse_MapScript1_1639E5:: @ 81639E5
- setflag 2147
+ setflag FLAG_LANDMARK_BERRY_MASTERS_HOUSE
end
Route123_BerryMastersHouse_EventScript_1639E9:: @ 81639E9
lock
faceplayer
dodailyevents
- checkflag 2253
+ checkflag FLAG_DAILY_RECEIVED_BERRY_FROM_BERRYMASTER
goto_if_eq Route123_BerryMastersHouse_EventScript_163A5A
msgbox Route123_BerryMastersHouse_Text_1C5BC4, 4
random 10
addvar RESULT, 20
addvar RESULT, 133
- giveitem RESULT
+ giveitem_std RESULT
compare RESULT, 0
goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
- setflag 2253
+ setflag FLAG_DAILY_RECEIVED_BERRY_FROM_BERRYMASTER
msgbox Route123_BerryMastersHouse_Text_1C5C66, 4
random 10
addvar RESULT, 20
addvar RESULT, 133
- giveitem RESULT
+ giveitem_std RESULT
compare RESULT, 0
goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
msgbox Route123_BerryMastersHouse_Text_1C5C83, 4
@@ -40,7 +40,7 @@ Route123_BerryMastersHouse_EventScript_163A64:: @ 8163A64
lock
faceplayer
dodailyevents
- checkflag 2257
+ checkflag FLAG_DAILY_RECEIVED_BERRY_FROM_BERRYMASTER_WIFE
goto_if_eq Route123_BerryMastersHouse_EventScript_163C13
msgbox Route123_BerryMastersHouse_Text_1C5D24, 4
setvar 0x8004, 13
@@ -77,8 +77,8 @@ Route123_BerryMastersHouse_EventScript_163AAD:: @ 8163AAD
Route123_BerryMastersHouse_EventScript_163AF0:: @ 8163AF0
msgbox Route123_BerryMastersHouse_Text_1C5E0E, 4
random 10
- addvar RESULT, 133
- giveitem RESULT
+ addvar RESULT, ITEM_CHERI_BERRY
+ giveitem_std RESULT
compare RESULT, 0
goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
goto Route123_BerryMastersHouse_EventScript_163C1D
@@ -86,57 +86,57 @@ Route123_BerryMastersHouse_EventScript_163AF0:: @ 8163AF0
end
Route123_BerryMastersHouse_EventScript_163B1E:: @ 8163B1E
- checkflag 248
+ checkflag FLAG_RECEIVED_SPELON_BERRY
goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
- giveitem ITEM_SPELON_BERRY
+ giveitem_std ITEM_SPELON_BERRY
compare RESULT, 0
goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
- setflag 248
+ setflag FLAG_RECEIVED_SPELON_BERRY
goto Route123_BerryMastersHouse_EventScript_163C1D
end
Route123_BerryMastersHouse_EventScript_163B4F:: @ 8163B4F
- checkflag 249
+ checkflag FLAG_RECEIVED_PAMTRE_BERRY
goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
- giveitem ITEM_PAMTRE_BERRY
+ giveitem_std ITEM_PAMTRE_BERRY
compare RESULT, 0
goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
- setflag 249
+ setflag FLAG_RECEIVED_PAMTRE_BERRY
goto Route123_BerryMastersHouse_EventScript_163C1D
end
Route123_BerryMastersHouse_EventScript_163B80:: @ 8163B80
- checkflag 250
+ checkflag FLAG_RECEIVED_WATMEL_BERRY
goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
- giveitem ITEM_WATMEL_BERRY
+ giveitem_std ITEM_WATMEL_BERRY
compare RESULT, 0
goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
- setflag 250
+ setflag FLAG_RECEIVED_WATMEL_BERRY
goto Route123_BerryMastersHouse_EventScript_163C1D
end
Route123_BerryMastersHouse_EventScript_163BB1:: @ 8163BB1
- checkflag 251
+ checkflag FLAG_RECEIVED_DURIN_BERRY
goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
- giveitem ITEM_DURIN_BERRY
+ giveitem_std ITEM_DURIN_BERRY
compare RESULT, 0
goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
- setflag 251
+ setflag FLAG_RECEIVED_DURIN_BERRY
goto Route123_BerryMastersHouse_EventScript_163C1D
end
Route123_BerryMastersHouse_EventScript_163BE2:: @ 8163BE2
- checkflag 252
+ checkflag FLAG_RECEIVED_BELUE_BERRY
goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
- giveitem ITEM_BELUE_BERRY
+ giveitem_std ITEM_BELUE_BERRY
compare RESULT, 0
goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
- setflag 252
+ setflag FLAG_RECEIVED_BELUE_BERRY
goto Route123_BerryMastersHouse_EventScript_163C1D
end
@@ -146,7 +146,7 @@ Route123_BerryMastersHouse_EventScript_163C13:: @ 8163C13
end
Route123_BerryMastersHouse_EventScript_163C1D:: @ 8163C1D
- setflag 2257
+ setflag FLAG_DAILY_RECEIVED_BERRY_FROM_BERRYMASTER_WIFE
msgbox Route123_BerryMastersHouse_Text_1C5E59, 4
release
end
diff --git a/data/scripts/maps/Route124.inc b/data/scripts/maps/Route124.inc
index ffe4cef97..3e062bfdc 100644
--- a/data/scripts/maps/Route124.inc
+++ b/data/scripts/maps/Route124.inc
@@ -3,7 +3,7 @@ Route124_MapScripts:: @ 8151DDF
.byte 0
Route124_MapScript1_151DE5:: @ 8151DE5
- checkflag 2090
+ checkflag FLAG_SYS_WEATHER_CTRL
call_if 1, Route124_EventScript_1A02C1
end
diff --git a/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc b/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc
index 7421e94e0..4902d9f08 100644
--- a/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc
+++ b/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc
@@ -3,16 +3,16 @@ Route124_DivingTreasureHuntersHouse_MapScripts:: @ 8163DFA
.byte 0
Route124_DivingTreasureHuntersHouse_MapScript1_163E00:: @ 8163E00
- setflag 2139
+ setflag FLAG_LANDMARK_HUNTERS_HOUSE
end
Route124_DivingTreasureHuntersHouse_EventScript_163E04:: @ 8163E04
lock
faceplayer
- checkflag 217
+ checkflag FLAG_MET_DIVING_TREASURE_HUNTER
goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_163E20
msgbox Route124_DivingTreasureHuntersHouse_Text_19F416, 4
- setflag 217
+ setflag FLAG_MET_DIVING_TREASURE_HUNTER
goto Route124_DivingTreasureHuntersHouse_EventScript_163E2E
end
@@ -244,8 +244,8 @@ Route124_DivingTreasureHuntersHouse_EventScript_164283:: @ 8164283
goto Route124_DivingTreasureHuntersHouse_EventScript_164292
Route124_DivingTreasureHuntersHouse_EventScript_164292:: @ 8164292
- getitemname 0, 0x8008
- getitemname 1, 0x8009
+ bufferitemname 0, 0x8008
+ bufferitemname 1, 0x8009
msgbox Route124_DivingTreasureHuntersHouse_Text_19F5E0, 5
compare RESULT, 0
goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_16431F
@@ -259,8 +259,8 @@ Route124_DivingTreasureHuntersHouse_EventScript_164292:: @ 8164292
end
Route124_DivingTreasureHuntersHouse_EventScript_1642D3:: @ 81642D3
- removeitem 0x8008, 1
- giveitem 0x8009
+ takeitem 0x8008, 1
+ giveitem_std 0x8009
msgbox Route124_DivingTreasureHuntersHouse_Text_19F606, 4
call Route124_DivingTreasureHuntersHouse_EventScript_163E44
compare 0x4001, 0
diff --git a/data/scripts/maps/Route125.inc b/data/scripts/maps/Route125.inc
index 489a7314b..ea24434e2 100644
--- a/data/scripts/maps/Route125.inc
+++ b/data/scripts/maps/Route125.inc
@@ -3,7 +3,7 @@ Route125_MapScripts:: @ 8151F1E
.byte 0
Route125_MapScript1_151F24:: @ 8151F24
- checkflag 2090
+ checkflag FLAG_SYS_WEATHER_CTRL
call_if 1, Route125_EventScript_1A02C1
end
diff --git a/data/scripts/maps/Route126.inc b/data/scripts/maps/Route126.inc
index 729922681..a89087994 100644
--- a/data/scripts/maps/Route126.inc
+++ b/data/scripts/maps/Route126.inc
@@ -3,7 +3,7 @@ Route126_MapScripts:: @ 8151FFE
.byte 0
Route126_MapScript1_152004:: @ 8152004
- checkflag 2090
+ checkflag FLAG_SYS_WEATHER_CTRL
call_if 1, Route126_EventScript_1A02C1
end
diff --git a/data/scripts/maps/Route127.inc b/data/scripts/maps/Route127.inc
index 284d1fbd4..5fb122821 100644
--- a/data/scripts/maps/Route127.inc
+++ b/data/scripts/maps/Route127.inc
@@ -3,7 +3,7 @@ Route127_MapScripts:: @ 815206A
.byte 0
Route127_MapScript1_152070:: @ 8152070
- checkflag 2090
+ checkflag FLAG_SYS_WEATHER_CTRL
call_if 1, Route127_EventScript_1A02C1
end
diff --git a/data/scripts/maps/Route128.inc b/data/scripts/maps/Route128.inc
index 615662fc1..a81e73c3e 100644
--- a/data/scripts/maps/Route128.inc
+++ b/data/scripts/maps/Route128.inc
@@ -4,7 +4,7 @@ Route128_MapScripts:: @ 815211B
.byte 0
Route128_MapScript1_152126:: @ 8152126
- checkflag 2090
+ checkflag FLAG_SYS_WEATHER_CTRL
call_if 1, Route128_EventScript_1A02C1
call Route128_EventScript_1A0196
end
@@ -52,7 +52,7 @@ Route128_EventScript_15213F:: @ 815213F
removeobject 5
removeobject 4
delay 100
- setfieldeffect 0, 1
+ setfieldeffectargument 0, 1
dofieldeffect 30
waitfieldeffect 30
addobject 3
@@ -77,7 +77,7 @@ Route128_EventScript_15213F:: @ 815213F
applymovement 3, Route128_Movement_1A0845
waitmovement 0
delay 50
- setfieldeffect 0, 1
+ setfieldeffectargument 0, 1
dofieldeffect 30
delay 15
removeobject 3
diff --git a/data/scripts/maps/Route130.inc b/data/scripts/maps/Route130.inc
index 69da29471..b0381969d 100644
--- a/data/scripts/maps/Route130.inc
+++ b/data/scripts/maps/Route130.inc
@@ -6,22 +6,22 @@ Route130_MapScript1_1523C8:: @ 81523C8
specialvar RESULT, IsMirageIslandPresent
compare RESULT, 1
goto_if_eq Route130_EventScript_15240C
- setflag 17
- setflag 18
- setflag 19
- setflag 20
- setflag 21
- setflag 22
- setflag 23
- setflag 24
- setflag 25
- setflag 26
- setflag 27
- setflag 28
- setflag 29
- setflag 30
- setflag 31
- setflag 32
+ 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
diff --git a/data/scripts/maps/Route131.inc b/data/scripts/maps/Route131.inc
index 50ad4222b..efa26ecd2 100644
--- a/data/scripts/maps/Route131.inc
+++ b/data/scripts/maps/Route131.inc
@@ -3,7 +3,7 @@ Route131_MapScripts:: @ 815243E
.byte 0
Route131_MapScript1_152444:: @ 8152444
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
call_if 1, Route131_EventScript_15244E
end
diff --git a/data/scripts/maps/RustboroCity.inc b/data/scripts/maps/RustboroCity.inc
index 3be6be562..c45389b9f 100644
--- a/data/scripts/maps/RustboroCity.inc
+++ b/data/scripts/maps/RustboroCity.inc
@@ -3,7 +3,7 @@ RustboroCity_MapScripts:: @ 814C372
.byte 0
RustboroCity_MapScript1_14C378:: @ 814C378
- setflag 2073
+ setflag FLAG_VISITED_RUSTBORO_CITY
call RustboroCity_EventScript_1A0196
call RustboroCity_EventScript_1A014E
end
@@ -11,7 +11,7 @@ RustboroCity_MapScript1_14C378:: @ 814C378
RustboroCity_EventScript_14C386:: @ 814C386
lock
faceplayer
- checkflag 142
+ checkflag FLAG_DEVON_GOODS_STOLEN
goto_if_eq RustboroCity_EventScript_14C39B
msgbox RustboroCity_Text_16689D, 4
release
@@ -36,7 +36,7 @@ RustboroCity_EventScript_14C3B1:: @ 814C3B1
RustboroCity_EventScript_14C3BA:: @ 814C3BA
lock
faceplayer
- checkflag 2055
+ checkflag FLAG_BADGE01_GET
goto_if_eq RustboroCity_EventScript_14C3CF
msgbox RustboroCity_Text_16696D, 4
release
@@ -50,7 +50,7 @@ RustboroCity_EventScript_14C3CF:: @ 814C3CF
RustboroCity_EventScript_14C3D9:: @ 814C3D9
lock
faceplayer
- checkflag 188
+ checkflag FLAG_RECEIVED_POKENAV
goto_if_eq RustboroCity_EventScript_14C3EE
msgbox RustboroCity_Text_166B86, 4
release
@@ -178,16 +178,16 @@ RustboroCity_EventScript_14C4F4:: @ 814C4F4
waitmovement 0
removeobject 9
setobjectxyperm 9, 30, 10
- clearflag 732
- setflag 142
+ clearflag FLAG_HIDE_DEVON_RUSTBORO
+ setflag FLAG_DEVON_GOODS_STOLEN
setvar 0x405a, 2
setvar 0x409a, 2
setvar 0x406f, 1
- clearflag 891
- clearflag 880
- clearflag 878
- setflag 739
- setflag 881
+ 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
@@ -326,7 +326,7 @@ RustboroCity_Movement_14C5F7:: @ 814C5F7
RustboroCity_EventScript_14C5FF:: @ 814C5FF
lock
faceplayer
- checkflag 143
+ checkflag FLAG_RECOVERED_DEVON_GOODS
goto_if_eq RustboroCity_EventScript_14C614
msgbox RustboroCity_Text_166F6B, 4
release
@@ -371,7 +371,7 @@ RustboroCity_EventScript_14C650:: @ 814C650
call_if 1, RustboroCity_EventScript_14C6E9
compare 0x4001, 3
call_if 1, RustboroCity_EventScript_14C715
- setflag 159
+ setflag FLAG_UNKNOWN_9F
setvar 0x405a, 3
moveobjectoffscreen 9
msgbox RustboroCity_Text_166EA5, 4
@@ -468,13 +468,13 @@ RustboroCity_EventScript_14C77D:: @ 814C77D
compare 0x4001, 4
call_if 1, RustboroCity_EventScript_14C8B8
msgbox RustboroCity_Text_166FB4, 4
- giveitem ITEM_GREAT_BALL
+ giveitem_std ITEM_GREAT_BALL
compare RESULT, 0
call_if 1, RustboroCity_EventScript_14C7F5
msgbox RustboroCity_Text_16707F, 4
closemessage
- setflag 144
- setflag 732
+ setflag FLAG_RETURNED_DEVON_GOODS
+ setflag FLAG_HIDE_DEVON_RUSTBORO
setvar 0x405a, 5
delay 30
warp MAP_RUSTBORO_CITY_DEVON_CORP_3F, 255, 2, 2
@@ -549,7 +549,7 @@ RustboroCity_EventScript_14C8B8:: @ 814C8B8
RustboroCity_EventScript_14C8DA:: @ 814C8DA
lock
faceplayer
- checkflag 288
+ checkflag FLAG_MET_RIVAL_RUSTBORO
goto_if_eq RustboroCity_EventScript_14C917
checkplayergender
compare RESULT, 0
@@ -559,13 +559,13 @@ RustboroCity_EventScript_14C8DA:: @ 814C8DA
end
RustboroCity_EventScript_14C8FD:: @ 814C8FD
- setflag 288
+ setflag FLAG_MET_RIVAL_RUSTBORO
msgbox RustboroCity_Text_1670A7, 4
release
end
RustboroCity_EventScript_14C90A:: @ 814C90A
- setflag 288
+ setflag FLAG_MET_RIVAL_RUSTBORO
msgbox RustboroCity_Text_167213, 4
release
end
diff --git a/data/scripts/maps/RustboroCity_CuttersHouse.inc b/data/scripts/maps/RustboroCity_CuttersHouse.inc
index 3e98746f3..3371005c0 100644
--- a/data/scripts/maps/RustboroCity_CuttersHouse.inc
+++ b/data/scripts/maps/RustboroCity_CuttersHouse.inc
@@ -4,11 +4,11 @@ RustboroCity_CuttersHouse_MapScripts:: @ 8157D26
RustboroCity_CuttersHouse_EventScript_157D27:: @ 8157D27
lock
faceplayer
- checkflag 137
+ checkflag FLAG_RECEIVED_HM01
goto_if_eq RustboroCity_CuttersHouse_EventScript_157D53
msgbox RustboroCity_CuttersHouse_Text_18509C, 4
- giveitem ITEM_HM01
- setflag 137
+ giveitem_std ITEM_HM01
+ setflag FLAG_RECEIVED_HM01
msgbox RustboroCity_CuttersHouse_Text_1851C9, 4
release
end
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_1F.inc b/data/scripts/maps/RustboroCity_DevonCorp_1F.inc
index 48d8aaf9f..f9e902763 100644
--- a/data/scripts/maps/RustboroCity_DevonCorp_1F.inc
+++ b/data/scripts/maps/RustboroCity_DevonCorp_1F.inc
@@ -3,7 +3,7 @@ RustboroCity_DevonCorp_1F_MapScripts:: @ 8157406
.byte 0
RustboroCity_DevonCorp_1F_MapScript1_15740C:: @ 815740C
- checkflag 144
+ checkflag FLAG_RETURNED_DEVON_GOODS
call_if 0, RustboroCity_DevonCorp_1F_EventScript_157416
end
@@ -15,9 +15,9 @@ RustboroCity_DevonCorp_1F_EventScript_157416:: @ 8157416
RustboroCity_DevonCorp_1F_EventScript_157422:: @ 8157422
lock
faceplayer
- checkflag 144
+ checkflag FLAG_RETURNED_DEVON_GOODS
goto_if_eq RustboroCity_DevonCorp_1F_EventScript_15744A
- checkflag 142
+ checkflag FLAG_DEVON_GOODS_STOLEN
goto_if_eq RustboroCity_DevonCorp_1F_EventScript_157440
msgbox RustboroCity_DevonCorp_1F_Text_1829A4, 4
release
@@ -36,11 +36,11 @@ RustboroCity_DevonCorp_1F_EventScript_15744A:: @ 815744A
RustboroCity_DevonCorp_1F_EventScript_157454:: @ 8157454
lock
faceplayer
- checkflag 144
+ checkflag FLAG_RETURNED_DEVON_GOODS
goto_if_eq RustboroCity_DevonCorp_1F_EventScript_15747B
- checkflag 143
+ checkflag FLAG_RECOVERED_DEVON_GOODS
goto_if_eq RustboroCity_DevonCorp_1F_EventScript_157485
- checkflag 142
+ checkflag FLAG_DEVON_GOODS_STOLEN
goto_if_eq RustboroCity_DevonCorp_1F_EventScript_157485
msgbox RustboroCity_DevonCorp_1F_Text_182AF0, 4
release
@@ -59,11 +59,11 @@ RustboroCity_DevonCorp_1F_EventScript_157485:: @ 8157485
RustboroCity_DevonCorp_1F_EventScript_15748F:: @ 815748F
lock
faceplayer
- checkflag 144
+ checkflag FLAG_RETURNED_DEVON_GOODS
goto_if_eq RustboroCity_DevonCorp_1F_EventScript_1574B6
- checkflag 143
+ checkflag FLAG_RECOVERED_DEVON_GOODS
goto_if_eq RustboroCity_DevonCorp_1F_EventScript_1574C0
- checkflag 142
+ checkflag FLAG_DEVON_GOODS_STOLEN
goto_if_eq RustboroCity_DevonCorp_1F_EventScript_1574C0
msgbox RustboroCity_DevonCorp_1F_Text_1828EE, 4
release
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_2F.inc b/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
index f40c1b87b..89d59258d 100644
--- a/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
+++ b/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
@@ -25,7 +25,7 @@ RustboroCity_DevonCorp_2F_EventScript_1574F9:: @ 81574F9
faceplayer
compare 0x40c4, 1
call_if 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
- checkflag 287
+ checkflag FLAG_MET_DEVON_EMPLOYEE
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157519
msgbox RustboroCity_DevonCorp_2F_Text_182BD8, 4
release
@@ -41,7 +41,7 @@ RustboroCity_DevonCorp_2F_EventScript_157523:: @ 8157523
faceplayer
compare 0x40c4, 1
call_if 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
- checkflag 188
+ checkflag FLAG_RECEIVED_POKENAV
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157543
msgbox RustboroCity_DevonCorp_2F_Text_182D2A, 4
release
@@ -88,9 +88,9 @@ RustboroCity_DevonCorp_2F_EventScript_1575A6:: @ 81575A6
msgbox RustboroCity_DevonCorp_2F_Text_182F35, 5
compare RESULT, 0
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157636
- getitemname 0, ITEM_ROOT_FOSSIL
+ bufferitemname 0, ITEM_ROOT_FOSSIL
msgbox RustboroCity_DevonCorp_2F_Text_183023, 4
- removeitem ITEM_ROOT_FOSSIL, 1
+ takeitem ITEM_ROOT_FOSSIL, 1
setvar 0x40c4, 1
setvar 0x40c5, 1
release
@@ -106,9 +106,9 @@ RustboroCity_DevonCorp_2F_EventScript_1575EE:: @ 81575EE
msgbox RustboroCity_DevonCorp_2F_Text_182F35, 5
compare RESULT, 0
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157636
- getitemname 0, ITEM_CLAW_FOSSIL
+ bufferitemname 0, ITEM_CLAW_FOSSIL
msgbox RustboroCity_DevonCorp_2F_Text_183023, 4
- removeitem ITEM_CLAW_FOSSIL, 1
+ takeitem ITEM_CLAW_FOSSIL, 1
setvar 0x40c4, 1
setvar 0x40c5, 2
release
@@ -132,19 +132,19 @@ RustboroCity_DevonCorp_2F_EventScript_15764A:: @ 815764A
end
RustboroCity_DevonCorp_2F_EventScript_157661:: @ 8157661
- getspeciesname 1, SPECIES_LILEEP
+ bufferspeciesname 1, SPECIES_LILEEP
msgbox RustboroCity_DevonCorp_2F_Text_183124, 4
- countpokemon
+ getpartysize
compare RESULT, 6
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157707
copyvar 0x8004, RESULT
setvar 0x40c4, 0
- setflag 267
+ setflag FLAG_RECEIVED_FOSSIL_MON
playfanfare 370
message RustboroCity_DevonCorp_2F_Text_18319E
waitfanfare
waitmessage
- givepoke SPECIES_LILEEP, 20, ITEM_NONE, 0x0, 0x0, 0
+ givemon SPECIES_LILEEP, 20, ITEM_NONE, 0x0, 0x0, 0
msgbox RustboroCity_DevonCorp_2F_Text_1A1102, 5
compare RESULT, 1
call_if 1, RustboroCity_DevonCorp_2F_EventScript_1A0678
@@ -152,19 +152,19 @@ RustboroCity_DevonCorp_2F_EventScript_157661:: @ 8157661
end
RustboroCity_DevonCorp_2F_EventScript_1576B4:: @ 81576B4
- getspeciesname 1, SPECIES_ANORITH
+ bufferspeciesname 1, SPECIES_ANORITH
msgbox RustboroCity_DevonCorp_2F_Text_183124, 4
- countpokemon
+ getpartysize
compare RESULT, 6
goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157707
copyvar 0x8004, RESULT
setvar 0x40c4, 0
- setflag 267
+ setflag FLAG_RECEIVED_FOSSIL_MON
playfanfare 370
message RustboroCity_DevonCorp_2F_Text_18319E
waitfanfare
waitmessage
- givepoke SPECIES_ANORITH, 20, ITEM_NONE, 0x0, 0x0, 0
+ givemon SPECIES_ANORITH, 20, ITEM_NONE, 0x0, 0x0, 0
msgbox RustboroCity_DevonCorp_2F_Text_1A1102, 5
compare RESULT, 1
call_if 1, RustboroCity_DevonCorp_2F_EventScript_1A0678
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_3F.inc b/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
index 6f0152e60..e2e70d4c0 100644
--- a/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
+++ b/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
@@ -48,22 +48,22 @@ RustboroCity_DevonCorp_3F_EventScript_157752:: @ 8157752
applymovement 255, RustboroCity_DevonCorp_3F_Movement_157835
waitmovement 0
msgbox RustboroCity_DevonCorp_3F_Text_18320B, 4
- giveitem ITEM_LETTER
+ giveitem_std ITEM_LETTER
msgbox RustboroCity_DevonCorp_3F_Text_18337E, 4
playfanfare 370
message RustboroCity_DevonCorp_3F_Text_183422
waitfanfare
waitmessage
- setflag 2050
- setflag 188
+ setflag FLAG_SYS_POKENAV_GET
+ setflag FLAG_RECEIVED_POKENAV
msgbox RustboroCity_DevonCorp_3F_Text_183439, 4
- setflag 894
- clearflag 807
- clearflag 983
- clearflag 739
- clearflag 881
+ 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 0x4096, 1
- clearflag 814
+ clearflag FLAG_HIDE_RIVAL_RUSTBORO
setvar 0x408f, 1
releaseall
end
@@ -146,9 +146,9 @@ RustboroCity_DevonCorp_3F_Movement_157835:: @ 8157835
RustboroCity_DevonCorp_3F_EventScript_15783B:: @ 815783B
lock
faceplayer
- checkflag 272
+ checkflag FLAG_RECEIVED_EXP_SHARE
goto_if_eq RustboroCity_DevonCorp_3F_EventScript_15789B
- checkflag 189
+ checkflag FLAG_DELIVERED_STEVEN_LETTER
goto_if_eq RustboroCity_DevonCorp_3F_EventScript_157864
msgbox RustboroCity_DevonCorp_3F_Text_18351E, 4
closemessage
@@ -159,10 +159,10 @@ RustboroCity_DevonCorp_3F_EventScript_15783B:: @ 815783B
RustboroCity_DevonCorp_3F_EventScript_157864:: @ 8157864
msgbox RustboroCity_DevonCorp_3F_Text_18353E, 4
- giveitem ITEM_EXP_SHARE
+ giveitem_std ITEM_EXP_SHARE
compare RESULT, 0
goto_if_eq RustboroCity_DevonCorp_3F_EventScript_1A029B
- setflag 272
+ setflag FLAG_RECEIVED_EXP_SHARE
msgbox RustboroCity_DevonCorp_3F_Text_1835B3, 4
closemessage
applymovement LAST_TALKED, RustboroCity_DevonCorp_3F_Movement_1A083D
@@ -181,7 +181,7 @@ RustboroCity_DevonCorp_3F_EventScript_15789B:: @ 815789B
RustboroCity_DevonCorp_3F_EventScript_1578B0:: @ 81578B0
lock
faceplayer
- checkflag 256
+ checkflag FLAG_RECEIVED_REPEAT_BALL
goto_if_eq RustboroCity_DevonCorp_3F_EventScript_1578C5
msgbox RustboroCity_DevonCorp_3F_Text_18395C, 4
release
diff --git a/data/scripts/maps/RustboroCity_Flat2_1F.inc b/data/scripts/maps/RustboroCity_Flat2_1F.inc
index b6b8b41b1..a6ba54ce7 100644
--- a/data/scripts/maps/RustboroCity_Flat2_1F.inc
+++ b/data/scripts/maps/RustboroCity_Flat2_1F.inc
@@ -9,8 +9,8 @@ RustboroCity_Flat2_1F_EventScript_157D83:: @ 8157D83
lock
faceplayer
waitse
- playpokecry SPECIES_SKITTY, 0
+ playmoncry SPECIES_SKITTY, 0
msgbox RustboroCity_Flat2_1F_Text_185410, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/RustboroCity_Flat2_2F.inc b/data/scripts/maps/RustboroCity_Flat2_2F.inc
index 0dfec5cfa..3a2242c7a 100644
--- a/data/scripts/maps/RustboroCity_Flat2_2F.inc
+++ b/data/scripts/maps/RustboroCity_Flat2_2F.inc
@@ -8,13 +8,13 @@ RustboroCity_Flat2_2F_EventScript_157D97:: @ 8157D97
RustboroCity_Flat2_2F_EventScript_157DA0:: @ 8157DA0
lock
faceplayer
- checkflag 213
+ checkflag FLAG_RECEIVED_PREMIER_BALL_RUSTBORO
goto_if_eq RustboroCity_Flat2_2F_EventScript_157DCF
msgbox RustboroCity_Flat2_2F_Text_185461, 4
- giveitem ITEM_PREMIER_BALL
+ giveitem_std ITEM_PREMIER_BALL
compare RESULT, 0
goto_if_eq RustboroCity_Flat2_2F_EventScript_1A029B
- setflag 213
+ setflag FLAG_RECEIVED_PREMIER_BALL_RUSTBORO
release
end
diff --git a/data/scripts/maps/RustboroCity_Gym.inc b/data/scripts/maps/RustboroCity_Gym.inc
index b1bbfb8d8..0dc403ec7 100644
--- a/data/scripts/maps/RustboroCity_Gym.inc
+++ b/data/scripts/maps/RustboroCity_Gym.inc
@@ -3,7 +3,7 @@ RustboroCity_Gym_MapScripts:: @ 81578D8
RustboroCity_Gym_EventScript_1578D9:: @ 81578D9
trainerbattle 1, OPPONENT_ROXANNE, 0, RustboroCity_Gym_Text_183EE5, RustboroCity_Gym_Text_183FC4, RustboroCity_Gym_EventScript_1578FE
- checkflag 165
+ checkflag FLAG_RECEIVED_TM39
goto_if 0, RustboroCity_Gym_EventScript_15793C
msgbox RustboroCity_Gym_Text_184252, 4
release
@@ -14,8 +14,8 @@ RustboroCity_Gym_EventScript_1578FE:: @ 81578FE
waitmessage
call RustboroCity_Gym_EventScript_1A02C5
msgbox RustboroCity_Gym_Text_1840D5, 4
- setflag 1201
- setflag 2055
+ setflag FLAG_DEFEATED_RUSTBORO_GYM
+ setflag FLAG_BADGE01_GET
setvar 0x405a, 1
addvar 0x4085, 1
setvar 0x8008, 1
@@ -26,10 +26,10 @@ RustboroCity_Gym_EventScript_1578FE:: @ 81578FE
end
RustboroCity_Gym_EventScript_15793C:: @ 815793C
- giveitem ITEM_TM39
+ giveitem_std ITEM_TM39
compare RESULT, 0
goto_if_eq RustboroCity_Gym_EventScript_1A029B
- setflag 165
+ setflag FLAG_RECEIVED_TM39
msgbox RustboroCity_Gym_Text_184170, 4
release
end
@@ -47,7 +47,7 @@ RustboroCity_Gym_EventScript_157977:: @ 8157977
RustboroCity_Gym_EventScript_15798E:: @ 815798E
lock
faceplayer
- checkflag 1201
+ checkflag FLAG_DEFEATED_RUSTBORO_GYM
goto_if_eq RustboroCity_Gym_EventScript_1579A3
msgbox RustboroCity_Gym_Text_183A4B, 4
release
@@ -60,14 +60,14 @@ RustboroCity_Gym_EventScript_1579A3:: @ 81579A3
RustboroCity_Gym_EventScript_1579AD:: @ 81579AD
lockall
- checkflag 2055
+ checkflag FLAG_BADGE01_GET
goto_if_eq RustboroCity_Gym_EventScript_1579CD
goto RustboroCity_Gym_EventScript_1579D7
end
RustboroCity_Gym_EventScript_1579BD:: @ 81579BD
lockall
- checkflag 2055
+ checkflag FLAG_BADGE01_GET
goto_if_eq RustboroCity_Gym_EventScript_1579CD
goto RustboroCity_Gym_EventScript_1579D7
end
diff --git a/data/scripts/maps/RustboroCity_House1.inc b/data/scripts/maps/RustboroCity_House1.inc
index b983617e0..0cad33204 100644
--- a/data/scripts/maps/RustboroCity_House1.inc
+++ b/data/scripts/maps/RustboroCity_House1.inc
@@ -4,7 +4,7 @@ RustboroCity_House1_MapScripts:: @ 8157C7C
RustboroCity_House1_EventScript_157C7D:: @ 8157C7D
lock
faceplayer
- checkflag 153
+ checkflag FLAG_RUSTBORO_NPC_TRADE_COMPLETED
goto_if_eq RustboroCity_House1_EventScript_157D13
setvar 0x8008, 0
copyvar 0x8004, 0x8008
@@ -29,7 +29,7 @@ RustboroCity_House1_EventScript_157C7D:: @ 8157C7D
special sub_804E174
waitstate
msgbox RustboroCity_House1_Text_184F6B, 4
- setflag 153
+ setflag FLAG_RUSTBORO_NPC_TRADE_COMPLETED
release
end
@@ -39,7 +39,7 @@ RustboroCity_House1_EventScript_157CFB:: @ 8157CFB
end
RustboroCity_House1_EventScript_157D05:: @ 8157D05
- getspeciesname 0, 0x8009
+ bufferspeciesname 0, 0x8009
msgbox RustboroCity_House1_Text_184F8F, 4
release
end
diff --git a/data/scripts/maps/RustboroCity_House3.inc b/data/scripts/maps/RustboroCity_House3.inc
index a5088175e..86d77c18e 100644
--- a/data/scripts/maps/RustboroCity_House3.inc
+++ b/data/scripts/maps/RustboroCity_House3.inc
@@ -13,8 +13,8 @@ RustboroCity_House3_EventScript_157DFF:: @ 8157DFF
lock
faceplayer
waitse
- playpokecry SPECIES_PIKACHU, 0
+ playmoncry SPECIES_PIKACHU, 0
msgbox RustboroCity_House3_Text_18567D, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/RustboroCity_Mart.inc b/data/scripts/maps/RustboroCity_Mart.inc
index cb722a6af..69f977e79 100644
--- a/data/scripts/maps/RustboroCity_Mart.inc
+++ b/data/scripts/maps/RustboroCity_Mart.inc
@@ -6,9 +6,9 @@ RustboroCity_Mart_EventScript_157BD4:: @ 8157BD4
faceplayer
message RustboroCity_Mart_Text_1A0BE4
waitmessage
- checkflag 287
+ checkflag FLAG_MET_DEVON_EMPLOYEE
goto_if 0, RustboroCity_Mart_EventScript_157BEF
- checkflag 287
+ checkflag FLAG_MET_DEVON_EMPLOYEE
goto_if_eq RustboroCity_Mart_EventScript_157C18
end
diff --git a/data/scripts/maps/RustboroCity_PokemonCenter_1F.inc b/data/scripts/maps/RustboroCity_PokemonCenter_1F.inc
index 53b481832..a1c0ac31b 100644
--- a/data/scripts/maps/RustboroCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/RustboroCity_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ RustboroCity_PokemonCenter_1F_MapScripts:: @ 8157B79
.byte 0
RustboroCity_PokemonCenter_1F_MapScript1_157B7F:: @ 8157B7F
- sethealplace 6
+ setrespawn 6
call RustboroCity_PokemonCenter_1F_EventScript_19FD1B
end
@@ -11,7 +11,7 @@ RustboroCity_PokemonCenter_1F_EventScript_157B88:: @ 8157B88
setvar 0x800b, 1
call RustboroCity_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/RustboroCity_PokemonSchool.inc b/data/scripts/maps/RustboroCity_PokemonSchool.inc
index 73b364f5e..21fdf3d3b 100644
--- a/data/scripts/maps/RustboroCity_PokemonSchool.inc
+++ b/data/scripts/maps/RustboroCity_PokemonSchool.inc
@@ -77,20 +77,20 @@ RustboroCity_PokemonSchool_EventScript_157AC5:: @ 8157AC5
RustboroCity_PokemonSchool_EventScript_157ACE:: @ 8157ACE
lock
faceplayer
- checkflag 275
+ checkflag FLAG_RECEIVED_QUICK_CLAW
goto_if_eq RustboroCity_PokemonSchool_EventScript_157B34
compare FACING, 4
call_if 1, RustboroCity_PokemonSchool_EventScript_157B1E
compare FACING, 3
call_if 1, RustboroCity_PokemonSchool_EventScript_157B29
msgbox RustboroCity_PokemonSchool_Text_1846A2, 4
- giveitem ITEM_QUICK_CLAW
+ 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 275
+ setflag FLAG_RECEIVED_QUICK_CLAW
release
end
diff --git a/data/scripts/maps/RusturfTunnel.inc b/data/scripts/maps/RusturfTunnel.inc
index 28f6f0ad4..64fce8118 100644
--- a/data/scripts/maps/RusturfTunnel.inc
+++ b/data/scripts/maps/RusturfTunnel.inc
@@ -32,9 +32,9 @@ RusturfTunnel_EventScript_15C782:: @ 815C782
RusturfTunnel_EventScript_15C799:: @ 815C799
lock
faceplayer
- checkflag 1
+ checkflag FLAG_TEMP_1
goto_if_eq RusturfTunnel_EventScript_15C7BC
- setflag 1
+ setflag FLAG_TEMP_1
msgbox RusturfTunnel_Text_1944C5, 4
closemessage
applymovement LAST_TALKED, RusturfTunnel_Movement_1A083D
@@ -64,8 +64,8 @@ RusturfTunnel_EventScript_15C7D1:: @ 815C7D1
call_if 1, RusturfTunnel_EventScript_15C8EB
compare 0x4001, 3
call_if 1, RusturfTunnel_EventScript_15C8EB
- giveitem ITEM_HM04
- setflag 106
+ giveitem_std ITEM_HM04
+ setflag FLAG_RECEIVED_HM04
msgbox RusturfTunnel_Text_194693, 4
closemessage
compare 0x4001, 1
@@ -300,9 +300,9 @@ RusturfTunnel_EventScript_15C9D7:: @ 815C9D7
lock
faceplayer
waitse
- playpokecry SPECIES_WINGULL, 0
+ playmoncry SPECIES_WINGULL, 0
msgbox RusturfTunnel_Text_194188, 4
- waitpokecry
+ waitmoncry
release
end
@@ -313,7 +313,7 @@ RusturfTunnel_EventScript_15C9EA:: @ 815C9EA
msgbox RusturfTunnel_Text_19419B, 4
trainerbattle 3, OPPONENT_RUSTURF_TUNNEL_GRUNT, 0, RusturfTunnel_Text_194243
msgbox RusturfTunnel_Text_194274, 4
- giveitem ITEM_DEVON_GOODS
+ giveitem_std ITEM_DEVON_GOODS
closemessage
applymovement 255, RusturfTunnel_Movement_15CA99
applymovement 6, RusturfTunnel_Movement_15CAA2
@@ -332,20 +332,20 @@ RusturfTunnel_EventScript_15C9EA:: @ 815C9EA
message RusturfTunnel_Text_19434F
waitmessage
waitse
- playpokecry SPECIES_WINGULL, 0
- waitbutton
- waitpokecry
+ playmoncry SPECIES_WINGULL, 0
+ waitbuttonpress
+ waitmoncry
closemessage
applymovement 5, RusturfTunnel_Movement_15CAB4
applymovement 7, RusturfTunnel_Movement_15CAC3
waitmovement 0
removeobject 5
removeobject 7
- clearflag 142
- setflag 143
+ clearflag FLAG_DEVON_GOODS_STOLEN
+ setflag FLAG_RECOVERED_DEVON_GOODS
setvar 0x405a, 4
setvar 0x4090, 1
- setflag 891
+ setflag FLAG_HIDE_BRINEY_ROUTE116
release
end
diff --git a/data/scripts/maps/SSTidalCorridor.inc b/data/scripts/maps/SSTidalCorridor.inc
index 59ab89112..8e9a404a2 100644
--- a/data/scripts/maps/SSTidalCorridor.inc
+++ b/data/scripts/maps/SSTidalCorridor.inc
@@ -88,9 +88,9 @@ SSTidalCorridor_EventScript_15FD9F:: @ 815FD9F
lock
faceplayer
waitse
- playpokecry SPECIES_WINGULL, 0
+ playmoncry SPECIES_WINGULL, 0
msgbox SSTidalCorridor_Text_199388, 4
- waitpokecry
+ waitmoncry
release
end
@@ -122,9 +122,9 @@ SSTidalCorridor_EventScript_15FDD6:: @ 815FDD6
end
SSTidalCorridor_EventScript_15FDF8:: @ 815FDF8
- sethealplace 8
+ setrespawn 8
msgbox SSTidalCorridor_Text_1991F4, 4
- checkflag 260
+ checkflag FLAG_RECEIVED_TM49
call_if 1, SSTidalCorridor_EventScript_15FE36
warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
waitstate
@@ -132,9 +132,9 @@ SSTidalCorridor_EventScript_15FDF8:: @ 815FDF8
end
SSTidalCorridor_EventScript_15FE17:: @ 815FE17
- sethealplace 4
+ setrespawn 4
msgbox SSTidalCorridor_Text_1991F4, 4
- checkflag 260
+ checkflag FLAG_RECEIVED_TM49
call_if 1, SSTidalCorridor_EventScript_15FE36
warp MAP_SLATEPORT_CITY_HARBOR, 255, 8, 11
waitstate
@@ -142,7 +142,7 @@ SSTidalCorridor_EventScript_15FE17:: @ 815FE17
end
SSTidalCorridor_EventScript_15FE36:: @ 815FE36
- setflag 951
+ setflag FLAG_HIDE_TM_49_GIVER_SS_TIDAL
return
SSTidalCorridor_EventScript_15FE3A:: @ 815FE3A
@@ -163,7 +163,7 @@ SSTidalCorridor_EventScript_15FE5B:: @ 815FE5B
SSTidalCorridor_EventScript_15FE60:: @ 815FE60
lock
faceplayer
- checkflag 247
+ checkflag FLAG_DEFEATED_SS_TIDAL_TRAINERS
goto_if_eq SSTidalCorridor_EventScript_15FE7A
call SSTidalCorridor_EventScript_15FE84
msgbox SSTidalCorridor_Text_199203, 4
@@ -192,7 +192,7 @@ SSTidalCorridor_EventScript_15FE84:: @ 815FE84
goto_if 0, SSTidalCorridor_EventScript_15FED5
checktrainerflag OPPONENT_ANETTE
goto_if 0, SSTidalCorridor_EventScript_15FED5
- setflag 247
+ setflag FLAG_DEFEATED_SS_TIDAL_TRAINERS
goto SSTidalCorridor_EventScript_15FE7A
return
diff --git a/data/scripts/maps/SSTidalRooms.inc b/data/scripts/maps/SSTidalRooms.inc
index c7cd4447d..0390177de 100644
--- a/data/scripts/maps/SSTidalRooms.inc
+++ b/data/scripts/maps/SSTidalRooms.inc
@@ -4,13 +4,13 @@ SSTidalRooms_MapScripts:: @ 815FF05
SSTidalRooms_EventScript_15FF06:: @ 815FF06
lock
faceplayer
- checkflag 260
+ checkflag FLAG_RECEIVED_TM49
goto_if_eq SSTidalRooms_EventScript_15FF3D
msgbox SSTidalRooms_Text_199B65, 4
- giveitem ITEM_TM49
+ giveitem_std ITEM_TM49
compare RESULT, 0
goto_if_eq SSTidalRooms_EventScript_1A029B
- setflag 260
+ setflag FLAG_RECEIVED_TM49
msgbox SSTidalRooms_Text_199C1A, 4
release
end
diff --git a/data/scripts/maps/ScorchedSlab.inc b/data/scripts/maps/ScorchedSlab.inc
index 112289083..f0ed9c005 100644
--- a/data/scripts/maps/ScorchedSlab.inc
+++ b/data/scripts/maps/ScorchedSlab.inc
@@ -3,5 +3,5 @@ ScorchedSlab_MapScripts:: @ 815F29D
.byte 0
ScorchedSlab_MapScript1_15F2A3:: @ 815F2A3
- setflag 2136
+ setflag FLAG_LANDMARK_SCORCHED_SLAB
end
diff --git a/data/scripts/maps/SeafloorCavern_Room9.inc b/data/scripts/maps/SeafloorCavern_Room9.inc
index 26cb2321a..b31e8fc25 100644
--- a/data/scripts/maps/SeafloorCavern_Room9.inc
+++ b/data/scripts/maps/SeafloorCavern_Room9.inc
@@ -79,9 +79,9 @@ SeafloorCavern_Room9_EventScript_15DAFA:: @ 815DAFA
setvar RESULT, 0
.endif
playse 209
- setfieldeffect 0, 16
- setfieldeffect 1, 42
- setfieldeffect 2, 0
+ setfieldeffectargument 0, 16
+ setfieldeffectargument 1, 42
+ setfieldeffectargument 2, 0
dofieldeffect 54
waitfieldeffect 54
.ifdef SAPPHIRE
@@ -192,24 +192,24 @@ SeafloorCavern_Room9_EventScript_15DAFA:: @ 815DAFA
msgbox SeafloorCavern_Room9_Text_1B4ECA, 4
.endif
setvar 0x407b, 1
- clearflag 855
- clearflag 856
- clearflag 816
- clearflag 973
+ 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 0x405e, 1
- clearflag 944
- clearflag 945
- setflag 2090
- setflag 854
- setflag 129
- setflag 967
+ 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 0x40c6, 1
setvar 0x40a2, 1
- setflag 828
- setflag 829
- setflag 831
- setflag 859
- setflag 946
+ 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
diff --git a/data/scripts/maps/SealedChamber_InnerRoom.inc b/data/scripts/maps/SealedChamber_InnerRoom.inc
index 526ada367..cd778202c 100644
--- a/data/scripts/maps/SealedChamber_InnerRoom.inc
+++ b/data/scripts/maps/SealedChamber_InnerRoom.inc
@@ -4,9 +4,9 @@ SealedChamber_InnerRoom_MapScripts:: @ 815F1E7
SealedChamber_InnerRoom_EventScript_15F1E8:: @ 815F1E8
lockall
braillemessage SealedChamber_InnerRoom_Braille_1C53C1
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
- checkflag 228
+ checkflag FLAG_REGI_DOORS_OPENED
goto_if_eq SealedChamber_InnerRoom_EventScript_15F247
specialvar RESULT, CheckRelicanthWailord
compare RESULT, 0
@@ -31,7 +31,7 @@ SealedChamber_InnerRoom_EventScript_15F1E8:: @ 815F1E8
msgbox SealedChamber_InnerRoom_Text_1A138B, 4
closemessage
fadeinbgm 0
- setflag 228
+ setflag FLAG_REGI_DOORS_OPENED
releaseall
end
@@ -42,7 +42,7 @@ SealedChamber_InnerRoom_EventScript_15F247:: @ 815F247
SealedChamber_InnerRoom_EventScript_15F249:: @ 815F249
lockall
braillemessage SealedChamber_InnerRoom_Braille_1C53F2
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -50,7 +50,7 @@ SealedChamber_InnerRoom_EventScript_15F249:: @ 815F249
SealedChamber_InnerRoom_EventScript_15F257:: @ 815F257
lockall
braillemessage SealedChamber_InnerRoom_Braille_1C5414
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -58,7 +58,7 @@ SealedChamber_InnerRoom_EventScript_15F257:: @ 815F257
SealedChamber_InnerRoom_EventScript_15F265:: @ 815F265
lockall
braillemessage SealedChamber_InnerRoom_Braille_1C5435
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -66,7 +66,7 @@ SealedChamber_InnerRoom_EventScript_15F265:: @ 815F265
SealedChamber_InnerRoom_EventScript_15F273:: @ 815F273
lockall
braillemessage SealedChamber_InnerRoom_Braille_1C545C
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -74,7 +74,7 @@ SealedChamber_InnerRoom_EventScript_15F273:: @ 815F273
SealedChamber_InnerRoom_EventScript_15F281:: @ 815F281
lockall
braillemessage SealedChamber_InnerRoom_Braille_1C5470
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -82,7 +82,7 @@ SealedChamber_InnerRoom_EventScript_15F281:: @ 815F281
SealedChamber_InnerRoom_EventScript_15F28F:: @ 815F28F
lockall
braillemessage SealedChamber_InnerRoom_Braille_1C549B
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
diff --git a/data/scripts/maps/SealedChamber_OuterRoom.inc b/data/scripts/maps/SealedChamber_OuterRoom.inc
index 5ff94be19..ad17819c2 100644
--- a/data/scripts/maps/SealedChamber_OuterRoom.inc
+++ b/data/scripts/maps/SealedChamber_OuterRoom.inc
@@ -10,27 +10,27 @@ SealedChamber_OuterRoom_MapScript1_15F0D6:: @ 815F0D6
end
SealedChamber_OuterRoom_MapScript1_15F0E7:: @ 815F0E7
- setflag 2140
+ setflag FLAG_LANDMARK_SEALED_CHAMBER
end
SealedChamber_OuterRoom_MapScript1_15F0EB:: @ 815F0EB
- checkflag 2127
+ checkflag FLAG_SYS_BRAILLE_DIG
call_if 0, SealedChamber_OuterRoom_EventScript_15F0F5
end
SealedChamber_OuterRoom_EventScript_15F0F5:: @ 815F0F5
- setmaptile 9, 1, 553, 1
- setmaptile 10, 1, 553, 1
- setmaptile 11, 1, 553, 1
- setmaptile 9, 2, 565, 1
- setmaptile 10, 2, 565, 1
- setmaptile 11, 2, 565, 1
+ 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
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -38,7 +38,7 @@ SealedChamber_OuterRoom_EventScript_15F12C:: @ 815F12C
SealedChamber_OuterRoom_EventScript_15F13A:: @ 815F13A
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C5359
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -46,7 +46,7 @@ SealedChamber_OuterRoom_EventScript_15F13A:: @ 815F13A
SealedChamber_OuterRoom_EventScript_15F148:: @ 815F148
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C5363
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -54,7 +54,7 @@ SealedChamber_OuterRoom_EventScript_15F148:: @ 815F148
SealedChamber_OuterRoom_EventScript_15F156:: @ 815F156
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C536D
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -62,7 +62,7 @@ SealedChamber_OuterRoom_EventScript_15F156:: @ 815F156
SealedChamber_OuterRoom_EventScript_15F164:: @ 815F164
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C5377
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -70,7 +70,7 @@ SealedChamber_OuterRoom_EventScript_15F164:: @ 815F164
SealedChamber_OuterRoom_EventScript_15F172:: @ 815F172
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C5381
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -78,7 +78,7 @@ SealedChamber_OuterRoom_EventScript_15F172:: @ 815F172
SealedChamber_OuterRoom_EventScript_15F180:: @ 815F180
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C538B
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -86,7 +86,7 @@ SealedChamber_OuterRoom_EventScript_15F180:: @ 815F180
SealedChamber_OuterRoom_EventScript_15F18E:: @ 815F18E
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C5396
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -94,7 +94,7 @@ SealedChamber_OuterRoom_EventScript_15F18E:: @ 815F18E
SealedChamber_OuterRoom_EventScript_15F19C:: @ 815F19C
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C539E
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -102,17 +102,17 @@ SealedChamber_OuterRoom_EventScript_15F19C:: @ 815F19C
SealedChamber_OuterRoom_EventScript_15F1AA:: @ 815F1AA
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C53A9
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
SealedChamber_OuterRoom_EventScript_15F1B8:: @ 815F1B8
lockall
- checkflag 2127
+ checkflag FLAG_SYS_BRAILLE_DIG
goto_if_eq SealedChamber_OuterRoom_EventScript_15F1CF
braillemessage SealedChamber_OuterRoom_Braille_1C53B1
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
@@ -125,7 +125,7 @@ SealedChamber_OuterRoom_EventScript_15F1CF:: @ 815F1CF
SealedChamber_OuterRoom_EventScript_15F1D9:: @ 815F1D9
lockall
braillemessage SealedChamber_OuterRoom_Braille_1C53B1
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
diff --git a/data/scripts/maps/SecretBase_YellowCave4.inc b/data/scripts/maps/SecretBase_YellowCave4.inc
index 302bc3930..f72c3d76e 100644
--- a/data/scripts/maps/SecretBase_YellowCave4.inc
+++ b/data/scripts/maps/SecretBase_YellowCave4.inc
@@ -6,7 +6,7 @@ SecretBase_YellowCave4_MapScripts:: @ 815F337
.byte 0
SecretBase_RedCave1_MapScript1_15F34C:: @ 815F34C
- tileeffect 6
+ setstepcallback 6
end
SecretBase_RedCave1_MapScript1_15F34F:: @ 815F34F
diff --git a/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc b/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc
index 52d430db5..533c46850 100644
--- a/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc
+++ b/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc
@@ -4,7 +4,7 @@ ShoalCave_LowTideEntranceRoom_MapScripts:: @ 815E057
ShoalCave_LowTideEntranceRoom_MapScript1_15E05D:: @ 815E05D
special UpdateShoalTideFlag
- checkflag 2106
+ checkflag FLAG_SYS_SHOAL_TIDE
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E06E
goto ShoalCave_LowTideEntranceRoom_EventScript_15E072
@@ -20,7 +20,7 @@ ShoalCave_LowTideEntranceRoom_EventScript_15E076:: @ 815E076
lock
faceplayer
dodailyevents
- checkflag 2143
+ checkflag FLAG_SYS_SHOAL_ITEM
call_if 1, ShoalCave_LowTideEntranceRoom_EventScript_15E176
checkitem ITEM_SHOAL_SALT, 4
compare RESULT, 0
@@ -37,13 +37,13 @@ ShoalCave_LowTideEntranceRoom_EventScript_15E076:: @ 815E076
compare RESULT, 2
goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E12E
msgbox ShoalCave_LowTideEntranceRoom_Text_1C6808, 4
- removeitem ITEM_SHOAL_SALT, 4
- removeitem ITEM_SHOAL_SHELL, 4
- giveitem ITEM_SHELL_BELL
+ 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 2
+ setflag FLAG_TEMP_2
release
end
@@ -90,13 +90,13 @@ ShoalCave_LowTideEntranceRoom_EventScript_15E16C:: @ 815E16C
end
ShoalCave_LowTideEntranceRoom_EventScript_15E176:: @ 815E176
- clearflag 952
- clearflag 953
- clearflag 954
- clearflag 955
- clearflag 956
- clearflag 957
- clearflag 958
- clearflag 959
- clearflag 2143
+ 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/scripts/maps/ShoalCave_LowTideInnerRoom.inc b/data/scripts/maps/ShoalCave_LowTideInnerRoom.inc
index ada997023..b6aba9523 100644
--- a/data/scripts/maps/ShoalCave_LowTideInnerRoom.inc
+++ b/data/scripts/maps/ShoalCave_LowTideInnerRoom.inc
@@ -4,7 +4,7 @@ ShoalCave_LowTideInnerRoom_MapScripts:: @ 815E192
.byte 0
ShoalCave_LowTideInnerRoom_MapScript1_15E19D:: @ 815E19D
- checkflag 2106
+ checkflag FLAG_SYS_SHOAL_TIDE
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1AB
goto ShoalCave_LowTideInnerRoom_EventScript_15E1AF
@@ -21,48 +21,48 @@ ShoalCave_LowTideInnerRoom_MapScript1_15E1B3:: @ 815E1B3
end
ShoalCave_LowTideInnerRoom_EventScript_15E1B9:: @ 815E1B9
- checkflag 952
+ checkflag FLAG_HIDE_TOOK_SHOAL_SALT_1
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1DA
- checkflag 2106
+ checkflag FLAG_SYS_SHOAL_TIDE
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1DA
- setmaptile 31, 8, 856, 1
+ setmetatile 31, 8, 856, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E1DA
end
ShoalCave_LowTideInnerRoom_EventScript_15E1DA:: @ 815E1DA
- checkflag 953
+ checkflag FLAG_HIDE_TOOK_SHOAL_SALT_2
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1FB
- checkflag 2106
+ checkflag FLAG_SYS_SHOAL_TIDE
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1FB
- setmaptile 14, 26, 856, 1
+ setmetatile 14, 26, 856, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E1FB
end
ShoalCave_LowTideInnerRoom_EventScript_15E1FB:: @ 815E1FB
- checkflag 956
+ checkflag FLAG_HIDE_TOOK_SHOAL_SHELL_1
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E213
- setmaptile 41, 20, 857, 1
+ setmetatile 41, 20, 857, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E213
end
ShoalCave_LowTideInnerRoom_EventScript_15E213:: @ 815E213
- checkflag 957
+ checkflag FLAG_HIDE_TOOK_SHOAL_SHELL_2
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E22B
- setmaptile 41, 10, 857, 1
+ setmetatile 41, 10, 857, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E22B
end
ShoalCave_LowTideInnerRoom_EventScript_15E22B:: @ 815E22B
- checkflag 958
+ checkflag FLAG_HIDE_TOOK_SHOAL_SHELL_3
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E243
- setmaptile 6, 9, 857, 1
+ setmetatile 6, 9, 857, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E243
end
ShoalCave_LowTideInnerRoom_EventScript_15E243:: @ 815E243
- checkflag 959
+ checkflag FLAG_HIDE_TOOK_SHOAL_SHELL_4
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E256
- setmaptile 16, 13, 857, 1
+ setmetatile 16, 13, 857, 1
return
ShoalCave_LowTideInnerRoom_EventScript_15E256:: @ 815E256
@@ -70,14 +70,14 @@ ShoalCave_LowTideInnerRoom_EventScript_15E256:: @ 815E256
ShoalCave_LowTideInnerRoom_EventScript_15E257:: @ 815E257
lockall
- checkflag 956
+ checkflag FLAG_HIDE_TOOK_SHOAL_SHELL_1
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E289
- giveitem ITEM_SHOAL_SHELL
+ giveitem_std ITEM_SHOAL_SHELL
compare RESULT, 0
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
- setmaptile 41, 20, 859, 0
+ setmetatile 41, 20, 859, 0
special DrawWholeMapView
- setflag 956
+ setflag FLAG_HIDE_TOOK_SHOAL_SHELL_1
releaseall
end
@@ -88,53 +88,53 @@ ShoalCave_LowTideInnerRoom_EventScript_15E289:: @ 815E289
ShoalCave_LowTideInnerRoom_EventScript_15E293:: @ 815E293
lockall
- checkflag 957
+ checkflag FLAG_HIDE_TOOK_SHOAL_SHELL_2
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E289
- giveitem ITEM_SHOAL_SHELL
+ giveitem_std ITEM_SHOAL_SHELL
compare RESULT, 0
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
- setmaptile 41, 10, 859, 0
+ setmetatile 41, 10, 859, 0
special DrawWholeMapView
- setflag 957
+ setflag FLAG_HIDE_TOOK_SHOAL_SHELL_2
releaseall
end
ShoalCave_LowTideInnerRoom_EventScript_15E2C5:: @ 815E2C5
lockall
- checkflag 958
+ checkflag FLAG_HIDE_TOOK_SHOAL_SHELL_3
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E289
- giveitem ITEM_SHOAL_SHELL
+ giveitem_std ITEM_SHOAL_SHELL
compare RESULT, 0
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
- setmaptile 6, 9, 859, 0
+ setmetatile 6, 9, 859, 0
special DrawWholeMapView
- setflag 958
+ setflag FLAG_HIDE_TOOK_SHOAL_SHELL_3
releaseall
end
ShoalCave_LowTideInnerRoom_EventScript_15E2F7:: @ 815E2F7
lockall
- checkflag 959
+ checkflag FLAG_HIDE_TOOK_SHOAL_SHELL_4
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E289
- giveitem ITEM_SHOAL_SHELL
+ giveitem_std ITEM_SHOAL_SHELL
compare RESULT, 0
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
- setmaptile 16, 13, 859, 0
+ setmetatile 16, 13, 859, 0
special DrawWholeMapView
- setflag 959
+ setflag FLAG_HIDE_TOOK_SHOAL_SHELL_4
releaseall
end
ShoalCave_LowTideInnerRoom_EventScript_15E329:: @ 815E329
lockall
- checkflag 952
+ checkflag FLAG_HIDE_TOOK_SHOAL_SALT_1
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E35B
- giveitem ITEM_SHOAL_SALT
+ giveitem_std ITEM_SHOAL_SALT
compare RESULT, 0
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
- setmaptile 31, 8, 858, 0
+ setmetatile 31, 8, 858, 0
special DrawWholeMapView
- setflag 952
+ setflag FLAG_HIDE_TOOK_SHOAL_SALT_1
releaseall
end
@@ -145,13 +145,13 @@ ShoalCave_LowTideInnerRoom_EventScript_15E35B:: @ 815E35B
ShoalCave_LowTideInnerRoom_EventScript_15E365:: @ 815E365
lockall
- checkflag 953
+ checkflag FLAG_HIDE_TOOK_SHOAL_SALT_2
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E35B
- giveitem ITEM_SHOAL_SALT
+ giveitem_std ITEM_SHOAL_SALT
compare RESULT, 0
goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
- setmaptile 14, 26, 858, 0
+ setmetatile 14, 26, 858, 0
special DrawWholeMapView
- setflag 953
+ setflag FLAG_HIDE_TOOK_SHOAL_SALT_2
releaseall
end
diff --git a/data/scripts/maps/ShoalCave_LowTideLowerRoom.inc b/data/scripts/maps/ShoalCave_LowTideLowerRoom.inc
index db5779efe..c7cb08a9b 100644
--- a/data/scripts/maps/ShoalCave_LowTideLowerRoom.inc
+++ b/data/scripts/maps/ShoalCave_LowTideLowerRoom.inc
@@ -7,9 +7,9 @@ ShoalCave_LowTideLowerRoom_MapScript1_15E3F9:: @ 815E3F9
end
ShoalCave_LowTideLowerRoom_EventScript_15E3FF:: @ 815E3FF
- checkflag 955
+ checkflag FLAG_HIDE_TOOK_SHOAL_SALT_4
goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_15E412
- setmaptile 18, 2, 856, 1
+ setmetatile 18, 2, 856, 1
return
ShoalCave_LowTideLowerRoom_EventScript_15E412:: @ 815E412
@@ -17,14 +17,14 @@ ShoalCave_LowTideLowerRoom_EventScript_15E412:: @ 815E412
ShoalCave_LowTideLowerRoom_EventScript_15E413:: @ 815E413
lockall
- checkflag 955
+ checkflag FLAG_HIDE_TOOK_SHOAL_SALT_4
goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_15E445
- giveitem ITEM_SHOAL_SALT
+ giveitem_std ITEM_SHOAL_SALT
compare RESULT, 0
goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_1A029B
- setmaptile 18, 2, 858, 0
+ setmetatile 18, 2, 858, 0
special DrawWholeMapView
- setflag 955
+ setflag FLAG_HIDE_TOOK_SHOAL_SALT_4
releaseall
end
@@ -36,13 +36,13 @@ ShoalCave_LowTideLowerRoom_EventScript_15E445:: @ 815E445
ShoalCave_LowTideLowerRoom_EventScript_15E44F:: @ 815E44F
lock
faceplayer
- checkflag 283
+ checkflag FLAG_RECEIVED_FOCUS_BAND
goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_15E47E
msgbox ShoalCave_LowTideLowerRoom_Text_198200, 4
- giveitem ITEM_FOCUS_BAND
+ giveitem_std ITEM_FOCUS_BAND
compare RESULT, 0
goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_1A029B
- setflag 283
+ setflag FLAG_RECEIVED_FOCUS_BAND
release
end
diff --git a/data/scripts/maps/ShoalCave_LowTideStairsRoom.inc b/data/scripts/maps/ShoalCave_LowTideStairsRoom.inc
index bffb7bd49..efcad59d3 100644
--- a/data/scripts/maps/ShoalCave_LowTideStairsRoom.inc
+++ b/data/scripts/maps/ShoalCave_LowTideStairsRoom.inc
@@ -7,9 +7,9 @@ ShoalCave_LowTideStairsRoom_MapScript1_15E39D:: @ 815E39D
end
ShoalCave_LowTideStairsRoom_EventScript_15E3A3:: @ 815E3A3
- checkflag 954
+ checkflag FLAG_HIDE_TOOK_SHOAL_SALT_3
goto_if_eq ShoalCave_LowTideStairsRoom_EventScript_15E3B6
- setmaptile 11, 11, 856, 1
+ setmetatile 11, 11, 856, 1
return
ShoalCave_LowTideStairsRoom_EventScript_15E3B6:: @ 815E3B6
@@ -17,14 +17,14 @@ ShoalCave_LowTideStairsRoom_EventScript_15E3B6:: @ 815E3B6
ShoalCave_LowTideStairsRoom_EventScript_15E3B7:: @ 815E3B7
lockall
- checkflag 954
+ checkflag FLAG_HIDE_TOOK_SHOAL_SALT_3
goto_if_eq ShoalCave_LowTideStairsRoom_EventScript_15E3E9
- giveitem ITEM_SHOAL_SALT
+ giveitem_std ITEM_SHOAL_SALT
compare RESULT, 0
goto_if_eq ShoalCave_LowTideStairsRoom_EventScript_1A029B
- setmaptile 11, 11, 858, 0
+ setmetatile 11, 11, 858, 0
special DrawWholeMapView
- setflag 954
+ setflag FLAG_HIDE_TOOK_SHOAL_SALT_3
releaseall
end
diff --git a/data/scripts/maps/SkyPillar_2F.inc b/data/scripts/maps/SkyPillar_2F.inc
index 3f388127b..bd87e8562 100644
--- a/data/scripts/maps/SkyPillar_2F.inc
+++ b/data/scripts/maps/SkyPillar_2F.inc
@@ -5,6 +5,6 @@ SkyPillar_2F_MapScripts:: @ 815F2C9
.byte 0
SkyPillar_2F_MapScript1_15F2D9:: @ 815F2D9
- tileeffect 7
+ setstepcallback 7
setholewarp MAP_SKY_PILLAR_1F, 255, 0, 0
end
diff --git a/data/scripts/maps/SkyPillar_4F.inc b/data/scripts/maps/SkyPillar_4F.inc
index f0b9a6f85..860f35b48 100644
--- a/data/scripts/maps/SkyPillar_4F.inc
+++ b/data/scripts/maps/SkyPillar_4F.inc
@@ -5,6 +5,6 @@ SkyPillar_4F_MapScripts:: @ 815F2E5
.byte 0
SkyPillar_4F_MapScript1_15F2F5:: @ 815F2F5
- tileeffect 7
+ setstepcallback 7
setholewarp MAP_SKY_PILLAR_3F, 255, 0, 0
end
diff --git a/data/scripts/maps/SkyPillar_Entrance.inc b/data/scripts/maps/SkyPillar_Entrance.inc
index 7a3927332..ab991d845 100644
--- a/data/scripts/maps/SkyPillar_Entrance.inc
+++ b/data/scripts/maps/SkyPillar_Entrance.inc
@@ -3,5 +3,5 @@ SkyPillar_Entrance_MapScripts:: @ 815F2BD
.byte 0
SkyPillar_Entrance_MapScript1_15F2C3:: @ 815F2C3
- setflag 2142
+ setflag FLAG_LANDMARK_SKY_PILLAR
end
diff --git a/data/scripts/maps/SkyPillar_Top.inc b/data/scripts/maps/SkyPillar_Top.inc
index 1dee6e9c4..07a78d2c4 100644
--- a/data/scripts/maps/SkyPillar_Top.inc
+++ b/data/scripts/maps/SkyPillar_Top.inc
@@ -3,7 +3,7 @@ SkyPillar_Top_MapScripts:: @ 815F302
.byte 0
SkyPillar_Top_MapScript1_15F308:: @ 815F308
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, SkyPillar_Top_EventScript_15F312
end
@@ -16,13 +16,13 @@ SkyPillar_Top_EventScript_15F316:: @ 815F316
faceplayer
setwildbattle SPECIES_RAYQUAZA, 70, ITEM_NONE
waitse
- playpokecry SPECIES_RAYQUAZA, 2
+ playmoncry SPECIES_RAYQUAZA, 2
delay 40
- waitpokecry
- setflag 773
- setflag 2145
+ waitmoncry
+ setflag FLAG_HIDE_RAYQUAZA
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
special ScrSpecial_StartRayquazaBattle
waitstate
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
release
end
diff --git a/data/scripts/maps/SlateportCity.inc b/data/scripts/maps/SlateportCity.inc
index 600cfc959..56fc0e59b 100644
--- a/data/scripts/maps/SlateportCity.inc
+++ b/data/scripts/maps/SlateportCity.inc
@@ -17,9 +17,9 @@ SlateportCity_MapScript1_14BA3C:: @ 814BA3C
end
SlateportCity_EventScript_14BA5C:: @ 814BA5C
- setflag 2071
+ setflag FLAG_VISITED_SLATEPORT_CITY
setvar 0x4086, 0
- setflag 803
+ setflag FLAG_HIDE_CONTEST_REPORTER_SLATEPORT
return
SlateportCity_EventScript_14BA68:: @ 814BA68
@@ -64,7 +64,7 @@ SlateportCity_Items1:: @ 814BAD0
SlateportCity_EventScript_14BAE0:: @ 814BAE0
lock
faceplayer
- getfirstpartypokename 0
+ bufferleadmonspeciesname 0
msgbox SlateportCity_Text_164682, 4
specialvar RESULT, LeadMonHasEffortRibbon
compare RESULT, 1
@@ -125,7 +125,7 @@ SlateportCity_EventScript_14BB81:: @ 814BB81
faceplayer
compare 0x4058, 1
call_if 1, SlateportCity_EventScript_14BBA1
- checkflag 96
+ checkflag FLAG_RECEIVED_SECRET_POWER
goto_if_eq SlateportCity_EventScript_14BBAB
msgbox SlateportCity_Text_164937, 4
release
@@ -182,7 +182,7 @@ SlateportCity_EventScript_14BC0A:: @ 814BC0A
SlateportCity_EventScript_14BC14:: @ 814BC14
lock
faceplayer
- checkflag 148
+ checkflag FLAG_DOCK_REJECTED_DEVON_GOODS
goto_if_eq SlateportCity_EventScript_14BC29
msgbox SlateportCity_Text_164BBF, 4
release
@@ -199,9 +199,9 @@ SlateportCity_EventScript_14BC33:: @ 814BC33
SlateportCity_EventScript_14BC3C:: @ 814BC3C
lockall
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq SlateportCity_EventScript_14BC63
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
goto_if_eq SlateportCity_EventScript_14BC59
msgbox SlateportCity_Text_1658A0, 4
releaseall
@@ -235,7 +235,7 @@ SlateportCity_EventScript_14BC88:: @ 814BC88
SlateportCity_EventScript_14BC91:: @ 814BC91
lockall
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq SlateportCity_EventScript_14BCA5
msgbox SlateportCity_Text_165A8B, 4
releaseall
@@ -388,7 +388,7 @@ SlateportCity_EventScript_14BDF2:: @ 814BDF2
faceplayer
message SlateportCity_Text_1A0BE4
waitmessage
- pokemartdecor SlateportCity_Decorations1
+ pokemartdecoration SlateportCity_Decorations1
msgbox SlateportCity_Text_1A0C02, 4
release
end
@@ -410,11 +410,11 @@ SlateportCity_EventScript_14BE16:: @ 814BE16
SlateportCity_EventScript_14BE20:: @ 814BE20
lock
faceplayer
- checkflag 96
+ checkflag FLAG_RECEIVED_SECRET_POWER
goto_if 0, SlateportCity_EventScript_14BE16
message SlateportCity_Text_1A0BE4
waitmessage
- pokemartdecor SlateportCity_Decorations2
+ pokemartdecoration SlateportCity_Decorations2
msgbox SlateportCity_Text_1A0C02, 4
release
end
@@ -442,11 +442,11 @@ SlateportCity_Decorations2:: @ 814BE40
@ 814BE60
lock
faceplayer
- checkflag 96
+ checkflag FLAG_RECEIVED_SECRET_POWER
goto_if 0, SlateportCity_EventScript_14BE16
message SlateportCity_Text_1A0BE4
waitmessage
- pokemartdecor SlateportCity_Decorations3
+ pokemartdecoration SlateportCity_Decorations3
msgbox SlateportCity_Text_1A0C02, 4
release
end
@@ -533,10 +533,10 @@ SlateportCity_EventScript_14BEBC:: @ 814BEBC
applymovement 255, SlateportCity_Movement_14C008
waitmovement 0
removeobject 11
- clearflag 841
- clearflag 848
- clearflag 845
- clearflag 846
+ 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 0x4058, 2
warp MAP_SLATEPORT_CITY_HARBOR, 255, 11, 14
waitstate
diff --git a/data/scripts/maps/SlateportCity_ContestHall.inc b/data/scripts/maps/SlateportCity_ContestHall.inc
index f8070f1a1..0a6f40c75 100644
--- a/data/scripts/maps/SlateportCity_ContestHall.inc
+++ b/data/scripts/maps/SlateportCity_ContestHall.inc
@@ -12,13 +12,13 @@ SlateportCity_ContestHall_EventScript_155555:: @ 8155555
SlateportCity_ContestHall_EventScript_15555E:: @ 815555E
lock
faceplayer
- checkflag 265
+ checkflag FLAG_RECEIVED_TM41
goto_if_eq SlateportCity_ContestHall_EventScript_155595
msgbox SlateportCity_ContestHall_Text_17CCE2, 4
- giveitem ITEM_TM41
+ giveitem_std ITEM_TM41
compare RESULT, 0
goto_if_eq SlateportCity_ContestHall_EventScript_1A029B
- setflag 265
+ setflag FLAG_RECEIVED_TM41
msgbox SlateportCity_ContestHall_Text_17CE28, 4
release
end
diff --git a/data/scripts/maps/SlateportCity_ContestLobby.inc b/data/scripts/maps/SlateportCity_ContestLobby.inc
index 85a8fe40e..c4a44d9c9 100644
--- a/data/scripts/maps/SlateportCity_ContestLobby.inc
+++ b/data/scripts/maps/SlateportCity_ContestLobby.inc
@@ -23,14 +23,14 @@ SlateportCity_ContestLobby_EventScript_155448:: @ 8155448
applymovement 1, SlateportCity_ContestLobby_Movement_1554CC
waitmovement 0
playse 71
- setmaptile 4, 2, 545, 1
- setmaptile 4, 3, 609, 1
+ setmetatile 4, 2, 545, 1
+ setmetatile 4, 3, 609, 1
special DrawWholeMapView
applymovement 1, SlateportCity_ContestLobby_Movement_1554CF
waitmovement 0
playse 71
- setmaptile 4, 2, 721, 1
- setmaptile 4, 3, 729, 1
+ setmetatile 4, 2, 721, 1
+ setmetatile 4, 3, 729, 1
special DrawWholeMapView
delay 20
applymovement 1, SlateportCity_ContestLobby_Movement_1554DC
@@ -101,13 +101,13 @@ SlateportCity_ContestLobby_EventScript_1554F0:: @ 81554F0
SlateportCity_ContestLobby_EventScript_1554F9:: @ 81554F9
lockall
- checkflag 95
+ checkflag FLAG_RECEIVED_POKEBLOCK_CASE
goto_if_eq SlateportCity_ContestLobby_EventScript_155526
applymovement 7, SlateportCity_ContestLobby_Movement_1A0839
waitmovement 0
msgbox SlateportCity_ContestLobby_Text_17CA67, 4
- giveitem ITEM_POKEBLOCK_CASE
- setflag 95
+ giveitem_std ITEM_POKEBLOCK_CASE
+ setflag FLAG_RECEIVED_POKEBLOCK_CASE
releaseall
end
@@ -129,7 +129,7 @@ SlateportCity_ContestLobby_EventScript_155536:: @ 8155536
@ 815553F
lockall
special ShowBerryBlenderRecordWindow
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
diff --git a/data/scripts/maps/SlateportCity_Harbor.inc b/data/scripts/maps/SlateportCity_Harbor.inc
index 34d927753..304013b08 100644
--- a/data/scripts/maps/SlateportCity_Harbor.inc
+++ b/data/scripts/maps/SlateportCity_Harbor.inc
@@ -7,19 +7,19 @@ SlateportCity_Harbor_MapScript1_155F63:: @ 8155F63
setvar 0x4001, 0
compare 0x40a0, 1
call_if 1, SlateportCity_Harbor_EventScript_155F89
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
call_if 1, SlateportCity_Harbor_EventScript_155F85
end
SlateportCity_Harbor_EventScript_155F85:: @ 8155F85
- clearflag 860
+ 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 905
+ setflag FLAG_HIDE_WORKERS_SLATEPORT_HARBOR
return
SlateportCity_Harbor_EventScript_155F9B:: @ 8155F9B
@@ -73,8 +73,8 @@ SlateportCity_Harbor_EventScript_155FD5:: @ 8155FD5
call_if 1, SlateportCity_Harbor_EventScript_156086
msgbox SlateportCity_Harbor_Text_17FE60, 4
closemessage
- setflag 821
- setflag 822
+ setflag FLAG_HIDE_GRUNT_1_BLOCKING_HIDEOUT
+ setflag FLAG_HIDE_GRUNT_2_BLOCKING_HIDEOUT
moveobjectoffscreen 4
setobjectmovementtype 4, 10
releaseall
@@ -159,7 +159,7 @@ SlateportCity_Harbor_Movement_1560C2:: @ 81560C2
SlateportCity_Harbor_EventScript_1560C4:: @ 81560C4
lock
faceplayer
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq SlateportCity_Harbor_EventScript_1560D9
msgbox SlateportCity_Harbor_Text_17FA0A, 4
release
@@ -222,13 +222,13 @@ SlateportCity_Harbor_EventScript_156196:: @ 8156196
applymovement LAST_TALKED, SlateportCity_Harbor_Movement_1A0841
waitmovement 0
delay 30
- hideobject LAST_TALKED, 9, 8
+ hideobjectat LAST_TALKED, MAP_SLATEPORT_CITY_HARBOR
compare FACING, 2
call_if 1, SlateportCity_Harbor_EventScript_1561EF
compare FACING, 4
call_if 1, SlateportCity_Harbor_EventScript_1561E4
delay 30
- hideobject 255, 0, 0
+ hideobjectat 255, MAP_PETALBURG_CITY
setvar 0x8004, 5
call SlateportCity_Harbor_EventScript_1A040E
return
@@ -268,11 +268,11 @@ SlateportCity_Harbor_EventScript_156208:: @ 8156208
SlateportCity_Harbor_EventScript_156211:: @ 8156211
lock
faceplayer
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
goto_if_eq SlateportCity_Harbor_EventScript_15626F
- checkflag 271
+ checkflag FLAG_EVIL_TEAM_ESCAPED_STERN_SPOKE
goto_if_eq SlateportCity_Harbor_EventScript_156265
- checkflag 112
+ checkflag FLAG_EVIL_TEAM_ESCAPED_IN_SUBMARINE
goto_if_eq SlateportCity_Harbor_EventScript_156258
compare 0x40a0, 2
goto_if_eq SlateportCity_Harbor_EventScript_15624E
@@ -289,7 +289,7 @@ SlateportCity_Harbor_EventScript_15624E:: @ 815624E
end
SlateportCity_Harbor_EventScript_156258:: @ 8156258
- setflag 271
+ setflag FLAG_EVIL_TEAM_ESCAPED_STERN_SPOKE
msgbox SlateportCity_Harbor_Text_17FF35, 4
release
end
@@ -305,7 +305,7 @@ SlateportCity_Harbor_EventScript_15626F:: @ 815626F
checkitem ITEM_SCANNER, 1
compare RESULT, 1
goto_if_eq SlateportCity_Harbor_EventScript_1562A7
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq SlateportCity_Harbor_EventScript_15629D
msgbox SlateportCity_Harbor_Text_18017B, 4
release
@@ -335,12 +335,12 @@ SlateportCity_Harbor_EventScript_1562EA:: @ 81562EA
msgbox SlateportCity_Harbor_Text_1803DD, 5
compare RESULT, 0
goto_if_eq SlateportCity_Harbor_EventScript_156374
- giveitem ITEM_DEEP_SEA_TOOTH
+ giveitem_std ITEM_DEEP_SEA_TOOTH
compare RESULT, 0
goto_if_eq SlateportCity_Harbor_EventScript_1A029B
- removeitem ITEM_SCANNER, 1
+ takeitem ITEM_SCANNER, 1
msgbox SlateportCity_Harbor_Text_18046B, 4
- setflag 294
+ setflag FLAG_EXCHANGED_SCANNER
goto SlateportCity_Harbor_EventScript_156380
end
@@ -348,12 +348,12 @@ SlateportCity_Harbor_EventScript_15632A:: @ 815632A
msgbox SlateportCity_Harbor_Text_180412, 5
compare RESULT, 0
goto_if_eq SlateportCity_Harbor_EventScript_156374
- giveitem ITEM_DEEP_SEA_SCALE
+ giveitem_std ITEM_DEEP_SEA_SCALE
compare RESULT, 0
goto_if_eq SlateportCity_Harbor_EventScript_1A029B
- removeitem ITEM_SCANNER, 1
+ takeitem ITEM_SCANNER, 1
msgbox SlateportCity_Harbor_Text_18046B, 4
- setflag 294
+ setflag FLAG_EXCHANGED_SCANNER
goto SlateportCity_Harbor_EventScript_156380
end
diff --git a/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc b/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc
index 1ee8ff39b..9e002e61e 100644
--- a/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc
+++ b/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc
@@ -57,7 +57,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_155B2D:: @ 8155B2D
end
SlateportCity_OceanicMuseum_1F_EventScript_155B5A:: @ 8155B5A
- checkflag 149
+ checkflag FLAG_DELIVERED_DEVON_GOODS
goto_if 0, SlateportCity_OceanicMuseum_1F_EventScript_155B7B
msgbox SlateportCity_OceanicMuseum_1F_Text_17E1F5, 4
closemessage
@@ -164,10 +164,10 @@ SlateportCity_OceanicMuseum_1F_EventScript_155C3A:: @ 8155C3A
applymovement 13, SlateportCity_OceanicMuseum_1F_Movement_1A0835
waitmovement 0
msgbox SlateportCity_OceanicMuseum_1F_Text_17E582, 4
- giveitem ITEM_TM46
+ giveitem_std ITEM_TM46
compare RESULT, 0
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_155CC2
- setflag 269
+ setflag FLAG_RECEIVED_TM46
msgbox SlateportCity_OceanicMuseum_1F_Text_17E606, 4
closemessage
compare FACING, 2
@@ -179,7 +179,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_155C3A:: @ 8155C3A
SlateportCity_OceanicMuseum_1F_EventScript_155C98:: @ 8155C98
applymovement 13, SlateportCity_OceanicMuseum_1F_Movement_155CD3
waitmovement 0
- setflag 965
+ setflag FLAG_HIDE_SCARED_GRUNT_OCEANIC_MUSEUM
playse 9
removeobject 13
release
@@ -188,7 +188,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_155C98:: @ 8155C98
SlateportCity_OceanicMuseum_1F_EventScript_155CAD:: @ 8155CAD
applymovement 13, SlateportCity_OceanicMuseum_1F_Movement_155CCC
waitmovement 0
- setflag 965
+ setflag FLAG_HIDE_SCARED_GRUNT_OCEANIC_MUSEUM
playse 9
removeobject 13
release
diff --git a/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc b/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc
index e379c633d..7fcd0fff1 100644
--- a/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc
+++ b/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc
@@ -74,7 +74,7 @@ SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
removeobject 4
fadescreen 0
delay 30
- setflag 883
+ setflag FLAG_HIDE_EVIL_TEAM_OCEANIC_MUSEUM
applymovement 255, SlateportCity_OceanicMuseum_2F_Movement_1A0843
waitmovement 0
msgbox SlateportCity_OceanicMuseum_2F_Text_17F352, 4
@@ -86,10 +86,10 @@ SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
waitmovement 0
playse 9
removeobject 1
- setflag 900
- setflag 149
- clearflag 947
- setflag 949
+ 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
diff --git a/data/scripts/maps/SlateportCity_PokemonCenter_1F.inc b/data/scripts/maps/SlateportCity_PokemonCenter_1F.inc
index 9aa326f70..ac4e8f240 100644
--- a/data/scripts/maps/SlateportCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/SlateportCity_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ SlateportCity_PokemonCenter_1F_MapScripts:: @ 81563BF
.byte 0
SlateportCity_PokemonCenter_1F_MapScript1_1563C5:: @ 81563C5
- sethealplace 4
+ setrespawn 4
call SlateportCity_PokemonCenter_1F_EventScript_19FD1B
end
@@ -11,7 +11,7 @@ SlateportCity_PokemonCenter_1F_EventScript_1563CE:: @ 81563CE
setvar 0x800b, 1
call SlateportCity_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/SlateportCity_PokemonFanClub.inc b/data/scripts/maps/SlateportCity_PokemonFanClub.inc
index 4195ad43a..593e18fee 100644
--- a/data/scripts/maps/SlateportCity_PokemonFanClub.inc
+++ b/data/scripts/maps/SlateportCity_PokemonFanClub.inc
@@ -23,15 +23,15 @@ SlateportCity_PokemonFanClub_EventScript_155795:: @ 8155795
SlateportCity_PokemonFanClub_EventScript_1557A8:: @ 81557A8
setvar 0x4002, 0
- checkflag 204
+ checkflag FLAG_RECEIVED_YELLOW_SCARF
call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
- checkflag 203
+ checkflag FLAG_RECEIVED_GREEN_SCARF
call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
- checkflag 202
+ checkflag FLAG_RECEIVED_PINK_SCARF
call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
- checkflag 201
+ checkflag FLAG_RECEIVED_BLUE_SCARF
call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
- checkflag 200
+ checkflag FLAG_RECEIVED_RED_SCARF
call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
compare 0x4002, 5
call_if 1, SlateportCity_PokemonFanClub_EventScript_15588D
@@ -49,17 +49,17 @@ SlateportCity_PokemonFanClub_EventScript_1557FE:: @ 81557FE
SlateportCity_PokemonFanClub_EventScript_155808:: @ 8155808
msgbox SlateportCity_PokemonFanClub_Text_17DA49, 4
setvar 0x4001, 0
- checkflag 204
+ checkflag FLAG_RECEIVED_YELLOW_SCARF
call_if 0, SlateportCity_PokemonFanClub_EventScript_1559FE
- checkflag 203
+ checkflag FLAG_RECEIVED_GREEN_SCARF
call_if 0, SlateportCity_PokemonFanClub_EventScript_1559E7
- checkflag 202
+ checkflag FLAG_RECEIVED_PINK_SCARF
call_if 0, SlateportCity_PokemonFanClub_EventScript_1559D0
- checkflag 201
+ checkflag FLAG_RECEIVED_BLUE_SCARF
call_if 0, SlateportCity_PokemonFanClub_EventScript_1559B9
- checkflag 200
+ checkflag FLAG_RECEIVED_RED_SCARF
call_if 0, SlateportCity_PokemonFanClub_EventScript_1559A2
- getfirstpartypokename 0
+ bufferleadmonspeciesname 0
switch 0x4001
case 0, SlateportCity_PokemonFanClub_EventScript_155899
case 1, SlateportCity_PokemonFanClub_EventScript_1558A3
@@ -88,8 +88,8 @@ SlateportCity_PokemonFanClub_EventScript_1558A3:: @ 81558A3
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 200
- giveitem ITEM_RED_SCARF
+ setflag FLAG_RECEIVED_RED_SCARF
+ giveitem_std ITEM_RED_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DC1B, 4
release
end
@@ -99,8 +99,8 @@ SlateportCity_PokemonFanClub_EventScript_1558D4:: @ 81558D4
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 201
- giveitem ITEM_BLUE_SCARF
+ setflag FLAG_RECEIVED_BLUE_SCARF
+ giveitem_std ITEM_BLUE_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DC74, 4
release
end
@@ -110,8 +110,8 @@ SlateportCity_PokemonFanClub_EventScript_155905:: @ 8155905
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 202
- giveitem ITEM_PINK_SCARF
+ setflag FLAG_RECEIVED_PINK_SCARF
+ giveitem_std ITEM_PINK_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DCCB, 4
release
end
@@ -121,8 +121,8 @@ SlateportCity_PokemonFanClub_EventScript_155936:: @ 8155936
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 203
- giveitem ITEM_GREEN_SCARF
+ setflag FLAG_RECEIVED_GREEN_SCARF
+ giveitem_std ITEM_GREEN_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DD27, 4
release
end
@@ -132,8 +132,8 @@ SlateportCity_PokemonFanClub_EventScript_155967:: @ 8155967
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 204
- giveitem ITEM_YELLOW_SCARF
+ setflag FLAG_RECEIVED_YELLOW_SCARF
+ giveitem_std ITEM_YELLOW_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DD78, 4
release
end
@@ -196,7 +196,7 @@ SlateportCity_PokemonFanClub_EventScript_155A0F:: @ 8155A0F
SlateportCity_PokemonFanClub_EventScript_155A15:: @ 8155A15
lock
faceplayer
- checkflag 278
+ checkflag FLAG_RECEIVED_SOOTHE_BELL
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155A75
msgbox SlateportCity_PokemonFanClub_Text_17DE6B, 4
specialvar RESULT, GetLeadMonFriendshipScore
@@ -212,10 +212,10 @@ SlateportCity_PokemonFanClub_EventScript_155A3A:: @ 8155A3A
applymovement LAST_TALKED, SlateportCity_PokemonFanClub_Movement_1A0835
waitmovement 0
msgbox SlateportCity_PokemonFanClub_Text_17DF57, 4
- giveitem ITEM_SOOTHE_BELL
+ giveitem_std ITEM_SOOTHE_BELL
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1A029B
- setflag 278
+ setflag FLAG_RECEIVED_SOOTHE_BELL
release
end
@@ -236,9 +236,9 @@ SlateportCity_PokemonFanClub_EventScript_155A91:: @ 8155A91
lock
faceplayer
waitse
- playpokecry SPECIES_SKITTY, 0
+ playmoncry SPECIES_SKITTY, 0
msgbox SlateportCity_PokemonFanClub_Text_17E14E, 4
- waitpokecry
+ waitmoncry
release
end
@@ -246,9 +246,9 @@ SlateportCity_PokemonFanClub_EventScript_155AA4:: @ 8155AA4
lock
faceplayer
waitse
- playpokecry SPECIES_ZIGZAGOON, 0
+ playmoncry SPECIES_ZIGZAGOON, 0
msgbox SlateportCity_PokemonFanClub_Text_17E164, 4
- waitpokecry
+ waitmoncry
release
end
@@ -256,8 +256,8 @@ SlateportCity_PokemonFanClub_EventScript_155AB7:: @ 8155AB7
lock
faceplayer
waitse
- playpokecry SPECIES_AZUMARILL, 0
+ playmoncry SPECIES_AZUMARILL, 0
msgbox SlateportCity_PokemonFanClub_Text_17E178, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/SlateportCity_SternsShipyard_1F.inc b/data/scripts/maps/SlateportCity_SternsShipyard_1F.inc
index 9fe7f1f1a..46dc8419c 100644
--- a/data/scripts/maps/SlateportCity_SternsShipyard_1F.inc
+++ b/data/scripts/maps/SlateportCity_SternsShipyard_1F.inc
@@ -3,13 +3,13 @@ SlateportCity_SternsShipyard_1F_MapScripts:: @ 8155335
SlateportCity_SternsShipyard_1F_EventScript_155336:: @ 8155336
lockall
- checkflag 2052
+ checkflag FLAG_SYS_GAME_CLEAR
goto_if_eq SlateportCity_SternsShipyard_1F_EventScript_155388
- checkflag 2061
+ checkflag FLAG_BADGE07_GET
goto_if_eq SlateportCity_SternsShipyard_1F_EventScript_15539C
- checkflag 149
+ checkflag FLAG_DELIVERED_DEVON_GOODS
goto_if_eq SlateportCity_SternsShipyard_1F_EventScript_1553CF
- checkflag 148
+ checkflag FLAG_DOCK_REJECTED_DEVON_GOODS
goto_if_eq SlateportCity_SternsShipyard_1F_EventScript_1553B0
msgbox SlateportCity_SternsShipyard_1F_Text_17C14B, 4
applymovement 1, SlateportCity_SternsShipyard_1F_Movement_1A0839
@@ -18,8 +18,8 @@ SlateportCity_SternsShipyard_1F_EventScript_155336:: @ 8155336
closemessage
applymovement 1, SlateportCity_SternsShipyard_1F_Movement_1A083D
waitmovement 0
- setflag 148
- setflag 882
+ setflag FLAG_DOCK_REJECTED_DEVON_GOODS
+ setflag FLAG_HIDE_EVIL_TEAM_SLATEPORT
releaseall
end
diff --git a/data/scripts/maps/SootopolisCity.inc b/data/scripts/maps/SootopolisCity.inc
index 994e33197..f4842bd40 100644
--- a/data/scripts/maps/SootopolisCity.inc
+++ b/data/scripts/maps/SootopolisCity.inc
@@ -5,39 +5,39 @@ SootopolisCity_MapScripts:: @ 814D07D
.byte 0
SootopolisCity_MapScript1_14D08D:: @ 814D08D
- checkflag 129
+ checkflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
call_if 0, SootopolisCity_EventScript_14D0A0
- checkflag 129
+ checkflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
call_if 1, SootopolisCity_EventScript_14D0B1
end
SootopolisCity_EventScript_14D0A0:: @ 814D0A0
setobjectxyperm 3, 31, 18
- setmaptile 31, 32, 592, 1
+ setmetatile 31, 32, 592, 1
return
SootopolisCity_EventScript_14D0B1:: @ 814D0B1
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
call_if 0, SootopolisCity_EventScript_14D0BB
return
SootopolisCity_EventScript_14D0BB:: @ 814D0BB
- setmaptile 9, 6, 584, 1
- setmaptile 9, 17, 584, 1
- setmaptile 9, 26, 584, 1
- setmaptile 44, 17, 584, 1
- setmaptile 8, 35, 584, 1
- setmaptile 53, 28, 584, 1
- setmaptile 45, 6, 584, 1
- setmaptile 48, 25, 584, 1
- setmaptile 31, 32, 592, 1
+ 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 2077
- checkflag 113
+ setflag FLAG_VISITED_SOOTOPOLIS_CITY
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
call_if 1, SootopolisCity_EventScript_14D159
- checkflag 2090
+ checkflag FLAG_SYS_WEATHER_CTRL
call_if 1, SootopolisCity_EventScript_14D123
end
@@ -68,7 +68,7 @@ SootopolisCity_MapScript1_14D165:: @ 814D165
SootopolisCity_EventScript_14D16E:: @ 814D16E
lock
faceplayer
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq SootopolisCity_EventScript_14D183
msgbox SootopolisCity_Text_1696A4, 4
release
@@ -92,16 +92,16 @@ SootopolisCity_EventScript_14D19F:: @ 814D19F
faceplayer
dodailyevents
special GetPlayerBigGuyGirlString
- checkflag 2258
+ checkflag FLAG_DAILY_RECEIVED_BERRY_SOOTOPOLIS
goto_if_eq SootopolisCity_EventScript_14D241
msgbox SootopolisCity_Text_1C63F2, 4
random 10
addvar RESULT, 20
- addvar RESULT, 133
- giveitem RESULT
+ addvar RESULT, ITEM_CHERI_BERRY
+ giveitem_std RESULT
compare RESULT, 0
goto_if_eq SootopolisCity_EventScript_1A029B
- setflag 2258
+ setflag FLAG_DAILY_RECEIVED_BERRY_SOOTOPOLIS
msgbox SootopolisCity_Text_1C64D0, 4
random 2
compare RESULT, 0
@@ -111,7 +111,7 @@ SootopolisCity_EventScript_14D19F:: @ 814D19F
end
SootopolisCity_EventScript_14D1FF:: @ 814D1FF
- giveitem ITEM_FIGY_BERRY
+ giveitem_std ITEM_FIGY_BERRY
compare RESULT, 0
goto_if_eq SootopolisCity_EventScript_1A029B
msgbox SootopolisCity_Text_1C650B, 4
@@ -119,7 +119,7 @@ SootopolisCity_EventScript_14D1FF:: @ 814D1FF
end
SootopolisCity_EventScript_14D220:: @ 814D220
- giveitem ITEM_IAPAPA_BERRY
+ giveitem_std ITEM_IAPAPA_BERRY
compare RESULT, 0
goto_if_eq SootopolisCity_EventScript_1A029B
msgbox SootopolisCity_Text_1C650B, 4
@@ -142,7 +142,7 @@ SootopolisCity_EventScript_14D25E:: @ 814D25E
SootopolisCity_EventScript_14D268:: @ 814D268
lock
faceplayer
- checkflag 1236
+ checkflag FLAG_DEFEATED_SOOTOPOLIS_GYM
goto_if_eq SootopolisCity_EventScript_14D27D
msgbox SootopolisCity_Text_16A4D6, 4
release
@@ -156,7 +156,7 @@ SootopolisCity_EventScript_14D27D:: @ 814D27D
SootopolisCity_EventScript_14D287:: @ 814D287
lock
faceplayer
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq SootopolisCity_EventScript_14D29C
msgbox SootopolisCity_Text_169813, 4
release
@@ -170,7 +170,7 @@ SootopolisCity_EventScript_14D29C:: @ 814D29C
SootopolisCity_EventScript_14D2A6:: @ 814D2A6
lock
faceplayer
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq SootopolisCity_EventScript_14D2BB
msgbox SootopolisCity_Text_1698A0, 4
release
@@ -184,7 +184,7 @@ SootopolisCity_EventScript_14D2BB:: @ 814D2BB
SootopolisCity_EventScript_14D2C5:: @ 814D2C5
lock
faceplayer
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq SootopolisCity_EventScript_14D2DA
msgbox SootopolisCity_Text_1697A7, 4
release
@@ -445,7 +445,7 @@ SootopolisCity_EventScript_14D48F:: @ 814D48F
SootopolisCity_EventScript_14D498:: @ 814D498
lock
faceplayer
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq SootopolisCity_EventScript_14D4AD
.ifdef SAPPHIRE
msgbox SootopolisCity_Text_169DA6, 4
@@ -461,7 +461,7 @@ SootopolisCity_EventScript_14D4AD:: @ 814D4AD
applymovement LAST_TALKED, SootopolisCity_Movement_1A0845
waitmovement 0
delay 50
- setfieldeffect 0, 1
+ setfieldeffectargument 0, 1
dofieldeffect 30
delay 15
removeobject LAST_TALKED
diff --git a/data/scripts/maps/SootopolisCity_Gym_1F.inc b/data/scripts/maps/SootopolisCity_Gym_1F.inc
index 29b62402f..65ed13d87 100644
--- a/data/scripts/maps/SootopolisCity_Gym_1F.inc
+++ b/data/scripts/maps/SootopolisCity_Gym_1F.inc
@@ -10,7 +10,7 @@ SootopolisCity_Gym_1F_MapScript1_15AF1C:: @ 815AF1C
end
SootopolisCity_Gym_1F_MapScript1_15AF22:: @ 815AF22
- tileeffect 4
+ setstepcallback 4
end
SootopolisCity_Gym_1F_MapScript1_15AF25:: @ 815AF25
@@ -25,16 +25,16 @@ SootopolisCity_Gym_1F_EventScript_15AF2E:: @ 815AF2E
goto_if 0, SootopolisCity_Gym_1F_EventScript_15AF73
compare 0x4022, 69
goto_if 0, SootopolisCity_Gym_1F_EventScript_15AF61
- setmaptile 8, 4, 519, 0
- setmaptile 8, 5, 519, 0
+ setmetatile 8, 4, 519, 0
+ setmetatile 8, 5, 519, 0
SootopolisCity_Gym_1F_EventScript_15AF61:: @ 815AF61
- setmaptile 8, 10, 519, 0
- setmaptile 8, 11, 519, 0
+ setmetatile 8, 10, 519, 0
+ setmetatile 8, 11, 519, 0
SootopolisCity_Gym_1F_EventScript_15AF73:: @ 815AF73
- setmaptile 8, 15, 519, 0
- setmaptile 8, 16, 519, 0
+ setmetatile 8, 15, 519, 0
+ setmetatile 8, 16, 519, 0
SootopolisCity_Gym_1F_EventScript_15AF85:: @ 815AF85
return
@@ -87,9 +87,9 @@ SootopolisCity_Gym_1F_Movement_15AFFD:: @ 815AFFD
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
- checkflag 172
+ checkflag FLAG_RECEIVED_TM03
goto_if 0, SootopolisCity_Gym_1F_EventScript_15B056
- checkflag 2060
+ checkflag FLAG_BADGE06_GET
goto_if 0, SootopolisCity_Gym_1F_EventScript_15B07A
msgbox SootopolisCity_Gym_1F_Text_18F4D7, 4
release
@@ -100,19 +100,19 @@ SootopolisCity_Gym_1F_EventScript_15B02D:: @ 815B02D
waitmessage
call SootopolisCity_Gym_1F_EventScript_1A02C5
msgbox SootopolisCity_Gym_1F_Text_18F36B, 4
- setflag 1236
- setflag 2062
+ setflag FLAG_DEFEATED_SOOTOPOLIS_GYM
+ setflag FLAG_BADGE08_GET
setvar 0x8008, 8
call SootopolisCity_Gym_1F_EventScript_1A01C0
goto SootopolisCity_Gym_1F_EventScript_15B056
end
SootopolisCity_Gym_1F_EventScript_15B056:: @ 815B056
- giveitem ITEM_TM03
+ giveitem_std ITEM_TM03
compare RESULT, 0
goto_if_eq SootopolisCity_Gym_1F_EventScript_1A029B
msgbox SootopolisCity_Gym_1F_Text_18F466, 4
- setflag 172
+ setflag FLAG_RECEIVED_TM03
release
end
@@ -124,7 +124,7 @@ SootopolisCity_Gym_1F_EventScript_15B07A:: @ 815B07A
SootopolisCity_Gym_1F_EventScript_15B084:: @ 815B084
lock
faceplayer
- checkflag 1236
+ checkflag FLAG_DEFEATED_SOOTOPOLIS_GYM
goto_if_eq SootopolisCity_Gym_1F_EventScript_15B099
msgbox SootopolisCity_Gym_1F_Text_18E8A5, 4
release
@@ -137,14 +137,14 @@ SootopolisCity_Gym_1F_EventScript_15B099:: @ 815B099
SootopolisCity_Gym_1F_EventScript_15B0A3:: @ 815B0A3
lockall
- checkflag 2062
+ checkflag FLAG_BADGE08_GET
goto_if_eq SootopolisCity_Gym_1F_EventScript_15B0C3
goto SootopolisCity_Gym_1F_EventScript_15B0CD
end
SootopolisCity_Gym_1F_EventScript_15B0B3:: @ 815B0B3
lockall
- checkflag 2062
+ checkflag FLAG_BADGE08_GET
goto_if_eq SootopolisCity_Gym_1F_EventScript_15B0C3
goto SootopolisCity_Gym_1F_EventScript_15B0CD
end
diff --git a/data/scripts/maps/SootopolisCity_House1.inc b/data/scripts/maps/SootopolisCity_House1.inc
index 4877d6d6e..074c9a179 100644
--- a/data/scripts/maps/SootopolisCity_House1.inc
+++ b/data/scripts/maps/SootopolisCity_House1.inc
@@ -4,11 +4,11 @@ SootopolisCity_House1_MapScripts:: @ 815B29A
SootopolisCity_House1_EventScript_15B29B:: @ 815B29B
lock
faceplayer
- checkflag 121
+ checkflag FLAG_RECEIVED_TM31
goto_if_eq SootopolisCity_House1_EventScript_15B2C7
msgbox SootopolisCity_House1_Text_18F991, 4
- giveitem ITEM_TM31
- setflag 121
+ giveitem_std ITEM_TM31
+ setflag FLAG_RECEIVED_TM31
msgbox SootopolisCity_House1_Text_18FA03, 4
release
end
@@ -22,8 +22,8 @@ SootopolisCity_House1_EventScript_15B2D1:: @ 815B2D1
lock
faceplayer
waitse
- playpokecry SPECIES_KECLEON, 0
+ playmoncry SPECIES_KECLEON, 0
msgbox SootopolisCity_House1_Text_18FA50, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/SootopolisCity_House4.inc b/data/scripts/maps/SootopolisCity_House4.inc
index c192a0340..b552cc6d6 100644
--- a/data/scripts/maps/SootopolisCity_House4.inc
+++ b/data/scripts/maps/SootopolisCity_House4.inc
@@ -13,8 +13,8 @@ SootopolisCity_House4_EventScript_15B35F:: @ 815B35F
lock
faceplayer
waitse
- playpokecry SPECIES_AZUMARILL, 0
+ playmoncry SPECIES_AZUMARILL, 0
msgbox SootopolisCity_House4_Text_18FDD8, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/SootopolisCity_House6.inc b/data/scripts/maps/SootopolisCity_House6.inc
index a0fdc5ca4..fb91202f3 100644
--- a/data/scripts/maps/SootopolisCity_House6.inc
+++ b/data/scripts/maps/SootopolisCity_House6.inc
@@ -4,16 +4,16 @@ SootopolisCity_House6_MapScripts:: @ 815B385
SootopolisCity_House6_EventScript_15B386:: @ 815B386
lock
faceplayer
- checkflag 245
+ checkflag FLAG_RECEIVED_WAILMER_DOLL
goto_if_eq SootopolisCity_House6_EventScript_15B3CD
msgbox SootopolisCity_House6_Text_18FEA1, 5
compare RESULT, 0
call_if 1, SootopolisCity_House6_EventScript_15B3C3
msgbox SootopolisCity_House6_Text_18FF12, 4
- givedecoration 117
+ givedecoration_std DECOR_WAILMER_DOLL
compare RESULT, 0
goto_if_eq SootopolisCity_House6_EventScript_15B3D7
- setflag 245
+ setflag FLAG_RECEIVED_WAILMER_DOLL
release
end
@@ -28,7 +28,7 @@ SootopolisCity_House6_EventScript_15B3CD:: @ 815B3CD
end
SootopolisCity_House6_EventScript_15B3D7:: @ 815B3D7
- getdecorname 1, 117
+ bufferdecorationname 1, DECOR_WAILMER_DOLL
msgbox SootopolisCity_House6_Text_1A0CEF, 4
msgbox SootopolisCity_House6_Text_18FF28, 4
release
diff --git a/data/scripts/maps/SootopolisCity_House8.inc b/data/scripts/maps/SootopolisCity_House8.inc
index df536004e..bdff79375 100644
--- a/data/scripts/maps/SootopolisCity_House8.inc
+++ b/data/scripts/maps/SootopolisCity_House8.inc
@@ -38,7 +38,7 @@ SootopolisCity_House8_EventScript_15B45C:: @ 815B45C
SootopolisCity_House8_EventScript_15B466:: @ 815B466
msgbox SootopolisCity_House8_Text_19021D, 4
- giveitem ITEM_ELIXIR
+ giveitem_std ITEM_ELIXIR
compare RESULT, 0
goto_if_eq SootopolisCity_House8_EventScript_15B488
closemessage
@@ -87,7 +87,7 @@ SootopolisCity_House8_EventScript_15B4ED:: @ 815B4ED
SootopolisCity_House8_EventScript_15B4F7:: @ 815B4F7
msgbox SootopolisCity_House8_Text_190536, 4
- giveitem ITEM_ELIXIR
+ giveitem_std ITEM_ELIXIR
compare RESULT, 0
goto_if_eq SootopolisCity_House8_EventScript_15B519
closemessage
diff --git a/data/scripts/maps/SootopolisCity_Mart.inc b/data/scripts/maps/SootopolisCity_Mart.inc
index b88347002..115ed0453 100644
--- a/data/scripts/maps/SootopolisCity_Mart.inc
+++ b/data/scripts/maps/SootopolisCity_Mart.inc
@@ -29,9 +29,9 @@ SootopolisCity_Mart_Items:: @ 815B234
SootopolisCity_Mart_EventScript_15B24A:: @ 815B24A
lock
faceplayer
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq SootopolisCity_Mart_EventScript_15B268
- checkflag 129
+ checkflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
goto_if 0, SootopolisCity_Mart_EventScript_15B268
msgbox SootopolisCity_Mart_Text_18F8D7, 4
release
@@ -45,9 +45,9 @@ SootopolisCity_Mart_EventScript_15B268:: @ 815B268
SootopolisCity_Mart_EventScript_15B272:: @ 815B272
lock
faceplayer
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq SootopolisCity_Mart_EventScript_15B290
- checkflag 129
+ checkflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
goto_if 0, SootopolisCity_Mart_EventScript_15B290
msgbox SootopolisCity_Mart_Text_18F96B, 4
release
diff --git a/data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc b/data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc
index cb09d8856..7b87bc7fc 100644
--- a/data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc
@@ -3,23 +3,23 @@ SootopolisCity_PokemonCenter_1F_MapScripts:: @ 815B190
.byte 0
SootopolisCity_PokemonCenter_1F_MapScript1_15B196:: @ 815B196
- sethealplace 10
+ setrespawn 10
end
@ 815B19A
setvar 0x800B, 1
call VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
SootopolisCity_PokemonCenter_1F_EventScript_15B1A8:: @ 815B1A8
lock
faceplayer
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq SootopolisCity_PokemonCenter_1F_EventScript_15B1C6
- checkflag 129
+ checkflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
goto_if 0, SootopolisCity_PokemonCenter_1F_EventScript_15B1C6
msgbox SootopolisCity_PokemonCenter_1F_Text_18F770, 4
release
@@ -33,9 +33,9 @@ SootopolisCity_PokemonCenter_1F_EventScript_15B1C6:: @ 815B1C6
SootopolisCity_PokemonCenter_1F_EventScript_15B1D0:: @ 815B1D0
lock
faceplayer
- checkflag 113
+ checkflag FLAG_LEGENDARY_BATTLE_COMPLETED
goto_if_eq SootopolisCity_PokemonCenter_1F_EventScript_15B1EE
- checkflag 129
+ checkflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
goto_if 0, SootopolisCity_PokemonCenter_1F_EventScript_15B1EE
msgbox SootopolisCity_PokemonCenter_1F_Text_18F860, 4
release
diff --git a/data/scripts/maps/SouthernIsland_Exterior.inc b/data/scripts/maps/SouthernIsland_Exterior.inc
index 4ee0d0ec3..f62becf08 100644
--- a/data/scripts/maps/SouthernIsland_Exterior.inc
+++ b/data/scripts/maps/SouthernIsland_Exterior.inc
@@ -3,7 +3,7 @@ SouthernIsland_Exterior_MapScripts:: @ 8160AD6
.byte 0
SouthernIsland_Exterior_MapScript1_160ADC:: @ 8160ADC
- setflag 2121
+ setflag FLAG_LANDMARK_SOUTHERN_ISLAND
end
SouthernIsland_Exterior_EventScript_160AE0:: @ 8160AE0
@@ -17,7 +17,7 @@ SouthernIsland_Exterior_EventScript_160AE0:: @ 8160AE0
applymovement LAST_TALKED, SouthernIsland_Exterior_Movement_1A0845
waitmovement 0
delay 30
- hideobject 1, 26, 9
+ hideobjectat 1, MAP_SOUTHERN_ISLAND_EXTERIOR
setvar 0x8004, 2
call SouthernIsland_Exterior_EventScript_1A047C
warp MAP_LILYCOVE_CITY_HARBOR, 255, 8, 11
diff --git a/data/scripts/maps/SouthernIsland_Interior.inc b/data/scripts/maps/SouthernIsland_Interior.inc
index bcb316f96..ea2f852f4 100644
--- a/data/scripts/maps/SouthernIsland_Interior.inc
+++ b/data/scripts/maps/SouthernIsland_Interior.inc
@@ -4,7 +4,7 @@ SouthernIsland_Interior_MapScripts:: @ 8160B53
.byte 0
SouthernIsland_Interior_MapScript1_160B5E:: @ 8160B5E
- checkflag 2145
+ checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, SouthernIsland_Interior_EventScript_160B68
end
@@ -44,19 +44,19 @@ SouthernIsland_Interior_EventScript_160B9B:: @ 8160B9B
end
SouthernIsland_Interior_EventScript_160BA7:: @ 8160BA7
- checkflag 206
+ checkflag FLAG_ECOUNTERED_LATIAS_OR_LATIOS
goto_if_eq SouthernIsland_Interior_EventScript_160C08
- checkflag 2131
+ checkflag FLAG_SYS_HAS_EON_TICKET
goto_if 0, SouthernIsland_Interior_EventScript_160C08
- setflag 206
+ setflag FLAG_ECOUNTERED_LATIAS_OR_LATIOS
special SpawnCameraDummy
applymovement 127, SouthernIsland_Interior_Movement_160C12
waitmovement 0
delay 50
waitse
- playpokecry SPECIES_LATIAS_OR_LATIOS, 0
+ playmoncry SPECIES_LATIAS_OR_LATIOS, 0
delay 30
- waitpokecry
+ waitmoncry
addobject 2
delay 30
applymovement 127, SouthernIsland_Interior_Movement_160C16
@@ -65,11 +65,11 @@ SouthernIsland_Interior_EventScript_160BA7:: @ 8160BA7
delay 50
special RemoveCameraDummy
setwildbattle SPECIES_LATIAS_OR_LATIOS, 50, ITEM_SOUL_DEW
- setflag 911
- setflag 2145
+ setflag FLAG_HIDE_LATIOS_OR_LATIAS_STATIONARY
+ setflag FLAG_SYS_CTRL_OBJ_DELETE
special ScrSpecial_StartSouthernIslandBattle
waitstate
- clearflag 2145
+ clearflag FLAG_SYS_CTRL_OBJ_DELETE
releaseall
end
diff --git a/data/scripts/maps/Underwater_SeafloorCavern.inc b/data/scripts/maps/Underwater_SeafloorCavern.inc
index ce2de5124..d991a7096 100644
--- a/data/scripts/maps/Underwater_SeafloorCavern.inc
+++ b/data/scripts/maps/Underwater_SeafloorCavern.inc
@@ -5,33 +5,33 @@ Underwater_SeafloorCavern_MapScripts:: @ 815D99E
.byte 0
Underwater_SeafloorCavern_MapScript1_15D9AE:: @ 815D9AE
- setflag 2119
- checkflag 129
+ setflag FLAG_LANDMARK_SEAFLOOR_CAVERN
+ checkflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
goto_if_eq Underwater_SeafloorCavern_EventScript_15D9BB
end
Underwater_SeafloorCavern_EventScript_15D9BB:: @ 815D9BB
- setflag 980
+ setflag FLAG_HIDE_UNDERWATER_SUBMARINE_INTERACTION
end
Underwater_SeafloorCavern_MapScript1_15D9BF:: @ 815D9BF
- checkflag 129
+ checkflag FLAG_LEGEND_ESCAPED_SEAFLOOR_CAVERN
call_if 1, Underwater_SeafloorCavern_EventScript_15D9C9
end
Underwater_SeafloorCavern_EventScript_15D9C9:: @ 815D9C9
- setmaptile 5, 3, 542, 1
- setmaptile 6, 3, 542, 1
- setmaptile 7, 3, 542, 1
- setmaptile 8, 3, 542, 1
- setmaptile 5, 4, 552, 0
- setmaptile 6, 4, 552, 0
- setmaptile 7, 4, 552, 0
- setmaptile 8, 4, 552, 0
- setmaptile 5, 5, 552, 0
- setmaptile 6, 5, 552, 0
- setmaptile 7, 5, 552, 0
- setmaptile 8, 5, 552, 0
+ 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
diff --git a/data/scripts/maps/Underwater_SealedChamber.inc b/data/scripts/maps/Underwater_SealedChamber.inc
index 733a060c3..cb5c713ee 100644
--- a/data/scripts/maps/Underwater_SealedChamber.inc
+++ b/data/scripts/maps/Underwater_SealedChamber.inc
@@ -21,7 +21,7 @@ Underwater_SealedChamber_EventScript_15F0AF:: @ 815F0AF
Underwater_SealedChamber_EventScript_15F0B8:: @ 815F0B8
lockall
braillemessage Underwater_SealedChamber_Braille_1C533D
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
diff --git a/data/scripts/maps/UnknownMap_25_34.inc b/data/scripts/maps/UnknownMap_25_34.inc
index 213a3609a..1e0f14728 100644
--- a/data/scripts/maps/UnknownMap_25_34.inc
+++ b/data/scripts/maps/UnknownMap_25_34.inc
@@ -68,7 +68,7 @@ LinkContestRoom1_EventScript_15F61A:: @ 815F61A
end
LinkContestRoom1_EventScript_15F625:: @ 815F625
- hideobject 255, 0, 9
+ hideobjectat 255, MAP_LITTLEROOT_TOWN
call LinkContestRoom1_EventScript_15F919
end
diff --git a/data/scripts/maps/VerdanturfTown.inc b/data/scripts/maps/VerdanturfTown.inc
index 3e8f02302..b9e9b85a5 100644
--- a/data/scripts/maps/VerdanturfTown.inc
+++ b/data/scripts/maps/VerdanturfTown.inc
@@ -3,15 +3,15 @@ VerdanturfTown_MapScripts:: @ 814E854
.byte 0
VerdanturfTown_MapScript1_14E85A:: @ 814E85A
- setflag 2068
+ setflag FLAG_VISITED_VERDANTURF_TOWN
setvar 0x4086, 0
- setflag 801
+ setflag FLAG_HIDE_CONTEST_REPORTER_VERDANTURF
end
VerdanturfTown_EventScript_14E866:: @ 814E866
lock
faceplayer
- checkflag 199
+ checkflag FLAG_RUSTURF_TUNNEL_OPENED
goto_if_eq VerdanturfTown_EventScript_14E885
msgbox VerdanturfTown_Text_16CAEB, 4
applymovement 2, VerdanturfTown_Movement_1A083D
@@ -37,7 +37,7 @@ VerdanturfTown_EventScript_14E8A2:: @ 814E8A2
VerdanturfTown_EventScript_14E8AB:: @ 814E8AB
lock
faceplayer
- checkflag 199
+ checkflag FLAG_RUSTURF_TUNNEL_OPENED
goto_if_eq VerdanturfTown_EventScript_14E8C0
msgbox VerdanturfTown_Text_16CD4D, 4
release
diff --git a/data/scripts/maps/VerdanturfTown_ContestLobby.inc b/data/scripts/maps/VerdanturfTown_ContestLobby.inc
index 67554d26b..3694f089d 100644
--- a/data/scripts/maps/VerdanturfTown_ContestLobby.inc
+++ b/data/scripts/maps/VerdanturfTown_ContestLobby.inc
@@ -23,14 +23,14 @@ VerdanturfTown_ContestLobby_EventScript_153DA1:: @ 8153DA1
applymovement 1, VerdanturfTown_ContestLobby_Movement_153E25
waitmovement 0
playse 71
- setmaptile 4, 2, 545, 1
- setmaptile 4, 3, 609, 1
+ setmetatile 4, 2, 545, 1
+ setmetatile 4, 3, 609, 1
special DrawWholeMapView
applymovement 1, VerdanturfTown_ContestLobby_Movement_153E28
waitmovement 0
playse 71
- setmaptile 4, 2, 721, 1
- setmaptile 4, 3, 729, 1
+ setmetatile 4, 2, 721, 1
+ setmetatile 4, 3, 729, 1
special DrawWholeMapView
delay 20
applymovement 1, VerdanturfTown_ContestLobby_Movement_153E35
@@ -101,13 +101,13 @@ VerdanturfTown_ContestLobby_EventScript_153E3E:: @ 8153E3E
VerdanturfTown_ContestLobby_EventScript_153E47:: @ 8153E47
lock
faceplayer
- checkflag 235
+ checkflag FLAG_RECEIVED_TM45
goto_if_eq VerdanturfTown_ContestLobby_EventScript_153E76
msgbox VerdanturfTown_ContestLobby_Text_177DEC, 4
- giveitem ITEM_TM45
+ giveitem_std ITEM_TM45
compare RESULT, 0
goto_if_eq VerdanturfTown_ContestLobby_EventScript_1A029B
- setflag 235
+ setflag FLAG_RECEIVED_TM45
release
end
@@ -123,7 +123,7 @@ VerdanturfTown_ContestLobby_EventScript_153E80:: @ 8153E80
VerdanturfTown_ContestLobby_EventScript_153E89:: @ 8153E89
lockall
special ShowBerryBlenderRecordWindow
- waitbutton
+ waitbuttonpress
erasebox 0, 0, 29, 19
releaseall
end
diff --git a/data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc b/data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc
index 1cfa785d3..ed60ec1c7 100644
--- a/data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc
+++ b/data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc
@@ -56,8 +56,8 @@ VerdanturfTown_FriendshipRatersHouse_EventScript_1540D9:: @ 81540D9
lock
faceplayer
waitse
- playpokecry SPECIES_PIKACHU, 0
+ playmoncry SPECIES_PIKACHU, 0
msgbox VerdanturfTown_FriendshipRatersHouse_Text_178CFD, 4
- waitpokecry
+ waitmoncry
release
end
diff --git a/data/scripts/maps/VerdanturfTown_PokemonCenter_1F.inc b/data/scripts/maps/VerdanturfTown_PokemonCenter_1F.inc
index a0b1f87de..598c3f60b 100644
--- a/data/scripts/maps/VerdanturfTown_PokemonCenter_1F.inc
+++ b/data/scripts/maps/VerdanturfTown_PokemonCenter_1F.inc
@@ -3,7 +3,7 @@ VerdanturfTown_PokemonCenter_1F_MapScripts:: @ 8153F09
.byte 0
VerdanturfTown_PokemonCenter_1F_MapScript1_153F0F:: @ 8153F0F
- sethealplace 18
+ setrespawn 18
call VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B
end
@@ -12,7 +12,7 @@ VerdanturfTown_PokemonCenter_1F_EventScript_153F18:: @ 8153F18
setvar 0x800b, 1
call VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B
waitmessage
- waitbutton
+ waitbuttonpress
release
end
diff --git a/data/scripts/maps/VerdanturfTown_WandasHouse.inc b/data/scripts/maps/VerdanturfTown_WandasHouse.inc
index fad64292b..205a4315c 100644
--- a/data/scripts/maps/VerdanturfTown_WandasHouse.inc
+++ b/data/scripts/maps/VerdanturfTown_WandasHouse.inc
@@ -4,10 +4,10 @@ VerdanturfTown_WandasHouse_MapScripts:: @ 8153F5A
VerdanturfTown_WandasHouse_EventScript_153F5B:: @ 8153F5B
lock
faceplayer
- checkflag 193
+ checkflag FLAG_WALLY_SPEECH
goto_if_eq VerdanturfTown_WandasHouse_EventScript_153F73
msgbox VerdanturfTown_WandasHouse_Text_1783F6, 4
- setflag 193
+ setflag FLAG_WALLY_SPEECH
release
end
@@ -19,9 +19,9 @@ VerdanturfTown_WandasHouse_EventScript_153F73:: @ 8153F73
VerdanturfTown_WandasHouse_EventScript_153F7D:: @ 8153F7D
lock
faceplayer
- checkflag 126
+ checkflag FLAG_DEFEATED_WALLY_VICTORY_ROAD
goto_if_eq VerdanturfTown_WandasHouse_EventScript_153FA5
- checkflag 1213
+ checkflag FLAG_DEFEATED_LAVARIDGE_GYM
goto_if_eq VerdanturfTown_WandasHouse_EventScript_153F9B
msgbox VerdanturfTown_WandasHouse_Text_17859A, 4
release
@@ -44,9 +44,9 @@ VerdanturfTown_WandasHouse_EventScript_153FAF:: @ 8153FAF
VerdanturfTown_WandasHouse_EventScript_153FB8:: @ 8153FB8
lock
faceplayer
- checkflag 1213
+ checkflag FLAG_DEFEATED_LAVARIDGE_GYM
goto_if_eq VerdanturfTown_WandasHouse_EventScript_153FE0
- checkflag 190
+ checkflag FLAG_DEFEATED_WALLY_MAUVILLE
goto_if_eq VerdanturfTown_WandasHouse_EventScript_153FD6
msgbox VerdanturfTown_WandasHouse_Text_1787FB, 4
release
@@ -65,11 +65,11 @@ VerdanturfTown_WandasHouse_EventScript_153FE0:: @ 8153FE0
VerdanturfTown_WandasHouse_EventScript_153FEA:: @ 8153FEA
lock
faceplayer
- checkflag 126
+ checkflag FLAG_DEFEATED_WALLY_VICTORY_ROAD
goto_if_eq VerdanturfTown_WandasHouse_EventScript_154025
- checkflag 1213
+ checkflag FLAG_DEFEATED_LAVARIDGE_GYM
goto_if_eq VerdanturfTown_WandasHouse_EventScript_15401B
- checkflag 199
+ checkflag FLAG_RUSTURF_TUNNEL_OPENED
goto_if_eq VerdanturfTown_WandasHouse_EventScript_154011
msgbox VerdanturfTown_WandasHouse_Text_1788B1, 4
release
diff --git a/data/scripts/maps/VictoryRoad_1F.inc b/data/scripts/maps/VictoryRoad_1F.inc
index fe775d793..7e48d3d90 100644
--- a/data/scripts/maps/VictoryRoad_1F.inc
+++ b/data/scripts/maps/VictoryRoad_1F.inc
@@ -3,12 +3,12 @@ VictoryRoad_1F_MapScripts:: @ 815DE83
.byte 0
VictoryRoad_1F_MapScript1_15DE89:: @ 815DE89
- checkflag 126
+ checkflag FLAG_DEFEATED_WALLY_VICTORY_ROAD
call_if 1, VictoryRoad_1F_EventScript_15DE93
end
VictoryRoad_1F_EventScript_15DE93:: @ 815DE93
- setflag 858
+ setflag FLAG_HIDE_WALLY_BATTLE_VICTORY_ROAD
return
VictoryRoad_1F_EventScript_15DE97:: @ 815DE97
@@ -41,9 +41,9 @@ VictoryRoad_1F_EventScript_15DED3:: @ 815DED3
msgbox VictoryRoad_1F_Text_19782B, 4
trainerbattle 3, OPPONENT_WALLY_1, 0, VictoryRoad_1F_Text_197943
msgbox VictoryRoad_1F_Text_197967, 4
- clearflag 858
+ clearflag FLAG_HIDE_WALLY_BATTLE_VICTORY_ROAD
moveobjectoffscreen 4
- setflag 126
+ setflag FLAG_DEFEATED_WALLY_VICTORY_ROAD
setvar 0x40c3, 1
releaseall
end