The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Oak's Parcel (https://www.pokecommunity.com/showthread.php?t=382868)

Canonico25 November 9th, 2016 6:39 PM

Oak's Parcel
 
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.

BluRose November 9th, 2016 6:44 PM

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

Christos November 10th, 2016 2:26 AM

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.

Canonico25 November 13th, 2016 2:27 PM

Quote:

Originally Posted by Christos (Post 9482121)
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.

Christos November 13th, 2016 2:30 PM

Quote:

Originally Posted by Canonico25 (Post 9486029)
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?

Canonico25 November 13th, 2016 2:36 PM

Quote:

Originally Posted by Christos (Post 9486031)
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 (Post 9486042)
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!!


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


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.