• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] Change gender in overworld

239
Posts
8
Years
    • Seen Apr 15, 2024
    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
     
    Last edited:
    33
    Posts
    10
    Years
    • Seen Apr 27, 2020
    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?
     
    Last edited:
    1
    Posts
    6
    Years
    • Seen Mar 25, 2024
    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}
     
    33
    Posts
    10
    Years
    • Seen Apr 27, 2020
    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
     
    Last edited:
    2
    Posts
    143
    Days
    • Seen Jan 5, 2024
    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
    What program is this for?
     
    Last edited:
    Back
    Top