Difference between revisions of "LUA:SetSpellTriggerCount"

(Created page with "= LUA Functions: SetSpellTriggerCount() = Sets the amount of triggers on a spell. ==== Syntax ==== SetSpellTriggerCount(param1, param2) ==== Parameters ==== ; Required - ''pa...")
 
(No difference)

Latest revision as of 20:45, 17 March 2014

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.