Using YEP's Cooldown, which works with skill tags, is it possible to apply a cooldown to a specific spell without having to cast it first?
MV Apply YEP's Cooldown to spell without casting it?
Javascript/Plugin Support
Code:
battler.setCooldown(x, y);
Pardon my ignorance, but this got me wildly confused.
If I want skill 11 to have a cooldown of 2, would this work?
battler.setCooldown(11, 2)
Yes, with a valid battler reference. It depends on what exactly youre trying to do though.
For example, if you wanted skill 99 to put the user's skill 100 on a 3 turn cooldown, then within an <after eval> notetag inside skill 99's notebox, youd write "user.setCooldown(100, 3)". that notetag lets you reference the user by "user" and the target by "target" automatically
If you wanted to place a cool down on party member 2's or actor 3' skill through script, youd have to use "$gameParty.members()[1] and $gameActors.actor(3) as your references respectively. Hopefully that clears it up
For example, if you wanted skill 99 to put the user's skill 100 on a 3 turn cooldown, then within an <after eval> notetag inside skill 99's notebox, youd write "user.setCooldown(100, 3)". that notetag lets you reference the user by "user" and the target by "target" automatically
If you wanted to place a cool down on party member 2's or actor 3' skill through script, youd have to use "$gameParty.members()[1] and $gameActors.actor(3) as your references respectively. Hopefully that clears it up
Original thread: https://forums.rpgmakerweb.com/threads/apply-yeps-cooldown-to-spell-without-casting-it.165284/