Bobombnik Posted February 18, 2019 Share Posted February 18, 2019 As a preface, I have no experience modding Pillars. I've seen the tutorial stuff, but I was hoping someone could help me determine the correct things to look at and I will muddle out the 'how to make' myself, hopefully. If someone wanted to make this mod for me, I certainly wouldn't refuse - I feel like it's probably pretty simple. I'd still like to have an idea of what went into it regardless. Goal: I want to add an existing item in the game to the Deadfire Merchant store, as well as the lootlist for when they are sunk/killed. Example, adding sugar as an item that is always in the store and loot. Link to comment Share on other sites More sharing options...
house2fly Posted February 18, 2019 Share Posted February 18, 2019 That's an interesting question- in the area maps you'd add items to an inventory using the hook script and use oei-hovered to find the ID, but the world map may be different- for example, changing the zoom range on area maps doesn't change it on the world map. A good place to start would be the items.gamedatabundle file, which contains all the lootlists- store inventories are a kind of lootlist as well. I'm not sure if merchant ships are in there, but ship battle loot and normal store inventories are, so merchant ships ought to be 1 Link to comment Share on other sites More sharing options...
BMac Posted February 19, 2019 Share Posted February 19, 2019 I believe the world map merchants all share a single store object which exists on the FreeWorldMap scene: Store_RE_Generic_Merchant (e5ba7105-c251-4191-bc2b-9a7d7f8a3c32). You should be able to use a script hook to modify that inventory like any other. Generally the world map functions like any other scene and the objects in it like those in other scenes, though there are certain aspects that work differently as house2fly observed. 2 Link to comment Share on other sites More sharing options...
Bobombnik Posted February 20, 2019 Author Share Posted February 20, 2019 I believe the world map merchants all share a single store object which exists on the FreeWorldMap scene: Store_RE_Generic_Merchant (e5ba7105-c251-4191-bc2b-9a7d7f8a3c32). You should be able to use a script hook to modify that inventory like any other. Generally the world map functions like any other scene and the objects in it like those in other scenes, though there are certain aspects that work differently as house2fly observed. I've been crackin away at it, I managed to get a working mod adding it to the Port Maje Fishmonger, but it wasn't working for the Deadfire Merchants. The ID that you've pasted here is different than the one I identified and was trying to use, so that may have been the problem.. going to give that a look. THANK YOU. Link to comment Share on other sites More sharing options...
Bobombnik Posted February 20, 2019 Author Share Posted February 20, 2019 I believe the world map merchants all share a single store object which exists on the FreeWorldMap scene: Store_RE_Generic_Merchant (e5ba7105-c251-4191-bc2b-9a7d7f8a3c32). You should be able to use a script hook to modify that inventory like any other. Generally the world map functions like any other scene and the objects in it like those in other scenes, though there are certain aspects that work differently as house2fly observed. Well, as I mentioned I had a different number come up for the Generic Merchant (I could have been using the wrong one), but I've tried the ID you posted and it doesn't work either. Works fine when set to a merchant like the fishmonger in Port Maje though. :/ Link to comment Share on other sites More sharing options...
Bobombnik Posted February 20, 2019 Author Share Posted February 20, 2019 I got it working, at least for my basic goal. Sugar appears as an inventory item on the Deadfire Merchants. It doesn't appear to load as loot when one is sunk, but I've only tested with a small sample size. The number you provided, BMac, was the one that worked. I was pulling the ID from the wrong place. Thanks! 1 Link to comment Share on other sites More sharing options...
Bobombnik Posted February 27, 2019 Author Share Posted February 27, 2019 (edited) I've created a working mod that meets the goals I set out to meet. Granted it's nothing fancy, but fills a hole that always annoyed me (and I suspect others). Just wanted to follow up and thank BMac and house2fly for their advice! Deadfire Sugar Trade (nexus page) The mod adds sugar to the Deadfire Merchant ships on the world map. It is available as an item for purchase in the merchant shop, drops as loot when sinking a merchant ship, or when boarding and killing the captain of a merchant ship. Edited February 27, 2019 by Bobombnik 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now