MV Showing (not setting!) a STAT as ZERO

Hi everyone, complete beginner here!

I know that setting a stat to zero is a headache, it requires rewriting a bunch of stuff etc.
However, I would like some stats to show up as zero in the equipment and status menu, when the player is at the lowest level possible; essentially all I care about is the stat showing up as "0" even if, technically, it still is "1".

As you can imagine, I'm fine - from the technical side - with the stat starting at 1, I just want it to appear as 0 for immersion. The idea is that, unlike "strength" or "agility", those stats would be unavailable for any untrained character.

Is there a way to modify how stat show up in menus by just... lowering them by 1 point?

[edit] For clarity, by lowering by one point the number that appears in the menu, not the actual underlying value

-

Another question (even though this might get too complicated): is there a way to have stats not even show up in menus at all, if they've not already higher than "zero"?

I think this should be a matter of adding a few "-1" somewhere, and maybe a few lines of code here and there, but I'm too inexperienced to even gauge how much of a hassle this would be to achieve.
Is there a way to modify how stat show up in menus by just... lowering them by 1 point?
honestly at that point it would be easier to just let the stats be able to hit 0 imo. that is assuming your project doesnt directly divide something by a parameter at some point however
saving this as a .js file and adding it as a plugin would do it
Code:
Game_BattlerBase.prototype.paramMin = function() {
  return 0;
};
i might be overlooking some default engine feature that doesnt allow for a param value being 0, but nothing comes to mind atm

Another question (even though this might get too complicated): is there a way to have stats not even show up in menus at all, if they've not already higher than "zero"?
its possible, but thats going to need a number of adjustments to your UI's code in all the places that can draw stats, including menus added by plugins afaik
honestly at that point it would be easier to just let the stats be able to hit 0 imo. that is assuming your project doesnt directly divide something by a parameter at some point however
saving this as a .js file and adding it as a plugin would do it
Code:
Game_BattlerBase.prototype.paramMin = function() {
  return 0;
};
Thank you! I'll give that a go
Aren't there other risks with setting a stat to 0 though? Or does it only cause crashes if used directly by a plugin, event or skill damage formula?
if any part of your game uses a stat in a way that using 0 could be an issue, then it may cause an issue, formulas and plugins included.

The thing is though, the only thing in the default engine i can think of right now is the portion that calculates escape chance by dividing the party's starting agi by the troop's. But the editor doesnt let you set an enemy's agi to 0, and if the troop's total was reduced to 0 over the course of the battle, the game uses their starting agi and wouldnt get to use the 0
I know that setting a stat to zero is a headache, it requires rewriting a bunch of stuff etc.
Not really, it's just the one line of code Robro gave you 😉

Aren't there other risks with setting a stat to 0 though? Or does it only cause crashes if used directly by a plugin, event or skill damage formula?
I don't see any reason having a 0 would ever cause a crash. A number is a number.

The worst that would happen is if you divide by 0 someplace, which would result not necessarily in a crash but in non-numbers being introduced.

the only thing in the default engine i can think of right now is the portion that calculates escape chance by dividing the party's starting agi by the troop's.
There's also the hp/mp/tp rate functions, but it already error checks for those to be greater than 0. So I can't think of anyplace this would cause a problem unless you mess up in your damage formulae or have an entire enemy troop with their agility artificially defined as 0.

Original thread: https://forums.rpgmakerweb.com/threads/showing-not-setting-a-stat-as-zero.168779/