API to allow mods to implement custom behavior when the player uses spell tomes, disabling the vanilla behavior of simply eating the book and instantly learning the spell.
An example implementation is included in the download (DontEatSpellTomes.esp and DEST_PlayerSpellLearningScript.psc). It simply registers the Papyrus event and teaches the spell to the player like in vanilla, but it does not remove the book. However, the commented out code in the script shows how the book could still be removed if we wanted to.
Frequently Asked Questions
Q: The example is a functional mod, right? Why do you call it an example? A: In short, it's not balanced. Keeping the spell tomes allows you to sell them back to merchants, so you can save money. It's a fine mod if you have self-control and only wish to keep your tomes around in a collection.