MZ How to make the text from 100% to 0%?

Hey there i just wondering if i can change the text only for the parameter

Example: the game logic think that 100% = 0% the problem is how to make that 100% are 0% for text only

because i feel weird to read it that 100% are like 100% chance but the game logic think that 100% are 0%

if i lower it under 100% like 80%, the game think that the stat are like -20% but for the visual is like 80% not -20%

Example: If the MP cost are 80% the logic for the game is -20% consumption which mean that more efficient MP cost than normal

Hard to explain i know XD the simple explaination is

"How to make that 100% text to 0% text so it will not mislead the understanding about the stat"

Im using Visustella plugin for the parameters
1723346984992.png


I want to make it like this
1723347347544.png

The text and logic are same like i want
It would help if you said which VisuStella plugin you're using and which screen you see this on.

Most of the VisuStella plugins with menu screens have plugin parameters with the JavaScript for those screens so you can customize them, but we need to know where to look.

I will point out that your stated intent is incorrect. You would need to add + and - symbols in addition to changing how the percentage is displayed, because - grammatically and mathematically - saying 0% EXP Gain means you're not gaining any experience. 80% MP Cost does, in fact, mean you're spending 80% of the MP. Just because you got confused between something saying you have 100% of a value and you interpreted it as +100% doesn't mean your players will 😉
It would help if you said which VisuStella plugin you're using and which screen you see this on.

Most of the VisuStella plugins with menu screens have plugin parameters with the JavaScript for those screens so you can customize them, but we need to know where to look.

I will point out that your stated intent is incorrect. You would need to add + and - symbols in addition to changing how the percentage is displayed, because - grammatically and mathematically - saying 0% EXP Gain means you're not gaining any experience. 80% MP Cost does, in fact, mean you're spending 80% of the MP. Just because you got confused between something saying you have 100% of a value and you interpreted it as +100% doesn't mean your players will 😉
im using Element and Status core for the plugin
you have a different problem here as well.

if you go to the parameters in the database, you'll see a difference between those parameters.

Some parameters have a + sign to their number - those are additive parameters with a bease of 0%
Other parameters have a * sign to their number - those are multiplicative parameters with a base of 100%

that is the reason for the different numbers and displays. adding zero doesn't change anything, and multiplicating by 100% doesn't either.

however the differences come when you have multiple effects on your equipment:

a damage resistance of 80% is a reduction by a total of 20% damage. But if you have two equipments with 80% damage each, the total reduction is 80% * 80% = 64%of the damage dealt.

If you were to change the numbers to what you want, the result would display like
-20% + (-20%) = -36%
and that would be much more confusing to the player.

and changing the multiplicative parameters to additives is much more problematic, because there is a reason why those are multiplicative - multiplication can never go below zero, but addition can - and negative damage means healing.
Hey there i just wondering if i can change the text only for the parameter

Example: the game logic think that 100% = 0% the problem is how to make that 100% are 0% for text only

because i feel weird to read it that 100% are like 100% chance but the game logic think that 100% are 0%

if i lower it under 100% the game think that the stat are like -20%

Example: If the MP cost are 80% the logic for the game is -20% consumption which mean that more efficient MP cost than normal

Hard to explain i know XD the simple explaination is

"How to make that 100% text to 0% text so it will not mislead the understanding about the stat"

Im using Visustella plugin for the parameters
View attachment 314329

I want to make it like this
View attachment 314330
The text and logic are same like i want

Plugin Manager > VisuMZ_1_ElementStatusCore > Status Menu Categories > parameters > REPLACE CODE WITH THIS:

Spoiler: REPLACE CODE
Code:
// Declare Constants
const lineHeight = this.lineHeight();
const gaugeLineHeight = this.gaugeLineHeight();
const basicDataHeight = this.basicDataHeight();
const padding = this.itemPadding() * 2;
const thirdWidth = Math.floor(this.innerWidth / 3);
const actor = $gameActors.actor(this._actor._actorId);
let x = 0;
let y = 0;
let paramWidth = 0;

// Draw Actor Graphic
this.drawActorGraphic(0, this.innerWidth / 2);

// Declare Parameter Rect
let rect = new Rectangle(0, 0, thirdWidth, this.innerHeight);

// Declare Parameters
const params1 = this.getParameterList(1);
const params2 = this.getParameterList(2);
const params3 = this.getParameterList(3);

const maxLength = Math.max(params1.length, params2.length, params3.length);
const nameWidth = rect.width - padding * 2 - this.textWidth('88888');
const topY = Math.max((this.innerHeight - (maxLength * lineHeight)) / 2, 0);

// Draw Parameters 1
x = rect.x + padding;
y = topY;
paramWidth = rect.width - (padding * 2);
if (y !== 0) this.drawItemDarkRect(rect.x, 0, rect.width, y);
for (const paramId of params1) {
    this.drawItemDarkRect(rect.x, y, rect.width, lineHeight);
    this.drawParamName(paramId, x, y, nameWidth);
    this.drawParamValue(paramId, x, y, paramWidth);
    y += lineHeight;
}
this.drawItemDarkRect(rect.x, y, rect.width, this.innerHeight - y);

// Draw Parameters 2
rect.x += rect.width;
x = rect.x + padding;
y = topY;
paramWidth = rect.width - (padding * 2);
if (y !== 0) this.drawItemDarkRect(rect.x, 0, rect.width, y);
for (const paramId of params2) {
    this.drawItemDarkRect(rect.x, y, rect.width, lineHeight);
    this.drawParamName(paramId, x, y, nameWidth);
    this.drawParamValue(paramId, x, y, paramWidth) - 100;
    y += lineHeight;
}
this.drawItemDarkRect(rect.x, y, rect.width, this.innerHeight - y);

