# Value From Data Table (Trigger)
Grammar — name from the scope|Global/Local data table
Flags —Native
|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> — Scopestring
— Name
Returns — trigger
native trigger DataTableGetTrigger(
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/swarmstoryutil.sc2mod — base.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.sc2mod — base.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.sc2campaign — base.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.sc2mod — base.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.sc2mod — base.sc2data/LibCOMU.galaxy:205
// Automatic Variable Declarations
// Implementation
return DataTableGetTrigger(true, ("CT_SD_" + (lp_mutator)));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:211
// Automatic Variable Declarations
// Implementation
return DataTableGetTrigger(true, ("CT_IN_" + (lp_mutator)));
}
mods/warcoop/warclassic.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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.sc2mod — base.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);