Advertiser Content

Pokeemerald Remove gender selection

Started by SATLAB June 24th, 2019 1:03 AM
  • 649 views
  • 4 replies

Lyzo

Back from vacation

Age 24
Male
The Netherlands
Seen 3 Weeks Ago
Posted July 2nd, 2019
263 posts
12.6 Years
Yup definitely possible. Only requires a change of 2-3 lines of code.

Go to /src/main_menu.c. This file contains the entire new game sequence. You can change the entire sequence if you'd want (see Avara's post here on how to change the intro pokemon).

Specifically for removing the gender question: Go to line 1483, and edit the Task_NewGameBirchSpeech_WaitForPlayerFadeIn.

Comment out this line:
gTasks[taskId].func = Task_NewGameBirchSpeech_BoyOrGirl;
change to:
//gTasks[taskId].func = Task_NewGameBirchSpeech_BoyOrGirl;
And add this above it (or replace the line commented out above with this):
gSaveBlock2Ptr->playerGender = MALE;
gTasks[taskId].func = Task_NewGameBirchSpeech_StartNamingScreen;
For the fully changed piece of code, which you can copy in, see the spoiler below:
Spoiler:
static void Task_NewGameBirchSpeech_WaitForPlayerFadeIn(u8 taskId)
{
    if (gTasks[taskId].tIsDoneFadingSprites)
    {
        gSprites[gTasks[taskId].tPlayerSpriteId].oam.objMode = 0;
        gSaveBlock2Ptr->playerGender = MALE;
        gTasks[taskId].func = Task_NewGameBirchSpeech_StartNamingScreen;
        //gTasks[taskId].func = Task_NewGameBirchSpeech_BoyOrGirl;
    }
}

See the final result below:
Spoiler:


Little extra: For those looking where to change the intro speech text. Go to /data/text/birch_speech.inc, this contains all the text of the intro speech.


^^ Thank you The Blueprint !!!

Avara

Female
Izantine
Seen 16 Hours Ago
Posted 16 Hours Ago
1,085 posts
7.9 Years
I've went ahead and added that to the Simple Modifications thread, cheers Lyzo!
Seen 3 Days Ago
Posted 4 Weeks Ago
5 posts
175 Days
Hi!
I've recently changed some code lines about "removing gender selection". I suggest to change also the "Task_NewGameBirchSpeech_ProcessNameYesNoMenu" function this way:

       case 1:
            PlaySE(SE_SELECT);
            gTasks[taskId].func = Task_NewGameBirchSpeech_StartNamingScreen;
This will prevent the game to go back to gender selection if you don't like your name and you press "no".
Advertiser Content