summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data-de/event_scripts.s6
-rw-r--r--data/event_scripts.s6
-rw-r--r--data/scripts/magma_chimney.inc6
-rw-r--r--data/scripts/maps/AbandonedShip_Corridors_B1F.inc8
-rw-r--r--data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc32
-rw-r--r--data/scripts/maps/BattleTower_Lobby.inc20
-rw-r--r--data/scripts/maps/DewfordTown_Hall.inc4
-rw-r--r--data/scripts/maps/FallarborTown_House1.inc6
-rw-r--r--data/scripts/maps/FortreeCity_House4.inc10
-rw-r--r--data/scripts/maps/LavaridgeTown.inc4
-rw-r--r--data/scripts/maps/LavaridgeTown_HerbShop.inc4
-rw-r--r--data/scripts/maps/LilycoveCity.inc4
-rw-r--r--data/scripts/maps/LilycoveCity_Harbor.inc2
-rw-r--r--data/scripts/maps/LilycoveCity_House2.inc4
-rw-r--r--data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc6
-rw-r--r--data/scripts/maps/MauvilleCity.inc10
-rw-r--r--data/scripts/maps/MauvilleCity_GameCorner.inc30
-rw-r--r--data/scripts/maps/MeteorFalls_1F_1R.inc4
-rw-r--r--data/scripts/maps/MossdeepCity_House2.inc2
-rw-r--r--data/scripts/maps/MtPyre_Summit.inc2
-rw-r--r--data/scripts/maps/Route104.inc4
-rw-r--r--data/scripts/maps/Route104_Prototype.inc8
-rw-r--r--data/scripts/maps/Route105.inc2
-rw-r--r--data/scripts/maps/Route111.inc2
-rw-r--r--data/scripts/maps/Route114.inc4
-rw-r--r--data/scripts/maps/Route116.inc2
-rw-r--r--data/scripts/maps/Route118.inc4
-rw-r--r--data/scripts/maps/Route120.inc2
-rw-r--r--data/scripts/maps/Route123.inc4
-rw-r--r--data/scripts/maps/Route123_BerryMastersHouse.inc20
-rw-r--r--data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc4
-rw-r--r--data/scripts/maps/RustboroCity_DevonCorp_3F.inc2
-rw-r--r--data/scripts/maps/RustboroCity_Flat2_2F.inc4
-rw-r--r--data/scripts/maps/SSTidalCorridor.inc4
-rw-r--r--data/scripts/maps/SealedChamber_InnerRoom.inc4
-rw-r--r--data/scripts/maps/SlateportCity_PokemonFanClub.inc30
-rw-r--r--data/scripts/maps/SootopolisCity_House6.inc8
-rw-r--r--data/scripts/maps/SouthernIsland_Interior.inc4
-rw-r--r--data/scripts/maps/VerdanturfTown_ContestLobby.inc4
-rw-r--r--data/scripts/tv.inc2
-rw-r--r--include/constants/flags.h56
41 files changed, 200 insertions, 144 deletions
diff --git a/data-de/event_scripts.s b/data-de/event_scripts.s
index a4bb7f4b1..c38187d0e 100644
--- a/data-de/event_scripts.s
+++ b/data-de/event_scripts.s
@@ -1309,7 +1309,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13
special sub_810FAA0
checkflag 291
call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC62
- checkflag 255
+ checkflag FLAG_LATIOS_OR_LATIAS_ROAMING
call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC70
checkflag 298
call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5A
@@ -1332,7 +1332,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC62:: @ 819FC62
return
EverGrandeCity_HallOfFame_EventScript_19FC70:: @ 819FC70
- setflag 2141
+ setflag SYS_TV_LATI
return
S_WhiteOut:: @ 819FC74
@@ -1342,7 +1342,7 @@ S_WhiteOut:: @ 819FC74
end
EventScript_19FC84:
- checkflag 221
+ checkflag FLAG_RECEIVED_GO_GOGGLES
goto_if_eq Route101_EventScript_1A14DC
checkflag 1213
goto_if 0, Route101_EventScript_1A14DC
diff --git a/data/event_scripts.s b/data/event_scripts.s
index d355bff97..066c29477 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -1303,7 +1303,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13
special sub_810FAA0
checkflag 291
call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC62
- checkflag 255
+ checkflag FLAG_LATIOS_OR_LATIAS_ROAMING
call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC70
checkflag 298
call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5A
@@ -1326,7 +1326,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC62:: @ 819FC62
return
EverGrandeCity_HallOfFame_EventScript_19FC70:: @ 819FC70
- setflag 2141
+ setflag SYS_TV_LATI
return
S_WhiteOut:: @ 819FC74
@@ -1336,7 +1336,7 @@ S_WhiteOut:: @ 819FC74
end
EventScript_19FC84:
- checkflag 221
+ checkflag FLAG_RECEIVED_GO_GOGGLES
goto_if_eq Route101_EventScript_1A14DC
checkflag 1213
goto_if 0, Route101_EventScript_1A14DC
diff --git a/data/scripts/magma_chimney.inc b/data/scripts/magma_chimney.inc
index 586bbf3c5..adc865e73 100644
--- a/data/scripts/magma_chimney.inc
+++ b/data/scripts/magma_chimney.inc
@@ -1,14 +1,14 @@
MtChimney_EventScript_1B2C95:: @ 81B2C95
lock
faceplayer
- checkflag 219
+ checkflag FLAG_EVIL_LEADER_PLEASE_STOP
call_if 0, MtChimney_EventScript_1B2CB9
- checkflag 219
+ checkflag FLAG_EVIL_LEADER_PLEASE_STOP
call_if 1, MtChimney_EventScript_1B2CC2
closemessage
applymovement 1, MtChimney_Movement_1A083D
waitmovement 0
- setflag 219
+ setflag FLAG_EVIL_LEADER_PLEASE_STOP
release
end
diff --git a/data/scripts/maps/AbandonedShip_Corridors_B1F.inc b/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
index de3ba5442..1bc38a099 100644
--- a/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
+++ b/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
@@ -8,9 +8,9 @@ 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
@@ -28,7 +28,7 @@ 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
@@ -36,7 +36,7 @@ AbandonedShip_Corridors_B1F_EventScript_15E9D3:: @ 815E9D3
msgbox AbandonedShip_Corridors_B1F_Text_198692, 4
playse 21
removeitem ITEM_STORAGE_KEY, 1
- setflag 239
+ setflag FLAG_USED_STORAGE_KEY
call AbandonedShip_Corridors_B1F_EventScript_15E9C0
special DrawWholeMapView
releaseall
diff --git a/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc b/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
index e6c143091..b09a6e5f1 100644
--- a/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
+++ b/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
@@ -8,21 +8,21 @@ 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
@@ -60,7 +60,7 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9:: @ 815EBE9
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
@@ -68,7 +68,7 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EBF3:: @ 815EBF3
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
playse 21
removeitem ITEM_ROOM_1_KEY, 1
- setflag 240
+ setflag FLAG_USED_ROOM_1_KEY
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
special DrawWholeMapView
releaseall
@@ -76,7 +76,7 @@ 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
@@ -84,7 +84,7 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC2A:: @ 815EC2A
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
playse 21
removeitem ITEM_ROOM_2_KEY, 1
- setflag 241
+ setflag FLAG_USED_ROOM_2_KEY
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
special DrawWholeMapView
releaseall
@@ -92,7 +92,7 @@ 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
@@ -100,7 +100,7 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC61:: @ 815EC61
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
playse 21
removeitem ITEM_ROOM_4_KEY, 1
- setflag 242
+ setflag FLAG_USED_ROOM_4_KEY
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
special DrawWholeMapView
releaseall
@@ -108,7 +108,7 @@ 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
@@ -116,7 +116,7 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC98:: @ 815EC98
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
playse 21
removeitem ITEM_ROOM_6_KEY, 1
- setflag 243
+ setflag FLAG_USED_ROOM_6_KEY
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
special DrawWholeMapView
releaseall
diff --git a/data/scripts/maps/BattleTower_Lobby.inc b/data/scripts/maps/BattleTower_Lobby.inc
index 5a0e6105c..59f698c5f 100644
--- a/data/scripts/maps/BattleTower_Lobby.inc
+++ b/data/scripts/maps/BattleTower_Lobby.inc
@@ -13,9 +13,9 @@ 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
@@ -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 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,11 +406,11 @@ 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 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
diff --git a/data/scripts/maps/DewfordTown_Hall.inc b/data/scripts/maps/DewfordTown_Hall.inc
index ea4016147..3c0565678 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
compare RESULT, 0
goto_if_eq DewfordTown_Hall_EventScript_1A029B
- setflag 230
+ setflag FLAG_RECEIVED_TM36
release
end
diff --git a/data/scripts/maps/FallarborTown_House1.inc b/data/scripts/maps/FallarborTown_House1.inc
index dcfe7705a..6c7509508 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
@@ -30,7 +30,7 @@ FallarborTown_House1_EventScript_153BDA:: @ 8153BDA
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
@@ -58,7 +58,7 @@ 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 FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY
goto_if_eq FallarborTown_House1_EventScript_153C7C
diff --git a/data/scripts/maps/FortreeCity_House4.inc b/data/scripts/maps/FortreeCity_House4.inc
index b261e14fb..efccf20fc 100644
--- a/data/scripts/maps/FortreeCity_House4.inc
+++ b/data/scripts/maps/FortreeCity_House4.inc
@@ -7,15 +7,15 @@ 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
+ setflag FLAG_WINGULL_SENT_ON_ERRAND
clearflag 934
applymovement 3, FortreeCity_House4_Movement_158218
waitmovement 0
@@ -37,7 +37,7 @@ FortreeCity_House4_EventScript_1581D6:: @ 81581D6
giveitem ITEM_MENTAL_HERB
compare RESULT, 0
goto_if_eq FortreeCity_House4_EventScript_1A029B
- setflag 223
+ setflag FLAG_RECEIVED_MENTAL_HERB
releaseall
end
diff --git a/data/scripts/maps/LavaridgeTown.inc b/data/scripts/maps/LavaridgeTown.inc
index dde0b0ebd..f2526b3c1 100644
--- a/data/scripts/maps/LavaridgeTown.inc
+++ b/data/scripts/maps/LavaridgeTown.inc
@@ -84,7 +84,7 @@ LavaridgeTown_EventScript_14E575:: @ 814E575
LavaridgeTown_EventScript_14E5AB:: @ 814E5AB
msgbox LavaridgeTown_Text_16BDA4, 4
giveitem ITEM_GO_GOGGLES
- setflag 221
+ setflag FLAG_RECEIVED_GO_GOGGLES
msgbox LavaridgeTown_Text_16BE7D, 4
goto LavaridgeTown_EventScript_14E5F5
end
@@ -92,7 +92,7 @@ LavaridgeTown_EventScript_14E5AB:: @ 814E5AB
LavaridgeTown_EventScript_14E5D0:: @ 814E5D0
msgbox LavaridgeTown_Text_16BF92, 4
giveitem ITEM_GO_GOGGLES
- setflag 221
+ setflag FLAG_RECEIVED_GO_GOGGLES
msgbox LavaridgeTown_Text_16C020, 4
goto LavaridgeTown_EventScript_14E5F5
end
diff --git a/data/scripts/maps/LavaridgeTown_HerbShop.inc b/data/scripts/maps/LavaridgeTown_HerbShop.inc
index 5ec6731d4..c5e033422 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
compare RESULT, 0
goto_if_eq LavaridgeTown_HerbShop_EventScript_1A029B
- setflag 254
+ setflag FLAG_RECEIVED_CHARCOAL
release
end
diff --git a/data/scripts/maps/LilycoveCity.inc b/data/scripts/maps/LilycoveCity.inc
index ed07b2171..4c22a4883 100644
--- a/data/scripts/maps/LilycoveCity.inc
+++ b/data/scripts/maps/LilycoveCity.inc
@@ -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
diff --git a/data/scripts/maps/LilycoveCity_Harbor.inc b/data/scripts/maps/LilycoveCity_Harbor.inc
index ae62caea7..69e2e6766 100644
--- a/data/scripts/maps/LilycoveCity_Harbor.inc
+++ b/data/scripts/maps/LilycoveCity_Harbor.inc
@@ -108,7 +108,7 @@ LilycoveCity_Harbor_EventScript_1599E4:: @ 81599E4
LilycoveCity_Harbor_EventScript_1599EE:: @ 81599EE
checkflag 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 SYS_HAS_EON_TICKET
goto_if 0, LilycoveCity_Harbor_EventScript_1598BA
diff --git a/data/scripts/maps/LilycoveCity_House2.inc b/data/scripts/maps/LilycoveCity_House2.inc
index d3399f5ac..bbca8aa6d 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
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 585b1e79b..db9855211 100644
--- a/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
+++ b/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
@@ -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 DECOR_GLASS_ORNAMENT
compare RESULT, 0
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158783
- setflag 236
+ setflag FLAG_RECEIVED_GLASS_ORNAMENT
closemessage
releaseall
end
diff --git a/data/scripts/maps/MauvilleCity.inc b/data/scripts/maps/MauvilleCity.inc
index 407a1141d..3889f55a6 100644
--- a/data/scripts/maps/MauvilleCity.inc
+++ b/data/scripts/maps/MauvilleCity.inc
@@ -8,7 +8,7 @@ MauvilleCity_MapScript1_14C038:: @ 814C038
setflag 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
@@ -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
+ setflag FLAG_RECEIVED_BASEMENT_KEY
msgbox MauvilleCity_Text_166331, 4
release
end
@@ -307,7 +307,7 @@ MauvilleCity_EventScript_14C33C:: @ 814C33C
giveitem 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_GameCorner.inc b/data/scripts/maps/MauvilleCity_GameCorner.inc
index 2e0231287..646546dc7 100644
--- a/data/scripts/maps/MauvilleCity_GameCorner.inc
+++ b/data/scripts/maps/MauvilleCity_GameCorner.inc
@@ -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
+ getdecorname 1, DECOR_TREECKO_DOLL
+ checkdecor DECOR_TREECKO_DOLL
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_157059
msgbox MauvilleCity_GameCorner_Text_181F89, 4
- givedecoration 88
- setflag 226
+ givedecoration DECOR_TREECKO_DOLL
+ setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_157072
end
MauvilleCity_GameCorner_EventScript_157005:: @ 8157005
- getdecorname 1, 89
- checkdecor 89
+ getdecorname 1, DECOR_TORCHIC_DOLL
+ checkdecor DECOR_TORCHIC_DOLL
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_157059
msgbox MauvilleCity_GameCorner_Text_181F89, 4
- givedecoration 89
- setflag 226
+ givedecoration DECOR_TORCHIC_DOLL
+ setflag FLAG_RECEIVED_STARTER_DOLL
goto MauvilleCity_GameCorner_EventScript_157072
end
MauvilleCity_GameCorner_EventScript_15702F:: @ 815702F
- getdecorname 1, 90
- checkdecor 90
+ getdecorname 1, DECOR_MUDKIP_DOLL
+ checkdecor DECOR_MUDKIP_DOLL
compare RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_157059
msgbox MauvilleCity_GameCorner_Text_181F89, 4
- givedecoration 90
- setflag 226
+ givedecoration 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/MeteorFalls_1F_1R.inc b/data/scripts/maps/MeteorFalls_1F_1R.inc
index 06abbc8f6..06774d400 100644
--- a/data/scripts/maps/MeteorFalls_1F_1R.inc
+++ b/data/scripts/maps/MeteorFalls_1F_1R.inc
@@ -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_House2.inc b/data/scripts/maps/MossdeepCity_House2.inc
index f7f66b843..f66f7e6f1 100644
--- a/data/scripts/maps/MossdeepCity_House2.inc
+++ b/data/scripts/maps/MossdeepCity_House2.inc
@@ -17,7 +17,7 @@ MossdeepCity_House2_EventScript_15A87B:: @ 815A87B
msgbox MossdeepCity_House2_Text_18D61E, 4
waitpokecry
closemessage
- setflag 224
+ setflag FLAG_WINGULL_DELIVERED_MAIL
clearflag 933
compare FACING, 2
call_if 1, MossdeepCity_House2_EventScript_15A8AE
diff --git a/data/scripts/maps/MtPyre_Summit.inc b/data/scripts/maps/MtPyre_Summit.inc
index e0870e18a..d71c5478f 100644
--- a/data/scripts/maps/MtPyre_Summit.inc
+++ b/data/scripts/maps/MtPyre_Summit.inc
@@ -64,7 +64,7 @@ MtPyre_Summit_EventScript_15D4E1:: @ 815D4E1
msgbox MtPyre_Summit_Text_1B5FE6, 4
.endif
giveitem ITEM_RED_OR_BLUE_ORB
- setflag 212
+ setflag FLAG_RECEIVED_RED_OR_BLUE_ORB
releaseall
end
diff --git a/data/scripts/maps/Route104.inc b/data/scripts/maps/Route104.inc
index 02cad5688..b9c0deb63 100644
--- a/data/scripts/maps/Route104.inc
+++ b/data/scripts/maps/Route104.inc
@@ -31,13 +31,13 @@ Route104_EventScript_14EEC4:: @ 814EEC4
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
compare RESULT, 0
goto_if_eq Route104_EventScript_1A029B
- setflag 246
+ setflag FLAG_RECEIVED_CHESTO_BERRY_ROUTE104
msgbox Route104_Text_1C5665, 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..de7188aae 100644
--- a/data/scripts/maps/Route105.inc
+++ b/data/scripts/maps/Route105.inc
@@ -3,7 +3,7 @@ Route105_MapScripts:: @ 814F298
.byte 0
Route105_MapScript1_14F29E:: @ 814F29E
- checkflag 228
+ checkflag FLAG_REGI_DOORS_OPENED
call_if 0, Route105_EventScript_14F2A8
end
diff --git a/data/scripts/maps/Route111.inc b/data/scripts/maps/Route111.inc
index 545e62921..343d666b2 100644
--- a/data/scripts/maps/Route111.inc
+++ b/data/scripts/maps/Route111.inc
@@ -4,7 +4,7 @@ Route111_MapScripts:: @ 814FF91
.byte 0
Route111_MapScript1_14FF9C:: @ 814FF9C
- checkflag 228
+ checkflag FLAG_REGI_DOORS_OPENED
call_if 0, Route111_EventScript_14FFA6
end
diff --git a/data/scripts/maps/Route114.inc b/data/scripts/maps/Route114.inc
index 0730db23a..a3056c8ff 100644
--- a/data/scripts/maps/Route114.inc
+++ b/data/scripts/maps/Route114.inc
@@ -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
compare RESULT, 0
goto_if_eq Route114_EventScript_1A029B
- setflag 231
+ setflag FLAG_RECEIVED_TM05
msgbox Route114_Text_1701C5, 4
release
end
diff --git a/data/scripts/maps/Route116.inc b/data/scripts/maps/Route116.inc
index 4853efdb3..003bcc397 100644
--- a/data/scripts/maps/Route116.inc
+++ b/data/scripts/maps/Route116.inc
@@ -58,7 +58,7 @@ Route116_EventScript_150A94:: @ 8150A94
call_if 1, Route116_EventScript_150AF9
removeobject LAST_TALKED
clearflag 949
- setflag 256
+ setflag FLAG_RECEIVED_REPEAT_BALL
release
end
diff --git a/data/scripts/maps/Route118.inc b/data/scripts/maps/Route118.inc
index b96346f15..bf34b5426 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
@@ -21,7 +21,7 @@ Route118_EventScript_150F34:: @ 8150F34
Route118_EventScript_150F5E:: @ 8150F5E
msgbox Route118_Text_170F46, 4
giveitem ITEM_GOOD_ROD
- setflag 227
+ setflag FLAG_RECEIVED_GOOD_ROD
msgbox Route118_Text_170F7E, 4
release
end
diff --git a/data/scripts/maps/Route120.inc b/data/scripts/maps/Route120.inc
index b2765e977..2bb43fc90 100644
--- a/data/scripts/maps/Route120.inc
+++ b/data/scripts/maps/Route120.inc
@@ -50,7 +50,7 @@ Route120_EventScript_151682:: @ 8151682
return
Route120_MapScript1_151686:: @ 8151686
- checkflag 228
+ checkflag FLAG_REGI_DOORS_OPENED
call_if 0, Route120_EventScript_1516A2
checkflag 285
call_if 1, Route120_EventScript_1516B5
diff --git a/data/scripts/maps/Route123.inc b/data/scripts/maps/Route123.inc
index 14c5a2dba..9ad0220bd 100644
--- a/data/scripts/maps/Route123.inc
+++ b/data/scripts/maps/Route123.inc
@@ -9,7 +9,7 @@ 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
@@ -19,7 +19,7 @@ Route123_EventScript_151C5D:: @ 8151C5D
giveitem 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..f9544d62e 100644
--- a/data/scripts/maps/Route123_BerryMastersHouse.inc
+++ b/data/scripts/maps/Route123_BerryMastersHouse.inc
@@ -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
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
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
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
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
compare RESULT, 0
goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
- setflag 252
+ setflag FLAG_RECEIVED_BELUE_BERRY
goto Route123_BerryMastersHouse_EventScript_163C1D
end
diff --git a/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc b/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc
index 7421e94e0..2f6f1b1e1 100644
--- a/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc
+++ b/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc
@@ -9,10 +9,10 @@ Route124_DivingTreasureHuntersHouse_MapScript1_163E00:: @ 8163E00
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
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_3F.inc b/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
index 23277711e..3756b5c72 100644
--- a/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
+++ b/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
@@ -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_2F.inc b/data/scripts/maps/RustboroCity_Flat2_2F.inc
index 0dfec5cfa..5be59b14e 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
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/SSTidalCorridor.inc b/data/scripts/maps/SSTidalCorridor.inc
index 59ab89112..8c28628ea 100644
--- a/data/scripts/maps/SSTidalCorridor.inc
+++ b/data/scripts/maps/SSTidalCorridor.inc
@@ -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/SealedChamber_InnerRoom.inc b/data/scripts/maps/SealedChamber_InnerRoom.inc
index 526ada367..a0c6314cc 100644
--- a/data/scripts/maps/SealedChamber_InnerRoom.inc
+++ b/data/scripts/maps/SealedChamber_InnerRoom.inc
@@ -6,7 +6,7 @@ SealedChamber_InnerRoom_EventScript_15F1E8:: @ 815F1E8
braillemessage SealedChamber_InnerRoom_Braille_1C53C1
waitbutton
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
diff --git a/data/scripts/maps/SlateportCity_PokemonFanClub.inc b/data/scripts/maps/SlateportCity_PokemonFanClub.inc
index 4195ad43a..ea2acf374 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,15 +49,15 @@ 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
switch 0x4001
@@ -88,7 +88,7 @@ SlateportCity_PokemonFanClub_EventScript_1558A3:: @ 81558A3
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 200
+ setflag FLAG_RECEIVED_RED_SCARF
giveitem ITEM_RED_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DC1B, 4
release
@@ -99,7 +99,7 @@ SlateportCity_PokemonFanClub_EventScript_1558D4:: @ 81558D4
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 201
+ setflag FLAG_RECEIVED_BLUE_SCARF
giveitem ITEM_BLUE_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DC74, 4
release
@@ -110,7 +110,7 @@ SlateportCity_PokemonFanClub_EventScript_155905:: @ 8155905
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 202
+ setflag FLAG_RECEIVED_PINK_SCARF
giveitem ITEM_PINK_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DCCB, 4
release
@@ -121,7 +121,7 @@ SlateportCity_PokemonFanClub_EventScript_155936:: @ 8155936
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 203
+ setflag FLAG_RECEIVED_GREEN_SCARF
giveitem ITEM_GREEN_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DD27, 4
release
@@ -132,7 +132,7 @@ SlateportCity_PokemonFanClub_EventScript_155967:: @ 8155967
compare RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
- setflag 204
+ setflag FLAG_RECEIVED_YELLOW_SCARF
giveitem ITEM_YELLOW_SCARF
msgbox SlateportCity_PokemonFanClub_Text_17DD78, 4
release
diff --git a/data/scripts/maps/SootopolisCity_House6.inc b/data/scripts/maps/SootopolisCity_House6.inc
index a0fdc5ca4..1adf05991 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 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
+ getdecorname 1, DECOR_WAILMER_DOLL
msgbox SootopolisCity_House6_Text_1A0CEF, 4
msgbox SootopolisCity_House6_Text_18FF28, 4
release
diff --git a/data/scripts/maps/SouthernIsland_Interior.inc b/data/scripts/maps/SouthernIsland_Interior.inc
index 8d6ed8ddc..0ff474138 100644
--- a/data/scripts/maps/SouthernIsland_Interior.inc
+++ b/data/scripts/maps/SouthernIsland_Interior.inc
@@ -44,11 +44,11 @@ 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 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
diff --git a/data/scripts/maps/VerdanturfTown_ContestLobby.inc b/data/scripts/maps/VerdanturfTown_ContestLobby.inc
index 67554d26b..9726038d4 100644
--- a/data/scripts/maps/VerdanturfTown_ContestLobby.inc
+++ b/data/scripts/maps/VerdanturfTown_ContestLobby.inc
@@ -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
compare RESULT, 0
goto_if_eq VerdanturfTown_ContestLobby_EventScript_1A029B
- setflag 235
+ setflag FLAG_RECEIVED_TM45
release
end
diff --git a/data/scripts/tv.inc b/data/scripts/tv.inc
index 28932e02a..dc026c062 100644
--- a/data/scripts/tv.inc
+++ b/data/scripts/tv.inc
@@ -50,7 +50,7 @@ EventScript_1A6F0B:
.endif
special InitRoamer
clearflag SYS_TV_LATI
- setflag 255
+ setflag FLAG_LATIOS_OR_LATIAS_ROAMING
special TurnOffTVScreen
releaseall
end
diff --git a/include/constants/flags.h b/include/constants/flags.h
index 8038bcdd4..013d20f84 100644
--- a/include/constants/flags.h
+++ b/include/constants/flags.h
@@ -152,6 +152,62 @@
#define FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_4 0xC5
#define FLAG_TRICK_HOUSE_PUZZLE_7_SWITCH_5 0xC6
#define FLAG_RUSTURF_TUNNEL_OPENED 0xC7
+#define FLAG_RECEIVED_RED_SCARF 0xC8
+#define FLAG_RECEIVED_BLUE_SCARF 0xC9
+#define FLAG_RECEIVED_PINK_SCARF 0xCA
+#define FLAG_RECEIVED_GREEN_SCARF 0xCB
+#define FLAG_RECEIVED_YELLOW_SCARF 0xCC
+
+#define FLAG_ECOUNTERED_LATIAS_OR_LATIOS 0xCE
+
+#define FLAG_RECEIVED_BASEMENT_KEY 0xD0
+#define FLAG_RECEIVED_TM24 0xD1
+
+#define FLAG_RECEIVED_RED_OR_BLUE_ORB 0xD4
+#define FLAG_RECEIVED_PREMIER_BALL_RUSTBORO 0xD5
+
+#define FLAG_ROUTE104_PROTOTYPE_COMPLETED_1 0xD7
+#define FLAG_ROUTE104_PROTOTYPE_COMPLETED_2 0xD8
+#define FLAG_MET_DIVING_TREASURE_HUNTER 0xD9
+#define FLAG_MET_WAILMER_TRAINER 0xDA
+#define FLAG_EVIL_LEADER_PLEASE_STOP 0xDB
+
+#define FLAG_RECEIVED_GO_GOGGLES 0xDD
+#define FLAG_WINGULL_SENT_ON_ERRAND 0xDE
+#define FLAG_RECEIVED_MENTAL_HERB 0xDF
+#define FLAG_WINGULL_DELIVERED_MAIL 0xE0
+#define FLAG_RECEIVED_20_COINS 0xE1
+#define FLAG_RECEIVED_STARTER_DOLL 0xE2
+#define FLAG_RECEIVED_GOOD_ROD 0xE3
+#define FLAG_REGI_DOORS_OPENED 0xE4
+#define FLAG_RECEIVED_TM27 0xE5
+#define FLAG_RECEIVED_TM36 0xE6
+#define FLAG_RECEIVED_TM05 0xE7
+#define FLAG_RECEIVED_TM19 0xE8
+
+#define FLAG_RECEIVED_TM44 0xEA
+#define FLAG_RECEIVED_TM45 0xEB
+#define FLAG_RECEIVED_GLASS_ORNAMENT 0xEC
+#define FLAG_RECEIVED_SILVER_SHIELD 0xED
+#define FLAG_RECEIVED_GOLD_SHIELD 0xEE
+#define FLAG_USED_STORAGE_KEY 0xEF
+#define FLAG_USED_ROOM_1_KEY 0xF0
+#define FLAG_USED_ROOM_2_KEY 0xF1
+#define FLAG_USED_ROOM_4_KEY 0xF2
+#define FLAG_USED_ROOM_6_KEY 0xF3
+#define FLAG_MET_PROF_COSMO 0xF4
+#define FLAG_RECEIVED_WAILMER_DOLL 0xF5
+#define FLAG_RECEIVED_CHESTO_BERRY_ROUTE104 0xF6
+#define FLAG_DEFEATED_SS_TIDAL_TRAINERS 0xF7
+#define FLAG_RECEIVED_SPELON_BERRY 0xF8
+#define FLAG_RECEIVED_PAMTRE_BERRY 0xF9
+#define FLAG_RECEIVED_WATMEL_BERRY 0xFA
+#define FLAG_RECEIVED_DURIN_BERRY 0xFB
+#define FLAG_RECEIVED_BELUE_BERRY 0xFC
+
+#define FLAG_RECEIVED_CHARCOAL 0xFE
+#define FLAG_LATIOS_OR_LATIAS_ROAMING 0xFF
+#define FLAG_RECEIVED_REPEAT_BALL 0x100
#define FLAG_RECEIVED_TM10 0x108