Weight System

Status
Not open for further replies.

Gamingstar

****** Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
I'm trying to add a weight system (like in the fallout series) to my game, and have everything set up except for one issue: how do I detect when the player's inventory is too full? Can I do this normally or do I need a script? Any help will be appreciated!

Edit: Also can I change the item limit depending on the value of a variable?
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
Everything is possible - but it depends on how you handle things.
How do you create your weight? Without knowing that we can't tell you how to check it.

If it is created by events then any event that changes it should also test for limits.
 

Eurgh

Lord of the Reapers
Veteran
Joined
Oct 6, 2012
Messages
172
Reaction score
34
Primarily Uses
Edit: Also can I change the item limit depending on the value of a variable?
It depends, you can use a script which adds item limits. Such as Yanfly's adjust limits: https://yanflychannel.wordpress.com/rmvxa/core-scripts/adjust-limits/

This would be the easiest way, if for whatever reason you don't want to use it. There's a rough and messy way to do it with variables and that would be to check every time they get an item, add that item to a variable then check if the amount of the item they have exceeds the limit you want. This however is a long winded and messy way, but it gets the job done.

upload_2019-2-22_13-12-16.png
 

Gamingstar

****** Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
Oh yeah I found a script that does exactly what I want and forgot to close this post.
Closing it now. Thanks for the help, everyone!
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top