The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Luna on February 12, 2008, 03:25:38 AM

Title: [RESOLVED] Boss Battle Theme Continuing
Post by: Luna on February 12, 2008, 03:25:38 AM
Boss Battle Theme Continuing
February 11, 2008 (2/11/08)




Summary
Simply like in some games, there is an area where the boss battle's theme is played even while you run around. As in some places in Chrono Cross and so on. For example, if an enemy invades a city and you are there, the boss battle theme plays and you run around in the city with the song being a boss battle theme. When you start a battle, the song should still be playing and not stopping (until you tell it to stop).

Features Desired

Mockups
None. It's hard to see, but easy to hear.

Games its been in




Did you search?
Yes, I did.

Where did you search?

What did you search for?


I'm not so sure if this really was already requested or not, but it'd be nice to get this. :)
Title: Re: [Request] Boss Battle Theme Continuing
Post by: Code Geass on February 12, 2008, 04:44:16 AM
hm..very nice request post, wish I could help though.

this IS a very neat little feature. I can't say it'd be good for myself personally, but I can see why you would want it.

heh, I'll see if I can do this with events, in the mean time, good luck getting help on this. Try looking around hbgames.org a bit as well.
Title: Re: [Request] Boss Battle Theme Continuing
Post by: Luna on February 12, 2008, 04:58:40 AM
Well, it's nice to see that there might be others looking for this same request as well. I'll try looking on RMXP as well.
Title: Re: [Request] Boss Battle Theme Continuing
Post by: Zylos on February 12, 2008, 11:48:59 AM
Okay, I'm not sure if this is exactly what you are looking for, but...


#==========================================================================
# ** SG Optional Battle Music
#==========================================================================
# sandgolem
# Version 1
# 24.06.06
#==========================================================================

Scene_Map::SG_Disable_BattleMusic = 2

#==========================================================================
#
# To check for updates or find more scripts, visit:
# http://www.gamebaker.com/rmxp/scripts/
#
# To use this script, copy it and insert it in a new section above "Main",
# under the default scripts, and the SDK if you're using it.
#
# Have problems? Official topic:
#   http://forums.gamebaker.com/showthread.php?t=13
#
#==========================================================================

begin
  SDK.log('SG Optional Battle Music', 'sandgolem', 1, '24.06.06')
  if SDK.state('SG Optional Battle Music') != true
    @sg_nobattlebgm_disabled = true
  end
  rescue
end

if !@sg_nobattlebgm_disabled
#--------------------------------------------------------------------------

class Game_System
  alias sandgolem_nobattlebgm_system_bgm bgm_play
  def bgm_play(bgm)
    if !$sg_keep_music
      sandgolem_nobattlebgm_system_bgm(bgm)
    end
  end
 
  alias sandgolem_nobattlebgm_system_bgmstop bgm_stop
  def bgm_stop
    if !$sg_keep_music
      sandgolem_nobattlebgm_system_bgmstop
    end
  end
end

class Scene_Map
  alias sandgolem_nobattlebgm_map_callbattle call_battle
  def call_battle
    if $game_switches[SG_Disable_BattleMusic]
      $sg_keep_music = true
    end
    sandgolem_nobattlebgm_map_callbattle
    $sg_keep_music = nil
  end
end

#--------------------------------------------------------------------------
end


This script will keep whatever music that's currently playing as the battle music too. So if you play boss music on the field, you'd get boss music that keeps playing before, during, and after the battle, at least until you manually stop it with an event. All you have to do to turn it on and off is to use switch 2.
Title: Re: [Request] Boss Battle Theme Continuing
Post by: Falcon on February 12, 2008, 11:55:25 AM
It's that long? The one I made for my game was about two extra lines of code.
Title: Re: [Request] Boss Battle Theme Continuing
Post by: Luna on February 12, 2008, 12:28:04 PM
So how would I use it in a map? I got the script into the game, now to use it?
Title: Re: [Request] Boss Battle Theme Continuing
Post by: Zylos on February 12, 2008, 12:35:31 PM
Pretty much just put it in your scripts and turn on switch number 2. Unless Falcon has an easier method...
Title: Re: [Request] Boss Battle Theme Continuing
Post by: Falcon on February 12, 2008, 12:52:07 PM
Nah, I'm not going to dig through two years of backups to find my version.
Title: Re: [Request] Boss Battle Theme Continuing
Post by: Luna on February 13, 2008, 03:48:31 AM
I found out how to work the script. :)
Thanks for helping guys.

(What do I do now besides changing the topic title?)