I want to set a cooldown for skills, but it’s not working.
I tried adding a variable and decrementing it by one in a common event, but the common event and other events keep alternating, causing infinite jumping or other issues.
Is there a better way to do this?
Example:
Bomb skill (add 600 to variable)
(If variable is >= 0) → Common event (decrement variable by 1) →
There is a “Timer” feature within actions, which allows you to increment or decrement any variable A. You can also set a stop condition, such as halting when the value reaches 0. Why not give it a try?
Example of Use
Prepare a cooldown variable for Skill A, named “Timer Variable A.”
When Skill A is activated, insert a command to start a countdown timer using Timer Variable A, set to begin at 10, and configure it to stop when it reaches 0.
By adding a condition to the link leading to the state that activates Skill A, requiring Timer Variable A to be 0, you can prevent the skill from being used if the cooldown has not yet finished.