Pokédex flags: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3: Line 3:
==Glitch Pokédex flags in [[Generation I]]==
==Glitch Pokédex flags in [[Generation I]]==


[[Glitch]] Pokédex flags are most known in the [[Generation I]] games for the effects that they can have on the player's item pack. The [[glitch Pokémon]] [[Missingno.]] along with [['M]], [[g g]], and [[$ (Yellow)]] are notorious for increasing the the sixth Bag slot by 128 unless the number of items in the slot is greater than or equal to 128. This is due to their Pokédex number of #000, which is considered by the game as #256. Encounter flags are normally stored in 19 bytes [D30A-D31C] (the bytes are offset by -1 in Yellow), each which can hold 8 bits (2^0+2^1+...2^7). These addresses account for seeing Pokémon #001-#152 (the last bit is unused, but it appears in the Pokédex as {{p|Farfetch'd}}{{sup|RB}}, [[Missingno.]] [Red/Green], or {{p|Scyther}}{{sup|Y}}). When the game attempts to account for seeing Pokémon with [[Glitch Pokémon family|Pokédex numbers greater than 152]], the game writes to bytes beginning from D31D (D31C in Yellow) which mark addresses in the player's Bag. Due to this effect, when the player encounters a #000 (#256), the game sets the upper bit (2^7) on to address D329 (D328 in Yellow) - adding 128 items to the sixth position in the player's bag.
[[Glitch]] Pokédex flags are most known in the [[Generation I]] games for the effects that they can have on the player's item pack. The [[glitch Pokémon]] [[Missingno.]] along with [['M]], [[g g]], and [[$ (glitch Pokémon)|$]] are notorious for increasing the the sixth Bag slot by 128 unless the number of items in the slot is greater than or equal to 128. This is due to their Pokédex number of #000, which is considered by the game as #256. Encounter flags are normally stored in 19 bytes [D30A-D31C] (the bytes are offset by -1 in Yellow), each which can hold 8 bits (2^0+2^1+...2^7). These addresses account for seeing Pokémon #001-#152 (the last bit is unused, but it appears in the Pokédex as {{p|Farfetch'd}}{{sup|RB}}, [[Missingno.]] [Red/Green], or {{p|Scyther}}{{sup|Y}}). When the game attempts to account for seeing Pokémon with [[Glitch Pokémon family|Pokédex numbers greater than 152]], the game writes to bytes beginning from D31D (D31C in Yellow) which mark addresses in the player's Bag. Due to this effect, when the player encounters a #000 (#256), the game sets the upper bit (2^7) on to address D329 (D328 in Yellow) - adding 128 items to the sixth position in the player's bag.


===Encounter flags===
===Encounter flags===
Line 24: Line 24:
|2^7
|2^7
|Add 128 to the quantity of the sixth slot in the player's bag if the quantity is less than 128
|Add 128 to the quantity of the sixth slot in the player's bag if the quantity is less than 128
|[['M]]{{sup|RB}}, [[Missingno.]], [[g g]]{{sup|Y}}, and [[$ (Yellow)]]
|[['M]]{{sup|RB}}, [[Missingno.]], [[g g]]{{sup|Y}}, and [[$ (glitch Pokémon)|$]]
|-
|-
|152
|152
Line 1,297: Line 1,297:
|}
|}


{{-}}
{{Project Glitchdex notice}}
{{Project Glitchdex notice}}


[[Category:Game mechanics]]
[[Category:Game mechanics]]
2,119

edits