Jump to content

Pokémon Red and Blue: Difference between revisions

 
(2 intermediate revisions by the same user not shown)
Line 38:
Similar to Pokémon species, in Generation I games the ID of an item can take any of its 256 values, while valid item IDs range either from 1 (Master Ball) to 83 (Max Elixer), or from 196 (HM01) to 250 (TM50). Furthermore, some IDs in the "valid" range do not correspond to items intended to appear in the game. However, most of them have distinct names and/or effects, and some of them are designed to play a role in gameplay:
* [[ItemDex/RGBY:007|?????]] (ID 7) is usually known as the "Surfboard", because it acts identically to the move [[bp:Surf|Surf]] outside of battle. In fact, the field move Surf internally "uses" this item (i.e. calls the "item use" subroutine with this item's ID), just like the field move [[bp:Dig|Dig]] does with [[bp:Escape Rope|Escape Rope]].
* [[Safari Ball (glitch item)ItemDex/RGBY:008|Safari Ball]] (ID 8) exists as an item, even though it is never supposed to appear in the player's inventory. Again, throwing a ball in a Safari Zone battle actually "uses" this item.
* [[Pokédex (glitch item)ItemDex/RGBY:009|Pokédex]] (ID 9) exists as an item, even though it is never supposed to appear in the player's inventory. It is functional, but not actually "used" when the player accesses the Pokédex from the Start menu.
* Items with ID 21–28 have the names of the Gym Badges, from "BoulderBadge" to "EarthBadge". Those names are used to display a list of all badges when the player talks to Cerulean City's badge describer.
** Furthermore, the first two of those, [[BoulderBadge (glitch item)ItemDex/RGBY:021|BoulderBadge]] and [[CascadeBadge (glitch item)ItemDex/RGBY:022|CascadeBadge]], are also "used" in a Safari Zone battle when throwing some bait or throwing a rock, respectively. Those glitch items are also functional in normal wild battles.
** The rest of those items are designed to be unusable anywhere, just like some valid items that are supposed to be checked rather than directly used from the menu (e.g. the [[bp:Helix Fossil|Helix Fossil]]), or exist just to be sold (i.e. the [[bp:Nugget|Nugget]]).
* [[ItemDex/RGBY:044|?????]] (ID 44) is an unusable glitch item.
* [[PP Up (useless)ItemDex/RGBY:050|PP Up]] (ID 50) is an unusable glitch item; the actual [[bp:PP Up|PP Up]] has ID 79.
* [[ItemDex/RGBY:059|Coin]] (ID 59) is an unusable glitch item.
 
In addition, all items with IDs greater or equal to 196 are considered HMs or TMs, and are handled in a special way. This means that the items with ID 251–255 are named TM51–TM55, and act as TMs. They actually teach exactly the same moves as HM01–HM05, to exactly the same Pokémon, because even though the valid HM items have IDs before the TM items, for all other purposes, the HM moves come after the TM moves in the game's internal data. However, since TM51–TM55 are considered as TMs rather than HMs, they are not key items (i.e. their quantities are displayed in the inventory, and they can be tossed or sold), and are consumed when used. ([[Cancel (Generation I 0xFF glitch item)ItemDex/RGBY:255|TM55]] has some further quirks because it has ID 255, which is also used as the terminator of item lists. Most notably, its name is rendered as "Cancel" in the inventory, and while on-screen it hides the items below it, although it can still be used, tossed, or sold because in those cases the game uses the item count byte to determine whether the player chose the Cancel button.)
 
Apart from the above glitch items, other glitch items have IDs outside of the valid range, i.e. either 0 or 84–195. They take data from mostly unrelated memory regions, as detailed below.
Line 82:
 
=== Obtaining ===
In most cases, glitch items are obtained from the [[expanded item pack]]. Putting the game into certain states will cause certain items to appear in the expanded item pack, which can either be used from there or switched into valid item slots to preserve them, although care must be taken because modifying the expanded item pack also changes the game state. The [[Celadon looping map trick]] can help the player obtain any item, except [[Cancel (Generation I 0xFF glitch item)ItemDex/RGBY:255|Cancel/TM55]], as long as the player knows its internal ID. Alternatively, in both Red and Blue, it is possible to find all glitch items in the game as [[roaming items]], although it is not a trivial task to find out which map has a specific roaming item.
 
Other methods to obtain glitch items include item mutation through certain [[glitch Pokédex flags]], as well as arbitrary code execution, which, once set up, may again be the most convenient method to manipulate the player's inventory, including item types and item quantities.
182

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.