# Modify Player Score (Integer)
Grammar — Modify player p prop: Set To val
Flags —Native
|Action
Modifies player score such as units killed.
# Arguments
int
— Playerstring
[ gamelink::ScoreValue ] — Scoreint
— Value
Returns — void
native void PlayerScoreValueSetFromInt(
int player,
string value,
int amount,
);
# Related
Category: Player / Player Settings
- [F] —
void
— Modify Player Property (Integer) — ( PlayerModifyPropertyInt ) - [F] —
void
— Modify Player Property (Real) — ( PlayerModifyPropertyFixed ) - [F] —
int
— Player Property (Integer) — ( PlayerGetPropertyInt ) - [F] —
fixed
— Player Property (Real) — ( PlayerGetPropertyFixed ) - [F] —
void
— Modify Player Score (Integer) — ( PlayerScoreValueSetFromInt ) - [F] —
void
— Modify Player Score (Real) — ( PlayerScoreValueSetFromFixed ) - [F] —
int
— Player Score Value (Integer) — ( PlayerScoreValueGetAsInt ) - [F] —
fixed
— Player Score Value (Real) — ( PlayerScoreValueGetAsFixed ) - [F] —
void
— Turn Player Flag On/Off — ( PlayerSetState ) - [F] —
bool
— Player Flag Check — ( PlayerGetState ) - [F] —
bool
— Player License Check — ( PlayerHasLicense ) - [F] —
bool
— Player Access Check — ( PlayerHasAccessTo ) - [F] —
bool
— Player Has Reward — ( PlayerHasReward ) - [F] —
bool
— Player Has Talent — ( PlayerHasTalent ) - [F] —
text
— Name Of Player — ( PlayerName ) - [F] —
string
— Handle Of Player — ( PlayerHandle ) - [F] —
string
[ gamelink::Race ] — Race Of Player — ( PlayerRace ) - [F] —
string
[ gamelink::Hero ] — Hero Of Player — ( PlayerHero ) - [F] —
string
[ gamelink::Skin ] — Skin Of Player — ( PlayerSkin ) - [F] —
string
[ gamelink::Mount ] — Mount Of Player — ( PlayerMount ) - [F] —
string
[ gamelink::Spray ] — Spray Of Player — ( PlayerSpray ) - [F] —
string
[ gamelink::Artifact ] — Artifact Of Player — ( PlayerArtifact ) - [F] —
int
— Artifact Rank Of Player — ( PlayerArtifactRank ) - [F] —
string
[ gamelink::Commander ] — Commander Of Player — ( PlayerCommander ) - [F] —
int
— Commander Level Of Player — ( PlayerCommanderLevel ) - [F] —
int
— Commander Mastery Level Of Player — ( PlayerCommanderMasteryLevel ) - [F] —
int
— Commander Mastery Talent Rank Of Player — ( PlayerCommanderMasteryTalentRank ) - [F] —
int
— Commander Selected Prestige Of Player — ( PlayerCommanderSelectedPrestige ) - [F] —
int
— Brutal Plus Difficulty of Player — ( PlayerBrutalPlusDifficulty ) - [F] —
int
— Retry Mutation Index of Player — ( PlayerRetryMutation ) - [F] —
int
— Allied Commander Enemy Wave Type — ( PlayerACEnemyWaveType ) - [F] —
point
— Start Location Of Player — ( PlayerStartLocation ) - [F] —
int
[ preset::PlayerController ] — Controller Of Player — ( PlayerType ) - [F] —
int
[ preset::PlayerStatus ] — Status Of Player — ( PlayerStatus ) - [F] —
void
— Set Player Color — ( PlayerSetColorIndex ) - [F] —
void
— Set Player Race — ( PlayerSetRace ) - [F] —
void
— Set Player Hero — ( PlayerSetHero ) - [F] —
void
— Set Player Skin — ( PlayerSetSkin ) - [F] —
void
— Set Player Console Skin — ( PlayerSetConsoleSkin ) - [F] —
void
— Apply Player Skin — ( PlayerApplySkin ) - [F] —
void
— Apply Player Skin (Replacing Existing Unit) — ( libNtve_gf_PlayerApplySkinReplacingExistingUnit ) - [F] —
void
— Set Player Mount — ( PlayerSetMount ) - [F] —
void
— Set Player Spray — ( PlayerSetSpray ) - [F] —
void
— Set Player Commander — ( PlayerSetCommander ) - [F] —
void
— Set Player Commander Level — ( PlayerSetCommanderLevel ) - [F] —
void
— Set Player Commander Mastery Level — ( PlayerSetCommanderMasteryLevel ) - [F] —
void
— Set Player Death Timer — ( PlayerSetDeathTimer ) - [F] —
void
— Set Player Bounds — ( PlayerSetBounds ) - [F] —
void
— Add Player Talent — ( PlayerAddTalent ) - [F] —
void
— Remove Player Talent — ( PlayerRemoveTalent ) - [F] —
void
— Add Player Response — ( PlayerAddResponse ) - [F] —
void
— Remove Player Response — ( PlayerRemoveResponse ) - [F] —
void
— Clear Player Response — ( PlayerClearResponse ) - [F] —
int
[ playercolor ] — Player Color — ( PlayerGetColorIndex ) - [F] —
void
— Override Player Option — ( PlayerOptionOverride ) - [F] —
string
— Player Hotkey Profile — ( PlayerGetHotkeyProfile ) - [F] —
void
— Player Property Changed — ( TriggerAddEventPlayerPropChange ) - [F] —
void
— Player Joins Game — ( TriggerAddEventPlayerJoin ) - [F] —
void
— Player Leaves Game — ( TriggerAddEventPlayerLeft ) - [F] —
int
— Triggering Player — ( EventPlayer ) - [F] —
int
[ preset::Player_Property_Get ] — Triggering Player Property — ( EventPlayerProperty ) - [F] —
int
— Triggering Player Property Change (Integer) — ( EventPlayerPropertyChangeInt ) - [F] —
fixed
— Triggering Player Property Change (Real) — ( EventPlayerPropertyChangeFixed ) - [F] —
void
— Player Add Label — ( PlayerAddLabel ) - [F] —
void
— Player Remove Label — ( PlayerRemoveLabel ) - [F] —
void
— Player Remove All Labels — ( PlayerRemoveAllLabels ) - [F] —
bool
— Player Has Label — ( PlayerHasLabel ) - [F] —
void
— Player Add Reward — ( PlayerAddReward )
# Examples
# mods/heroesdata.stormmod
// L1704
PlayerScoreValueSetFromInt(lp_killingPlayer, "LostVikingsVikingBriberyStackScore", UnitBehaviorCount(lv_vikingUnit, "LostVikingsVikingBriberyStacks"))
// L5770
PlayerScoreValueSetFromInt(lv_abathurPlayer, "EvolutionCompleteStacks", lv_evolutionCompleteStacks)
// L10751
PlayerScoreValueSetFromInt(lv_player, "JainaFrostbiteDamage", 0)
// L10792
PlayerScoreValueSetFromInt(lv_player, "JainaFrostbiteDamage", 0)
// L10835
PlayerScoreValueSetFromInt(lv_owner, "JainaFrostbiteDamage", (PlayerScoreValueGetAsInt(lv_owner, "JainaFrostbiteDamage") + FixedToInt(lv_damageValue)))
// L10898
PlayerScoreValueSetFromInt(lv_player, "JainaFrostbiteDamage", libGDHL_gv_heroJainaFrostbiteConstant)
// L12225
PlayerScoreValueSetFromInt(lv_leoricPlayer, "DeadHeroLastKnownHealth", FixedToInt(UnitGetPropertyFixed(lv_leoric, c_unitPropLife, c_unitPropCurrent)))
// L12339
PlayerScoreValueSetFromInt(lv_leoricPlayer, "DeadHeroLastKnownHealth", 0)
// L12681
PlayerScoreValueSetFromInt(EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster), "LostVikingsVikingBriberyStackScore", UnitBehaviorCount(lv_vikingUnit, "LostVikingsVikingBriberyStacks"))
// L12702
PlayerScoreValueSetFromInt(UnitGetOwner(EventUnit()), "LostVikingsVikingBriberyStackScore", 0)
# mods/heroesdata.stormmod
// L11224
PlayerScoreValueSetFromInt(lp_player, lp_score, lp_value)
# mods/heroesdata.stormmod
// L4306
PlayerScoreValueSetFromInt(lv_itPlayer, "BalanceProbe", 0)
// L4359
PlayerScoreValueSetFromInt(lv_itPlayer, "BalanceProbe", 0)
# mods/heroesdata.stormmod
// L6044
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightHeroDamageBoolean", 1)
// L6047
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightHeroDamageBoolean", 0)
// L6050
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightHealingBoolean", 1)
// L6053
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightHealingBoolean", 0)
// L6056
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightDamageTakenBoolean", 1)
// L6059
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightDamageTakenBoolean", 0)
// L6062
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightSiegeDamageBoolean", 1)
// L6065
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightSiegeDamageBoolean", 0)
// L6068
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightXPContributionBoolean", 1)
// L6071
PlayerScoreValueSetFromInt(lv_playerIterator, "OnFireHighlightXPContributionBoolean", 0)
# mods/heromods/chogall.stormmod
// L1364
PlayerScoreValueSetFromInt(lv_initialChoPlayerID, "GenericHeroTalentStackCounter", PlayerScoreValueGetAsInt(lv_initialGallPlayerID, "GenericHeroTalentStackCounter"))
// L1365
PlayerScoreValueSetFromInt(lv_initialGallPlayerID, "GenericHeroTalentStackCounter", 0)
# mods/starcoop/starcoop.sc2mod
// L113
PlayerScoreValueSetFromInt(lp_player, lp_scoreType, FixedToInt((libCOOC_gv_cC_MissionScoreValues[lv_scoreIndex][lp_player] * libCOMI_gf_DifficultyValueFixed2(libCOMI_gf_DifficultyLevelForPlayerCoop(lp_player), 1.0, 1.2, 1.5, 2.0, 2.0, 2.0))))
// L114
PlayerScoreValueSetFromInt(lp_player, "TotalMissionScore", FixedToInt((lv_totalScore * libCOMI_gf_DifficultyValueFixed2(libCOMI_gf_DifficultyLevelForPlayerCoop(lp_player), 1.0, 1.2, 1.5, 2.0, 2.0, 2.0))))
// L1939
PlayerScoreValueSetFromInt(lp_player, "MetaExperience", lv_totalXP)
// L1940
PlayerScoreValueSetFromInt(lp_player, "BonusObjectiveXP", lv_objectiveXP)
// L1941
PlayerScoreValueSetFromInt(lp_player, "MissionXP", lv_baseXP)
// L1942
PlayerScoreValueSetFromInt(lp_player, "UnitsKilledPoints", 0)
// L1943
PlayerScoreValueSetFromInt(lp_player, "UnitsMadePoints", 0)
// L1944
PlayerScoreValueSetFromInt(lp_player, "TechnologyPoints", 0)
// L1945
PlayerScoreValueSetFromInt(lp_player, "StructuresKilledPoints", 0)
// L1946
PlayerScoreValueSetFromInt(lp_player, "StructuresMadePoints", 0)