Negative Parameters

The request for a simple plugin to a negative value of the parameters. Now, with the emergence of new modifications of the battle (in particular Moogle_X - Accuracy Overflow) should reconsider the possibility of using parameters.
Its not clear what you want. You want the characters to have negative param values?
Yes, for example, Defence -30%
Thats likely not going to happen, for a number of reasons... Here is a few:

Parameters have a hard coded base value of 1 for hp and mp, and 0 for others, so it cant be lower, unless those hardcoded values are changed.

Skills use those stats, so -30 would require all the skill formulas to be redone.

you can already alter parameters by a percentage, so whats the point in making another way to do that.
Actually, it's 0 for MMP and 1 for everything else ^^
you can already alter parameters by a percentage, so whats the point in making another way to do that.
That's a pretty good reason.
Ahh yea, that sounds about right. To be fair to me, I only woke up 10 minutes ago 😛
Even for atk, mat, def, mdf?

They seem to be involved only in the calculation of the damage.
Those are actually the MOST used stats! Being used within classes, enemies, weapons, and also within the item/skill/state effects box thing - where you can set the parameter rate (the multiplier value that determines the total of parameters).

The least used stat is probably PHA. 🙂
This can easily be done, I do it for laws (my laws for map script) where HP can drop below 0 how ever I do check for that and make it 0 because of gauges. I could probably whip something up for you.

What is your use case like give me a situation where the atk or what not would fall below 0 and how that would affect battle
here HP can drop below 0 how ever I do check for that and make it 0 because of gauges
There's no reason to do that manually:

Code:
Game_BattlerBase.prototype.setHp = function(hp) {    this._hp = hp;    this.refresh();};
Code:
Game_BattlerBase.prototype.refresh = function() {    this.stateResistSet().forEach(function(stateId) {        this.eraseState(stateId);    }, this);    this._hp = this._hp.clamp(0, this.mhp);    this._mp = this._mp.clamp(0, this.mmp);    this._tp = this._tp.clamp(0, this.maxTp());};
also don't forget that it's only the actor base that has the limit - equipment can have negative values.


However, even if you get a plugin that allows this - the scripter will need to know your planned damage formulae because otherwise the results can be extremely strange.


Just as an example:


The base damage formula is 4*a.atk - 2*b.def


If you assign a value of -30 DEF like in your example, that DEF will increase the damage done to the target by 60 - is that really what you want?
There's no reason to do that manually:

Game_BattlerBase.prototype.setHp = function(hp) { this._hp = hp; this.refresh();};
Code:
Game_BattlerBase.prototype.refresh = function() {    this.stateResistSet().forEach(function(stateId) {        this.eraseState(stateId);    }, this);    this._hp = this._hp.clamp(0, this.mhp);    this._mp = this._mp.clamp(0, this.mmp);    this._tp = this._tp.clamp(0, this.maxTp());};
I do what I do because I do what I do.

also don't forget that it's only the actor base that has the limit - equipment can have negative values.

However, even if you get a plugin that allows this - the scripter will need to know your planned damage formulae because otherwise the results can be extremely strange.

Just as an example:

The base damage formula is 4*a.atk - 2*b.def

If you assign a value of -30 DEF like in your example, that DEF will increase the damage done to the target by 60 - is that really what you want?
this is a good point. For this i would probably have to change the way formulas work, accept they are evaled ... which i hate 
This can easily be done, I do it for laws (my laws for map script) where HP can drop below 0 how ever I do check for that and make it 0 because of gauges. I could probably whip something up for you.

What is your use case like give me a situation where the atk or what not would fall below 0 and how that would affect battle
Thank you! I thought of using it this way:

I want to change the following parameters: Attack, Defense, M.Attack, M.Defense, Agility and Luck.

1. The ability to set (and add \ subtract) starting values in the notes characters, items, weapons, armor and enemies.

2. Change the parameters using the plugin commands.
also don't forget that it's only the actor base that has the limit - equipment can have negative values.


However, even if you get a plugin that allows this - the scripter will need to know your planned damage formulae because otherwise the results can be extremely strange.


Just as an example:


The base damage formula is 4*a.atk - 2*b.def


If you assign a value of -30 DEF like in your example, that DEF will increase the damage done to the target by 60 - is that really what you want?
Sounds pretty logical: if you have negative def, you should get hurt more.
Just as an example:

The base damage formula is 4*a.atk - 2*b.def

If you assign a value of -30 DEF like in your example, that DEF will increase the damage done to the target by 60 - is that really what you want?
Yes, that's right) I have my own battle system and formulas.
Sounds pretty logical: if you have negative def, you should get hurt more.
Yeah, I mean it sounds logical but it seems like it would be quite overpowered...
I do what I do because I do what I do.
That does not mean what you do should be done!
That does not mean what you do should be done!
Ok, that just got really confusing  :dizzy:
DarknessFalls, ■ ᴆᴀřᴋ ᴆᴈᴋᴉᴦᴀ ■, please keep your comments to the request given - comments about preferred programming styles have nothing to do with this topic.

Original thread: https://forums.rpgmakerweb.com/threads/negative-parameters.51122/