Save-Point
Penguinboyroy's Boss Mode Script Segment - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+--- Thread: Penguinboyroy's Boss Mode Script Segment (/thread-118.html)



Penguinboyroy's Boss Mode Script Segment - penguinboyroy - 06-23-2010

I have a new Boss Mode Script!

INSTRUCTIONS
FIRST CREATE A NEW MAP, AND LEAVE THE GENERIC NAME. MAKE THIS THE ROOM WITH YOUR BOSSES OR AT LEAST THE FIRST IN A SET. You will need to leave the generic name to know the Map ID.

Create a new option in Scene_Title and call it: "Boss Mode." (Exclude the period) Place the script fragment under your Command: Shutdown (which resides inside Scene_Title). Read around the end and set the Map ID.

TERMS OF USE
  • You MAY use this script for commercial purposes.
  • You DO NOT need to give any credit for use of this script.


The Script:
Code:
#-----------------------------------------------------------------------------#
#  * Boss Mode                                                          
#-----------------------------------------------------------------------------#
#Instructions:                                                            
#Copy this script and paste it IN your Scene_Title          
#under Command: Shutdown. Read through it and        
#change the map_id to the correct map number.          
#You MUST use the number, (mine says 82) or it won't  
#work. Also, go to the top of your Scene_Title, and      
#where it says: (192, [s1, s2, s3]) add an ,s4 to it in the
#same pattern type thing. Then you go UP to the next  
#line. Add a new line that says: s4 = "Boss Mode" (I'm    
#not putting a period there so as not to confuse you).  
#-----------------------------------------------------------------------------#
  def command_boss_mode
        # Play decision SE
    $game_system.se_play($data_system.decision_se)
    # Stop BGM
    Audio.bgm_stop
    # Reset frame count for measuring play time
    Graphics.frame_count = 0
    # Make each type of game object
    $game_temp          = Game_Temp.new
    $game_system        = Game_System.new
    $game_switches      = Game_Switches.new
    $game_variables     = Game_Variables.new
    $game_self_switches = Game_SelfSwitches.new
    $game_screen        = Game_Screen.new
    $game_actors        = Game_Actors.new
    $game_party         = Game_Party.new
    $game_troop         = Game_Troop.new
    $game_map           = Game_Map.new
    $game_player        = Game_Player.new
    # Set up initial party
    $game_party.setup_starting_members
    # Set up initial map position
    $game_map.setup(@map_id = REPLACE THIS WITH THE MAP NUMBER)
    # Move player to initial position
    $game_player.moveto($data_system.start_x=15, $data_system.start_y=15)
    # Refresh player
    $game_player.refresh
    # Run automatic change for BGM and BGS set with map
    $game_map.autoplay
    # Update map (run parallel process event)
    $game_map.update
    # Switch to map screen
    $scene = Scene_Map.new
  end



Penguinboyroy's Boss Mode Script Segment - penguinboyroy - 06-23-2010

Do I have to waste my first bump on my own thread?