0 of 0

File information

Last updated

Original upload

Created by

FUgius

Uploaded by

EkFugi

Virus scan

Safe to use

About this mod

Fixes a bug linked to sun damages. When you are a vampire or you wear the mantle of woe, no matter how much health regen you have, fast travelling or waiting in the sun kills you. Not anymore.

Requirements
Permissions and credits
Changelogs
Fixes a bug linked to sun damages. When you are a vampire or you wear the mantle of woe, no matter how much health regen you have, fast travelling or waiting in the sun kills you. Not anymore.

Fugius Sun Damage Fix
How it works (mantle of woe) : 
Adds a new copy of the mantle without the sun damage enchant. Every times you enter a menu, your mantle of woe is replaced by this harmless copy. Since the game considers you are in a menu when you wait/rest/travel, you won't die anymore. Not verry clean but the possibilities offered by morrowind mod editor were limited.

How it works (vampirism) : 
Split the vampirism spells effect in two part : sun damage effect vs everything else. Every times you enter a menu, sun damage is removed. Since the game considers you are in a menu when you wait/rest/travel, you won't die anymore. Not verry clean but the possibilities offered by morrowind mod editor were limited.

Possible bug : 
I didn't try to cure vampirism. If you still take damages after the cure, simply open and close a menu (2x right click), it should fix the issue.

Compatibility issues : 
The mod should work with any mod that doesn't touch to the mantle of woe or to vampirism

==============================================================================================================================
Scripts [Code balise from Nexus looks broken, sorry]

Mantle of woe : the one equiped while playing
begin z_fix_sun_damage_mow
Short done
Set done to 0
if ( MenuMode == 1 )
if ( player->HasItemEquipped, "mantle of woe" == 1 )
if ( done == 0 )
Set done to 1
player->StartScript, "zRemoveMantle"
endif
endif
else
Set done to 0
endif
end
Begin zRemoveMantle
StopScript, "zRemoveMantle"
Short n
Set n to ( player->GetItemCount, "mantle of woe" )
If ( n > 0 )
player->RemoveItem, "mantle of woe", n

player->AddItem, "mantle of woe temp", 1
player->Equip, "mantle of woe temp"
Endif
End

Mantle of woe (alternate) : the one equiped while in menus
begin z_fix_sun_damage_mowt
Short done
Set done to 0
if ( MenuMode == 0 )
if ( player->HasItemEquipped, "mantle of woe temp" == 1 )
if ( done == 0 )
Set done to 1
player->StartScript, "zRemoveMantle_temp"
endif
endif
else
Set done to 1
endif
end

Begin zRemoveMantle_temp
StopScript, "zRemoveMantle_temp"
Short n
Set n to ( player->GetItemCount, "mantle of woe temp" )
If ( n > 0 )
player->RemoveItem, "mantle of woe temp", n
player->AddItem, "mantle of woe", 1
player->Equip, "mantle of woe"
Endif
End


Vampirism (startup script) : 
begin z_fix_sun_damage_vamp
Short done
Set done to 0
if ( MenuMode == 1 )
if ( PCVampire > 0 )
if ( done == 0 )
Set done to 1
player->RemoveSpell, "vamp sd"
endif
endif
else
Set done to 0
if ( PCVampire > 0 )
player->AddSpell, "vamp sd"
else
player->RemoveSpell, "vamp sd"
endif
endif
end