# Purchase Made

Grammar — Player player purchases purchaseItem
FlagsNative | Event

This event fires when the specified player purchases the specified tech from the storymode armory. Use “Purchased Purchase Item” to get the item that was purchased.

# Arguments

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

Returns — void

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

# Event parameters

Category: Story / Tech Purchase Panel / Interaction

# Examples

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

void libCamp_gt_TSTechConsolePurchase_Init () {
    libCamp_gt_TSTechConsolePurchase = TriggerCreate("libCamp_gt_TSTechConsolePurchase_Func");
    TriggerAddEventPurchaseMade(libCamp_gt_TSTechConsolePurchase, c_playerAny, c_invalidPurchaseItemId);
}