Jump to content

Photo

Setting Merchant to Sell Item Earlier in Game


  • Please log in to reply
15 replies to this topic

#1
RandomlyKnighted

RandomlyKnighted

    Journeyman

  • Premium Member
  • 28 posts

Hi again, I'm trying to set it up so that Eorlund Gray-Mane will start selling the Skyforge weapons when my quest gets to a certain stage. When looking at the MerchantWhiterunEorlundChest I saw that the VendorEorlundSkyforgeSteelSet was listed. When I opened it up to get more details I found that it is tied to the CompanionsGearChanceNone global variable. Does this mean that if I change this global variable that he will start selling them? The reason I'm asking is because I can't find anywhere in the Companions quest line where this global variable is being used, which makes me wonder if this is even the correct way to get him to sell the items. Am I right in assuming this or am I way off?



#2
lofgren

lofgren

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,108 posts

You should be able to change the variable to 0 and he will start selling them.

 

Right-click on a form and select "Use Info" to get a rundown of where it is referenced. Doing this on the global should reveal what quest changes its value.



#3
RandomlyKnighted

RandomlyKnighted

    Journeyman

  • Premium Member
  • 28 posts

Thanks, turns out is is being referenced by one of the Companions quests. Apparently I just overlooked it somehow.



#4
RandomlyKnighted

RandomlyKnighted

    Journeyman

  • Premium Member
  • 28 posts

Alright, back from work and finally got a chance to test out that global. Oddly enough it says that the variable is undefined. Why would this be?



#5
lofgren

lofgren

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,108 posts
Sounds like you misspelled it somewhere.

#6
RandomlyKnighted

RandomlyKnighted

    Journeyman

  • Premium Member
  • 28 posts

I opened the global variable then copy and pasted the exact name.  This is the errors that I get:

Starting 1 compile threads for 1 files...
Compiling "QF_RKThaneSkyforgeQuest_02000D62"...
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_RKThaneSkyforgeQuest_02000D62.psc(38,0): variable CompanionsGearChanceNone is undefined
D:\Program Files\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_RKThaneSkyforgeQuest_02000D62.psc(38,0): type mismatch while assigning to a none (cast missing or types unrelated)
No output generated for QF_RKThaneSkyforgeQuest_02000D62, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on QF_RKThaneSkyforgeQuest_02000D62

 



#7
RandomlyKnighted

RandomlyKnighted

    Journeyman

  • Premium Member
  • 28 posts

Got it to compile. I had to manually go into the script and pass in the global variable. Now time to start testing this mod. :laugh:



#8
RandomlyKnighted

RandomlyKnighted

    Journeyman

  • Premium Member
  • 28 posts

Alright, so I found out the hard way that the CompanionsGearChanceNone global variable also enables other Companion armor to be sold by Eorlund, which is something that I don't want. My first thought was to change the global variable for the Skyforge weapons set but then I realized that would mean I'd also have to find where it's being refereneced in quest C00 and update that so it uses the new global variable. My next thought was to create a new weapons set and add that to his chest when I need it. Only problem with that is if the player goes back later and decides to join the companions there will be the possibility to have duplicate items listed when purchasing from Eorlund, would mean I would still have to alter the C00 quest. What do you think? Is there a better solution?



#9
lofgren

lofgren

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,108 posts

It's no big deal if the chest pulls from both leveled lists after the player does the companions quest. It just means that at least 2 of each weapon will show up in Eorland's inventory instead of at least 1. They won't show up as different items, for example.



#10
RandomlyKnighted

RandomlyKnighted

    Journeyman

  • Premium Member
  • 28 posts

Alright, then I'll go ahead and create a new weapons set for the items that I want him to sell and will add that to his chest.






Page loaded in: 0.993 seconds