• Tutorials

  • Home
  • SpellNumTargets

    When we need to know the number of targets a spell can affect, we call scripts by the name “SpellNumTargets”. If the scripts return any non-empty value then that value is used as the spell's number of targets. Otherwise we use the defaultvalue. The value can be any integer or fractional value such as "12" or "3.25".

    Parameters

    Parameter [5] = the number of targets as computed from the spell editor definition. This is the value that will be used if no script exists or the script returns an mpty value.

    Context

    Attacker - the character that cast the spell
    spell - the spell that is being cast