# Effect History Count
Grammar — Count of Effect History history
Flags —Native
|Function
Returns the number of entries in the specified Effect History. Use Effect History Of Unit to get an Effect History.
# Arguments
effecthistory
— History
Returns — int
native int EffectHistoryCount(effecthistory inHistory);
# Related
Category: Effect History
- Effect History Count —
int
— EffectHistoryCount - Effect History Of Unit —
effecthistory
— UnitEffectHistory
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:1888
libGame_gf_DeathRecapClearDeathRecapForPlayer(lp_deadPlayer);
lv_effectHistory = UnitEffectHistory(lp_playerHero, libGame_gv_deathRecap_MaxEffectsInHistory_C);
lv_effectHistoryCount = EffectHistoryCount(lv_effectHistory);
libGame_gv_deathRecap_DeathData[lp_deadPlayer].lv_deadHeroMaxHealth = FixedToInt(UnitGetPropertyFixed(lv_deadHeroUnit, c_unitPropLifeMax, c_unitPropCurrent));
auto9091C3BB_ae = lv_effectHistoryCount;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:9347
lv_unit = UnitGroupUnit(UnitGroupSelected(1), 1);
lv_history = UnitEffectHistory(lv_unit, 0);
lv_count = EffectHistoryCount(lv_history);
TriggerDebugOutput(1, StringExternal("Param/Value/lib_UIUI_983E27A4"), true);
TriggerDebugOutput(1, UnitTypeGetName(UnitGetType(lv_unit)), true);