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 기타 확장 에러 메시지 13 file 허걱 2009.08.17 2497
456 스킬 스킬 필요조건에 살짝 손대봤습니다. -- 수정 18 아이미르 2011.03.23 2499
455 기타 세이브 포인트 2 비극ㆍ 2010.04.19 2518
454 기타 078656577er님의 스크립트를 개조한, 사격용 스크립트 1 file 타코 2012.03.16 2519
453 기타 문장의 스크롤! 13 루시페르 2009.06.06 2524
452 레오 저장 스크립트 9 Man... 2008.10.28 2529
451 Crissaegrim SBABS BETA 1.0 12 file 21stcentury 2008.10.08 2543
450 이동 및 탈것 VX의 기존 대쉬 기능 없애기 8 BAYONET 2008.05.18 2552
449 맵/타일 Roguelike Random Dungeon Generator 2.0 by cozziekuns 4 file Alkaid 2011.09.29 2560
448 기타 미니게임 로또??일까? 14 file 카르와푸딩의아틀리에 2009.06.30 2577
447 기타 Kylock1.2+(RMDude-Kylock1.5) Time System Script 4 file communnn 2011.10.20 2595
446 기타 HG_SHOOT_ANIMATION 4 file 허걱 2010.11.17 2596
445 메뉴 윈도우 색변경 스크립트 7 file 비극ㆍ 2010.03.01 2598
444 스킬 강화주문서, SW_EchantScroll by 시옷전사(SiotWarrior) 21 file 시옷전사 2011.07.13 2605
443 변수/스위치 특정 키눌러서 스위치 온 시키는 스크립트 7 아방이 2008.01.30 2608
442 변수/스위치 Etude87_Variables_VX 1 file 습작 2011.11.26 2608
441 기타 KGC 스크립트 라이브러리 7 훈덕 2009.05.31 2611
440 액터 Point Spend System 1.05 by Drago del Fato (포인트로 스탯 올리기) 6 Alkaid 2010.09.08 2612
439 기타 IEX - Script Library 1.0 by IceDragon 8 Alkaid 2011.01.11 2619
438 이동 및 탈것 Rei Advanced Movement System 8 file 카르와푸딩의아틀리에 2009.08.19 2625
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