# Set Mercenary Cost

Grammar — Set the cost of mercenaryId to cost
FlagsNative | Action

Sets the cost for the specified mercenary.

# Arguments

  • int<preset::Mercenary> — MercenaryId
  • int — Cost

Returns — void

native void MercenarySetCost(
	int inMercenaryId,
	int inCost,
);

Category: Story / Mercenary Panel

# Examples

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

            MercenarySetTitleText(MercenaryLastCreated(), libCamp_gf_MercName(lv_indexMerc));
            MercenarySetDescriptionText(MercenaryLastCreated(), libCamp_gf_MercDescription(lv_indexMerc));
            MercenarySetCost(MercenaryLastCreated(), libCamp_gf_MercCost(lv_indexMerc));
            MercenarySetUnitText(MercenaryLastCreated(), libCamp_gf_MercUnitText(lv_indexMerc));
            MercenarySetSpecialText(MercenaryLastCreated(), libCamp_gf_MercSpecialText(lv_indexMerc));