#==============================================================================
# Battle Screen Tone Change for RMVX
#==============================================================================
# By Nechigawara Sanzenin
# WARNING!! : This script can use on RPG Maker VX Only!! (XP Not Support)
#==============================================================================
# Change Battle Screen Tone before Battle start
#==============================================================================
=begin
How to Use:
You have to add "$game_system.set_battle_color([red,green,blue,gray])"
in Call Script to change Battle Screen Tone.
You have to add "$game_system.reset_battle_color"
in Call Script to reset Battle Screen Tone.
You have to add "$game_system.battle_time = {Time}"
in Call Script to change wait time delays.
=end
#==============================================================================
class Game_System
attr_accessor :battle_red
attr_accessor :battle_green
attr_accessor :battle_blue
attr_accessor :battle_gray
attr_accessor :battle_time
#--------------------------------------------------------------------------
alias inc_initialize initialize
def initialize
inc_initialize
@battle_red = 0
@battle_green = 0
@battle_blue = 0
@battle_gray = 0
@battle_time = 0
end
#--------------------------------------------------------------------------
def set_battle_color(color)
return if color.is_a?(Array) == false
@battle_red = (color[0] == nil ? 0 : color[0])
@battle_green = (color[1] == nil ? 0 : color[1])
@battle_blue = (color[2] == nil ? 0 : color[2])
@battle_gray = (color[3] == nil ? 0 : color[3])
end
#--------------------------------------------------------------------------
def reset_battle_color
@battle_red = 0
@battle_green = 0
@battle_blue = 0
@battle_gray = 0
end
end
#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
# This class performs the map screen processing.
#==============================================================================
class Scene_Map < Scene_Base
#--------------------------------------------------------------------------
def call_battle
@spriteset.update
Graphics.update
$game_player.make_encounter_count
$game_player.straighten
$game_temp.map_bgm = RPG::BGM.last
$game_temp.map_bgs = RPG::BGS.last
RPG::BGM.stop
RPG::BGS.stop
Sound.play_battle_start
$game_system.battle_bgm.play
$game_temp.next_scene = nil
$scene = Scene_Battle.new
red = $game_system.battle_red
green = $game_system.battle_green
blue = $game_system.battle_blue
gray = $game_system.battle_gray
color = Tone.new(red, green, blue, gray)
time = $game_system.battle_time
$game_troop.screen.start_tone_change(color,time)
end
#--------------------------------------------------------------------------
end
끝
How to Use:
You have to add "$game_system.set_battle_color([red,green,blue,gray])"
in Call Script to change Battle Screen Tone.
You have to add "$game_system.reset_battle_color"
in Call Script to reset Battle Screen Tone.
You have to add "$game_system.battle_time = {Time}"
in Call Script to change wait time delays.
Demo : http://www.mediafire.com/?3tcd9lj9mzm
# Battle Screen Tone Change for RMVX
#==============================================================================
# By Nechigawara Sanzenin
# WARNING!! : This script can use on RPG Maker VX Only!! (XP Not Support)
#==============================================================================
# Change Battle Screen Tone before Battle start
#==============================================================================
=begin
How to Use:
You have to add "$game_system.set_battle_color([red,green,blue,gray])"
in Call Script to change Battle Screen Tone.
You have to add "$game_system.reset_battle_color"
in Call Script to reset Battle Screen Tone.
You have to add "$game_system.battle_time = {Time}"
in Call Script to change wait time delays.
=end
#==============================================================================
class Game_System
attr_accessor :battle_red
attr_accessor :battle_green
attr_accessor :battle_blue
attr_accessor :battle_gray
attr_accessor :battle_time
#--------------------------------------------------------------------------
alias inc_initialize initialize
def initialize
inc_initialize
@battle_red = 0
@battle_green = 0
@battle_blue = 0
@battle_gray = 0
@battle_time = 0
end
#--------------------------------------------------------------------------
def set_battle_color(color)
return if color.is_a?(Array) == false
@battle_red = (color[0] == nil ? 0 : color[0])
@battle_green = (color[1] == nil ? 0 : color[1])
@battle_blue = (color[2] == nil ? 0 : color[2])
@battle_gray = (color[3] == nil ? 0 : color[3])
end
#--------------------------------------------------------------------------
def reset_battle_color
@battle_red = 0
@battle_green = 0
@battle_blue = 0
@battle_gray = 0
end
end
#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
# This class performs the map screen processing.
#==============================================================================
class Scene_Map < Scene_Base
#--------------------------------------------------------------------------
def call_battle
@spriteset.update
Graphics.update
$game_player.make_encounter_count
$game_player.straighten
$game_temp.map_bgm = RPG::BGM.last
$game_temp.map_bgs = RPG::BGS.last
RPG::BGM.stop
RPG::BGS.stop
Sound.play_battle_start
$game_system.battle_bgm.play
$game_temp.next_scene = nil
$scene = Scene_Battle.new
red = $game_system.battle_red
green = $game_system.battle_green
blue = $game_system.battle_blue
gray = $game_system.battle_gray
color = Tone.new(red, green, blue, gray)
time = $game_system.battle_time
$game_troop.screen.start_tone_change(color,time)
end
#--------------------------------------------------------------------------
end
끝
How to Use:
You have to add "$game_system.set_battle_color([red,green,blue,gray])"
in Call Script to change Battle Screen Tone.
You have to add "$game_system.reset_battle_color"
in Call Script to reset Battle Screen Tone.
You have to add "$game_system.battle_time = {Time}"
in Call Script to change wait time delays.
Demo : http://www.mediafire.com/?3tcd9lj9mzm