» Sun Nov 18, 2012 12:32 pm
Well, you have to make a quest in order to make your merchant say what you want.
There are of course other "dirtier" ways to do it, but if you want your mod clean, the best way is to create a quest for it.
You'll only need to read the first part of that tutorial in order to understand how to set up dialog, no point in me copying and pasting the instructions from the creation kit here.
As for the fragment you have to add to your dialog in order to make the player receive something from the merchant, it would go like this:
Game.GetPlayer().AddItem(MyItem, 1)
akspeaker.RemoveItem(MyItem, 1)
Game.GetPlayer().Removeitem(ThatOtherItem, 1)
akspeaker.Additem(ThatOtherItem, 1)