The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script [Fire-red] Pokemart dialogue problem

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old September 24th, 2019 (9:39 PM). Edited September 25th, 2019 by Wilde Jagd.
Wilde Jagd Wilde Jagd is offline
 
Join Date: Jul 2019
Posts: 7
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/showpost.php?p=9957327&postcount=30
https://www.pokecommunity.com/showthread.php?t=420039&highlight=mart

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. :(
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old September 25th, 2019 (2:15 AM).
kalarie kalarie is online now
 
Join Date: Jun 2008
Posts: 760
Quote:
Originally Posted by Wilde Jagd View Post
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/showpost.php?p=9957327&postcount=30
https://www.pokecommunity.com/showthread.php?t=420039&highlight=mart

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.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old September 25th, 2019 (2:30 AM).
Wilde Jagd Wilde Jagd is offline
 
Join Date: Jul 2019
Posts: 7
Quote:
Originally Posted by kalarie View Post
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. :)
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:13 AM.