WesdrasLink 2 Posted May 31, 2013 Victory Music By WesdrasLink Introduction: This is a small script edited from BattleManager module from RGSS3. Features: Changes the Victory ME to a BGM in the victory scene (When the party win a battle) Changes the Volume Changes the Pitch Screenshots: No needed. How to use: Just paste the script above Main. Script: #================================================== # Victory Music # Author: WesdrasLink # Ver: 1.0 # Release date: 31/05/2013 #=================================================== #This small script changes the Victory ME to a BGM. #=================<CONFIGURATION>=================== BGM_WIN = "Town1" # The file name in Audio/BGM VOLUME = 100 # 0 to 100 (Default is 100) PITCH = 100 # 0 to 150 (Default is 100) #===============<END CONFIGURATION>================= module BattleManager def self.process_victory RPG::BGM.new(BGM_WIN, VOLUME, PITCH).play $game_message.add(sprintf(Vocab::Victory, $game_party.name)) display_exp gain_gold gain_drop_items gain_exp replay_bgm_and_bgs SceneManager.return battle_end(0) return true end end Notes: This is my second script adn i don't have many knowledge in RGSS3 or another coding languages, this is just for test myself to learn RGSS3 better. Free to use in comercial games. Free to post in other sites. Share this post Link to post Share on other sites
Coolie 147 Posted May 31, 2013 Neat script! Just a note, you can place MP3 files and other file types in the ME folder and still use them by default. =) Share this post Link to post Share on other sites
WesdrasLink 2 Posted May 31, 2013 Thanks. I know, but ME plays only once and when the audio file is over, the battle theme returns to play and gets weird, so if someone want to use a BGM with looping properties, it's better use a BGM instead ME. (Good to make long victory fanfares like Final Fantasy) Share this post Link to post Share on other sites
Tsukihime 1,487 Posted May 31, 2013 (edited) I would alias/replace "play_battle_end_me" instead. Edited May 31, 2013 by Tsukihime Share this post Link to post Share on other sites
Pokefan0 1 Posted June 1, 2013 What about Victor Engine - Animated Battle? When I defeated a only enemy in battle using that script, a victory music plays before an actor returns to its position. Share this post Link to post Share on other sites
WesdrasLink 2 Posted June 1, 2013 I would alias/replace "play_battle_end_me" instead. Hum... using 'alias'? I don't understand this method yet, can you help me? (Still learning) What about Victor Engine - Animated Battle? When I defeated a only enemy in battle using that script, a victory music plays before an actor returns to its position. This script of mine plays a BGM when all enemies is defeated, using Victor Animated Battle i think there is a time to the battlers returns for their original position and in this short time, the BGM plays. I'm trying to fix it. Share this post Link to post Share on other sites
Kirimash 283 Posted December 9, 2017 Sorry for necropostiong, but this is a good script by the looks of it. Gonna try it Share this post Link to post Share on other sites