# Modify Player Score (Real)

Grammar — Modify player p prop: Set To val
FlagsNative | Action

Modifies player properties such as resources.

# Arguments

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

Returns — void

native void PlayerScoreValueSetFromFixed(
	int player,
	string value,
	fixed amount,
);

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:7125

    }

    PlayerScoreValueSetFromFixed(lv_player, "AzmodanMinionKillAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanHeroHitAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanWrathTalentAnnihilation", 0.0);

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


    PlayerScoreValueSetFromFixed(lv_player, "AzmodanMinionKillAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanHeroHitAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanWrathTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanArtOfChaosTalentAnnihilation", 0.0);

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

    PlayerScoreValueSetFromFixed(lv_player, "AzmodanMinionKillAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanHeroHitAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanWrathTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanArtOfChaosTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanMasterOfDestructionTalentAnnihilation", 0.0);

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

    PlayerScoreValueSetFromFixed(lv_player, "AzmodanHeroHitAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanWrathTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanArtOfChaosTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanMasterOfDestructionTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanBombardmentTalentAnnihilation", 0.0);

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

    PlayerScoreValueSetFromFixed(lv_player, "AzmodanWrathTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanArtOfChaosTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanMasterOfDestructionTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanBombardmentTalentAnnihilation", 0.0);
    return true;

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

    PlayerScoreValueSetFromFixed(lv_player, "AzmodanArtOfChaosTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanMasterOfDestructionTalentAnnihilation", 0.0);
    PlayerScoreValueSetFromFixed(lv_player, "AzmodanBombardmentTalentAnnihilation", 0.0);
    return true;
}

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

    else {
    }
    PlayerScoreValueSetFromFixed(lp_player, lp_score, lp_value);
}

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: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:485

    }

    PlayerScoreValueSetFromFixed(lv_genjiPlayer, libHGen_gv_heroGenjiDeflectDragonClawDamageAbsorbedScore, 0.0);
    return true;
}

mods/heromods/guldan.stormmodbase.stormdata/LibHGUL.galaxy:222


    libHGUL_gv_heroGuldanDarknessWithinDamageTracker[EventUnitDamageSourcePlayer()] = (libHGUL_gv_heroGuldanDarknessWithinDamageTracker[EventUnitDamageSourcePlayer()] + lv_damageDealt);
    PlayerScoreValueSetFromFixed(EventUnitDamageSourcePlayer(), "GenericHeroRealScoreValue1", MinF(libHGUL_gv_heroGuldanDarknessWithinDamageTracker[EventUnitDamageSourcePlayer()], CatalogFieldValueGetAsFixed(c_gameCatalogEffect, "GuldanLifeTapDarknessWithinDamageThreshold", "Amount", EventUnitDamageSourcePlayer())));
    if ((libHGUL_gv_heroGuldanDarknessWithinDamageTracker[EventUnitDamageSourcePlayer()] >= CatalogFieldValueGetAsFixed(c_gameCatalogEffect, "GuldanLifeTapDarknessWithinDamageThreshold", "Amount", EventUnitDamageSourcePlayer()))) {
        UnitBehaviorAdd(EventUnitDamageSourceUnit(), "GuldanLifeTapDarknessWithinReady", EventUnitDamageSourceUnit(), 1);

mods/heromods/guldan.stormmodbase.stormdata/LibHGUL.galaxy:248


    libHGUL_gv_heroGuldanDarknessWithinDamageTracker[EventPlayer()] = 0.0;
    PlayerScoreValueSetFromFixed(EventPlayer(), "GenericHeroRealScoreValue1", 0.0);
    return true;
}

mods/heromods/zuljin.stormmodbase.stormdata/LibHZUL.galaxy:292

    }

    PlayerScoreValueSetFromFixed(lv_player, "ZuljinYouWantAxeScoreValue", lv_scoreValue);
    return true;
}

mods/heromods/zuljin.stormmodbase.stormdata/LibHZUL.galaxy:328

    }

    PlayerScoreValueSetFromFixed(lv_player, "ZuljinYouWantAxeScoreValue", 0.0);
    return true;
}