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.

Problem with sandgolem's Optional Battle Music script

Hi everyone, I'm having a problem with one of sandgolem's scripts (http://www.gamebaker.com/rmxp/scripts/optional-battle-music.htm) for having map music flow into the battle. The script comes with a switch that turns the function on and off, and everything works beautifully if the switch is turned ON, but when I turn it OFF, I get this message:

Script 'Game_System' line 51: Type Error occurred. Cannot convert nil into String

If anyone could help, I would really appreciate it. Thanks!

Edit:I should probably add, line 51 in the Game_System script looks like this:

Audio.bgm_play("Audio/BGM/" + bgm.name, bgm.volume, bgm.pitch)

Sorry, I don't want to be a bother, but...anyone? Please? :) Is there some other way to do it at least, even if it's manually?

Please wait 72 hours to bump.

EDIT: Nevermind, I fiddled around with the scripts and got it working! Yay.
 

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