I cannot get this to work.
Here are my settings:
# Exemple Carry_Limit = lvl1 will make only the strength of the# first actor to be put in the formula.Carry_Limit = :all_for
Code:
def self.weight_formula(at) at * 3.5 * 100end
Code:
when :for1 weight = weight_formula($game_party.members[0].param(7)) when :all_for weight = 0 for members in 0...$game_party.members.size - 1 weight += weight_formula($game_party.members[members].param(7))
I go to a shop and it says the weight is
150/0
Which means I have a weight of 150 and I can carry 0
so even if I have a lot of gold, I cannot buy a potion.
I check variable 6 and its value is 0.
So I decided to play with some settings:
# Exemple Carry_Limit = lvl1 will make only the strength of the# first actor to be put in the formula.Carry_Limit = :var
Code:
def self.weight_formula(at) 700end
Code:
when :for1 weight = weight_formula($game_party.members[0].param(2)) when :all_for weight = 0 for members in 0...$game_party.members.size - 1 weight += weight_formula($game_party.members[members].param(2))
just to make sure.
I set variable 6 to 700 then added 999 gold and went to the shop and
still the weight was 150/0
Actually I would like to make it so that items cannot be thrown away and that you can buy items even if you're overweight.
Although I suppose that's less of a concern at the moment.
The only thing that works for me is :fix
This is a fresh project, by the way. What's wrong?
I can give you a demo if need be.
--------
Here is what I'm trying to do.
The user can carry 100 pounds (lbs), around the equivalent of 45.36 kilograms.
At level 100, they can carry about twice that weight.
So the formula is
def self.weight_formula(at) at * 3.5 * 100end--------
There is only one project where it works for me (which I don't understand since I can copy the script from that project and paste it to that to the new one and it won't work) but when it does work, :all_for only counts for the first actor's attributes, not the whole party's.