Save-Point
Random Battle Music Boss & Final Boss setup - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Archives (https://www.save-point.org/forum-105.html)
+--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html)
+---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html)
+----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html)
+----- Thread: Random Battle Music Boss & Final Boss setup (/thread-6938.html)



Random Battle Music Boss & Final Boss setup - Eccid - 11-03-2005

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


ok, this is a script i made a while back.

To explain further:
This script will randomize the battle music choosing
from 4 preselected tracks.
You set it before battle to be either a regular boss
battle, or a final boss battle.
The music will be set back to regular battle music
after you finish a boss battle.

To Implament:
Go to Scene_Map, around line 172 you'll see this:

Code:
$game_system.bgm_play($game_system.battle_bgm)


replace it with this:

Code:
#----------------------Edit---------------------------------------------------    
#Random Battle Music and Set Boss Music
  if $boss == 2      #If you are fighting the final boss
    Audio.bgm_play("Audio/BGM/011-LastBoss03")#Can change to whatever music
   else                                       #you choose.
   if $boss == 1     #If you are fighting any boss
    Audio.bgm_play("Audio/BGM/fftsweggy")
    else
     case rand (3)   #For any regular battle. Randomizes through four BGM's
      when 0         #To Add: Increase rand (3) and add another "when" statement
       $game_system.bgm_play($game_system.battle_bgm)
      when 1
       Audio.bgm_play("Audio/BGM/fftbat11")
      when 2
       Audio.bgm_play("Audio/BGM/002-Battle02")
      when 3
       Audio.bgm_play("Audio/BGM/004-Battle04")
     end
   end
end
$boss = 0  
#----------------------Edit---------------------------------------------------


To Use:
To make a regular boss battle-
Before battle, call script and put this in it:
Code:
$boss=1

To make a final boss battle-
Before battle, call script and put this in it:
Code:
$boss=2


Hope you like it! My scripts dont usually seem to go over well
on this site.