Fallout New Vegas
0 of 0

File information

Last updated

Original upload

Created by

KKSensory

Uploaded by

KKSensory

Virus scan

Safe to use

Tags for this mod

About this mod

DYNLoot is an extensible NVSE-based dynamic loot placement system. It places loot both in the world and in containers.

Requirements
Permissions and credits
Changelogs
Donations


DYNLoot is an extensible NVSE-based dynamic loot placement system. It places loot both in the world and in containers. For placing loot in the real world, it looks for "junk" items set by the implementation and replaces them based on a probability also set by the implementation.

This mod is implicitly compatible with any new area added by mods, as well as TTW.

This system allows you to easily add items to the world without manually overwriting or adding to any form lists or leveled items in a way that allows more control over item probabilities than the vanilla leveled item system.

I have provided a "Starter Pack" for DYNLoot in the downloads section which demonstrates the concept using vanilla items. I tried to balance it at least a little bit, but I'm not really a hardcore-style player so it's probably a little OP for some people. It's easy to adjust using FNVEdit, and it also functions as an example on how to setup a DYNLoot plugin.



REQUIREMENTS:

NVSE (http://nvse.silverlock.org/)
JIP LN (https://www.nexusmods.com/newvegas/mods/58277)
JohnnyGuitar NVSE (https://www.nexusmods.com/newvegas/mods/66927)


KNOWN ISSUES:

  • Ammo placed in the world (not in containers) by this mod will have its count reset to 1 upon leaving and re-entering the cell it was placed in. I'm not sure why this happens or how to fix it.


HOW TO WRITE A DYNLOOT PLUGIN:

Assuming you're already familiar with NVSE and JIP LN, the included example "Starter Pack" (DYNLoot_StarterPack.esp) should be simple enough to mostly understand, so I'll just explain the two functions I've added:

DYNLRegister and DYNLRegisterCont: they correspond to items placed in the game world and containers respectively, and they both take the following arguments (except for the first one):
  • <Ar_List of FromID> A list of items to be replaced (DYNLRegister ONLY) 
  • <Ar_List of FromID> A list of items to place in the world/containers (Leveled Items are allowed)
  • <Ar_List of Integers> The relative weights for each of the above items. The length of this array and the previous one MUST match.
  • <Integer> The overall probability (1 in N) of any of the above items being placed.