# Effect History Entry Amount As Integer
Grammar — Amount amount of effect history history entry index. total|Do/Do Not use total.
Flags —Native
|Function
# Arguments
effecthistory
— Historyint
— Indexint
<preset::EffectAmount> — Amountbool
<preset::Do_Do_Not_Option> — Total
Returns — int
native int EffectHistoryGetAmountInt(
effecthistory inHistory,
int inIndex,
int inAmount,
bool inTotal,
);
# 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:1933
}
lv_effectAmountShielded = EffectHistoryGetAmountInt(lv_effectHistory, lv_itEffectHistoryEntry, c_effectAmountBehaviorShield, false);
lv_effectAmount = EffectHistoryGetAmountInt(lv_effectHistory, lv_itEffectHistoryEntry, lv_effectTypePreset, false);
lv_effectAmountAttempted = EffectHistoryGetAmountInt(lv_effectHistory, lv_itEffectHistoryEntry, lv_effectTypePresetAttempted, false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:1934
lv_effectAmountShielded = EffectHistoryGetAmountInt(lv_effectHistory, lv_itEffectHistoryEntry, c_effectAmountBehaviorShield, false);
lv_effectAmount = EffectHistoryGetAmountInt(lv_effectHistory, lv_itEffectHistoryEntry, lv_effectTypePreset, false);
lv_effectAmountAttempted = EffectHistoryGetAmountInt(lv_effectHistory, lv_itEffectHistoryEntry, lv_effectTypePresetAttempted, false);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:1935
lv_effectAmountShielded = EffectHistoryGetAmountInt(lv_effectHistory, lv_itEffectHistoryEntry, c_effectAmountBehaviorShield, false);
lv_effectAmount = EffectHistoryGetAmountInt(lv_effectHistory, lv_itEffectHistoryEntry, lv_effectTypePreset, false);
lv_effectAmountAttempted = EffectHistoryGetAmountInt(lv_effectHistory, lv_itEffectHistoryEntry, lv_effectTypePresetAttempted, false);
}
if ((lv_effectAmount <= 0)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:9358
lv_dataAmountAttempted = EffectHistoryGetAmountFixed(lv_history, lv_itEntry, c_effectAmountDamageAttempted, false);
lv_dataAmountShielded = EffectHistoryGetAmountFixed(lv_history, lv_itEntry, c_effectAmountBehaviorShield, false);
lv_dataAmountInt = EffectHistoryGetAmountInt(lv_history, lv_itEntry, c_effectAmountDamaged, true);
lv_dataEffectRoot = EffectHistoryGetEffect(lv_history, lv_itEntry, c_effectHistoryEffectRoot);
lv_dataEffectCurrent = EffectHistoryGetEffect(lv_history, lv_itEntry, c_effectHistoryEffectCurrent);