pokeemerald/include/constants/flags.h
2018-12-29 11:36:54 -06:00

1514 lines
81 KiB
C

#ifndef GUARD_CONSTANTS_FLAGS_H
#define GUARD_CONSTANTS_FLAGS_H
// temporary flags
// These temporary flags are are cleared every time a map is loaded. They are used
// for things like shortening an NPCs introduction text if the player already spoke
// to them once.
#define FLAG_TEMP_1 0x1
#define FLAG_TEMP_2 0x2
#define FLAG_TEMP_3 0x3
#define FLAG_TEMP_4 0x4
#define FLAG_TEMP_5 0x5
#define FLAG_TEMP_6 0x6
#define FLAG_TEMP_7 0x7
#define FLAG_TEMP_8 0x8
#define FLAG_TEMP_9 0x9
#define FLAG_TEMP_A 0xA
#define FLAG_TEMP_B 0xB
#define FLAG_TEMP_C 0xC
#define FLAG_TEMP_D 0xD
#define FLAG_TEMP_E 0xE
#define FLAG_TEMP_F 0xF
#define FLAG_TEMP_10 0x10
#define FLAG_TEMP_11 0x11
#define FLAG_TEMP_12 0x12
#define FLAG_TEMP_13 0x13
#define FLAG_TEMP_14 0x14
#define FLAG_TEMP_15 0x15
#define FLAG_TEMP_16 0x16
#define FLAG_TEMP_17 0x17
#define FLAG_TEMP_18 0x18
#define FLAG_TEMP_19 0x19
#define FLAG_TEMP_1A 0x1A
#define FLAG_TEMP_1B 0x1B
#define FLAG_TEMP_1C 0x1C
#define FLAG_TEMP_1D 0x1D
#define FLAG_TEMP_1E 0x1E
#define FLAG_TEMP_1F 0x1F
#define FLAG_TEMP_20 0x20
#define FLAG_0x021 0x21
#define FLAG_0x022 0x22
#define FLAG_0x023 0x23
#define FLAG_0x024 0x24
#define FLAG_0x025 0x25
#define FLAG_0x026 0x26
#define FLAG_0x027 0x27
#define FLAG_0x028 0x28
#define FLAG_0x029 0x29
#define FLAG_0x02A 0x2A
#define FLAG_0x02B 0x2B
#define FLAG_0x02C 0x2C
#define FLAG_0x02D 0x2D
#define FLAG_0x02E 0x2E
#define FLAG_0x02F 0x2F
#define FLAG_0x030 0x30
#define FLAG_0x031 0x31
#define FLAG_0x032 0x32
#define FLAG_0x033 0x33
#define FLAG_0x034 0x34
#define FLAG_0x035 0x35
#define FLAG_0x036 0x36
#define FLAG_0x037 0x37
#define FLAG_0x038 0x38
#define FLAG_0x039 0x39
#define FLAG_0x03A 0x3A
#define FLAG_0x03B 0x3B
#define FLAG_0x03C 0x3C
#define FLAG_0x03D 0x3D
#define FLAG_0x03E 0x3E
#define FLAG_0x03F 0x3F
#define FLAG_0x040 0x40
#define FLAG_0x041 0x41
#define FLAG_0x042 0x42
#define FLAG_0x043 0x43
#define FLAG_0x044 0x44
#define FLAG_0x045 0x45
#define FLAG_0x046 0x46
#define FLAG_0x047 0x47
#define FLAG_0x048 0x48
#define FLAG_0x049 0x49
#define FLAG_0x04A 0x4A
#define FLAG_0x04B 0x4B
#define FLAG_0x04C 0x4C
#define FLAG_0x04D 0x4D
#define FLAG_0x04E 0x4E
#define FLAG_0x04F 0x4F
#define FLAG_RAYQUAZA_ON_SKY_TOWER_SUMMIT 0x50
#define FLAG_0x051 0x51
#define FLAG_0x052 0x52
#define FLAG_LEGENDARIES_IN_SOOTOPOLIS 0x53
#define FLAG_0x054 0x54
#define FLAG_0x055 0x55
#define FLAG_LINK_CONTEST_POKE_BALL 0x56
#define FLAG_0x057 0x57
#define FLAG_0x058 0x58
#define FLAG_0x059 0x59
#define FLAG_0x05A 0x5A
#define FLAG_WATTSON_REMATCH_AVAILABLE 0x5B
#define FLAG_0x05C 0x5C
#define FLAG_0x05D 0x5D
#define FLAG_0x05E 0x5E
#define FLAG_0x05F 0x5F
#define FLAG_0x060 0x60
#define FLAG_0x061 0x61
#define FLAG_0x062 0x62
#define FLAG_0x063 0x63
#define FLAG_0x064 0x64
#define FLAG_0x065 0x65
#define FLAG_0x066 0x66
#define FLAG_0x067 0x67
#define FLAG_0x068 0x68
#define FLAG_0x069 0x69
#define FLAG_0x06A 0x6A
#define FLAG_0x06B 0x6B
#define FLAG_0x06C 0x6C
#define FLAG_0x06D 0x6D
#define FLAG_0x06E 0x6E
#define FLAG_0x06F 0x6F
#define FLAG_0x070 0x70
#define FLAG_0x071 0x71
#define FLAG_0x072 0x72
#define FLAG_0x073 0x73
#define FLAG_0x074 0x74
#define FLAG_0x075 0x75
#define FLAG_0x076 0x76
#define FLAG_0x077 0x77
#define FLAG_LANDMARK_MIRAGE_TOWER 0x78
#define FLAG_0x079 0x79
#define FLAG_0x07A 0x7A
#define FLAG_0x07B 0x7B
#define FLAG_0x07C 0x7C
#define FLAG_0x07D 0x7D
#define FLAG_0x07E 0x7E
#define FLAG_0x07F 0x7F
#define FLAG_0x080 0x80
#define FLAG_0x081 0x81
#define FLAG_0x082 0x82
#define FLAG_0x083 0x83
#define FLAG_0x084 0x84
#define FLAG_0x085 0x85
#define FLAG_PENDING_DAYCARE_EGG 0x86
#define FLAG_0x087 0x87
#define FLAG_0x088 0x88
#define FLAG_0x089 0x89
#define FLAG_0x08A 0x8A
#define FLAG_0x08B 0x8B
#define FLAG_0x08C 0x8C
#define FLAG_0x08D 0x8D
#define FLAG_0x08E 0x8E
#define FLAG_0x08F 0x8F
#define FLAG_0x090 0x90
#define FLAG_0x091 0x91
#define FLAG_0x092 0x92
#define FLAG_0x093 0x93
#define FLAG_0x094 0x94
#define FLAG_0x095 0x95
#define FLAG_0x096 0x96
#define FLAG_0x097 0x97
#define FLAG_0x098 0x98
#define FLAG_0x099 0x99
#define FLAG_0x09A 0x9A
#define FLAG_0x09B 0x9B
#define FLAG_0x09C 0x9C
#define FLAG_FORCE_MIRAGE_TOWER_VISIBLE 0x9D
#define FLAG_0x09E 0x9E
#define FLAG_0x09F 0x9F
#define FLAG_0x0A0 0xA0
#define FLAG_0x0A1 0xA1
#define FLAG_0x0A2 0xA2
#define FLAG_0x0A3 0xA3
#define FLAG_0x0A4 0xA4
#define FLAG_0x0A5 0xA5
#define FLAG_0x0A6 0xA6
#define FLAG_0x0A7 0xA7
#define FLAG_0x0A8 0xA8
#define FLAG_0x0A9 0xA9
#define FLAG_0x0AA 0xAA
#define FLAG_0x0AB 0xAB
#define FLAG_0x0AC 0xAC
#define FLAG_DECORATION_0 0xAD
#define FLAG_DECORATION_1 0xAE
#define FLAG_DECORATION_2 0xAF
#define FLAG_DECORATION_3 0xB0
#define FLAG_DECORATION_4 0xB1
#define FLAG_DECORATION_5 0xB2
#define FLAG_DECORATION_6 0xB3
#define FLAG_DECORATION_7 0xB4
#define FLAG_DECORATION_8 0xB5
#define FLAG_DECORATION_9 0xB6
#define FLAG_DECORATION_10 0xB7
#define FLAG_DECORATION_11 0xB8
#define FLAG_DECORATION_12 0xB9
#define FLAG_DECORATION_13 0xBA
#define FLAG_DECORATION_14 0xBB
// scripts
#define FLAG_0x0BC 0xBC
#define FLAG_0x0BD 0xBD
#define FLAG_0x0BE 0xBE
#define FLAG_0x0BF 0xBF
#define FLAG_0x0C0 0xC0
#define FLAG_0x0C1 0xC1
#define FLAG_0x0C2 0xC2
#define FLAG_0x0C3 0xC3
#define FLAG_0x0C4 0xC4
#define FLAG_0x0C5 0xC5
#define FLAG_0x0C6 0xC6
#define FLAG_RUSTURF_TUNNEL_OPENED 0xC7
#define FLAG_0x0C8 0xC8
#define FLAG_0x0C9 0xC9
#define FLAG_0x0CA 0xCA
#define FLAG_0x0CB 0xCB
#define FLAG_0x0CC 0xCC
#define FLAG_0x0CD 0xCD
#define FLAG_0x0CE 0xCE
#define FLAG_0x0CF 0xCF
#define FLAG_GOT_BASEMENT_KEY_FROM_WATTSON 0xD0
#define FLAG_GOT_TM24_FROM_WATTSON 0xD1
#define FLAG_0x0D2 0xD2
#define FLAG_0x0D3 0xD3
#define FLAG_0x0D4 0xD4
#define FLAG_0x0D5 0xD5
#define FLAG_0x0D6 0xD6
#define FLAG_0x0D7 0xD7
#define FLAG_0x0D8 0xD8
#define FLAG_0x0D9 0xD9
#define FLAG_0x0DA 0xDA
#define FLAG_0x0DB 0xDB
#define FLAG_0x0DC 0xDC
#define FLAG_0x0DD 0xDD
#define FLAG_0x0DE 0xDE
#define FLAG_0x0DF 0xDF
#define FLAG_0x0E0 0xE0
#define FLAG_0x0E1 0xE1
#define FLAG_0x0E2 0xE2
#define FLAG_0x0E3 0xE3
#define FLAG_0x0E4 0xE4
#define FLAG_0x0E5 0xE5
#define FLAG_RECEIVED_TM_36 0xE6
#define FLAG_0x0E7 0xE7
#define FLAG_0x0E8 0xE8
#define FLAG_0x0E9 0xE9
#define FLAG_0x0EA 0xEA
#define FLAG_0x0EB 0xEB
#define FLAG_0x0EC 0xEC
#define FLAG_0x0ED 0xED
#define FLAG_0x0EE 0xEE
#define FLAG_0x0EF 0xEF
#define FLAG_0x0F0 0xF0
#define FLAG_0x0F1 0xF1
#define FLAG_0x0F2 0xF2
#define FLAG_0x0F3 0xF3
#define FLAG_0x0F4 0xF4
#define FLAG_0x0F5 0xF5
#define FLAG_0x0F6 0xF6
#define FLAG_0x0F7 0xF7
#define FLAG_0x0F8 0xF8
#define FLAG_0x0F9 0xF9
#define FLAG_0x0FA 0xFA
#define FLAG_0x0FB 0xFB
#define FLAG_0x0FC 0xFC
#define FLAG_0x0FD 0xFD
#define FLAG_0x0FE 0xFE
#define FLAG_0x0FF 0xFF
#define FLAG_0x100 0x100
#define FLAG_0x101 0x101
#define FLAG_0x102 0x102
#define FLAG_0x103 0x103
#define FLAG_0x104 0x104
#define FLAG_0x105 0x105
#define FLAG_0x106 0x106
#define FLAG_0x107 0x107
#define FLAG_0x108 0x108
#define FLAG_0x109 0x109
#define FLAG_0x10A 0x10A
#define FLAG_0x10B 0x10B
#define FLAG_0x10C 0x10C
#define FLAG_0x10D 0x10D
#define FLAG_0x10E 0x10E
#define FLAG_0x10F 0x10F
#define FLAG_0x110 0x110
#define FLAG_0x111 0x111
#define FLAG_0x112 0x112
#define FLAG_0x113 0x113
#define FLAG_0x114 0x114
#define FLAG_0x115 0x115
#define FLAG_0x116 0x116
#define FLAG_0x117 0x117
#define FLAG_0x118 0x118
#define FLAG_0x119 0x119
#define FLAG_0x11A 0x11A
#define FLAG_0x11B 0x11B
#define FLAG_0x11C 0x11C
#define FLAG_0x11D 0x11D
#define FLAG_0x11E 0x11E
#define FLAG_0x11F 0x11F
#define FLAG_0x120 0x120
#define FLAG_0x121 0x121
#define FLAG_0x122 0x122
#define FLAG_0x123 0x123
// upper flags?
#define FLAG_0x124 0x124
#define FLAG_0x125 0x125
#define FLAG_TRADED_SCANNER_TO_STERN 0x126
#define FLAG_0x127 0x127
#define FLAG_0x128 0x128
#define FLAG_0x129 0x129
#define FLAG_0x12A 0x12A
#define FLAG_0x12B 0x12B
#define FLAG_0x12C 0x12C
#define FLAG_0x12D 0x12D
#define FLAG_0x12E 0x12E
#define FLAG_HAS_MATCH_CALL 0x12F
#define FLAG_0x130 0x130
#define FLAG_0x131 0x131
#define FLAG_0x132 0x132
#define FLAG_0x133 0x133
#define FLAG_0x134 0x134
#define FLAG_0x135 0x135
#define FLAG_0x136 0x136
#define FLAG_0x137 0x137
#define FLAG_0x138 0x138
#define FLAG_0x139 0x139
#define FLAG_0x13A 0x13A
#define FLAG_0x13B 0x13B
#define FLAG_0x13C 0x13C
#define FLAG_0x13D 0x13D
#define FLAG_0x13E 0x13E
#define FLAG_0x13F 0x13F
#define FLAG_0x140 0x140
#define FLAG_0x141 0x141
#define FLAG_0x142 0x142
#define FLAG_0x143 0x143
#define FLAG_0x144 0x144
#define FLAG_0x145 0x145
#define FLAG_0x146 0x146
#define FLAG_0x147 0x147
#define FLAG_0x148 0x148
#define FLAG_0x149 0x149
#define FLAG_0x14A 0x14A
#define FLAG_0x14B 0x14B
#define FLAG_0x14C 0x14C
#define FLAG_0x14D 0x14D
#define FLAG_MIRAGE_TOWER_VISIBLE 0x14E
#define FLAG_0x14F 0x14F// PLAYER CHOSE CLAW FOSSIL
#define FLAG_0x150 0x150// PLAYER CHOSE ROOT FOSSIL
#define FLAG_0x151 0x151
#define FLAG_0x152 0x152
#define FLAG_0x153 0x153
#define FLAG_0x154 0x154
#define FLAG_0x155 0x155
#define FLAG_0x156 0x156
#define FLAG_0x157 0x157
#define FLAG_0x158 0x158
#define FLAG_0x159 0x159
#define FLAG_0x15A 0x15A
#define FLAG_0x15B 0x15B
#define FLAG_MATCH_CALL_REGISTERED 0x15C
#define FLAG_0x15D 0x15D
#define FLAG_0x15E 0x15E
#define FLAG_0x15F 0x15F
#define FLAG_0x160 0x160
#define FLAG_0x161 0x161
#define FLAG_0x162 0x162
#define FLAG_0x163 0x163
#define FLAG_0x164 0x164
#define FLAG_0x165 0x165
#define FLAG_0x166 0x166
#define FLAG_0x167 0x167
#define FLAG_0x168 0x168
#define FLAG_0x169 0x169
#define FLAG_0x16A 0x16A
#define FLAG_0x16B 0x16B
#define FLAG_0x16C 0x16C
#define FLAG_0x16D 0x16D
#define FLAG_0x16E 0x16E
#define FLAG_0x16F 0x16F
#define FLAG_0x170 0x170
#define FLAG_0x171 0x171
#define FLAG_0x172 0x172
#define FLAG_0x173 0x173
#define FLAG_0x174 0x174
#define FLAG_0x175 0x175
#define FLAG_0x176 0x176
#define FLAG_0x177 0x177
#define FLAG_0x178 0x178
#define FLAG_0x179 0x179
#define FLAG_0x17A 0x17A
#define FLAG_0x17B 0x17B
#define FLAG_0x17C 0x17C
#define FLAG_0x17D 0x17D
#define FLAG_0x17E 0x17E
#define FLAG_0x17F 0x17F
#define FLAG_0x180 0x180
#define FLAG_0x181 0x181
#define FLAG_0x182 0x182
#define FLAG_0x183 0x183
#define FLAG_0x184 0x184
#define FLAG_0x185 0x185
#define FLAG_0x186 0x186
#define FLAG_0x187 0x187
#define FLAG_0x188 0x188
#define FLAG_0x189 0x189
#define FLAG_0x18A 0x18A
#define FLAG_0x18B 0x18B
#define FLAG_0x18C 0x18C
#define FLAG_0x18D 0x18D
#define FLAG_0x18E 0x18E
#define FLAG_0x18F 0x18F
#define FLAG_0x190 0x190
#define FLAG_0x191 0x191
#define FLAG_0x192 0x192
#define FLAG_0x193 0x193
#define FLAG_0x194 0x194
#define FLAG_0x195 0x195
#define FLAG_0x196 0x196
#define FLAG_0x197 0x197
#define FLAG_0x198 0x198
#define FLAG_0x199 0x199
#define FLAG_0x19A 0x19A
#define FLAG_0x19B 0x19B
#define FLAG_0x19C 0x19C
#define FLAG_0x19D 0x19D
#define FLAG_0x19E 0x19E
#define FLAG_0x19F 0x19F
#define FLAG_0x1A0 0x1A0
#define FLAG_0x1A1 0x1A1
#define FLAG_0x1A2 0x1A2
#define FLAG_0x1A3 0x1A3
#define FLAG_0x1A4 0x1A4
#define FLAG_0x1A5 0x1A5
#define FLAG_0x1A6 0x1A6
#define FLAG_0x1A7 0x1A7
#define FLAG_0x1A8 0x1A8
#define FLAG_0x1A9 0x1A9
#define FLAG_0x1AA 0x1AA
#define FLAG_0x1AB 0x1AB
#define FLAG_0x1AC 0x1AC
#define FLAG_0x1AD 0x1AD
#define FLAG_0x1AE 0x1AE
#define FLAG_0x1AF 0x1AF
#define FLAG_0x1B0 0x1B0
#define FLAG_0x1B1 0x1B1
#define FLAG_0x1B2 0x1B2
#define FLAG_0x1B3 0x1B3
#define FLAG_0x1B4 0x1B4
#define FLAG_0x1B5 0x1B5
#define FLAG_0x1B6 0x1B6
#define FLAG_0x1B7 0x1B7
#define FLAG_0x1B8 0x1B8
#define FLAG_0x1B9 0x1B9
#define FLAG_0x1BA 0x1BA
#define FLAG_0x1BB 0x1BB
#define FLAG_0x1BC 0x1BC
#define FLAG_0x1BD 0x1BD
#define FLAG_0x1BE 0x1BE
#define FLAG_0x1BF 0x1BF
#define FLAG_0x1C0 0x1C0
#define FLAG_0x1C1 0x1C1
#define FLAG_0x1C2 0x1C2
#define FLAG_0x1C3 0x1C3
#define FLAG_0x1C4 0x1C4
#define FLAG_0x1C5 0x1C5
#define FLAG_0x1C6 0x1C6
#define FLAG_0x1C7 0x1C7
#define FLAG_0x1C8 0x1C8
#define FLAG_0x1C9 0x1C9
#define FLAG_0x1CA 0x1CA
#define FLAG_0x1CB 0x1CB
#define FLAG_0x1CC 0x1CC
#define FLAG_0x1CD 0x1CD
#define FLAG_0x1CE 0x1CE
#define FLAG_0x1CF 0x1CF
#define FLAG_0x1D0 0x1D0
#define FLAG_0x1D1 0x1D1
#define FLAG_0x1D2 0x1D2
#define FLAG_0x1D3 0x1D3
#define FLAG_0x1D4 0x1D4
#define FLAG_0x1D5 0x1D5
#define FLAG_0x1D6 0x1D6
#define FLAG_0x1D7 0x1D7
#define FLAG_0x1D8 0x1D8
#define FLAG_0x1D9 0x1D9
#define FLAG_0x1DA 0x1DA
#define FLAG_0x1DB 0x1DB
#define FLAG_0x1DC 0x1DC
#define FLAG_0x1DD 0x1DD
#define FLAG_0x1DE 0x1DE
#define FLAG_0x1DF 0x1DF
#define FLAG_0x1E0 0x1E0
#define FLAG_0x1E1 0x1E1
#define FLAG_0x1E2 0x1E2
#define FLAG_0x1E3 0x1E3
#define FLAG_MYSTERY_EVENT_DONE 0x1E4
#define FLAG_0x1E5 0x1E5
#define FLAG_0x1E6 0x1E6
#define FLAG_0x1E7 0x1E7
#define FLAG_0x1E8 0x1E8
#define FLAG_0x1E9 0x1E9
#define FLAG_0x1EA 0x1EA
#define FLAG_0x1EB 0x1EB
#define FLAG_0x1EC 0x1EC
#define FLAG_0x1ED 0x1ED
#define FLAG_0x1EE 0x1EE
#define FLAG_0x1EF 0x1EF
#define FLAG_0x1F0 0x1F0
#define FLAG_0x1F1 0x1F1
#define FLAG_0x1F2 0x1F2
#define FLAG_0x1F3 0x1F3
#define FLAG_0x1F5 0x1F5 // trick house end room?
// Hidden Items -- sorted by location
#define FLAG_HIDDEN_ITEMS_START 0x1F4
#define FLAG_HIDDEN_ITEM_TRICK_HOUSE_NUGGET (FLAG_HIDDEN_ITEMS_START + 0x01)
#define FLAG_HIDDEN_ITEM_UNDERWATER_1_CARBOS (FLAG_HIDDEN_ITEMS_START + 0x08)
#define FLAG_HIDDEN_ITEM_UNDERWATER_1_GREEN_SHARD (FLAG_HIDDEN_ITEMS_START + 0x09)
#define FLAG_HIDDEN_ITEM_UNDERWATER_1_PEARL (FLAG_HIDDEN_ITEMS_START + 0x0A)
#define FLAG_HIDDEN_ITEM_UNDERWATER_1_BIG_PEARL (FLAG_HIDDEN_ITEMS_START + 0x0B)
#define FLAG_HIDDEN_ITEM_UNDERWATER_1_HEART_SCALE_1 (FLAG_HIDDEN_ITEMS_START + 0x0D)
#define FLAG_HIDDEN_ITEM_UNDERWATER_1_CALCIUM (FLAG_HIDDEN_ITEMS_START + 0x24)
#define FLAG_HIDDEN_ITEM_UNDERWATER_1_HEART_SCALE_2 (FLAG_HIDDEN_ITEMS_START + 0x26)
#define FLAG_HIDDEN_ITEM_UNDERWATER_2_HEART_SCALE (FLAG_HIDDEN_ITEMS_START + 0x0E)
#define FLAG_HIDDEN_ITEM_UNDERWATER_2_ULTRA_BALL (FLAG_HIDDEN_ITEMS_START + 0x0F)
#define FLAG_HIDDEN_ITEM_UNDERWATER_2_STARDUST (FLAG_HIDDEN_ITEMS_START + 0x10)
#define FLAG_HIDDEN_ITEM_UNDERWATER_2_PEARL (FLAG_HIDDEN_ITEMS_START + 0x11)
#define FLAG_HIDDEN_ITEM_UNDERWATER_2_IRON (FLAG_HIDDEN_ITEMS_START + 0x13)
#define FLAG_HIDDEN_ITEM_UNDERWATER_2_YELLOW_SHARD (FLAG_HIDDEN_ITEMS_START + 0x12)
#define FLAG_HIDDEN_ITEM_UNDERWATER_2_BIG_PEARL (FLAG_HIDDEN_ITEMS_START + 0x14)
#define FLAG_HIDDEN_ITEM_UNDERWATER_2_BLUE_SHARD (FLAG_HIDDEN_ITEMS_START + 0x0C)
#define FLAG_HIDDEN_ITEM_UNDERWATER_3_STAR_PIECE (FLAG_HIDDEN_ITEMS_START + 0x15)
#define FLAG_HIDDEN_ITEM_UNDERWATER_3_HP_UP (FLAG_HIDDEN_ITEMS_START + 0x16)
#define FLAG_HIDDEN_ITEM_UNDERWATER_3_HEART_SCALE (FLAG_HIDDEN_ITEMS_START + 0x17)
#define FLAG_HIDDEN_ITEM_UNDERWATER_3_RED_SHARD (FLAG_HIDDEN_ITEMS_START + 0x18)
#define FLAG_HIDDEN_ITEM_UNDERWATER_4_PROTEIN (FLAG_HIDDEN_ITEMS_START + 0x19)
#define FLAG_HIDDEN_ITEM_UNDERWATER_4_PEARL (FLAG_HIDDEN_ITEMS_START + 0x1A)
#define FLAG_HIDDEN_ITEM_FALLARBOR_TOWN_NUGGET (FLAG_HIDDEN_ITEMS_START + 0x1C)
#define FLAG_HIDDEN_ITEM_LAVARIDGE_TOWN_ICE_HEAL (FLAG_HIDDEN_ITEMS_START + 0x00)
#define FLAG_HIDDEN_ITEM_ABANDONED_SHIP_RM_1_KEY (FLAG_HIDDEN_ITEMS_START + 0x1F)
#define FLAG_HIDDEN_ITEM_ABANDONED_SHIP_RM_2_KEY (FLAG_HIDDEN_ITEMS_START + 0x20)
#define FLAG_HIDDEN_ITEM_ABANDONED_SHIP_RM_4_KEY (FLAG_HIDDEN_ITEMS_START + 0x21)
#define FLAG_HIDDEN_ITEM_ABANDONED_SHIP_RM_6_KEY (FLAG_HIDDEN_ITEMS_START + 0x22)
#define FLAG_HIDDEN_ITEM_ARTISAN_CAVE_B1F_CALCIUM (FLAG_HIDDEN_ITEMS_START + 0x65)
#define FLAG_HIDDEN_ITEM_ARTISAN_CAVE_B1F_ZINC (FLAG_HIDDEN_ITEMS_START + 0x66)
#define FLAG_HIDDEN_ITEM_ARTISAN_CAVE_B1F_PROTEIN (FLAG_HIDDEN_ITEMS_START + 0x67)
#define FLAG_HIDDEN_ITEM_ARTISAN_CAVE_B1F_IRON (FLAG_HIDDEN_ITEMS_START + 0x68)
#define FLAG_HIDDEN_ITEM_GRANITE_CAVE_B2F_EVERSTONE_1 (FLAG_HIDDEN_ITEMS_START + 0x30)
#define FLAG_HIDDEN_ITEM_GRANITE_CAVE_B2F_EVERSTONE_2 (FLAG_HIDDEN_ITEMS_START + 0x31)
#define FLAG_HIDDEN_ITEM_JAGGED_PASS_GREAT_BALL (FLAG_HIDDEN_ITEMS_START + 0x4C)
#define FLAG_HIDDEN_ITEM_JAGGED_PASS_FULL_HEAL (FLAG_HIDDEN_ITEMS_START + 0x4D)
#define FLAG_HIDDEN_ITEM_LILYCOVE_CITY_HEART_SCALE (FLAG_HIDDEN_ITEMS_START + 0x1B)
#define FLAG_HIDDEN_ITEM_LILYCOVE_CITY_PP_UP (FLAG_HIDDEN_ITEMS_START + 0x2B)
#define FLAG_HIDDEN_ITEM_LILYCOVE_CITY_POKE_BALL (FLAG_HIDDEN_ITEMS_START + 0x4B)
#define FLAG_HIDDEN_ITEM_MT_PYRE_EXTERIOR_ULTRA_BALL (FLAG_HIDDEN_ITEMS_START + 0x1D)
#define FLAG_HIDDEN_ITEM_MT_PYRE_EXTERIOR_MAX_ETHER (FLAG_HIDDEN_ITEMS_START + 0x4E)
#define FLAG_HIDDEN_ITEM_MT_PYRE_SUMMIT_ZINC (FLAG_HIDDEN_ITEMS_START + 0x4F)
#define FLAG_HIDDEN_ITEM_MT_PYRE_SUMMIT_RARE_CANDY (FLAG_HIDDEN_ITEMS_START + 0x50)
#define FLAG_HIDDEN_ITEM_NAVEL_ROCK_TOP_SACRED_ASH (FLAG_HIDDEN_ITEMS_START + 0x6D)
#define FLAG_HIDDEN_ITEM_PETALBURG_CITY_RARE_CANDY (FLAG_HIDDEN_ITEMS_START + 0x5F)
#define FLAG_HIDDEN_ITEM_PETALBURG_WOODS_POTION (FLAG_HIDDEN_ITEMS_START + 0x3A)
#define FLAG_HIDDEN_ITEM_PETALBURG_WOODS_TINY_MUSHROOM_1 (FLAG_HIDDEN_ITEMS_START + 0x3B)
#define FLAG_HIDDEN_ITEM_PETALBURG_WOODS_TINY_MUSHROOM_2 (FLAG_HIDDEN_ITEMS_START + 0x3C)
#define FLAG_HIDDEN_ITEM_PETALBURG_WOODS_POKE_BALL (FLAG_HIDDEN_ITEMS_START + 0x3D)
#define FLAG_HIDDEN_ITEM_VICTORY_ROAD_B2F_ELIXIR (FLAG_HIDDEN_ITEMS_START + 0x52)
#define FLAG_HIDDEN_ITEM_VICTORY_ROAD_B2F_MAX_REPEL (FLAG_HIDDEN_ITEMS_START + 0x53)
#define FLAG_HIDDEN_ITEM_SAFARI_ZONE_NORTH_EAST_RARE_CANDY (FLAG_HIDDEN_ITEMS_START + 0x6A)
#define FLAG_HIDDEN_ITEM_SAFARI_ZONE_NORTH_EAST_ZINC (FLAG_HIDDEN_ITEMS_START + 0x6B)
#define FLAG_HIDDEN_ITEM_SAFARI_ZONE_SOUTH_EAST_PP_UP (FLAG_HIDDEN_ITEMS_START + 0x6C)
#define FLAG_HIDDEN_ITEM_SAFARI_ZONE_SOUTH_EAST_FULL_RESTORE (FLAG_HIDDEN_ITEMS_START + 0x69)
#define FLAG_HIDDEN_ITEM_SS_TIDAL_LOWER_DECK_LEFTOVERS (FLAG_HIDDEN_ITEMS_START + 0x23)
#define FLAG_HIDDEN_ITEM_VICTORY_ROAD_1F_ULTRA_BALL (FLAG_HIDDEN_ITEMS_START + 0x51)
#define FLAG_HIDDEN_ITEM_ROUTE_104_SUPER_POTION (FLAG_HIDDEN_ITEMS_START + 0x2C)
#define FLAG_HIDDEN_ITEM_ROUTE_104_POKE_BALL (FLAG_HIDDEN_ITEMS_START + 0x3E)
#define FLAG_HIDDEN_ITEM_ROUTE_104_POTION (FLAG_HIDDEN_ITEMS_START + 0x25)
#define FLAG_HIDDEN_ITEM_ROUTE_104_ANTIDOTE (FLAG_HIDDEN_ITEMS_START + 0x55)
#define FLAG_HIDDEN_ITEM_ROUTE_104_HEART_SCALE (FLAG_HIDDEN_ITEMS_START + 0x58)
#define FLAG_HIDDEN_ITEM_ROUTE_105_HEART_SCALE (FLAG_HIDDEN_ITEMS_START + 0x59)
#define FLAG_HIDDEN_ITEM_ROUTE_105_BIG_PEARL (FLAG_HIDDEN_ITEMS_START + 0x6F)
#define FLAG_HIDDEN_ITEM_ROUTE_106_POKE_BALL (FLAG_HIDDEN_ITEMS_START + 0x3F)
#define FLAG_HIDDEN_ITEM_ROUTE_106_STARDUST (FLAG_HIDDEN_ITEMS_START + 0x2E)
#define FLAG_HIDDEN_ITEM_ROUTE_106_HEART_SCALE (FLAG_HIDDEN_ITEMS_START + 0x2F)
#define FLAG_HIDDEN_ITEM_ROUTE_108_RARE_CANDY (FLAG_HIDDEN_ITEMS_START + 0x56)
#define FLAG_HIDDEN_ITEM_ROUTE_109_REVIVE (FLAG_HIDDEN_ITEMS_START + 0x32)
#define FLAG_HIDDEN_ITEM_ROUTE_109_HEART_SCALE_1 (FLAG_HIDDEN_ITEMS_START + 0x34)
#define FLAG_HIDDEN_ITEM_ROUTE_109_GREAT_BALL (FLAG_HIDDEN_ITEMS_START + 0x33)
#define FLAG_HIDDEN_ITEM_ROUTE_109_ETHER (FLAG_HIDDEN_ITEMS_START + 0x40)
#define FLAG_HIDDEN_ITEM_ROUTE_109_HEART_SCALE_2 (FLAG_HIDDEN_ITEMS_START + 0x5A)
#define FLAG_HIDDEN_ITEM_ROUTE_109_HEART_SCALE_3 (FLAG_HIDDEN_ITEMS_START + 0x5B)
#define FLAG_HIDDEN_ITEM_ROUTE_110_REVIVE (FLAG_HIDDEN_ITEMS_START + 0x36)
#define FLAG_HIDDEN_ITEM_ROUTE_110_GREAT_BALL (FLAG_HIDDEN_ITEMS_START + 0x35)
#define FLAG_HIDDEN_ITEM_ROUTE_110_POKE_BALL (FLAG_HIDDEN_ITEMS_START + 0x41)
#define FLAG_HIDDEN_ITEM_ROUTE_110_FULL_HEAL (FLAG_HIDDEN_ITEMS_START + 0x37)
#define FLAG_HIDDEN_ITEM_ROUTE_111_STARDUST (FLAG_HIDDEN_ITEMS_START + 0x02)
#define FLAG_HIDDEN_ITEM_ROUTE_111_PROTEIN (FLAG_HIDDEN_ITEMS_START + 0x38)
#define FLAG_HIDDEN_ITEM_ROUTE_111_RARE_CANDY (FLAG_HIDDEN_ITEMS_START + 0x39)
#define FLAG_HIDDEN_ITEM_ROUTE_113_ETHER (FLAG_HIDDEN_ITEMS_START + 0x03)
#define FLAG_HIDDEN_ITEM_ROUTE_113_TM_32 (FLAG_HIDDEN_ITEMS_START + 0x1E)
#define FLAG_HIDDEN_ITEM_ROUTE_113_NUGGET (FLAG_HIDDEN_ITEMS_START + 0x62)
#define FLAG_HIDDEN_ITEM_ROUTE_114_CARBOS (FLAG_HIDDEN_ITEMS_START + 0x04)
#define FLAG_HIDDEN_ITEM_ROUTE_113_REVIVE (FLAG_HIDDEN_ITEMS_START + 0x2A)
#define FLAG_HIDDEN_ITEM_ROUTE_115_HEART_SCALE (FLAG_HIDDEN_ITEMS_START + 0x61)
#define FLAG_HIDDEN_ITEM_ROUTE_116_SUPER_POTION (FLAG_HIDDEN_ITEMS_START + 0x2D)
#define FLAG_HIDDEN_ITEM_ROUTE_116_BLACK_GLASSES (FLAG_HIDDEN_ITEMS_START + 0x60)
#define FLAG_HIDDEN_ITEM_ROUTE_117_REPEL (FLAG_HIDDEN_ITEMS_START + 0x48)
#define FLAG_HIDDEN_ITEM_ROUTE_118_HEART_SCALE (FLAG_HIDDEN_ITEMS_START + 0x42)
#define FLAG_HIDDEN_ITEM_ROUTE_118_IRON (FLAG_HIDDEN_ITEMS_START + 0x43)
#define FLAG_HIDDEN_ITEM_ROUTE_119_CALCIUM (FLAG_HIDDEN_ITEMS_START + 0x05)
#define FLAG_HIDDEN_ITEM_ROUTE_119_ULTRA_BALL (FLAG_HIDDEN_ITEMS_START + 0x06)
#define FLAG_HIDDEN_ITEM_ROUTE_119_FULL_HEAL (FLAG_HIDDEN_ITEMS_START + 0x44)
#define FLAG_HIDDEN_ITEM_ROUTE_119_MAX_ETHER (FLAG_HIDDEN_ITEMS_START + 0x57)
#define FLAG_HIDDEN_ITEM_ROUTE_120_RARE_CANDY_1 (FLAG_HIDDEN_ITEMS_START + 0x47)
#define FLAG_HIDDEN_ITEM_ROUTE_120_REVIVE (FLAG_HIDDEN_ITEMS_START + 0x54)
#define FLAG_HIDDEN_ITEM_ROUTE_120_RARE_CANDY_2 (FLAG_HIDDEN_ITEMS_START + 0x45)
#define FLAG_HIDDEN_ITEM_ROUTE_120_ZINC (FLAG_HIDDEN_ITEMS_START + 0x46)
#define FLAG_HIDDEN_ITEM_ROUTE_121_HP_UP (FLAG_HIDDEN_ITEMS_START + 0x27)
#define FLAG_HIDDEN_ITEM_ROUTE_121_NUGGET (FLAG_HIDDEN_ITEMS_START + 0x28)
#define FLAG_HIDDEN_ITEM_ROUTE_121_FULL_HEAL (FLAG_HIDDEN_ITEMS_START + 0x49)
#define FLAG_HIDDEN_ITEM_ROUTE_121_MAX_REVIVE (FLAG_HIDDEN_ITEMS_START + 0x64)
#define FLAG_HIDDEN_ITEM_ROUTE_123_SUPER_REPEL (FLAG_HIDDEN_ITEMS_START + 0x07)
#define FLAG_HIDDEN_ITEM_ROUTE_123_REVIVE (FLAG_HIDDEN_ITEMS_START + 0x29)
#define FLAG_HIDDEN_ITEM_ROUTE_123_HYPER_POTION (FLAG_HIDDEN_ITEMS_START + 0x4A)
#define FLAG_HIDDEN_ITEM_ROUTE_123_PP_UP (FLAG_HIDDEN_ITEMS_START + 0x63)
#define FLAG_HIDDEN_ITEM_ROUTE_123_RARE_CANDY (FLAG_HIDDEN_ITEMS_START + 0x6E)
#define FLAG_HIDDEN_ITEM_ROUTE_128_HEART_SCALE_1 (FLAG_HIDDEN_ITEMS_START + 0x5C)
#define FLAG_HIDDEN_ITEM_ROUTE_128_HEART_SCALE_2 (FLAG_HIDDEN_ITEMS_START + 0x5D)
#define FLAG_HIDDEN_ITEM_ROUTE_128_HEART_SCALE_3 (FLAG_HIDDEN_ITEMS_START + 0x5E)
// Event Flags
#define FLAG_HIDE_ROUTE_101_BIRCH_STARTERS_BAG 0x2BC
#define FLAG_HIDE_APPRENTICE 0x2BD
#define FLAG_HIDE_POKEMON_CENTER_2F_MYSTERY_GIFT_MAN 0x2BE
#define FLAG_HIDE_UNION_ROOM_PLAYER_1 0x2BF
#define FLAG_HIDE_UNION_ROOM_PLAYER_2 0x2C0
#define FLAG_HIDE_UNION_ROOM_PLAYER_3 0x2C1
#define FLAG_HIDE_UNION_ROOM_PLAYER_4 0x2C2
#define FLAG_HIDE_UNION_ROOM_PLAYER_5 0x2C3
#define FLAG_HIDE_UNION_ROOM_PLAYER_6 0x2C4
#define FLAG_HIDE_UNION_ROOM_PLAYER_7 0x2C5
#define FLAG_HIDE_UNION_ROOM_PLAYER_8 0x2C6
#define FLAG_HIDE_BATTLE_TOWER_MULTI_BATTLE_PARTNER_1 0x2C7
#define FLAG_HIDE_BATTLE_TOWER_MULTI_BATTLE_PARTNER_2 0x2C8
#define FLAG_HIDE_BATTLE_TOWER_MULTI_BATTLE_PARTNER_3 0x2C9
#define FLAG_HIDE_BATTLE_TOWER_MULTI_BATTLE_PARTNER_4 0x2CA
#define FLAG_HIDE_BATTLE_TOWER_MULTI_BATTLE_PARTNER_5 0x2CB
#define FLAG_HIDE_BATTLE_TOWER_MULTI_BATTLE_PARTNER_6 0x2CC
#define FLAG_HIDE_SAFARI_ZONE_SOUTH_CONSTRUCTION_WORKERS 0x2CD
#define FLAG_HIDE_MEW 0x2CE
#define FLAG_HIDE_ROUTE_104_RIVAL 0x2CF
#define FLAG_HIDE_ROUTE_101_BIRCH_ZIGZAGOON_BATTLE 0x2D0
#define FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_BIRCH 0x2D1
#define FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_BEDROOM 0x2D2
#define FLAG_HIDE_ROUTE_103_RIVAL 0x2D3
#define FLAG_HIDE_PETALBURG_WOODS_DEVON_EMPLOYEE 0x2D4
#define FLAG_HIDE_PETALBURG_WOODS_AQUA_GRUNT 0x2D5
#define FLAG_HIDE_PETALBURG_CITY_WALLY 0x2D6
#define FLAG_HIDE_MOSSDEEP_CITY_STEVENS_HOUSE_INVISIBLE_NINJA_BOY 0x2D7
#define FLAG_HIDE_PETALBURG_CITY_WALLYS_AUNT 0x2D8
#define FLAG_UNUSED_0x2D9 0x2D9
#define FLAG_HIDE_LILYCOVE_FAN_CLUB_INTERVIEWER 0x2DA
#define FLAG_HIDE_RUSTBORO_CITY_AQUA_GRUNT 0x2DB
#define FLAG_HIDE_RUSTBORO_CITY_DEVON_EMPLOYEE_1 0x2DC
#define FLAG_HIDE_SEAFLOOR_CAVERN_ROOM_9_KYOGRE_2 0x2DD
#define FLAG_HIDE_PLAYERS_HOUSE_DAD 0x2DE
#define FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_SIBLING 0x2DF
#define FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_SIBLING 0x2E0
#define FLAG_HIDE_MOSSDEEP_CITY_SPACE_CENTER_INVISIBLE_NINJA_BOY 0x2E1
#define FLAG_HIDE_ROUTE_104_MR_BRINEY 0x2E2
#define FLAG_HIDE_BRINEYS_HOUSE_MR_BRINEY 0x2E3
#define FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN 0x2E4
#define FLAG_HIDE_ROUTE_108_MR_BRINEY 0x2E5
#define FLAG_HIDE_ROUTE_104_MR_BRINEY_BOAT 0x2E6
#define FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD_TOWN 0x2E7
#define FLAG_HIDE_ROUTE_109_MR_BRINEY_BOAT 0x2E8
#define FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_BRENDAN 0x2E9
#define FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_BRENDAN 0x2EA
#define FLAG_HIDE_SAFARI_ZONE_SOUTH_EAST_EXPANSION 0x2EB
#define FLAG_HIDE_LILYCOVE_HARBOR_EON_TICKET_TAKER 0x2EC
#define FLAG_HIDE_SLATEPORT_CITY_SCOTT 0x2ED
#define FLAG_HIDE_ROUTE_101_ZIGZAGOON 0x2EE
#define FLAG_HIDE_VICTORY_ROAD_EXIT_WALLY 0x2EF
#define FLAG_HIDE_LITTLEROOT_TOWN_MOM_OUTSIDE 0x2F0
#define FLAG_HIDE_MOSSDEEP_CITY_SPACE_CENTER_1F_STEVEN 0x2F1
#define FLAG_HIDE_LITTLEROOT_TOWN_PLAYERS_HOUSE_VIGOROTH_1 0x2F2
#define FLAG_HIDE_LITTLEROOT_TOWN_PLAYERS_HOUSE_VIGOROTH_2 0x2F3
#define FLAG_HIDE_MOSSDEEP_CITY_SPACE_CENTER_1F_TEAM_MAGMA 0x2F4
#define FLAG_HIDE_LITTLE_ROOT_TOWN_PLAYERS_BEDROOM_MOM 0x2F5
#define FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_MOM 0x2F6
#define FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_MOM 0x2F7
#define FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_BEDROOM 0x2F8
#define FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_TRUCK 0x2F9
#define FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_TRUCK 0x2FA
#define FLAG_HIDE_DEOXYS 0x2FB
#define FLAG_HIDE_BIRTH_ISLAND_DEOXYS_TRIANGLE 0x2FC
#define FLAG_HIDE_MAUVILLE_CITY_SCOTT 0x2FD
#define FLAG_HIDE_VERDANTURF_TOWN_SCOTT 0x2FE
#define FLAG_HIDE_FALLORBOR_TOWN_BATTLE_TENT_SCOTT 0x2FF
#define FLAG_HIDE_ROUTE_111_VICTOR_WINSTRATE 0x300
#define FLAG_HIDE_ROUTE_111_VICTORIA_WINSTRATE 0x301
#define FLAG_HIDE_ROUTE_111_VIVI_WINSTRATE 0x302
#define FLAG_HIDE_ROUTE_111_VICKY_WINSTRATE 0x303
#define FLAG_HIDE_PETALYBURG_GYM_NORMAN 0x304
#define FLAG_HIDE_SKY_PILLAR_TOP_RAYQUAZA_2 0x305
#define FLAG_HIDE_LILYCOVE_CONTEST_HALL_CONTEST_ATTENDANT_1 0x306
#define FLAG_HIDE_LILYCOVE_MUSEUM_CURATOR 0x307
#define FLAG_HIDE_LILYCOVE_MUSEUM_PATRON_1 0x308
#define FLAG_HIDE_LILYCOVE_MUSEUM_PATRON_2 0x309
#define FLAG_HIDE_LILYCOVE_MUSEUM_PATRON_3 0x30A
#define FLAG_HIDE_LILYCOVE_MUSEUM_PATRON_4 0x30B
#define FLAG_HIDE_LILYCOVE_MUSEUM_TOURISTS 0x30C
#define FLAG_HIDE_PETALBURG_GYM_GREETER 0x30D
#define FLAG_HIDE_MARINE_CAVE_KYOGRE 0x30E
#define FLAG_HIDE_TERRA_CAVE_GROUDON 0x30F
#define FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_RIVAL_MOM 0x310
#define FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_RIVAL_MOM 0x311
#define FLAG_HIDE_ROUTE_119_SCOTT 0x312
#define FLAG_HIDE_LILCOVE_MOTEL_SCOTT 0x313
#define FLAG_HIDE_MOSSDEEP_CITY_SCOTT 0x314
#define FLAG_HIDE_FANCLUB_OLD_LADY 0x315
#define FLAG_HIDE_FANCLUB_BOY 0x316
#define FLAG_HIDE_FANCLUB_LITTLE_BOY 0x317
#define FLAG_HIDE_FANCLUB_LADY 0x318
#define FLAG_HIDE_EVER_GRANDE_POKEMON_CENTER_1F_SCOTT 0x319
#define FLAG_HIDE_LITTLEROOT_TOWN_RIVAL 0x31A
#define FLAG_HIDE_LITTLEROOT_TOWN_BIRCH 0x31B
#define FLAG_HIDE_ROUTE_111_GABBY_AND_TY_1 0x31C
#define FLAG_HIDE_ROUTE_118_GABBY_AND_TY_1 0x31D
#define FLAG_HIDE_ROUTE_120_GABBY_AND_TY_1 0x31E
#define FLAG_HIDE_ROUTE_111_GABBY_AND_TY_3 0x31F
#define FLAG_HIDE_LUGIA 0x320
#define FLAG_HIDE_HOOH 0x321
#define FLAG_HIDE_LILYCOVE_CONTEST_HALL_REPORTER 0x322
#define FLAG_HIDE_SLATEPORT_CITY_CONTEST_REPORTER 0x323
#define FLAG_HIDE_MAUVILLE_CITY_WALLY 0x324
#define FLAG_HIDE_MAUVILLE_CITY_WALLYS_UNCLE 0x325
#define FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WALLY 0x326
#define FLAG_HIDE_RUSTURF_TUNNEL_LOVER_MAN 0x327
#define FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_LOVER_MAN 0x328
#define FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_WALLYS_UNCLE 0x329
#define FLAG_HIDE_SS_TIDAL_CORRIDOR_SCOTT 0x32A
#define FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_POKEBALL_CYNDAQUIL 0x32B
#define FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_POKEBALL_TOTODILE 0x32C
#define FLAG_HIDE_ROUTE_116_DROPPED_GLASSES_MAN 0x32D
#define FLAG_HIDE_RUSBORO_CITY_RIVAL 0x32E
#define FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F_SWABLU_DOLL 0x32F
#define FLAG_HIDE_SOOTOPOLIS_CITY_WALLACE 0x330
#define FLAG_HIDE_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F_POKE_BALL 0x331
#define FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_2F_POKE_BALL 0x332
#define FLAG_HIDE_ROUTE_112_TEAM_MAGMA 0x333
#define FLAG_HIDE_CAVE_OF_ORIGIN_B1F_WALLACE 0x334
#define FLAG_HIDE_AQUA_HIDEOUT_1F_GRUNT_1_BLOCKING_ENTRANCE 0x335
#define FLAG_HIDE_AQUA_HIDEOUT_1F_GRUNT_2_BLOCKING_ENTRANCE 0x336
#define FLAG_HIDE_MOSSDEEP_CITY_TEAM_MAGMA 0x337
#define FLAG_HIDE_PETALBURG_GYM_WALLYS_UNCLE 0x338
#define FLAG_UNUSED_0x339 0x339
#define FLAG_HIDE_SOOTOPOLIS_CITY_ARCHIE 0x33A
#define FLAG_HIDE_SOOTOPOLIS_CITY_MAXIE 0x33B
#define FLAG_HIDE_SEAFLOOR_CAVERN_ROOM_9_ARCHIE 0x33C
#define FLAG_HIDE_SEAFLOOR_CAVERN_ROOM_9_MAXIE 0x33D
#define FLAG_HIDE_PETALBURG_CITY_WALLYS_UNCLE 0x33E
#define FLAG_HIDE_SEAFLOOR_CAVERN_ROOM_9_MAGMA_GRUNTS 0x33F
#define FLAG_HIDE_LILYCOVE_CONTEST_HALL_BLEND_MASTER_ONLOOKERS 0x340
#define FLAG_HIDE_GRANITE_CAVE_STEVEN 0x341
#define FLAG_HIDE_ROUTE_128_STEVEN 0x342
#define FLAG_HIDE_SLATEPORT_CITY_GABBY_AND_TY 0x343
#define FLAG_HIDE_BATTLE_FRONTIER_RECEPTION_GATE_SCOTT 0x344
#define FLAG_HIDE_ROUTE_110_BIRCH 0x345
#define FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_POKEBALL_CHIKORITA 0x346
#define FLAG_HIDE_SOOTOPOLIS_CITY_MAN_1 0x347
#define FLAG_HIDE_SLATEPORT_CITY_CAPTAIN_STERN 0x348
#define FLAG_HIDE_SLATEPORT_CITY_HARBOR_CAPTAIN_STERN 0x349
#define FLAG_HIDE_BATTLE_FRONTIER_SUDOWOODO 0x34A
#define FLAG_HIDE_ROUTE_111_ROCK_SMASH_TIP_GUY 0x34B
#define FLAG_HIDE_RUSTBORO_CITY_SCIENTIST 0x34C
#define FLAG_HIDE_SLATEPORT_CITY_HARBOR_AQUA_GRUNT 0x34D
#define FLAG_HIDE_SLATEPORT_CITY_HARBOR_ARCHIE 0x34E
#define FLAG_HIDE_JAGGED_PASS_MAGMA_GUARD 0x34F
#define FLAG_HIDE_SLATEPORT_CITY_HARBOR_SUBMARINE_SHADOW 0x350
#define FLAG_HIDE_LITTLEROOT_TOWN_MAYS_HOUSE_2F_PICHU_DOLL 0x351
#define FLAG_HIDE_MAGMA_HIDEOUT_4F_GROUDON_2 0x352
#define FLAG_HIDE_ROUTE_119_RIVAL 0x353
#define FLAG_HIDE_LILYCOVE_CITY_AQUA_GRUNTS 0x354
#define FLAG_HIDE_MAGMA_HIDEOUT_4F_GROUDON_1 0x355
#define FLAG_HIDE_SOOTOPOLIS_CITY_RESIDENTS 0x356
#define FLAG_HIDE_SKY_PILLAR_WALLACE 0x357
#define FLAG_HIDE_MT_PYRE_SUMMIT_MAXIE 0x358
#define FLAG_HIDE_MAGMA_HIDEOUT_GRUNTS 0x359
#define FLAG_HIDE_VICTORY_ROAD_ENTRANCE_WALLY 0x35A
#define FLAG_HIDE_SEAFLOOR_CAVERN_ROOM_9_KYOGRE_1 0x35B
#define FLAG_HIDE_SLATEPORT_CITY_HARBOR_SS_TIDAL 0x35C
#define FLAG_HIDE_LILYCOVE_HARBOR_SSTIDAL 0x35D
#define FLAG_HIDE_MOSSDEEP_CITY_SPACE_CENTER_2F_TEAM_MAGMA 0x35E
#define FLAG_HIDE_MOSSDEEP_CITY_SPACE_CENTER_2F_STEVEN 0x35F
#define FLAG_HIDE_BATTLE_TOWER_MULTI_BATTLE_PARTNER_ALT_1 0x360
#define FLAG_HIDE_BATTLE_TOWER_MULTI_BATTLE_PARTNER_ALT_2 0x361
#define FLAG_HIDE_PETALBURG_GYM_WALLY 0x362
#define FLAG_UNKNOWN_0x363 0x363
#define FLAG_HIDE_LITTLEROOT_TOWN_FAT_MAN 0x364
#define FLAG_HIDE_SLATEPORT_CITY_STERNS_SHIPYARD_MR_BRINEY 0x365
#define FLAG_HIDE_LANETTES_HOUSE_LANETTE 0x366
#define FLAG_HIDE_FALLORBOR_POKEMON_CENTER_LANETTE 0x367
#define FLAG_HIDE_TRICK_HOUSE_ENTRANCE_MAN 0x368
#define FLAG_HIDE_LILYCOVE_CONTEST_HALL_POKEBLOCK_EXPERT 0x369
#define FLAG_HIDE_DESERT_UNDERPASS_FOSSIL 0x36A
#define FLAG_HIDE_ROUTE_111_PLAYER_DESCENT 0x36B
#define FLAG_HIDE_ROUTE_111_DESERT_FOSSIL 0x36C
#define FLAG_HIDE_MT_CHIMNEY_TRAINERS 0x36D
#define FLAG_HIDE_RUSTURF_TUNNEL_AQUA_GRUNT 0x36E
#define FLAG_HIDE_RUSTURF_TUNNEL_OLD_MAN 0x36F
#define FLAG_HIDE_RUSTURF_TUNNEL_PEEKO 0x370
#define FLAG_HIDE_BRINEYS_HOUSE_PEEKO 0x371
#define FLAG_HIDE_SLATEPORT_CITY_TEAM_AQUA 0x372
#define FLAG_HIDE_SLATEPORT_CITY_OCEANIC_MUSEUM_AQUA_GRUNTS 0x373
#define FLAG_HIDE_SLATEPORT_CITY_OCEANIC_MUSEUM_2F_AQUA_GRUNT_1 0x374
#define FLAG_HIDE_SLATEPORT_CITY_OCEANIC_MUSEUM_2F_AQUA_GRUNT_2 0x375
#define FLAG_HIDE_SLATEPORT_CITY_OCEANIC_MUSEUM_2F_ARCHIE 0x376
#define FLAG_HIDE_SLATEPORT_CITY_OCEANIC_MUSEUM_2F_CAPTAIN_STERN 0x377
#define FLAG_HIDE_BATTLE_TOWER_OPPONENT 0x378
#define FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_RIVAL 0x379
#define FLAG_HIDE_ROUTE_119_TEAM_AQUA 0x37A
#define FLAG_HIDE_ROUTE_116_MR_BRINEY 0x37B
#define FLAG_HIDE_WEATHER_INSTITUTE_1F_WORKERS 0x37C
#define FLAG_HIDE_WEATHER_INSTITUTE_2F_WORKERS 0x37D
#define FLAG_HIDE_ROUTE_116_TUNNELER 0x37E
#define FLAG_HIDE_LILYCOVE_CONTEST_HALL_CONTEST_ATTENDANT_2 0x37F
#define FLAG_HIDE_LITTLEROOT_TOWN_BIRCHS_LAB_UNKNOWN_0x380 0x380
#define FLAG_HIDE_ROUTE_101_BIRCH 0x381
#define FLAG_HIDE_ROUTE_103_BIRCH 0x382
#define FLAG_HIDE_TRICK_HOUSE_END_MAN 0x383
#define FLAG_HIDE_ROUTE_110_TEAM_AQUA 0x384
#define FLAG_HIDE_ROUTE_118_GABBY_AND_TY_2 0x385
#define FLAG_HIDE_ROUTE_120_GABBY_AND_TY_2 0x386
#define FLAG_HIDE_ROUTE_111_GABBY_AND_TY_2 0x387
#define FLAG_HIDE_ROUTE_118_GABBY_AND_TY_3 0x388
#define FLAG_HIDE_SLATEPORT_CITY_HARBOR_PATRONS 0x389
#define FLAG_HIDE_ROUTE_104_WHITE_HERB_FLORIST 0x38A
#define FLAG_HIDE_FALLARBOR_AZURILL 0x38B
#define FLAG_HIDE_LILYCOVE_HARBOR_FERRY_ATTENDANT 0x38C
#define FLAG_HIDE_LILYCOVE_HARBOR_FERRY_SAILOR 0x38D
#define FLAG_HIDE_SOUTHERN_ISLAND_EON_STONE 0x38E
#define FLAG_HIDE_SOUTHERN_ISLAND_UNCHOSEN_EON_DUO_MON 0x38F
#define FLAG_HIDE_MAUVILLE_CITY_WATTSON 0x390
#define FLAG_HIDE_MAUVILLE_GYM_WATTSON 0x391
#define FLAG_0x392 0x392
#define FLAG_0x393 0x393
#define FLAG_HIDE_MT_PYRE_SUMMIT_ARCHIE 0x394
#define FLAG_HIDE_MT_PYRE_SUMMIT_TEAM_AQUA 0x395
#define FLAG_HIDE_BATTLE_TOWER_REPORTER 0x396
#define FLAG_HIDE_ROUTE_110_RIVAL_1 0x397
#define FLAG_HIDE_CHAMPIONS_ROOM_RIVAL 0x398
#define FLAG_HIDE_CHAMPIONS_ROOM_BIRCH 0x399
#define FLAG_HIDE_ROUTE_110_RIVAL_2 0x39A
#define FLAG_HIDE_ROUTE_119_RIVAL_ON_BIKE 0x39B
#define FLAG_HIDE_AQUA_HIDEOUT_GRUNTS 0x39C
#define FLAG_HIDE_LILCOVE_MOTEL_GAME_DESIGNERS 0x39D
#define FLAG_HIDE_MT_CHIMNEY_TEAM_AQUA 0x39E
#define FLAG_HIDE_MT_CHIMNEY_TEAM_MAGMA 0x39F
#define FLAG_HIDE_FALLARBOR_HOUSE_1_PROF_COZMO 0x3A0
#define FLAG_HIDE_LAVARIDGE_TOWN_RIVAL_1 0x3A1
#define FLAG_HIDE_LAVARIDGE_TOWN_RIVAL_2 0x3A2
#define FLAG_HIDE_RUSTURF_TUNNEL_ROCK_1 0x3A3
#define FLAG_HIDE_RUSTURF_TUNNEL_ROCK_2 0x3A4
#define FLAG_HIDE_FORTREE_CITY_HOUSE_4_WINGULL 0x3A5
#define FLAG_HIDE_MOSSDEEP_CITY_HOUSE_2_WINGULL 0x3A6
#define FLAG_HIDE_REGIROCK 0x3A7
#define FLAG_HIDE_REGICE 0x3A8
#define FLAG_HIDE_REGISTEEL 0x3A9
#define FLAG_HIDE_METEOR_FALLS_TEAM_AQUA 0x3AA
#define FLAG_HIDE_METEOR_FALLS_TEAM_MAGMA 0x3AB
#define FLAG_HIDE_DEWFORD_HALL_SLUDGE_BOMB_MAN 0x3AC
#define FLAG_HIDE_SEAFLOOR_CAVERN_ENTRANCE_AQUA_GRUNT 0x3AD
#define FLAG_HIDE_METEOR_FALLS_1F_1R_COZMO 0x3AE
#define FLAG_HIDE_AQUA_HIDEOUT_B2F_SUBMARINE_SHADOW 0x3AF
#define FLAG_HIDE_ROUTE_128_ARCHIE 0x3B0
#define FLAG_HIDE_ROUTE_128_MAXIE 0x3B1
#define FLAG_HIDE_SEAFLOOR_CAVERN_AQUA_GRUNTS 0x3B2
#define FLAG_HIDE_ROUTE_116_DEVON_EMPLOYEE 0x3B3
#define FLAG_HIDE_SLATEPORT_CITY_TM_SALESMAN 0x3B4
#define FLAG_HIDE_RUSTBORO_CITY_DEVON_CORP_3F_EMPLOYEE 0x3B5
#define FLAG_HIDE_SS_TIDAL_CORRIDOR_MR_BRINEY 0x3B6
#define FLAG_HIDE_SS_TIDAL_ROOMS_SNATCH_GIVER 0x3B7
#define FLAG_0x3B8 0x3B8
#define FLAG_0x3B9 0x3B9
#define FLAG_0x3BA 0x3BA
#define FLAG_0x3BB 0x3BB
#define FLAG_0x3BC 0x3BC
#define FLAG_0x3BD 0x3BD
#define FLAG_0x3BE 0x3BE
#define FLAG_0x3BF 0x3BF
#define FLAG_HIDE_ROUTE_111_SECRET_POWER_MAN 0x3C0
#define FLAG_HIDE_SLATEPORT_MUSEUM_POPULATION 0x3C1
#define FLAG_HIDE_LILYCOVE_DEPARTMENT_STORE_ROOFTOP_SALE_WOMAN 0x3C2
#define FLAG_HIDE_MIRAGE_TOWER_ROOT_FOSSIL 0x3C3
#define FLAG_HIDE_MIRAGE_TOWER_CLAW_FOSSIL 0x3C4
#define FLAG_HIDE_SLATEPORT_CITY_OCEANIC_MUSEUM_FAMILIAR_AQUA_GRUNT 0x3C5
#define FLAG_HIDE_ROUTE_118_STEVEN 0x3C6
#define FLAG_HIDE_MOSSDEEP_CITY_STEVENS_HOUSE_STEVEN 0x3C7
#define FLAG_HIDE_MOSSDEEP_CITY_STEVENS_HOUSE_BELDUM_POKEBALL 0x3C8
#define FLAG_HIDE_FORTREE_CITY_KECLEON 0x3C9
#define FLAG_HIDE_ROUTE_120_KECLEON_1 0x3CA
#define FLAG_HIDE_LILYCOVE_CITY_RIVAL 0x3CB
#define FLAG_0x3CC 0x3CC
#define FLAG_HIDE_SOOTOPOLIS_CITY_STEVEN 0x3CD
#define FLAG_HIDE_NEW_MAUVILLE_VOLTORB_1 0x3CE
#define FLAG_HIDE_NEW_MAUVILLE_VOLTORB_2 0x3CF
#define FLAG_HIDE_NEW_MAUVILLE_VOLTORB_3 0x3D0
#define FLAG_HIDE_AQUA_HIDEOUT_B1F_ELECTRODE_1 0x3D1
#define FLAG_HIDE_AQUA_HIDEOUT_B1F_ELECTRODE_2 0x3D2
#define FLAG_HIDE_OLDALE_TOWN_RIVAL 0x3D3
#define FLAG_HIDE_UNDERWATER_SEA_FLOOR_CAVERN_STOLEN_SUBMARINE 0x3D4
#define FLAG_HIDE_ROUTE_120_KECLEON_BRIDGE 0x3D5
#define FLAG_HIDE_ROUTE_120_KECLEON_2 0x3D6
#define FLAG_HIDE_RUSTURF_TUNNEL_LOVER_WOMAN 0x3D7
#define FLAG_HIDE_VERDANTURF_TOWN_WANDAS_HOUSE_LOVER_WOMAN 0x3D8
#define FLAG_HIDE_ROUTE_120_KECLEON_3 0x3D9
#define FLAG_HIDE_ROUTE_120_KECLEON_4 0x3DA
#define FLAG_HIDE_ROUTE_120_KECLEON_5 0x3DB
#define FLAG_HIDE_ROUTE_120_KECLEON_6 0x3DC
#define FLAG_HIDE_ROUTE_119_KECLEON_1 0x3DD
#define FLAG_HIDE_ROUTE_119_KECLEON_2 0x3DE
#define FLAG_HIDE_ROUTE_101_BOY 0x3DF
#define FLAG_HIDE_WEATHER_INSTITUTE_2F_AQUA_GRUNT_M 0x3E0
#define FLAG_HIDE_LILYCOVE_POKEMON_CENTER_LADY 0x3E1
#define FLAG_HIDE_MT_CHIMNEY_LAVA_COOKIE_LADY 0x3E2
#define FLAG_HIDE_PETALBURG_CITY_SCOTT 0x3E3
#define FLAG_HIDE_SOOTOPOLIS_CITY_RAYQUAZA 0x3E4
#define FLAG_HIDE_SOOTOPOLIS_CITY_KYOGRE 0x3E5
#define FLAG_HIDE_SOOTOPOLIS_CITY_GROUDON 0x3E6
#define FLAG_HIDE_RUSTBORO_CITY_POKEMON_SCHOOL_SCOTT 0x3E7
// Item Ball Flags
#define FLAG_ITEM_ROUTE_102_POTION 0x3E8
#define FLAG_ITEM_ROUTE_116_X_SPECIAL 0x3E9
#define FLAG_ITEM_ROUTE_104_PP_UP 0x3EA
#define FLAG_ITEM_ROUTE_105_IRON 0x3EB
#define FLAG_ITEM_ROUTE_106_PROTEIN 0x3EC
#define FLAG_ITEM_ROUTE_109_PP_UP 0x3ED
#define FLAG_ITEM_ROUTE_109_RARE_CANDY 0x3EE
#define FLAG_ITEM_ROUTE_110_DIRE_HIT 0x3EF
#define FLAG_ITEM_ROUTE_111_TM_37 0x3F0
#define FLAG_ITEM_ROUTE_111_STARDUST 0x3F1
#define FLAG_ITEM_ROUTE_111_HP_UP 0x3F2
#define FLAG_ITEM_ROUTE_112_NUGGET 0x3F3
#define FLAG_ITEM_ROUTE_113_MAX_ETHER 0x3F4
#define FLAG_ITEM_ROUTE_113_SUPER_REPEL 0x3F5
#define FLAG_ITEM_ROUTE_114_RARE_CANDY 0x3F6
#define FLAG_ITEM_ROUTE_114_PROTEIN 0x3F7
#define FLAG_ITEM_ROUTE_115_SUPER_POTION 0x3F8
#define FLAG_ITEM_ROUTE_115_TM_01 0x3F9
#define FLAG_ITEM_ROUTE_115_IRON 0x3FA
#define FLAG_ITEM_ROUTE_116_ETHER 0x3FB
#define FLAG_ITEM_ROUTE_116_REPEL 0x3FC
#define FLAG_ITEM_ROUTE_116_HP_UP 0x3FD
#define FLAG_ITEM_ROUTE_117_GREAT_BALL 0x3FE
#define FLAG_ITEM_ROUTE_117_REVIVE 0x3FF
#define FLAG_ITEM_ROUTE_119_SUPER_REPEL 0x400
#define FLAG_ITEM_ROUTE_119_ZINC 0x401
#define FLAG_ITEM_ROUTE_119_ELIXIR_1 0x402
#define FLAG_ITEM_ROUTE_119_LEAF_STONE 0x403
#define FLAG_ITEM_ROUTE_119_RARE_CANDY 0x404
#define FLAG_ITEM_ROUTE_119_HYPER_POTION_1 0x405
#define FLAG_ITEM_ROUTE_120_NUGGET 0x406
#define FLAG_ITEM_ROUTE_120_FULL_HEAL 0x407
#define FLAG_ITEM_ROUTE_123_CALCIUM 0x408
#define FLAG_UNUSED_0x409 0x409
#define FLAG_ITEM_ROUTE_127_ZINC 0x40A
#define FLAG_ITEM_ROUTE_127_CARBOS 0x40B
#define FLAG_ITEM_ROUTE_132_RARE_CANDY 0x40C
#define FLAG_ITEM_ROUTE_133_BIG_PEARL 0x40D
#define FLAG_ITEM_ROUTE_133_STAR_PIECE 0x40E
#define FLAG_ITEM_PETALBURG_CITY_MAX_REVIVE 0x40F
#define FLAG_ITEM_PETALBURG_CITY_ETHER 0x410
#define FLAG_ITEM_RUSTBORO_CITY_X_DEFEND 0x411
#define FLAG_ITEM_LILYCOVE_CITY_MAX_REPEL 0x412
#define FLAG_ITEM_MOSSDEEP_CITY_NET_BALL 0x413
#define FLAG_ITEM_METEOR_FALLS_1F_1R_TM_23 0x414
#define FLAG_ITEM_METEOR_FALLS_1F_1R_FULL_HEAL 0x415
#define FLAG_ITEM_METEOR_FALLS_1F_1R_MOON_STONE 0x416
#define FLAG_ITEM_METEOR_FALLS_1F_1R_PP_UP 0x417
#define FLAG_ITEM_RUSTURF_TUNNEL_POKE_BALL 0x418
#define FLAG_ITEM_RUSTURF_TUNNEL_MAX_ETHER 0x419
#define FLAG_ITEM_GRANITE_CAVE_1F_ESCAPE_ROPE 0x41A
#define FLAG_ITEM_GRANITE_CAVE_B1F_POKE_BALL 0x41B
#define FLAG_ITEM_MT_PYRE_5F_LAX_INCENSE 0x41C
#define FLAG_ITEM_GRANITE_CAVE_B2F_REPEL 0x41D
#define FLAG_ITEM_GRANITE_CAVE_B2F_RARE_CANDY 0x41E
#define FLAG_ITEM_PETALBURG_WOODS_X_ATTACK 0x41F
#define FLAG_ITEM_PETALBURG_WOODS_GREAT_BALL 0x420
#define FLAG_ITEM_ROUTE_104_POKE_BALL 0x421
#define FLAG_ITEM_PETALBURG_WOODS_ETHER 0x422
#define FLAG_ITEM_MAGMA_HIDEOUT_3F_3R_ECAPE_ROPE 0x423
#define FLAG_ITEM_TRICK_HOUSE_PUZZLE_1_ORANGE_MAIL 0x424
#define FLAG_ITEM_TRICK_HOUSE_PUZZLE_2_HARBOR_MAIL 0x425
#define FLAG_ITEM_TRICK_HOUSE_PUZZLE_2_WAVE_MAIL 0x426
#define FLAG_ITEM_TRICK_HOUSE_PUZZLE_3_SHADOW_MAIL 0x427
#define FLAG_ITEM_TRICK_HOUSE_PUZZLE_3_WOOD_MAIL 0x428
#define FLAG_ITEM_TRICK_HOUSE_PUZZLE_4_MECH_MAIL 0x429
#define FLAG_ITEM_ROUTE_124_YELLOW_SHARD 0x42A
#define FLAG_ITEM_TRICK_HOUSE_PUZZLE_6_GLITTER_MAIL 0x42B
#define FLAG_ITEM_TRICK_HOUSE_PUZZLE_7_TROPIC_MAIL 0x42C
#define FLAG_ITEM_TRICK_HOUSE_PUZZLE_8_BEAD_MAIL 0x42D
#define FLAG_ITEM_JAGGED_PASS_BURN_HEAL 0x42E
#define FLAG_ITEM_AQUA_HIDEOUT_B1F_MAX_ELIXIR 0x42F
#define FLAG_ITEM_AQUA_HIDEOUT_B2F_NEST_BALL 0x430
#define FLAG_ITEM_MT_PYRE_EXTERIOR_MAX_POTION 0x431
#define FLAG_ITEM_MT_PYRE_EXTERIOR_TM_48 0x432
#define FLAG_ITEM_NEW_MAUVILLE_ULTRA_BALL 0x433
#define FLAG_ITEM_NEW_MAUVILLE_ESCAPE_ROPE 0x434
#define FLAG_ITEM_ABANDONED_SHIP_HIDDEN_FLOOR_ROOM_6_LUXURY_BALL 0x435
#define FLAG_ITEM_ABANDONED_SHIP_HIDDEN_FLOOR_ROOM_4_SCANNER 0x436
#define FLAG_ITEM_SCORCHED_SLAB_TM_11 0x437
#define FLAG_ITEM_METEOR_FALLS_B1F_2R_TM_02 0x438
#define FLAG_ITEM_SHOAL_CAVE_ENTRANCE_BIG_PEARL 0x439
#define FLAG_ITEM_SHOAL_CAVE_INNER_ROOM_RARE_CANDY 0x43A
#define FLAG_ITEM_SHOAL_CAVE_STAIRS_ROOM_ICE_HEAL 0x43B
#define FLAG_ITEM_VICTORY_ROAD_1F_MAX_ELIXIR 0x43C
#define FLAG_ITEM_VICTORY_ROAD_1F_PP_UP 0x43D
#define FLAG_ITEM_VICTORY_ROAD_B1F_TM_29 0x43E
#define FLAG_ITEM_VICTORY_ROAD_B1F_FULL_RESTORE 0x43F
#define FLAG_ITEM_VICTORY_ROAD_B2F_FULL_HEAL 0x440
#define FLAG_ITEM_MT_PYRE_6F_TM_30 0x441
#define FLAG_ITEM_SEAFLOOR_CAVERN_ROOM_9_TM_26 0x442
#define FLAG_ITEM_FIERY_PATH_TM06 0x443
#define FLAG_ITEM_ROUTE_124_RED_SHARD 0x444
#define FLAG_ITEM_ROUTE_124_BLUE_SHARD 0x445
#define FLAG_ITEM_SAFARI_ZONE_NORTH_WEST_TM_22 0x446
#define FLAG_ITEM_ABANDONED_SHIP_ROOMS_1F_HARBOR_MAIL 0x447
#define FLAG_ITEM_ABANDONED_SHIP_ROOMS_B1F_ESCAPE_ROPE 0x448
#define FLAG_ITEM_ABANDONED_SHIP_ROOMS_2_B1F_DIVE_BALL 0x449
#define FLAG_ITEM_ABANDONED_SHIP_ROOMS_B1F_TM_13 0x44A
#define FLAG_ITEM_ABANDONED_SHIP_ROOMS_2_1F_REVIVE 0x44B
#define FLAG_ITEM_ABANDONED_SHIP_CAPTAINS_OFFICE_STORAGE_KEY 0x44C
#define FLAG_ITEM_ABANDONED_SHIP_HIDDEN_FLOOR_ROOM_3_WATER_STONE 0x44D
#define FLAG_ITEM_ABANDONED_SHIP_HIDDEN_FLOOR_ROOM_1_TM_18 0x44E
#define FLAG_ITEM_ROUTE_121_CARBOS 0x44F
#define FLAG_ITEM_ROUTE_123_ULTRA_BALL 0x450
#define FLAG_ITEM_ROUTE_126_GREEN_SHARD 0x451
#define FLAG_ITEM_ROUTE_119_HYPER_POTION_2 0x452
#define FLAG_ITEM_ROUTE_120_HYPER_POTION 0x453
#define FLAG_ITEM_ROUTE_120_NEST_BALL 0x454
#define FLAG_ITEM_ROUTE_123_ELIXIR 0x455
#define FLAG_ITEM_NEW_MAUVILLE_THUNDER_STONE 0x456
#define FLAG_ITEM_FIERY_PATH_FIRE_STONE 0x457
#define FLAG_ITEM_SHOAL_CAVE_ICE_ROOM_TM_07 0x458
#define FLAG_ITEM_SHOAL_CAVE_ICE_ROOM_NEVER_MELT_ICE 0x459
#define FLAG_ITEM_ROUTE_103_GUARD_SPEC 0x45A
#define FLAG_ITEM_ROUTE_104_X_ACCURACY 0x45B
#define FLAG_ITEM_MAUVILLE_CITY_X_SPEED 0x45C
#define FLAG_ITEM_PETALBURD_WOODS_PARALYZE_HEAL 0x45D
#define FLAG_ITEM_ROUTE_115_GREAT_BALL 0x45E
#define FLAG_ITEM_SAFARI_ZONE_NORTH_CALCIUM 0x45F
#define FLAG_ITEM_MT_PYRE_3F_SUPER_REPEL 0x460
#define FLAG_ITEM_ROUTE_118_HYPER_POTION 0x461
#define FLAG_ITEM_NEW_MAUVILLE_FULL_HEAL 0x462
#define FLAG_ITEM_NEW_MAUVILLE_PARALYZE_HEAL 0x463
#define FLAG_ITEM_AQUA_HIDEOUT_B1F_MASTER_BALL 0x464
#define FLAG_UNUSED_0x465 0x465
#define FLAG_UNUSED_0x466 0x466
#define FLAG_UNUSED_0x467 0x467
#define FLAG_UNUSED_0x468 0x468
#define FLAG_ITEM_MT_PYRE_2F_ULTRA_BALL 0x469
#define FLAG_ITEM_MT_PYRE_4F_SEA_INCENSE 0x46A
#define FLAG_ITEM_SAFARI_ZONE_SOUTH_WEST_MAX_REVIVE 0x46B
#define FLAG_ITEM_AQUA_HIDEOUT_B1F_NUGGET 0x46C
#define FLAG_UNUSED_0x46D 0x46D
#define FLAG_ITEM_ROUTE_119_NUGGET 0x46E
#define FLAG_ITEM_ROUTE_104_POTION 0x46F
#define FLAG_UNUSED_0x470 0x470
#define FLAG_ITEM_ROUTE_103_PP_UP 0x471
#define FLAG_UNUSED_0x472 0x472
#define FLAG_ITEM_ROUTE_108_STAR_PIECE 0x473
#define FLAG_0x474 0x474
#define FLAG_ITEM_ROUTE_110_ELIXIR 0x475
#define FLAG_ITEM_ROUTE_111_ELIXIR 0x476
#define FLAG_ITEM_ROUTE_113_HYPER_POTION 0x477
#define FLAG_ITEM_ROUTE_115_HEAL_POWDER 0x478
#define FLAG_UNUSED_0x479 0x479
#define FLAG_ITEM_ROUTE_116_POTION 0x47A
#define FLAG_ITEM_ROUTE_119_ELIXIR_2 0x47B
#define FLAG_ITEM_ROUTE_120_REVIVE 0x47C
#define FLAG_ITEM_ROUTE_121_REVIVE 0x47D
#define FLAG_ITEM_ROUTE_121_ZINC 0x47E
#define FLAG_ITEM_MAGMA_HIDEOUT_1F_RARE_CANDY 0x47F
#define FLAG_ITEM_ROUTE_123_PP_UP 0x480
#define FLAG_ITEM_ROUTE_123_REVIVAL_HERB 0x481
#define FLAG_ITEM_ROUTE_125_BIG_PEARL 0x482
#define FLAG_ITEM_ROUTE_127_RARE_CANDY 0x483
#define FLAG_ITEM_ROUTE_132_PROTEIN 0x484
#define FLAG_ITEM_ROUTE_133_MAX_REVIVE 0x485
#define FLAG_ITEM_ROUTE_134_CARBOS 0x486
#define FLAG_ITEM_ROUTE_134_STAR_PIECE 0x487
#define FLAG_ITEM_ROUTE_114_ENERGY_POWDER 0x488
#define FLAG_ITEM_ROUTE_115_PP_UP 0x489
#define FLAG_ITEM_ARTISAN_CAVE_B1F_HP_UP 0x48A
#define FLAG_ITEM_ARTISAN_CAVE_1F_CARBOS 0x48B
#define FLAG_ITEM_MAGMA_HIDEOUT_2F_2R_MAX_ELIXIR 0x48C
#define FLAG_ITEM_MAGMA_HIDEOUT_2F_2R_FULL_RESTORE 0x48D
#define FLAG_ITEM_MAGMA_HIDEOUT_3F_1R_NUGGET 0x48E
#define FLAG_ITEM_MAGMA_HIDEOUT_3F_2R_PP_MAX 0x48F
#define FLAG_ITEM_MAGMA_HIDEOUT_4F_MAX_REVIVE 0x490
#define FLAG_ITEM_SAFARI_ZONE_NORTH_EAST_NUGGET 0x491
#define FLAG_ITEM_SAFARI_ZONE_SOUTH_EAST_BIG_PEARL 0x492
#define FLAG_0x493 0x493
#define FLAG_0x494 0x494
#define FLAG_0x495 0x495
#define FLAG_0x496 0x496
#define FLAG_0x497 0x497
#define FLAG_0x498 0x498
#define FLAG_0x499 0x499
#define FLAG_0x49A 0x49A
#define FLAG_0x49B 0x49B
#define FLAG_0x49C 0x49C
#define FLAG_0x49D 0x49D
#define FLAG_0x49E 0x49E
#define FLAG_0x49F 0x49F
#define FLAG_0x4A0 0x4A0
#define FLAG_0x4A1 0x4A1
#define FLAG_0x4A2 0x4A2
#define FLAG_0x4A3 0x4A3
#define FLAG_0x4A4 0x4A4
#define FLAG_0x4A5 0x4A5
#define FLAG_0x4A6 0x4A6
#define FLAG_0x4A7 0x4A7
#define FLAG_0x4A8 0x4A8
#define FLAG_0x4A9 0x4A9
#define FLAG_0x4AA 0x4AA
#define FLAG_0x4AB 0x4AB
#define FLAG_0x4AC 0x4AC
#define FLAG_0x4AD 0x4AD
#define FLAG_0x4AE 0x4AE
#define FLAG_0x4AF 0x4AF
#define FLAG_0x4B0 0x4B0
#define FLAG_0x4B1 0x4B1
#define FLAG_0x4B2 0x4B2
#define FLAG_0x4B3 0x4B3
#define FLAG_0x4B4 0x4B4
#define FLAG_0x4B5 0x4B5
#define FLAG_0x4B6 0x4B6
#define FLAG_0x4B7 0x4B7
#define FLAG_0x4B8 0x4B8
#define FLAG_0x4B9 0x4B9
#define FLAG_0x4BA 0x4BA
#define FLAG_0x4BB 0x4BB
#define FLAG_0x4BC 0x4BC
#define FLAG_0x4BD 0x4BD
#define FLAG_0x4BE 0x4BE
#define FLAG_0x4BF 0x4BF
#define FLAG_0x4C0 0x4C0
#define FLAG_0x4C1 0x4C1
#define FLAG_0x4C2 0x4C2
#define FLAG_0x4C3 0x4C3
#define FLAG_0x4C4 0x4C4
#define FLAG_0x4C5 0x4C5
#define FLAG_0x4C6 0x4C6
#define FLAG_0x4C7 0x4C7
#define FLAG_0x4C8 0x4C8
#define FLAG_0x4C9 0x4C9
#define FLAG_0x4CA 0x4CA
#define FLAG_0x4CB 0x4CB
#define FLAG_0x4CC 0x4CC
#define FLAG_0x4CD 0x4CD
#define FLAG_0x4CE 0x4CE
#define FLAG_0x4CF 0x4CF
#define FLAG_0x4D0 0x4D0
#define FLAG_0x4D1 0x4D1
#define FLAG_0x4D2 0x4D2
#define FLAG_0x4D3 0x4D3
#define FLAG_0x4D4 0x4D4
#define FLAG_0x4D5 0x4D5
#define FLAG_0x4D6 0x4D6
#define FLAG_0x4D7 0x4D7
#define FLAG_0x4D8 0x4D8
#define FLAG_0x4D9 0x4D9
#define FLAG_0x4DA 0x4DA
#define FLAG_0x4DB 0x4DB
#define FLAG_0x4DC 0x4DC
#define FLAG_0x4DD 0x4DD
#define FLAG_0x4DE 0x4DE
#define FLAG_0x4DF 0x4DF
#define FLAG_0x4E0 0x4E0
#define FLAG_0x4E1 0x4E1
#define FLAG_0x4E2 0x4E2
#define FLAG_0x4E3 0x4E3
#define FLAG_0x4E4 0x4E4
#define FLAG_0x4E5 0x4E5
#define FLAG_0x4E6 0x4E6
#define FLAG_0x4E7 0x4E7
#define FLAG_0x4E8 0x4E8
#define FLAG_0x4E9 0x4E9
#define FLAG_0x4EA 0x4EA
#define FLAG_0x4EB 0x4EB
#define FLAG_0x4EC 0x4EC
#define FLAG_0x4ED 0x4ED
#define FLAG_0x4EE 0x4EE
#define FLAG_0x4EF 0x4EF
#define FLAG_0x4F0 0x4F0
#define FLAG_0x4F1 0x4F1
#define FLAG_0x4F2 0x4F2
#define FLAG_0x4F3 0x4F3
#define FLAG_0x4F4 0x4F4
#define FLAG_0x4F5 0x4F5
#define FLAG_0x4F6 0x4F6
#define FLAG_0x4F7 0x4F7
#define FLAG_0x4F8 0x4F8
#define FLAG_0x4F9 0x4F9
#define FLAG_0x4FA 0x4FA
#define FLAG_0x4FB 0x4FB
#define FLAG_0x4FC 0x4FC
#define FLAG_0x4FD 0x4FD
#define FLAG_0x4FE 0x4FE
#define FLAG_0x4FF 0x4FF
#define FLAG_TRAINER_FLAG_START 0x500
#define TRAINERS_FLAG_NO 0x356
#define SYSTEM_FLAGS (FLAG_TRAINER_FLAG_START + TRAINERS_FLAG_NO + 0xA) // 0x860
// SYSTEM FLAGS
// 0x860
#define FLAG_SYS_POKEMON_GET (SYSTEM_FLAGS + 0)
#define FLAG_SYS_POKEDEX_GET (SYSTEM_FLAGS + 1)
#define FLAG_SYS_POKENAV_GET (SYSTEM_FLAGS + 2)
// third one appears unused
#define FLAG_SYS_GAME_CLEAR (SYSTEM_FLAGS + 4)
#define FLAG_SYS_CHAT_USED (SYSTEM_FLAGS + 5)
#define FLAG_SYS_HIPSTER_MEET (SYSTEM_FLAGS + 6)
// badges
#define FLAG_BADGE01_GET (SYSTEM_FLAGS + 7)
#define FLAG_BADGE02_GET (SYSTEM_FLAGS + 8)
#define FLAG_BADGE03_GET (SYSTEM_FLAGS + 9)
#define FLAG_BADGE04_GET (SYSTEM_FLAGS + 0xA)
#define FLAG_BADGE05_GET (SYSTEM_FLAGS + 0xB)
#define FLAG_BADGE06_GET (SYSTEM_FLAGS + 0xC)
#define FLAG_BADGE07_GET (SYSTEM_FLAGS + 0xD)
#define FLAG_BADGE08_GET (SYSTEM_FLAGS + 0xE)
// cities and towns
#define FLAG_VISITED_LITTLEROOT_TOWN (SYSTEM_FLAGS + 0xF)
#define FLAG_VISITED_OLDALE_TOWN (SYSTEM_FLAGS + 0x10)
#define FLAG_VISITED_DEWFORD_TOWN (SYSTEM_FLAGS + 0x11)
#define FLAG_VISITED_LAVARIDGE_TOWN (SYSTEM_FLAGS + 0x12)
#define FLAG_VISITED_FALLARBOR_TOWN (SYSTEM_FLAGS + 0x13)
#define FLAG_VISITED_VERDANTURF_TOWN (SYSTEM_FLAGS + 0x14)
#define FLAG_VISITED_PACIFIDLOG_TOWN (SYSTEM_FLAGS + 0x15)
#define FLAG_VISITED_PETALBURG_CITY (SYSTEM_FLAGS + 0x16)
#define FLAG_VISITED_SLATEPORT_CITY (SYSTEM_FLAGS + 0x17)
#define FLAG_VISITED_MAUVILLE_CITY (SYSTEM_FLAGS + 0x18)
#define FLAG_VISITED_RUSTBORO_CITY (SYSTEM_FLAGS + 0x19)
#define FLAG_VISITED_FORTREE_CITY (SYSTEM_FLAGS + 0x1A)
#define FLAG_VISITED_LILYCOVE_CITY (SYSTEM_FLAGS + 0x1B)
#define FLAG_VISITED_MOSSDEEP_CITY (SYSTEM_FLAGS + 0x1C)
#define FLAG_VISITED_SOOTOPOLIS_CITY (SYSTEM_FLAGS + 0x1D)
#define FLAG_VISITED_EVER_GRANDE_CITY (SYSTEM_FLAGS + 0x1E)
#define FLAG_0x87F (SYSTEM_FLAGS + 0x1F)
#define FLAG_0x880 (SYSTEM_FLAGS + 0x20)
#define FLAG_0x881 (SYSTEM_FLAGS + 0x21)
#define FLAG_0x882 (SYSTEM_FLAGS + 0x22)
#define FLAG_0x883 (SYSTEM_FLAGS + 0x23)
#define FLAG_0x884 (SYSTEM_FLAGS + 0x24)
#define FLAG_0x885 (SYSTEM_FLAGS + 0x25)
#define FLAG_0x886 (SYSTEM_FLAGS + 0x26)
#define FLAG_0x887 (SYSTEM_FLAGS + 0x27)
#define FLAG_SYS_USE_FLASH (SYSTEM_FLAGS + 0x28)
#define FLAG_SYS_USE_STRENGTH (SYSTEM_FLAGS + 0x29)
#define FLAG_SYS_WEATHER_CTRL (SYSTEM_FLAGS + 0x2A)
#define FLAG_SYS_CYCLING_ROAD (SYSTEM_FLAGS + 0x2B)
#define FLAG_SYS_SAFARI_MODE (SYSTEM_FLAGS + 0x2C)
#define FLAG_SYS_CRUISE_MODE (SYSTEM_FLAGS + 0x2D)
#define FLAG_0x88E (SYSTEM_FLAGS + 0x2E)
#define FLAG_0x88F (SYSTEM_FLAGS + 0x2F)
#define FLAG_SYS_TV_HOME (SYSTEM_FLAGS + 0x30)
#define FLAG_SYS_TV_WATCH (SYSTEM_FLAGS + 0x31)
#define FLAG_SYS_TV_START (SYSTEM_FLAGS + 0x32)
#define FLAG_SYS_POPWORD_INPUT (SYSTEM_FLAGS + 0x33)
#define FLAG_SYS_MIX_RECORD (SYSTEM_FLAGS + 0x34)
#define FLAG_SYS_CLOCK_SET (SYSTEM_FLAGS + 0x35)
#define FLAG_SYS_NATIONAL_DEX (SYSTEM_FLAGS + 0x36)
#define FLAG_SYS_CAVE_SHIP (SYSTEM_FLAGS + 0x37)
#define FLAG_SYS_CAVE_WONDER (SYSTEM_FLAGS + 0x38)
#define FLAG_SYS_CAVE_BATTLE (SYSTEM_FLAGS + 0x39)
#define FLAG_SYS_SHOAL_TIDE (SYSTEM_FLAGS + 0x3A)
#define FLAG_SYS_RIBBON_GET (SYSTEM_FLAGS + 0x3B)
#define FLAG_LANDMARK_FLOWER_SHOP (SYSTEM_FLAGS + 0x3C)
#define FLAG_LANDMARK_MR_BRINEY_HOUSE (SYSTEM_FLAGS + 0x3D)
#define FLAG_LANDMARK_ABANDONED_SHIP (SYSTEM_FLAGS + 0x3E)
#define FLAG_LANDMARK_SEASHORE_HOUSE (SYSTEM_FLAGS + 0x3F)
#define FLAG_LANDMARK_NEW_MAUVILLE (SYSTEM_FLAGS + 0x40)
#define FLAG_LANDMARK_OLD_LADY_REST_SHOP (SYSTEM_FLAGS + 0x41)
#define FLAG_LANDMARK_TRICK_HOUSE (SYSTEM_FLAGS + 0x42)
#define FLAG_LANDMARK_WINSTRATE_FAMILY (SYSTEM_FLAGS + 0x43)
#define FLAG_LANDMARK_GLASS_WORKSHOP (SYSTEM_FLAGS + 0x44)
#define FLAG_LANDMARK_LANETTES_HOUSE (SYSTEM_FLAGS + 0x45)
#define FLAG_LANDMARK_POKEMON_DAYCARE (SYSTEM_FLAGS + 0x46)
#define FLAG_LANDMARK_SEAFLOOR_CAVERN (SYSTEM_FLAGS + 0x47)
#define FLAG_LANDMARK_BATTLE_FRONTIER (SYSTEM_FLAGS + 0x48)
#define FLAG_LANDMARK_SOUTHERN_ISLAND (SYSTEM_FLAGS + 0x49)
#define FLAG_LANDMARK_FIERY_PATH (SYSTEM_FLAGS + 0x4A)
#define FLAG_SYS_PC_LANETTE (SYSTEM_FLAGS + 0x4B)
#define FLAG_SYS_MYSTERY_EVENT_ENABLE (SYSTEM_FLAGS + 0x4C)
#define FLAG_SYS_ENC_UP_ITEM (SYSTEM_FLAGS + 0x4D)
#define FLAG_SYS_ENC_DOWN_ITEM (SYSTEM_FLAGS + 0x4E)
#define FLAG_SYS_BRAILLE_DIG (SYSTEM_FLAGS + 0x4F)
#define FLAG_SYS_BRAILLE_STRENGTH (SYSTEM_FLAGS + 0x50)
#define FLAG_SYS_BRAILLE_WAIT (SYSTEM_FLAGS + 0x51)
#define FLAG_SYS_BRAILLE_FLY (SYSTEM_FLAGS + 0x52)
#define FLAG_SYS_HAS_EON_TICKET (SYSTEM_FLAGS + 0x53)
#define FLAG_LANDMARK_POKEMON_LEAGUE (SYSTEM_FLAGS + 0x54)
#define FLAG_LANDMARK_ISLAND_CAVE (SYSTEM_FLAGS + 0x55)
#define FLAG_LANDMARK_DESERT_RUINS (SYSTEM_FLAGS + 0x56)
#define FLAG_LANDMARK_FOSSIL_MANIACS_HOUSE (SYSTEM_FLAGS + 0x57)
#define FLAG_LANDMARK_SCORCHED_SLAB (SYSTEM_FLAGS + 0x58)
#define FLAG_LANDMARK_ANCIENT_TOMB (SYSTEM_FLAGS + 0x59)
#define FLAG_LANDMARK_TUNNELERS_REST_HOUSE (SYSTEM_FLAGS + 0x5A)
#define FLAG_LANDMARK_HUNTERS_HOUSE (SYSTEM_FLAGS + 0x5B)
#define FLAG_LANDMARK_SEALED_CHAMBER (SYSTEM_FLAGS + 0x5C)
#define FLAG_SYS_TV_LATI (SYSTEM_FLAGS + 0x5D)
#define FLAG_LANDMARK_SKY_PILLAR (SYSTEM_FLAGS + 0x5E)
#define FLAG_SYS_SHOAL_ITEM (SYSTEM_FLAGS + 0x5F)
#define FLAG_SYS_B_DASH (SYSTEM_FLAGS + 0x60) // got Running Shoes
#define FLAG_SYS_CTRL_OBJ_DELETE (SYSTEM_FLAGS + 0x61)
#define FLAG_SYS_RESET_RTC_ENABLE (SYSTEM_FLAGS + 0x62)
#define FLAG_LANDMARK_BERRY_MASTERS_HOUSE (SYSTEM_FLAGS + 0x63)
#define FLAG_SYS_TOWER_SILVER (SYSTEM_FLAGS + 0x64)
#define FLAG_SYS_TOWER_GOLD (SYSTEM_FLAGS + 0x65)
#define FLAG_SYS_DOME_SILVER (SYSTEM_FLAGS + 0x66)
#define FLAG_SYS_DOME_GOLD (SYSTEM_FLAGS + 0x67)
#define FLAG_SYS_PALACE_SILVER (SYSTEM_FLAGS + 0x68)
#define FLAG_SYS_PALACE_GOLD (SYSTEM_FLAGS + 0x69)
#define FLAG_SYS_ARENA_SILVER (SYSTEM_FLAGS + 0x6A)
#define FLAG_SYS_ARENA_GOLD (SYSTEM_FLAGS + 0x6B)
#define FLAG_SYS_FACTORY_SILVER (SYSTEM_FLAGS + 0x6C)
#define FLAG_SYS_FACTORY_GOLD (SYSTEM_FLAGS + 0x6D)
#define FLAG_SYS_PIKE_SILVER (SYSTEM_FLAGS + 0x6E)
#define FLAG_SYS_PIKE_GOLD (SYSTEM_FLAGS + 0x6F)
#define FLAG_SYS_PYRAMID_SILVER (SYSTEM_FLAGS + 0x70)
#define FLAG_SYS_PYRAMID_GOLD (SYSTEM_FLAGS + 0x71)
#define FLAG_SYS_FRONTIER_PASS (SYSTEM_FLAGS + 0x72)
#define FLAG_0x8D3 (SYSTEM_FLAGS + 0x73)
#define FLAG_DEOXYS_ROCK_COMPLETE (SYSTEM_FLAGS + 0x74)
#define FLAG_0x8D5 (SYSTEM_FLAGS + 0x75)
#define FLAG_0x8D6 (SYSTEM_FLAGS + 0x76)
#define FLAG_SYS_STORAGE_UNKNOWN_FLAG (SYSTEM_FLAGS + 0x77)
#define FLAG_0x8D8 (SYSTEM_FLAGS + 0x78)
#define FLAG_0x8D9 (SYSTEM_FLAGS + 0x79)
#define FLAG_0x8DA (SYSTEM_FLAGS + 0x7A)
#define FLAG_SYS_MYSTERY_GIFT_ENABLE (SYSTEM_FLAGS + 0x7B)
#define FLAG_0x8DC (SYSTEM_FLAGS + 0x7C)
#define FLAG_LANDMARK_ALTERING_CAVE (SYSTEM_FLAGS + 0x7D)
#define FLAG_LANDMARK_DESERT_UNDERPASS (SYSTEM_FLAGS + 0x7E)
#define FLAG_0x8DF (SYSTEM_FLAGS + 0x7F)
#define FLAG_0x8E0 (SYSTEM_FLAGS + 0x80)
#define FLAG_0x8E1 (SYSTEM_FLAGS + 0x81)
#define FLAG_LANDMARK_TRAINER_HILL (SYSTEM_FLAGS + 0x82)
#define FLAG_0x8E3 (SYSTEM_FLAGS + 0x83)
#define FLAG_0x8E4 (SYSTEM_FLAGS + 0x84)
#define FLAG_0x8E5 (SYSTEM_FLAGS + 0x85)
#define FLAG_0x8E6 (SYSTEM_FLAGS + 0x86)
#define FLAG_0x8E7 (SYSTEM_FLAGS + 0x87)
#define FLAG_0x8E8 (SYSTEM_FLAGS + 0x88)
#define FLAG_0x8E9 (SYSTEM_FLAGS + 0x89)
#define FLAG_0x8EA (SYSTEM_FLAGS + 0x8A)
#define FLAG_0x8EB (SYSTEM_FLAGS + 0x8B)
#define FLAG_0x8EC (SYSTEM_FLAGS + 0x8C)
#define FLAG_0x8ED (SYSTEM_FLAGS + 0x8D)
#define FLAG_0x8EE (SYSTEM_FLAGS + 0x8E)
#define FLAG_0x8EF (SYSTEM_FLAGS + 0x8F)
#define FLAG_0x8F0 (SYSTEM_FLAGS + 0x90)
#define FLAG_0x8F1 (SYSTEM_FLAGS + 0x91)
#define FLAG_0x8F2 (SYSTEM_FLAGS + 0x92)
#define FLAG_0x8F3 (SYSTEM_FLAGS + 0x93)
#define FLAG_0x8F4 (SYSTEM_FLAGS + 0x94)
#define FLAG_0x8F5 (SYSTEM_FLAGS + 0x95)
#define FLAG_0x8F6 (SYSTEM_FLAGS + 0x96)
#define FLAG_0x8F7 (SYSTEM_FLAGS + 0x97)
#define FLAG_0x8F8 (SYSTEM_FLAGS + 0x98)
#define FLAG_0x8F9 (SYSTEM_FLAGS + 0x99)
#define FLAG_0x8FA (SYSTEM_FLAGS + 0x9A)
#define FLAG_0x8FB (SYSTEM_FLAGS + 0x9B)
#define FLAG_0x8FC (SYSTEM_FLAGS + 0x9C)
#define FLAG_0x8FD (SYSTEM_FLAGS + 0x9D)
#define FLAG_0x8FE (SYSTEM_FLAGS + 0x9E)
#define FLAG_0x8FF (SYSTEM_FLAGS + 0x9F)
#define FLAG_0x900 (SYSTEM_FLAGS + 0xA0)
#define FLAG_0x901 (SYSTEM_FLAGS + 0xA1)
#define FLAG_0x902 (SYSTEM_FLAGS + 0xA2)
#define FLAG_0x903 (SYSTEM_FLAGS + 0xA3)
#define FLAG_0x904 (SYSTEM_FLAGS + 0xA4)
#define FLAG_0x905 (SYSTEM_FLAGS + 0xA5)
#define FLAG_0x906 (SYSTEM_FLAGS + 0xA6)
#define FLAG_0x907 (SYSTEM_FLAGS + 0xA7)
#define FLAG_0x908 (SYSTEM_FLAGS + 0xA8)
#define FLAG_0x909 (SYSTEM_FLAGS + 0xA9)
#define FLAG_0x90A (SYSTEM_FLAGS + 0xAA)
#define FLAG_0x90B (SYSTEM_FLAGS + 0xAB)
#define FLAG_0x90C (SYSTEM_FLAGS + 0xAC)
#define FLAG_0x90D (SYSTEM_FLAGS + 0xAD)
#define FLAG_0x90E (SYSTEM_FLAGS + 0xAE)
#define FLAG_0x90F (SYSTEM_FLAGS + 0xAF)
#define FLAG_0x910 (SYSTEM_FLAGS + 0xB0)
#define FLAG_0x911 (SYSTEM_FLAGS + 0xB1)
#define FLAG_0x912 (SYSTEM_FLAGS + 0xB2)
#define FLAG_0x913 (SYSTEM_FLAGS + 0xB3)
#define FLAG_0x914 (SYSTEM_FLAGS + 0xB4)
#define FLAG_0x915 (SYSTEM_FLAGS + 0xB5)
#define FLAG_0x916 (SYSTEM_FLAGS + 0xB6)
#define FLAG_0x917 (SYSTEM_FLAGS + 0xB7)
#define FLAG_0x918 (SYSTEM_FLAGS + 0xB8)
#define FLAG_0x919 (SYSTEM_FLAGS + 0xB9)
#define FLAG_0x91A (SYSTEM_FLAGS + 0xBA)
#define FLAG_0x91B (SYSTEM_FLAGS + 0xBB)
#define FLAG_0x91C (SYSTEM_FLAGS + 0xBC)
#define FLAG_0x91D (SYSTEM_FLAGS + 0xBD)
#define FLAG_0x91E (SYSTEM_FLAGS + 0xBE)
#define FLAG_0x91F (SYSTEM_FLAGS + 0xBF)
#define FLAG_0x920 (SYSTEM_FLAGS + 0xC0)
#define FLAG_0x921 (SYSTEM_FLAGS + 0xC1)
#define FLAG_0x922 (SYSTEM_FLAGS + 0xC2)
#define FLAG_0x923 (SYSTEM_FLAGS + 0xC3)
#define FLAG_0x924 (SYSTEM_FLAGS + 0xC4)
#define FLAG_0x925 (SYSTEM_FLAGS + 0xC5)
#define FLAG_0x926 (SYSTEM_FLAGS + 0xC6)
#define FLAG_0x927 (SYSTEM_FLAGS + 0xC7)
#define FLAG_0x928 (SYSTEM_FLAGS + 0xC8)
#define FLAG_0x929 (SYSTEM_FLAGS + 0xC9)
#define FLAG_0x92A (SYSTEM_FLAGS + 0xCA)
#define FLAG_0x92B (SYSTEM_FLAGS + 0xCB)
#define FLAG_0x92C (SYSTEM_FLAGS + 0xCC)
#define FLAG_0x92D (SYSTEM_FLAGS + 0xCD)
#define FLAG_0x92E (SYSTEM_FLAGS + 0xCE)
#define FLAG_0x92F (SYSTEM_FLAGS + 0xCF)
#define FLAG_0x930 (SYSTEM_FLAGS + 0xD0)
#define FLAG_0x931 (SYSTEM_FLAGS + 0xD1)
#define FLAG_0x932 (SYSTEM_FLAGS + 0xD2)
#define FLAG_0x933 (SYSTEM_FLAGS + 0xD3)
#define FLAG_0x934 (SYSTEM_FLAGS + 0xD4)
#define FLAG_0x935 (SYSTEM_FLAGS + 0xD5)
#define FLAG_0x936 (SYSTEM_FLAGS + 0xD6)
#define FLAG_0x937 (SYSTEM_FLAGS + 0xD7)
#define FLAG_0x938 (SYSTEM_FLAGS + 0xD8)
#define FLAG_0x939 (SYSTEM_FLAGS + 0xD9)
#define FLAG_0x93A (SYSTEM_FLAGS + 0xDA)
#define FLAG_0x93B (SYSTEM_FLAGS + 0xDB)
#define FLAG_0x93C (SYSTEM_FLAGS + 0xDC)
#define FLAG_0x93D (SYSTEM_FLAGS + 0xDD)
#define FLAG_0x93E (SYSTEM_FLAGS + 0xDE)
#define FLAG_0x93F (SYSTEM_FLAGS + 0xDF)
#define FLAG_0x940 (SYSTEM_FLAGS + 0xE0)
#define FLAG_0x941 (SYSTEM_FLAGS + 0xE1)
#define FLAG_0x942 (SYSTEM_FLAGS + 0xE2)
#define FLAG_0x943 (SYSTEM_FLAGS + 0xE3)
#define FLAG_0x944 (SYSTEM_FLAGS + 0xE4)
#define FLAG_0x945 (SYSTEM_FLAGS + 0xE5)
#define FLAG_0x946 (SYSTEM_FLAGS + 0xE6)
#define FLAG_0x947 (SYSTEM_FLAGS + 0xE7)
#define FLAG_0x948 (SYSTEM_FLAGS + 0xE8)
#define FLAG_0x949 (SYSTEM_FLAGS + 0xE9)
#define FLAG_0x94A (SYSTEM_FLAGS + 0xEA)
#define FLAG_0x94B (SYSTEM_FLAGS + 0xEB)
#define FLAG_0x94C (SYSTEM_FLAGS + 0xEC)
#define FLAG_0x94D (SYSTEM_FLAGS + 0xED)
#define FLAG_0x94E (SYSTEM_FLAGS + 0xEE)
#define FLAG_0x94F (SYSTEM_FLAGS + 0xEF)
#define FLAG_0x950 (SYSTEM_FLAGS + 0xF0)
#define FLAG_0x951 (SYSTEM_FLAGS + 0xF1)
#define FLAG_0x952 (SYSTEM_FLAGS + 0xF2)
#define FLAG_0x953 (SYSTEM_FLAGS + 0xF3)
#define FLAG_0x954 (SYSTEM_FLAGS + 0xF4)
#define FLAG_0x955 (SYSTEM_FLAGS + 0xF5)
#define FLAG_0x956 (SYSTEM_FLAGS + 0xF6)
#define FLAG_0x957 (SYSTEM_FLAGS + 0xF7)
#define FLAG_0x958 (SYSTEM_FLAGS + 0xF8)
#define FLAG_0x959 (SYSTEM_FLAGS + 0xF9)
#define FLAG_0x95A (SYSTEM_FLAGS + 0xFA)
#define FLAG_0x95B (SYSTEM_FLAGS + 0xFB)
#define FLAG_0x95C (SYSTEM_FLAGS + 0xFC)
#define FLAG_0x95D (SYSTEM_FLAGS + 0xFD)
#define FLAG_0x95E (SYSTEM_FLAGS + 0xFE)
#define FLAG_0x95F (SYSTEM_FLAGS + 0xFF)
#define SPECIAL_FLAGS_START 0x4000
// SPECIAL FLAGS (unknown purpose)
#define FLAG_SPECIAL_FLAG_0x4000 0x4000
#define FLAG_SPECIAL_FLAG_0x4001 0x4001
#define FLAG_SPECIAL_FLAG_0x4002 0x4002
#define FLAG_SPECIAL_FLAG_0x4003 0x4003
#define FLAG_SPECIAL_FLAG_0x4004 0x4004
#endif // GUARD_CONSTANTS_FLAGS_H