DoubleX RMVXA Cooldown Addon to YSA Battle System: Classical ATB


DoubleX RMVXA Cooldown Addon v1.04m to YSA Battle System: Classical ATB
​


by DoubleX
​




Prerequisites


DoubleX RMVXA Bug Fixes to YSA Battle System: Classical ATB


YSA Battle System: Classical ATB(Created by Yami)


Introduction


With this script, users can set specific skills or items to force the whole battler to cooldown at x% rate(similar to charge rate) after using them. He/she/it can't act(even if their atb bar are still full) and his/her/its atb bar won't fill up before finishing cooldown.

Spoiler
Spoiler




#==============================================================================|
# ** You only need to edit this part as it's about what this script does |
#------------------------------------------------------------------------------|

#------------------------------------------------------------------------------|
# * Skill/Item Notetags🙁skill/item notebox in the database) |
# - <cooldown rate: x%> |
# Sets cooldown time for the whole battler after using skills or items with |
# this notetag. He/she/it'll be cooled down at normal ATB filled speed * x%,|
# meaning he/she/it'll be cooled down at x% rate. |
#------------------------------------------------------------------------------|

module DoubleX_RMVXA
module YSA_CATB_Cooldown_Addon

# Sets the cooldown gauge color, default = 26, 27
COOLDOWN_COLOR1 = 26
COOLDOWN_COLOR2 = 27
# (v1.03a+) Use rgba values instead of text colors, default = unused
#COOLDOWN_COLOR1 = Color.new(0, 0, 0, 0)
#COOLDOWN_COLOR2 = Color.new(0, 0, 0, 0)
#

end # YSA_CATB_Cooldown_Addon
end # DoubleX_RMVXA

#==============================================================================|



Video










Features
Use of notetags(requires knowledge of notetag usage) to set specific skills or items to force the whole battler to cooldown at x% rate after using them

How to use
Open the script editor and put this script into an open slot between the script DoubleX RMVXA Bug Fixes to YSA Battle System: Classical ATB and Main. Save to take effect.

FAQ
None

Credit and Thanks
DoubleX(Giving me credit is completely optional)
The terms of use are the same as that of YSA Battle System: Classical ATB except that you must also give Yami credit(you should do this anyway) if you give DoubleX or his alias credit
 
Compatibility
Same as that of YSA Battle System: Classical ATB
 
Changelog


v1.04m(GMT 1300 1-4-2016):


- Fixed the command guard cooldown rate bug again


v1.04l(GMT 1400 15-12-2015):


- Fixed setting the wrong actor's item_cooldown upon action input confirm


v1.04k(GMT 1200 16-11-2015):


- Fixed nil @item_cooldown bug for confused and/or atuobattle actors


v1.04j(GMT 1200 26-2-2015):


- Fixed the default and command guard cooldown rate bug


- Increased the efficiency of this script


v1.04i(GMT 1200 25-2-2015):


- Fixed the Actor Personal Hotkeys bug in picking the prior and next actor


- Increased the efficiency of this script


v1.04h(GMT 1300 2-2-2015):


- Fixed the cooldown actors being able to be selected bug


v1.04g(GMT 0700 3-12-2014):


- Updated compatibility with DoubleX RMVXA Color Addon to YSA Battle System: Classical ATB


v1.04f(GMT 0300 6-9-2014):


- Compatible with Yanfly Engine Ace - Lunatic States


v1.04e(GMT 0200 20-8-2014):


- Included the battlers escape bug fix


v1.04d(GMT 0100 11-8-2014):


- Compatible with Yanfly Engine Ace - Skill Restrictions


v1.04c(GMT 1200 29-7-2014):


- Updated the compatibility with DoubleX RMVXA Color Addon to YSA Battle System: Classical ATB


v1.04b(GMT 1000 30-6-2014):


- Compatible with


  DoubleX RMVXA Action Addon to YSA Battle System: Classical ATB


  DoubleX RMVXA Percentage Addon to YSA Battle System: Classical ATB


v1.04a(GMT 0100 9-4-2014):


- Compatible with Yanfly Engine Ace - Instant Cast


v1.03a(GMT 0500 10-3-2014):


- COOLDOWN_COLOR can use rgba values also


v1.02b(GMT 1100 5-2-2014):


- Compatible with DoubleX RMVXA Color Addon to YSA Battle System: Classical ATB


v1.01b(GMT 1500 26-1-2014):


- Compatible with Actor Personal Hotkeys and fixed cooldown bug


v1.00b(GMT 0300 22-1-2014):


- Fixed bugs in cooldown and selection of actors in the status window


v1.00a (GMT 1600 9-1-2014):


- 1st version of this script finished


View attachment (DoubleX)YSA CATB Cooldown Addon v1.04m.rar
Updates

v1.04h(GMT 1300 2-2-2015):

- Fixed the cooldown actors being able to be selected bug
Updates

v1.04j(GMT 1200 26-2-2015):

- Fixed the default and command guard cooldown rate bug

- Increased the efficiency of this script

v1.04i(GMT 1200 25-2-2015):

- Fixed the Actor Personal Hotkeys bug in picking the prior and next actor

- Increased the efficiency of this script
Hi I am getting an error when I use this addon for Yami's CATB. The error occurs after an action that is forced by a state such as: confuse. So if I make a state that forces you to attack an ally or an enemy. The attack animation plays then it crashes with this error. Can you please help?

"Script 'DoublX Cooldown' line 248: NoMethodError ocurred.
undefined method '>' for nil:NilClass"

 

         def make_cd_catb_update

              return unless @cd_catb_value > 0 && movable?

248-->    return @cd_catb_value = 0 unless @item_cooldown > 0

              value = $imported["YSA-LunaticCATBRate"] ? lunatic_catb_rate_formula : real_gain_catb

              @cd_catb_value -= [value * @item_cooldown / 100, @cd_catb_value].min

         end # make_cd_catb_update

I am using in this order: Yanfly ace battle engine. yanfly crit fix, Yamicatb, doublex catb bug fixes, double x color add on. double x cooldown, below is Yami's battle engine symphony.


 
Updates

v1.04k(GMT 1200 16-11-2015):

- Fixed nil @item_cooldown bug for confused and/or atuobattle actors
Updates

v1.04l(GMT 1400 15-12-2015):

- Fixed setting the wrong actor's item_cooldown upon action input confirm
Updates


v1.04m(GMT 1300 1-4-2016):


- Fixed the command guard cooldown rate bug again

Original thread: https://forums.rpgmakerweb.com/threads/doublex-rmvxa-cooldown-addon-to-ysa-battle-system-classical-atb.22231/