# Effect History Entry Type
Grammar — Type of effect history history entry index
Flags —Native
|Function
Returns the type of effect that was logged in the Effect History at the specified Index. The type for the effect is set in the effect data in the Caster History field.
# Arguments
effecthistory
— Historyint
— Index
Returns — int
<preset::EffectHistory>
native int EffectHistoryGetType(
effecthistory inHistory,
int inIndex,
);
# Related
Category: Effect History / Entries
- Effect History Entry Ability —
string
<gamelink::Abil> — EffectHistoryGetAbil - Effect History Entry Amount —
fixed
— EffectHistoryGetAmountFixed - Effect History Entry Amount As Integer —
int
— EffectHistoryGetAmountInt - Effect History Entry Effect —
string
<gamelink::Effect> — EffectHistoryGetEffect - Effect History Entry Time —
fixed
— EffectHistoryGetTime - Effect History Entry Type —
int
<preset::EffectHistory> — EffectHistoryGetType - Effect History Entry Unit —
unit
— EffectHistoryGetUnitByLocation - Effect History Entry Weapon —
string
<gamelink::Weapon> — EffectHistoryGetWeapon
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:1911
}
lv_effectType = EffectHistoryGetType(lv_effectHistory, lv_itEffectHistoryEntry);
if ((lv_foundSpecialDamageEffect == true)) {
lv_effectTypePreset = c_effectAmountDamaged;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:9362
lv_dataEffectCurrent = EffectHistoryGetEffect(lv_history, lv_itEntry, c_effectHistoryEffectCurrent);
lv_dataTime = EffectHistoryGetTime(lv_history, lv_itEntry);
lv_dataType = EffectHistoryGetType(lv_history, lv_itEntry);
lv_dataUnit = EffectHistoryGetUnitByLocation(lv_history, lv_itEntry, c_effectUnitCaster);
lv_dataWeapon = EffectHistoryGetWeapon(lv_history, lv_itEntry);