# Value From Data Table (Real)

Grammarname from the scope|Global/Local data table
FlagsNative | Function

Returns a real value from a data table. Data tables allow you to store and recall values using a string identifier.

# Arguments

  • bool<preset::DataScope> — Scope
  • string — Name

Returns — fixed

native fixed DataTableGetFixed(bool global, string name);

Category: Data Table / Load Value

# Examples

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

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetFixed(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Base_C));
}

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

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetFixed(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardUpdate_C, libGame_gv_eventParam_MapSpecificAwardUpdate_Value_C));
}

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

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetFixed(false, TriggerEventParamName(libGame_gv_eventID_CustomTryMeModeSetLevel_C, libGame_gv_eventParam_CustomTryMeModeSetLevel_Level_C));
}

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

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetFixed(false, TriggerEventParamName(libGame_gv_eventID_ManualHeroSpawn_C, libGame_gv_eventParam_ManualHeroSpawn_DebugXP_C));
}

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

        if (auto2636383B_var == null) { break; }
        if ((UnitGetType(auto2636383B_var) != "KingsCore")) {
            UnitSetPropertyFixed(auto2636383B_var, c_unitPropLifePercent, DataTableGetFixed(true, ("%BuildingScalingLifePercent%" + IntToString(UnitGetTag(auto2636383B_var)))));
        }

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

        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "D", StringToText(lv_effectName));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "A", IntToText(DataTableGetInt(true, ("DMG" + lv_effectName + "Heroic:EffectCount" + IntToString(lp_reportPlayer)))));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "B", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + "Heroic:DamageAttempted" + IntToString(lp_reportPlayer))), 0));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "C", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + "Heroic:DamageDone" + IntToString(lp_reportPlayer))), 0));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "E", IntToText(DataTableGetInt(true, ("DMG" + lv_effectName + ":EffectCount" + IntToString(lp_reportPlayer)))));

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

        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "A", IntToText(DataTableGetInt(true, ("DMG" + lv_effectName + "Heroic:EffectCount" + IntToString(lp_reportPlayer)))));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "B", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + "Heroic:DamageAttempted" + IntToString(lp_reportPlayer))), 0));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "C", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + "Heroic:DamageDone" + IntToString(lp_reportPlayer))), 0));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "E", IntToText(DataTableGetInt(true, ("DMG" + lv_effectName + ":EffectCount" + IntToString(lp_reportPlayer)))));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "F", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + ":DamageAttempted" + IntToString(lp_reportPlayer))), 0));

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

        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "C", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + "Heroic:DamageDone" + IntToString(lp_reportPlayer))), 0));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "E", IntToText(DataTableGetInt(true, ("DMG" + lv_effectName + ":EffectCount" + IntToString(lp_reportPlayer)))));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "F", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + ":DamageAttempted" + IntToString(lp_reportPlayer))), 0));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "G", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + ":DamageDone" + IntToString(lp_reportPlayer))), 0));
        TriggerDebugOutput(7, TextExpressionAssemble("Param/Expression/lib_Sprt_7E978CA8"), false);

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

        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "E", IntToText(DataTableGetInt(true, ("DMG" + lv_effectName + ":EffectCount" + IntToString(lp_reportPlayer)))));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "F", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + ":DamageAttempted" + IntToString(lp_reportPlayer))), 0));
        TextExpressionSetToken("Param/Expression/lib_Sprt_7E978CA8", "G", FixedToText(DataTableGetFixed(true, ("DMG" + lv_effectName + ":DamageDone" + IntToString(lp_reportPlayer))), 0));
        TriggerDebugOutput(7, TextExpressionAssemble("Param/Expression/lib_Sprt_7E978CA8"), false);
        DataTableSetString(true, ("DMGStatTrackPlayer" + lv_reportPlayerAsStr + ":Effect" + IntToString(lv_itEntry)), "");

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

        TextExpressionSetToken("Param/Expression/lib_Sprt_8634C21F", "D", StringToText(lv_effectName));
        TextExpressionSetToken("Param/Expression/lib_Sprt_8634C21F", "A", IntToText(DataTableGetInt(true, ("HLG" + lv_effectName + "Heroic:EffectCount" + IntToString(lp_reportPlayer)))));
        TextExpressionSetToken("Param/Expression/lib_Sprt_8634C21F", "B", FixedToText(DataTableGetFixed(true, ("HLG" + lv_effectName + "Heroic:HealingDone" + IntToString(lp_reportPlayer))), 0));
        TextExpressionSetToken("Param/Expression/lib_Sprt_8634C21F", "E", IntToText(DataTableGetInt(true, ("HLG" + lv_effectName + ":EffectCount" + IntToString(lp_reportPlayer)))));
        TextExpressionSetToken("Param/Expression/lib_Sprt_8634C21F", "F", FixedToText(DataTableGetFixed(true, ("HLG" + lv_effectName + ":HealingDone" + IntToString(lp_reportPlayer))), 0));

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

        TextExpressionSetToken("Param/Expression/lib_Sprt_8634C21F", "B", FixedToText(DataTableGetFixed(true, ("HLG" + lv_effectName + "Heroic:HealingDone" + IntToString(lp_reportPlayer))), 0));
        TextExpressionSetToken("Param/Expression/lib_Sprt_8634C21F", "E", IntToText(DataTableGetInt(true, ("HLG" + lv_effectName + ":EffectCount" + IntToString(lp_reportPlayer)))));
        TextExpressionSetToken("Param/Expression/lib_Sprt_8634C21F", "F", FixedToText(DataTableGetFixed(true, ("HLG" + lv_effectName + ":HealingDone" + IntToString(lp_reportPlayer))), 0));
        TriggerDebugOutput(7, TextExpressionAssemble("Param/Expression/lib_Sprt_8634C21F"), false);
        DataTableSetString(true, ("HLGStatTrackPlayer" + lv_reportPlayerAsStr + ":Effect" + IntToString(lv_itEntry)), "");

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

    lv_damagingEffectCountAsStr = IntToString(DataTableGetInt(true, (lv_lookupNamePrefix + ":EffectCount" + lv_damagingEffectPlayerAsStr)));
    DataTableSetInt(true, (lv_lookupNamePrefix + ":EffectCount" + lv_damagingEffectPlayerAsStr), (DataTableGetInt(true, (lv_lookupNamePrefix + ":EffectCount" + lv_damagingEffectPlayerAsStr)) + 1));
    DataTableSetFixed(true, (lv_lookupNamePrefix + ":DamageAttempted" + lv_damagingEffectPlayerAsStr), (DataTableGetFixed(true, (lv_lookupNamePrefix + ":DamageAttempted" + lv_damagingEffectPlayerAsStr)) + lv_damageAttempted));
    DataTableSetFixed(true, (lv_lookupNamePrefix + ":DamageDone" + lv_damagingEffectPlayerAsStr), (DataTableGetFixed(true, (lv_lookupNamePrefix + ":DamageDone" + lv_damagingEffectPlayerAsStr)) + lv_damageDone));
    return true;

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

    DataTableSetInt(true, (lv_lookupNamePrefix + ":EffectCount" + lv_damagingEffectPlayerAsStr), (DataTableGetInt(true, (lv_lookupNamePrefix + ":EffectCount" + lv_damagingEffectPlayerAsStr)) + 1));
    DataTableSetFixed(true, (lv_lookupNamePrefix + ":DamageAttempted" + lv_damagingEffectPlayerAsStr), (DataTableGetFixed(true, (lv_lookupNamePrefix + ":DamageAttempted" + lv_damagingEffectPlayerAsStr)) + lv_damageAttempted));
    DataTableSetFixed(true, (lv_lookupNamePrefix + ":DamageDone" + lv_damagingEffectPlayerAsStr), (DataTableGetFixed(true, (lv_lookupNamePrefix + ":DamageDone" + lv_damagingEffectPlayerAsStr)) + lv_damageDone));
    return true;
}

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

    lv_healingEffectCountAsStr = IntToString(DataTableGetInt(true, (lv_lookupNamePrefix + ":EffectCount" + lv_healingEffectPlayerAsStr)));
    DataTableSetInt(true, (lv_lookupNamePrefix + ":EffectCount" + lv_healingEffectPlayerAsStr), (DataTableGetInt(true, (lv_lookupNamePrefix + ":EffectCount" + lv_healingEffectPlayerAsStr)) + 1));
    DataTableSetFixed(true, (lv_lookupNamePrefix + ":HealingDone" + lv_healingEffectPlayerAsStr), (DataTableGetFixed(true, (lv_lookupNamePrefix + ":HealingDone" + lv_healingEffectPlayerAsStr)) + lv_healingDone));
    libGame_gv_scoreValues[lv_healingPlayer].lv_healing += FixedToInt(lv_healingDone);
    return true;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:3497

    // Variable Initialization
    lv_dataPath = (libCOMI_gv_catalogAdditiveBonusPrefix + "_" + IntToString((lp_catalog)) + "_" + (lp_entry) + "_" + lp_label + "_" + (lp_fieldPath));
    lv_oldDelta = DataTableGetFixed(true, lv_dataPath);
    lv_defaultValue = libNtve_gf_CatalogFieldValueGetAsReal(lp_catalog, lp_entry, lp_fieldPath, c_playerAny);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:25505

    lv_u = EventUnit();
    lv_uT = UnitGetType(lv_u);
    lv_changedValueCooldown = DataTableGetFixed(true, ("TychusSpecialistTrainingAura_" + IntToString(UnitGetTag(lv_u)) + "_CooldownTimeChange"));
    lv_changedValueCharge = DataTableGetFixed(true, ("TychusSpecialistTrainingAura_" + IntToString(UnitGetTag(lv_u)) + "_ChargeTimeChange"));
    lv_p = UnitGetOwner(lv_u);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:25506

    lv_uT = UnitGetType(lv_u);
    lv_changedValueCooldown = DataTableGetFixed(true, ("TychusSpecialistTrainingAura_" + IntToString(UnitGetTag(lv_u)) + "_CooldownTimeChange"));
    lv_changedValueCharge = DataTableGetFixed(true, ("TychusSpecialistTrainingAura_" + IntToString(UnitGetTag(lv_u)) + "_ChargeTimeChange"));
    lv_p = UnitGetOwner(lv_u);
    lv_pathCooldown = "Cost[0].Cooldown.TimeUse";

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:5073

        lv_mutatorcountiter = UserDataGetInt("MutationDifficultyLevels", libCOMU_gf_CT_GetMutationDifficultyLevel(), "MutatorsMin", 1);
        for ( ; ( (autoD7B7EC40_ai >= 0 && lv_mutatorcountiter <= autoD7B7EC40_ae) || (autoD7B7EC40_ai < 0 && lv_mutatorcountiter >= autoD7B7EC40_ae) ) ; lv_mutatorcountiter += autoD7B7EC40_ai ) {
            lv_targetpercentage = DataTableGetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter));
            if ((lv_targetpercentage < 0.0) && (lv_remainingpercentage > 0.0) && (lv_totaluntargetedpossibilities > 0)) {
                lv_targetpercentage = (DataTableGetInt(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", lv_mutatorcountiter)) / lv_totaluntargetedpossibilities * lv_remainingpercentage);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:5196

    // Implementation
    if ((DataTableValueExists(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lp_mutatorCount)) == true)) {
        return DataTableGetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lp_mutatorCount));
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:8589

    for ( ; ( (autoE0A82FF9_ai >= 0 && lv_scoreIndex <= autoE0A82FF9_ae) || (autoE0A82FF9_ai < 0 && lv_scoreIndex >= autoE0A82FF9_ae) ) ; lv_scoreIndex += autoE0A82FF9_ai ) {
        if ((UnitGroupHasUnit(DataTableGetUnitGroup(true, ("CC_ScoreGroup_" + IntToString(lv_scoreIndex))), EventUnit()) == true) && (PlayerGroupHasPlayer(libCOOC_gf_NondefeatedPlayers(), EventUnitDamageSourcePlayer()) == true)) {
            lv_newScore = (DataTableGetFixed(true, ("CC_ScoreVal_" + IntToString(lv_scoreIndex) + "_" + IntToString(EventUnitDamageSourcePlayer()))) + EventUnitDamageAmount());
            DataTableSetFixed(true, ("CC_ScoreVal_" + IntToString(lv_scoreIndex) + "_" + IntToString(EventUnitDamageSourcePlayer())), lv_newScore);
            PlayerScoreValueSetFromInt(EventUnitDamageSourcePlayer(), (DataTableGetString(true, ("CC_ScoreType_" + IntToString(lv_scoreIndex)))), FixedToInt(lv_newScore));