Override Spell Targeting


When the player selects a spell to be cast and selects a target (either a map location or a combatant), we call this hook named “OverrideSpellTargeting” and it can return a title and a list of options that the player can choose from. Whatever the player chooses will be provided the the hook named “ProcessSpellTargetOverride”.




Hook OverrideSpellTargeting

Search Order

  1. The spell being cast.

Context

  1. The spell

  2. Attacker (A combatant)

  3. Target (A combatant)

Parameters

Return Value

If the script returns an empty string then no options will be provided to the player. Otherwise, the return value should be a delimited list of options. For example: “#Yes#No#Maybe”.



Hook ProcessSpellTargetOverride



Search Order

    The spell being cast.

Context

Parameters

Return Value

Ignored