Weapon Cooldown

Does anyone know of a script or some way of setting a weapon so that it can't be used every turn in battle?

I know that Yanfly has a script but it's for skills, and I'm looking specifically for weapons.

I'm trying to set up a set of pistols as weapons, and I want to make it so that one of the drawbacks to using it is that there is a pretty hefty cooldown, kind of like it has to be reloaded or re-cocked.

Any ideas?
None that I know of.. Weapons are equipped and normally not changed during battles so...
Hmmm, I just had an idea.

I created a state (images attached) that is applied to the user (hopefully) that should keep the player from attacking for a few turns.

Will this work, do you think?

State Page.png

Weapon Page.png
No. The "reloading" state will be applied to the enemy.

Edit: I noticed that your weapon adds a skill to the actor. If you wanted, you could add your reloading state to the actor upon using the skill with a damage formula.

Formula: a.add_state(15); a.atk * 4 - b.def * 2 
Darn it, I was afraid of that.

I'm trying to make it so that the weapon hits all enemies.

This is getting more complicated than I expected.

Sorry, I'm not entirely sure what you mean by that. Where would I input the formula?

Edit: Wait, I might have figured it out!

I used Yanfly's Weapon Attack Replace script and set the weapon to automatically use the skill that attacks all enemies.

Then, I set that skill to have a cooldown rate using Yanfly's Skill Restriction script, and I think it might have worked! 

I'll have to do some more testing tomorrow, but it currently looks like Yanfly's scripts fixed all of my problems.

Thanks!
When you go to  your "Skills" tab, it's on the upper right corner under "Type" and "Element".

The "Formula" text box of your "Bombardment" skill used to determine a skill's damage/healing output. Adding a.add_state(15); in front your damage formula, will add state #15 to the user of the skill.

If you're not familiar with damage formulas, I recommend you visit a few links and read up on them. They're very useful for custom skills.

http://rmvxace.wikia.com/wiki/Damage_Formula_Reference_Guide

http://www.rpgmakervxace.net/topic/8986-skill-ideas-you-can-do-with-custom-formula/

http://forums.rpgmakerweb.com/index.php?/topic/1143-how-to-make-the-most-of-custom-formulae-part-1/
Thanks, Rinobi, I'll do that.

You've probably just saved me from hours of future hassles.

Original thread: https://forums.rpgmakerweb.com/threads/weapon-cooldown.43202/