YSA Classical ATB - Charge Interruptions Request

Script In Question http://www.rpgmakervxace.net/topic/865-ysa-battle-system-classical-atb/

This script has a skill charging system that allows skills to have an additional charge time once used. I want to be able to remove the target's current action during skill charging. Adding b.remove_current_action to the damage formula doesn't do anything. If someone is stunned while charging a skill, their charge bar is reset entirely but the skill continues to charge once the stun duration has ended. This is fine because I don't want to change how the stun state currently works.

What I want is the ability to create skills that removes the target's current action IF they're charging a skill (the red bar). I'm hoping you guys can help me out with this.
Script In Question http://www.rpgmakervxace.net/topic/865-ysa-battle-system-classical-atb/

This script has a skill charging system that allows skills to have an additional charge time once used. I want to be able to remove the target's current action during skill charging. Adding b.remove_current_action to the damage formula doesn't do anything. If someone is stunned while charging a skill, their charge bar is reset entirely but the skill continues to charge once the stun duration has ended. This is fine because I don't want to change how the stun state currently works.

What I want is the ability to create skills that removes the target's current action IF they're charging a skill (the red bar). I'm hoping you guys can help me out with this.
The CATB Clear Addon might help 🙂
Thanks.

Something's causing enemies to have instant charge times, so I'll have to figure that out first before testing it. Doesn't affect the player's charge time though. I was thinking it was a script incompatibility, but I disabled them all one by one (and all at once), saved the project and tested in a new game... I even replaced Classical ATB with a fresh download, and tested my settings in a separate project (which worked fine). -_-
Thanks.

Something's causing enemies to have instant charge times, so I'll have to figure that out first before testing it. Doesn't affect the player's charge time though. I was thinking it was a script incompatibility, but I disabled them all one by one (and all at once), saved the project and tested in a new game... I even replaced Classical ATB with a fresh download, and tested my settings in a separate project (which worked fine). -_-
You may want to send me your project(maybe via pm) so I can investigate the issue 🙂
I'd like to, but that won't be feasible til next week. I'm visiting my Dad out in the country; their satellite internet service has a crippling data limit.

Funny story:

Spoiler
I managed to reproduce the problem at some point, but I'm not sure what the exact conditions were. The strange thing is, setting up the scripts the exact same way(litterally coping them over one by one via Ctrl+C), seemed to fix the problem until I copied the skills list over. In both new and old projects, the only skill that would charge properly(if given a charge rate) was the default attack. The rest would fire off instantly when used by enemies.

I reverted back to the default skills list(in the new project) and the problem went away. I thought it might be the skills themselves, but that doesn't seem to be the case. I kept the default skills were they were and increased the skill limit enough to hold all of the custom skills I made into the new project. The problem was gone... I tried to replicate it again by reducing the skill limit and copying the skills over like the first time, but the problem didn't occur. I went into the data files of the old project and copied the old skills list over, but I still couldn't replicate the issue.

Now I have two projects with identical scripts and skills, one has the bug, the other doesn't.

Then I rearrange the scripts in the original project just for the hell of it. Now the problem's gone.  :distrust:   :troll:  
Long story short, my project trolled me... I'm gonna try out the script you recommended now.

Edit: Can't get it to work no matter what I do. The note tags, when applied to states, have no visible effect on the target whatsoever. An example on the usage of the notetags may be helpful, but I followed the instructions to the best of my ability to no avail. It's as if the script isn't even there...

I added the bug fixes to my script list. The 'b.remove_current_action' actually does something now, but not at all what I need it to. It just freezes the target permanently.

Edit 2: Here's what I've come up with.
 

x=a.damage(a,b,2473,0,1);if b.current_action.item.charge_on;b.clear_catb;x;else;x;end # only damage when trueb.current_action.item.charge_on ? b.clear_catb : a.damage(a,b,2473,0,1) # no damageb.clear_catb if b.current_action.item.charge_on; a.damage(a,b,2473,0,1) # damage only when trueAll of these pretty much do what I need them to do; that is remove the target's 'catb' charge ONLY if they're charging a skill. Problem is, I haven't been able to get the skill in question to deal damage whether the condition is met or not.

In short, I need this skill to deal damage regardless of if the condition for removing the target's charge is met or not.
I'd like to, but that won't be feasible til next week. I'm visiting my Dad out in the country; their satellite internet service has a crippling data limit.

Funny story:

Spoiler
I managed to reproduce the problem at some point, but I'm not sure what the exact conditions were. The strange thing is, setting up the scripts the exact same way(litterally coping them over one by one via Ctrl+C), seemed to fix the problem until I copied the skills list over. In both new and old projects, the only skill that would charge properly(if given a charge rate) was the default attack. The rest would fire off instantly when used by enemies.

I reverted back to the default skills list(in the new project) and the problem went away. I thought it might be the skills themselves, but that doesn't seem to be the case. I kept the default skills were they were and increased the skill limit enough to hold all of the custom skills I made into the new project. The problem was gone... I tried to replicate it again by reducing the skill limit and copying the skills over like the first time, but the problem didn't occur. I went into the data files of the old project and copied the old skills list over, but I still couldn't replicate the issue.

Now I have two projects with identical scripts and skills, one has the bug, the other doesn't.

Then I rearrange the scripts in the original project just for the hell of it. Now the problem's gone.  :distrust:   :troll:  
Spoiler
Long story short, my project trolled me... I'm gonna try out the script you recommended now.

Edit: Can't get it to work no matter what I do. The note tags, when applied to states, have no visible effect on the target whatsoever. An example on the usage of the notetags may be helpful, but I followed the instructions to the best of my ability to no avail. It's as if the script isn't even there...

I added the bug fixes to my script list. The 'b.remove_current_action' actually does something now, but not at all what I need it to. It just freezes the target permanently.

Edit 2: Here's what I've come up with.

x=a.damage(a,b,2473,0,1);if b.current_action.item.charge_on;b.clear_catb;x;else;x;end # only damage when trueb.current_action.item.charge_on ? b.clear_catb : a.damage(a,b,2473,0,1) # no damageb.clear_catb if b.current_action.item.charge_on; a.damage(a,b,2473,0,1) # damage only when trueAll of these pretty much do what I need them to do; that is remove the target's 'catb' charge ONLY if they're charging a skill. Problem is, I haven't been able to get the skill in question to deal damage whether the condition is met or not.

In short, I need this skill to deal damage regardless of if the condition for removing the target's charge is met or not.
Have you tried this?

<custom catb minus charge: 101>Then for skills/items clearing targets' actions, just add the state having that notetag and remove it immediately afterwards 🙂
Yes, I've tried it.

YSAClear_TEST1.PNGYSAClear_TEST2.PNGYSAClear_TEST3.PNG

Nothing happens when the state is added to the target.
I suspect that's a compatibility issue as you're using some other custom scripts(like Moghunter ones) as well. You may want to try to remove those scripts and check if anything changes, or send me your project via pm when you can 🙂
I'm just going to compromise for now. Since adding b.clear_catb to the damage formula does actually cancel the action. The skills that have this effect do also have cooldowns, and it differs from stun enough to justify its existence in-game. Sure the interruption can happen at anytime, but it's still much more useful on a target that's charging a skill. Even if removing removing scripts does fix the problem, it probably wouldn't be worth it. I don't want to get hung up over something so minor, so I'm moving forward.

Thanks for the support! 

Original thread: https://forums.rpgmakerweb.com/threads/ysa-classical-atb-charge-interruptions-request.41922/