Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Disable Victory Music

Status
Not open for further replies.
Hi,
Don't worry I'm not gonna ask how to change the victory music in a battle XD
I was wondering how could I disable the Victory ME sound so that after a battle, the battle sound would be coutinuing (not restarting) even when you're on the map. The reason I'd like this is to make, for example, a scene where you have to get to somewhere fast and get into quick battles on the way without the music to stop.

I'm already using a small script that makes the battle transition sound disapear when I type in event script: "$game_system.map_bgm_in_battle = true" so it would be really nice if I could do about the same type of command to disable victory sound. I found it here: http://www.phylomortis.com/resource/script/scr017.html .

I took a look in Game_System on about the last lines and I saw the section for victory sound, but I'm not good enough in scripting to change it 'cause I know I have to change things in other sections, but I don't know which one... I found nothing in Scene_Battles :s

Aight so I hope you scripters would know what to do :)
Thanks for your help!

Vince.
 
First, you wouldn't want the music to stop when you enter battle, right? Because it does that by default. First go to Scene_Map, scroll under "Battle Call" (appears as a comment surrounded by lines) section, find this:

Code:
$game_system.bgm_stop

Comment it out or remove it entirely. Now if the map music and battle music are the same, the music will flow smoothly into battle instead of restarting.

Now to get rid of the victory sound. First, create a switch (the types you use for events) and name it "DisableVictorySound" or something. Remember the switch's ID number; if it's 001: DisableVictorySound, remember "1" (not 001).

Now, go to Scene_Battle 2 and scroll down to the "Start After Battle Phase" section. Get to this part here:

Code:
$game_system.me_play($game_system.battle_end_me)

We're going to have it so that if the DisableVictorySound switch is off ("false"), it'll play the victory music effect like normal. Otherwise, it won't. Now change the lines to this:

Code:
if $game_switches[switch_id] == false
      $game_system.me_play($game_system.battle_end_me)
    end

Where switch_id is whatever the ID number is of the DisableVictorySound. Again, if it's switch 001, you type 1 (again, don't type the 0's in front of 1).

Annnd it should work.
 
Just popped in.

If I read this right, you want to be able to have your music play... basically just throughout. Like you're in an intense dungeon crawl with the field music playing a 'Harsh Actiony' piece and you go into battle... it continues that piece (doesn't switch or restart). And when you win the fight, the music still doesn't change... you go back to the field map with the same 'Harsh Actiony' piece.

The same music for the battles that you have in-field, without the opening or closing SE, right?

Mimi's Battle Music
http://hometown.aol.com/Der%20VVulfman/ ... /S_N_D.png[/IMG]http://hometown.aol.com/Der%20VVulfman/Files/RMXP/RMXP-ORG/Forum_Icons/FORUMS.PNG[/IMG]
by DerVVulfman (08-08-2006)
Custom Battle Add-On / Audio/Video Enhancements
Well, I have to hand it over to Mimi-Chan, so I'm naming it AFTER her. She asked for a simple script, and I delivered. So, I took it upon myself to crank this script out on Thursday, August 03, 2006. Only took 1/2 an hour.

This script allows you to play different music based on who your Lead Hero is, or based on the events that have transpired in your game.​
It's gone through a few changes, and additions since its inception. Give it a try.

FYI: Check the FORUM LIST (check my sig / stickied in Submitted Scripts) for an index of other available scripts ;)
 
This topic has been resolved. If vincepocket or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 
Status
Not open for further replies.

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top