Palette select - MarklyThomas/Secret-Repo GitHub Wiki

Add stuff about custom palette select

function string getCharacterPaletteKey(u8 character)
{
	u8 gameMode = global.game_mode & 0x7f
	if (global.xtrachar == 3 && character == 1 && gameMode != 0x4c && gameMode != 0x44 && gameMode != 0x2c && gameMode != 0x30) 
		return getExtraCharacterPaletteKey(0x03)
	
    return base.getCharacterPaletteKey(character)
}

// Returns the palette key of the specified extra character.
function string getExtraCharacterPaletteKey(u8 xtrachar)
{
	if (xtrachar == 0x03)
		return stringformat("slot3palette_0%d", AmyPalette)
	
	// Return the base function
	return base.getExtraCharacterPaletteKey(xtrachar)
}
⚠️ **GitHub.com Fallback** ⚠️