RPG Maker Forums

Hello. I feel this is the right section to post this in, so here's my problem:

I commissioned a script a little while ago, because I need the field music to persist playing when a battle starts, and when it ends. Think of how Aeris' theme keeps on playing before, during and after the battle with the boss Jenova Life at the Ancient Capital in FF7, or this:


I'm 120% sure it was working fine in a prior build of the game that I didn't save, and I foolishly lost the note where I wrote the script call. As a result, I'm having the problem of the music restarting at the end of the battle. Turning off the victory theme has no effect; I've also tried changing the battle BGM to match the theme, to no effect. Again, I'm sure it was all handled via a script call, and I'm not sure if I can get a hold of the scripter who made them, as he's busy with university life. Here are the scripts:

Part one (it's entered as two separate scripts):
Code:
class Game_Temp
  attr_accessor :equus_dont_stop_bgm
end
Part two:
Code:
class Scene_Map < Scene_Base
  def call_battle
    @spriteset.update
    Graphics.update
    $game_player.make_encounter_count
    $game_player.straighten
    $game_temp.map_bgm = RPG::BGM.last
    $game_temp.map_bgs = RPG::BGS.last
    unless $game_temp.equus_dont_stop_bgm
      RPG::BGM.stop
      RPG::BGS.stop
    end
    Sound.play_battle_start
    $game_system.battle_bgm.play unless $game_temp.equus_dont_stop_bgm
    $game_temp.next_scene = nil
    $scene = Scene_Battle.new
  end
end
Using the script call "$game_temp.equus_dont_stop_bgm=true" produces the results described above, so I think there must be something else that needs to be entered. If someone can please help me figure out the rest of the call (if any), let me know, and thanks in advance. Further info available if needed.

Short version: I need this script to keep on playing the field music as a battle starts, and not restart it at the end of the battle.

Thanks.

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,447
Members
137,820
Latest member
georg09byron
Top