Show

A quest "myopia"

A script attached to a Player Alias that does the trick "myopiaPlayerAlias"

An Armor "myopiaGlasses" with its Armor Addon

An ImageSpaceModifier "myopiaImageSpace"

A FormList "MyopiaGlassesList"

A FormList "MyopiaForceSpellsList"

The mod is very basic.It has just 6 important objects:The script starts the quest after a random time of a few minutes.After that, the ImageSpaceModifier is applied. The image space will blur and double the vision.Just after a temporary objective is displayed to tell that you have myopia.After a minute a real objective is displayed to find some glasses.The glasses are put in 3 inns (Bannered Mare, Winking Skeever, Bee and Barb)When the item is got (the glasses) the next stage is set and the previous objective is completed. How?There is a function in the script for the event OnItemAdded()Inside this function, it is checked if the quest is in the correct stage (if not nothing is done), and then it is checked if the item that is got is inside the FormListIn case the item is in the form list (that contains just the Glasses armor right now), the stage is increased and the new objective is displayed.At this point every time the player will equip an item, it is checked if the item is in the form list.In case it is, the ImageSpace is removed.In case the actor removes an item and the item is in the form list (so they are glasses), the image space is re-applied.To add new glasses just add them to the FormList and it will work as is. If you want to edit the quest objective targets, just replace the items in the aliases of the quest.The glasses included with the mod are using the slot 55.In case you have the modsor, then the glasses they add are automatically added to theFormList.In version 1.1, if you are hit with a strong weapon (yeah, no daggers or arrows) or by a Fus-Ro-Dah spell, you have 5% probability to lose the glasses (they will fall on the ground.)This can be disabled by using the console command: set MyopiaLoseGlassesOnHit to 0In case you want to add other spells that may make you lose the glasses on hit, just add them to the FormList MyopiaForceSpellsList.yes, just add them to the FormList "MyopiaGlassesList" and they will work right away.yes, just add it to the FormList "MyopiaForceSpellsList" and they will work right away.Use the console command and set the value of the GlobalVariable MyopiaLoseGlassesOnHit to 0