# Value From Data Table (Trigger)

Grammarname from the scope|Global/Local data table
FlagsNative | Function

Returns a trigger 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 — trigger

native trigger DataTableGetTrigger(
	bool global,
	string name,
);

Category: Data Table / Load Value

# Examples

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:5702

    lib281DEC45_gv_zSS_ConvoActive = true;
    lib281DEC45_gv_zSS_LastScenePlayedFull = false;
    lv_callback = DataTableGetTrigger(true, (lib281DEC45_gv_zSS_ScriptedScenePrefix + (lp_scene)));
    if ((lv_callback == null)) {
        TextExpressionSetToken("Param/Expression/lib_281DEC45_7F4626A3", "A", StringToText(UserDataGetString("ScriptedScenes", lp_scene, "DisplayName", 1)));

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:8114

    }
    lib281DEC45_gv_zSSX_DebugStoryScene = lv_scene;
    lv_callback = DataTableGetTrigger(true, (lib281DEC45_gv_zSS_ScriptedScenePrefix + (lv_scene)));
    if ((lv_callback != null)) {
        lib281DEC45_gf_ZSS_DebugStoryCheatHide();

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4535

    }
    libVoiC_gf_PC_MovieStartRecording((lp_scene));
    lv_callback = DataTableGetTrigger(true, (libVCST_gv_pSC_ScriptedScenePrefix + (lp_scene)));
    TriggerExecute(lv_callback, true, true);
    libVoiC_gf_PC_MovieStopRecording();

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:3886

    }
    libComC_gf_NC_MovieStartRecording((lp_scene));
    lv_callback = DataTableGetTrigger(true, (libNCST_gv_nSC_ScriptedScenePrefix + (lp_scene)));
    TriggerExecute(lv_callback, true, true);
    libComC_gf_NC_MovieStopRecording();

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:205

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetTrigger(true, ("CT_SD_" + (lp_mutator)));
}

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:211

    // Automatic Variable Declarations
    // Implementation
    return DataTableGetTrigger(true, ("CT_IN_" + (lp_mutator)));
}

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:396

    lv_i = 1;
    for ( ; ( (auto3FA70E8E_ai >= 0 && lv_i <= auto3FA70E8E_ae) || (auto3FA70E8E_ai < 0 && lv_i >= auto3FA70E8E_ae) ) ; lv_i += auto3FA70E8E_ai ) {
        lv_trig = DataTableGetTrigger(true, ("EVENT_PLAYER_HERO_SKILL" + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:440

    lv_i = 1;
    for ( ; ( (autoCB994BCE_ai >= 0 && lv_i <= autoCB994BCE_ae) || (autoCB994BCE_ai < 0 && lv_i >= autoCB994BCE_ae) ) ; lv_i += autoCB994BCE_ai ) {
        lv_trig = DataTableGetTrigger(true, (lv_event + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:484

    lv_i = 1;
    for ( ; ( (auto37C7B10C_ai >= 0 && lv_i <= auto37C7B10C_ae) || (auto37C7B10C_ai < 0 && lv_i >= auto37C7B10C_ae) ) ; lv_i += auto37C7B10C_ai ) {
        lv_trig = DataTableGetTrigger(true, (lv_event + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:528

    lv_i = 1;
    for ( ; ( (auto327DDD55_ai >= 0 && lv_i <= auto327DDD55_ae) || (auto327DDD55_ai < 0 && lv_i >= auto327DDD55_ae) ) ; lv_i += auto327DDD55_ai ) {
        lv_trig = DataTableGetTrigger(true, (lv_event + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:572

    lv_i = 1;
    for ( ; ( (autoB399DBD2_ai >= 0 && lv_i <= autoB399DBD2_ae) || (autoB399DBD2_ai < 0 && lv_i >= autoB399DBD2_ae) ) ; lv_i += autoB399DBD2_ai ) {
        lv_trig = DataTableGetTrigger(true, (lv_event + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:617

    lv_i = 1;
    for ( ; ( (auto9BE3F3C0_ai >= 0 && lv_i <= auto9BE3F3C0_ae) || (auto9BE3F3C0_ai < 0 && lv_i >= auto9BE3F3C0_ae) ) ; lv_i += auto9BE3F3C0_ai ) {
        lv_trig = DataTableGetTrigger(true, (lv_event + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:670

    lv_i = 1;
    for ( ; ( (autoDE20ABD7_ai >= 0 && lv_i <= autoDE20ABD7_ae) || (autoDE20ABD7_ai < 0 && lv_i >= autoDE20ABD7_ae) ) ; lv_i += autoDE20ABD7_ai ) {
        lv_trig = DataTableGetTrigger(true, (lv_event + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:714

    lv_i = 1;
    for ( ; ( (auto43520F87_ai >= 0 && lv_i <= auto43520F87_ae) || (auto43520F87_ai < 0 && lv_i >= auto43520F87_ae) ) ; lv_i += auto43520F87_ai ) {
        lv_trig = DataTableGetTrigger(true, (lv_event + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:775

    lv_i = 1;
    for ( ; ( (auto1C0E63FF_ai >= 0 && lv_i <= auto1C0E63FF_ae) || (auto1C0E63FF_ai < 0 && lv_i >= auto1C0E63FF_ae) ) ; lv_i += auto1C0E63FF_ai ) {
        lv_trig = DataTableGetTrigger(true, (lv_event + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:819

    lv_i = 1;
    for ( ; ( (auto874622CD_ai >= 0 && lv_i <= auto874622CD_ae) || (auto874622CD_ai < 0 && lv_i >= auto874622CD_ae) ) ; lv_i += auto874622CD_ai ) {
        lv_trig = DataTableGetTrigger(true, (lv_event + "_Player_" + IntToString(lv_p) + "_Trig_" + IntToString(lv_i)));
        if ((TriggerIsEnabled(lv_trig) == true)) {
            TriggerExecute(lv_trig, true, false);