Did you know there's a hidden negative value for each parameters (attack, HP, agility and so on) ?
How to lock a parameter to NOT go below zero ? Note that it will stay at zero in game despite the negative value (except for max HP which will stay at 1).
Example for a better explanation : let's say I want to create a poisonous consumable item that lowers your agility parameter by 5, but the character has only 4 agility. In the menu, it will be at zero, but in the engine it will be at -1. Afterwards, the character finds a new consumable item that gives you +1 agility. If the player consumes it, the stat will stay at 0 in the menu so the player will think it didn't work.
Don't know if I'm clear enough.
Note : armors have the same bias for the defense stat. If defense of the character is at -100 in the game engine, putting on a +100 defense armor will NOT up defense, it will stay at zero.
How to lock a parameter to NOT go below zero ? Note that it will stay at zero in game despite the negative value (except for max HP which will stay at 1).
Example for a better explanation : let's say I want to create a poisonous consumable item that lowers your agility parameter by 5, but the character has only 4 agility. In the menu, it will be at zero, but in the engine it will be at -1. Afterwards, the character finds a new consumable item that gives you +1 agility. If the player consumes it, the stat will stay at 0 in the menu so the player will think it didn't work.
Don't know if I'm clear enough.
Note : armors have the same bias for the defense stat. If defense of the character is at -100 in the game engine, putting on a +100 defense armor will NOT up defense, it will stay at zero.