Jump to content

Rhydon trap: Difference between revisions

m
Reverted edits by Hacks HAHA (talk) to last revision by InfoManiac742
>Bbbbbbbbba
(→‎Is it a glitch?: Updated the assembly labels to reflect the fully documented current version in pret/pokered.)
m (Reverted edits by Hacks HAHA (talk) to last revision by InfoManiac742)
 
(6 intermediate revisions by 4 users not shown)
Line 1:
{{error traps}}
{{bulbapedia2|Rhydon glitch}}
The '''Rhydon trap''' is a [[Error traps and anti-cheating traps|error trap]] in {{RGBY}}, and the [https://tcrf.net/Proto:Pok%C3%A9mon_Gold_and_Silver| Japanese Gold/Silver Nintendo Space World 1997 demo].
 
Whenever a [[glitch Pokémon]] with a Pokédex number ([[glitch Pokémon family|family]]) greater than 151 (or 0) is captured in the wild or obtained as a gift Pokémon, and its Pokédex entry is registered, it will become a Rhydon if there is space in the party or a Rhydon/original glitch Pokémon hybrid if the glitch Pokémon is sent to the Pokémon Storage System. In the demo versions of Gold and Silver, this Pokémon is Bulbasaur instead, due to it occupying index number 1, where Rhydon had been located previously.
Line 41:
The following code in the {{RB}} ROM is responsible for converting the glitch Pokémon into a Rhydon. It is part of the function [https://github.com/pret/pokered/blob/725b86ebbec23bd1f53fd60bf0201c904fee951d/home.asm#L268 LoadFrontSpriteByMonIndex].
 
and a ; Is the dex number 000?
pop hl
jr z, .invalidDexNumber ; If it is, it's invalid
cp NUM_POKEMON + 1 ; Is the dex number less than 152?
jr c, .validDexNumber ; If it is, it's valid
.invalidDexNumber
ld a, RHYDON
ld [wcf91], a ; Set the index number to 01 (Rhydon)
ret ; Return without loading the sprite
.validDexNumber
push hl
(...)
 
(Source: [httphttps://forumsarchives.glitchcity.info/index.phpforums/topic,board-107/thread-6966.msg195670/page-0.html#msg195670 TheZZAZZGlitch])
 
Despite this, it is unclear what the developers intend to achieve by setting [wcf91] to 01, since this function is called in multiple places, and while some of them will use the value of [wcf91] for further processing (e.g. adding captured Pokémon to party), others will get the species byte from some other memory address instead. In particular, if there was no space in the party before catching the glitch Pokémon and it is sent to the Pokémon Storage System, it will become an [[unstable hybrid Pokémon]] with Rhydon as the donor and the original glitch Pokémon as the recipient.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.