// Draw Parameters 3
rect.x += rect.width;
rect.width = this.innerWidth - rect.x;
x = rect.x + padding;
y = topY;
paramWidth = rect.width - (padding * 2);
if (y !== 0) this.drawItemDarkRect(rect.x, 0, rect.width, y);
for (const paramId of params3) {
    this.drawItemDarkRect(rect.x, y, rect.width, lineHeight);
    this.drawParamName(paramId, x, y, nameWidth);
    //this.drawParamValue(paramId, x, y, paramWidth);
    this.drawText(((actor.paramValueByName(paramId) - 1) * 100) + '%', x - padding / 2, y, paramWidth, 'right');
    y += lineHeight;
}
you have a different problem here as well.

if you go to the parameters in the database, you'll see a difference between those parameters.

Some parameters have a + sign to their number - those are additive parameters with a bease of 0%
Other parameters have a * sign to their number - those are multiplicative parameters with a base of 100%

that is the reason for the different numbers and displays. adding zero doesn't change anything, and multiplicating by 100% doesn't either.

however the differences come when you have multiple effects on your equipment:

a damage resistance of 80% is a reduction by a total of 20% damage. But if you have two equipments with 80% damage each, the total reduction is 80% * 80% = 64%of the damage dealt.

If you were to change the numbers to what you want, the result would display like
-20% + (-20%) = -36%
and that would be much more confusing to the player.

and changing the multiplicative parameters to additives is much more problematic, because there is a reason why those are multiplicative - multiplication can never go below zero, but addition can - and negative damage means healing.
So you mean it cannot change the text only but must the variable?

Uhh.. idk if it confusing the player or not but it's like

Example: The equipment have their own stat like

Base Stat
HP 1000
MP 30
MP Cost 0%

Equipment:
HP +400
MP +20
MP Cost Reduction -5%

This is for the Equipment stat

When it applied it should be

on this case i want to change the "Text" for % and the stat should be


After Equip
HP 1400
MP 50
MP Cost Reduction -5%

let say that 0% = 100%

i want to change that 100% to 0% "Text" only is it posssible?

the logic are same just want to change visual only for the calculation
Plugin Manager > VisuMZ_1_ElementStatusCore > Status Menu Categories > parameters > REPLACE CODE WITH THIS:

Spoiler: REPLACE CODE
Code:
// Declare Constants
const lineHeight = this.lineHeight();
const gaugeLineHeight = this.gaugeLineHeight();
const basicDataHeight = this.basicDataHeight();
const padding = this.itemPadding() * 2;
const thirdWidth = Math.floor(this.innerWidth / 3);
const actor = $gameActors.actor(this._actor._actorId);
let x = 0;
let y = 0;
let paramWidth = 0;

// Draw Actor Graphic
this.drawActorGraphic(0, this.innerWidth / 2);

// Declare Parameter Rect
let rect = new Rectangle(0, 0, thirdWidth, this.innerHeight);

// Declare Parameters
const params1 = this.getParameterList(1);
const params2 = this.getParameterList(2);
const params3 = this.getParameterList(3);

const maxLength = Math.max(params1.length, params2.length, params3.length);
const nameWidth = rect.width - padding * 2 - this.textWidth('88888');
const topY = Math.max((this.innerHeight - (maxLength * lineHeight)) / 2, 0);

// Draw Parameters 1
x = rect.x + padding;
y = topY;
paramWidth = rect.width - (padding * 2);
if (y !== 0) this.drawItemDarkRect(rect.x, 0, rect.width, y);
for (const paramId of params1) {
    this.drawItemDarkRect(rect.x, y, rect.width, lineHeight);
    this.drawParamName(paramId, x, y, nameWidth);
    this.drawParamValue(paramId, x, y, paramWidth);
    y += lineHeight;
}
this.drawItemDarkRect(rect.x, y, rect.width, this.innerHeight - y);

// Draw Parameters 2
rect.x += rect.width;
x = rect.x + padding;
y = topY;
paramWidth = rect.width - (padding * 2);
if (y !== 0) this.drawItemDarkRect(rect.x, 0, rect.width, y);
for (const paramId of params2) {
    this.drawItemDarkRect(rect.x, y, rect.width, lineHeight);
    this.drawParamName(paramId, x, y, nameWidth);
    this.drawParamValue(paramId, x, y, paramWidth) - 100;
    y += lineHeight;
}
this.drawItemDarkRect(rect.x, y, rect.width, this.innerHeight - y);

// Draw Parameters 3
rect.x += rect.width;
rect.width = this.innerWidth - rect.x;
x = rect.x + padding;
y = topY;
paramWidth = rect.width - (padding * 2);
if (y !== 0) this.drawItemDarkRect(rect.x, 0, rect.width, y);
for (const paramId of params3) {
    this.drawItemDarkRect(rect.x, y, rect.width, lineHeight);
    this.drawParamName(paramId, x, y, nameWidth);
    //this.drawParamValue(paramId, x, y, paramWidth);
    this.drawText(((actor.paramValueByName(paramId) - 1) * 100) + '%', x - padding / 2, y, paramWidth, 'right');
    y += lineHeight;
}
Yes this is what im looking for XD thank you so much!

Here is the result
1723366589217.png


Without exp buff 14%
1723366505718.png


1723366627394.png


With exp buff 14%
1723366804563.png


MP Cost Reduction
1723367144306.png

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-the-text-from-100-to-0.171000/