# Value From Data Table (Boolean)
Grammar — name from the scope|Global/Local data table
Flags —Native
|Function
Returns a boolean value from a data table. Data tables allow you to store and recall values using a string identifier.
# Arguments
bool
<preset::DataScope> — Scopestring
— Name
Returns — bool
native bool DataTableGetBool(bool global, string name);
# Related
Category: Data Table / Load Value
- Value From Data Table (Ability Command) —
abilcmd
— DataTableGetAbilCmd - Value From Data Table (Actor) —
actor
— DataTableGetActor - Value From Data Table (Actor Scope) —
actorscope
— DataTableGetActorScope - Value From Data Table (AI Filter) —
aifilter
— DataTableGetAIFilter - Value From Data Table (Bank) —
bank
— DataTableGetBank - Value From Data Table (Boolean) —
bool
— DataTableGetBool - Value From Data Table (Byte) —
byte
— DataTableGetByte - Value From Data Table (Camera Object) —
camerainfo
— DataTableGetCameraInfo - Value From Data Table (Cinematic) —
int
<cinematic> — DataTableGetCinematic - Value From Data Table (Color) —
color
— DataTableGetColor - Value From Data Table (Control) —
int
<control> — DataTableGetControl - Value From Data Table (Conversation) —
int
<conversation> — DataTableGetConversation - Value From Data Table (Conversation Reply) —
int
<reply> — DataTableGetReply - Value From Data Table (Dialog) —
int
<dialog> — DataTableGetDialog - Value From Data Table (Dialog Item) —
int
<control> — libNtve_gf_ValueFromDataTableDialogItem - Value From Data Table (Difficulty Level) —
int
<difficulty> — libNtve_gf_ValueFromDataTableDifficultyLevel - Value From Data Table (Doodad) —
doodad
— DataTableGetDoodad - Value From Data Table (Integer) —
int
— DataTableGetInt - Value From Data Table (Marker) —
marker
— DataTableGetMarker - Value From Data Table (Objective) —
int
<objective> — DataTableGetObjective - Value From Data Table (Order) —
order
— DataTableGetOrder - Value From Data Table (Ping) —
int
<ping> — DataTableGetPing - Value From Data Table (Planet) —
int
<planet> — DataTableGetPlanet - Value From Data Table (Player Color) —
int
<playercolor> — libNtve_gf_ValueFromDataTablePlayerColor - Value From Data Table (Player Group) —
playergroup
— DataTableGetPlayerGroup - Value From Data Table (Point) —
point
— DataTableGetPoint - Value From Data Table (Portrait) —
int
<portrait> — DataTableGetPortrait - Value From Data Table (Real) —
fixed
— DataTableGetFixed - Value From Data Table (Region) —
region
— DataTableGetRegion - Value From Data Table (Revealer) —
revealer
— DataTableGetRevealer - Value From Data Table (Sound) —
sound
— DataTableGetSound - Value From Data Table (Sound Link) —
soundlink
— DataTableGetSoundLink - Value From Data Table (String) —
string
— DataTableGetString - Value From Data Table (Text) —
text
— DataTableGetText - Value From Data Table (Text Tag) —
int
<preset::TextTag> — libNtve_gf_ValueFromDataTableTextTag - Value From Data Table (Timer) —
timer
— DataTableGetTimer - Value From Data Table (Transmission) —
int
<transmission> — DataTableGetTransmission - Value From Data Table (Transmission Source) —
transmissionsource
— DataTableGetTransmissionSource - Value From Data Table (Trigger) —
trigger
— DataTableGetTrigger - Value From Data Table (Unit) —
unit
— DataTableGetUnit - Value From Data Table (Unit Filter) —
unitfilter
— DataTableGetUnitFilter - Value From Data Table (Unit Group) —
unitgroup
— DataTableGetUnitGroup - Value From Data Table (Unit Reference)
- Value From Data Table (Wave) —
wave
— DataTableGetWave - Value From Data Table (Wave Info) —
waveinfo
— DataTableGetWaveInfo - Value From Data Table (Wave Target) —
wavetarget
— DataTableGetWaveTarget
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3738
DataTableSetBool(true, (SoundLinkId(lp_soundLink)), true);
while (true) {
if ((DataTableGetBool(true, (SoundLinkId(lp_soundLink))) == false)) {
return ;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:3738
DataTableSetBool(true, (SoundLinkId(lp_soundLink)), true);
while (true) {
if ((DataTableGetBool(true, (SoundLinkId(lp_soundLink))) == false)) {
return ;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:5626
lv_indexMission = CatalogEntryGet(c_gameCatalogMap, autoB217ED36_ai);
if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Upgrade") {
if ((DataTableGetBool(false, ((lv_indexMission) + "_Available")) == false)) {
libSwaC_gf_ZS_MarkMissionAsStatus(lv_indexMission, libSwaC_ge_MissionStatus_Locked);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:10074
lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto39314A95_ai);
if ((libSwaC_gf_ZS_StoryArmyCategoryIsMorph(lv_indexCategory) == false)) {
if ((DataTableGetBool(false, (lv_indexCategory)) == true)) {
libSwaC_gf_ZS_SetArmyCategoryState(lv_indexCategory, c_armyCategoryStateUnlocked);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:13913
lv_indexMission = CatalogEntryGet(c_gameCatalogMap, auto7E37FE5B_ai);
if (CatalogFieldValueGet(c_gameCatalogMap, lv_indexMission, "Kind", 1) == "Upgrade") {
if ((DataTableGetBool(false, ((lv_indexMission) + "_Available")) == false)) {
libSwaC_gf_ZS_MarkMissionAsStatus(lv_indexMission, libSwaC_ge_MissionStatus_Locked);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:4796
while (autoC8E789DF_ai <= autoC8E789DF_ae) {
lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoC8E789DF_ai);
if ((DataTableGetBool(false, (lv_indexCategory)) == true)) {
libVoiC_gf_PC_SetArmyCategoryState(lv_indexCategory, c_armyCategoryStateUnlocked);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:5266
while (auto2852A76A_ai <= auto2852A76A_ae) {
lv_indexArmyUnit = CatalogFieldValueGet(c_gameCatalogArmyCategory, lv_indexCategory, "ArmyUnitArray["+IntToString(auto2852A76A_ai-1)+"]", 1);
if ((libVoiC_gf_PC_ArmyUnitStartsLocked(lv_indexArmyUnit) == true) && ((libVoiC_gf_PC_ArmyCategoryState(lv_indexCategory) == c_armyCategoryStateLocked) || ((libVoiC_gf_PC_ArmyUnitRequiredMission(lv_indexArmyUnit) == null) && (DataTableGetBool(false, (lv_indexCategory)) == false)) || ((libVoiC_gf_PC_ArmyUnitRequiredMission(lv_indexArmyUnit) != null) && (libVoiC_gf_MissionStatusCheck(libVoiC_gf_PC_ArmyUnitRequiredMission(lv_indexArmyUnit), libVoiC_ge_MissionStatus_Completed) == false)))) {
libVoiC_gf_PC_SetArmyUnitState(lv_indexArmyUnit, c_armyUnitStateLocked);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:2605
// Automatic Variable Declarations
// Implementation
return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_PresentAsRatio_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:2611
// Automatic Variable Declarations
// Implementation
return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_GatedByBase_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:2662
// Automatic Variable Declarations
// Implementation
return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardUpdate_C, libGame_gv_eventParam_MapSpecificAwardUpdate_IsAdd_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3350
// Automatic Variable Declarations
// Implementation
return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_CapturePointChangesOwner_C, libGame_gv_eventParam_CapturePointChangesOwner_HasMercLordTalent_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3625
// Automatic Variable Declarations
// Implementation
return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_HeroAIEndingCampAttack_C, libGame_gv_eventParam_HeroAIEndingCampAttack_Success_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:4110
// Automatic Variable Declarations
// Implementation
return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_RequestCustomRespawn_C, libGame_gv_eventParam_RequestCustomRespawn_RespawnMounted_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:4266
// Automatic Variable Declarations
// Implementation
return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_CheckUnitForAbilityRedirect_C, libGame_gv_eventParam_CheckUnitForAbilityRedirect_Boolean_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:5121
// Automatic Variable Declarations
// Implementation
return DataTableGetBool(false, TriggerEventParamName(libGame_gv_eventID_TalentPanelVisibilityChanged_C, libGame_gv_eventParam_TalentPanelVisibilityChanged_Visibility_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:1447
lv_itCategory = 1;
for ( ; ( (auto4B94B86E_ai >= 0 && lv_itCategory <= auto4B94B86E_ae) || (auto4B94B86E_ai < 0 && lv_itCategory >= auto4B94B86E_ae) ) ; lv_itCategory += auto4B94B86E_ai ) {
if ((DataTableGetBool(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_MountCategoryIndex_" + IntToString(lv_itCategory) + "_GrantedBySkin")) == false)) {
if ((lv_mountCategory == DataTableGetString(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_MountCategoryIndex_" + IntToString(lv_itCategory))))) {
return true;
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:2217
while (autoCC1ACBDA_ai <= autoCC1ACBDA_ae) {
lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, autoCC1ACBDA_ai);
if ((DataTableGetBool(false, (lv_indexCategory)) == true)) {
libComC_gf_CC_SetArmyCategoryState(lv_indexCategory, c_armyCategoryStateUnlocked);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:2428
// Automatic Variable Declarations
// Implementation
return DataTableGetBool(true, libCOMI_gf_CM_CoopAI_AttackForce_UseTransportName(lp_waypointIndex));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:19822
if ((lv_upgrade == UserDataGetGameLink("TheHornersMiraTakeOver", lv_inInstance, "Upgrade", 1))) {
lv_skin = UserDataGetGameLink("TheHornersMiraTakeOver", lv_inInstance, "Skin", 1);
if ((DataTableGetBool(true, ("CM_MTO_SkinApplied_" + (lv_skin) + "_" + IntToString(lv_player))) == false)) {
libCOMI_gf_PlayerApplySkinSignal(lv_player, lv_skin, true, "Signal Mira");
auto9B486C0C_userType = "TheHornersMiraTakeOver";
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3886
libNtve_gf_SetDialogItemText(lv_progressBarValue, TextTimeFormat(StringToText("<mintotal/>:<sec2/>"), lv_displayValue), PlayerGroupAll());
}
if ((DataTableGetBool(true, libCOUI_gf_CU_UnitProgressBar_Data2(lp_unit)) == true)) {
DialogControlSetVisible(lv_progressBarValue, PlayerGroupAll(), true);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3899
}
if ((DataTableGetBool(true, libCOUI_gf_CU_UnitProgressBar_IsWideBarString(lp_unit)) == true)) {
lv_progressBarWidth = (lv_c_WidthWide * ( (IntToFixed(lv_curValue) - IntToFixed(lv_minValue)) / (IntToFixed(lv_maxValue) - IntToFixed(lv_minValue)) ));
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:5607
while (auto39314A95_ai <= auto39314A95_ae) {
lv_indexCategory = CatalogEntryGet(c_gameCatalogArmyCategory, auto39314A95_ai);
if ((DataTableGetBool(false, (lv_indexCategory)) == true)) {
libA3DDD02B_gf_PP_SetArmyCategoryState(lv_indexCategory, c_armyCategoryStateUnlocked);
}