Daevinski Posted November 10, 2020 Share Posted November 10, 2020 I'm trying to reduce the initial Carry Capacity of the character from the default 12 to something like 6, so the first thing you need before starting looting is a bag. How can I target that? There is any specific file I need to change? Seems like it's related to Strength, but I'm not sure how to target that either. Link to comment Share on other sites More sharing options...
Asilar Posted November 10, 2020 Share Posted November 10, 2020 It is hardcoded in IsoGameCharacter.class file. BaseMaxWeight = 8. And then there is the STR carry capacity bonus. There is a function that is setMaxWeight(). So maybe in a function (called at creation of character with an event ?) you could change it : getPlayer():setMaxWeight() = 2 ? Or something like that... Better coders will help you with that I guess Link to comment Share on other sites More sharing options...
Daevinski Posted November 10, 2020 Author Share Posted November 10, 2020 Huuum... I believe this is a start for what I want to do. I'm new to modding this game, so any extra guidance of how to achieve such change is more than welcome. Link to comment Share on other sites More sharing options...
Daevinski Posted November 10, 2020 Author Share Posted November 10, 2020 Huuum... I believe this is a start for what I want to do. I'm new to modding this game, so any extra guidance of how to achieve such change is more than welcome. Link to comment Share on other sites More sharing options...
Asilar Posted November 10, 2020 Share Posted November 10, 2020 I correct myself : there is also a setMaxWeightBase() function, so you should start with : getPlayer():setMaxWeightBase() = 2 But I guess you have to mess up with OnCreatePlayer event, and I don't know how to handle that, sorry. Link to comment Share on other sites More sharing options...
Daevinski Posted November 10, 2020 Author Share Posted November 10, 2020 I found the solution in the mod "MaxWeight Mod" by Starscream. After hours looking for a solution, at the end it was part of a mod that does the opposite of what I'm trying to achieve. lol I'm gonna add it to my mod, with the proper credit. Thanks anyway. 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