Skyrim
0 of 0

File information

Last updated

Original upload

Created by

CPUll

Uploaded by

CPU

Virus scan

Safe to use

About this mod

What about your dragonborn has vision problems? What if it has myopia?
Use this small mod and you will need to use your glasses when fighting dragons.

Permissions and credits
This mod is a very simple and basic mod, it blurs the vision of the player like it has myopia.
The player needs to wear glasses to see correctly.

The mod is very small, and should not conflict with anything.
It is safe to remove it because it has no active scripts.

There is a super small quest to just explain the problem that will happen a few minutes after you start the game with this mod enabled.
Then you have to get some glasses (and there are three pairs on three inns, with the full compass markers to find them.)

How the mod works and how you can extend it
Spoiler:  
Show

The mod is very basic.

It has just 6 important objects:
  • 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 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 FormList
In 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 mods ImoMegane or Dwemer Goggles & Scouter, 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 0
 
In case you want to add other spells that may make you lose the glasses on hit, just add them to the FormList MyopiaForceSpellsList.
 
Can I add my dwemer-lore-friendly glasses to the mod?
yes, just add them to the FormList "MyopiaGlassesList" and they will work right away.
 
Can I add my super-strong-spell to lose the glasses?
yes, just add it to the FormList "MyopiaForceSpellsList" and they will work right away.
 
I don't want to lose the glasses in combat!
Use the console command and set the value of the GlobalVariable MyopiaLoseGlassesOnHit to 0



CPU