#if P_FAMILY_BULBASAUR
static const u16 sVenusaurFormSpeciesIdTable[] = {
    SPECIES_VENUSAUR,
#if P_MEGA_EVOLUTIONS
    SPECIES_VENUSAUR_MEGA,
#endif
#if P_GIGANTAMAX_FORMS
    SPECIES_VENUSAUR_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_BULBASAUR

#if P_FAMILY_CHARMANDER
static const u16 sCharizardFormSpeciesIdTable[] = {
    SPECIES_CHARIZARD,
#if P_MEGA_EVOLUTIONS
    SPECIES_CHARIZARD_MEGA_X,
    SPECIES_CHARIZARD_MEGA_Y,
#endif
#if P_GIGANTAMAX_FORMS
    SPECIES_CHARIZARD_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CHARMANDER

#if P_FAMILY_SQUIRTLE
static const u16 sBlastoiseFormSpeciesIdTable[] = {
    SPECIES_BLASTOISE,
#if P_MEGA_EVOLUTIONS
    SPECIES_BLASTOISE_MEGA,
#endif
#if P_GIGANTAMAX_FORMS
    SPECIES_BLASTOISE_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SQUIRTLE

#if P_FAMILY_CATERPIE
static const u16 sButterfreeFormSpeciesIdTable[] = {
    SPECIES_BUTTERFREE,
#if P_GIGANTAMAX_FORMS
    SPECIES_BUTTERFREE_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CATERPIE

#if P_FAMILY_WEEDLE
static const u16 sBeedrillFormSpeciesIdTable[] = {
    SPECIES_BEEDRILL,
#if P_MEGA_EVOLUTIONS
    SPECIES_BEEDRILL_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_WEEDLE

#if P_FAMILY_PIDGEY
static const u16 sPidgeotFormSpeciesIdTable[] = {
    SPECIES_PIDGEOT,
#if P_MEGA_EVOLUTIONS
    SPECIES_PIDGEOT_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_PIDGEY

#if P_FAMILY_RATTATA
static const u16 sRattataFormSpeciesIdTable[] = {
    SPECIES_RATTATA,
#if P_ALOLAN_FORMS
    SPECIES_RATTATA_ALOLAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sRaticateFormSpeciesIdTable[] = {
    SPECIES_RATICATE,
#if P_ALOLAN_FORMS
    SPECIES_RATICATE_ALOLAN,
    SPECIES_RATICATE_ALOLAN_TOTEM,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_RATTATA

#if P_FAMILY_PIKACHU
#if P_GEN_2_CROSS_EVOS
static const u16 sPichuFormSpeciesIdTable[] = {
    SPECIES_PICHU,
    SPECIES_PICHU_SPIKY_EARED,
    FORM_SPECIES_END,
};
#endif //P_GEN_2_CROSS_EVOS

static const u16 sPikachuFormSpeciesIdTable[] = {
    SPECIES_PIKACHU,
#if P_COSPLAY_PIKACHU_FORMS
    SPECIES_PIKACHU_COSPLAY,
    SPECIES_PIKACHU_ROCK_STAR,
    SPECIES_PIKACHU_BELLE,
    SPECIES_PIKACHU_POP_STAR,
    SPECIES_PIKACHU_PH_D,
    SPECIES_PIKACHU_LIBRE,
#endif
#if P_CAP_PIKACHU_FORMS
    SPECIES_PIKACHU_ORIGINAL_CAP,
    SPECIES_PIKACHU_HOENN_CAP,
    SPECIES_PIKACHU_SINNOH_CAP,
    SPECIES_PIKACHU_UNOVA_CAP,
    SPECIES_PIKACHU_KALOS_CAP,
    SPECIES_PIKACHU_ALOLA_CAP,
    SPECIES_PIKACHU_PARTNER_CAP,
    SPECIES_PIKACHU_WORLD_CAP,
#endif
#if P_GIGANTAMAX_FORMS
    SPECIES_PIKACHU_GIGANTAMAX,
#endif
    SPECIES_PIKACHU_PARTNER,
    FORM_SPECIES_END,
};

static const u16 sRaichuFormSpeciesIdTable[] = {
    SPECIES_RAICHU,
#if P_ALOLAN_FORMS
    SPECIES_RAICHU_ALOLAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_PIKACHU

#if P_FAMILY_SANDSHREW
static const u16 sSandshrewFormSpeciesIdTable[] = {
    SPECIES_SANDSHREW,
#if P_ALOLAN_FORMS
    SPECIES_SANDSHREW_ALOLAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sSandslashFormSpeciesIdTable[] = {
    SPECIES_SANDSLASH,
#if P_ALOLAN_FORMS
    SPECIES_SANDSLASH_ALOLAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SANDSHREW

#if P_FAMILY_VULPIX
static const u16 sVulpixFormSpeciesIdTable[] = {
    SPECIES_VULPIX,
#if P_ALOLAN_FORMS
    SPECIES_VULPIX_ALOLAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sNinetalesFormSpeciesIdTable[] = {
    SPECIES_NINETALES,
#if P_ALOLAN_FORMS
    SPECIES_NINETALES_ALOLAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_VULPIX

#if P_FAMILY_DIGLETT
static const u16 sDiglettFormSpeciesIdTable[] = {
    SPECIES_DIGLETT,
#if P_ALOLAN_FORMS
    SPECIES_DIGLETT_ALOLAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sDugtrioFormSpeciesIdTable[] = {
    SPECIES_DUGTRIO,
#if P_ALOLAN_FORMS
    SPECIES_DUGTRIO_ALOLAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_DIGLETT

#if P_FAMILY_MEOWTH
static const u16 sMeowthFormSpeciesIdTable[] = {
    SPECIES_MEOWTH,
#if P_ALOLAN_FORMS
    SPECIES_MEOWTH_ALOLAN,
#endif
#if P_GALARIAN_FORMS
    SPECIES_MEOWTH_GALARIAN,
#endif
#if P_GIGANTAMAX_FORMS
    SPECIES_MEOWTH_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};

static const u16 sPersianFormSpeciesIdTable[] = {
    SPECIES_PERSIAN,
#if P_ALOLAN_FORMS
    SPECIES_PERSIAN_ALOLAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MEOWTH

#if P_FAMILY_GROWLITHE
static const u16 sGrowlitheFormSpeciesIdTable[] = {
    SPECIES_GROWLITHE,
#if P_HISUIAN_FORMS
    SPECIES_GROWLITHE_HISUIAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sArcanineFormSpeciesIdTable[] = {
    SPECIES_ARCANINE,
#if P_HISUIAN_FORMS
    SPECIES_ARCANINE_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GROWLITHE

#if P_FAMILY_ABRA
static const u16 sAlakazamFormSpeciesIdTable[] = {
    SPECIES_ALAKAZAM,
#if P_MEGA_EVOLUTIONS
    SPECIES_ALAKAZAM_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ABRA

#if P_FAMILY_MACHOP
static const u16 sMachampFormSpeciesIdTable[] = {
    SPECIES_MACHAMP,
#if P_GIGANTAMAX_FORMS
    SPECIES_MACHAMP_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MACHOP

#if P_FAMILY_GEODUDE
static const u16 sGeodudeFormSpeciesIdTable[] = {
    SPECIES_GEODUDE,
#if P_ALOLAN_FORMS
    SPECIES_GEODUDE_ALOLAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sGravelerFormSpeciesIdTable[] = {
    SPECIES_GRAVELER,
#if P_ALOLAN_FORMS
    SPECIES_GRAVELER_ALOLAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sGolemFormSpeciesIdTable[] = {
    SPECIES_GOLEM,
#if P_ALOLAN_FORMS
    SPECIES_GOLEM_ALOLAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GEODUDE

#if P_FAMILY_PONYTA
static const u16 sPonytaFormSpeciesIdTable[] = {
    SPECIES_PONYTA,
#if P_GALARIAN_FORMS
    SPECIES_PONYTA_GALARIAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sRapidashFormSpeciesIdTable[] = {
    SPECIES_RAPIDASH,
#if P_GALARIAN_FORMS
    SPECIES_RAPIDASH_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_PONYTA

#if P_FAMILY_SLOWPOKE
static const u16 sSlowpokeFormSpeciesIdTable[] = {
    SPECIES_SLOWPOKE,
#if P_GALARIAN_FORMS
    SPECIES_SLOWPOKE_GALARIAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sSlowbroFormSpeciesIdTable[] = {
    SPECIES_SLOWBRO,
#if P_MEGA_EVOLUTIONS
    SPECIES_SLOWBRO_MEGA,
#endif
#if P_GALARIAN_FORMS
    SPECIES_SLOWBRO_GALARIAN,
#endif
    FORM_SPECIES_END,
};

#if P_GEN_2_CROSS_EVOS
static const u16 sSlowkingFormSpeciesIdTable[] = {
    SPECIES_SLOWKING,
#if P_GALARIAN_FORMS
    SPECIES_SLOWKING_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_GEN_2_CROSS_EVOS
#endif //P_FAMILY_SLOWPOKE

#if P_FAMILY_FARFETCHD
static const u16 sFarfetchdFormSpeciesIdTable[] = {
    SPECIES_FARFETCHD,
#if P_GALARIAN_FORMS
    SPECIES_FARFETCHD_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_FARFETCHD

#if P_FAMILY_GRIMER
static const u16 sGrimerFormSpeciesIdTable[] = {
    SPECIES_GRIMER,
#if P_ALOLAN_FORMS
    SPECIES_GRIMER_ALOLAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sMukFormSpeciesIdTable[] = {
    SPECIES_MUK,
#if P_ALOLAN_FORMS
    SPECIES_MUK_ALOLAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GRIMER

#if P_FAMILY_GASTLY
static const u16 sGengarFormSpeciesIdTable[] = {
    SPECIES_GENGAR,
#if P_MEGA_EVOLUTIONS
    SPECIES_GENGAR_MEGA,
#endif
#if P_GIGANTAMAX_FORMS
    SPECIES_GENGAR_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GASTLY

#if P_FAMILY_ONIX
#if P_GEN_2_CROSS_EVOS
static const u16 sSteelixFormSpeciesIdTable[] = {
    SPECIES_STEELIX,
#if P_MEGA_EVOLUTIONS
    SPECIES_STEELIX_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_GEN_2_CROSS_EVOS
#endif //P_FAMILY_ONIX

#if P_FAMILY_KRABBY
static const u16 sKinglerFormSpeciesIdTable[] = {
    SPECIES_KINGLER,
#if P_GIGANTAMAX_FORMS
    SPECIES_KINGLER_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_KRABBY

#if P_FAMILY_VOLTORB
static const u16 sVoltorbFormSpeciesIdTable[] = {
    SPECIES_VOLTORB,
#if P_HISUIAN_FORMS
    SPECIES_VOLTORB_HISUIAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sElectrodeFormSpeciesIdTable[] = {
    SPECIES_ELECTRODE,
#if P_HISUIAN_FORMS
    SPECIES_ELECTRODE_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_VOLTORB

#if P_FAMILY_EXEGGCUTE
static const u16 sExeggutorFormSpeciesIdTable[] = {
    SPECIES_EXEGGUTOR,
#if P_ALOLAN_FORMS
    SPECIES_EXEGGUTOR_ALOLAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_EXEGGCUTE

#if P_FAMILY_CUBONE
static const u16 sMarowakFormSpeciesIdTable[] = {
    SPECIES_MAROWAK,
#if P_ALOLAN_FORMS
    SPECIES_MAROWAK_ALOLAN,
    SPECIES_MAROWAK_ALOLAN_TOTEM,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CUBONE

#if P_FAMILY_KOFFING
static const u16 sWeezingFormSpeciesIdTable[] = {
    SPECIES_WEEZING,
#if P_GALARIAN_FORMS
    SPECIES_WEEZING_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_KOFFING

#if P_FAMILY_KANGASKHAN
static const u16 sKangaskhanFormSpeciesIdTable[] = {
    SPECIES_KANGASKHAN,
#if P_MEGA_EVOLUTIONS
    SPECIES_KANGASKHAN_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_KANGASKHAN

#if P_FAMILY_MR_MIME
static const u16 sMrMimeFormSpeciesIdTable[] = {
    SPECIES_MR_MIME,
#if P_GALARIAN_FORMS
    SPECIES_MR_MIME_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MR_MIME

#if P_FAMILY_SCYTHER
#if P_GEN_2_CROSS_EVOS
static const u16 sScizorFormSpeciesIdTable[] = {
    SPECIES_SCIZOR,
#if P_MEGA_EVOLUTIONS
    SPECIES_SCIZOR_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_GEN_2_CROSS_EVOS
#endif //P_FAMILY_SCYTHER

#if P_FAMILY_PINSIR
static const u16 sPinsirFormSpeciesIdTable[] = {
    SPECIES_PINSIR,
#if P_MEGA_EVOLUTIONS
    SPECIES_PINSIR_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_PINSIR

#if P_FAMILY_TAUROS
static const u16 sTaurosFormSpeciesIdTable[] = {
    SPECIES_TAUROS,
#if P_PALDEAN_FORMS
    SPECIES_TAUROS_PALDEAN_COMBAT_BREED,
    SPECIES_TAUROS_PALDEAN_BLAZE_BREED,
    SPECIES_TAUROS_PALDEAN_AQUA_BREED,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TAUROS

#if P_FAMILY_MAGIKARP
static const u16 sGyaradosFormSpeciesIdTable[] = {
    SPECIES_GYARADOS,
#if P_MEGA_EVOLUTIONS
    SPECIES_GYARADOS_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MAGIKARP

#if P_FAMILY_LAPRAS
static const u16 sLaprasFormSpeciesIdTable[] = {
    SPECIES_LAPRAS,
#if P_GIGANTAMAX_FORMS
    SPECIES_LAPRAS_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_LAPRAS

#if P_FAMILY_EEVEE
static const u16 sEeveeFormSpeciesIdTable[] = {
    SPECIES_EEVEE,
#if P_GIGANTAMAX_FORMS
    SPECIES_EEVEE_GIGANTAMAX,
#endif
    SPECIES_EEVEE_PARTNER,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_EEVEE

#if P_FAMILY_AERODACTYL
static const u16 sAerodactylFormSpeciesIdTable[] = {
    SPECIES_AERODACTYL,
#if P_MEGA_EVOLUTIONS
    SPECIES_AERODACTYL_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_AERODACTYL

#if P_FAMILY_SNORLAX
static const u16 sSnorlaxFormSpeciesIdTable[] = {
    SPECIES_SNORLAX,
#if P_GIGANTAMAX_FORMS
    SPECIES_SNORLAX_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SNORLAX

#if P_FAMILY_ARTICUNO
static const u16 sArticunoFormSpeciesIdTable[] = {
    SPECIES_ARTICUNO,
#if P_GALARIAN_FORMS
    SPECIES_ARTICUNO_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ARTICUNO

#if P_FAMILY_ZAPDOS
static const u16 sZapdosFormSpeciesIdTable[] = {
    SPECIES_ZAPDOS,
#if P_GALARIAN_FORMS
    SPECIES_ZAPDOS_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ZAPDOS

#if P_FAMILY_MOLTRES
static const u16 sMoltresFormSpeciesIdTable[] = {
    SPECIES_MOLTRES,
#if P_GALARIAN_FORMS
    SPECIES_MOLTRES_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MOLTRES

#if P_FAMILY_MEWTWO
static const u16 sMewtwoFormSpeciesIdTable[] = {
    SPECIES_MEWTWO,
#if P_MEGA_EVOLUTIONS
    SPECIES_MEWTWO_MEGA_X,
    SPECIES_MEWTWO_MEGA_Y,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MEWTWO

#if P_FAMILY_CYNDAQUIL
static const u16 sTyphlosionFormSpeciesIdTable[] = {
    SPECIES_TYPHLOSION,
#if P_HISUIAN_FORMS
    SPECIES_TYPHLOSION_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CYNDAQUIL

#if P_FAMILY_MAREEP
static const u16 sAmpharosFormSpeciesIdTable[] = {
    SPECIES_AMPHAROS,
#if P_MEGA_EVOLUTIONS
    SPECIES_AMPHAROS_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MAREEP

#if P_FAMILY_WOOPER
static const u16 sWooperFormSpeciesIdTable[] = {
    SPECIES_WOOPER,
#if P_PALDEAN_FORMS
    SPECIES_WOOPER_PALDEAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_WOOPER

#if P_FAMILY_UNOWN
static const u16 sUnownFormSpeciesIdTable[] = {
    SPECIES_UNOWN,
    SPECIES_UNOWN_B,
    SPECIES_UNOWN_C,
    SPECIES_UNOWN_D,
    SPECIES_UNOWN_E,
    SPECIES_UNOWN_F,
    SPECIES_UNOWN_G,
    SPECIES_UNOWN_H,
    SPECIES_UNOWN_I,
    SPECIES_UNOWN_J,
    SPECIES_UNOWN_K,
    SPECIES_UNOWN_L,
    SPECIES_UNOWN_M,
    SPECIES_UNOWN_N,
    SPECIES_UNOWN_O,
    SPECIES_UNOWN_P,
    SPECIES_UNOWN_Q,
    SPECIES_UNOWN_R,
    SPECIES_UNOWN_S,
    SPECIES_UNOWN_T,
    SPECIES_UNOWN_U,
    SPECIES_UNOWN_V,
    SPECIES_UNOWN_W,
    SPECIES_UNOWN_X,
    SPECIES_UNOWN_Y,
    SPECIES_UNOWN_Z,
    SPECIES_UNOWN_EMARK,
    SPECIES_UNOWN_QMARK,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_UNOWN

#if P_FAMILY_DUNSPARCE
static const u16 sDudunsparceFormSpeciesIdTable[] = {
    SPECIES_DUDUNSPARCE_TWO_SEGMENT,
    SPECIES_DUDUNSPARCE_THREE_SEGMENT,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_DUNSPARCE

#if P_FAMILY_QWILFISH
static const u16 sQwilfishFormSpeciesIdTable[] = {
    SPECIES_QWILFISH,
#if P_HISUIAN_FORMS
    SPECIES_QWILFISH_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_QWILFISH

#if P_FAMILY_HERACROSS
static const u16 sHeracrossFormSpeciesIdTable[] = {
    SPECIES_HERACROSS,
#if P_MEGA_EVOLUTIONS
    SPECIES_HERACROSS_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_HERACROSS

#if P_FAMILY_SNEASEL
static const u16 sSneaselFormSpeciesIdTable[] = {
    SPECIES_SNEASEL,
#if P_HISUIAN_FORMS
    SPECIES_SNEASEL_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SNEASEL

#if P_FAMILY_TEDDIURSA
static const u16 sUrsalunaFormSpeciesIdTable[] = {
    SPECIES_URSALUNA,
    SPECIES_URSALUNA_BLOODMOON,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TEDDIURSA

#if P_FAMILY_CORSOLA
static const u16 sCorsolaFormSpeciesIdTable[] = {
    SPECIES_CORSOLA,
#if P_GALARIAN_FORMS
    SPECIES_CORSOLA_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CORSOLA

#if P_FAMILY_HOUNDOUR
static const u16 sHoundoomFormSpeciesIdTable[] = {
    SPECIES_HOUNDOOM,
#if P_MEGA_EVOLUTIONS
    SPECIES_HOUNDOOM_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_HOUNDOUR

#if P_FAMILY_LARVITAR
static const u16 sTyranitarFormSpeciesIdTable[] = {
    SPECIES_TYRANITAR,
#if P_MEGA_EVOLUTIONS
    SPECIES_TYRANITAR_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_LARVITAR

#if P_FAMILY_TREECKO
static const u16 sSceptileFormSpeciesIdTable[] = {
    SPECIES_SCEPTILE,
#if P_MEGA_EVOLUTIONS
    SPECIES_SCEPTILE_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TREECKO

#if P_FAMILY_TORCHIC
static const u16 sBlazikenFormSpeciesIdTable[] = {
    SPECIES_BLAZIKEN,
#if P_MEGA_EVOLUTIONS
    SPECIES_BLAZIKEN_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TORCHIC

#if P_FAMILY_MUDKIP
static const u16 sSwampertFormSpeciesIdTable[] = {
    SPECIES_SWAMPERT,
#if P_MEGA_EVOLUTIONS
    SPECIES_SWAMPERT_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MUDKIP

#if P_FAMILY_ZIGZAGOON
static const u16 sZigzagoonFormSpeciesIdTable[] = {
    SPECIES_ZIGZAGOON,
#if P_GALARIAN_FORMS
    SPECIES_ZIGZAGOON_GALARIAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sLinooneFormSpeciesIdTable[] = {
    SPECIES_LINOONE,
#if P_GALARIAN_FORMS
    SPECIES_LINOONE_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ZIGZAGOON

#if P_FAMILY_RALTS
static const u16 sGardevoirFormSpeciesIdTable[] = {
    SPECIES_GARDEVOIR,
#if P_MEGA_EVOLUTIONS
    SPECIES_GARDEVOIR_MEGA,
#endif
    FORM_SPECIES_END,
};

#if P_GEN_4_CROSS_EVOS
static const u16 sGalladeFormSpeciesIdTable[] = {
    SPECIES_GALLADE,
#if P_MEGA_EVOLUTIONS
    SPECIES_GALLADE_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_GEN_4_CROSS_EVOS
#endif //P_FAMILY_RALTS

#if P_FAMILY_SABLEYE
static const u16 sSableyeFormSpeciesIdTable[] = {
    SPECIES_SABLEYE,
#if P_MEGA_EVOLUTIONS
    SPECIES_SABLEYE_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SABLEYE

#if P_FAMILY_MAWILE
static const u16 sMawileFormSpeciesIdTable[] = {
    SPECIES_MAWILE,
#if P_MEGA_EVOLUTIONS
    SPECIES_MAWILE_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MAWILE

#if P_FAMILY_ARON
static const u16 sAggronFormSpeciesIdTable[] = {
    SPECIES_AGGRON,
#if P_MEGA_EVOLUTIONS
    SPECIES_AGGRON_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ARON

#if P_FAMILY_MEDITITE
static const u16 sMedichamFormSpeciesIdTable[] = {
    SPECIES_MEDICHAM,
#if P_MEGA_EVOLUTIONS
    SPECIES_MEDICHAM_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MEDITITE

#if P_FAMILY_ELECTRIKE
static const u16 sManectricFormSpeciesIdTable[] = {
    SPECIES_MANECTRIC,
#if P_MEGA_EVOLUTIONS
    SPECIES_MANECTRIC_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ELECTRIKE

#if P_FAMILY_CARVANHA
static const u16 sSharpedoFormSpeciesIdTable[] = {
    SPECIES_SHARPEDO,
#if P_MEGA_EVOLUTIONS
    SPECIES_SHARPEDO_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CARVANHA

#if P_FAMILY_NUMEL
static const u16 sCameruptFormSpeciesIdTable[] = {
    SPECIES_CAMERUPT,
#if P_MEGA_EVOLUTIONS
    SPECIES_CAMERUPT_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_NUMEL

#if P_FAMILY_SWABLU
static const u16 sAltariaFormSpeciesIdTable[] = {
    SPECIES_ALTARIA,
#if P_MEGA_EVOLUTIONS
    SPECIES_ALTARIA_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SWABLU

#if P_FAMILY_CASTFORM
static const u16 sCastformFormSpeciesIdTable[] = {
    SPECIES_CASTFORM_NORMAL,
    SPECIES_CASTFORM_SUNNY,
    SPECIES_CASTFORM_RAINY,
    SPECIES_CASTFORM_SNOWY,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CASTFORM

#if P_FAMILY_SHUPPET
static const u16 sBanetteFormSpeciesIdTable[] = {
    SPECIES_BANETTE,
#if P_MEGA_EVOLUTIONS
    SPECIES_BANETTE_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SHUPPET

#if P_FAMILY_ABSOL
static const u16 sAbsolFormSpeciesIdTable[] = {
    SPECIES_ABSOL,
#if P_MEGA_EVOLUTIONS
    SPECIES_ABSOL_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ABSOL

#if P_FAMILY_SNORUNT
static const u16 sGlalieFormSpeciesIdTable[] = {
    SPECIES_GLALIE,
#if P_MEGA_EVOLUTIONS
    SPECIES_GLALIE_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SNORUNT

#if P_FAMILY_BAGON
static const u16 sSalamenceFormSpeciesIdTable[] = {
    SPECIES_SALAMENCE,
#if P_MEGA_EVOLUTIONS
    SPECIES_SALAMENCE_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_BAGON

#if P_FAMILY_BELDUM
static const u16 sMetagrossFormSpeciesIdTable[] = {
    SPECIES_METAGROSS,
#if P_MEGA_EVOLUTIONS
    SPECIES_METAGROSS_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_BELDUM

#if P_FAMILY_LATIAS
static const u16 sLatiasFormSpeciesIdTable[] = {
    SPECIES_LATIAS,
#if P_MEGA_EVOLUTIONS
    SPECIES_LATIAS_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_LATIAS

#if P_FAMILY_LATIOS
static const u16 sLatiosFormSpeciesIdTable[] = {
    SPECIES_LATIOS,
#if P_MEGA_EVOLUTIONS
    SPECIES_LATIOS_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_LATIOS

#if P_FAMILY_KYOGRE
static const u16 sKyogreFormSpeciesIdTable[] = {
    SPECIES_KYOGRE,
#if P_PRIMAL_REVERSIONS
    SPECIES_KYOGRE_PRIMAL,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_KYOGRE

#if P_FAMILY_GROUDON
static const u16 sGroudonFormSpeciesIdTable[] = {
    SPECIES_GROUDON,
#if P_PRIMAL_REVERSIONS
    SPECIES_GROUDON_PRIMAL,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GROUDON

#if P_FAMILY_RAYQUAZA
static const u16 sRayquazaFormSpeciesIdTable[] = {
    SPECIES_RAYQUAZA,
#if P_MEGA_EVOLUTIONS
    SPECIES_RAYQUAZA_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_RAYQUAZA

#if P_FAMILY_DEOXYS
static const u16 sDeoxysFormSpeciesIdTable[] = {
    SPECIES_DEOXYS_NORMAL,
    SPECIES_DEOXYS_ATTACK,
    SPECIES_DEOXYS_DEFENSE,
    SPECIES_DEOXYS_SPEED,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_DEOXYS

#if P_FAMILY_BURMY
static const u16 sBurmyFormSpeciesIdTable[] = {
    SPECIES_BURMY_PLANT_CLOAK,
    SPECIES_BURMY_SANDY_CLOAK,
    SPECIES_BURMY_TRASH_CLOAK,
    FORM_SPECIES_END,
};

static const u16 sWormadamFormSpeciesIdTable[] = {
    SPECIES_WORMADAM_PLANT_CLOAK,
    SPECIES_WORMADAM_SANDY_CLOAK,
    SPECIES_WORMADAM_TRASH_CLOAK,
    FORM_SPECIES_END,
};

static const u16 sMothimFormSpeciesIdTable[] = {
    SPECIES_MOTHIM_PLANT_CLOAK,
    SPECIES_MOTHIM_SANDY_CLOAK,
    SPECIES_MOTHIM_TRASH_CLOAK,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_BURMY

#if P_FAMILY_CHERUBI
static const u16 sCherrimFormSpeciesIdTable[] = {
    SPECIES_CHERRIM_OVERCAST,
    SPECIES_CHERRIM_SUNSHINE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CHERUBI

#if P_FAMILY_SHELLOS
static const u16 sShellosFormSpeciesIdTable[] = {
    SPECIES_SHELLOS_WEST_SEA,
    SPECIES_SHELLOS_EAST_SEA,
    FORM_SPECIES_END,
};

static const u16 sGastrodonFormSpeciesIdTable[] = {
    SPECIES_GASTRODON_WEST_SEA,
    SPECIES_GASTRODON_EAST_SEA,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SHELLOS

#if P_FAMILY_BUNEARY
static const u16 sLopunnyFormSpeciesIdTable[] = {
    SPECIES_LOPUNNY,
#if P_MEGA_EVOLUTIONS
    SPECIES_LOPUNNY_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_BUNEARY

#if P_FAMILY_GIBLE
static const u16 sGarchompFormSpeciesIdTable[] = {
    SPECIES_GARCHOMP,
#if P_MEGA_EVOLUTIONS
    SPECIES_GARCHOMP_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GIBLE

#if P_FAMILY_RIOLU
static const u16 sLucarioFormSpeciesIdTable[] = {
    SPECIES_LUCARIO,
#if P_MEGA_EVOLUTIONS
    SPECIES_LUCARIO_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_RIOLU

#if P_FAMILY_SNOVER
static const u16 sAbomasnowFormSpeciesIdTable[] = {
    SPECIES_ABOMASNOW,
#if P_MEGA_EVOLUTIONS
    SPECIES_ABOMASNOW_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SNOVER

#if P_FAMILY_ROTOM
static const u16 sRotomFormSpeciesIdTable[] = {
    SPECIES_ROTOM,
    SPECIES_ROTOM_HEAT,
    SPECIES_ROTOM_WASH,
    SPECIES_ROTOM_FROST,
    SPECIES_ROTOM_FAN,
    SPECIES_ROTOM_MOW,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ROTOM

#if P_FAMILY_DIALGA
static const u16 sDialgaFormSpeciesIdTable[] = {
    SPECIES_DIALGA,
    SPECIES_DIALGA_ORIGIN,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_DIALGA

#if P_FAMILY_PALKIA
static const u16 sPalkiaFormSpeciesIdTable[] = {
    SPECIES_PALKIA,
    SPECIES_PALKIA_ORIGIN,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_PALKIA

#if P_FAMILY_GIRATINA
static const u16 sGiratinaFormSpeciesIdTable[] = {
    SPECIES_GIRATINA_ALTERED,
    SPECIES_GIRATINA_ORIGIN,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GIRATINA

#if P_FAMILY_SHAYMIN
static const u16 sShayminFormSpeciesIdTable[] = {
    SPECIES_SHAYMIN_LAND,
    SPECIES_SHAYMIN_SKY,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SHAYMIN

#if P_FAMILY_ARCEUS
static const u16 sArceusFormSpeciesIdTable[] = {
    SPECIES_ARCEUS_NORMAL,
    SPECIES_ARCEUS_FIGHTING,
    SPECIES_ARCEUS_FLYING,
    SPECIES_ARCEUS_POISON,
    SPECIES_ARCEUS_GROUND,
    SPECIES_ARCEUS_ROCK,
    SPECIES_ARCEUS_BUG,
    SPECIES_ARCEUS_GHOST,
    SPECIES_ARCEUS_STEEL,
    SPECIES_ARCEUS_FIRE,
    SPECIES_ARCEUS_WATER,
    SPECIES_ARCEUS_GRASS,
    SPECIES_ARCEUS_ELECTRIC,
    SPECIES_ARCEUS_PSYCHIC,
    SPECIES_ARCEUS_ICE,
    SPECIES_ARCEUS_DRAGON,
    SPECIES_ARCEUS_DARK,
    SPECIES_ARCEUS_FAIRY,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ARCEUS

#if P_FAMILY_OSHAWOTT
static const u16 sSamurottFormSpeciesIdTable[] = {
    SPECIES_SAMUROTT,
#if P_HISUIAN_FORMS
    SPECIES_SAMUROTT_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_OSHAWOTT

#if P_FAMILY_AUDINO
static const u16 sAudinoFormSpeciesIdTable[] = {
    SPECIES_AUDINO,
#if P_MEGA_EVOLUTIONS
    SPECIES_AUDINO_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_AUDINO

#if P_FAMILY_PETILIL
static const u16 sLilligantFormSpeciesIdTable[] = {
    SPECIES_LILLIGANT,
#if P_HISUIAN_FORMS
    SPECIES_LILLIGANT_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_PETILIL

#if P_FAMILY_BASCULIN
static const u16 sBasculinFormSpeciesIdTable[] = {
    SPECIES_BASCULIN_RED_STRIPED,
    SPECIES_BASCULIN_BLUE_STRIPED,
    SPECIES_BASCULIN_WHITE_STRIPED,
    FORM_SPECIES_END,
};

static const u16 sBasculegionFormSpeciesIdTable[] = {
    SPECIES_BASCULEGION_MALE,
    SPECIES_BASCULEGION_FEMALE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_BASCULIN

#if P_FAMILY_DARUMAKA
static const u16 sDarumakaFormSpeciesIdTable[] = {
    SPECIES_DARUMAKA,
#if P_GALARIAN_FORMS
    SPECIES_DARUMAKA_GALARIAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sDarmanitanFormSpeciesIdTable[] = {
    SPECIES_DARMANITAN_STANDARD_MODE,
    SPECIES_DARMANITAN_ZEN_MODE,
#if P_GALARIAN_FORMS
    SPECIES_DARMANITAN_GALARIAN_STANDARD_MODE,
    SPECIES_DARMANITAN_GALARIAN_ZEN_MODE,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_DARUMAKA

#if P_FAMILY_YAMASK
static const u16 sYamaskFormSpeciesIdTable[] = {
    SPECIES_YAMASK,
#if P_GALARIAN_FORMS
    SPECIES_YAMASK_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_YAMASK

#if P_FAMILY_TRUBBISH
static const u16 sGarbodorFormSpeciesIdTable[] = {
    SPECIES_GARBODOR,
#if P_GIGANTAMAX_FORMS
    SPECIES_GARBODOR_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TRUBBISH

#if P_FAMILY_ZORUA
static const u16 sZoruaFormSpeciesIdTable[] = {
    SPECIES_ZORUA,
#if P_HISUIAN_FORMS
    SPECIES_ZORUA_HISUIAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sZoroarkFormSpeciesIdTable[] = {
    SPECIES_ZOROARK,
#if P_HISUIAN_FORMS
    SPECIES_ZOROARK_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ZORUA

#if P_FAMILY_DEERLING
static const u16 sDeerlingFormSpeciesIdTable[] = {
    SPECIES_DEERLING_SPRING,
    SPECIES_DEERLING_SUMMER,
    SPECIES_DEERLING_AUTUMN,
    SPECIES_DEERLING_WINTER,
    FORM_SPECIES_END,
};

static const u16 sSawsbuckFormSpeciesIdTable[] = {
    SPECIES_SAWSBUCK_SPRING,
    SPECIES_SAWSBUCK_SUMMER,
    SPECIES_SAWSBUCK_AUTUMN,
    SPECIES_SAWSBUCK_WINTER,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_DEERLING

#if P_FAMILY_STUNFISK
static const u16 sStunfiskFormSpeciesIdTable[] = {
    SPECIES_STUNFISK,
#if P_GALARIAN_FORMS
    SPECIES_STUNFISK_GALARIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_STUNFISK

#if P_FAMILY_RUFFLET
static const u16 sBraviaryFormSpeciesIdTable[] = {
    SPECIES_BRAVIARY,
#if P_HISUIAN_FORMS
    SPECIES_BRAVIARY_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_RUFFLET

#if P_FAMILY_TORNADUS
static const u16 sTornadusFormSpeciesIdTable[] = {
    SPECIES_TORNADUS_INCARNATE,
    SPECIES_TORNADUS_THERIAN,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TORNADUS

#if P_FAMILY_THUNDURUS
static const u16 sThundurusFormSpeciesIdTable[] = {
    SPECIES_THUNDURUS_INCARNATE,
    SPECIES_THUNDURUS_THERIAN,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_THUNDURUS

#if P_FAMILY_LANDORUS
static const u16 sLandorusFormSpeciesIdTable[] = {
    SPECIES_LANDORUS_INCARNATE,
    SPECIES_LANDORUS_THERIAN,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_LANDORUS

#if P_FAMILY_KYUREM
static const u16 sKyuremFormSpeciesIdTable[] = {
    SPECIES_KYUREM,
    SPECIES_KYUREM_WHITE,
    SPECIES_KYUREM_BLACK,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_KYUREM

#if P_FAMILY_KELDEO
static const u16 sKeldeoFormSpeciesIdTable[] = {
    SPECIES_KELDEO_ORDINARY,
    SPECIES_KELDEO_RESOLUTE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_KELDEO

#if P_FAMILY_MELOETTA
static const u16 sMeloettaFormSpeciesIdTable[] = {
    SPECIES_MELOETTA_ARIA,
    SPECIES_MELOETTA_PIROUETTE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MELOETTA

#if P_FAMILY_GENESECT
static const u16 sGenesectFormSpeciesIdTable[] = {
    SPECIES_GENESECT,
    SPECIES_GENESECT_DOUSE_DRIVE,
    SPECIES_GENESECT_SHOCK_DRIVE,
    SPECIES_GENESECT_BURN_DRIVE,
    SPECIES_GENESECT_CHILL_DRIVE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GENESECT

#if P_FAMILY_FROAKIE
static const u16 sGreninjaFormSpeciesIdTable[] = {
    SPECIES_GRENINJA,
    SPECIES_GRENINJA_BATTLE_BOND,
    SPECIES_GRENINJA_ASH,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_FROAKIE

#if P_FAMILY_SCATTERBUG
static const u16 sScatterbugFormSpeciesIdTable[] = {
    SPECIES_SCATTERBUG_ICY_SNOW,
    SPECIES_SCATTERBUG_POLAR,
    SPECIES_SCATTERBUG_TUNDRA,
    SPECIES_SCATTERBUG_CONTINENTAL,
    SPECIES_SCATTERBUG_GARDEN,
    SPECIES_SCATTERBUG_ELEGANT,
    SPECIES_SCATTERBUG_MEADOW,
    SPECIES_SCATTERBUG_MODERN,
    SPECIES_SCATTERBUG_MARINE,
    SPECIES_SCATTERBUG_ARCHIPELAGO,
    SPECIES_SCATTERBUG_HIGH_PLAINS,
    SPECIES_SCATTERBUG_SANDSTORM,
    SPECIES_SCATTERBUG_RIVER,
    SPECIES_SCATTERBUG_MONSOON,
    SPECIES_SCATTERBUG_SAVANNA,
    SPECIES_SCATTERBUG_SUN,
    SPECIES_SCATTERBUG_OCEAN,
    SPECIES_SCATTERBUG_JUNGLE,
    SPECIES_SCATTERBUG_FANCY,
    SPECIES_SCATTERBUG_POKE_BALL,
    FORM_SPECIES_END,
};

static const u16 sSpewpaFormSpeciesIdTable[] = {
    SPECIES_SPEWPA_ICY_SNOW,
    SPECIES_SPEWPA_POLAR,
    SPECIES_SPEWPA_TUNDRA,
    SPECIES_SPEWPA_CONTINENTAL,
    SPECIES_SPEWPA_GARDEN,
    SPECIES_SPEWPA_ELEGANT,
    SPECIES_SPEWPA_MEADOW,
    SPECIES_SPEWPA_MODERN,
    SPECIES_SPEWPA_MARINE,
    SPECIES_SPEWPA_ARCHIPELAGO,
    SPECIES_SPEWPA_HIGH_PLAINS,
    SPECIES_SPEWPA_SANDSTORM,
    SPECIES_SPEWPA_RIVER,
    SPECIES_SPEWPA_MONSOON,
    SPECIES_SPEWPA_SAVANNA,
    SPECIES_SPEWPA_SUN,
    SPECIES_SPEWPA_OCEAN,
    SPECIES_SPEWPA_JUNGLE,
    SPECIES_SPEWPA_FANCY,
    SPECIES_SPEWPA_POKE_BALL,
    FORM_SPECIES_END,
};

static const u16 sVivillonFormSpeciesIdTable[] = {
    SPECIES_VIVILLON_ICY_SNOW,
    SPECIES_VIVILLON_POLAR,
    SPECIES_VIVILLON_TUNDRA,
    SPECIES_VIVILLON_CONTINENTAL,
    SPECIES_VIVILLON_GARDEN,
    SPECIES_VIVILLON_ELEGANT,
    SPECIES_VIVILLON_MEADOW,
    SPECIES_VIVILLON_MODERN,
    SPECIES_VIVILLON_MARINE,
    SPECIES_VIVILLON_ARCHIPELAGO,
    SPECIES_VIVILLON_HIGH_PLAINS,
    SPECIES_VIVILLON_SANDSTORM,
    SPECIES_VIVILLON_RIVER,
    SPECIES_VIVILLON_MONSOON,
    SPECIES_VIVILLON_SAVANNA,
    SPECIES_VIVILLON_SUN,
    SPECIES_VIVILLON_OCEAN,
    SPECIES_VIVILLON_JUNGLE,
    SPECIES_VIVILLON_FANCY,
    SPECIES_VIVILLON_POKE_BALL,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SCATTERBUG

#if P_FAMILY_FLABEBE
static const u16 sFlabebeFormSpeciesIdTable[] = {
    SPECIES_FLABEBE_RED_FLOWER,
    SPECIES_FLABEBE_YELLOW_FLOWER,
    SPECIES_FLABEBE_ORANGE_FLOWER,
    SPECIES_FLABEBE_BLUE_FLOWER,
    SPECIES_FLABEBE_WHITE_FLOWER,
    FORM_SPECIES_END,
};

static const u16 sFloetteFormSpeciesIdTable[] = {
    SPECIES_FLOETTE_RED_FLOWER,
    SPECIES_FLOETTE_YELLOW_FLOWER,
    SPECIES_FLOETTE_ORANGE_FLOWER,
    SPECIES_FLOETTE_BLUE_FLOWER,
    SPECIES_FLOETTE_WHITE_FLOWER,
    SPECIES_FLOETTE_ETERNAL_FLOWER,
    FORM_SPECIES_END,
};

static const u16 sFlorgesFormSpeciesIdTable[] = {
    SPECIES_FLORGES_RED_FLOWER,
    SPECIES_FLORGES_YELLOW_FLOWER,
    SPECIES_FLORGES_ORANGE_FLOWER,
    SPECIES_FLORGES_BLUE_FLOWER,
    SPECIES_FLORGES_WHITE_FLOWER,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_FLABEBE

#if P_FAMILY_FURFROU
static const u16 sFurfrouFormSpeciesIdTable[] = {
    SPECIES_FURFROU_NATURAL,
    SPECIES_FURFROU_HEART_TRIM,
    SPECIES_FURFROU_STAR_TRIM,
    SPECIES_FURFROU_DIAMOND_TRIM,
    SPECIES_FURFROU_DEBUTANTE_TRIM,
    SPECIES_FURFROU_MATRON_TRIM,
    SPECIES_FURFROU_DANDY_TRIM,
    SPECIES_FURFROU_LA_REINE_TRIM,
    SPECIES_FURFROU_KABUKI_TRIM,
    SPECIES_FURFROU_PHARAOH_TRIM,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_FURFROU

#if P_FAMILY_ESPURR
static const u16 sMeowsticFormSpeciesIdTable[] = {
    SPECIES_MEOWSTIC_MALE,
    SPECIES_MEOWSTIC_FEMALE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ESPURR

#if P_FAMILY_HONEDGE
static const u16 sAegislashFormSpeciesIdTable[] = {
    SPECIES_AEGISLASH_SHIELD,
    SPECIES_AEGISLASH_BLADE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_HONEDGE

#if P_FAMILY_GOOMY
static const u16 sSliggooFormSpeciesIdTable[] = {
    SPECIES_SLIGGOO,
#if P_HISUIAN_FORMS
    SPECIES_SLIGGOO_HISUIAN,
#endif
    FORM_SPECIES_END,
};

static const u16 sGoodraFormSpeciesIdTable[] = {
    SPECIES_GOODRA,
#if P_HISUIAN_FORMS
    SPECIES_GOODRA_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GOOMY

#if P_FAMILY_PUMPKABOO
static const u16 sPumpkabooFormSpeciesIdTable[] = {
    SPECIES_PUMPKABOO_AVERAGE,
    SPECIES_PUMPKABOO_SMALL,
    SPECIES_PUMPKABOO_LARGE,
    SPECIES_PUMPKABOO_SUPER,
    FORM_SPECIES_END,
};

static const u16 sGourgeistFormSpeciesIdTable[] = {
    SPECIES_GOURGEIST_AVERAGE,
    SPECIES_GOURGEIST_SMALL,
    SPECIES_GOURGEIST_LARGE,
    SPECIES_GOURGEIST_SUPER,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_PUMPKABOO

#if P_FAMILY_BERGMITE
static const u16 sAvaluggFormSpeciesIdTable[] = {
    SPECIES_AVALUGG,
#if P_HISUIAN_FORMS
    SPECIES_AVALUGG_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_BERGMITE

#if P_FAMILY_XERNEAS
static const u16 sXerneasFormSpeciesIdTable[] = {
    SPECIES_XERNEAS_NEUTRAL,
    SPECIES_XERNEAS_ACTIVE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_XERNEAS

#if P_FAMILY_ZYGARDE
static const u16 sZygardeFormSpeciesIdTable[] = {
    SPECIES_ZYGARDE_50_AURA_BREAK,
    SPECIES_ZYGARDE_10_AURA_BREAK,
    SPECIES_ZYGARDE_10_POWER_CONSTRUCT,
    SPECIES_ZYGARDE_50_POWER_CONSTRUCT,
    SPECIES_ZYGARDE_COMPLETE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ZYGARDE

#if P_FAMILY_DIANCIE
static const u16 sDiancieFormSpeciesIdTable[] = {
    SPECIES_DIANCIE,
#if P_MEGA_EVOLUTIONS
    SPECIES_DIANCIE_MEGA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_DIANCIE

#if P_FAMILY_HOOPA
static const u16 sHoopaFormSpeciesIdTable[] = {
    SPECIES_HOOPA_CONFINED,
    SPECIES_HOOPA_UNBOUND,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_HOOPA

#if P_FAMILY_ROWLET
static const u16 sDecidueyeFormSpeciesIdTable[] = {
    SPECIES_DECIDUEYE,
#if P_HISUIAN_FORMS
    SPECIES_DECIDUEYE_HISUIAN,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ROWLET

#if P_FAMILY_YUNGOOS
static const u16 sGumshoosFormSpeciesIdTable[] = {
    SPECIES_GUMSHOOS,
    SPECIES_GUMSHOOS_TOTEM,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_YUNGOOS

#if P_FAMILY_GRUBBIN
static const u16 sVikavoltFormSpeciesIdTable[] = {
    SPECIES_VIKAVOLT,
    SPECIES_VIKAVOLT_TOTEM,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GRUBBIN

#if P_FAMILY_ORICORIO
static const u16 sOricorioFormSpeciesIdTable[] = {
    SPECIES_ORICORIO_BAILE,
    SPECIES_ORICORIO_POM_POM,
    SPECIES_ORICORIO_PAU,
    SPECIES_ORICORIO_SENSU,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ORICORIO

#if P_FAMILY_CUTIEFLY
static const u16 sRibombeeFormSpeciesIdTable[] = {
    SPECIES_RIBOMBEE,
    SPECIES_RIBOMBEE_TOTEM,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CUTIEFLY

#if P_FAMILY_ROCKRUFF
static const u16 sRockruffFormSpeciesIdTable[] = {
    SPECIES_ROCKRUFF,
    SPECIES_ROCKRUFF_OWN_TEMPO,
    FORM_SPECIES_END,
};

static const u16 sLycanrocFormSpeciesIdTable[] = {
    SPECIES_LYCANROC_MIDDAY,
    SPECIES_LYCANROC_MIDNIGHT,
    SPECIES_LYCANROC_DUSK,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ROCKRUFF

#if P_FAMILY_WISHIWASHI
static const u16 sWishiwashiFormSpeciesIdTable[] = {
    SPECIES_WISHIWASHI_SOLO,
    SPECIES_WISHIWASHI_SCHOOL,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_WISHIWASHI

#if P_FAMILY_DEWPIDER
static const u16 sAraquanidFormSpeciesIdTable[] = {
    SPECIES_ARAQUANID,
    SPECIES_ARAQUANID_TOTEM,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_DEWPIDER

#if P_FAMILY_FOMANTIS
static const u16 sLurantisFormSpeciesIdTable[] = {
    SPECIES_LURANTIS,
    SPECIES_LURANTIS_TOTEM,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_FOMANTIS

#if P_FAMILY_SALANDIT
static const u16 sSalanditFormSpeciesIdTable[] = {
    SPECIES_SALAZZLE,
    SPECIES_SALAZZLE_TOTEM,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_FOMANTIS

#if P_FAMILY_TYPE_NULL
static const u16 sSilvallyFormSpeciesIdTable[] = {
    SPECIES_SILVALLY_NORMAL,
    SPECIES_SILVALLY_FIGHTING,
    SPECIES_SILVALLY_FLYING,
    SPECIES_SILVALLY_POISON,
    SPECIES_SILVALLY_GROUND,
    SPECIES_SILVALLY_ROCK,
    SPECIES_SILVALLY_BUG,
    SPECIES_SILVALLY_GHOST,
    SPECIES_SILVALLY_STEEL,
    SPECIES_SILVALLY_FIRE,
    SPECIES_SILVALLY_WATER,
    SPECIES_SILVALLY_GRASS,
    SPECIES_SILVALLY_ELECTRIC,
    SPECIES_SILVALLY_PSYCHIC,
    SPECIES_SILVALLY_ICE,
    SPECIES_SILVALLY_DRAGON,
    SPECIES_SILVALLY_DARK,
    SPECIES_SILVALLY_FAIRY,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TYPE_NULL

#if P_FAMILY_MINIOR
static const u16 sMiniorFormSpeciesIdTable[] = {
    SPECIES_MINIOR_METEOR_RED,
    SPECIES_MINIOR_METEOR_ORANGE,
    SPECIES_MINIOR_METEOR_YELLOW,
    SPECIES_MINIOR_METEOR_GREEN,
    SPECIES_MINIOR_METEOR_BLUE,
    SPECIES_MINIOR_METEOR_INDIGO,
    SPECIES_MINIOR_METEOR_VIOLET,
    SPECIES_MINIOR_CORE_RED,
    SPECIES_MINIOR_CORE_ORANGE,
    SPECIES_MINIOR_CORE_YELLOW,
    SPECIES_MINIOR_CORE_GREEN,
    SPECIES_MINIOR_CORE_BLUE,
    SPECIES_MINIOR_CORE_INDIGO,
    SPECIES_MINIOR_CORE_VIOLET,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MINIOR

#if P_FAMILY_TOGEDEMARU
static const u16 sTogedemaruFormSpeciesIdTable[] = {
    SPECIES_TOGEDEMARU,
    SPECIES_TOGEDEMARU_TOTEM,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TOGEDEMARU

#if P_FAMILY_MIMIKYU
static const u16 sMimikyuFormSpeciesIdTable[] = {
    SPECIES_MIMIKYU_DISGUISED,
    SPECIES_MIMIKYU_BUSTED,
    SPECIES_MIMIKYU_TOTEM_DISGUISED,
    SPECIES_MIMIKYU_TOTEM_BUSTED,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MIMIKYU

#if P_FAMILY_JANGMO_O
static const u16 sKommoOFormSpeciesIdTable[] = {
    SPECIES_KOMMO_O,
    SPECIES_KOMMO_O_TOTEM,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_JANGMO_O

#if P_FAMILY_NECROZMA
static const u16 sNecrozmaFormSpeciesIdTable[] = {
    SPECIES_NECROZMA,
    SPECIES_NECROZMA_DUSK_MANE,
    SPECIES_NECROZMA_DAWN_WINGS,
#if P_ULTRA_BURST_FORMS
    SPECIES_NECROZMA_ULTRA,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_NECROZMA

#if P_FAMILY_MAGEARNA
static const u16 sMagearnaFormSpeciesIdTable[] = {
    SPECIES_MAGEARNA,
    SPECIES_MAGEARNA_ORIGINAL_COLOR,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MAGEARNA

#if P_FAMILY_MELTAN
static const u16 sMelmetalFormSpeciesIdTable[] = {
    SPECIES_MELMETAL,
#if P_GIGANTAMAX_FORMS
    SPECIES_MELMETAL_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MELTAN

#if P_FAMILY_GROOKEY
static const u16 sRillaboomFormSpeciesIdTable[] = {
    SPECIES_RILLABOOM,
#if P_GIGANTAMAX_FORMS
    SPECIES_RILLABOOM_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GROOKEY

#if P_FAMILY_SCORBUNNY
static const u16 sCinderaceFormSpeciesIdTable[] = {
    SPECIES_CINDERACE,
#if P_GIGANTAMAX_FORMS
    SPECIES_CINDERACE_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SCORBUNNY

#if P_FAMILY_SOBBLE
static const u16 sInteleonFormSpeciesIdTable[] = {
    SPECIES_INTELEON,
#if P_GIGANTAMAX_FORMS
    SPECIES_INTELEON_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SOBBLE

#if P_FAMILY_ROOKIDEE
static const u16 sCorviknightFormSpeciesIdTable[] = {
    SPECIES_CORVIKNIGHT,
#if P_GIGANTAMAX_FORMS
    SPECIES_CORVIKNIGHT_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ROOKIDEE

#if P_FAMILY_BLIPBUG
static const u16 sOrbeetleFormSpeciesIdTable[] = {
    SPECIES_ORBEETLE,
#if P_GIGANTAMAX_FORMS
    SPECIES_ORBEETLE_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_BLIPBUG

#if P_FAMILY_CHEWTLE
static const u16 sDrednawFormSpeciesIdTable[] = {
    SPECIES_DREDNAW,
#if P_GIGANTAMAX_FORMS
    SPECIES_DREDNAW_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CHEWTLE

#if P_FAMILY_ROLYCOLY
static const u16 sCoalossalFormSpeciesIdTable[] = {
    SPECIES_COALOSSAL,
#if P_GIGANTAMAX_FORMS
    SPECIES_COALOSSAL_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ROLYCOLY

#if P_FAMILY_APPLIN
static const u16 sFlappleFormSpeciesIdTable[] = {
    SPECIES_FLAPPLE,
#if P_GIGANTAMAX_FORMS
    SPECIES_FLAPPLE_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};

static const u16 sAppletunFormSpeciesIdTable[] = {
    SPECIES_APPLETUN,
#if P_GIGANTAMAX_FORMS
    SPECIES_APPLETUN_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_APPLIN

#if P_FAMILY_SILICOBRA
static const u16 sSandacondaFormSpeciesIdTable[] = {
    SPECIES_SANDACONDA,
#if P_GIGANTAMAX_FORMS
    SPECIES_SANDACONDA_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SILICOBRA

#if P_FAMILY_CRAMORANT
static const u16 sCramorantFormSpeciesIdTable[] = {
    SPECIES_CRAMORANT,
    SPECIES_CRAMORANT_GULPING,
    SPECIES_CRAMORANT_GORGING,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CRAMORANT

#if P_FAMILY_TOXEL
static const u16 sToxtricityFormSpeciesIdTable[] = {
    SPECIES_TOXTRICITY_AMPED,
    SPECIES_TOXTRICITY_LOW_KEY,
#if P_GIGANTAMAX_FORMS
    SPECIES_TOXTRICITY_AMPED_GIGANTAMAX,
#endif
#if P_GIGANTAMAX_FORMS
    SPECIES_TOXTRICITY_LOW_KEY_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TOXEL

#if P_FAMILY_SIZZLIPEDE
static const u16 sCentiskorchFormSpeciesIdTable[] = {
    SPECIES_CENTISKORCH,
#if P_GIGANTAMAX_FORMS
    SPECIES_CENTISKORCH_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SIZZLIPEDE

#if P_FAMILY_SINISTEA
static const u16 sSinisteaFormSpeciesIdTable[] = {
    SPECIES_SINISTEA_PHONY,
    SPECIES_SINISTEA_ANTIQUE,
    FORM_SPECIES_END,
};

static const u16 sPolteageistFormSpeciesIdTable[] = {
    SPECIES_POLTEAGEIST_PHONY,
    SPECIES_POLTEAGEIST_ANTIQUE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SINISTEA

#if P_FAMILY_HATENNA
static const u16 sHattereneFormSpeciesIdTable[] = {
    SPECIES_HATTERENE,
#if P_GIGANTAMAX_FORMS
    SPECIES_HATTERENE_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_HATENNA

#if P_FAMILY_IMPIDIMP
static const u16 sGrimmsnarlFormSpeciesIdTable[] = {
    SPECIES_GRIMMSNARL,
#if P_GIGANTAMAX_FORMS
    SPECIES_GRIMMSNARL_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_IMPIDIMP

#if P_FAMILY_MILCERY
static const u16 sAlcremieFormSpeciesIdTable[] = {
    SPECIES_ALCREMIE_STRAWBERRY_VANILLA_CREAM,
    SPECIES_ALCREMIE_STRAWBERRY_RUBY_CREAM,
    SPECIES_ALCREMIE_STRAWBERRY_MATCHA_CREAM,
    SPECIES_ALCREMIE_STRAWBERRY_MINT_CREAM,
    SPECIES_ALCREMIE_STRAWBERRY_LEMON_CREAM,
    SPECIES_ALCREMIE_STRAWBERRY_SALTED_CREAM,
    SPECIES_ALCREMIE_STRAWBERRY_RUBY_SWIRL,
    SPECIES_ALCREMIE_STRAWBERRY_CARAMEL_SWIRL,
    SPECIES_ALCREMIE_STRAWBERRY_RAINBOW_SWIRL,
    SPECIES_ALCREMIE_BERRY_VANILLA_CREAM,
    SPECIES_ALCREMIE_BERRY_RUBY_CREAM,
    SPECIES_ALCREMIE_BERRY_MATCHA_CREAM,
    SPECIES_ALCREMIE_BERRY_MINT_CREAM,
    SPECIES_ALCREMIE_BERRY_LEMON_CREAM,
    SPECIES_ALCREMIE_BERRY_SALTED_CREAM,
    SPECIES_ALCREMIE_BERRY_RUBY_SWIRL,
    SPECIES_ALCREMIE_BERRY_CARAMEL_SWIRL,
    SPECIES_ALCREMIE_BERRY_RAINBOW_SWIRL,
    SPECIES_ALCREMIE_LOVE_VANILLA_CREAM,
    SPECIES_ALCREMIE_LOVE_RUBY_CREAM,
    SPECIES_ALCREMIE_LOVE_MATCHA_CREAM,
    SPECIES_ALCREMIE_LOVE_MINT_CREAM,
    SPECIES_ALCREMIE_LOVE_LEMON_CREAM,
    SPECIES_ALCREMIE_LOVE_SALTED_CREAM,
    SPECIES_ALCREMIE_LOVE_RUBY_SWIRL,
    SPECIES_ALCREMIE_LOVE_CARAMEL_SWIRL,
    SPECIES_ALCREMIE_LOVE_RAINBOW_SWIRL,
    SPECIES_ALCREMIE_STAR_VANILLA_CREAM,
    SPECIES_ALCREMIE_STAR_RUBY_CREAM,
    SPECIES_ALCREMIE_STAR_MATCHA_CREAM,
    SPECIES_ALCREMIE_STAR_MINT_CREAM,
    SPECIES_ALCREMIE_STAR_LEMON_CREAM,
    SPECIES_ALCREMIE_STAR_SALTED_CREAM,
    SPECIES_ALCREMIE_STAR_RUBY_SWIRL,
    SPECIES_ALCREMIE_STAR_CARAMEL_SWIRL,
    SPECIES_ALCREMIE_STAR_RAINBOW_SWIRL,
    SPECIES_ALCREMIE_CLOVER_VANILLA_CREAM,
    SPECIES_ALCREMIE_CLOVER_RUBY_CREAM,
    SPECIES_ALCREMIE_CLOVER_MATCHA_CREAM,
    SPECIES_ALCREMIE_CLOVER_MINT_CREAM,
    SPECIES_ALCREMIE_CLOVER_LEMON_CREAM,
    SPECIES_ALCREMIE_CLOVER_SALTED_CREAM,
    SPECIES_ALCREMIE_CLOVER_RUBY_SWIRL,
    SPECIES_ALCREMIE_CLOVER_CARAMEL_SWIRL,
    SPECIES_ALCREMIE_CLOVER_RAINBOW_SWIRL,
    SPECIES_ALCREMIE_FLOWER_VANILLA_CREAM,
    SPECIES_ALCREMIE_FLOWER_RUBY_CREAM,
    SPECIES_ALCREMIE_FLOWER_MATCHA_CREAM,
    SPECIES_ALCREMIE_FLOWER_MINT_CREAM,
    SPECIES_ALCREMIE_FLOWER_LEMON_CREAM,
    SPECIES_ALCREMIE_FLOWER_SALTED_CREAM,
    SPECIES_ALCREMIE_FLOWER_RUBY_SWIRL,
    SPECIES_ALCREMIE_FLOWER_CARAMEL_SWIRL,
    SPECIES_ALCREMIE_FLOWER_RAINBOW_SWIRL,
    SPECIES_ALCREMIE_RIBBON_VANILLA_CREAM,
    SPECIES_ALCREMIE_RIBBON_RUBY_CREAM,
    SPECIES_ALCREMIE_RIBBON_MATCHA_CREAM,
    SPECIES_ALCREMIE_RIBBON_MINT_CREAM,
    SPECIES_ALCREMIE_RIBBON_LEMON_CREAM,
    SPECIES_ALCREMIE_RIBBON_SALTED_CREAM,
    SPECIES_ALCREMIE_RIBBON_RUBY_SWIRL,
    SPECIES_ALCREMIE_RIBBON_CARAMEL_SWIRL,
    SPECIES_ALCREMIE_RIBBON_RAINBOW_SWIRL,
#if P_GIGANTAMAX_FORMS
    SPECIES_ALCREMIE_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MILCERY

#if P_FAMILY_EISCUE
static const u16 sEiscueFormSpeciesIdTable[] = {
    SPECIES_EISCUE_ICE_FACE,
    SPECIES_EISCUE_NOICE_FACE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_EISCUE

#if P_FAMILY_INDEEDEE
static const u16 sIndeedeeFormSpeciesIdTable[] = {
    SPECIES_INDEEDEE_MALE,
    SPECIES_INDEEDEE_FEMALE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_INDEEDEE

#if P_FAMILY_MORPEKO
static const u16 sMorpekoFormSpeciesIdTable[] = {
    SPECIES_MORPEKO_FULL_BELLY,
    SPECIES_MORPEKO_HANGRY,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_MORPEKO

#if P_FAMILY_CUFANT
static const u16 sCopperajahFormSpeciesIdTable[] = {
    SPECIES_COPPERAJAH,
#if P_GIGANTAMAX_FORMS
    SPECIES_COPPERAJAH_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CUFANT

#if P_FAMILY_DURALUDON
static const u16 sDuraludonFormSpeciesIdTable[] = {
    SPECIES_DURALUDON,
#if P_GIGANTAMAX_FORMS
    SPECIES_DURALUDON_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_DURALUDON

#if P_FAMILY_ZACIAN
static const u16 sZacianFormSpeciesIdTable[] = {
    SPECIES_ZACIAN_HERO_OF_MANY_BATTLES,
    SPECIES_ZACIAN_CROWNED_SWORD,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ZACIAN

#if P_FAMILY_ZAMAZENTA
static const u16 sZamazentaFormSpeciesIdTable[] = {
    SPECIES_ZAMAZENTA_HERO_OF_MANY_BATTLES,
    SPECIES_ZAMAZENTA_CROWNED_SHIELD,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ZAMAZENTA

#if P_FAMILY_ETERNATUS
static const u16 sEternatusFormSpeciesIdTable[] = {
    SPECIES_ETERNATUS,
    SPECIES_ETERNATUS_ETERNAMAX,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ETERNATUS

#if P_FAMILY_KUBFU
static const u16 sUrshifuFormSpeciesIdTable[] = {
    SPECIES_URSHIFU_SINGLE_STRIKE_STYLE,
    SPECIES_URSHIFU_RAPID_STRIKE_STYLE,
#if P_GIGANTAMAX_FORMS
    SPECIES_URSHIFU_SINGLE_STRIKE_STYLE_GIGANTAMAX,
    SPECIES_URSHIFU_RAPID_STRIKE_STYLE_GIGANTAMAX,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_KUBFU

#if P_FAMILY_ZARUDE
static const u16 sZarudeFormSpeciesIdTable[] = {
    SPECIES_ZARUDE,
    SPECIES_ZARUDE_DADA,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ZARUDE

#if P_FAMILY_CALYREX
static const u16 sCalyrexFormSpeciesIdTable[] = {
    SPECIES_CALYREX,
    SPECIES_CALYREX_ICE_RIDER,
    SPECIES_CALYREX_SHADOW_RIDER,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_CALYREX

#if P_FAMILY_ENAMORUS
static const u16 sEnamorusFormSpeciesIdTable[] = {
    SPECIES_ENAMORUS_INCARNATE,
    SPECIES_ENAMORUS_THERIAN,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_ENAMORUS

#if P_FAMILY_LECHONK
static const u16 sOinkologneFormSpeciesIdTable[] = {
    SPECIES_OINKOLOGNE_MALE,
    SPECIES_OINKOLOGNE_FEMALE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_LECHONK

#if P_FAMILY_TANDEMAUS
static const u16 sMausholdFormSpeciesIdTable[] = {
    SPECIES_MAUSHOLD_FAMILY_OF_THREE,
    SPECIES_MAUSHOLD_FAMILY_OF_FOUR,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TANDEMAUS

#if P_FAMILY_SQUAWKABILLY
static const u16 sSquawkabillyFormSpeciesIdTable[] = {
    SPECIES_SQUAWKABILLY_GREEN_PLUMAGE,
    SPECIES_SQUAWKABILLY_BLUE_PLUMAGE,
    SPECIES_SQUAWKABILLY_YELLOW_PLUMAGE,
    SPECIES_SQUAWKABILLY_WHITE_PLUMAGE,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_SQUAWKABILLY

#if P_FAMILY_FINIZEN
static const u16 sPalafinFormSpeciesIdTable[] = {
    SPECIES_PALAFIN_ZERO,
    SPECIES_PALAFIN_HERO,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_FINIZEN

#if P_FAMILY_TATSUGIRI
static const u16 sTatsugiriFormSpeciesIdTable[] = {
    SPECIES_TATSUGIRI_CURLY,
    SPECIES_TATSUGIRI_DROOPY,
    SPECIES_TATSUGIRI_STRETCHY,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TATSUGIRI

#if P_FAMILY_GIMMIGHOUL
static const u16 sGimmighoulFormSpeciesIdTable[] = {
    SPECIES_GIMMIGHOUL_CHEST,
    SPECIES_GIMMIGHOUL_ROAMING,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_GIMMIGHOUL

#if P_FAMILY_OGERPON
static const u16 sOgerponFormSpeciesIdTable[] = {
    SPECIES_OGERPON_TEAL_MASK,
    SPECIES_OGERPON_WELLSPRING_MASK,
    SPECIES_OGERPON_HEARTHFLAME_MASK,
    SPECIES_OGERPON_CORNERSTONE_MASK,
    FORM_SPECIES_END,
};
#endif //P_FAMILY_OGERPON

#if P_FAMILY_TERAPAGOS
static const u16 sTerapagosFormSpeciesIdTable[] = {
    SPECIES_TERAPAGOS_NORMAL,
    SPECIES_TERAPAGOS_TERASTAL,
#if P_TERA_FORMS    
    SPECIES_TERAPAGOS_STELLAR,
#endif
    FORM_SPECIES_END,
};
#endif //P_FAMILY_TERAPAGOS
