• 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!
  • 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] Reading RAM and setting it to a variable?

PurpleOrange

still don't know what I'm doing
  • 367
    Posts
    11
    Years
    I was just wondering if it were possible to read a number in RAM and set that number to a variable to read in a script. For instance if the number in the RAM was 17, it would be set to a variable, and in the script, you'd compare the variable and if it was 17 goto a part of the script, but if it was a different number, it would go goto to another part of the script
     
    I think you could use copybyte and write the byte to one of the temporary variables (after setting the var to 0 first).

    EDIT: actually, if you only want to compare the byte to a value, why not use comparefarbytetobyte?
     
    Last edited:
    Back
    Top