Skyrim
0 of 0

File information

Last updated

Original upload

Created by

Trigger_Death

Uploaded by

TriggerDeath

Virus scan

Safe to use

About this mod

Tracks the number of ore veins mined in Skyrim.

Requirements
Permissions and credits
Changelogs


Description

This mod adds a stat for tracking ore veins mined. It can be found in the statistics menu in the crafting section. The statistic will not count any ore veins you mined before adding this mod.
This is a statistic that I always thought the game needed. It's a slow and unlucrative process and there's no reason to do it late-game when you can buy the ore in bulk. At least now you can get the satisfaction of knowing you incremented a counter in the game while wasting 10 whole seconds for 9 gold worth of iron ore. This is my first uploaded mod so tell me what you think.



Requirements

❖ Skyrim Update 1.9
❖ Skyrim Script Extender (SKSE)



Compatibility

This mod modifies the script used by every ore vein for mining. Any mod that changes mining functionality will most likely not work with this.

For safety reasons I'd recommend a new game or loading a game saved in an inside location with no ore veins. However, this may no longer be an issue after further fixes and testing, especially after the latest version.
If you have an issue where the statistic hasn't progressed past 0 after mining any ore veins, please let me know. This issue may be permanent and would require loading a previous save before installing the mod.



Change Log

Version 1.1 (2/8/2015)
    ❖ Any ore vein using the script will now increment the counter.
    ❖ There is no longer a separate mod for Dragonborn DLC.
    ❖ If you are switching from the Dragonborn version to version 1.1, and you want to keep any ore veins you've mined, write down your statistic and follow the directions below.
    ❖ It's now possible for other mods to add compatibility for Ore Veins Mined.



Changing the Statistic

In order to change the value of the statistic, open up the console with ` and type the following command:
set StatOreVeinsMined to newValue
Where newValue is replaced by the number of ore veins mined.



Special Thanks

Special thanks go to IsharaMeradin for writing an improvement to the script to make it compatible with anything using the ore mining script, and creating a way to add compatibility for this mod to other mods!



Adding Compatibility to your Mod

Adding compatibility to your mod is as simple as pasting this function into your ore mining script. After that, all you need to do is call OreVeinsMinedTracker() when the ore vein is depleted. Calling it during depletion is important since users can cancel and remine ore veins. If the user does not have this mod installed, the only side effect will be a harmless error in the Papyrus log.

function OreVeinsMinedTracker()
    if Game.GetFormFromFile(0x00000D62, "Ore Veins Mined.esp")
        GlobalVariable StatOreVeinsMined = Game.GetFormFromFile(0x00000D62, "Ore Veins Mined.esp") as GlobalVariable
        StatOreVeinsMined.SetValueInt(StatOreVeinsMined.GetValueInt() + 1)
    endIf
endFunction