# Effect History Entry Type

Grammar — Type of effect history history entry index
FlagsNative | 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 — History
  • int — Index

Returns — int<preset::EffectHistory>

native int EffectHistoryGetType(
	effecthistory inHistory,
	int inIndex,
);

Category: Effect History / Entries

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:1911


        }
        lv_effectType = EffectHistoryGetType(lv_effectHistory, lv_itEffectHistoryEntry);
        if ((lv_foundSpecialDamageEffect == true)) {
            lv_effectTypePreset = c_effectAmountDamaged;

mods/heroesdata.stormmodbase.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);