MZ (Visustella) Remove all cooldowns and warmups?

Is it possible to remove all at once all cooldowns and warmups for all characters in the party?
There should be a plugin command for that!

1714772178019.png


Code:
Actor: Global Cooldown
- Change cooldowns for all skills for target(s).

  Step 1: Actor ID(s):
  - Select which Actor Target ID(s) to affect.

  Step 2: Operation:
  - Set the operation used. =, +, -, *, /, %

  Step 3: Value
  - Select the modifying value.
  - You may use JavaScript code.
Nice, thank you.
I tried and haven't seen anything for warmups. Any clue?
Hmmm, at least they seem to have a script call for the warmups:
$actorSetSkillWarmup(actorID, skillID, turns)

So I think going through a range of skills (1-99) for one actor:
for (let i = 1; i < 100; i++) {
$actorSetSkillWarmup(actorID, i, 0);
}

For all actors, I think you can just use forEach at the battlemembers array, to run that loop for them all, but I'm not 100% sure on the syntax.
Hmmm, at least they seem to have a script call for the warmups:
$actorSetSkillWarmup(actorID, skillID, turns)

So I think going through a range of skills (1-99) for one actor:
for (let i = 1; i < 100; i++) {
$actorSetSkillWarmup(actorID, i, 0);
}

For all actors, I think you can just use forEach at the battlemembers array, to run that loop for them all, but I'm not 100% sure on the syntax.

I tried this for actor 6 and their skills 383-384-385 and it didn't work. Did I do anything wrong?


for (let i = 383; i < 386; i++) {

$actorSetSkillWarmup(6, i, 0);

}
I don't have that particular plugin but I'd just start with spitting things out in the console to investigate if things are working at all. For example:

JavaScript:
for (let i = 383; i < 386; i++) {

console.log($actorGetSkillWarmup(actorID, skillID)); //should return the current warmup turns
$actorSetSkillWarmup(6, i, 0);

}
I added that in the common event attached to the skill, but it did nothing, what is it supposed to do?

EDIT: console log says this

1717135742816.png
Huh? That is unexpected... are you sure you have Skill Cooldowns VisuStella MZ installed?

what is it supposed to do?
You mean console.log()? It just... spits the content of whatever is inside the brackets to the console.
Yep sure.

1717137501720.png
I think those script calls were added in version 1.05. You need to update your plugin.
1717137719609.png
Thank you, it's probably the reason why, it's so hard to keep track of VS' updating.
it's so hard to keep track of VS' updating
It is... but at least with their paid plugins you can download just the plugin. With their core stuff you need to download the sample project every single time there is an update lol.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-remove-all-cooldowns-and-warmups.168313/