Jump to content

Recommended Posts

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

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

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×