• 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!
  • Our next favorite protagonist poll is for the Oblivia region, from Pokémon Ranger 3! This poll is only lasting 2 days, so don't forget to cast your vote for your favorite protagonist before it's over!
  • 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✓] [Fire-red] Pokemart dialogue problem

  • 7
    Posts
    5
    Years
    • Seen Sep 26, 2019
    I recently got to XSE scripting and seeing what features advancemap 1.92 had, and so I wanted to start off with something basic, like adding an NPC that sells stuff in a mart.

    I followed Avara's guides on how to do it (see pokemart) :

    https://www.pokecommunity.com/posts/9957327/
    https://www.pokecommunity.com/threads/420039/

    And things seem to work out right, but the problem is that when I approached the NPC on this side and pressed A, the script doesn't run at all, and nothing happens; but when I approached him on this side and pressed A, the script runs and everything works fine.

    Being new to this whole scripting environment, I don't know what to do at all to rectify this problem, or what I did that caused it.. so I was wondering if anyone would be kind enough to help. :(
     
    Last edited:
    I recently got to XSE scripting and seeing what features advancemap 1.92 had, and so I wanted to start off with something basic, like adding an NPC that sells stuff in a mart.

    I followed Avara's guides on how to do it (see pokemart) :

    https://www.pokecommunity.com/posts/9957327/
    https://www.pokecommunity.com/threads/420039/

    And things seem to work out right, but the problem is that when I approached the NPC on this side and pressed A, the script doesn't run at all, and nothing happens; but when I approached him on this side and pressed A, the script runs and everything works fine.

    Being new to this whole scripting environment, I don't know what to do at all to rectify this problem, or what I did that caused it.. so I was wondering if anyone would be kind enough to help. :(

    There is probably nothing wrong with the script. Usually you can only talk to an NPC when it's standing one block away from you. Because there is a counter in between in case of a Pokemon Mart (Or a Pokemon Center for example), you could normally not talk to a person standing behind it.
    To make it work, the tile between you and the NPC needs to have behavior byte 0x80 assigned to it. So you should assign behavior byte 0x80 to the counter in the block editor of AdvanceMap.
     
    There is probably nothing wrong with the script. Usually you can only talk to an NPC when it's standing one block away from you. Because there is a counter in between in case of a Pokemon Mart (Or a Pokemon Center for example), you could normally not talk to a person standing behind it.

    To make it work, the tile between you and the NPC needs to have behavior byte 0x80 assigned to it. So you should assign behavior byte 0x80 to the counter in the block editor of AdvanceMap.

    I just tried it out, and it worked!!
    Seeing it now, it totally made sense why it didn't work before.

    Thank you so much for your help.
    You're a lifesaver. :)
     
    Back
    Top