# Value From Data Table (Text)

Grammarname from the scope|Global/Local data table
FlagsNative | 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> — Scope
  • string — Name

Returns — text

native text DataTableGetText(bool global, string name);

Category: Data Table / Load Value

# Examples

mods/heroesdata.stormmodbase.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.stormmodbase.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.stormmodbase.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.sc2modbase.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);