# Add To Achievement Term Quantity

Grammar — Adds to achievement term term quantity with quantity for player player
FlagsNative | Action | Restricted

This feature only works on Blizzard-signed maps.

# Arguments

  • int — Player
  • string [ gamelink::AchievementTerm ] — Term
  • int — Quantity

Returns — void

native void AchievementTermQuantityAdd(
	int player,
	string term,
	int quantity,
);

Category: Game / Achievements

# Examples

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L10276
AchievementTermQuantityAdd(1, "SOA_ShieldOvercharge", (FixedToInt(libVoiC_gv_pC_AchievementShieldAbsorbTotal) - FixedToInt(libVoiC_gv_pC_AchievementShieldAbsorbLast)))

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L4767
AchievementTermQuantityAdd(gv_pLAYER_01_USER, "Nova06_2", 1)
// L3206
AchievementTermQuantityAdd(gv_pLAYER_01_USER, "Nova08_2", 1)
// L3244
AchievementTermQuantityAdd(gv_pLAYER_01_USER, "Nova08_3", 1)
// L3286
AchievementTermQuantityAdd(gv_pLAYER_01_USER, "Nova08_Mastery", 1)
// L4767
AchievementTermQuantityAdd(gv_pLAYER_01_USER, "Nova06_2", 1)
// L3206
AchievementTermQuantityAdd(gv_pLAYER_01_USER, "Nova08_2", 1)
// L3244
AchievementTermQuantityAdd(gv_pLAYER_01_USER, "Nova08_3", 1)
// L3286
AchievementTermQuantityAdd(gv_pLAYER_01_USER, "Nova08_Mastery", 1)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L5557
AchievementTermQuantityAdd(UnitGetOwner(lp_trooper), "CommanderMengskWeaponPickup", 1)
// L16769
AchievementTermQuantityAdd(lv_dehakaPlayer, "CommanderDehakaSupply", 1)
// L16772
AchievementTermQuantityAdd(lv_dehakaPlayer, "CommanderDehakaSupply", (CatalogFieldValueGetAsInt(c_gameCatalogUnit, UnitGetType(lv_targetUnit), "Food", EventPlayerEffectUsedUnitOwner(c_effectPlayerTarget)) * -1))
// L16774
AchievementTermQuantityAdd(lv_dehakaPlayer, "CommanderDehakaDamage", FixedToInt(lv_targetLife))
// L21476
AchievementTermQuantityAdd(lv_killingplayer, "CommanderMengskTopBarKills", RoundI(EventUnitDamageAmount()))
// L23571
AchievementTermQuantityAdd(lv_ownercaster, "CommanderStetmannStetzone", 1)
// L26079
AchievementTermQuantityAdd(lv_player, "CommanderTychusUltimateTychus", 1)
// L26084
AchievementTermQuantityAdd(lv_player, "CommanderTychusUltimateReaper", 1)
// L26089
AchievementTermQuantityAdd(lv_player, "CommanderTychusUltimateWarhound", 1)
// L26094
AchievementTermQuantityAdd(lv_player, "CommanderTychusUltimateFirebat", 1)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L1916
AchievementTermQuantityAdd(lp_player, "CommanderRecruitXPBonus25", lv_objectiveXPGained)
// L1917
AchievementTermQuantityAdd(lp_player, "CommanderRecruitXPBonus50", lv_objectiveXPGained)
// L1918
AchievementTermQuantityAdd(lp_player, "CommanderRecruitXPBonus100", lv_objectiveXPGained)
// L1920
AchievementTermQuantityAdd(lp_player, "CommanderSoldierXPBonus25", lv_objectiveXPGained)
// L1921
AchievementTermQuantityAdd(lp_player, "CommanderSoldierXPBonus50", lv_objectiveXPGained)
// L1922
AchievementTermQuantityAdd(lp_player, "CommanderSoldierXPBonus100", lv_objectiveXPGained)
// L1926
AchievementTermQuantityAdd(lp_player, "CommanderVeteranXPBonus25", lv_objectiveXPGained)
// L1927
AchievementTermQuantityAdd(lp_player, "CommanderVeteranXPBonus50", lv_objectiveXPGained)
// L1928
AchievementTermQuantityAdd(lp_player, "CommanderVeteranXPBonus100", lv_objectiveXPGained)
// L1932
AchievementTermQuantityAdd(lp_player, "CommanderCommanderXPBonus25", lv_objectiveXPGained)