• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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!
  • 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] Scripting problem

  • 287
    Posts
    12
    Years
    Spoiler:


    Rom: FireRed
    Script type: script tile

    So, the problem is the flag
    The script works and all, but when I step on the tile again it happens again
    I guess my script works too well!
    Is the problem the flag?
    If so, is there any list with safe flags for fire red?
    Thanks in advance :)
     
    The only problem is right at the start, where you have your checkflag command. When you use checkflag, you don't need to use compare. checkflag is like using a compare, but for flags rather than compare which is only for variables. Using both will result in two separate checks, and because LASTRESULT is reset each script, it will always be false in this case.

    So, just change the start to...
    Code:
    #dynamic 0x800AC5
    
    #org @start
    lockall
    checkflag 0x10a
    if 0x1 goto @z
    ...

    ...and the rest should be good.
     
    Back
    Top