I'd like to place a limit on the number of unique items the player can have in their inventory. I figured out that you can change the max number of items in a stack from 99 to 999 by running:
Game_Party.prototype.maxItems = function(item) {
return 999;
};
and that works fine, but what about limiting the number of unique items? I saw this in rpg_objects.js:
Game_Party.prototype.numItems = function(item) {
var container = this.itemContainer(item);
return container ? container[item.id] || 0 : 0;
};
and thought it might have something to do with that, but I don't know what to do with it.
Thanks!
EDIT: And if that's not possible, is there a way to check to see how many unique items there are in the inventory? Something I could use in a conditional argument?
Game_Party.prototype.maxItems = function(item) {
return 999;
};
and that works fine, but what about limiting the number of unique items? I saw this in rpg_objects.js:
Game_Party.prototype.numItems = function(item) {
var container = this.itemContainer(item);
return container ? container[item.id] || 0 : 0;
};
and thought it might have something to do with that, but I don't know what to do with it.
Thanks!
EDIT: And if that's not possible, is there a way to check to see how many unique items there are in the inventory? Something I could use in a conditional argument?