# Purchase Item Selected

Grammar — Player player selects purchaseItem
FlagsNative | Event

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

# Arguments

  • int — Player
  • int<preset::PurchaseItem> — Purchase Item

Returns — void

native void TriggerAddEventSelectedPurchaseItemChanged(
	trigger t,
	int player,
	int inPurchaseItemId,
);

Category: Story / Tech Purchase Panel / Interaction

# Examples

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

void libCamp_gt_TSTechItemSelected_Init () {
    libCamp_gt_TSTechItemSelected = TriggerCreate("libCamp_gt_TSTechItemSelected_Func");
    TriggerAddEventSelectedPurchaseItemChanged(libCamp_gt_TSTechItemSelected, 1, c_invalidPurchaseItemId);
}