Is it possible to add a cooldown for guarding

RPyro64

Villager
Member
Joined
Jan 22, 2022
Messages
11
Reaction score
4
First Language
English
Primarily Uses
RMMV
In my game, I've given Guarding some extra utility. However, to balance it, I wanted to give it a cooldown. However, it doesn't seem to be working with Yanfly's SkillCore and Skill Cooldowns. Is there a way to do this?
 

AphoticAmaranth

An Ordinary Human
Veteran
Joined
Mar 29, 2020
Messages
243
Reaction score
327
First Language
English
Primarily Uses
RMMV
You could have guard apply an invisible state to keep track of the cooldown, then use Victor's command replace to replace guard with a non-functional guard whenever that state is active ("guard" would be greyed out and unselectable)

Code:
<command replace: 'Guard', 'Guard'>
  result = a.isStateAffected(n); //replace n with the number of the cooldown state
</command replace>

 

Solar_Flare

Veteran
Veteran
Joined
Jun 6, 2020
Messages
702
Reaction score
297
First Language
English
Primarily Uses
RMMV
Is that second step even necessary? I'm pretty sure Guard will already be greyed out (or at least can't be selected) if you have a Skill Seal applied to Guard.
 

AphoticAmaranth

An Ordinary Human
Veteran
Joined
Mar 29, 2020
Messages
243
Reaction score
327
First Language
English
Primarily Uses
RMMV
Yeah you're right, I forgot seal skill was a thing lol.
 

Latest Threads

Latest Profile Posts

Firefly130984 wrote on WallCat's profile.
Hello, I would try to beta test your game.
Parallel I would write a guide.
I am already planning some games to make in Unite... I hope it gets a solid release date soon!
Remember to do even 0,01% progress on your game today! You can!

Forum statistics

Threads
122,130
Messages
1,146,773
Members
160,422
Latest member
AlftheflA
Top