• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

[ASM & Hex] porting scripting commands from EM to FR?

  • 232
    Posts
    14
    Years
    • Seen Sep 10, 2019
    Is it possible to port a script command that only exists in EM to FR? I've gone as far as repointing the commands table (0x15F9B4) and added an entry (command 0xD6) that is a pointer to my fadescreen3 routine. I tested it and it did nothing ingame, so I'm thinking there is a limiter or a routine that does not recognize 0xD6. I also tried replacing the fadescreen pointer to my routine just for further testing- it allowed the script to continue running but again, did nothing.
     
    Is it possible to port a script command that only exists in EM to FR? I've gone as far as repointing the commands table (0x15F9B4) and added an entry (command 0xD6) that is a pointer to my fadescreen3 routine. I tested it and it did nothing ingame, so I'm thinking there is a limiter or a routine that does not recognize 0xD6. I also tried replacing the fadescreen pointer to my routine just for further testing- it allowed the script to continue running but again, did nothing.

    There are multiple limiters. They basically are just a pointer to the last command in the script command table. You'd have to change the pointers at 08069AA0, 08069B20, 08069B7C to point to a nop at end of your repointed table (they currently point to 0815FD08).
     
    Back
    Top