Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Music help, is there a script for music that plays out of battle to continue?
pickthree
post Feb 23 2012, 10:37 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 7
Type: None
RM Skill: Beginner




is there a script for music that plays out of battle to continue once battle starts?
Also how do install a script?


__________________________
I love chobits so get off my back

You are a Innocent Uke!
Cute and sweet, and most gentle of all uke, whips and chains are not for you - you just want someone to love you. You are often spotted in candy shops wearing furry kitty ears, where you are sure to be noticed by the Romantic Seme, whose protective instincts will kick in and will only want to take you home and love and protect you. And you, of course, will be more than happy to spend the rest of your life baking cookies for your seme.
Most compatible with: Romantic Seme
Least compatible with: Sadistic Seme, Don't F*** With Me Seme
What seme or uke are you? Take the experience at SemeUke.com, or get seme/uke merch..
Go to the top of the page
 
+Quote Post
   
brewmeister
post Mar 10 2012, 09:48 AM
Post #2


Paste above Main
Group Icon

Group: Revolutionary
Posts: 408
Type: Scripter
RM Skill: Skilled




Here's one from Kain Noble...

CODE
#===============================================================================
# ** Battle : Carry Over Map BGM 2 Battle
#===============================================================================

# This is the number of the switch you use to turn this function ON / OFF
# i.e. Switch 1 = ON (carry map music to battle). Switch 1 = OFF (Use separate Battle BGM)

CarryOverMapBGM2Battle = 1

#===============================================================================
# ** Game_Temp
#===============================================================================

class Game_Temp
  #-----------------------------------------------------------------------------
  # * Public Instance Variables
  #-----------------------------------------------------------------------------
  attr_accessor :battle_bgm_test
  attr_accessor :battle_me_test
  #-----------------------------------------------------------------------------
  # * Alias Listings
  #-----------------------------------------------------------------------------
  alias_method :btlcrryovermapbgm_gmtemp_initialize, :initialize
  #-----------------------------------------------------------------------------
  # * Object Initialization
  #-----------------------------------------------------------------------------
  def initialize
    btlcrryovermapbgm_gmtemp_initialize
    @battle_bgm_test = false
    @battle_me_test  = false
  end
end

#===============================================================================
# ** Game_System
#===============================================================================

class Game_System
  #-----------------------------------------------------------------------------
  # * Alias Listing
  #-----------------------------------------------------------------------------
  alias_method :btlcrryovermapbgm_gmsystem_bgmstop, :bgm_stop
  alias_method :btlcrryovermapbgm_gmsystem_bgmplay, :bgm_play
  alias_method :btlcrryovermapbgm_gmsystem_meplay,  :me_play
  #-----------------------------------------------------------------------------
  # * BGM Stop
  #-----------------------------------------------------------------------------
  def bgm_stop
    unless carry_map_bgm_2_battle?
      btlcrryovermapbgm_gmsystem_bgmstop
    end
  end
  #-----------------------------------------------------------------------------
  # * BGM Play
  #-----------------------------------------------------------------------------
  def bgm_play(bgm)
    unless carry_map_bgm_2_battle?
      btlcrryovermapbgm_gmsystem_bgmplay(bgm)
    end
  end
  #-----------------------------------------------------------------------------
  # * ME Play
  #-----------------------------------------------------------------------------
  def me_play(me)
    unless $game_temp.battle_me_test
      btlcrryovermapbgm_gmsystem_meplay(me)
    end
    $game_temp.battle_me_test = false
  end
  #-----------------------------------------------------------------------------
  # * Carry Over BGM
  #-----------------------------------------------------------------------------
  def carry_map_bgm_2_battle?
    return false if $game_temp.nil?
    return false if !$game_temp.battle_bgm_test
    return false if playing_bgm.nil?
    return false if playing_bgm.name   == ""
    return false if playing_bgm.volume == 0
    return true if battle_bgm.name     == ""
    return true if playing_bgm == battle_bgm
    return true if $game_switches[CarryOverMapBGM2Battle]
    return false
  end
end

#===============================================================================
# ** Scene_Map
#===============================================================================

class Scene_Map
  #-----------------------------------------------------------------------------
  # * Alias Listings
  #-----------------------------------------------------------------------------
  alias_method :btlcrryovermapbgm_scnmap_callbattle, :call_battle
  #-----------------------------------------------------------------------------
  # * Call Battle
  #-----------------------------------------------------------------------------
  def call_battle
    $game_temp.battle_bgm_test = true
    $game_temp.battle_me_test  = true
    btlcrryovermapbgm_scnmap_callbattle
    $game_temp.battle_bgm_test = false
  end
end


To install, Open the Script Editor
Scroll to the bottom of the Script list, and select "Main".
Right-click --> Insert
Enter a "Name" (e.g. Skip Battle BGM)
Paste the above code into the editor window

Test (Remember to turn switch 1 ON before battle)

This post has been edited by brewmeister: Mar 10 2012, 09:52 AM


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 11:48 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker