# Value From Data Table (Dialog)
Grammar — name from the scope|Global/Local data table
Flags —Native
|Function
Returns a dialog 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 — int
<dialog>
native int DataTableGetDialog(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/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:2336
}
if (!((DataTableGetDialog(true, ("Shuttle_" + IntToString(UnitGetTag(EventUnitTargetUnit())))) == c_invalidDialogId))) {
return false;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2map — MapScript.galaxy:2336
}
if (!((DataTableGetDialog(true, ("Shuttle_" + IntToString(UnitGetTag(EventUnitTargetUnit())))) == c_invalidDialogId))) {
return false;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4340
// Implementation
if ((DataTableGetDialog(true, ("ProgressBar_" + IntToString((libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog)) + "_" + IntToString(UnitGetTag(lp_unit)))) != c_invalidDialogId)) {
TriggerDebugOutput(1, StringExternal("Param/Value/lib_VCUI_FB61F536"), true);
libVCUI_gf_DestroyProgressBarUnitOld(lp_unit);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4373
while ((lp_unit != null) && (lv_progressBarDialog != c_invalidDialogId)) {
libVCUI_gf_PU_UpdateProgressBarUnitOld(lp_unit);
lv_progressBarDialog = DataTableGetDialog(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
Wait(0.25, c_timeReal);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4400
// Implementation
lv_progressBarDialog = DataTableGetDialog(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
lv_progressBarProgressBar = libNtve_gf_ValueFromDataTableDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar));
lv_progressBarValue = libNtve_gf_ValueFromDataTableDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value));
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4475
// Implementation
lv_progressBarDialog = DataTableGetDialog(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
DialogSetVisible(lv_progressBarDialog, PlayerGroupAll(), lp_showHide);
libVCUI_gf_PU_UpdateProgressBarUnitOld(lp_unit);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4508
}
lv_progressBarDialog = DataTableGetDialog(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
if ((lv_progressBarDialog == c_invalidDialogId)) {
return ;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignUILib.galaxy:4513
}
lv_progressBarDialog = DataTableGetDialog(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
lv_progressBarProgressBar = libNtve_gf_ValueFromDataTableDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar));
lv_progressBarValue = libNtve_gf_ValueFromDataTableDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3421
// Implementation
if ((DataTableGetDialog(true, ("ProgressBar_" + IntToString((libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog)) + "_" + IntToString(UnitGetTag(lp_unit)))) != c_invalidDialogId)) {
TriggerDebugOutput(1, StringExternal("Param/Value/lib_COUI_FB61F536"), true);
libCOUI_gf_DestroyProgressBarUnitOld(lp_unit);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3454
while ((lp_unit != null) && (lv_progressBarDialog != c_invalidDialogId)) {
libCOUI_gf_CU_UpdateProgressBarUnitOld(lp_unit);
lv_progressBarDialog = DataTableGetDialog(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
Wait(0.25, c_timeReal);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3481
// Implementation
lv_progressBarDialog = DataTableGetDialog(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
lv_progressBarProgressBar = libNtve_gf_ValueFromDataTableDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar));
lv_progressBarValue = libNtve_gf_ValueFromDataTableDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3556
// Implementation
lv_progressBarDialog = DataTableGetDialog(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
DialogSetVisible(lv_progressBarDialog, PlayerGroupAll(), lp_showHide);
libCOUI_gf_CU_UpdateProgressBarUnitOld(lp_unit);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3589
}
lv_progressBarDialog = DataTableGetDialog(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
if ((lv_progressBarDialog == c_invalidDialogId)) {
return ;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:3594
}
lv_progressBarDialog = DataTableGetDialog(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Dialog));
lv_progressBarProgressBar = libNtve_gf_ValueFromDataTableDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar));
lv_progressBarValue = libNtve_gf_ValueFromDataTableDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value));