Jump to content

Recommended Posts

Posted

I'm looking into creating a mod that would refresh merchant inventories every time you return to their planet.

The best way I can see to do this is to go through their inventory, clear it, and then re-run the population script.  My biggest concern with this is clearing out any essential items, quest reward items, etc. that are added to their shop somewhere other than on the initial creation script.  Do we have any kind of comprehensive list of which merchants have extra items added to their shop beyond their initial inventory so I can be sure not to clear them?  Or if anyone has ideas on a better way to do this, I'm open to suggestions.  Thanks for any help.

Posted

May be able to get away with just filtering out certain base items. Like plot items will reliably be base item 64 (Plot_usable_items). And maybe also filter Aesthetic items, Data_Pads, etc.
Though I guess that depends on how you're clearing the items...

I'm not aware of any master lists, though there aren't too too many merchants in these games. May just have to do some checking

Posted
14 hours ago, Lane said:

May be able to get away with just filtering out certain base items. Like plot items will reliably be base item 64 (Plot_usable_items). And maybe also filter Aesthetic items, Data_Pads, etc.
Though I guess that depends on how you're clearing the items...

I'm not aware of any master lists, though there aren't too too many merchants in these games. May just have to do some checking

Interesting idea.  I imagine we have a list of what each base item is... so maybe just everything that doesn't look like a unique category gets removed?
I feel like there aren't many important items in shops.  I feel like playing this as a kid I never even opened them...

13 hours ago, Vriff said:

In K1 isn't it just Yavin Station?

I'm currently looking at KotOR II.

Posted
Quote

In K1 isn't it just Yavin Station?

The way that one works is one module has several different UTM files, that get swapped out via dialogue script. So it's not so much that items are being cleared, but the full store is replaced.

 

Quote

I imagine we have a list of what each base item is...

Yup! See `baseitems.2da`

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines.