The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Change gender in overworld

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 2nd, 2017 (10:31 AM). Edited March 4th, 2017 by ghoulslash.
ghoulslash's Avatar
ghoulslash ghoulslash is offline
 
Join Date: Mar 2016
Gender: Male
Posts: 238
Hi there,
I'm wondering if it's possible to change the player's gender from the overworld?

In other words, is there a callasm command for the part in Oak's introduction where you pick your gender?

I've tried converting "Now tell me. Are you a boy?" into hex and found a pointer at 0x12FE34 but I'm not sure how I would proceed from there.

Thanks for your help in advance!



EDIT: Nvm, figured it out
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old April 23rd, 2018 (11:18 AM). Edited April 23rd, 2018 by eaglesfan.
eaglesfan's Avatar
eaglesfan eaglesfan is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 33
Quote:
Originally Posted by ghoulslash View Post
Hi there,
I'm wondering if it's possible to change the player's gender from the overworld?

In other words, is there a callasm command for the part in Oak's introduction where you pick your gender?

I've tried converting "Now tell me. Are you a boy?" into hex and found a pointer at 0x12FE34 but I'm not sure how I would proceed from there.

Thanks for your help in advance!


EDIT: Nvm, figured it out
Do you mind sharing how you got this to work?
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old April 25th, 2018 (12:51 AM).
youzan youzan is offline
 
Join Date: Sep 2017
Posts: 1
push {lr}
ldr r0, =0x03005D90
/*0x03005D90 is Emerald,
0x0300500C is FireRed*/
ldr r0, [r0]
mov r1, #0x1
/*0x0 is boy, 0x1 is girl*/
strb r1, [r0,#0x8]
pop {pc}
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old April 25th, 2018 (10:01 AM). Edited May 4th, 2018 by eaglesfan.
eaglesfan's Avatar
eaglesfan eaglesfan is offline
 
Join Date: Mar 2014
Gender: Male
Posts: 33
Quote:
Originally Posted by youzan View Post
push {lr}
ldr r0, =0x03005D90
/*0x03005D90 is Emerald,
0x0300500C is FireRed*/
ldr r0, [r0]
mov r1, #0x1
/*0x0 is boy, 0x1 is girl*/
strb r1, [r0,#0x8]
pop {pc}
sorry i'm not well versed in ASM. To use this i would simply change the #0x0 on the line "mov r1, #0x1" to 0x0 for male and 0x1 for female, then compile this and call it in a script with callasm 0xPointer+1? Is there anything else I have to add or change (other than the 0x0300500C) before compiling? Also i'm assuming this is a permanent change that changes the overworld and backsprite and wont cause issues with things like checkgender?

Edit: Yea this doesn't seem to do anything
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:17 AM.