• 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.

Research: The FR Script handling with behavior

  • 91
    Posts
    15
    Years
    • Seen Feb 22, 2023
    Good evening, to start with, i'm a german speaker/romhacker and as a result my english might not be the best...
    Anyways, i came here because i wanted to find out stuff about how the FR scripting engine can handle events triggerd by overworlds on the map. I did a bit of research the last days and found out, that it uses the behavior byte of a tile to find out if the scriptfield stored on top of it should be executed when(for example a rock) enters the tile on the map. This is done by a simple "cmp" check, what it checks is the behavior byte itself. If it's 0x20, the script will be sent to the main script handler.
    The project im currently working on does, however, not use the Firered version as base, it uses Emerald. I was not able to figure out a behavior byte doing all the stuff i want to do in EM. I tired to research the stuff in Emerald, but it does not seem to be implemented, so i would like to kind of port all the stuff from FR to SM, the problem is obvious, lots of conflict between the script handler stuff and aswell the problem of inserting the routine, because SM handles the behavior bytes, or at least the ones i looked at, hardcoded, it checks if the byte is for example 0x3(which is some grass animation stuff) and then goes on, but it does not execute just a asm routine/script.

    Has anybody some information about this topic? I see there are many many experienced romhackers arround, so I just thought it would be the right place to ask for some help.

    Greetings from Austria
    ~SBird
     
    Hello, your English is fine. But when you say SM, you mean Emerald right? And are you hacking the American versions of the game?
     
    He Hacking Emerald thats right but a german Rom.
     
    Back
    Top