cdo947214 Posted November 23, 2018 Share Posted November 23, 2018 Is it possible to make a vendor have randomly generated legendary items in their inventory? Link to comment Share on other sites More sharing options...
SKKmods Posted November 23, 2018 Share Posted November 23, 2018 Yes with a script that calls this function where ObjectToSpawnIn is the vendor container ObjectReference (LegendaryItemQuest as LegendaryItemQuestScript).GenerateLegendaryItem(ObjectToSpawnIn) Link to comment Share on other sites More sharing options...
cdo947214 Posted November 23, 2018 Author Share Posted November 23, 2018 How do I add this script? Where do I put it in? Link to comment Share on other sites More sharing options...
cdo947214 Posted November 25, 2018 Author Share Posted November 25, 2018 Ok, I went to quest stages and created 2 properties. The first being an object reference for aaarsqmpStanJrVendorBox an the second being a quest const for the LegendaryItemQuest. then I put the following in... (LegendaryItemQuest as LegendaryItemQuestScript).GenerateLegendaryItem(aaarsqmpStanJrVendorBox) I got the following error message... Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "Fragments:Quests:QF_aaaRSQMPstanjrvendorquest_0205FD61"...C:\Users\cdo14\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_aaaRSQMPstanjrvendorquest_0205FD61.psc(7,1): variable LegendaryItemQuest is undefinedC:\Users\cdo14\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_aaaRSQMPstanjrvendorquest_0205FD61.psc(7,20): cannot cast a none to a legendaryitemquestscript, types are incompatibleNo output generated for Fragments:Quests:QF_aaaRSQMPstanjrvendorquest_0205FD61, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on Fragments:Quests:QF_aaaRSQMPstanjrvendorquest_0205FD61 Link to comment Share on other sites More sharing options...
Moraelin Posted November 25, 2018 Share Posted November 25, 2018 Even simpler: you can make a leveled item with legendary items (doesn't have to be actually leveled, mind you, but it's one way to get a random item) and just add that item to the vendor inventory. Takes a lot less scripting. Possibly even none, if it's your own vendor NPC, and there's no conflict if you just set their inventory in the CK. Link to comment Share on other sites More sharing options...
SKKmods Posted November 25, 2018 Share Posted November 25, 2018 You need to press the properties button in your the quest fragment and add the property Quest LegendaryItemQuest pointing at LegendaryItemQuest so your script can find the remote script attached to the other quest. Link to comment Share on other sites More sharing options...
cdo947214 Posted November 25, 2018 Author Share Posted November 25, 2018 Thanks. It worked. Gonna test it in-game now. Link to comment Share on other sites More sharing options...
cdo947214 Posted November 25, 2018 Author Share Posted November 25, 2018 The script compiles ok, but no legendary items are appearing in his inventory. I put the following items in the item list for the vendor chest... LGND_PossibleLegendaryItemBaseListsLGND_PossibleLegendaryItemBaseLists_ArmorLGND_PossibleLegendaryItemBaseLists_ArmorGroupHighLGND_PossibleLegendaryItemBaseLists_ArmorGroupLowLGND_PossibleLegendaryItemBaseLists_GunGroupHighLGND_PossibleLegendaryItemBaseLists_GunGroupLowLGND_PossibleLegendaryItemBaseLists_GunsLGND_PossibleLegendaryItemBaseLists_MeleeLGND_PossibleLegendaryItemBaseLists_SpecialGunsLGND_PossibleLegendaryItemBaseLists_Weapons Link to comment Share on other sites More sharing options...
cdo947214 Posted November 25, 2018 Author Share Posted November 25, 2018 It's putting much more items in there, but none of them are legendary. Link to comment Share on other sites More sharing options...
Moraelin Posted November 25, 2018 Share Posted November 25, 2018 Have you set the legendary chance in your leveled items? Link to comment Share on other sites More sharing options...
Recommended Posts