AddProcExt(Spawn: Entity, Int8: Type, Int8: DamageType, Float: Chance, Int8: HPRatio, Bool: BelowHealth, Bool: TargetHealth, Item: FromItem, Int8: UseAllSpellTargets)
Pre-Requisite(s)
- Must be called inside a Spell Script (Spell Proc), or the Item field must be populated for Item Proc.
Parameter(s)
Spawn: Entity - Spawn LUA Pointer of Player, NPC or Bot type only.
Int8: Type - ProcType
Int8: DamageType - DamageType
Float: Chance - 1-100 (%) chance of proc triggering.
Int8: HPRatio (OPTIONAL) - HP Ratio to trigger proc (percentage 1-100)
Bool: BelowHealth (OPTIONAL) - If the HPRatio should trigger below the health percentage (default is false).
Bool: TargetHealth (OPTIONAL) - Use the Target's health for the hp ratio (default is false).
Item: FromItem (OPTIONAL) - If not a Spell Script, Item must be supplied as the Item Proc.
Int8: UseAllSpellTargets (OPTIONAL) - If set to 1 in a Spell Script, will apply to all Spawn Targets in the Spell. Otherwise, default is only adding the proc to a single Spawn: Entity.
Return(s)
- None
Example(s)
TBD
Result
function proc_ext(Caster, Spawn, Type, DamageType, SpellDataArguments)
– do proc work
end
function proc_ext(Item, Caster, Spawn, Type, DamageType)
– do proc work
end
Additional Notes