OverrideSpellSelection
When the player selects a spell to be cast, we call this hook and it can return a list of spells that the player can choose from. Whatever the player chooses will become the actual spell that is cast.
Parameters
Parameter[1] = default title that will appear on the list. You can change this
Context
The Spell
Search Order
The spell the player initially selected and chose with the “CAST' option.
Return Value
If the script returns an empty string then the original spell selected by the player will be the spell that is actually cast. Otherwise, the return value should be a delimited list of spell's unique names. For example: “#Blue Haze#Red Roses#Green Grass”. These must be legitimate spell names or no spell whatsoever will be cast.