# Purchase Made
Grammar — Player player purchases purchaseItem
Flags —Native
|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
— Playerint
<preset::PurchaseItem> — Purchase Item
Returns — void
native void TriggerAddEventPurchaseMade(
trigger t,
int player,
int inPurchaseItemId,
);
# Event parameters
- Purchased Purchase Item — EventPurchaseMade
# Related
Category: Story / Tech Purchase Panel / Interaction
- Purchase Made —
void
— TriggerAddEventPurchaseMade - Purchase Item Selected —
void
— TriggerAddEventSelectedPurchaseItemChanged - Purchase Item Selected —
void
— TriggerAddEventSelectedPurchaseItemChanged - Purchase Category Selected —
void
— TriggerAddEventSelectedPurchaseCategoryChanged - Purchase Category Selected —
void
— TriggerAddEventSelectedPurchaseCategoryChanged - Purchase Exit —
void
— TriggerAddEventPurchaseExit - Set Selected Purchase Category —
void
— PurchaseSetSelectedPurchaseCategory - Set Selected Purchase Item —
void
— PurchaseSetSelectedPurchaseItem - Purchase Purchase Item —
void
— PurchaseItemPurchase - Selected Purchase Category —
int
<preset::PurchaseCategory> — PurchaseGetSelectedPurchaseCategory - Selected Purchase Item —
int
<preset::PurchaseItem> — PurchaseGetSelectedPurchaseItem - Purchased Purchase Item —
int
<preset::PurchaseItem> — EventPurchaseMade - Purchase Item Is Recently Purchased —
bool
— PurchaseItemIsRecentlyPurchased
# Examples
campaigns/libertystory.sc2campaign — base.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);
}