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 [Emerald] Looking for the script giving HM 07 Waterfall in Sootpolis and offsets of pointers for usage of Dive and Waterfall tiles (https://www.pokecommunity.com/showthread.php?t=441846)

McPaul November 10th, 2020 7:27 AM

[Emerald] Looking for the script giving HM 07 Waterfall in Sootpolis and offsets of pointers for usage of Dive and Waterfall tiles
 
Hello! I'm still looking by myself currently but I'm posting a thread to accelerate my research!

I know the offset of the pointer for surf tiles is 0x9C820 if it can help!

Thanks for your answer!

McPaul November 11th, 2020 9:03 AM

Well I'm still testing things but it's leading to explosions!

EDIT: I found by myself for the Dive and Waterfall tiles! I just had to change the offsets into pointer and search for them in my hex editor and then modify them! Damn I can be so stupid sometimes! I felt like a genius when i found the solution! But I still can't find the script giving the HM07...

McPaul November 12th, 2020 1:35 PM

https://www.pokecommunity.com/showthread.php?t=441569

Check out my new thread to have a better idea about the kind of help I'm looking for.

McPaul November 13th, 2020 5:52 AM

I'm still looking for the script of Wallace giving HM07.

kalarie November 13th, 2020 7:01 AM

Open AdvanceMap -> Go to map 0.7 (Sootopolis City) -> Go to the events tab -> Click on the overworld sprite of Wallace standing in front of the cave -> Open his script in XSE.

McPaul November 13th, 2020 7:09 AM

I know how to do this of course. If you look at my thread of what I did in the binary resource thread you will know.
I think you're mistaking about my abilities even if I'm far from being the best and I don't know shit about decomp.
https://www.pokecommunity.com/showthread.php?t=441569

I looked at all the level scripts and the Wallace person event and there is no mention of the script I'm looking for.

kalarie November 13th, 2020 8:26 AM

This is taken directly from Wallace's Person event script in Emerald:
Spoiler:
#org 0x1E646F
msgbox 0x81E7ACF MSG_KEEPOPEN '"WALLACE: [player]\v\h05[.]\nMy eye..."
giveitem 0x159 0x1 MSG_OBTAIN
setflag 0x138
msgbox 0x81E7B86 MSG_KEEPOPEN '"That HIDDEN MACHINE contains\nWATE..."
closeonkeypress
compare PLAYERFACING 0x2
if 0x1 call 0x81E64B2
compare PLAYERFACING 0x4
if 0x1 call 0x81E64B2
compare PLAYERFACING 0x3
if 0x1 call 0x81E64C5
release
end

#org 0x1E7ACF
= WALLACE: [player]\v\h05[.]\nMy eyes didn't deceive me.\pThanks to your help, SOOTOPOLIS[.]\nNo, all of HOENN was saved.\pOn behalf of the people, I thank you.\pThis is a gift from me.\nPlease accept it.

#org 0x1E7B86
= That HIDDEN MACHINE contains\nWATERFALL.\pIf you have the RAIN BADGE, a POKéMON\nthat has learned that HM move can\lforce its way up waterfalls.\pAnd where does one get the RAIN BADGE?\nYou know, don't you?\pThat's right! You have to beat\nthe SOOTOPOLIS GYM LEADER.\pWhen you're all set to go, step through\nthat door.


Not going to judge, just reporting it.

McPaul November 13th, 2020 8:48 AM

Wow! Thanks a lot!

So that makes me reflect a lot! When I open his script I only get the part where he talks about Origin Cave.

Is there a way I don't know to navigate between different scripts if the same character?

Oh I just understood now! I navigated to person event No 17! I feel stupid right now!

gawace7586 April 11th, 2021 6:16 AM

Quote:

Originally Posted by McPaul (Post 10229640)
Well I'm still testing things but it's leading to explosions!

EDIT: I found by myself for the Dive and Waterfall tiles! I just had to change the offsets into pointer and search for them in my hex editor and then modify them! Damn I can be so stupid sometimes! I felt like a genius when i found the solution! But I still can't find the script giving the HM07...

Would you mind sharing the offsets for the Dive and Waterfall scripts?

Edit: never mind. The offsets used for SURF, DIVE and WATERFALL are 271EA0, 290B0F and 290A49 respectively.


All times are GMT -8. The time now is 9:16 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.