• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
342
Days
    • 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?
     

    sylingga

    Red Everywhere
    86
    Posts
    10
    Years
    • Seen May 6, 2024
    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.
     
    7
    Posts
    342
    Days
    • Seen Sep 24, 2023
    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?
     

    sylingga

    Red Everywhere
    86
    Posts
    10
    Years
    • Seen May 6, 2024
    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