The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Early Fossil NPC on Fire Red

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 1st, 2020 (9:44 AM).
Frankollini's Avatar
Frankollini Frankollini is offline
 
Join Date: Oct 2006
Nature: Adamant
Posts: 23
Hi! I've been working on a binary Fire Red hack mostly for personal use. Very new at this, mostly using tools with a tiny lil bit of hex editing.

I wanted to put the Fossil Revival NPC earlier on in the game - I was thinking on the Pewter Museum since it mantains flavor. Would this be as simple as going on a-map and switching the script offset from one of the museum scientists
with the one from the Fossil NPC on Cinnabar?

If not, how else would I go about this?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 1st, 2020 (10:31 AM).
mcferaligatr's Avatar
mcferaligatr mcferaligatr is offline
 
Join Date: Nov 2018
Posts: 120
Don't know what the "binary hack" means but if you want to have the fossil revival scientist from Cinnabar in Pewter's museum, then you could simply just create a new NPC inside the museum and assign the script offset from Cinnabar's scientist to the newly created person event in Pewter, or you could just replace an existing scientist's script offset in the museum with the script from Cinnabar. You can always create a backup before doing any changes in case something goes wrong.

I would personally keep one of the scientist's scripts inside Pewter's museum as he can revive Aerodactyl from Old Amber, and would create a new person event with assigned script from Cinnabar (revives Omanyte and Kabuto).
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 1st, 2020 (11:22 AM).
Frankollini's Avatar
Frankollini Frankollini is offline
 
Join Date: Oct 2006
Nature: Adamant
Posts: 23
Alright! Nice to know it is as simple as I thought it'd be.

Quote:
Originally Posted by mcferaligatr View Post
I would personally keep one of the scientist's scripts inside Pewter's museum as he can revive Aerodactyl from Old Amber, and would create a new person event with assigned script from Cinnabar (revives Omanyte and Kabuto).
I'm thinking of making the old amber guy the fossil revival NPC, and moving Old Amber to a later part of the game just so you don't get it that early. Early Aerodactyl sounds nuts, especially taking into account I have re-usable TMs on the hack and some other perks.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old November 1st, 2020 (1:29 PM).
Frankollini's Avatar
Frankollini Frankollini is offline
 
Join Date: Oct 2006
Nature: Adamant
Posts: 23
Okay, I've run into an issue.
Copying and pasting the script offset works fine; but after I give away the fossil, exit and come back, he refuses to hand me my pokemon. I'm guessing this has to do with maybe a flag or some sort of check that activates on the Lab's warp tile? Maybe?

I've been trying my best to understand/translate the script with sierra's guide, but in case I don't get there or if someone has run into the same problem, I'd appreciate some help.
An alternate solution would be to outright eliminate the waiting time, and get the NPC to give me the fossil instantly with no waiting time. I'm assuming I'd only have to direct the corresponding scripts to the end part?
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old November 1st, 2020 (2:02 PM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
@jujuca

You should check which variables and flags are set/cleared in the script.

Iirc the variable in the script of the researcher in Cinnabar Island's Lab is set to a different value once you enter Cinnabar Islands' (outside) map. So you probably need to check that level script and implement it into the level script of Pewter City.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old November 1st, 2020 (2:46 PM). Edited November 1st, 2020 by Frankollini.
Frankollini's Avatar
Frankollini Frankollini is offline
 
Join Date: Oct 2006
Nature: Adamant
Posts: 23
Quote:
Originally Posted by kalarie View Post
@jujuca

You should check which variables and flags are set/cleared in the script.

Iirc the variable in the script of the researcher in Cinnabar Island's Lab is set to a different value once you enter Cinnabar Islands' (outside) map. So you probably need to check that level script and implement it into the level script of Pewter City.
I'm assuming I can't just copy+paste the 'extra contents' of Cinnabar's level script to Pewter with 0 consequences right? Heh



This is the Fossil NPC's script. As soon as it starts i'm immediately confused because i don't know what 'LASTRESULT' is, and it isn't covered on sierra's guide. I've spent the last half hour just looking at this script and the Cinnabar level script, to try and find what connects them, but to no avail.

Thank you for the extremely helpful reply! Unfortunately I think I might be way over my head on this one.

EDIT: uh, my screenshot is not showing up for me for some reason. Not sure if it's a problem on my end or if i did something wrong.
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old November 1st, 2020 (3:32 PM).
Frankollini's Avatar
Frankollini Frankollini is offline
 
Join Date: Oct 2006
Nature: Adamant
Posts: 23
Sorry for double-posting again, but I wanted to leave this for posterity in case someone else needs this info on the future.

Turns out the variable on the Fossil NPC changes on exiting the Lab itself, and not entering Cinnabar! All I had to do was copy the script offset from the level script on the Lab and it all worked out. Thanks again!
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:16 AM.