Anonymous user
Expanded bag item documentation (Generation I): Difference between revisions
Jump to navigation
Jump to search
Expanded bag item documentation (Generation I) (view source)
Revision as of 21:12, 31 December 2020
, 3 years agoText replacement - "{| {| align=top style="background: grey; -moz-border-radius: 0.5em; border: 5px solid #000000; color: grey"" to "{|"
>Bbbbbbbbba (Fixed an error.) |
m (Text replacement - "{| {| align=top style="background: grey; -moz-border-radius: 0.5em; border: 5px solid #000000; color: grey"" to "{|") |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 3:
{|
|-
|
{| class="wikitable sortable"
! Bag item/quantity !! Disassembly label !! Red/Blue address !! Yellow address !! Details
|-
Line 73 ⟶ 71:
| Item 36 quantity || wLastMap || D365 || D364 || The index of the last map the player was in.
|-
| Item 37 || wUnusedD366 || D366 || D365 ||
|-
| Item 37 quantity || wCurMapTileset || D367 || D366 || The tileset used by the current map.
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item
|-
| Item 129-256 || (copy of items 1-128) ||
|}
|}
Line 228 ⟶ 226:
==Binary-coded decimal (BCD)==
Binary-coded decimal is a system for encoding numbers in which hexadecimal values are read as their visual counterpart in decimal. For instance, $64 in BCD would be interpreted as 64, not 100. It is used most notably for storing the player's money. This means that a value such as $000200 (item 21 has quantity 0, item 22 is an Ultra Ball with quantity 0) will give the player 200 money.
==Roaming items==
{{incomplete|roaming items for red}}
'''Roaming items''' are simply map-specific items found in the expanded item pack. Their corresponding memory addresses are set every time the player enters a map. Since many of those data correspond to pointers, the kinds and quantities of those items are seemingly random, may vary between even similar versions (e.g. English Red and English Blue), and cover a wide range of both normal and glitch items.
The "roaming item area" begins with the quantity of item 37, wCurMapTileset, and it technically extends all the way to the quantity of item 128. However, some memory addresses in this area are left unset if they are unused for a certain map (like the data for a nonexistent map connection). In particular, none of the maps have enough warps to actually fill the item pack up to item 128, so for a large number of items, both the item ID and the quantity remains at 0. The sprite set is also only reloaded if it changed.
Modification of those memory addresses usually has no long-term effect (or no effect at all). As such, swapping those items with unimportant items in the normal inventory is a powerful way of getting glitch items.
===External links===
* [http://pastebin.com/T5gHcAtb List of roaming items for Blue]
{{stub}}
|