The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Oak's Parcel

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 9th, 2016 (6:39 PM).
Canonico25 Canonico25 is offline
 
Join Date: Jul 2016
Posts: 34
So at the beginning of fire red, I deleted the map script when you get the package from the pokemart,I added in the parcel as a hidden item in a house. But after you collect the parcel if you go back to the Lab it doesn't trigger any script from Oak where you can get the dex.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 9th, 2016 (6:44 PM).
BluRose BluRose is offline
blu rass
 
Join Date: Apr 2014
Location: michigan tech
Age: 22
Gender: Male
Nature: Timid
Posts: 812
it's likely actually controlled by a flag, then
check out oak's script in the lab, it might have a checkflag somewhere in there to tell you which flag to set
__________________
heyo check out my github:

BluRosie
highlights:
battle engine for heartgold
various feature branches in heart gold (fairy type, odd egg, mud slopes)

i'm a big part of the development team of pokemon firegold! all the code that i develop for that hack is also on my github

also on discord: BluRose#0412
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 10th, 2016 (2:26 AM).
Christos's Avatar
Christos Christos is offline
 
Join Date: Feb 2006
Gender: Male
Nature: Serious
Posts: 6,355
If you check the script you deleted in the Mart, it's a level script that requires the variable 4057 to be set to 0, and it sets it to 1 when you receive the Parcel. Oak's script checks if variable 4057's value is 1 to receive the Parcel and give you the PokéDex.

So just make sure you put 'setvar 0x4057 0x1' in the script where you receive the Parcel.
__________________

A Pokemon that is discriminated!
Support squirtle and make it everyone's favourite.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old November 13th, 2016 (2:27 PM).
Canonico25 Canonico25 is offline
 
Join Date: Jul 2016
Posts: 34
Quote:
Originally Posted by Christos View Post
If you check the script you deleted in the Mart, it's a level script that requires the variable 4057 to be set to 0, and it sets it to 1 when you receive the Parcel. Oak's script checks if variable 4057's value is 1 to receive the Parcel and give you the PokéDex.

So just make sure you put 'setvar 0x4057 0x1' in the script where you receive the Parcel.
Would you mind giving me an example of this script? Including the giveitem of oaks parcel, I've used giveitem before but for some reason assing the setvar seems to be breaking the script.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old November 13th, 2016 (2:30 PM).
Christos's Avatar
Christos Christos is offline
 
Join Date: Feb 2006
Gender: Male
Nature: Serious
Posts: 6,355
Quote:
Originally Posted by Canonico25 View Post
Would you mind giving me an example of this script? Including the giveitem of oaks parcel, I've used giveitem before but for some reason assing the setvar seems to be breaking the script.
Adding 'setvar 0x4057 0x1' before the giveitem command should work. If it doesn't, try putting it after it? How is the script breaking?
__________________

A Pokemon that is discriminated!
Support squirtle and make it everyone's favourite.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old November 13th, 2016 (2:36 PM). Edited November 14th, 2016 by Logan.
Canonico25 Canonico25 is offline
 
Join Date: Jul 2016
Posts: 34
Quote:
Originally Posted by Christos View Post
Adding 'setvar 0x4057 0x1' before the giveitem command should work. If it doesn't, try putting it after it? How is the script breaking?
I've been using a person script with a pokeball icon, the giveitem script has worked fine but when you add the setvar part the ball doesn't trigger any scripts when clicked on.

Quote:
Originally Posted by Canonico25 View Post
I've been using a person script with a pokeball icon, the giveitem script has worked fine but when you add the setvar part the ball doesn't trigger any scripts when clicked on.
Nevermind, got it! Thanks a lot!!
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:14 AM.