Item cooldown in battle?

Hi everyone,

I have an item that casts a spell on a random enemy during battle. This item sits in the inventory, like a healing potion. The attack is very strong, so the item should not be used continuously. That's why I want it to have a cooldown. Like, it can only be used once every 5 rounds.

As soon as a character uses it, it is blocked.

I use Yanfly's Skill Restrictions, which does just that, but only for skills. It does not work on items. In YSR, items can modify the cooldown of skills, but not have cooldowns themselves.

Does anyone know a script that allows me to set cooldowns for items (if possible, it should be compatible with YSR), or know how to extend YSR to do it?

Best regards

~Raen
Easy work around will be setting up the items as consumable by skill.

You will need a skill cost script for that.

http://hikimoki.sakura.ne.jp/rgss3/script_skill/tmskcost.rb
Easy work around will be setting up the items as consumable by skill.

You will need a skill cost script for that.

http://hikimoki.sakura.ne.jp/rgss3/script_skill/tmskcost.rb
Uh... ok... I have no idea what that script does, since I can't read Japanese.

Also, it's a persistent item. It does not get consumed when used.

Original thread: https://forums.rpgmakerweb.com/threads/item-cooldown-in-battle.47893/