SkillCooldowns & Charge Action compatibility

Hi fellow game makers,

I kinda found a compatibilty problem between Yanflys Skill Cooldown plugin and Victor's Charge Action plugin.


Skill Cooldown Plugin:

http://yanfly.moe/20...kill-cooldowns/

Charge Actions Plugin:
https://victorengine...charge-actions/


The problem is - for some reason - that if the Charging Action, has a Cooldown of more than 1 Turn,
somehow the actual skill will never be released.
My theory after a bunch of testing is:
1.Player selects skill
2.Character charges skill
3.Skill goes on cooldown and LOCKS!
3.enemies attack
4.player can't select new input (intended!)
5.game tries to use skill but can't because its locked with a cooldown.
6.game stops doing anything and remains in the state of confusion.
(no error messages occure)

As soon as I remove either the 'charge action' tags or the 'cooldown' tags
of the skill, its works perfectly fine, but if I combo both together - the game
freezes (kinda... everything still runs, animations play, but it just stops working... or I guess 'proceeding').

I already tried to fix the problem by applying a state to the actor through the damage formular
that then increases the cooldown of my skill - it would have worked, but it doesn't because
the cooldown script only checks for states at the start of a battle and does not refresh the base
cooldown in the middle of battle. I also had the idea, that the skill itself could reduce its own cooldown
instantly by '- X' and then later apply it again through the state, but it doesn't seem that those changes
had any impact at all.

It is really essential for balancing in my game that both these scripts work together, most
strong abilties need to charge 1 turn and then need a cooldown too, because else they would
be too broken, I really can't fix this balancing problem by increasing manacost etc. because it would
mess with all the other skills design.

My suggestions to fix the issue are pretty simple - atleast I think that they are:
1. Give the plugin user the option to delay the start of a cooldown by X turns.
2. Make the 'charge action' plugin ignore all skill locks happening in the actual turn the skill gets executed.

These are only my theories though - maybe there is a whole other problem, but as far as I have tested now and as
far as I can imagine problems, this sounds most plausible to me.

Hopefully someone can help me!
:hsad:
bump
Try this as a test:

<After Eval>
user.setCooldown(skillid,turns)
</After Eval>

The Cooldown tag have lots of bugs, for example l had to use that script call because if a skill have the same name as another skill, the cooldown will affects both skills even though they have nothing in common.
omg it worked! dude u saved me <3 thanks so much !!!
I think this thread can be closed, I did a bounch of testing I think there shouldn't be any more bugs appearing!
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/skillcooldowns-charge-action-compatibility.74394/