전투중 메시지 표시 속도를 조절 하는 방법을 알아봅니다.
less..
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ #_/ ◆ 배틀 웨이트 조정 - KGC_AdjustBattleWait ◆ VX ◆ #_/ ◇ Last update : 2007/12/24 ◇ #_/---------------------------------------------------------------------------- #_/ 전투 씬의 메세지 스피드(배틀 웨이트)를 조정하는 기능을 추가합니다.。 #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ #============================================================================== # ★이곳에서 속도 조절 하세요 ^^★ #============================================================================== module KGC module AdjustBattleWait # ◆메시지 속도 조절 방법 # 아래 수치가 작을수록 표시시간이 짧고 클수록 길어진다. INITIAL_WAIT = 100 end end #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ $imported = {} if $imported == nil $imported["AdjustBattleWait"] = true #-------------------------------------------------------------------------- # ● バトルウェイト設定 # battle_wait : バトルウェイト #-------------------------------------------------------------------------- def set_battle_wait(battle_wait) $game_system.battle_wait = [battle_wait, 0].max end #============================================================================== # ■ Game_System #============================================================================== class Game_System #-------------------------------------------------------------------------- # ● 公開インスタンス変数 #-------------------------------------------------------------------------- attr_writer :battle_wait # 戦闘時のウェイト倍率 #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- alias initialize_KGC_AdjustBattleWait initialize def initialize initialize_KGC_AdjustBattleWait @battle_wait = KGC::AdjustBattleWait::INITIAL_WAIT end #-------------------------------------------------------------------------- # ● 戦闘時のウェイト倍率取得 #-------------------------------------------------------------------------- def battle_wait if @battle_wait == nil @battle_wait = KGC::AdjustBattleWait::INITIAL_WAIT end return @battle_wait end end #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★ #============================================================================== # ■ Scene_Battle #============================================================================== class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # ● 一定時間ウェイト #-------------------------------------------------------------------------- alias wait_KGC_AdjustBattleWait wait def wait(duration, no_fast = false) duration = duration * $game_system.battle_wait / 100 wait_KGC_AdjustBattleWait(duration, no_fast) end end
less..