# Purchased Purchase Item

Grammar — Purchased purchase item
FlagsNative | Function

Returns the purchase item that was purchased. Used in response to a “Purchase Made” event.

Returns — int<preset::PurchaseItem>

native int EventPurchaseMade();

# Supported triggers

Category: Story / Tech Purchase Panel / Interaction

# Examples

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

    }

    lv_tech = libCamp_gf_TechPurchasableTechID(EventPurchaseMade());
    if ((lv_tech != libCamp_ge_StoryTech_StoryTechNone) && (libCamp_gf_StoryCredits() >= libCamp_gf_StoryTechCost(lv_tech)) && ((libCamp_gv_tSX_Tech_Status[(lv_tech)] == libCamp_ge_StoryTechStates_TechAvailable) || (libCamp_gv_tSX_Tech_Status[(lv_tech)] == libCamp_ge_StoryTechStates_TechNew))) {
        libCamp_gv_tSX_Tech_Status[(lv_tech)] = libCamp_ge_StoryTechStates_TechPurchased;