Override Spell Selection


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. This hook can also override the title line on the list of spells that it provides





Search Order

  1. The spell the player initially selected and chose with the “CAST' option.

Context

  1. The spell

Parameters

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.