Equipping items question.

I'm trying to alter the equipping code so that the player can't equip an item if doing so would reduce a particular stat below 0. I thougt I would add a line to the canEquip function in rpg_objects, so that it would return false if the item would (you get the idea),

anyway that resulted in being unable to equip items that would reduce the stat to a point where equipping a second copy of the item would reduce it below zero.
ie you have 7 in a stat, and the item has a -4 bonus, you would be unable to equip it.

Not sure why, I think it might be automatically unequipping items.

any ideas?
I don't think you can even go below 0 in a parameter can you?
I don't think you can even go below 0 in a parameter can you?
1) you can with plugins:

2) that has nothing to do with the question, as (actor.param(n) + item.params[n]) is still the addition of 2 integers and follows all the relevant math rules, regardless of what the engine says is the minimum value for the parameters.

Original thread: https://forums.rpgmakerweb.com/threads/equipping-items-question.83793/