Feature request - carrying capacity readable from character object
Posted: Fri Sep 30, 2016 1:43 pm
Hello,
I am about to use the new adjustments to carrying capacity. There is an option to multiply the standard carrying capacity ((STR * 7)/2 + 40) in ssopt, and a mod on a character (carrying_capacity_mod).
I want to increase the carrying capacity by around 10% and maybe make a potion, which will further increase it (for a time), using the modifier.
As I tried to look where I had to change things, I found that we always calculated the carrying capacity in a script! So in every place where it is needed the carrying capacity is calculated anew, always as weight := STR * 3.5 + 40, this includes also reading the current strength of the character.
I think it would be helpful if the you could add an element into the character object, like character.current_carrying_capacity (read only).
So we could always read the resulting carrying capacity for a character, which the core needs to calculate anyway. This could be the carrying capacity with or without the mod. But as it is now, even if nothing is changed from the default all scripts who need the carrying capacity need to look at the current strength and calculate it.
Since the carrying_capacity_mod value is added _before_ the multiplier, it would be ideal if all these things are calculated as the core needs to do anyway, and reported (read only) by character.current_carrying_capacity, because most of the time we need to look if something can be picked up, or if the character cannot carry it.
As it is now, I will write a function in an include to calculate the carrying capacity and call it every time I need the value. This function will also read and use carrying_capacity_mod. But it would be much simpler if this systemwide value could be read directly.
Thank you
OWHorus
I am about to use the new adjustments to carrying capacity. There is an option to multiply the standard carrying capacity ((STR * 7)/2 + 40) in ssopt, and a mod on a character (carrying_capacity_mod).
I want to increase the carrying capacity by around 10% and maybe make a potion, which will further increase it (for a time), using the modifier.
As I tried to look where I had to change things, I found that we always calculated the carrying capacity in a script! So in every place where it is needed the carrying capacity is calculated anew, always as weight := STR * 3.5 + 40, this includes also reading the current strength of the character.
I think it would be helpful if the you could add an element into the character object, like character.current_carrying_capacity (read only).
So we could always read the resulting carrying capacity for a character, which the core needs to calculate anyway. This could be the carrying capacity with or without the mod. But as it is now, even if nothing is changed from the default all scripts who need the carrying capacity need to look at the current strength and calculate it.
Since the carrying_capacity_mod value is added _before_ the multiplier, it would be ideal if all these things are calculated as the core needs to do anyway, and reported (read only) by character.current_carrying_capacity, because most of the time we need to look if something can be picked up, or if the character cannot carry it.
As it is now, I will write a function in an include to calculate the carrying capacity and call it every time I need the value. This function will also read and use carrying_capacity_mod. But it would be much simpler if this systemwide value could be read directly.
Thank you
OWHorus