jp2x Posted September 14, 2016 Share Posted September 14, 2016 Hello, I am making a mod that adds a bunch of music to Fallout 4. I'd like to have a couple custom vendors (already up and running fine) that can sell a few song holotapes each respawn. I have all of my formlists set up. The vendor boxes look good. Both the vanilla items and the new modded outfits are available from the vendors. But, they won't sell the custom holotapes. I'm assuming it's a quick fix. Maybe a keyword or something. But, nothing I've done works and, after 3 hours of research and testing, I can't find a solution. Can anyone please tell me what I need to do to make a holotape sellable by a vendor? Thank you! Link to comment Share on other sites More sharing options...
MissingMeshTV Posted September 16, 2016 Share Posted September 16, 2016 (edited) I'd be interested in figuring this out as well, as I've run into a similar problem trying to add a key for a player home to a vendor inventory to purchase. Just like your holotape, the key does not show up in the vendor's items for sale. Looking around the Googles for a solution, I came across some various Skyrim forum postings that seems to indicate that keys are flagged as non-sellable items, presumably to prevent them from being sold if they are part of a quest, which makes perfect sense. It would also make sense the same applies for Fallout 4. One solution suggested was to add a note or deed to the vendor inventory but tie that item to the key (or in your case a holotape) so that when you bought the note/deed the key/holotape would be added to the player’s inventory. A great idea, except right now I have no idea to how to make that work. :huh: I know it’s not the answer you were looking for, but hopefully it will give you some insight as to why your holotape isn’t showing up with your vendor...most likely holograms, like keys, are flagged a non-sellable items. At least that’s my theory… Would be interested if you ever find a solution. One question I just thought to ask:Do your holotapes actually show up in the vendor inventory? Or not? Edited September 16, 2016 by RedRocketTV Link to comment Share on other sites More sharing options...
jp2x Posted September 19, 2016 Author Share Posted September 19, 2016 This is a great start. I was looking for a "saleable" tag but, like you said, maybe the whole category is not available. I think I'll try the swap idea in the next few weeks. As for inventory, I recall them working before. But, I have a terrible memory. I've done plenty of vendors and selling miscellaneous items doesn't seem to work: holotapes, keys, whatever. But, I haven't done exhaustive testing, so I hope notes or whatever will work. IDEA: maybe a holotape vending machine? It takes caps automatically when you remove items? Maybe. Link to comment Share on other sites More sharing options...
MissingMeshTV Posted September 20, 2016 Share Posted September 20, 2016 (edited) Before you give up on the idea totally, I’ve had a breakthrough! I’ve just finished testing a working solution for adding a key to a vendor. Since it’s such a similar case to your holotapes, I thought I’d share it. As I mentioned before, apparently keys are not able to be used as sellable items. One suggestion I found on a Skyrim forum was to create a note or deed and attach a key to it so that when the note was purchased, the key would be added to the players inventory. I tried to reverse engineer the script that gives you the Atom Cats power armor paint job when you buy the note from Rowdy. It’s the closest scenario to what I was trying to achieve: buy a key to unlock a player home from Daisy in Goodneighbor. It took a couple of hours of trying various things and some more poking around the CK wiki, but I now have a working script to do the following: 1. Buy a deed (set up as a Book) from Daisy that when purchased adds a key to my inventory2. Display a message that the key has been added When setting up the properties for the script, I noticed a “Holotape” property in the Type pull down menu of the Add Item Property window. I used the “Key” entry but I would assume the Holotape entry would be similar but direct you to use a holotape as a item reference rather than a key as I did. If you have multiple holotapes, you probably don't want to do this for each one, so I was thinking maybe you could put them all into a vendor list then point the script to that. No idea if it would work that way, just a though. You might need to actually specify an individual holotape for any of it to work. I’ll post my working script below. Hopefully it will give you something to start with. This is the first and only scripting I have ever tinkered with beyond unlocking a door with a terminal, so for me to get this working and doing what I want is a milestone. I modified the Atom Cats paint job script so some of the code may now be redundant, but all I know is this compiled and does what I want. Hope some of this is at least slightly helpful. Let me know how you make out. Good luck! :smile: Scriptname AA:BuyCondoKey2 extends ObjectReference Const Key Property AA0Homes_GoodneighborHomeKey Auto Const Message Property AA0GoodneighborKeyMessage Auto Const Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer) if akNewContainer == Game.GetPlayer() Debug.Trace("Doing frame stuff for Player") Game.GetPlayer().AddItem(AA0Homes_GoodneighborHomeKey, 1, true) AA0GoodneighborKeyMessage.Show() Delete() endIf endEvent Edited September 20, 2016 by RedRocketTV Link to comment Share on other sites More sharing options...
jp2x Posted September 21, 2016 Author Share Posted September 21, 2016 (edited) It looks good. The only thing you might comment out is the Debug,Trace, as that doesn't affect gameplay but is used for debugging a script. For me, the problem is that I would need to create about 250 books for sale, adding a version of this script for each. the script might not be so bad, but it will definitely be a few hours of work. I really need to consider the cost-benefits before starting it. Still, great job! Edited September 21, 2016 by jp2x Link to comment Share on other sites More sharing options...
MissingMeshTV Posted September 22, 2016 Share Posted September 22, 2016 Yeah.. I was just happy it worked and still need to take care of the debug code. Didn't realize you were working with 250 holotapes! Like your idea of the vending machine. Maybe something sililar to the book return machines? Link to comment Share on other sites More sharing options...
jp2x Posted September 23, 2016 Author Share Posted September 23, 2016 I was considering that. It would be best to make them with a terminal interface and the Book returns might be easy to reskin. Thanks! Link to comment Share on other sites More sharing options...
werr92 Posted September 23, 2016 Share Posted September 23, 2016 (edited) I might have something to say here. Point is, when you create a vendor it should be assigned to one of the factions which are considered to be vendor factions, meaning that they have a chest, where the items for sale are stored. That faction should have a field where the list of suitable keywords is set. Basically it is a fast fix as you assumed. You should create a leveled list where ALL the nesessary keywords will be placed. And then choose this list within your faction properties. Item from the chest that meet these keywords (at least one) will be for sale in game. Edited September 23, 2016 by werr92 Link to comment Share on other sites More sharing options...
jp2x Posted September 29, 2016 Author Share Posted September 29, 2016 (edited) I actually tried this. Maybe I did it wrong. Please provide more details if you can. I found:Holotapes are a different items class than weapons/armor. They do not have a field for adding keywords.Factions have a drop-down "Vendor Buy/Sell List". The dropdown seems to be generated from the formlists which start "vendorlist". You can add to the list. I used VendorItemMisc2. I deleted the existing "Key" and "No Sale" keywords.I also added a formlist with both object"" and vendor"" holotape keywords. The vendors still don't sell.Without knowing more about how keywords work, I'm stumped. Edited September 29, 2016 by jp2x Link to comment Share on other sites More sharing options...
Recommended Posts