Make the Person in the Intro Match the the Save File - pret/pokeemerald GitHub Wiki
By devolov
Goal: Make the gender of the person biking across the screen in the intro match the gender on the save file.
The based game chooses a random gender to show.
In intro.c
:
static void Task_Scene1_Load(u8 taskId)
{
SetVBlankCallback(NULL);
- sIntroCharacterGender = Random() & 1;
+ sIntroCharacterGender = gSaveBlock2Ptr->playerGender;
+ // Loads the gender in the save file to show in into. If no save file, defaults to male
IntroResetGpuRegs();
SetGpuReg(REG_OFFSET_BG3VOFS, 0);
SetGpuReg(REG_OFFSET_BG2VOFS, 80);