No categories assigned
LUA:SetSpellTriggerCount
- Last edited 11 years ago by I need to Update My Profile
LUA Functions: SetSpellTriggerCount()
Sets the amount of triggers on a spell.
Syntax
SetSpellTriggerCount(param1, param2)
Parameters
- Required - param1 (int16)
- param1 is the amount of triggers this spell should have
- Optional - param2 (int8)
- param2 if set as 1 the spell will cancel automatically after all triggers have been removed from the spell
Usage
function cast(Caster, Target)
SetSpellTriggerCount(3, 1)
end
This will add 3 triggers to the spell, and if all 3 triggers are removed the spell will then cancel.