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

[Script] First romhack -Fire red Hidesprite help

  • 1
    Posts
    3
    Years
    • Seen Jul 7, 2023
    Hi, I am hoping someone may be able to help.
    I am creating my first ROM Hack in Fire Red as a proposal for my partner ( Little cliché and done before, I know)

    I am having trouble with the following code
    I am trying to give the player a pokemon on then have the NPC disappear, it is set to trigger after defeating each gym leader (Brock for this example)
    I cannot get this to work, either the NPC continues to give the pokemon and infinate amount of times or disappears before that point or the games crashes.
    I having been working on this for days and cannot get it right. I'm sure it is the stupidest little thing but I am lost.

    #org 0x803DE0
    lock
    faceplayer
    checkflag 0x254
    if 0x0 goto 0x8803E12
    checkflag 0x1202
    if 0x1 goto 0x8803E1D
    msgbox 0x8803E4C MSG_YESNO '"YOU DID IT!\nCould you really be t..."
    compare LASTRESULT 0x1
    if 0x1 goto 0x8803E23
    msgbox 0x8803E8F MSG_NORMAL '"Oh no! What ever will we do now!"
    release
    end

    '---------------
    #org 0x803E12
    msgbox 0x8803FC7 MSG_NORMAL '" SHHHHHHH! NOT NOW!\nDefeat him fi..."
    release
    end

    '---------------
    #org 0x803E1D
    hidesprite 0x4
    setflag 0x1203
    release
    end

    '---------------
    #org 0x803E23
    msgbox 0x8803EB2 MSG_NORMAL '"I knew it was you!\nPlease look af..."
    givepokemon 0xFC 0xA 0x0 0x0 0x0 0x0
    fanfare 0x13E
    msgbox 0x8803FB0 MSG_NORMAL '"[player] recieved a UNOWN!"
    waitfanfare
    setflag 0x1202
    release
    end

    Any help or suggestions would be greatly appreciated.
     
    So, I'm not too sure about the code, sorry.

    But can I suggest fixing the typos at least?
    Specifically: "received an Unown

    and

    "What ever will we do now?!"

    Have you also checked the header script of the map? There may be something in that that is causing the issue, maybe
     
    Back
    Top