# Purchase Category Selected

Grammar — Player player selects purchaseCategory
FlagsNative | Event

This event fires when the specified player selects the specified purchase category from the storymode armory.

# Arguments

Returns — void

native void TriggerAddEventSelectedPurchaseCategoryChanged(
	trigger t,
	int player,
	int inPurchaseCategoryId,
);

Category: Story / Tech Purchase Panel / Interaction

# Examples

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

void libCamp_gt_TSTechCategorySelected_Init () {
    libCamp_gt_TSTechCategorySelected = TriggerCreate("libCamp_gt_TSTechCategorySelected_Func");
    TriggerAddEventSelectedPurchaseCategoryChanged(libCamp_gt_TSTechCategorySelected, c_playerAny, c_invalidPurchaseCategoryId);
}