• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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