베틀 스크린 톤 체인지?? 무슨 말?

by Man... posted Oct 28, 2008
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄
#==============================================================================
# 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