You use the Object Editor on Frozen Throne and the Unit/Spells Editors on Reign of Chaos. Whatever the case, the steps are largely the same. You create new spells based on default spells and modify them, or modify existing spells. You then create a hero based on a default hero or modify an existing hero, and modify its spells attribute, adding or replacing your created spells.*