# Run Trigger By Name

Grammar — Run t (check|Check/Ignore Conditions, wait|Wait/Don’t Wait until it finishes)
FlagsAction

Executes the specified trigger. If Trigger A calls “Run Trigger” to execute Trigger B, then Trigger A will not continue execution until either Trigger B returns, reaches the end of its actions, or reaches a “Wait” action. If Trigger B has a “Wait” action, and the Wait parameter of “Run Trigger” was set to Don’t Wait, then Trigger A will resume execution. If the Wait parameter was set to Wait, then Trigger A will not resume execution until Trigger B has completed or returned.

# Arguments

Returns — void

void libNtve_gf_TriggerExecuteByName(
	string lp_t,
	bool lp_check,
	bool lp_wait,
);

Category: Trigger / Basic

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:1018

        lv_script = UserDataGetString("PlayerPrestigeUpgradeSupplements", lp_upgradeSupplemental, "PostScript", 1);
        if ((lv_script != "")) {
            libNtve_gf_TriggerExecuteByName((lv_script + "_Func"), false, true);
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOOC.galaxy:1105

    lv_script = UserDataGetString("PlayerPrestige", lp_prestige, "ScriptName", 1);
    if ((lv_script != "")) {
        libNtve_gf_TriggerExecuteByName((lv_script + "_Func"), true, true);
    }

mods/warcoop/warcoopdata.sc2modbase.sc2data/TriggerLibs/WarCoopData.galaxy:380

    if ((lv_triggername != "")) {
        DataTableSetInt(false, ("Player"), lp_player);
        libNtve_gf_TriggerExecuteByName(lv_functionname, false, true);
    }