lordbevan1 Posted August 15, 2018 Share Posted August 15, 2018 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 More sharing options...
EPDGaffney Posted August 15, 2018 Share Posted August 15, 2018 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 More sharing options...
lordbevan1 Posted August 16, 2018 Author Share Posted August 16, 2018 (edited) I've never been able to wrap my head around scripting, could you walk me through the process maybe? EDIT: nvm I kinda given up it makes my head hurt Edited August 16, 2018 by lordbevan1 Link to comment Share on other sites More sharing options...
EPDGaffney Posted August 16, 2018 Share Posted August 16, 2018 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 More sharing options...
WarMachineDD7 Posted August 16, 2018 Share Posted August 16, 2018 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 FilesMod AMod 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 More sharing options...
lordbevan1 Posted October 6, 2018 Author Share Posted October 6, 2018 If I were to add a new weapon to an existing weapon's leveled list, would it be an "either/or" situation, or would they both spawn at the same time? Link to comment Share on other sites More sharing options...
lordbevan1 Posted October 6, 2018 Author Share Posted October 6, 2018 If I add a new weapon to an existing weapon's leveled list, would it spawn side by side, or would it be one or the other? Link to comment Share on other sites More sharing options...
dubiousintent Posted October 6, 2018 Share Posted October 6, 2018 Have you seen the 'TIP: Adding Items to Actors (Leveled Lists)' in the wiki "Getting started creating mods using GECK" article "Scripting" section? If that doesn't answer your questions, let us know and we'll expand it. -Dubious- Link to comment Share on other sites More sharing options...
Recommended Posts