Help needed with script (Magicka Regen)

Post » Mon Jan 06, 2014 1:11 pm

Hello,

I have been trying to find a mod which can reduce the Magicka Regenation for the player, for the longest time. Yesterday I came across the mod Morrowindized Magicka by Seikima from 2007 which is awesome however the actual regeneration is way too low unfortunately. I have tried editing the script at the top where is says:

set magickaRegenRate to 0.00008

...but nothing happens in-game when I set this higher.

Can someone who understand scripts please take a look at this script and tell me what number I have to edit?

scn MorrowindizedMagickashort setupfloat maxMagickafloat currentMagickafloat currentWillpowerfloat gainedMagickashort wasSleepingshort isSleepingshort hoursSleptshort lastHourfloat magickaRegenRatefloat fQuestDelayTimebegin GameMode	if (setup == 0)		set setup to 1		if (GetOBSEVersion < 7)			Messagebox "Morrowindized Magicka (Regen) requires OBSE v0007."		endif		SetNumericGameSetting fMagickaReturnBase 0		set magickaRegenRate to 0.00008	endif		if (MenuMode == 0)		set fQuestDelayTime to 0.1		if (GetGameSetting fMagickaReturnMult != magickaRegenRate)			SetNumericGameSetting fMagickaReturnMult magickaRegenRate		endif	elseif (MenuMode 1012 == 1)		if (GetGameSetting fMagickaReturnMult > 0)			SetNumericGameSetting fMagickaReturnMult 0		endif	endif		endbegin MenuMode 1012	set fQuestDelayTime to 0.001	if (GetGameSetting fMagickaReturnMult > 0)		SetNumericGameSetting fMagickaReturnMult 0	endif	set currentMagicka to Player.GetAV Magicka	set maxMagicka to Player.GetBaseAV Magicka	set currentWillpower to Player.GetAV Willpower	if (currentMagicka < maxMagicka) && (Player.HasMagicEffect STMA == 0)		if (IsTimePassing == 1)			if (wasSleeping == 0)				if (GameHour < 1)					set lastHour to (GameHour + 23)				set hoursSlept to 0				else					set lastHour to GameHour					set hoursSlept to 1				endif				set wasSleeping to 1				if (IsPCSleeping == 1)					set isSleeping to 1				endif			elseif ((GameHour >= lastHour + 1) || ((GameHour < 1) && (lastHour >= 23) && (GameHour >= lastHour - 23)))				set lastHour to GameHour				set hoursSlept to (hoursSlept + 1)			endif		elseif (wasSleeping == 1)				if (isSleeping == 1)					set gainedMagicka to (hoursSlept * currentWillpower / 3)					set isSleeping to 0				else					set gainedMagicka to (3600 / (30) * 0.01 * magickaRegenRate * currentWillpower * maxMagicka * hoursSlept)				endif				Player.ModAV2 Magicka gainedMagicka				set wasSleeping to 0		endif	endifend 
User avatar
darnell waddington
 
Posts: 3448
Joined: Wed Oct 17, 2007 10:43 pm

Return to IV - Oblivion