Inventory System Help [VxAce][SOLVED]

I am using Theo's Limited Inventory script. I can set a variable equal to the max inventory you can have, but I can't set a variable equal to what the player has.

Like, for now, I can tell you if you're max Inventory is 500, but I can't say you've used 300 of it. I need it for my evented crafting system.

https://forums.rpgmakerweb.com/index.php?threads/theo-limited-inventory.17101/
Line 448. It should be variable $game_party.total_inv_size
The images show that the number is shown on the inventory screen so this should be what you're looking for.
This should tell you how much is used.
It seems to not work.

unknown.png
That error indicates that you are trying to modify that variable directly outside of it's class, which is only possible if there are methods for it in Game_Party, and if that is an instance variable and not a method. If I remember right, that is a method, so it can not be directly modified in any way.

In case you wanted to check for it's value in your event, you should use a double = sign for that, like this:
Code:
$game_party.total_inv_size == 180
This would check if that variable is 180 or not.
You can also use other check methods if needed, such as: <, <=, >, >=, !=, and some more complex ones, which I will not list now. 😛
Fixed it! I had...
Code:
$game_party.total_inv_size = $game_variables[89]

When I should've had...
Code:
$game_variables[89] = $game_party.total_inv_size

I done goofed XD, but thanks for trying to help everyone ^_^ *likes everyone's reply*
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/inventory-system-help-vxace-solved.80245/