Torchmodders

Modding => Modding Questions => Topic started by: Oleg on June 09, 2015, 08:20:17 am


Title: add items to pet sell
Post by: Oleg on June 09, 2015, 08:20:17 am
I am trying to figure out how to add items to what the pet can sell. I know synergies added 2 new potions to what pet can buy when returning to town to sell, so it is possible.
Would I have to go through UI layouts to do this, some graph/table, a stat on the potion itself?
Not really sure where to look to do this, or how.
Thank you for the help.
Oleg
Title: Re: add items to pet sell
Post by: gytfunke on June 09, 2015, 09:33:22 am
Hi Oleg,

I'd look first at the Inventories/Slots editor.  Those typically dictate what items go in which frames.
Title: Re: add items to pet sell
Post by: Oleg on June 09, 2015, 04:16:34 pm
I tried looking at inventories\slots, have not found the solution there. Also, I searched the synergies mod and saw they only modded 2 slots for enchanting, nothing to do with potions, despite adding 2 new potions to what pet can buy.
Title: Re: add items to pet sell
Post by: gytfunke on June 09, 2015, 06:30:48 pm
(http://i738.photobucket.com/albums/xx23/gytfunke/petinventory.png)

It's in the UI, I think.  Look at the list associated with this UI element.  I think you can do one of two things here:

1. Create items that have one of the listed UNITTYPES.
2. Add UNITTYPES you want to be able to purchase to the list.  However, this will add ALL of said items.  So it might be a terrible idea to add, say, 'SWORD' as an option.
Title: Re: add items to pet sell
Post by: Oleg on June 09, 2015, 08:33:18 pm
Thank you very much.
I thought I looked at pet inventory, but I guess I am till pretty bad at making sense of layouts.
Now that I have a decent starting point I can experiment with adding items/ changing item unittypes to try to get effect I want.
Title: Re: add items to pet sell
Post by: gytfunke on June 09, 2015, 08:49:10 pm
Hey again,

My bad.  Those aren't UNITTYPES.  Those are individual unit names.  So you apparently have to add units one by one to the list.
Title: Re: add items to pet sell
Post by: Oleg on June 10, 2015, 08:52:41 am
Noticed that when adding items to the list. Actually makes it easier for what I am trying to do, so that works out. Thanks