NPC Spell Learning (Nightly)
NOTE: This version is confirmed to work on Stable Elin EA 23.200.
A breakthrough in magical pedagogy is sweeping across North Tyris, and now, the knowledge sealed within spellbooks is no longer beyond the grasp of your companions.
This mod overhauls NPC spellcasting, allowing them to learn, cast, and manage spells just like you do. From a single gifted tome, a humble companion can grow into a formidable archmage.
Please also try out my companion mod, "Tome of Memory Loss" for organic way to remove these spells: https://steamcommunity.com/sharedfiles/filedetails/?id=3559347159
REQUIREMENTS:
• Stable Elin EA 23.200. This mod will hold new Nightly in case any breaking changes.
MISC COMPANION MODS:
• Player Gene System: https://steamcommunity.com/sharedfiles/filedetails/?id=3568525292
• CustomAIRedux: https://steamcommunity.com/sharedfiles/filedetails/?id=3561260845
• Tome of Memory Loss: https://steamcommunity.com/sharedfiles/filedetails/?id=3559347159
FEATURES:
• NPCs can now learn spells from spellbooks.
• Learned spells are added to the NPC’s combat ability pool and will be used intelligently in battle.
• By default, NPCs consume spell charges for learned spells, just like the player. Innate abilities are unaffected. When a spell’s charges are depleted, the NPC retains the spell at its current level, ready to be recharged.
• NPCs will only learn from spellbooks you directly give them, ensuring you have full control over their magical development (configurable).
• NPCs can consume all charges from a spellbook at once, rapidly mastering new spells in a single reading session (configurable).
• If configured, gifted NPCs have a chance to read spellbooks on their own during idle time, allowing them to learn and grow without constant micromanagement.
HOW IT WORKS:
Simply give a spellbook to an ally as a gift. They will read it and learn the spell. If you enable autonomous reading in the config, they will read gifted spellbooks from their inventory during idle time. Once learned, the spell becomes a permanent part of their arsenal. Keep them supplied with spellbooks to recharge their abilities and expand their power.
CONFIGURATION:
• EnableSpellCharges (true): If false, NPCs have unlimited casts for learned spells.
• PlayerOnlyLearning (true): If false, NPCs can learn from any spellbook they find, not just gifted ones.
• AutonomousSpellbookReading (false): If true, NPCs have a 5% chance per turn during idle time to read a gifted spellbook.
• BulkLearning (true): If false, NPCs consume one charge per reading instead of all at once.
• AllowCursedSpellbooks (default: true): If true, NPCs will read gifted cursed spellbooks
Warning: This mod significantly changes game balance, as NPCs were originally intended to learn new abilities only from skill books and genes.