• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Reappearing pokemon event?

ChaosSigma0

How do I change this stupid username?
  • 16
    Posts
    11
    Years
    (I hope this is in the right place...) Greetings, fellow humans.
    I've been working on a romhack of my own, on and off, for a few months now. And now I've got to a point where I'm stuck...

    I'm using Advance Map and PKSVUI. Here's the code:

    Spoiler:

    When the battle is complete, the screen is supposed to fade to black and back with the pokemon gone, some text, and an item 'dropped'. But as soon as I take another step, it appears again in the same spot! Interacting with it again repeats the whole thing over again.

    I just don't know what went wrong.

    Please help, I'm not exactly well-versed in this scripting business as this is my first romhack. I'm good at designing maps, but scripting looks like a pain.
     
    I don't remember the right flag range off the top of my head, but it's possible you didn't use a safe flag. I don't recall ever using 1000+ flag range, I'd double check that those are safe. Most safe flags are between 200-400 I think, the ones Nintendo usually uses.

    Or what the other person said, you didn't give your NPC a character id that matches your flag.
     
    (I hope this is in the right place...) Greetings, fellow humans.
    I've been working on a romhack of my own, on and off, for a few months now. And now I've got to a point where I'm stuck...

    I'm using Advance Map and PKSVUI. Here's the code:

    Spoiler:

    When the battle is complete, the screen is supposed to fade to black and back with the pokemon gone, some text, and an item 'dropped'. But as soon as I take another step, it appears again in the same spot! Interacting with it again repeats the whole thing over again.

    I just don't know what went wrong.

    Please help, I'm not exactly well-versed in this scripting business as this is my first romhack. I'm good at designing maps, but scripting looks like a pain.

    You need to set a flag at the end of your script, then place the same flag at Person ID in A-Map.
     
    Thanks for the info, you guys! ^^

    I did forget to set the ID for the event sprite in Advance Map. And just so I don't accidentally screw something else up later on, I'm using a flag reference list I just found here.

    And I'll take longlostsoldier's word for it, and use the flags around 0x200.
     
    Back
    Top