Jump to content

Leveled List Help?


lordbevan1

Recommended Posts

I'm looking to add a new low-level rifle to the game called the "Breach-Loaded Rifle", but I'm unsure of how to go about adding it to leveled lists. Like, is it as simple as copying a similar leveled list, or are there certain connections and stuff I need to make in GECK?

Link to comment
Share on other sites

The best way to do this is to find other items you think belong in the same levelled lists and add it to them at game launch via GetLoadedTypeArray and LeveledListAddForm. Now make your own levelled lists to match the ones that don't contain multiple weapon forms but rather just one and maybe its ammo, with different conditions, levels, and ammo quantities. Then add these to all actors, containers, and levelled lists that contain levelled lists for items that make up the group of stuff from which your weapon should have a chance to be randomly selected.

 

A good template for this is probably easy to find by downloading any of the really popular weapon mods that have been updated since LListAddForm and GLTA were added to Lutana. I've never used Weapons of the New Millennia but that probably uses this technique.

 

Also, not quite related, what weapons aren't breech-loaders at this point?

Link to comment
Share on other sites

Open up Millennia's file(s) and try to get an idea of what levelled lists they're using and how they chose them. The actual scripting is easy enough, so when you have more of an idea what you want to script, I'll be glad to show you how. Let me know if that's too much, but I'm being pulled in a lot of different directions at the moment, so I can help you sooner if there's less I need to show you how to do.

Link to comment
Share on other sites

You can do it without scripting, the issue is that if you have several mods that modify a particular leveled list, the game will only use the last leveled list in the load order. So, for example, suppose you have 2 different mods that were made from the vanilla game's leveled lists and they each add their gun to the leveled lists. Then if your load order looks like this:

 

Vanilla Game Files

Mod A

Mod B

 

Then the leveled lists from Mod A that conflict with Mod B will get replaced with Mod B's lists because that's the last one in the load order. So Mod A's leveled lists are gone (which would mean that Mod A's gun would not appear in a vendor list, for example). Adding to the lists through a script would avoid this since all you do is add to the lists, not replace them.

 

If you don't add to the lists through a script, then you force the user to use a tool like FNVEdit to create a merged patch that gathers all the lists with all the mods' additions and put it at the end of the load order. In my opinion, think this is an ok compromise, but you gotta let your users know about it so they make sure to create the merged patch when they add your mod.

Link to comment
Share on other sites

  • 1 month later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...