The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: daheji on March 01, 2013, 07:39:23 PM

Title: [SOLVED] [VX] Cooldown on skills
Post by: daheji on March 01, 2013, 07:39:23 PM
Cooldown on skills
01/03/2013



English is not my native language. I'm french. Sorry if there are errors.

Summary
I need a script that enables skills to have cooldowns.
For exemple: Hero uses Sword Skills, he won't be able to use Sword Skill for two turns.

The cooldown has to reset after the battle ends.

I'm using SBS Tankentai: http://www.rpgmakervx.net/index.php?showtopic=3781
I'm not using the Active Time Battle though. Just the turn based battle.


The script I found so far that has a cooldown system for skills:
Recharge skill by Modern Algebra: http://rmrk.net/index.php?topic=41079.0
>>> It doesn't reset the cooldown after the end of the battle. I tried to look for something, but didn't know where to look. <<"
Cooldown Script by Dhoom: http://www.rpgrevolution.com/forums/index.php?showtopic=50083
>>> There's a bug when you select an action for an actor and then cancel it, the cooldown still decreases.
Yanfly YERD/YEZ Custom Skill effect: http://yanflychannel.wordpress.com/
>>> Compatiblity problem with SBS Tankentai.

Features Desired



Did you search?
Yes, please look above.

Where did you search?

What did you search for?

When the request is completed, I can draw some picture for you. http://daheji.deviantart.com/

Thank you for your time.
Title: Re: [VX] Cooldown on skills
Post by: Wiimeiser on March 01, 2013, 08:15:11 PM
Yanfly did one for VX Ace, but between Redux and Melody I don't think he ever did anything of the sort for VX...
Title: Re: [VX] Cooldown on skills
Post by: modern algebra on March 01, 2013, 10:00:36 PM
I updated my Recharge Skills (http://rmrk.net/index.php/topic,41079.0.html) script to v. 1.0.1 in an attempt to fix that bug you mentioned.

I did not test it and am not positive it will work with Tankentai, but let me know.
Title: Re: [VX] Cooldown on skills
Post by: daheji on March 01, 2013, 10:34:58 PM
Hi! Thank you for quick reply.

I have this error when the battle ends.

http://puu.sh/2au6k

Cooldown works in battle.
Title: Re: [VX] Cooldown on skills
Post by: modern algebra on March 02, 2013, 01:07:29 AM
Ah, right. Go to the identified line in the script and replace $game_actors with $game_party.members, so that the line is:

Code: [Select]
$game_party.members.each { |actor| actor.clear_skill_recharge }
Title: Re: [VX] Cooldown on skills
Post by: daheji on March 02, 2013, 01:23:33 AM
It works fine now.

Thank you very much!