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

[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