[Mod]Julan Ashlander Companion 2.0: Negative magicka
Used Version: OpenMW 0.33.0 release
Related official MW forum thread/post: http://forums.bethsoft.com/topic/1487274-relz-julan-ashlander-companion-20-thread-3/?p=23832269
Expected behaviour: Julan is regenerating magicka points over time or when you rest. Actual beaviour: Julan is "regenerating" negative magicka points, resulting to make it impossible for him to cast spells. Vanilla Morrowind behaviour: Works as expected.
Theory of misfunctional background: I'm not really a script expert and I didn't test it exhaustly, but my guess is it is related to the script KS_Jul_Restore "Begin KS_Jul_Restore
float ini_mag float max_mag float modifier float j_intelligence
If ( Menumode == 1 ) return endif
Set j_intelligence to ( ( GetConjuration + GetAlchemy + GetEnchant + GetSecurity + 80 ) / 4 ) SetIntelligence j_intelligence
Set ini_mag to ( GetMagicka ) Set max_mag to ( GetIntelligence * 3 ) Set modifier to ( ini_mag * 1.5 )
SetMagicka max_mag ModCurrentMagicka -999 ModCurrentMagicka modifier
StopScript KS_Jul_Restore
End"
"ModCurrentMagicka -999" seems to be used to set his current magicka to 0. However OpenMW seems to be functioning different from vanilla by allow CurrentMagicka to become negative. This effectly breaks the script. -> Not yet confirmed by mod author. But be warned this is my personal interpretation and I'm not experienced in Morrowind's scripting language. This needs to be confirmed by a person with deeper knowledge of scripting in vanilla/OpenMW first.
(RM-2158 from redmine: created on 2014-11-24 by Moritz P., , closed on 2014-11-29 by scrawl .)