Hi, after trial and error i got a conclusion regarding the use of variables as param, I discarded this opinion.
Now I'm using the basic param, using "Strength" as attack, applying an algorithm that inrease the strength as final attack value.
If an actor have 20 strength he gets 69 attack, with 30 strength 198 instead.
now I must write the atk info in the yanfly status menu core under general infos, where hp, mp and attrib are shown(the first tab), how to add this?(I simply must add strength**etc etc(algorithm formula)
If someone understood this requests and knows this yanfly addon please suggest me the way i can script this ,thanks.
this is the code from yanfly script that writes character player on screen:
Window_StatusInfo.prototype.drawGeneralParam = function() {
var rect = new Rectangle();
rect.width = (this.contents.width - this.standardPadding()) / 2;
rect.y = this.lineHeight() * 2;
rect.height = this.lineHeight();
var dx = rect.x + this.textPadding();
var dw = rect.width - this.textPadding() * 2;
this.drawDarkRect(rect.x, rect.y, rect.width, rect.height);
this.changeTextColor(this.systemColor());
this.drawText(TextManager.level, dx, rect.y, dw, 'left');
this.changeTextColor(this.normalColor());
text = Yanfly.Util.toGroup(this._actor.level);
this.drawText(text, dx, rect.y, dw, 'right');
for (var i = 0; i < 8; ++i) {
if (i < 2) {
rect.y += this.lineHeight();
} else if (i === 2) {
rect.y += this.lineHeight();
rect.width /= 2;
dw = rect.width - this.textPadding() * 2;
} else if (i % 2 === 0) {
rect.x = 0;
dx = rect.x + this.textPadding();
rect.y += this.lineHeight();
} else {
rect.x += rect.width;
dx += rect.width;
}
this.drawDarkRect(rect.x, rect.y, rect.width, rect.height);
this.changeTextColor(this.systemColor());
this.drawText(TextManager.param(i), dx, rect.y, dw, 'left');
this.changeTextColor(this.normalColor());
text = Yanfly.Util.toGroup(this._actor.param(i));
this.drawText(text, dx, rect.y, dw, 'right');
}
i must add ""attack: "strength algorithm" ""
I remember that " attack" does not exist since the original attack value is the strength.
Now I'm using the basic param, using "Strength" as attack, applying an algorithm that inrease the strength as final attack value.
If an actor have 20 strength he gets 69 attack, with 30 strength 198 instead.
now I must write the atk info in the yanfly status menu core under general infos, where hp, mp and attrib are shown(the first tab), how to add this?(I simply must add strength**etc etc(algorithm formula)
If someone understood this requests and knows this yanfly addon please suggest me the way i can script this ,thanks.
this is the code from yanfly script that writes character player on screen:
Window_StatusInfo.prototype.drawGeneralParam = function() {
var rect = new Rectangle();
rect.width = (this.contents.width - this.standardPadding()) / 2;
rect.y = this.lineHeight() * 2;
rect.height = this.lineHeight();
var dx = rect.x + this.textPadding();
var dw = rect.width - this.textPadding() * 2;
this.drawDarkRect(rect.x, rect.y, rect.width, rect.height);
this.changeTextColor(this.systemColor());
this.drawText(TextManager.level, dx, rect.y, dw, 'left');
this.changeTextColor(this.normalColor());
text = Yanfly.Util.toGroup(this._actor.level);
this.drawText(text, dx, rect.y, dw, 'right');
for (var i = 0; i < 8; ++i) {
if (i < 2) {
rect.y += this.lineHeight();
} else if (i === 2) {
rect.y += this.lineHeight();
rect.width /= 2;
dw = rect.width - this.textPadding() * 2;
} else if (i % 2 === 0) {
rect.x = 0;
dx = rect.x + this.textPadding();
rect.y += this.lineHeight();
} else {
rect.x += rect.width;
dx += rect.width;
}
this.drawDarkRect(rect.x, rect.y, rect.width, rect.height);
this.changeTextColor(this.systemColor());
this.drawText(TextManager.param(i), dx, rect.y, dw, 'left');
this.changeTextColor(this.normalColor());
text = Yanfly.Util.toGroup(this._actor.param(i));
this.drawText(text, dx, rect.y, dw, 'right');
}
i must add ""attack: "strength algorithm" ""
I remember that " attack" does not exist since the original attack value is the strength.