The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Pokemon Fire Red - How to edit the first healing script (Pallet Town)

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 July 10th, 2019 (9:09 PM).
mcferaligatr's Avatar
mcferaligatr mcferaligatr is offline
 
Join Date: Nov 2018
Posts: 120
Hello everyone, this is my first time posting and I am sincerely sorry if I end up breaking some rules. I've pretty much gained a lot of experience as far as scripting goes and have always used dynamic offsets. The problem is that I don't know how to edit the first healing script so that when the trainer whites out, it spawns in Prof. Oak's lab instead. I've come across Hackmew's and Linkandzelda's tutorial, but I honestly don't understand anything from it, as it also extends the sethealingplace and the thread talks about manually repointing data in Xse which isn't my best subject. I am actually kinda surprised because I'm unable to find much information regarding this topic. I'd like to know how to make the player respawn to Prof. Oak's lab in Pallet town (map bank and number), in a certain x and y position as well as where to put the script (I assume the map script as I've only used person events, signposts and regular scripts so far). Any help would be appreciated.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 11th, 2019 (5:45 AM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
The information in linkandzelda's tutorial is enough to find how the data that sets which map you respawn in. He says that the table to spawn points is structured like this: "[Map Bank - 2 Bytes] [Map - 2 Bytes]" and give the start of the table as 0x3EEC98. Since the player's house is the first spawn point in the table you just have to edit the first four bytes to change where you respawn. Specifically, in order to change the spawn point from your house to Oak's Lab, you need to change the byte at 0x3EEC9A to 03.

As for changing the scene that plays out when you respawn, you can find the default script at 0x1A8DD8. You can do a nifty trick to repoint the script without having to change its pointer in a hex editor every time you want to edit it. Use this excerpt at the start of your script and it will repoint your new commands/ dialogue/ whatever to free space:

Code:
#dynamic 0x800000

#org 0x1A8DD8 // Begining of mother's revive script
goto @Repoint

#org @Repoint
... // Your new script continues from here
If you want to change the Pokemon Centre respawn script as well, you can do the same thing, but change the static pointer to 0x1A8D97.
__________________
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:19 AM.