• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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] Difficulty Making a sprite disappear

  • 1
    Posts
    3
    Years
    • Seen Jul 30, 2022
    Hello,

    I recently began work on my own custom Pokemon FireRed Romhack, and got to the point where the player chooses their starter. However, I ran into difficulty with making the Pokeball disappear when the player chooses the pokemon they want.

    The sprite does disappear at first, however after the player takes a step, it reappears again, making me believe it's an issue with Flags. However, I can't figure out what is wrong.

    Here is the script:

    #dynamic 0x800000

    #org @start
    lock
    checkflag 0x205
    if 0x1 goto @chosenpokemon
    checkflag 0x206
    if 0x1 goto @chosenpokemon
    showpokepic 0x440 0xA 0x3
    pause 0x30
    msgbox @tl 0x5
    compare 0x800D 0x1
    if 0x1 goto @yes
    hidepokepic
    release
    end

    #org @chosenpokemon
    msgbox @tl2 0x6
    release
    end

    #org @tl
    = Prof: So, You choose [green_fr]Turtwig[black_fr]?

    #org @tl2
    = Prof: You can't take another!

    #org @yes
    hidepokepic
    hidesprite 0x5
    setflag 0x204
    givepokemon 0x1B8 0x5 0x8B 0x0 0x0 0x0
    setflag 0x828
    release
    end


    The Person ID set to the pokeball is 0204, and the person event no. is 5.

    If anyone can help me figure out the issue, it'll be very appreciated!

    Thank you in advance.
     
    Last edited:
    Back
    Top