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

Is it in any way possible to writetooffset a variable?

  • 20
    Posts
    8
    Years
    • Seen Sep 4, 2021
    Scripting for Fire Red with XSE, and I want to write the value currently stored in a variable to an offset, in the same manner as writetooffset. Is this possible, even in a round about way?
     
    Thanks, but what offset would I use in the copybyte command for that variable?
     
    Last edited:
    Code:
    copyvar 0x800X 0x[yourvar]
    copybyte 0x[youraddress] [0x020270B8 + 0x800X * 2] ' so 0x020370B8 if using var 0x8000, 370BA if using var 0x8001, etc.
    note that you can't actually write to ROM space
     
    note that you can't actually write to ROM space

    Oh, well that certainly throws a wrench in my plans. Is there any other way to overwrite wild and trainer pokemon levels through scripting? Was planning to just directly overwrite them in the trainer/level scripts.
     
    Oh, well that certainly throws a wrench in my plans. Is there any other way to overwrite wild and trainer pokemon levels through scripting? Was planning to just directly overwrite them in the trainer/level scripts.
    um
    no, not reallt
    if you feel up to the task, you can comb through this and check out his level-loading routine and modify it to your usage

    i can check into it a little bit after school maybe sometime assuming i don't do robotics tomorrow or something :P
     
    I have zero experience with ASM, but I'll start looking into it. That link looks a bit out of my league though.

    Going in a different direction... I see that enemy pokemon information is stored in RAM.
    Could I edit their level there?
    Would that data be accurate in the OW at any point, or only during battle?
    If only during battle, is there a way I could change it at the start of/during battle?
     
    Last edited:
    Back
    Top