• 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!
  • Dawn, Gloria, Juliana, or Summer - 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.

[Other] Script help ... checkitem ... goes through with script even though dont have item

Le pug

Creator of Pokémon: Discovery / Fat Kid
  • 871
    Posts
    11
    Years
    So flags 1171 and 1170 are set before this script. It goes directly to the offset after the checkitem ... even though the player has to go get the item and doesn't have the item yet ... any help?


    (All offsets with nothing afterwards are just text offsets, removed text)


    Spoiler:
     
    #org @next
    checkitem 0x173 0x1
    if 0x1 goto @next2
    ...

    This is your problem. You have to put a compare here. So:

    Code:
    #org @next
    checkitem 0x173 0x1
    compare LASTRESULT 0x1
    if 0x1 goto @next2
    ...

    I make this mistake all the time, so don't feel too bad, but checkitem needs a compare after it. Hope I helped!
     
    Back
    Top