• 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✓] Script activates right after another ends

  • 6
    Posts
    11
    Years
    • Seen Jul 8, 2021
    Edit:
    I fixed this myself, by going and setting the flag (in this case 0x200) after the first rival battle, before the 2nd script started
    I then cleared the flag later on in a very simple script that looks like this
    Spoiler:
    Just put this on a script at someplace the player HAS to walk, and you're good, or put it in a conversation :)


    Hello everyone!
    I'm working on my first romhack, but I have a problem.
    At the start, after the first rival battle, I have a script that's a bit different and gives a lot of items, that's all good and works as it should, it looks like this:
    Spoiler:

    The problem is, that right after this script ends, a later script is playing, which should play on a later map, it looks like this:
    Spoiler:


    This one is assigned to the same sprite, but not the same var number or unknown number in AM.
    Does anyone know what could cause this problem? I am thinking a way might be setting the flag right after the rival battle and then clearing it before the 2nd encounter.
     
    Last edited:
    Back
    Top