The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Making an NPC disappear permanently?

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 November 25th, 2017 (6:34 PM).
Za_Destroyer's Avatar
Za_Destroyer Za_Destroyer is offline
hmmm yes I drive gud
 
Join Date: Oct 2012
Location: terra firma
Gender: Male
Nature: Adamant
Posts: 41
Hiya!

I've been fiddling around with the ROM for Pokémon Ruby for a project of mine, and I've come across a bit of an issue. There's a certain character I'm trying to add in the game where after you battle (and win) against him, he disappears from the map to let you enter Granite Cave.

(To clarify, that really is how I intend for it to happen! Don't ask. ;P)

The problem is, although I've gotten him to disappear temporarily, if I exit and enter the map again, he reappears!!! 0_0

So, I was wondering what a scripting solution to this could be. Please keep in mind that I'm really new to ROM hacking (been doing it for literally a few days XD). I'm using XSE, AdvanceMap 1.92, and Pokémon Ruby V1.0.

Thanks so much for your time!
-Za_Destroyer
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 25th, 2017 (11:34 PM). Edited November 25th, 2017 by Lancekoijerwillborough.
Lancekoijerwillborough Lancekoijerwillborough is offline
 
Join Date: Jan 2017
Gender: Male
Posts: 41
The best way to do that is to set him a person ID
and then use setflag command.



For example, you used Flag 200 as his Person ID

use setflag 0x200 and he will disappear unless you clear that flag.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 26th, 2017 (8:23 AM).
Za_Destroyer's Avatar
Za_Destroyer Za_Destroyer is offline
hmmm yes I drive gud
 
Join Date: Oct 2012
Location: terra firma
Gender: Male
Nature: Adamant
Posts: 41
I attempted to set the flag of an NPC in a simple script and couldn't get it to work. Maybe I did it wrong?

#dynamic 0x800000
#org @start
lock
faceplayer
setflag 0x0066
release
end
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old November 26th, 2017 (11:57 AM).
ASDBUDDY's Avatar
ASDBUDDY ASDBUDDY is offline
The Derp
 
Join Date: Apr 2017
Location: aint gonna tell ya
Age: 22
Gender: Male
Nature: Docile
Posts: 347
Quote:
Originally Posted by Za_Destroyer View Post
I attempted to set the flag of an NPC in a simple script and couldn't get it to work. Maybe I did it wrong?

#dynamic 0x800000
#org @start
lock
faceplayer
setflag 0x0066
release
end
you need to set that ID in the event via Advance Map as well
__________________
https://discord.gg/bEwyPd7
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old November 26th, 2017 (4:52 PM).
Za_Destroyer's Avatar
Za_Destroyer Za_Destroyer is offline
hmmm yes I drive gud
 
Join Date: Oct 2012
Location: terra firma
Gender: Male
Nature: Adamant
Posts: 41
Quote:
Originally Posted by ASDBUDDY View Post
you need to set that ID in the event via Advance Map as well
I did that, and it still doesn't work. :(
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old November 27th, 2017 (4:26 AM).
Lancekoijerwillborough Lancekoijerwillborough is offline
 
Join Date: Jan 2017
Gender: Male
Posts: 41
Quote:
Originally Posted by Za_Destroyer View Post
I did that, and it still doesn't work. :(
Use flags 15c - 1a2

flag 0x60, as far as I know, is used in the game.
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old November 27th, 2017 (1:03 PM).
Za_Destroyer's Avatar
Za_Destroyer Za_Destroyer is offline
hmmm yes I drive gud
 
Join Date: Oct 2012
Location: terra firma
Gender: Male
Nature: Adamant
Posts: 41
Tried using flag 0x015D and flag 0x15D and the guy still came back. I made absolutely sure to set the Event ID correctly in Advance Map each time as well.

Sorry for being such a pain. I really appreciate the help you guys are giving me!
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old November 28th, 2017 (5:14 AM).
Lancekoijerwillborough Lancekoijerwillborough is offline
 
Join Date: Jan 2017
Gender: Male
Posts: 41
Quote:
Originally Posted by Za_Destroyer View Post
Tried using flag 0x015D and flag 0x15D and the guy still came back. I made absolutely sure to set the Event ID correctly in Advance Map each time as well.

Sorry for being such a pain. I really appreciate the help you guys are giving me!
It would be cool if you could send us the compiled script that set the flag of that OW and the screenshot of Advance Map with the Event data of the OW you wished to disappear.
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

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:15 AM.