Adjust Battle Wait
Version: 1
Author: Soulpour777
Date: March 2, 2015 (as this was posted)
Description
Changes the waiting time before attacking. Call it the effect of a reverse ATB if you may.
Features
- Changes the waiting time in battle.
Instructions
Instructions:
WAIT = 50
this is the initial wait method. As you can see, the waiting isn't that fast.
If you want to change the waiting time, do this in a script call in an event command:
set_battle_wait(time)
Script
# ============================================================================ #
# ◆ Adjust Battle Wait ◆
# Author: Soulpour777
# ---------------------------------------------------------------------------- #
# Description: This script changes the waiting time in battle. That's it.
# ---------------------------------------------------------------------------- #
# Instructions:
# WAIT = 50
# this is the initial wait method. As you can see, the waiting isn't that
# fast.
# If you want to change the waiting time, do this in a script call in an event
# command:
# set_battle_wait(time)
# where time is the battle waiting time you wish.
# ---------------------------------------------------------------------------- #
# Terms of Use:
# You are free to SHARE and REMIX the script and its all free.
# ---------------------------------------------------------------------------- #
# Author's Notes:
# To those who wishes to create an ATB, this is actually a sample guide. This
# is the basis of my ATB in a game I am making.
# ============================================================================ #
($imported ||= {})[:soulpour_abw_atb] = {
:name => 'Adjust Battle Wait',
:version => '1.0.0',
:author => ['Soulpour777'],
:date => '2015-02-27',
:id => :soulpour_abw_atb,
:enabled => true
}
($imported[:SCRIPT_LIST] ||= []) << $imported[:soulpour_abw_atb]
module Soulpour777
module AdjustBattleWait
WAIT = 50 # This is the initial wait method.
def set_battle_wait(time)
$game_system.battle_wait = [time, 0].max
end
end
end
class Game_Interpreter
#--------------------------------------------------------------------------
# * Include
#--------------------------------------------------------------------------
include Soulpour777::AdjustBattleWait
end
class Game_System
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_writer :battle_wait
def battle_wait
if @battle_wait != nil
return @battle_wait
else
return Soulpour777::AdjustBattleWait::WAIT
end
end
end
class Sprite_Battler < Sprite_Base
alias :soul_adjust_bat_wait_setup_new_effect :setup_new_effect
#--------------------------------------------------------------------------
# * Set New Effect
#--------------------------------------------------------------------------
def setup_new_effect
self.visible = true
soul_adjust_bat_wait_setup_new_effect
end
end
class Scene_Battle < Scene_Base
alias :soul_adjust_bat_scene_battle_wait_wait :wait
#--------------------------------------------------------------------------
# * Wait
#--------------------------------------------------------------------------
def wait(duration)
duration = [duration * $game_system.battle_wait / 100, 1].max
soul_adjust_bat_scene_battle_wait_wait(duration)
end
end
Credit
Support
For any support, please message or comment down.
Known Compatibility Issues
N / A
Author's Notes
To those who wishes to create an ATB, this is actually a sample guide. This is the basis of my ATB in a game I am making.
Terms of Use
You are free to SHARE and REMIX the script and its all free.