# Create Research Tier

Grammar — Create a new research tier in slot slot of researchTier|Research Category for players|PlayerGroup
FlagsNative | Action

Creates a new research tier for the research panel. Use “Last Created Research Tier” to get the research tier created by this action.

# Arguments

  • playergroup — Players
  • int<preset::ResearchCategory> — Research Tier
  • int — Slot

Returns — int<preset::ResearchTier>

native int ResearchTierCreate(
	playergroup inPlayerGroup,
	int inResearchCategoryId,
	int inSlot,
);

Category: Story / Research Panel

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:5543

        lv_tierIndex = 1;
        for ( ; ( (autoBD7EADA4_ai >= 0 && lv_tierIndex <= autoBD7EADA4_ae) || (autoBD7EADA4_ai < 0 && lv_tierIndex >= autoBD7EADA4_ae) ) ; lv_tierIndex += autoBD7EADA4_ai ) {
            ResearchTierCreate(PlayerGroupAll(), ResearchCategoryLastCreated(), lv_tierIndex);
            libCamp_gv_tS_ResearchUITiers[lv_categoryIndex][lv_tierIndex] = ResearchTierLastCreated();
            ResearchTierSetMaxPurchasesAllowed(ResearchTierLastCreated(), 1);