# Trigger Evaluation Count

Grammar — Number of times t has been evaluated
FlagsNative | Function

Returns the number of times the specified trigger has had its conditions evaluated.

# Arguments

  • trigger — Trigger

Returns — int

native int TriggerGetEvalCount(trigger t);

Category: Trigger / Basic

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1509

    }

    if ((TriggerGetEvalCount(TriggerGetCurrent()) == 0)) {
        SoundPlay(SoundLink("UI_ChallengeCountdown", -1), PlayerGroupAll(), 100.0, 0.0);
        TextTagCreate(StringExternal("Param/Value/15C552A2"), 24, UnitGetPosition(UnitFromId(1167)), 1.0, true, false, PlayerGroupAll());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1516

    }

    if ((TriggerGetEvalCount(TriggerGetCurrent()) == 1)) {
        SoundPlay(SoundLink("UI_ChallengeCountdown", -1), PlayerGroupAll(), 100.0, 0.0);
        TextTagCreate(StringExternal("Param/Value/E7BF84D7"), 24, UnitGetPosition(UnitFromId(1167)), 1.0, true, false, PlayerGroupAll());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1523

    }

    if ((TriggerGetEvalCount(TriggerGetCurrent()) == 2)) {
        TriggerEnable(TriggerGetCurrent(), false);
        VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(1167)), 5.0), 6.0, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2076

    // Conditions
    if (testConds) {
        if (!((TriggerGetEvalCount(TriggerGetCurrent()) == 0))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2mapMapScript.galaxy:1509

    }

    if ((TriggerGetEvalCount(TriggerGetCurrent()) == 0)) {
        SoundPlay(SoundLink("UI_ChallengeCountdown", -1), PlayerGroupAll(), 100.0, 0.0);
        TextTagCreate(StringExternal("Param/Value/15C552A2"), 24, UnitGetPosition(UnitFromId(1167)), 1.0, true, false, PlayerGroupAll());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2mapMapScript.galaxy:1516

    }

    if ((TriggerGetEvalCount(TriggerGetCurrent()) == 1)) {
        SoundPlay(SoundLink("UI_ChallengeCountdown", -1), PlayerGroupAll(), 100.0, 0.0);
        TextTagCreate(StringExternal("Param/Value/E7BF84D7"), 24, UnitGetPosition(UnitFromId(1167)), 1.0, true, false, PlayerGroupAll());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2mapMapScript.galaxy:1523

    }

    if ((TriggerGetEvalCount(TriggerGetCurrent()) == 2)) {
        TriggerEnable(TriggerGetCurrent(), false);
        VisRevealArea(gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(1167)), 5.0), 6.0, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:2076

    // Conditions
    if (testConds) {
        if (!((TriggerGetEvalCount(TriggerGetCurrent()) == 0))) {
            return false;
        }