# Remove Data Table Value
Grammar — Remove name value from the scope|Global/Local data table
Flags —Native
|Action
Removes a value within a data table.
# Arguments
bool
<preset::DataScope> — Scopestring
— Name
Returns — void
native void DataTableValueRemove(bool global, string name);
# Related
Category: Data Table / Utility
- Data Table Value Exists —
bool
— DataTableValueExists - Name Of Data Table Value —
string
— DataTableValueName - Type Of Data Table Value —
int
<preset::DataType> — DataTableValueType - Number Of Data Table Values —
int
— DataTableValueCount - Remove Data Table Value —
void
— DataTableValueRemove - Clear Data Table —
void
— DataTableClear
# Examples
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:3576
// Automatic Variable Declarations
// Implementation
DataTableValueRemove(true, (libVCST_gv_pSC_REDIRECTPREFIX + (lp_sourceCharacter)));
}
mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod — base.stormdata/LibMHtM.galaxy:1748
UnitSetState(lv_heroUnit, c_unitStateOrdersPaused, false);
UnitIssueOrder(lv_heroUnit, DataTableGetOrder(true, libMHtM_gf_GetOrderDataTableValueString(lv_heroUnit)), c_orderQueueReplace);
DataTableValueRemove(true, libMHtM_gf_GetOrderDataTableValueString(lv_heroUnit));
UnitBehaviorRemove(lv_heroUnit, "HauntedMinesMineShaftInvulnerableUnstoppableBehavior", 1);
UnitSetState(lv_heroUnit, c_unitStateTargetable, true);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3053
void libNCST_gf_ClearCharacterRedirect (string lp_sourceCharacter) {
// Implementation
DataTableValueRemove(true, (libNCST_gv_nSC_REDIRECTPREFIX + (lp_sourceCharacter)));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:5042
lv_mutatorcountiter = UserDataGetInt("MutationDifficultyLevels", libCOMU_gf_CT_GetMutationDifficultyLevel(), "MutatorsMin", 1);
for ( ; ( (autoEE00DB27_ai >= 0 && lv_mutatorcountiter <= autoEE00DB27_ae) || (autoEE00DB27_ai < 0 && lv_mutatorcountiter >= autoEE00DB27_ae) ) ; lv_mutatorcountiter += autoEE00DB27_ai ) {
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_ActualPercentage_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:5043
for ( ; ( (autoEE00DB27_ai >= 0 && lv_mutatorcountiter <= autoEE00DB27_ae) || (autoEE00DB27_ai < 0 && lv_mutatorcountiter >= autoEE00DB27_ae) ) ; lv_mutatorcountiter += autoEE00DB27_ai ) {
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_ActualPercentage_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", lv_mutatorcountiter));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:5044
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_ActualPercentage_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", lv_mutatorcountiter));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:5045
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_ActualPercentage_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_WeightMod_", lv_mutatorcountiter));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", lv_mutatorcountiter));
}
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", 0));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:5047
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", lv_mutatorcountiter));
}
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", 0));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", 0));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:5048
}
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_TargetPercentage_", 0));
DataTableValueRemove(true, libCOMU_gf_CT_MutatorCountTableName("MutatorCount_Possibilities_", 0));
}