# Save Data Table Value (Real)
Grammar — Save value as name in the scope|Global/Local data table
Flags —Native
|Action
Saves a real value into a data table. Data tables allow you to store and recall values using a string identifier. If you save a data table value using a string identifier that already exists, you will overwrite the old value, even if it is a different data type than the value you are saving.
# Arguments
bool
[ preset::DataScope ] — Scopestring
— Namefixed
— Value
Returns — void
native void DataTableSetFixed(
bool global,
string name,
fixed val,
);
# Related
Category: Data Table / Save Value
- [F] —
void
— Save Data Table Value (Ability Command) — ( DataTableSetAbilCmd ) - [F] —
void
— Save Data Table Value (Actor) — ( DataTableSetActor ) - [F] —
void
— Save Data Table Value (Actor Scope) — ( DataTableSetActorScope ) - [F] —
void
— Save Data Table Value (AI Filter) — ( DataTableSetAIFilter ) - [F] —
void
— Save Data Table Value (Bank) — ( DataTableSetBank ) - [F] —
void
— Save Data Table Value (Boolean) — ( DataTableSetBool ) - [F] —
void
— Save Data Table Value (Byte) — ( DataTableSetByte ) - [F] —
void
— Save Data Table Value (Camera Object) — ( DataTableSetCameraInfo ) - [F] —
void
— Save Data Table Value (Cinematic) — ( DataTableSetCinematic ) - [F] —
void
— Save Data Table Value (Color) — ( DataTableSetColor ) - [F] —
void
— Save Data Table Value (Control) — ( DataTableSetControl ) - [F] —
void
— Save Data Table Value (Conversation) — ( DataTableSetConversation ) - [F] —
void
— Save Data Table Value (Conversation Reply) — ( DataTableSetReply ) - [F] —
void
— Save Data Table Value (Dialog) — ( DataTableSetDialog ) - [F] —
void
— Save Data Table Value (Dialog Item) — ( libNtve_gf_SaveDataTableValueDialogItem ) - [F] —
void
— Save Data Table Value (Difficulty Level) — ( libNtve_gf_SaveDataTableValueDifficultyLevel ) - [F] —
void
— Save Data Table Value (Doodad) — ( DataTableSetDoodad ) - [F] —
void
— Save Data Table Value (Integer) — ( DataTableSetInt ) - [F] —
void
— Save Data Table Value (Marker) — ( DataTableSetMarker ) - [F] —
void
— Save Data Table Value (Objective) — ( DataTableSetObjective ) - [F] —
void
— Save Data Table Value (Order) — ( DataTableSetOrder ) - [F] —
void
— Save Data Table Value (Ping) — ( DataTableSetPing ) - [F] —
void
— Save Data Table Value (Planet) — ( DataTableSetPlanet ) - [F] —
void
— Save Data Table Value (Player Color) — ( libNtve_gf_SaveDataTableValuePlayerColor ) - [F] —
void
— Save Data Table Value (Player Group) — ( DataTableSetPlayerGroup ) - [F] —
void
— Save Data Table Value (Point) — ( DataTableSetPoint ) - [F] —
void
— Save Data Table Value (Portrait) — ( DataTableSetPortrait ) - [F] —
void
— Save Data Table Value (Real) — ( DataTableSetFixed ) - [F] —
void
— Save Data Table Value (Region) — ( DataTableSetRegion ) - [F] —
void
— Save Data Table Value (Revealer) — ( DataTableSetRevealer ) - [F] —
void
— Save Data Table Value (Sound) — ( DataTableSetSound ) - [F] —
void
— Save Data Table Value (Sound Link) — ( DataTableSetSoundLink ) - [F] —
void
— Save Data Table Value (String) — ( DataTableSetString ) - [F] —
void
— Save Data Table Value (Text) — ( DataTableSetText ) - [F] —
void
— Save Data Table Value (Text Tag) — ( libNtve_gf_SaveDataTableValueTextTag ) - [F] —
void
— Save Data Table Value (Timer) — ( DataTableSetTimer ) - [F] —
void
— Save Data Table Value (Transmission) — ( DataTableSetTransmission ) - [F] —
void
— Save Data Table Value (Transmission Source) — ( DataTableSetTransmissionSource ) - [F] —
void
— Save Data Table Value (Trigger) — ( DataTableSetTrigger ) - [F] —
void
— Save Data Table Value (Unit) — ( DataTableSetUnit ) - [F] —
void
— Save Data Table Value (Unit Filter) — ( DataTableSetUnitFilter ) - [F] —
void
— Save Data Table Value (Unit Group) — ( DataTableSetUnitGroup ) - [F] —
void
— Save Data Table Value (Unit Reference) — ( DataTableSetUnitRef ) - [F] —
void
— Save Data Table Value (Wave) — ( DataTableSetWave ) - [F] —
void
— Save Data Table Value (Wave Info) — ( DataTableSetWaveInfo ) - [F] —
void
— Save Data Table Value (Wave Target) — ( DataTableSetWaveTarget )
# Examples
# mods/heroesdata.stormmod
// L2562
DataTableSetFixed(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Base_C), lp_base)
// L2575
DataTableSetFixed(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Base_C), UserDataGetFixed("EndOfMatchMapSpecificAward", lp_userData, "Base", 1))
// L2642
DataTableSetFixed(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardUpdate_C, libGame_gv_eventParam_MapSpecificAwardUpdate_Value_C), lp_value)
// L3382
DataTableSetFixed(false, TriggerEventParamName(libGame_gv_eventID_CustomTryMeModeSetLevel_C, libGame_gv_eventParam_CustomTryMeModeSetLevel_Level_C), lp_level)
// L4050
DataTableSetFixed(false, TriggerEventParamName(libGame_gv_eventID_ManualHeroSpawn_C, libGame_gv_eventParam_ManualHeroSpawn_DebugXP_C), lp_debugXP)
// L20097
DataTableSetFixed(true, ("%BuildingScalingLifePercent%" + IntToString(UnitGetTag(libGame_gv_townTownData[lv_townIndex].lv_structureUnits[lv_structureIndex]))), UnitGetPropertyFixed(libGame_gv_townTownData[lv_townIndex].lv_structureUnits[lv_structureIndex], c_unitPropLifePercent, c_unitPropCurrent))
# mods/heroesdata.stormmod
// L476
DataTableSetFixed(true, ("DMG" + lv_effectName + "Heroic:DamageAttempted" + IntToString(lp_reportPlayer)), 0.0)
// L477
DataTableSetFixed(true, ("DMG" + lv_effectName + "Heroic:DamageDone" + IntToString(lp_reportPlayer)), 0.0)
// L479
DataTableSetFixed(true, ("DMG" + lv_effectName + ":DamageAttempted" + IntToString(lp_reportPlayer)), 0.0)
// L480
DataTableSetFixed(true, ("DMG" + lv_effectName + ":DamageDone" + IntToString(lp_reportPlayer)), 0.0)
// L499
DataTableSetFixed(true, ("HLG" + lv_effectName + "Heroic:HealingDone" + IntToString(lp_reportPlayer)), 0.0)
// L501
DataTableSetFixed(true, ("HLG" + lv_effectName + ":HealingDone" + IntToString(lp_reportPlayer)), 0.0)
// L2510
DataTableSetFixed(true, (lv_lookupNamePrefix + ":DamageAttempted" + lv_damagingEffectPlayerAsStr), (DataTableGetFixed(true, (lv_lookupNamePrefix + ":DamageAttempted" + lv_damagingEffectPlayerAsStr)) + lv_damageAttempted))
// L2511
DataTableSetFixed(true, (lv_lookupNamePrefix + ":DamageDone" + lv_damagingEffectPlayerAsStr), (DataTableGetFixed(true, (lv_lookupNamePrefix + ":DamageDone" + lv_damagingEffectPlayerAsStr)) + lv_damageDone))
// L2595
DataTableSetFixed(true, (lv_lookupNamePrefix + ":HealingDone" + lv_healingEffectPlayerAsStr), (DataTableGetFixed(true, (lv_lookupNamePrefix + ":HealingDone" + lv_healingEffectPlayerAsStr)) + lv_healingDone))
# mods/starcoop/starcoop.sc2mod
// L3513
DataTableSetFixed(true, lv_dataPath, lv_newDelta)
// L25453
DataTableSetFixed(true, ("TychusSpecialistTrainingAura_" + IntToString(UnitGetTag(lv_u)) + "_CooldownTimeChange"), lv_changedValue)
// L25457
DataTableSetFixed(true, ("TychusSpecialistTrainingAura_" + IntToString(UnitGetTag(lv_u)) + "_ChargeTimeChange"), lv_changedValue)
# mods/starcoop/starcoop.sc2mod
// L5061
DataTableSetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter), lv_targetpercentage)
// L5069
DataTableSetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", 0), MaxF(lv_remainingpercentage, 0.0))
// L5077
DataTableSetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter), lv_targetpercentage)
// L5081
DataTableSetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter), lv_targetpercentage)
// L5084
DataTableSetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_ActualPercentage_", lv_mutatorcountiter), lv_actualpercentage)
// L5086
DataTableSetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter), (lv_targetpercentage / lv_actualpercentage))
// L5089
DataTableSetFixed(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter), 0.0)
# mods/starcoop/starcoop.sc2mod
// L8590
DataTableSetFixed(true, ("CC_ScoreVal_" + IntToString(lv_scoreIndex) + "_" + IntToString(EventUnitDamageSourcePlayer())), lv_newScore)