Is it possible to remove all at once all cooldowns and warmups for all characters in the party?
MZ (Visustella) Remove all cooldowns and warmups?
Javascript/Plugin SupportThere should be a plugin command for that!
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?
I tried and haven't seen anything for warmups. Any clue?
Hmmm, at least they seem to have a script call for the warmups:
So I think going through a range of skills (1-99) for one actor:
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.
$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
EDIT: console log says this
Huh? That is unexpected... are you sure you have Skill Cooldowns VisuStella MZ installed?
You mean console.log()? It just... spits the content of whatever is inside the brackets to the console.
Yep sure.
I think those script calls were added in version 1.05. You need to update your plugin.
Thank you, it's probably the reason why, 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/