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”.
Search Order
The spell being cast.
Context
The spell
Attacker (A combatant)
Target (A combatant)
Parameters
Parameter 1 – The default title that will appear on the list. You can change this.
Parameter 5 – x-coordinate of target
Parameter 6 – y-coordinate of target
Parameter 7 – type of targeting 'M': map location 'C': combatant
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”.
Search Order
The spell being cast.
Context
Spell Context
Attacker Context (A combatant)
Target (A combatant)
Parameters
Parameter 1 – The default title that will appear on the list. You can change this.
Parameter 5 – The option chosen during the 'Override Spell Targeting' hook
Return Value
Ignored