# Player Score Value (Integer)

Grammar — Player player score score
FlagsNative | Function

Returns a statistic for the specified player as an integer.

# Arguments

  • int — Player
  • string [ gamelink::ScoreValue ] — Score

Returns — int

native int PlayerScoreValueGetAsInt(
	int player,
	string value,
);

Category: Player / Player Settings

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L5076
PlayerScoreValueGetAsInt(gv_p1_USER, "StructuresLostCount")
// L5076
PlayerScoreValueGetAsInt(gv_p1_USER, "StructuresFriendlyFireCount")
// L5076
PlayerScoreValueGetAsInt(gv_p1_USER, "StructuresSalvagedCount")
// L4243
PlayerScoreValueGetAsInt(gv_pLAYER01_USER, "StructuresLostCount")
// L4243
PlayerScoreValueGetAsInt(gv_pLAYER01_USER, "StructuresFriendlyFireCount")
// L4243
PlayerScoreValueGetAsInt(gv_pLAYER01_USER, "StructuresSalvagedCount")
// L4368
PlayerScoreValueGetAsInt(gv_p01_USER, "MineralsCollected")
// L4977
PlayerScoreValueGetAsInt(gv_pLAYER_P01_USER, "UnitsLostCount")
// L5076
PlayerScoreValueGetAsInt(gv_p1_USER, "StructuresLostCount")
// L5076
PlayerScoreValueGetAsInt(gv_p1_USER, "StructuresFriendlyFireCount")
// L5076
PlayerScoreValueGetAsInt(gv_p1_USER, "StructuresSalvagedCount")
// L4243
PlayerScoreValueGetAsInt(gv_pLAYER01_USER, "StructuresLostCount")
// L4243
PlayerScoreValueGetAsInt(gv_pLAYER01_USER, "StructuresFriendlyFireCount")
// L4243
PlayerScoreValueGetAsInt(gv_pLAYER01_USER, "StructuresSalvagedCount")
// L4368
PlayerScoreValueGetAsInt(gv_p01_USER, "MineralsCollected")
// L4977
PlayerScoreValueGetAsInt(gv_pLAYER_P01_USER, "UnitsLostCount")
// L4894
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L3842
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4130
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L5099
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L6245
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L6444
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4467
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4090
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L5408
PlayerScoreValueGetAsInt(gv_pLAYER_06_INFESTED, "UnitsTotalCount")
// L5409
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4538
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4815
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4816
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L3368
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L3573
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L3574
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4071
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4563
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4872
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L5166
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4232
PlayerScoreValueGetAsInt(gv_PLAYER_01_USER, "UnitsKilledCount")
// L4470
PlayerScoreValueGetAsInt(gv_PLAYER_01_USER, "UnitsActiveCount")
// L7814
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L6873
PlayerScoreValueGetAsInt(gv_p01_USER, "UnitsKilledCount")
// L6874
PlayerScoreValueGetAsInt(gv_p01_USER, "UnitsLostCount")
// L5946
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L6335
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4621
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4624
PlayerScoreValueGetAsInt(gv_pLAYER_04_TYRANNOZOR, "UnitsKilledCount")
// L4845
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4894
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L3842
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4130
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L5099
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L6245
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L6444
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4467
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4090
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L5408
PlayerScoreValueGetAsInt(gv_pLAYER_06_INFESTED, "UnitsTotalCount")
// L5409
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4538
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4815
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4816
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L3368
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L3573
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L3574
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4071
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4563
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4872
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L5166
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4232
PlayerScoreValueGetAsInt(gv_PLAYER_01_USER, "UnitsKilledCount")
// L4470
PlayerScoreValueGetAsInt(gv_PLAYER_01_USER, "UnitsActiveCount")
// L7814
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L6873
PlayerScoreValueGetAsInt(gv_p01_USER, "UnitsKilledCount")
// L6874
PlayerScoreValueGetAsInt(gv_p01_USER, "UnitsLostCount")
// L5946
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L6335
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L4621
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsKilledCount")
// L4624
PlayerScoreValueGetAsInt(gv_pLAYER_04_TYRANNOZOR, "UnitsKilledCount")
// L4845
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsActiveCount")
// L5850
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsLostCount")
// L5854
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsLostCount")
// L4161
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "StructuresLostCount")
// L5850
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsLostCount")
// L5854
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "UnitsLostCount")
// L4161
PlayerScoreValueGetAsInt(gv_pLAYER_01_USER, "StructuresLostCount")

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L12161
PlayerScoreValueGetAsInt(lv_itPlayer, "SiegeDamage")
// L12161
PlayerScoreValueGetAsInt(lv_itPlayer, "HeroDamage")

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L5768
PlayerScoreValueGetAsInt(lv_abathurPlayer, "EvolutionCompleteStacks")
// L10834
PlayerScoreValueGetAsInt(lv_owner, "JainaFrostbiteDamage")
// L10835
PlayerScoreValueGetAsInt(lv_owner, "JainaFrostbiteDamage")
// L10836
PlayerScoreValueGetAsInt(lv_owner, "JainaFrostbiteDamage")
// L10888
PlayerScoreValueGetAsInt(lv_player, "JainaFrostbiteDamage")

# mods/heroesdata.stormmod

GameLib.galaxy

// L1939
PlayerScoreValueGetAsInt(lp_deadPlayer, "DeadHeroLastKnownHealth")
// L6344
PlayerScoreValueGetAsInt(lv_itPlayer, "HighestKillStreak")
// L11228
PlayerScoreValueGetAsInt(lp_player, lp_score)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L4261
PlayerScoreValueGetAsInt(lv_itPlayer, "BalanceProbe")
// L4394
PlayerScoreValueGetAsInt(lv_itPlayer, "BalanceProbe")

# mods/heromods/chogall.stormmod

LibHCHO.galaxy

// L1364
PlayerScoreValueGetAsInt(lv_initialGallPlayerID, "GenericHeroTalentStackCounter")

# mods/heromods/dehaka.stormmod

LibHDEH.galaxy

// L127
PlayerScoreValueGetAsInt(lp_playerNumber, "DehakaEssenceCollectionMuscularAugementationCount")
// L166
PlayerScoreValueGetAsInt(lp_playerNumber, "DehakaEssenceCollectionTissueRegenerationCount")

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L3085
PlayerScoreValueGetAsInt(lp_player, "UnitsActiveCount")
// L29781
PlayerScoreValueGetAsInt(libCOUI_gf_CU_ScoreTriggeringPlayer(), "MutatorIsWeeklyChallenge")

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L126
PlayerScoreValueGetAsInt(lp_player, libCOOC_gv_cC_MissionScoreTypes[lp_index])