RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Bgm Volume error

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 87
im using this option script off htis other site, and seem to be getting this error
stating "Undefined bgm.volume for nil:nilclass"


Here is the part of the script:

def bgm_play(bgm)
   @playing_bgm = bgm
   #@music_name = bgm.name
   if bgm != nil and bgm.name != ""
     Audio.bgm_play("Audio/BGM/" + bgm.name, bgm.volume*$game_music.bgm_volume/100, bgm.pitch)
   else
     Audio.bgm_stop
   end
   Graphics.frame_reset
 end


My Game: (keeping title secret :P)

Story: 0%
Characters: 12.5%
Maps: 0%
Events: 0%
Scripts: 26%

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Biggest Drama Whore2013 Zero to HeroParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
It's best to post the error in the thread on the website from where the script comes from.
&&&&&&&&&&&&&&&&

**
Rep: +0/-0Level 87
yes BUT...


1. The same question wasnt answered at the site it was found at

2. I dont feel like signing up to another site for one question

3. This seems like a pretty easy solution to fix, just not for me

4. If not, well ill figure out then
My Game: (keeping title secret :P)

Story: 0%
Characters: 12.5%
Maps: 0%
Events: 0%
Scripts: 26%

***
Rep:
Level 90
Skilled Scripter, Shitty Mapper, Decent Writer.
Is the error from you calling the method through a call script command, from using a custom music script or what? Also, like Banisher said, you should post the error you are receiving as well.

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
No wonder: Some code is missing. ::) Either use the entire script or find somebody who can isolate the part you need from it. Basically this part would be missing. And it's "$game_system" and not "$game_music".
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!