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

[FireRed] Question: Deleting two Overworlds with a single script

  • 4
    Posts
    2
    Years
    • Seen Jul 17, 2023
    Hey, all! Fairly new to all of this, and had an issue. Basically, I have been using setflag + hidesprite to get rid of one time trainer encounters in the overworld. In the below script, I set flag 227, which is also the person ID of a Whitney and Chansey sprite. Upon execution of the below script, the Whitney sprite successfully disappears. However, the Chansey sprite remains on its own. Any idea how to get a single script to successfully hide multiple sprites?

    #dynamic 0x800000

    '---------------
    #org @start
    lock
    faceplayer
    msgbox @4 0x6
    trainerbattle 0x1 0x1DB 0x0 @before @after @later
    end

    #org @before
    = Okay, here we go!

    #org @after
    = Oof! You're awesome!

    #org @later
    msgbox @1 0x6
    giveitem 0x44 0x5 0x0
    closeonkeypress
    msgbox @3 0x4
    closeonkeypress
    fadescreen 0x1
    hidesprite 0x800F
    fadescreen 0x0
    setflag 0x227
    release
    end

    #org @1
    = Well, looks like Chansey is\nfinally moving again. I guess\lwe can all be on our way.\lYou better take these before my\lChansey gets a hold of it.

    #org @3
    = Aaand we're off!\nLet's go, Chansey.

    #org @4
    = S-sorry!\nAre we in the way?\lMy Chansey is in food coma.\lI've been trying to get her up\lfor the past two hours.\lI apologize, but I don't\lthink anyone can leave unless my\lChansey gets up.\lHey! I got an idea!\lWhy don't we battle?\lI'm sure that will energize\lmy Chansey to move!
     
    hidesprite 0x800F means lasttalked, this makes only the sprite of the last person you talked to disappear.
    You have to use the hidesprite command with the Person Event number you see in AdvanceMap.
    For example when Whitney is Person Event No. 5 and Chansey 10, you would use:
    hidesprite 0x5
    hidesprite 0xA
     
    Back
    Top