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

Aurora ticket npc not triggering event or item

  • 18
    Posts
    2
    Years
    • Seen Nov 9, 2023
    Hello
    I am trying to make an npc both give the aurora ticket key item and also enable the event. the code ive written is as follows.

    '---------------
    #org 0xE40F40
    lock
    faceplayer
    checkflag 0x1201
    if 0x1 goto 0x8E40B15
    msgbox 0x8E40B20 0x6 '"Sigh you leave us no choice kid.\n..."
    giveitem 0x172 0x1 0x0
    setflag 0x8E0
    setflag 0x1201
    release
    end

    '---------------
    #org 0xE40B15
    msgbox 0x8E40B76 0x6 '"The fate of Shoal cave depends on\..."
    release
    end


    '---------
    ' Strings
    '---------
    #org 0xE40B20
    = Sigh you leave us no choice kid.\nUse this item and calm the\llegendary monster down.

    #org 0xE40B76
    = The fate of Shoal cave depends on\nyou kid.




    It only makes the npc tell you the last line. I am very new to rom hacking and i am making an event and a story about the shoal cave and Lugia/Ho-oH. I would appericiate a rewritten script as well as pointers.
     
    I think so? the flag 1201 is the one people seem to use to check if an event is done. At least that is what i seem to gather, so the npc cant be triggered twice. The other flag is supposed to be the flag for the event in emerald.
     
    the flag 0x1201 is already set, you need to use an unused flag which you can look for Here.
     
    Back
    Top