MV YEP's ATB system. Setting charge to X% or skill,common event to be used after input

Hello everyone, hope your all doing well. I need help with this plugin:


So one of the plugin note tags is set Charge to X or X% amount.

The sequence of the ATB gauge, is ATB fills up, you select a skill, then that skill has a charge time,

What I would like, is when the actor selects a skill, the skill is say, already 50% charged up.

Sadly there isn't a way in the plugin to do that.

There is a note tag to put in the skills "ATB CHARGE: targets, +X%" which increases the target charge by X% amount.

So I was looking around for something that when the player chooses the skill, then another skill players targeting the chosen actor to instantly change their Charge rate to X% amount.

So is there a way for Skill 6 (targets users to instantly change their charge rate) to trigger when choosing Skill 2 straight after input?

Also, I would like other skills to have different charge change rates.

so Skill 1 would have 50% charge when selected
skill 8 25% charge when selected.
Is there a reason you don't want to just increase the speed of the skill to cut the charge time?
To give more of a acurate countdown.

So at the moment with SRD's maker I manage to show numerical values of the charges counting down.

So skill 1 will charge down from 35
And skill 2 will charge down from 45
Does it work if you use like <chargePlus:X> notetag on the skills, and add to the function:

Game_Battler.prototype.setupATBCharge = function() {
if (this._bypassAtbEndTurn) return;
this.setATBCharging(true);
if (!this.currentAction()) this.makeActions();
if (this.currentAction()) {
var item = this.currentAction().item();
if (item) {
this._atbChargeMod = item.speed;
this._atbChargeMod += item.meta.chargePlus || 0;
} else {
this._atbChargeMod = 0;
}
} else {
this._atbChargeMod = 0;
}
this.setATBCharge(0);
this.setActionState('waiting');
};

EDIT: That's not a percentage, but like a number similar to speed where 2000 seems to charge it immediately (with default settings).

EDIT2: Actually, I don't think that does what you want LOL. That just acts similar to speed, but it doesn't set the gauge start.
Does it work if you use like <chargePlus:X> notetag on the skills, and add to the function:

Game_Battler.prototype.setupATBCharge = function() {
if (this._bypassAtbEndTurn) return;
this.setATBCharging(true);
if (!this.currentAction()) this.makeActions();
if (this.currentAction()) {
var item = this.currentAction().item();
if (item) {
this._atbChargeMod = item.speed;
this._atbChargeMod += item.meta.chargePlus || 0;
} else {
this._atbChargeMod = 0;
}
} else {
this._atbChargeMod = 0;
}
this.setATBCharge(0);
this.setActionState('waiting');
};

EDIT: That's not a percentage, but like a number similar to speed where 2000 seems to charge it immediately (with default settings).


I'll give it a try, sorry if this is a dumb question, but what do you mean by add to function?

So I post this in the notebox or add it to the plugin itself?
I meant add it as a plugin file and then put that notetag to notebox, but did you see my 2nd EDIT? I realized that I don't think that does what you want, like starting the gauge from already filled position. That just acts similar to speed...don't have the motivation to check how to try and start the gauge filled, but hopefully someone else can give you a solution.
ah just saw the 2nd edit,

thanks for the help so far.
Hmmm, actually I tested it, and it seems to work like this (using the <chargePlus:X> notetag, value of 1000 is like 50% with base settings). But yeah, I just gave it a quick test:

Game_Battler.prototype.setupATBCharge = function() {
if (this._bypassAtbEndTurn) return;
this.setATBCharging(true);
if (!this.currentAction()) this.makeActions();
if (this.currentAction()) {
var item = this.currentAction().item();
if (item) {
this._atbChargeMod = item.speed;
} else {
this._atbChargeMod = 0;
}
} else {
this._atbChargeMod = 0;
}
if (this.currentAction() && this.currentAction().item() && item.meta.chargePlus){
this.setATBCharge(item.meta.chargePlus);
} else {
this.setATBCharge(0);
}
this.setActionState('waiting');
};
Hmmm, actually I tested it, and it seems to work like this (using the <chargePlus:X> notetag, value of 1000 is like 50% with base settings). But yeah, I just gave it a quick test:

Game_Battler.prototype.setupATBCharge = function() {
if (this._bypassAtbEndTurn) return;
this.setATBCharging(true);
if (!this.currentAction()) this.makeActions();
if (this.currentAction()) {
var item = this.currentAction().item();
if (item) {
this._atbChargeMod = item.speed;
} else {
this._atbChargeMod = 0;
}
} else {
this._atbChargeMod = 0;
}
if (this.currentAction() && this.currentAction().item() && item.meta.chargePlus){
this.setATBCharge(item.meta.chargePlus);
} else {
this.setATBCharge(0);
}
this.setActionState('waiting');
};

My good sir it works like a charm! I thank you greatly! ^^
Great! Thread solved!

Original thread: https://forums.rpgmakerweb.com/threads/yeps-atb-system-setting-charge-to-x-or-skill-common-event-to-be-used-after-input.179174/