• 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] Hidesprite command not working, despite nearly identical script elsewhere working

  • 27
    Posts
    8
    Years
    I'm making a reoccurring trainer in my hack that leaves after he is beaten (through fadescreen and hidesprite),
    but in one of his scripts, he just stays there after the screen fades back in and acts as if he was never fought.

    Here are the two scripts I have so far, the correctly working one and the one that isn't working:

    Working:

    Code:
    lock
    faceplayer
    msgbox 0x8184CF1 MSG_NORMAL '"HYNE: Gyehe! We meet again, [playe..."
    special 0x3B
    playsong 0x1D6 0x0
    trainerbattle 0x0 0x9C 0x0 0x8184D31 0x8184D31
    msgbox 0x8184D4D MSG_NORMAL '"HYNE: Grrr[.]\nyou brat!\pJust you..."
    fadescreen 0x1
    hidesprite 0x6
    setflag 0x202
    pause 0x10
    fadescreen 0x0
    release
    end

    Not Working:
    Code:
    lock
    faceplayer
    msgbox 0x817279D MSG_NORMAL '"Hey! Who the heck are you?\n[.][pl..."
    special 0x3B
    playsong 0x1D6 0x0
    trainerbattle 0x0 0xB5 0x0 0x81727CB 0x81727CB
    msgbox 0x81727DF MSG_NORMAL '"You little pest! I, Hyne,\nwon't f..."
    fadescreen 0x1
    hidesprite 0x12
    setflag 0x203
    pause 0x10
    fadescreen 0x0
    release
    end

    I'm not sure what the problem could be, since I also made sure the flags and person IDs matched in the case
    of both scripts, as well as the person events/sprites to hide.
     
    In A-Map, the Person ID box is written in decimal notation rather than hexadecimal. This means that if the Person ID in A-Map says 12, you need to write 0xB in XSE.
     
    Back
    Top