• 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✓] [EM] Script (XSE) freezes game

  • 8
    Posts
    7
    Years
    • Seen Sep 28, 2022
    So I am still desperate failing to find out what's wrong with my script for my Emerald based hack. It is supposed to activate, when you step on a certain script in the OW.

    What I want the script to do is: First to check that the event hasnt happened yet and to make sure that a certain sprite is hidden until one has fought the rival in Rustboro City.
    Once that is done, stepping on the script shall make you (/the protagonist) notice (#raw 0x56) that a new person is on the map who wants to battle you. Screen fades black, you are slightly warped, screen turns normal, and the person appears and walks towards you. Blabla and Battle. After you win, the person gives you an item and walks away and disappears again (hidesprite 0x23).

    By experimenting, I could figure out that the script would hide the sprite when neither flag 0x23 nor 0xD3 are set. As it is supposed to do. Only when flag 0xD3 is activated, the according subscript freezes the game.

    The Script:
    Spoiler:


    EDIT/Solved: I had to figure out that all my problems were mostly caused by a too great tile-distance of the script and the NPC. I assumed warping the player closer to the NPC would avoid that. It did not though. Fixing OW positions "fixed" the script.
     
    Last edited:
    Maybe D3 is already being used by the game?
     
    Maybe D3 is already being used by the game?

    It is indeed already being used by the game. I used it on purpose to put my new event into the preset order of the story events of the game.
    I could eventually fix the problem. OP is edited. Still thank you.
     
    Back
    Top