# Trigger Function Name
Grammar — Name of the script function for t
Flags —Native
|Function
Returns the name of the script function defined for the given trigger.
# Arguments
trigger
— Trigger
Returns — string
native string TriggerGetFunction(trigger t);
# Related
Category: Trigger / Basic
- Create Trigger From Trigger
- New Trigger —
trigger
— TriggerCreate - Run Trigger —
void
— TriggerExecute - Run Trigger By Name —
void
— libNtve_gf_TriggerExecuteByName - Stop Trigger —
void
— TriggerStop - Destroy Trigger —
void
— TriggerDestroy - Turn Trigger On/Off —
void
— TriggerEnable - Trigger Is On —
bool
— TriggerIsEnabled - Current Trigger —
trigger
— TriggerGetCurrent - Wait For Trigger —
void
— TriggerWaitForTrigger - Current Trigger Thread SetFlags —
void
— TriggerCurrentTriggerThreadSetFlags - Allow Trigger To Be Skipped —
void
— TriggerSkippableBegin - Player Skips Trigger —
void
— TriggerAddEventTriggerSkipped - Register Events — macro
- Send Generic Event —
void
— TriggerSendEvent - Generic Event —
void
— TriggerAddEventGeneric - Generic Event Parameter —
string
— TriggerEventParamName - Triggering Event Name —
string
— EventGenericName - Triggering Trigger —
trigger
— EventTrigger - Trigger Active Count —
int
— TriggerActiveCount - Trigger Execution Count —
int
— TriggerGetExecCount - Trigger Evaluation Count —
int
— TriggerGetEvalCount - Trigger Function Name —
string
— TriggerGetFunction - Evaluate Trigger Conditions —
bool
— TriggerEvaluate
# Examples
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1049
libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex01].lv_titleText = TextExpressionAssemble("Param/Expression/lib_VCMI_345DFBBA");
TextExpressionSetToken("Param/Expression/lib_VCMI_E29A6B4F", "Desc Text", libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex01].lv_description);
TextExpressionSetToken("Param/Expression/lib_VCMI_E29A6B4F", "trigname", StringToText(TriggerGetFunction(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex01].lv_trigger)));
TextExpressionSetToken("Param/Expression/lib_VCMI_E29A6B4F", "command", StringToText(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex02].lv_titleString));
libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex01].lv_description = TextExpressionAssemble("Param/Expression/lib_VCMI_E29A6B4F");
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1056
libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex02].lv_titleText = TextExpressionAssemble("Param/Expression/lib_VCMI_60CA52DA");
TextExpressionSetToken("Param/Expression/lib_VCMI_B57553DC", "Desc Text", libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex02].lv_description);
TextExpressionSetToken("Param/Expression/lib_VCMI_B57553DC", "trigname", StringToText(TriggerGetFunction(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex02].lv_trigger)));
TextExpressionSetToken("Param/Expression/lib_VCMI_B57553DC", "command", StringToText(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex01].lv_titleString));
libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex02].lv_description = TextExpressionAssemble("Param/Expression/lib_VCMI_B57553DC");
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1119
// Implementation
lv_returnValue = DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)));
return StringToInt(lv_returnValue);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1132
// Implementation
lv_returnValue = DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)));
return StringToFixed(lv_returnValue);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1145
// Implementation
lv_returnValue = DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)));
return lv_returnValue;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6511
lv_editBoxValue = libNtve_gf_DialogItemEditValue(libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_editBoxDialog, 1);
if ((lv_editBoxValue != "")) {
DataTableSetString(true, ("PS_" + TriggerGetFunction(libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_trigger)), lv_editBoxValue);
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6566
if ((StringCase(libVCMI_gv_pM_MissionCheat_Cheats[lv_iter].lv_titleString, false) == StringCase(StringWord(EventChatMessage(false), 1), false))) {
if ((libVCMI_gv_pM_MissionCheat_Cheats[lv_iter].lv_uIType == libVCMI_ge_MissionCheatUIType_ButtonEditBoxCombo)) {
DataTableSetString(true, ("PS_" + TriggerGetFunction(libVCMI_gv_pM_MissionCheat_Cheats[lv_iter].lv_trigger)), StringWord(EventChatMessage(false), 2));
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2061
libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex01].lv_titleText = TextExpressionAssemble("Param/Expression/lib_NCMI_345DFBBA");
TextExpressionSetToken("Param/Expression/lib_NCMI_E29A6B4F", "Desc Text", libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex01].lv_description);
TextExpressionSetToken("Param/Expression/lib_NCMI_E29A6B4F", "trigname", StringToText(TriggerGetFunction(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex01].lv_trigger)));
TextExpressionSetToken("Param/Expression/lib_NCMI_E29A6B4F", "command", StringToText(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex02].lv_titleString));
libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex01].lv_description = TextExpressionAssemble("Param/Expression/lib_NCMI_E29A6B4F");
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2068
libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex02].lv_titleText = TextExpressionAssemble("Param/Expression/lib_NCMI_60CA52DA");
TextExpressionSetToken("Param/Expression/lib_NCMI_B57553DC", "Desc Text", libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex02].lv_description);
TextExpressionSetToken("Param/Expression/lib_NCMI_B57553DC", "trigname", StringToText(TriggerGetFunction(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex02].lv_trigger)));
TextExpressionSetToken("Param/Expression/lib_NCMI_B57553DC", "command", StringToText(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex01].lv_titleString));
libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex02].lv_description = TextExpressionAssemble("Param/Expression/lib_NCMI_B57553DC");
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2129
// Implementation
lv_returnValue = DataTableGetString(true, ("NS_" + TriggerGetFunction(lp_cheatTrigger)));
return StringToInt(lv_returnValue);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2141
// Implementation
lv_returnValue = DataTableGetString(true, ("NS_" + TriggerGetFunction(lp_cheatTrigger)));
return StringToFixed(lv_returnValue);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:2153
// Implementation
lv_returnValue = DataTableGetString(true, ("NS_" + TriggerGetFunction(lp_cheatTrigger)));
return lv_returnValue;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:5451
lv_editBoxValue = libNtve_gf_DialogItemEditValue(libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_editBoxDialog, 1);
if ((lv_editBoxValue != "")) {
DataTableSetString(true, ("NS_" + TriggerGetFunction(libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_trigger)), lv_editBoxValue);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:5507
if ((StringCase(libNCMI_gv_NM_MissionCheat_Cheats[lv_iter].lv_titleString, false) == StringCase(StringWord(EventChatMessage(false), 1), false))) {
if ((libNCMI_gv_NM_MissionCheat_Cheats[lv_iter].lv_uIType == libNCMI_ge_MissionCheatUIType_ButtonEditBoxCombo)) {
DataTableSetString(true, ("NS_" + TriggerGetFunction(libNCMI_gv_NM_MissionCheat_Cheats[lv_iter].lv_trigger)), StringWord(EventChatMessage(false), 2));
}