# Create Purchase Category

Grammar — Create a new purchase category for Players in slot slot
FlagsNative | Action

Creates a group for purchasable techs for the specified player group. Use “Last Created Purchase Category” to get the purchase category created by this action. Tech purchase actions are used to populate the Hyperion Armory tech purchase UI with data.

# Arguments

  • playergroup — Players
  • int — Slot

Returns — int [ preset::PurchaseCategory ]

native int PurchaseCategoryCreate(
	playergroup inPlayerGroup,
	int inSlot,
);

Category: Story / Tech Purchase Panel / Purchase Categories

# Examples

# campaigns/libertystory.sc2campaign

CampaignLib.galaxy

// L7585
PurchaseCategoryCreate(PlayerGroupAll(), libCamp_gv_tS_TechCategorySlot[lv_index])