Jump to content

Pokémon Yellow predefined functions list: Difference between revisions

m
Text replacement - "http://forums.glitchcity.info" to "https://forums.glitchcity.info"
>Yeniaul
(Initial Commit)
 
m (Text replacement - "http://forums.glitchcity.info" to "https://forums.glitchcity.info")
 
(9 intermediate revisions by 5 users not shown)
Line 1:
This is a list of {{Y}} predefined functions. All values are in [[hexadecimal]].
Pokemon Yellow Defined Functions
 
Some values that are stated "Nonfunctional" and "Softlock" may do something when certain conditions are met, but I'm lazy, so...
Research by Yeniaul
yeniaul48<at>gmail<dot>com
 
==Executing predefined functions==
All values in hex!
===Hacked ROM===
 
Predefined functions can be executed with [https://forums.glitchcity.info/index.php?action=profile;u=1199 TheZZAZZGlitch]'s debug Pokémon Yellow by using the "Debug" item (known as "31337" in earlier ROMs), which can be withdrawn from the player's PC at the beginning of the game or added as item 1 with the [[GameShark]] code 012C1DD3.
Some values that are stated "Nonfunctional" may do something when certain conditions are met, but I'm lazy, so...
 
----
 
In at least the latest revision, one must use the debug item, select "Miscellaneous", scroll down to "Predef [7 heal]", adjust the value with right (ID +01h) and/or left (ID+10h) and press A to run the predefined function.
 
==List of predefined functions==
00: Shows in-battle HUD for exactly 5 frames
 
01 - 03: Nonfunctional
 
04: Writes random garbage to tile graphics,. gameplayEffect unaffectedis cosmetic.
 
05 - 06: Nonfunctional
Line 31 ⟶ 30:
0D - 0E: Softlock
 
0F: Initialises Player Data (Party, items, badges only)
0F: Faux New Game (all boxes and party Pokemon removed, items removed, badges removed, but no trainers or gyms reset. Curious.)
 
10 - 17: Nonfunctional
 
18: FauxInitialises NewPlayer GameData
 
19 - 1A: Nonfunctional
Line 59 ⟶ 58:
29: Pokedex menu
 
2A - 2B: Nonfunctional
 
2B: Saves the game to SRAM0
 
2C: Battle start, works
Line 65 ⟶ 66:
2D: Nonfunctional
 
2E: SomeDraws sortthe of8 squares flashbadges on the bottomTrainer of the screenmenu for exactly 5 frames (Needsuses the tileset of the loaded investigation.map)
 
2F: Trade, nonfunctional
 
30: GraphicPlays for trainerthe battle start, nonfunctionaltransition
 
31: Small amounts of tile corruption, text to be specific.
 
32: Plays the Intro. Returns to the overworld when finished, but does not reload graphics. Any NPCs onscreen will show on-screen during intro.
32: Intro and title, then graphical errors (It's actually an overlay...? No actual reset occurs, just the graphics. It dumps control back to the player, so the map graphics get screwed up.)
 
33: Nonfunctional
 
34: Flashes the screen indefinitely.
34: Battle flashing. (No black, just flashing.)
 
35: Nonfunctional
Line 89 ⟶ 90:
39 - 3A: Nonfunctional
 
3B: All tiles and sound filled with garbage.
 
3C: Cut, working
Line 115 ⟶ 116:
4B: Nonfunctional
 
4C: Displays Emotion Bubble. Replaces text tiles 2, 3, 4, and 5 with "Trainer spotted you!" bubble.
 
4D: Nonfunctional
Line 123 ⟶ 124:
4F: Softlock
 
50: Saves to SRAM2
50 - 51: Nonfunctional
 
50 - 51: Nonfunctional
 
52: Goes to a white screen and forcibly loads the save file, gives "file data is destroyed!" message if one does not exist. Pokemon and item data is loaded correctly however the tileset for the map is not changed if the save was in a different map.
52: Writes black to entire screen, graphical only
 
53: NonfunctionalSaves to SRAM1
 
54: "Wanna trade CLEFAIRY for MR.MIME?"
 
55: Enter Hall of Fame, then credits. Works, but screwsthen updumps allyou menusback into whatever state you were in before calling. Does not reload graphics.
 
56: Professor Oak's Rating
Line 143 ⟶ 146:
5C - 60: Nonfunctional
 
61: Elevator menu with invalid floors. The menu may display mart items. If inside an Elevator after selecting an option, the elevator will move after exiting the menu but you will exit to a glitched map.
61: Elevator menu
 
62: If you caught 0 kinds of pokemon, get item 0x00.
Line 177 ⟶ 180:
A1: Softlock
 
A2: "[]5 error." where [] = tile 25
 
A3 - A5: Softlock
Line 191 ⟶ 194:
AA: Nonfunctional
 
AB: Battle HUD appears, then "It's not very effective..." appears
 
AC: See 92
Line 199 ⟶ 202:
AE: Nonfunctional
 
AF: 3TRAINERPOKe (that always turns into a Rhydon, not due to the [[Rhydon trap]]) was caught!
 
B0: Text scramble, then crash
Line 207 ⟶ 210:
B6: Pops all text boxes
 
B7 - FF: Softlock/Nonfunctional
[[Category:Databases]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.