• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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 Not Permanently Hiding Sprite

  • 7
    Posts
    1
    Years
    • Seen Sep 24, 2023
    I am using XSE and followed a YouTube tutorial to write this script.

    #dynamic 0x800000

    #org @start
    hidesprite 7
    fanfare 0x13E
    msgbox @talk1 0x6
    givepokemon 0x100 0x19 0x44 0x0 0x0 0x0
    waitfanfare
    setflag 0x1202
    release
    end

    #org @talk1
    = You obtained a COMBUSKEN!

    When I interact with the person event, it is supposed to hide the sprite, display a text box, and add Combusken to my team.
    When I interact with the person event, here is what actually happens. It disappears, displays the text box, and I am unable to check my party if Combusken is there so I am assuming it doesn't actually add it. It is supposed to be a level 25 Combusken with a rare candy as a held item. After I take my first step after interacting with the event, the event reappers.
    How do I get the event to do as intended?
     
    What Map editor do you use?
    You need to give flag to the NPC in Advance Map / HexManiac Advance
    In AMap, there was Person ID, thats where you put the flag (1202)
    In HMA, its FLAG on map editor, you put that flag (1202)
    and i assume that flag 1202 is free /unused flag, so you can use it.
     
    What Map editor do you use?
    You need to give flag to the NPC in Advance Map / HexManiac Advance
    In AMap, there was Person ID, thats where you put the flag (1202)
    In HMA, its FLAG on map editor, you put that flag (1202)
    and i assume that flag 1202 is free /unused flag, so you can use it.

    I got it so the sprite stays disappeared after moving, but I still can't view the Combusken. Is there something that needs to be done before Pokemon become visible in the player's party?
     
    I got it so the sprite stays disappeared after moving, but I still can't view the Combusken. Is there something that needs to be done before Pokemon become visible in the player's party?

    Did your Pokemon Menu, already appear? if not, you need to setflag for showing Pokemon Menu (when press Start).
    givepokemon 0x100 0x19 0x44 0x0 0x0 0x0
    this script means :
    0x100 -> pokemon ID / index number
    0x19 -> Pokemon Level
    0x44 -> Item that pokemon holding
    0x00 -> unused byte
    Did you already give right number?
     
    Back
    Top