# Set Research Tier Max Purchases Allowed

Grammar — Set the maximum number of purchased research items of researchTier to max
FlagsNative | Action

If this number is set higher than 0, when setting the state of one of the Research Items of this tier to Purchased, logic will execute to ensure the rest of the Research Items are set to disabled.

# Arguments

Returns — void

native void ResearchTierSetMaxPurchasesAllowed(
	int inResearchTierId,
	int inMax,
);

Category: Story / Research Panel

# Examples

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

            ResearchTierCreate(PlayerGroupAll(), ResearchCategoryLastCreated(), lv_tierIndex);
            libCamp_gv_tS_ResearchUITiers[lv_categoryIndex][lv_tierIndex] = ResearchTierLastCreated();
            ResearchTierSetMaxPurchasesAllowed(ResearchTierLastCreated(), 1);
            ResearchTierSetRequiredLevel(ResearchTierLastCreated(), (lv_tierIndex * libCamp_gv_tSC_RESEARCH_TIERLEVEL));
        }