• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - 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.

[Other] Need Help - Adding 2nd Rival into Intro (Firered)

  • 12
    Posts
    8
    Years
    • Seen Nov 21, 2019
    Just as the title states, I'm looking to get some help with adding a second rival into Oak's introduction. I'm rather new to rom hacking and I'm starting simple. However, my grasp on everything isn't the strongest yet. So thanks for any help! -I want Oak to introduce the second rival after Gary/Blue. -I want the second rival to be the other protagonists. (If I chose to be male, Oak would introduce the female counterpart, and vice versa.) -I want the player to choose the name just as you would for Gary/Blue. If I need to clarify anything, I'll happily try and explain myself better. Again, thanks for the help!
     
    Not easy and I've never seen it done, you'd have to learn some ASM hacking to even have a hope of creating this feature. I suggest, as a beginner, you leave this feature out and figure out a workaround.
     
    Not easy and I've never seen it done, you'd have to learn some ASM hacking to even have a hope of creating this feature. I suggest, as a beginner, you leave this feature out and figure out a workaround.

    Yeah I was hoping someone might have an idea, but I guess I'll just have to have Oak introduce the second rival with some scripting in-game. Only thing is, I'm not quite sure how to get the second rival to use the third pokemon. I know I've got to make a team for each potential outcome but that's about where I'm stuck. If anyone could help me out with this I'd appreciate it. Just sucks that I won't really be able to have it be the leftover protagonist like with May/Brendan in R/S/E.
     
    Spoiler:
    0x4031 is the starter var
    one of the simplest examples of how this is possible occurs in one of the champion's scripts, located at 0x162AF2
    here's the decompiled xse version:
    Spoiler:
    so basically what it does is set var 0x8004 to 0x4 (to denote that you're in the fifth room of the elite four), it then continues to execute special 0x1A1 (tbh idk what it is, but it likely uses var 0x8004 as a sort of input for it). it FINALLY checks if var 0x4031 has value 0x2. if it does, then it jumps to a separate place corresponding with the team that the rival uses in order to counter that. the separate place also includes the rematch team. it then checks if var 0x4031 has value 0x1, repeating the same process as above for value 0x1 and then value 0x0 after that.

    this process is easily emulate-able and usable for the opposite way. just check the var and branch off depending on the value.

    oh, and btw. i sorta forgot about this part: var 0x4031 values:
    0x0 - bulbasaur
    0x1 - squirtle
    0x2 - charmander
     
    Back
    Top