RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Keeping Field BGM during fights

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 87
I've seen in several games where field music keeps playing, even through battle.  This normally takes place when you are running from enemies, in endless battles, and so forth.  However, I set the Battle BGM to (None), and looked over the code, and I can't seem to find where it ends the music and calls the battle music.  Does anyone know how to do this?

[I've also tried SEARCH, but I couldn't seem to find anything.  Sorry if it exists.]

***
Rep:
Level 88
Keep on Baggin'
insted of setting the battle music to 'none' set it to whatever the current field music is (the victory music too.)  you can then change the victory and battle music to whatever you want ingame using events  :)
Some friends mend.  Some friends depend.  Some friends lend.  Some friends send.  Friend.

**
Rep: +0/-0Level 87
Okay
I tried that, and it just repeats the same song from the start on each transition
then goes back to the field and plays where it left off

what I'm trying to do is find a way to get it to play straight through without a break

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
It's a very easy script, I have it in my game.

I'll post it tonight or tommrow.

**
Rep: +0/-0Level 87
It's a very easy script, I have it in my game.

I'll post it tonight or tommrow.

Thanks so much.
I didn't see anything in it, and I'm still learning the scripting language, so I figured I'd come here so I can see how the code works by looking at scripts others have. :)

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
In Scene_Map, in def call_battle, just remove this line:

Code: [Select]
$game_system.bgm_play($data_system.battle_bgm)

You can press CTRL+F for current script search or CTRL+SHIFT+F for global script search in the editor.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!

**
Rep: +0/-0Level 87
In Scene_Map, in def call_battle, just remove this line:

Code: [Select]
$game_system.bgm_play($data_system.battle_bgm)

You can press CTRL+F for current script search or CTRL+SHIFT+F for global script search in the editor.

that pretty much did it
I just had to go up a few lines and disable
Code: [Select]
$game_system.bgm_stop
to get it to actually not stop the field bgm

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
Only problem with that is if you want to have a special boss battle fight, it can't use it =/

Basically in my game I have a switch that turns it on and off, do you want that, or is Blizzard's way good enough?

**
Rep: +0/-0Level 87
Only problem with that is if you want to have a special boss battle fight, it can't use it =/

Basically in my game I have a switch that turns it on and off, do you want that, or is Blizzard's way good enough?

Right now it never plays the BGM
So I guess I want to try your way...
After all, I don't want it to always not contain Battle BGM :)

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Then just use

Code: [Select]
if $game_switches[ID]
  $game_system.bgm_stop
  $game_system.bgm_play($data_system.battle_bgm)
  $game_switches[ID] = false
end

Change ID to the switch ID you're gonna use. Turn on the switch and the battle BGM WILL be played. It will automatically be turned off after that.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!