Fallout 4
0 of 0

File information

Last updated

Original upload

Created by

neeher

Uploaded by

neeher

Virus scan

Safe to use

About this mod

Locked containers now factor in your level of Luck as well as the difficulty of the lock to determine what kind of loot can be found in the container.

Permissions and credits
Mirrors
Donations
Simple mod. I searched and couldn't find another mod that does this so I made one.

What it does:
By default, when you have a locked container the game determines the difficulty of the lock and then adds extra loot to the container. I rewrote this script to also include the player's Luck stat to determine what loot gets thrown in there. So now, whenever you come across a locked safe or something, it will run a short lottery that has greater loot and odds the higher your Luck stat (up to 10, anything higher than that is treated like 10). Nothing too crazy but I figured Luck should play a roll when opening up a container that you otherwise don't know the contents of until you unlock it.

Note that this mod will only take effect on containers that either haven't been loaded by your game before, or have since been reset as they naturally do every so often. This is a mod that can go unnoticed in your playthrough, however sometimes you may encounter something like caps showing up in a locked ammo box. That's a clear sign that the mod is installed properly.

Installation:
There are 3 files to choose from.

Loose file: Drop the zipped Scripts folder into your Data folder to install. Delete the file lockExtraLootSCRIPT.pex to uninstall. I recommend this option as it is simplest to install and uninstall. Your game would of course have to have loose file loading enabled.

ESL file: Has no impact on load order total or form count. The ESL is empty, it's sole purpose is to load the archive.

ESP file: For those of you that want an archive but no ESL. The ESP is empty, it's sole purpose is to load the archive.

Compatibility:
This mod modifies the lockExtraLootSCRIPT.pex script. That's about it. Won't work with mods that modify the same script. Depending on load order, it may lol. Will work with other mods that reference this script as it is a common vanilla script attached to many containers such as safes, ammo boxes, medkits, and trunks and stuff. This includes those huge DLC mods.

Future updates?
I'm thinking that maybe I will add different versions of this mod for those who want lower or higher chances of better loot from containers. We'll see lol. Also may need to tweak the luck chances based off feedback or my own testing going forth.