BFT2020 Posted July 12, 2023 Share Posted July 12, 2023 So I got this idea bouncing around in my head since A20, but haven't looked hard into it yet (did some preliminary research but nothing jumped out so far). I want to setup my game where the traders restock their vending machines on a different frequency than the ones out in the wild. For that, I know that I just need to create two new vending machine trader_infos (say 11 and 12) with a different restocking value. Then create two new blocks (copy the ones for drinks and food in the game already but with an unique block name for them) in the blocks.xml file and assign my new groups for them (#11 and #12). At that point, I would need to go into the POI editor for the trader POIs and change the default blocks now to my new vending machine blocks? I've only done XML editing so far, so this will be something new for me. Link to comment Share on other sites More sharing options...
The_Great_Sephiroth Posted July 12, 2023 Share Posted July 12, 2023 What you said sounds correct. WHile waiting for a more experienced person to chime in, I'd try it. Worst case scenario it doesn't work and you saved time by already creating the infos and blocks. Link to comment Share on other sites More sharing options...
BFT2020 Posted July 14, 2023 Author Share Posted July 14, 2023 On 7/12/2023 at 5:46 PM, The_Great_Sephiroth said: What you said sounds correct. WHile waiting for a more experienced person to chime in, I'd try it. Worst case scenario it doesn't work and you saved time by already creating the infos and blocks. Yeah that was what I was thinking. Also I learned a lot just trying things out first. Link to comment Share on other sites More sharing options...
The_Great_Sephiroth Posted July 14, 2023 Share Posted July 14, 2023 7 hours ago, BFT2020 said: Yeah that was what I was thinking. Also I learned a lot just trying things out first. That is how I learned C and C++. Lots and lots of OpenGL crashes telling me I'm stupid. Link to comment Share on other sites More sharing options...
Cranberry Monster Posted July 16, 2023 Share Posted July 16, 2023 Yeah, you give your new vending machines the next available number in the list of vendor IDs. Then edit the Trader POIs in the editor to replace the vanilla vending machines with your new one. Pretty sure EAC has to be off to edit vanilla POIs. Link to comment Share on other sites More sharing options...
BFT2020 Posted July 16, 2023 Author Share Posted July 16, 2023 Got it done already, even added a localization file so that it looks seamless. Only issue I had was figuring out where the saved POI files were at. 😆 Thanks all 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