VX 스크립트

#==============================================================================
# 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


Comment '4'
  • ?
    크갸갸 2009.01.04 10:29
    아무런 변화가 없는것 같은데요?
  • ?
    백년술사 2009.01.05 13:27
    배틀 종류 바꾸기 아님?
    Battle Screen          Tone    Change for     RMVX
    (전투) (화면&스크린)(성질) (바뀌다) (위해)(모르겠음)
    체인지/교환
  • ?
    castalia 2009.02.18 15:11
    전투 화면 색깔 바꾸기(...)
    데모 게임 깔아보니 알겠군요;
  • ?
    최닉네임 2011.06.14 00:24

    11


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
457 타이틀/게임오버 Random Title Screen 2 Man... 2008.10.28 1454
456 폴스 세이브 4 Man... 2008.10.28 2343
455 Attribute System Man... 2008.10.28 1293
454 More SaveFlies(대박) 2 Man... 2008.10.28 2125
453 Khai's Window Helper 1.4 1 Man... 2008.10.28 1272
452 기타 RPG 2000이나 RPG 2003처럼 전체화면으로 나오게 하는 스크립트(대박) 21 Man... 2008.10.28 4821
451 타이틀/게임오버 New Title Screen 3 Man... 2008.10.28 1832
450 변수/스위치 Variable Criticals Man... 2008.10.28 1480
449 Detailed Call Script Error Mesage 3 Man... 2008.10.28 1258
448 기타 TagNote v2.0 5 Man... 2008.10.28 1996
» 베틀 스크린 톤 체인지?? 무슨 말? 4 Man... 2008.10.28 1616
446 디러그 시스템?? 1 Man... 2008.10.28 1247
445 새로운 종류의 세이브 스크립트!! 8 Man... 2008.10.28 3517
444 전투 오버 드라이브 프로블럼 2 Man... 2008.10.28 2268
443 영상 ??(Avi play ver beta 0.8) 4 Man... 2008.10.28 1575
442 맵/타일 GubiD's Isometric Maps for RPG Maker VX 1 Man... 2008.10.28 1681
441 Limit Break VX 3 Man... 2008.10.28 1777
440 Multi-threader snippet by Omegazion Man... 2008.10.28 1107
439 Enable Usage of Rmxp 캐릭터(?) 5 Man... 2008.10.28 2413
438 Screen Resolution 3 Man... 2008.10.28 1171
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32