The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Emerald - Use HMs without teaching them

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 March 22nd, 2019 (5:33 AM). Edited March 29th, 2019 by McPaul.
McPaul's Avatar
McPaul McPaul is offline
On my way to become a controversial and hated member.
 
Join Date: Mar 2018
Location: Switzerland
Gender: Male
Posts: 286
Hello!

I'm currently trying to hack Pokémon Emerald. As I'm a beginner, it's more a succession of tests than a real project.

What I want to do is to make a Pokémon able to use the HMs it can potentially learn on the field without actually knowing them.

I think when you select a Pokémon in your party or when you click A before a tree/water/boulder/etc. it checks if a Pokémon learned the move.

Instead, I want the check to be if the Pokémon CAN learn the field move instead of actually knowing it.

For example, Nincada can learn Cut, Flash, Dig and Secret Power. If I have a Nincada in my team, when I select it, Cut, Dig, Flash and Secret power should appear and when I'm in front of a Cut Tree or a Secret Base and click A, should be able to use the moves.

My English is not perfect so I hope you understood and that someone could help me find a path to what I desire.

Thank you very much.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old March 24th, 2019 (5:58 AM). Edited March 24th, 2019 by McPaul.
McPaul's Avatar
McPaul McPaul is offline
On my way to become a controversial and hated member.
 
Join Date: Mar 2018
Location: Switzerland
Gender: Male
Posts: 286
I resorted to another way, creating items for this purpose.

https://www.noelshack.com/2019-12-7-1553435740-a.png

https://www.noelshack.com/2019-12-7-1553435740-aa.png

But I still have a problem: the animation showing your Pokémon using the HM. I saw a tutorial fot this a week ago but I can't hell find it again. How would you do this?

https://www.noelshack.com/2019-12-7-1553435740-aaa.png
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old March 24th, 2019 (8:16 AM).
McPaul's Avatar
McPaul McPaul is offline
On my way to become a controversial and hated member.
 
Join Date: Mar 2018
Location: Switzerland
Gender: Male
Posts: 286
I perfectly managed to create the items for Cut, Strength and Rock Smash but I have trouble for Fly, Surf, Waterfall and Dive as the script aren't available on Advance Map and can't find them.

As well as to associate the field moves to the items.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old March 26th, 2019 (12:08 AM).
Avara's Avatar
Avara Avara is offline
 
Join Date: Dec 2011
Gender: Female
Nature: Relaxed
Posts: 1,305
Here are the HM script offsets if it helps you out:

Cut: 2906BB
Surf: 271EA0
Strength: 2908BA
Rock Smash: 2907A6
Waterfall: 290A49
Dive: 290B0F
Resurfacing from Dive: 290B5A

Fly & Flash are a bit different since they're called exclusively from the party menu rather than the overworld x
__________________
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old March 26th, 2019 (12:51 AM).
McPaul's Avatar
McPaul McPaul is offline
On my way to become a controversial and hated member.
 
Join Date: Mar 2018
Location: Switzerland
Gender: Male
Posts: 286
Thank you very much it helps a lot!

I'll eventually create a tutorial for item-HMs and I'll credit you of course!

Now I'll have to find how to cut the HM animation where the party-Pokémon appears and how to make my Charizard-item able to fly. I'll completely erase Flash from my game and there won't be dark places.
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old March 27th, 2019 (8:18 AM). Edited March 27th, 2019 by McPaul.
McPaul's Avatar
McPaul McPaul is offline
On my way to become a controversial and hated member.
 
Join Date: Mar 2018
Location: Switzerland
Gender: Male
Posts: 286
Well, I have trouble with the SURF script. I modified the script the same way as the others, but when I click a in front of water nothing happens unless I have a Pokémon with SURF in my party (although I removed the checkattack and bufferpartypokemon)

Here is my script:

'---------------
#org 0x271EA0
checkitem 0x15F 0x1
compare 0x800D 0x6
if 0x1 goto 0x8271ED6
bufferitem 0x0 0x15F
lockall
msgbox 0x8272FD6 0x5 '"The water is dyed a deep blue[.]\n..."
compare 0x800D 0x0
if 0x1 goto 0x8271ED5
msgbox 0x827300D 0x4 '"[player] used [buffer1]!"
doanimation 0x9
releaseall
end

'---------------
#org 0x271ED6
end

'---------------
#org 0x271ED5
releaseall
end


'---------
' Strings
'---------
#org 0x272FD6
= The water is dyed a deep blue[.]\nWould you like to SWIM?

#org 0x27300D
= [player] used [buffer1]!


And the original script:

'---------------
#org 0x271EA0
checkattack 0x39
compare 0x800D 0x6
if 0x1 goto 0x8271ED6
bufferpartypokemon 0x0 0x800D
setanimation 0x0 0x800D
lockall
msgbox 0x8272FD6 0x5 '"The water is dyed a deep blue[.]\n..."
compare 0x800D 0x0
if 0x1 goto 0x8271ED5
msgbox 0x827300D 0x4 '"[buffer1] used SURF!"
doanimation 0x9
releaseall
end

'---------------
#org 0x271ED6
end

'---------------
#org 0x271ED5
releaseall
end


'---------
' Strings
'---------
#org 0x272FD6
= The water is dyed a deep blue[.]\nWould you like to SURF?

#org 0x27300D
= [buffer1] used SURF!


What did I do wrong? And where on earth can I find the scripts of the field moves in the party menu?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old March 27th, 2019 (6:37 PM).
Uncommon's Avatar
Uncommon Uncommon is offline
Oozma Kappa
 
Join Date: Jun 2015
Location: Johto
Nature: Careful
Posts: 192
Quote:
Originally Posted by McPaul View Post
What did I do wrong? And where on earth can I find the scripts of the field moves in the party menu?
You might want to take a look at my HM type-check hack. It's for FireRed, but it's very similar to what you're doing. In particular, if you're looking for the HM scripts, they're all in that post (except Dive as it doesn't exist in FireRed).
__________________
My work: HM type-check system hack (FireRed) | Turbo Test patch (FireRed)

Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old March 27th, 2019 (10:51 PM).
McPaul's Avatar
McPaul McPaul is offline
On my way to become a controversial and hated member.
 
Join Date: Mar 2018
Location: Switzerland
Gender: Male
Posts: 286
Thanks, I'll try to look at your scripts. But first I'll have to look how all this asm thing that seems pretty popular atm works.
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old March 31st, 2019 (3:13 AM).
Just A Remixer's Avatar
Just A Remixer Just A Remixer is offline
a low iq rom hacker
 
Join Date: Feb 2019
Location: No Palette Town
Gender: Male
Nature: Quiet
Posts: 37
Neat. That's all I got to say for now
__________________
2020 Guys... May dear Rosa finally be at peace
All media
Spoiler:
Instagram(I rarely post here. When I do, it's mostly memes):https://www.instagram.com/johto_trainer_max/
Deviantart(I Post here more frequently, but not that much. It has Pokemon sprites that you can actually use in your actual ROM hacks/fan games, just GIVE CREDIT in a txt folder or the endgame credits): https://www.deviantart.com/just-a-remaker
YouTube (Content): https://www.youtube.com/channel/UCYQFlrZRXJPG4wpvIXstfXA?

Projects
Spoiler:
Current projects:
Bronze
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.