The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other How is TM/HM learnset data represented in an Emerald ROM?

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 January 22nd, 2018 (3:56 AM). Edited January 22nd, 2018 by madk.
madk's Avatar
madk madk is offline
 
Join Date: May 2012
Gender: Female
Posts: 11
I'm looking at the Emerald disassembly here, specifically TM/HM learnsets - https://github.com/pret/pokeemerald/blob/a793e62d8364996a276c048bc55ae072a285053a/data/tm_hm_learnsets.inc

I thought this was going to be obvious, each flag for a species would represent either TMs 1-50 then HMs 1-8, or HMs first then TMs. The order does not seem to fit either of these, however, and I was wondering if anybody could help me out with finding out which flags pertain to which TMs/HMs.

Thanks!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 22nd, 2018 (4:46 AM).
madk's Avatar
madk madk is offline
 
Join Date: May 2012
Gender: Female
Posts: 11
Well, I wrote a script to answer my own question given some known examples...

The flags, as shown from right-to-left in that disassembly, appear to represent TMs 1-50 and then HMs 1-8.

Here's a link to the script I used to determine this: https://gist.github.com/pineapplemachine/80053cd70cb5c4a275edd3464a6d7818
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:11 AM.