# Value From Data Table (Text)
Grammar — name from the scope|Global/Local data table
Flags —Native
|Function
Returns a text 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 — text
native text DataTableGetText(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
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:2587
// Automatic Variable Declarations
// Implementation
return DataTableGetText(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Name_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:2593
// Automatic Variable Declarations
// Implementation
return DataTableGetText(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Suffix_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:2629
// Automatic Variable Declarations
// Implementation
return DataTableGetText(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_Tooltip_C));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:9362
lv_name = TextReplaceWord(lv_name, StringExternal("Param/Value/lib_COMI_F72DF09B"), IntToText(lv_progress), c_stringReplaceAll, c_stringCase);
lv_name = TextReplaceWord(lv_name, StringExternal("Param/Value/lib_COMI_7AA38B9D"), IntToText(libCOMI_gf_MissionObjectiveItemCountCoop(lp_objective)), c_stringReplaceAll, c_stringCase);
lv_name = TextReplaceWord(lv_name, StringExternal("Param/Value/lib_COMI_9C9EACB0"), DataTableGetText(true, (libCOOC_gf_CS_ObjectiveTableString(lp_objective) + "_" + "CustomToken")), c_stringReplaceAll, c_stringCase);
if ((libCOOC_gf_MissionObjectiveStateCheck(lp_objective, libCOOC_ge_MissionObjectiveState_Completed) == true)) {
TextExpressionSetToken("Param/Expression/lib_COMI_BEDEFD56", "A", lv_name);