• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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
    13
    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