# Trigger Function Name

Grammar — Name of the script function for t
FlagsNative | Function

Returns the name of the script function defined for the given trigger.

# Arguments

  • trigger — Trigger

Returns — string

native string TriggerGetFunction(trigger t);

Category: Trigger / Basic

# Examples

campaigns/voidstory.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1119


    // Implementation
    lv_returnValue = DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)));
    return StringToInt(lv_returnValue);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1132


    // Implementation
    lv_returnValue = DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)));
    return StringToFixed(lv_returnValue);
}

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:1145


    // Implementation
    lv_returnValue = DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)));
    return lv_returnValue;
}

campaigns/voidstory.sc2campaignbase.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.sc2campaignbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.sc2data/LibNCMI.galaxy:2129


    // Implementation
    lv_returnValue = DataTableGetString(true, ("NS_" + TriggerGetFunction(lp_cheatTrigger)));
    return StringToInt(lv_returnValue);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:2141


    // Implementation
    lv_returnValue = DataTableGetString(true, ("NS_" + TriggerGetFunction(lp_cheatTrigger)));
    return StringToFixed(lv_returnValue);
}

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:2153


    // Implementation
    lv_returnValue = DataTableGetString(true, ("NS_" + TriggerGetFunction(lp_cheatTrigger)));
    return lv_returnValue;
}

mods/missionpacks/novacampaign.sc2modbase.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.sc2modbase.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));
            }