• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
10
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
     

    daniilS

    busy trying to do stuff not done yet
    409
    Posts
    10
    Years
    • Seen Jan 29, 2024
    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