RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[SOLVED] [VX] Cooldown on skills

Started by daheji, March 01, 2013, 07:39:23 PM

0 Members and 1 Guest are viewing this topic.

daheji

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

  • Cooldown reset after end of each battle
  • Cooldown is to be shown next to the skills in the skill windows in a different color when in battle
  • If possible, I would like this script to use notetags
  • Only the skills need cooldowns. Items and weapons won't have cooldown





Did you search?
Yes, please look above.

Where did you search?

  • rmrk
  • rpgmakervx
  • google

What did you search for?

  • rpg maker vx
  • cooldown
  • recharge

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

Thank you for your time.

Wiimeiser

Yanfly did one for VX Ace, but between Redux and Melody I don't think he ever did anything of the sort for VX...

modern algebra

I updated my Recharge Skills 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.

daheji

Hi! Thank you for quick reply.

I have this error when the battle ends.

http://puu.sh/2au6k

Cooldown works in battle.

modern algebra

Ah, right. Go to the identified line in the script and replace $game_actors with $game_party.members, so that the line is:


$game_party.members.each { |actor| actor.clear_skill_recharge }

daheji

It works fine now.

Thank you very much!