Adding items to vendor list

Discuss modding questions and implementation details.
Post Reply
l3lessed
Posts: 1399
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Adding items to vendor list

Post by l3lessed »

To anyone who has added custom items to vendor lists for the player to buy, what is the quickest/easiest way to do this?

I want to add my compass item and a repair kit item to the vendors for the enchanted compass. I can't add damage effects to it until the player can either buy a new compass or fix theirs.
Last edited by l3lessed on Fri Oct 22, 2021 10:29 pm, edited 1 time in total.
My Daggerfall Mod Github: l3lessed DFU Mod Github

My Beth Mods: l3lessed Nexus Page

Daggerfall Unity mods: Combat Overhaul Mod

Enjoy the free work I'm doing? Consider lending your support.

User avatar
Ralzar
Posts: 2211
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: Adding items to vendor list

Post by Ralzar »

Well, if you use the usual method of registering it as an item, it will appear wherever that item group is sold. I usually register items to ItemGroup UselessItems2.

l3lessed
Posts: 1399
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Re: Adding items to vendor list

Post by l3lessed »

Thanks for that tip.
My Daggerfall Mod Github: l3lessed DFU Mod Github

My Beth Mods: l3lessed Nexus Page

Daggerfall Unity mods: Combat Overhaul Mod

Enjoy the free work I'm doing? Consider lending your support.

User avatar
Hazelnut
Posts: 3015
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Adding items to vendor list

Post by Hazelnut »

Look at the trade window code to see a mapping of what groups are sold in which stores.
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

Post Reply