# Trigger Evaluation Count
Grammar — Number of times t has been evaluated
Flags —Native
|Function
Returns the number of times the specified trigger has had its conditions evaluated.
# Arguments
trigger
— Trigger
Returns — int
native int TriggerGetEvalCount(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/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2map — MapScript.galaxy:2076
// Conditions
if (testConds) {
if (!((TriggerGetEvalCount(TriggerGetCurrent()) == 0))) {
return false;
}