OverrideSpellTargeting
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”.
Parameters
Parameter[1] = default title that will appear on the list - this can be changed
Parameter[5] = X coordinate of target
Parameter[6] = Y coordinate of target
Parameter[7] = type of target: "M" for map location, "C" for combatant
Context
The Spell
Attacker (a combatant)
Caster (a combatant)
Search Order
The spell being cast.
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”.