# Triggering Event Name
Grammar — Triggering event name
Flags —Native
|Function
Returns the name of the generic event in response to Generic Event.
Returns — string
native string EventGenericName();
# Supported triggers
- Generic Event — TriggerAddEventGeneric
# 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
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:2189
}
if ((EventGenericName() == libGame_gv_eventID_ArenaMode_Crowd_KillingSpree_Announce_C)) {
lv_playerIndex = libGame_gf_ArenaModeKillingSpreePlayer();
SoundPlayForPlayer(SoundLink("ArenaMode_Crowd_KillingSpree", -1), c_maxPlayers, PlayerGroupSingle(lv_playerIndex), 100.0, 0.0);
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:2194
}
if ((EventGenericName() == libGame_gv_eventID_ArenaMode_Crowd_Mayhem_Announce_C)) {
lv_playerIndex = libGame_gf_ArenaModeMayhemPlayer();
SoundPlayForPlayer(SoundLink("ArenaMode_Crowd_Mayhem", -1), c_maxPlayers, PlayerGroupSingle(lv_playerIndex), 100.0, 0.0);
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:2199
}
if ((EventGenericName() == libGame_gv_eventID_ArenaMode_Crowd_HotS_Announce_C)) {
lv_playerIndex = libGame_gf_ArenaModeHotSPlayer();
SoundPlayForPlayer(SoundLink("ArenaMode_Crowd_HOTS", -1), c_maxPlayers, PlayerGroupSingle(lv_playerIndex), 100.0, 0.0);
mods/heromods/alarak.stormmod — base.stormdata/LibHALA.galaxy:476
}
if ((EventGenericName() == "HeroKilled")) {
lv_deadUnitOwner = libGame_gf_HeroKilledPlayer();
lv_deadUnitLocation = libGame_gf_HeroKilledLocation();
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5749
// Automatic Variable Declarations
// Implementation
return DataTableGetInt(false, TriggerEventParamName(EventGenericName(), (lp_techLevelParameter)));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5755
// Automatic Variable Declarations
// Implementation
return DataTableGetInt(false, TriggerEventParamName(EventGenericName(), ("StetmannPowerTowerPlayer")));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5962
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "EventHero"));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5968
// Automatic Variable Declarations
// Implementation
return (DataTableGetString(false, TriggerEventParamName(EventGenericName(), "EventHeroInstance")));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5980
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "EventStructure"));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6371
auto43A95D7E_val = lp_unit;
if (auto43A95D7E_val == libCOMI_ge_CM_ZeratulProphecyEventUnits_ZeratulUnit) {
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "ZeratulEventUnit"));
}
else if (auto43A95D7E_val == libCOMI_ge_CM_ZeratulProphecyEventUnits_ArtifactUnit) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6374
}
else if (auto43A95D7E_val == libCOMI_ge_CM_ZeratulProphecyEventUnits_ArtifactUnit) {
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "ZeratulEventArtifactUnit"));
}
else {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6378
else {
}
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "ZeratulEventUnit"));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6384
// Automatic Variable Declarations
// Implementation
return DataTableGetInt(false, TriggerEventParamName(EventGenericName(), "ZeratulEventArtifactNumber"));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6390
// Automatic Variable Declarations
// Implementation
return DataTableGetInt(false, TriggerEventParamName(EventGenericName(), "ZeratulEventPlayer"));
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:206
// Automatic Variable Declarations
// Implementation
return DataTableGetString(false, TriggerEventParamName(EventGenericName(), "Cheat"));
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:212
// Automatic Variable Declarations
// Implementation
return DataTableGetInt(false, TriggerEventParamName(EventGenericName(), "Player"));
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:218
// Automatic Variable Declarations
// Implementation
return DataTableGetString(false, TriggerEventParamName(EventGenericName(), ("Param" + IntToString(lp_parameterIndex))));
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:224
// Automatic Variable Declarations
// Implementation
return DataTableGetInt(false, TriggerEventParamName(EventGenericName(), "ParamCount"));
}