Can you make a merchant that won't buy things?

Post » Wed Jun 20, 2012 5:23 pm

I'm making a little dwemer robot that follows you around, and can "transmute" gold into Ingots of any kind. By this I mean that he is a vendor with 999 of each ingot, but I don't want the player to be able to sell to him. I've given him 0 Gold, but I'm concerned about players buying ingots "for free" buy just getting their gold back by selling him equipment. This goes against the flavor I'm trying to set up.

Maybe I can set the vendor chest to have an OnContainerChange event that basically says
if akItem != Gold001
akItem.remove()
endIf

??

Any ideas?
User avatar
Steve Bates
 
Posts: 3447
Joined: Sun Aug 26, 2007 2:51 pm

Post » Wed Jun 20, 2012 7:29 pm

Hmm. My idea wouldn't work, it would just get rid of the item after the player had the gold. Darn.
User avatar
Yonah
 
Posts: 3462
Joined: Thu Aug 02, 2007 4:42 am

Post » Wed Jun 20, 2012 6:55 pm

Nvm, I just restricted his buy/sell list to VendorItemOreIngot
User avatar
Connie Thomas
 
Posts: 3362
Joined: Sun Nov 19, 2006 9:58 am

Post » Wed Jun 20, 2012 9:24 am

Just took a look at the http://www.creationkit.com/Creating_a_Merchant tutorial and you can use formlists to set what a merchant sells and buys... Unfortunately, this still won't work for you if the player has the merchant perk to sell any item to any merchant.

Could you just create a dialogue option for each type of ingot and then remove the gold from the player?
User avatar
Sharra Llenos
 
Posts: 3399
Joined: Wed Jan 17, 2007 1:09 pm

Post » Wed Jun 20, 2012 12:05 pm

You wouldn't need to have a chest at all. Simply have him remove the gold and the "From" ingot type from the players' inventory, and drop one of the "To" ingot type.
User avatar
Amy Siebenhaar
 
Posts: 3426
Joined: Fri Aug 10, 2007 1:51 am


Return to V - Skyrim