# 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

  • int [ preset::ResearchTier ] — Research Tier
  • int — Max

Returns — void

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

Category: Story / Research Panel

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L5545
ResearchTierSetMaxPurchasesAllowed(ResearchTierLastCreated(), 1)