# Player Score Value (Real)

Grammar — Player player score score
FlagsNative | Function

Returns a statistic for the specified player as a real.

# Arguments

  • int — Player
  • string<gamelink::ScoreValue> — Score

Returns — fixed

native fixed PlayerScoreValueGetAsFixed(
	int player,
	string value,
);

Category: Player / Player Settings

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7076

    }
    if ((UnitGetTokenCount(lv_azmodan, "AzmodanGlobeOfAnnihilationTokenCounter") < CatalogFieldValueGetAsFixed(c_gameCatalogBehavior, "AzmodanGlobeOfAnnihilationTokenCounter", "Max", lv_player))) {
        PlayerScoreValueSetFromFixed(lv_player, lv_scoreValue, (PlayerScoreValueGetAsFixed(lv_player, lv_scoreValue) + lv_stackCount));
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:11576


    }
    libGame_gf_ScoreValuesReportRealValueAndLog(lv_liLiPlayer, "Healing", (PlayerScoreValueGetAsFixed(lv_liLiPlayer, "Healing") + lv_healingAmount));
    if ((lv_hostPlayer != lv_liLiPlayer)) {
        FloatingCombatElementCreateTextAtUnit(PlayerGroupSingle(lv_liLiPlayer), "FloatingCombatElements/FloatingCombatNormalAmountReceived", "HealState", EventPlayerEffectUsedUnit(c_effectUnitTarget), FixedToText(lv_healingAmount, 0), libNtve_gv_FloatingCombatTextAutoRandomSeed);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:25559

    lv_player = EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster);
    lv_zagara = EventPlayerEffectUsedUnit(c_effectUnitCaster);
    lv_siegeScore = PlayerScoreValueGetAsFixed(lv_player, "SiegeDamage");
    lv_modScore = (lv_siegeScore / 1000.0);
    lv_finalScore = (lv_rangedDamageDealtFraction + (Trunc(lv_modScore) / 100.0));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2217

        libGame_gv_mVPStats[lv_iterator].lv_role = libGame_gv_players[lv_iterator].lv_heroData.lv_expandedRole;
        libNtve_gf_AddPlayerGroupToPlayerGroup(libGame_gv_players[lv_iterator].lv_heroData.lv_heroRoles, libGame_gv_mVPStats[lv_iterator].lv_mvpRoles);
        libGame_gv_mVPStats[lv_iterator].lv_heroDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "HeroDamage");
        libGame_gf_SetAwardValueandWeight(lv_iterator, libGame_gv_mVPStats[lv_iterator].lv_heroDamageDone, libGame_ge_SecondaryAwards_Painbringer);
        libGame_gv_mVPStats[lv_iterator].lv_siegeDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "SiegeDamage");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2219

        libGame_gv_mVPStats[lv_iterator].lv_heroDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "HeroDamage");
        libGame_gf_SetAwardValueandWeight(lv_iterator, libGame_gv_mVPStats[lv_iterator].lv_heroDamageDone, libGame_ge_SecondaryAwards_Painbringer);
        libGame_gv_mVPStats[lv_iterator].lv_siegeDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "SiegeDamage");
        libGame_gf_SetAwardValueandWeight(lv_iterator, libGame_gv_mVPStats[lv_iterator].lv_siegeDamageDone, libGame_ge_SecondaryAwards_SiegeMaster);
        libGame_gv_mVPStats[lv_iterator].lv_damageTaken = libGame_gv_scoreValues[lv_iterator].lv_damageTaken;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2224

        libGame_gv_mVPStats[lv_iterator].lv_deaths = libGame_gv_scoreValues[lv_iterator].lv_deaths;
        libGame_gf_SetAwardValueandWeight(lv_iterator, libGame_gv_mVPStats[lv_iterator].lv_damageTaken, libGame_ge_SecondaryAwards_Bulwark);
        libGame_gv_mVPStats[lv_iterator].lv_xPContribution = PlayerScoreValueGetAsFixed(lv_iterator, "ExperienceContribution");
        libGame_gf_SetAwardValueandWeight(lv_iterator, libGame_gv_mVPStats[lv_iterator].lv_xPContribution, libGame_ge_SecondaryAwards_Experienced);
        libGame_gv_mVPStats[lv_iterator].lv_healAmount = PlayerScoreValueGetAsFixed(lv_iterator, "Healing");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2226

        libGame_gv_mVPStats[lv_iterator].lv_xPContribution = PlayerScoreValueGetAsFixed(lv_iterator, "ExperienceContribution");
        libGame_gf_SetAwardValueandWeight(lv_iterator, libGame_gv_mVPStats[lv_iterator].lv_xPContribution, libGame_ge_SecondaryAwards_Experienced);
        libGame_gv_mVPStats[lv_iterator].lv_healAmount = PlayerScoreValueGetAsFixed(lv_iterator, "Healing");
        libGame_gf_SetAwardValueandWeight(lv_iterator, libGame_gv_mVPStats[lv_iterator].lv_healAmount, libGame_ge_SecondaryAwards_MainHealer);
        libGame_gv_mVPStats[lv_iterator].lv_enemyTeam = libGame_gf_EnemyTeamNumberOfPlayer(lv_iterator);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2287

        libGame_gv_mVPStats[lv_iterator].lv_mVPScore += (libGame_gv_mVPStats[lv_iterator].lv_assists * libGame_gf_GetMVPAwardAmount(libGame_gv_mVPStats[lv_iterator].lv_unitType, libGame_ge_MVPAwards_Assist));
        TriggerDebugOutput(8, (libGame_gv_mVPStats[lv_iterator].lv_heroName + StringExternal("Param/Value/lib_Game_0F666E73") + FixedToText(libGame_gv_scoreValues[lv_iterator].lv_assists, c_fixedPrecisionAny) + StringExternal("Param/Value/lib_Game_9666B389")), false);
        libGame_gv_mVPStats[lv_iterator].lv_timeSpentDead = PlayerScoreValueGetAsFixed(lv_iterator, "TimeSpentDead");
        if ((lv_gameLength > 0.0)) {
            TriggerDebugOutput(8, (StringExternal("Param/Value/lib_Game_76523999") + FixedToText(lv_gameLength, c_fixedPrecisionAny) + StringExternal("Param/Value/lib_Game_00430BFC")), false);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:2291

            TriggerDebugOutput(8, (StringExternal("Param/Value/lib_Game_76523999") + FixedToText(lv_gameLength, c_fixedPrecisionAny) + StringExternal("Param/Value/lib_Game_00430BFC")), false);
            libGame_gv_mVPStats[lv_iterator].lv_mVPScore += (((libGame_gv_mVPStats[lv_iterator].lv_timeSpentDead / lv_gameLength) * 100.0) * libGame_gf_GetMVPAwardAmount(libGame_gv_mVPStats[lv_iterator].lv_unitType, libGame_ge_MVPAwards_TimeSpentDead));
            TriggerDebugOutput(8, (libGame_gv_mVPStats[lv_iterator].lv_heroName + StringExternal("Param/Value/lib_Game_AA28B988") + FixedToText(PlayerScoreValueGetAsFixed(lv_iterator, "TimeSpentDead"), c_fixedPrecisionAny) + StringExternal("Param/Value/lib_Game_FFBAB715") + FixedToText((((libGame_gv_mVPStats[lv_iterator].lv_timeSpentDead / lv_gameLength) * 100.0) * libGame_gv_awardforPercentageTimeSpentDead), c_fixedPrecisionAny) + StringExternal("Param/Value/lib_Game_359F599B")), false);
        }
        else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:6468


    if (((lp_killingPlayer == libCore_gv_cOMPUTER_TeamOrder) || (lp_killingPlayer == libCore_gv_cOMPUTER_TeamChaos) || (PlayerGroupCount(lp_killingGroup) != 0))) {
        libGame_gf_ScoreValuesReportRealValueAndLog(PlayerGroupPlayer(libGame_gf_AlliedPlayerGroupOfPlayer(lv_deadPlayer), 1), "TeamTakedowns", (PlayerScoreValueGetAsFixed(PlayerGroupPlayer(libGame_gf_AlliedPlayerGroupOfPlayer(lv_deadPlayer), 1), "TeamTakedowns") + lv_valueCoefficient));
    }
    else {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:9666

        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_heroName = UnitTypeGetName(UnitGetType(libGame_gv_players[lv_iterator].lv_heroUnit));
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_unitType = UnitGetType(libGame_gv_players[lv_iterator].lv_heroUnit);
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_heroDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "HeroDamageDone6Min");
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_siegeDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "SiegeDamage6Min");
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_damageTaken = PlayerScoreValueGetAsFixed(lv_iterator, "DamageTaken6Min");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:9667

        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_unitType = UnitGetType(libGame_gv_players[lv_iterator].lv_heroUnit);
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_heroDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "HeroDamageDone6Min");
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_siegeDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "SiegeDamage6Min");
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_damageTaken = PlayerScoreValueGetAsFixed(lv_iterator, "DamageTaken6Min");
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_deaths = PlayerScoreValueGetAsFixed(lv_iterator, "Deaths6Min");

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:9668

        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_heroDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "HeroDamageDone6Min");
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_siegeDamageDone = PlayerScoreValueGetAsFixed(lv_iterator, "SiegeDamage6Min");
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_damageTaken = PlayerScoreValueGetAsFixed(lv_iterator, "DamageTaken6Min");
        libGame_gv_onFireRollingWindowSums[lv_iterator].lv_deaths = PlayerScoreValueGetAsFixed(lv_iterator, "Deaths6Min");
        libGame_gv_mVPStats[lv_iterator].lv_deaths = libGame_gv_scoreValues[lv_iterator].lv_deaths;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:3263

    for ( ; lv_iterator <= autoEDD9318E_ae ; lv_iterator += 1 ) {
        if ((libGame_gf_TeamNumberOfPlayer(lv_iterator) == lp_cursingTeam)) {
            libMapM_gv_siegeDamagePreCurse[lv_iterator] = PlayerScoreValueGetAsFixed(lv_iterator, "SiegeDamage");
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:3283

    for ( ; lv_iterator <= autoC675CD57_ae ; lv_iterator += 1 ) {
        if ((libGame_gf_TeamNumberOfPlayer(lv_iterator) == lp_cursingTeam)) {
            libMapM_gv_totalCurseSiegeDamage[lv_iterator] = (libMapM_gv_totalCurseSiegeDamage[lv_iterator] + (PlayerScoreValueGetAsFixed(lv_iterator, "SiegeDamage") - libMapM_gv_siegeDamagePreCurse[lv_iterator]));
            libGame_gf_ScoreValuesReportRealValueAndLog(lv_iterator, "CurseDamageDone", libMapM_gv_totalCurseSiegeDamage[lv_iterator]);
            libGame_gf_SendMapSpecificAwardEvent(lv_iterator, libMapM_gv_totalCurseSiegeDamage[lv_iterator], false);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:514

    TextExpressionSetToken("Param/Expression/lib_Sprt_0F17B510", "A", IntToText((libCore_gv_talents_MaxTiers_C + 1)));
    lv_talentTextLine = (lv_talentTextLine + TextExpressionAssemble("Param/Expression/lib_Sprt_0F17B510"));
    TextExpressionSetToken("Param/Expression/lib_Sprt_BBA46ABE", "A", FixedToText(PlayerScoreValueGetAsFixed(lp_reportPlayer, "HeroDamage"), 0));
    TextExpressionSetToken("Param/Expression/lib_Sprt_BBA46ABE", "B", FixedToText(PlayerScoreValueGetAsFixed(lp_reportPlayer, "SiegeDamage"), 0));
    TriggerDebugOutput(7, TextExpressionAssemble("Param/Expression/lib_Sprt_BBA46ABE"), false);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/SupportLib.galaxy:515

    lv_talentTextLine = (lv_talentTextLine + TextExpressionAssemble("Param/Expression/lib_Sprt_0F17B510"));
    TextExpressionSetToken("Param/Expression/lib_Sprt_BBA46ABE", "A", FixedToText(PlayerScoreValueGetAsFixed(lp_reportPlayer, "HeroDamage"), 0));
    TextExpressionSetToken("Param/Expression/lib_Sprt_BBA46ABE", "B", FixedToText(PlayerScoreValueGetAsFixed(lp_reportPlayer, "SiegeDamage"), 0));
    TriggerDebugOutput(7, TextExpressionAssemble("Param/Expression/lib_Sprt_BBA46ABE"), false);
    TriggerDebugOutput(7, lv_talentTextLine, false);

mods/heromods/genji.stormmodbase.stormdata/LibHGen.galaxy:102

    // Implementation
    if ((PlayerHasTalent(lp_genjiPlayer, "GenjiDeflectDragonClaw") == true) && (UnitHasBehavior2(lp_genjiUnit, "GenjiDeflectDragonClawActive") == false)) {
        PlayerScoreValueSetFromFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore, MinF((PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore) + lp_incomingDamage), lv_damageThreshold));
        if ((PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore) >= lv_damageThreshold)) {
            UnitCreateEffectUnit(lp_genjiUnit, "GenjiDeflectDragonClawActiveApplyBehavior", lp_genjiUnit);

mods/heromods/genji.stormmodbase.stormdata/LibHGen.galaxy:103

    if ((PlayerHasTalent(lp_genjiPlayer, "GenjiDeflectDragonClaw") == true) && (UnitHasBehavior2(lp_genjiUnit, "GenjiDeflectDragonClawActive") == false)) {
        PlayerScoreValueSetFromFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore, MinF((PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore) + lp_incomingDamage), lv_damageThreshold));
        if ((PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore) >= lv_damageThreshold)) {
            UnitCreateEffectUnit(lp_genjiUnit, "GenjiDeflectDragonClawActiveApplyBehavior", lp_genjiUnit);
        }

mods/heromods/genji.stormmodbase.stormdata/LibHGen.galaxy:119

    }

    PlayerScoreValueSetFromFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore, (PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore) + lp_incomingDamage));
    if ((PlayerHasTalent(lp_genjiPlayer, "GenjiDeflectZanshin") == true) && (PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore) >= libHGen_gv_heroGenjiDeflectZanshinDamageRequirement) && (libHGen_gv_heroGenjiDeflectZanshinActivated[lp_genjiPlayer] == false)) {
        UnitCreateEffectUnit(lp_genjiUnit, "GenjiDeflectZanshinModifySearch", lp_genjiUnit);

mods/heromods/genji.stormmodbase.stormdata/LibHGen.galaxy:120


    PlayerScoreValueSetFromFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore, (PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore) + lp_incomingDamage));
    if ((PlayerHasTalent(lp_genjiPlayer, "GenjiDeflectZanshin") == true) && (PlayerScoreValueGetAsFixed(lp_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore) >= libHGen_gv_heroGenjiDeflectZanshinDamageRequirement) && (libHGen_gv_heroGenjiDeflectZanshinActivated[lp_genjiPlayer] == false)) {
        UnitCreateEffectUnit(lp_genjiUnit, "GenjiDeflectZanshinModifySearch", lp_genjiUnit);
        libHGen_gv_heroGenjiDeflectZanshinActivated[lp_genjiPlayer] = true;

mods/heromods/genji.stormmodbase.stormdata/LibHGen.galaxy:521

    }

    CatalogFieldValueSetFixed(c_gameCatalogEffect, "GenjiDeflectZanshinIncrementToken", "Value", lv_genjiPlayer, PlayerScoreValueGetAsFixed(lv_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore));
    UnitCreateEffectUnit(lv_genjiUnit, "GenjiDeflectZanshinIncrementToken", lv_genjiUnit);
    if ((PlayerHasTalent(lv_genjiPlayer, "GenjiDeflectZanshin") == true) && (PlayerScoreValueGetAsFixed(lv_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore) >= libHGen_gv_heroGenjiDeflectZanshinDamageRequirement)) {

mods/heromods/genji.stormmodbase.stormdata/LibHGen.galaxy:523

    CatalogFieldValueSetFixed(c_gameCatalogEffect, "GenjiDeflectZanshinIncrementToken", "Value", lv_genjiPlayer, PlayerScoreValueGetAsFixed(lv_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore));
    UnitCreateEffectUnit(lv_genjiUnit, "GenjiDeflectZanshinIncrementToken", lv_genjiUnit);
    if ((PlayerHasTalent(lv_genjiPlayer, "GenjiDeflectZanshin") == true) && (PlayerScoreValueGetAsFixed(lv_genjiPlayer, libHGen_gv_heroGenjiDeflectDamageTakenLifetimeScore) >= libHGen_gv_heroGenjiDeflectZanshinDamageRequirement)) {
        UnitCreateEffectUnit(lv_genjiUnit, "GenjiDeflectZanshinModifySearch", lv_genjiUnit);
        libHGen_gv_heroGenjiDeflectZanshinActivated[lv_genjiPlayer] = true;