Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Event skip battle end messages

What I would be looking for is a script that I can add that will do the following:

-Disable the end battle ME and EXP/Credits messages while active
-Disable changing the music playing when battles start (So that it is seemless)

The idea would be to call a script when "hurry" events occur so that the battles and music are seemless so you can keep the mood going. I would like to have the ability to call this in a script to enable and disable it.

Any ideas on this, or perhaps, if it already exists?

Thanks much!
 
You can close this one out, I got this working by making a few changes another script by sandgolem. Here's his original in case anyone else wanted it:

To activate this script change

Code:
Scene_Map::SG_Disable_BattleMusic = 5

To the switch number you want to use to turn on to activate this script.

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

Scene_Map::SG_Disable_BattleMusic = 5

#==========================================================================
#
# 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
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top