Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Is there be any way to call the value of both current carry weight and max carry weight? While I agree with the previous post where inventory could be infinite and states for varying percentages, a lot of that could be accomplished on the user side of the plugin if those 2 values could be called and checked

(1 edit)

Hi there,

There's a couple ways to do this depending on what inventory type you are using for your game.

For Slot Type Inventory:

$gameContainers.getCurrentPartySlotsWeight() - Returns current weight.

$gameContainers._inventoryMaxWeight - Returns max weight.

For Weight Type Inventory:

$gameContainers.getCurrentPartyInventoryWeight() - Returns current weight.

$gameContainers._inventoryMaxWeight - Returns max weight.