• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Help needed about Pokedex and End Credits Screen in FireRed

Hi. I have been into ROM Hacking properly for several months now and still am a bit of noob in the area. There are two things I would like to know.

Firstly, is there a way to change the flag number that activates the Pokedex option in the menu from 829 to something else?
I saw FBI's post about editing the Start menu and decided to implement some features replacing some from the Start menu. The Pokedex is going to be replaced with a Ride Pager kind of thingy and I want the option to activate when the player has received a Charizard. I already used the flag 60B to check if the player has received a Charizard or not. So can I change the flag number for Pokedex from 829 to 60B somehow?

Alternately, can I use the flag 829 for internal scripts in my game? I could replace the Charizard checking flag to be 829 instead of 60B in my scripts. However, the flag also controls some overworld appearance and disappearance of NPCs in the game. Is 829 safe to use for these purposes?

Secondly, I have planned a branched ending in my game. Is there a way to change the maps shown in the end credits of Fire Red based on the ending i.e. some kind of flag or variable? I want certain maps to appear in one ending and other maps in another ending.

Thanks in advanced!
 
Yes, you can use flag 0x829 like any other flag in the game. Just be aware that it also activates the Pokemon Menu when it's set.

On the credits section in Fire Red:
The maps shown in the credits section are determined by a table at 0x414588. It's a table with 13 pointers, starting at 0x4143e8, every entry has a length of 0x20.

The bytes that determine the starting point and direction are as follows:
Byte 0x3 = The map bank
Byte 0x5 = The map number
Byte 0x9 = X starting coordinate
Byte 0xB = Y starting coordinate

Byte 0x11 to 0x14 of the entry determines the direction in which the camera moves.
00 00 01 00 = Down
00 00 FF FF = Up
01 00 00 00 = Right
FF FF 00 00 = Left
01 00 FF FF = Up-right Diagonally
01 00 01 00 = Down-right Diagonally
FF FF FF FF = Up-left Diagonally
FF FF 01 00 = Down-left Diagonally

Is it possible to make an alternate ending depending on what happens in your game? Probably. But that would very likely require a custom ASM routine.
 
Thanks a lot! Especially for the offset of the end credits table.

I am still not very good with ASM routines and all but I think I will give it a try after all the main story scripts are done. I guess I'll just repoint to different tables based on the different endings.
 
Back
Top