I'm making a farming game where they are guarenteed to get more than 100 of 1 type of crop like carrots. It will really suck if they can't collect more than 99. How do I increase the limit of how many of 1 item a character can hold?
How to increase item limit above 99?
RPG Maker MZ SupportThis can be done with a fairly simple plugin:
JavaScript:
Game_Party.prototype.maxItems = function (item) {
return 999;
};
hey, I'm so sorry for necroposting, but maybe you'd be up to help anyway.
I tried it and it worked well but the number overlaps with the ":". Do you think this is fixable somehow without too much work?
You would probably need to overwrite the "Window_ItemList.prototype.drawItemNumber" method.
For example
Also increase the reserved space using something like this :
For example
Code:
Window_ItemList.prototype.drawItemNumber = function(item, x, y, width) {
if (this.needsNumber()) {
this.drawText(":", x, y, width - this.textWidth("000"), "right");
this.drawText($gameParty.numItems(item), x, y, width, "right");
}
};
Also increase the reserved space using something like this :
Code:
Window_ItemList.prototype.numberWidth = function() {
return this.textWidth("0000");
};
Original thread: https://forums.rpgmakerweb.com/threads/how-to-increase-item-limit-above-99.169889/