Dynamic Magicka Regeneration 2.1
Created by Duncan and Greevar


Contents
Description
Installation and use
Changes since 1.0
Changes since 2.0
Compatibility
Thanks

Description
This plugin adds a global script to the game which dynamically regenerates the players magicka. It does this by using the player's intelligence, willpower, restoration skill, mysticism skill, maximum magicka, magicka ratio, fatigue ratio, and health ratio. Here is the formula used:

skills = 20% intelligence + 20% willpower + 30% restoration skill + 30% mysticism skill
divisor = 401 - maximum magicka - (magicka ratio * 100)
health and fatigue factor = fatigue ratio * health ratio
update interval = 60 game seconds

regeneration amount per update interval = ( skills / divisor ) * health and fatigue factor


In other words, the amount of magicka regenerated is based on 20% intelligence, 20% willpower, 30% restoration, and 30% mysticism. This sum is divided by a value that decreases (making regeneration faster) based on your maximum magicka (the value used in the formula is capped at 300) and your current magicka ratio. This means that if you currently have very little magicka reserves, regeneration will be slower than if you have almost full magicka reserves. Another way to say that is if a character has 100 magicka, it will take longer to regenerate from 0 to 50 magicka than it will from 50 to 100 magicka. And higher maximum magicka (up to 300) also helps speed up regeneration.

Two examples
  • A character with 50 intelligence, 50 willpower, 50 restoration, 50 mysticism, and 50 maximum magicka it would take 314 minutes 28 seconds (5 hours 14 minutes 28 seconds) in game-time to regenerate from 0 to 50 magicka points, with regeneration being slower starting out or when the character has less magicka reserves.
  • A character with 100 intelligence, 100 willpower, 100 restoration, 100 mysticism, and 100 maximum magicka it would take 255 minutes 59 seconds (4 hours 15 mintues 59 seconds) in game-time to regenerate from 0 to 100 magicka, with regeneration being slower starting out or when the character has less magicka reserves.
The times stated in the examples above are only if the player's health and fatigue are at maximum. If the character's health is 50% of max, then it would take twice as long. If both the character's health and fatigue are at 50%, then it would take four times as long. If fatigue or health is at 0%, no magicka is regenerated.

This plugin handles magicka regeneration in place of the game default when sleeping or resting. However, instead of using the Until Healed button, select the number of hours you wish to sleep or rest. The Until Healed button will work, but much more time will pass than necessary.

A character born under the Atronarch sign, or if under the effects of the wombburn spell, will not be able to regenerate magicka.
Installation and use
  1. Clean your savegame of Dynamic Magicka Regeneration 1.0 or 1.1 (applies only to users of previous versions)

    1. Use the Morrowind Launcher and select Data Files.
    2. Deselect any previous version of Dynamic Magicka Regeneration.
    3. Run Morrowind.
    4. Load the savegame you want cleaned.
    5. Answer Yes to any errors encountered.
    6. Once the game is loaded, re-save. The savegame is now cleaned of a previous version of Dynamic Magicka Regeneration.

  2. Unzip the archive into Morrowind's data files folder.
  3. From the Morrowind Launcher, select the appropriate plugin to load: Either DynamicMagickaRegeneration-2.0.esp or DynamicMagickaRegeneration-2.0-Tribunal.esp.
If you're going to use the non-Tribunal version of this plugin with a savegame already in progress, travel to Seyda Neen to have the plugin activated.

Changes since 1.0
  • Instead of modifying the default global script, Main, I added an activator in the starting cell (Seyda Neen). This means that if you use the non-Tribunal version and have a game in progress, you'll have to travel to Seyda Neen to activate the plugin.
  • Made it so that regeneration is based on game-time instead of real-time.
  • Doubled regeneration time.
  • Increased the maximum magicka cap used in the formula to 300.
  • When you sleep or rest, this plugin will regenerate magicka instead of the game default.
  • When you wait, this plugin will regenerate magicka.

 

Changes since 2.0

  • Added a new leveled bonus to the regeneration script (by Greevar).

 

Compatibility

This plugin is compatible with all other plugins. However, if you're using another plugin that has some sort of magicka regeneration you might get some strange effects, but no errors.

Thanks

Thanks to Duncan for creating a great mod and for allowing me to release this updated version.