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 sethealingplace 0x1 sends me to map 0 bank 0 x 0 y 0 (https://www.pokecommunity.com/showthread.php?t=410127)

hjk321 June 26th, 2018 10:38 AM

sethealingplace 0x1 sends me to map 0 bank 0 x 0 y 0
 
I have a map script in the first room setting the healing place to the players house (0x1). I know it's executing correctly, because the mom script plays upon white out.

https://cdn.pbrd.co/images/HrIvd6J.png

I'm using JPAN's engine which clears out scripts and person events. Does this have something to do with it?

Additionally, I read here that the mom script is at 0x081A8D97 but XSE doesn't allow an offset that long. How do I edit this script?

kalarie June 26th, 2018 12:30 PM

Yes it has to do with JPANS engine. It rewrote how the sethealingsplaces work. Check the hacked engine manual, it's explained pretty well how to use it.

hjk321 June 26th, 2018 1:06 PM

Quote:

Originally Posted by kalarie (Post 9894380)
Yes it has to do with JPANS engine. It rewrote how the sethealingsplaces work. Check the hacked engine manual, it's explained pretty well how to use it.

Okay thanks! But how do I edit the default heal scripts, since the offsets given are too big for the rom?

AkameTheBulbasaur June 26th, 2018 1:21 PM

Quote:

Originally Posted by hjk321 (Post 9894388)
Okay thanks! But how do I edit the default heal scripts, since the offsets given are too big for the rom?

You don't include the 08 at the beginning. It's there to tell you that this address is part of the ROM (as opposed to the RAM or something else like that). So if the offset listed as 08AABBCC, you'd just go to AABBCC.

To be honest it's kind of redundant in this case because you normally can't edit RAM addresses in a hex editor. If FireRed were bigger, then it would be necessary to have the 08, since some addresses would need 09 because is bigger than 16 mb.

But it isn't, so just pretend the 08 doesn't exist for your purposes here. It's good to know what the 08 is because sometimes people will write the addresses that way (and in some cases it is necessary to specify that it's a ROM address).


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.