XP 스크립트

설정해둔 전투음악 중 임의의 곡을 전투시 연주하는 스크립트입니다.  전투음악은 스크립트에서 미리 설정해 둘 수도 있고 이벤트 명령->스크립트에서 추가하거나 삭제할 수 있습니다.


class Game_Party
  attr_accessor  :music
  alias pre_music_initialize initialize
  def initialize
    pre_music_initialize
    @music = []
  end
end

class Scene_Map
  def call_battle
    # Clear battle calling flag
    $game_temp.battle_calling = false
    # Clear menu calling flag
    $game_temp.menu_calling = false
    $game_temp.menu_beep = false
    # Make encounter count
    $game_player.make_encounter_count
    # Memorize map BGM and stop BGM
    $game_temp.map_bgm = $game_system.playing_bgm
    $game_system.bgm_stop
    # Play battle start SE
    $game_system.se_play($data_system.battle_start_se)
    # Play battle BGM
    file = $game_party.music[rand($game_party.music.size)]
    audio_file = RPG::AudioFile.new(file)
    $game_system.bgm_play(audio_file)
    # Straighten player position
    $game_player.straighten
    # Switch to battle screen
    $scene = Scene_Battle.new
  end
end


전투음악 기본설정은
@music = [파일명1, 파일명2, ......파일명n]
으로 할 수 있고, 게임 중에서 추가/삭제하는 것은:
$game_party.music.push("MusicName") <- 사용할 전투음악 추가 (확장자 생략)
$game_party.music.delete("MusicName") <- 전투음악 삭제 (확장자 생략)

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
174 전투 A-battle 수정 file 백호 2009.02.21 1155
173 전투 ABP 액알 (Action Battle Player) 14 file 백호 2009.02.22 4557
172 전투 ABS_v3액션 알피지 46 file 알피지GM 2010.03.07 5806
171 전투 Active Time Battle 2.57 by パラ犬 6 file 백호 2009.02.22 2371
170 전투 Active Time Battle 2.62 by パラ犬 file Alkaid 2010.09.06 1652
169 전투 Advanced Individual Battle Command v2.1 by Trickster@rmxp.org (SDK호환) 1 file 백호 2009.02.22 1189
168 전투 Advanced Limit Breaks (KGC스크립트를 SDK호환용으로 손질한 것) 백호 2009.02.22 1214
167 전투 ATB시스템 입니다. [스샷 첨부] 17 백호 2009.02.22 4182
166 전투 ATB전투 5 백호 2009.02.22 3369
165 전투 ATB전투 형식 스크랩트 [ 어디서 퍼왔는..] 7 WMN 2008.03.17 2545
164 전투 Battle Report 1.6 by Raziel@rmxp.org 1 file 백호 2009.02.22 1672
163 전투 Blizz-ABS 1.95 27 아방스 2008.03.05 4028
162 전투 CSSR6-스태미너 시스템 1 file 백호 2009.02.22 2339
161 전투 CTB by Charlie Fleed 3.1 - FF10 스타일의 전투시스템 6 Alkaid 2010.09.10 2975
160 전투 CTB by Charlie Fleed 3.2 - FF10 스타일의 전투 시스템 7 Alkaid 2010.10.14 3450
159 전투 Custom Debugger, Battle Debugger by RPG Advocate file 백호 2009.02.22 1248
158 전투 DerVVulfman's addons for Mr.Mo's ABS file Alkaid 2010.09.10 1645
157 전투 Etude87_Custom_Slip_Damage_XP ver.1.0 5 습작 2012.08.26 1857
156 전투 FF10 전투 대미지 공식 by hydro@rmxp.org 백호 2009.02.22 1141
155 전투 FFX, X-2, FFXII 식으로 대미지 표시하기 by squall@rmxp.org 백호 2009.02.22 1115
Board Pagination Prev 1 2 3 4 5 6 7 8 9 Next
/ 9