The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Editing feasibility question 2

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 February 2nd, 2016 (7:39 PM).
sdw7sm sdw7sm is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 119
So, I asked a question a couple months ago (http://www.pokecommunity.com/showthread.php?t=359410) as to how I could remove the gender check from the move Attract. I got help, and it worked.

Now, I was wondering how I could edit the corresponding ability Cute Charm to work the same way. Would I go about the same steps? If so, how do I set a breakpoint for an Ability? Also, Cute Charm only has a 30% chance of successfully activating. Will that mess with things? Please post if you have any information.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 4th, 2016 (1:00 PM).
azurile13 azurile13 is offline
 
Join Date: Mar 2015
Posts: 417
I haven't verified the following all because I bumped into it incidentally.
I don't really know how to describe you finding this, so I'll just give the offset.

At 0x0801AF34 there's a prng call followed by a mod 3, so it is actually 33%.
If you meet the 33% trigger, there's a conditional branch to 0x0801AF4C which checks the the ability oblivious.
If the pokemon doesn't have oblivious, there's a branch to 0x0801AF5E which begins the various gender checks; bit checks, etc.
Setting a breakpoint to those initial gender checks should get you started.
Note that this is for FireRed. Emerald should have the same code but with different offsets.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old February 5th, 2016 (6:51 PM).
sdw7sm sdw7sm is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 119
So... I have succeeded in getting it to work... in Fire Red. Now I just need to find at least one of the equivalent offsets for Emerald, and I should be set...
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old February 5th, 2016 (7:54 PM).
azurile13 azurile13 is offline
 
Join Date: Mar 2015
Posts: 417
I hadn't read your other post so I missed that it was for Emerald.
I checked and
0x08043828
0x08043840
0x08043854
Following the same thing I said in the other post.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old February 5th, 2016 (8:08 PM).
sdw7sm sdw7sm is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 119
Thank you. I got it to work now.
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

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:08 AM.