# Resource Traded Amount

Grammar — Total resourceType traded
FlagsNative | Function

# Arguments

Returns — int

native int EventResourceTradeAmount(int resourceIndex);

# Supported triggers

Category: UI / Game UI

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:33040

    }

    if ((EventResourceTradeAmount(c_resourceTypeMinerals) == 0)) {
        libCOMI_gf_CM_CommanderVOSend(libCOOC_gf_CC_PlayerAlly(EventPlayer()), libCOOC_gf_CC_CommanderVOLine(libCOOC_gf_ActiveCommanderForPlayer(EventPlayer()), libCOOC_ge_CC_CommanderVOLines_CC_CommanderVOVespeneSent), PlayerGroupSingle(libCOOC_gf_CC_PlayerAlly(EventPlayer())));
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:33043

        libCOMI_gf_CM_CommanderVOSend(libCOOC_gf_CC_PlayerAlly(EventPlayer()), libCOOC_gf_CC_CommanderVOLine(libCOOC_gf_ActiveCommanderForPlayer(EventPlayer()), libCOOC_ge_CC_CommanderVOLines_CC_CommanderVOVespeneSent), PlayerGroupSingle(libCOOC_gf_CC_PlayerAlly(EventPlayer())));
    }
    else if ((EventResourceTradeAmount(c_resourceTypeVespene) == 0)) {
        libCOMI_gf_CM_CommanderVOSend(libCOOC_gf_CC_PlayerAlly(EventPlayer()), libCOOC_gf_CC_CommanderVOLine(libCOOC_gf_ActiveCommanderForPlayer(EventPlayer()), libCOOC_ge_CC_CommanderVOLines_CC_CommanderVOMineralsSent), PlayerGroupSingle(libCOOC_gf_CC_PlayerAlly(EventPlayer())));
    }