Falcao Pearl ABS Liquid v3 - Cooldown Stopper
Falcao Pearl ABS Liquid v3 - Cooldown Stopperby: IneptAttorney
Description
This script allow you to stop the cooldown of Tools and State by using switch. For Falcao Pearl ABS Liquid v3.
Terms Of Use
Free for Commercial and non-commercial project. Remember to give me a credit on your project.
Script
Spoiler Ruby:
#===============================================================================
# * Falcao Pearl ABS Liquid V3 Cooldown Stopper
#===============================================================================
# Author: IneptAttorney
# Date: 22 July 2020
# Required: Falcao Pearl ABS Liquid v3
#===============================================================================
# * Description
# This script allows you to stop the cooldown of equipment or state by using a
# switch.
#===============================================================================
# * Terms of Use
# Credit IneptAttorney on your project! Free for commercial and non-commercial
# Project.
#===============================================================================
# * Usage
# Set the configuration Below. Turn on the switch to stop the cooldown of the
# tools.
#===============================================================================
module INEPTATTRNY
#----------------------------------------------------
# * Switch to stop Skills Cooldown
#----------------------------------------------------
SKILL_CD_SWITCH = 1
#----------------------------------------------------
# * Switch to stop Items Cooldown
#----------------------------------------------------
ITEM_CD_SWITCH = 2
#----------------------------------------------------
# * Switch to stop Weapons Cooldown
#----------------------------------------------------
WEAPON_CD_SWITCH = 3
#----------------------------------------------------
# * Switch to stop Armors Cooldown
#----------------------------------------------------
ARMOR_CD_SWITCH = 4
#----------------------------------------------------
# * Switch to stop States Cooldown
#----------------------------------------------------
STATE_CD_SWITCH = 5
end
#===============================================================================
# * Configuration Ends!
#===============================================================================
class Game_CharacterBase
def update_state_action_steps
for state in battler.states
if state.remove_by_walking
if !battler.state_steps.nil? &&
battler.state_steps > 0
battler.state_steps -= 1 if $game_switches == false
end
if battler.state_steps == 0
battler.remove_state(state.id)
pop_damage
end
end
if state.restriction == 4
@stopped_movement = 10
@pattern = 2 if @knockdown_data == 0
end
state.features.each do |feature|
if feature.code == 22
@knockdown_data =10 if state.restriction == 4 && feature.data_id==1
next unless feature.data_id.between?(7, 9)
apply_regen_state(state, feature.data_id)
end
end
end
end
end
#===============================================================================
class << Input
# cooldown update
def eval_cooldown(operand)
for sub in operand
if $game_switches == false
sub.skill_cooldown.each {|sid, sv| # skill
if sub.skill_cooldown > 0
sub.skill_cooldown -= 1
sub.skill_cooldown.delete(sid) if sub.skill_cooldown == 0
end}
end
if $game_switches == false
sub.item_cooldown.each {|iid, iv| # item
if sub.item_cooldown > 0
sub.item_cooldown -= 1
sub.item_cooldown.delete(iid) if sub.item_cooldown == 0
end}
end
if $game_switches == false
sub.weapon_cooldown.each {|wid, wv| # weapon
if sub.weapon_cooldown > 0
sub.weapon_cooldown -= 1
sub.weapon_cooldown.delete(wid) if sub.weapon_cooldown == 0
end}
end
if $game_switches == false
sub.armor_cooldown.each {|aid, av| #armor
if sub.armor_cooldown > 0
sub.armor_cooldown -= 1
sub.armor_cooldown.delete(aid) if sub.armor_cooldown == 0
end}
end
end
end
end
Credits
[*]Enterbrain
[*]Falcao
[*]Ineptattorney
本贴来自国际rpgmaker官方论坛作者:IneptAttoney处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/falcao-pearl-abs-liquid-v3-cooldown-stopper.124340/
页:
[1]