Jump to content

Vendors and legendary items


cdo947214

Recommended Posts

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 4
Copyright © 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 undefined
C:\Users\cdo14\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_aaaRSQMPstanjrvendorquest_0205FD61.psc(7,20): cannot cast a none to a legendaryitemquestscript, types are incompatible
No 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

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

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

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_PossibleLegendaryItemBaseLists

LGND_PossibleLegendaryItemBaseLists_Armor

LGND_PossibleLegendaryItemBaseLists_ArmorGroupHigh

LGND_PossibleLegendaryItemBaseLists_ArmorGroupLow

LGND_PossibleLegendaryItemBaseLists_GunGroupHigh

LGND_PossibleLegendaryItemBaseLists_GunGroupLow

LGND_PossibleLegendaryItemBaseLists_Guns

LGND_PossibleLegendaryItemBaseLists_Melee

LGND_PossibleLegendaryItemBaseLists_SpecialGuns

LGND_PossibleLegendaryItemBaseLists_Weapons

Link to comment
Share on other sites

  • Recently Browsing   0 members

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