1 Make the Person in the Intro Match the the Save File
voloved edited this page 2022-12-27 16:47:02 -05:00

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);