duergar_thomp
Member
So, I'm no programmer, but I thought I had a basic idea.
I wanted to change the background music after a battle on the condition that an actor leveled up, so in the Scene_Battle2
script, on line 173/174, it reads:
if actor.level > last_level
@status_window.level_up(i)
so I added on line 175 after moving everything down a line:
Audio.bgm_play(thepower [100, 100])
(thepower being the filename)
I know the syntax doesn't look like what's in the help doc for the RSS, which confused me, mostly because the way I put it was the only way to rid myself of a syntax error, but now the error message reads:
Script 'Scene_Battle 2' line 175: NoMethodError occurre
Undefined method 'thepower' for #<scene_battle:0x142a48>
I'm really flustered because I though I kinda got the dead basics of scripting but this little thing is putting me off. Can anyone help?
Thanks
I wanted to change the background music after a battle on the condition that an actor leveled up, so in the Scene_Battle2
script, on line 173/174, it reads:
if actor.level > last_level
@status_window.level_up(i)
so I added on line 175 after moving everything down a line:
Audio.bgm_play(thepower [100, 100])
(thepower being the filename)
I know the syntax doesn't look like what's in the help doc for the RSS, which confused me, mostly because the way I put it was the only way to rid myself of a syntax error, but now the error message reads:
Script 'Scene_Battle 2' line 175: NoMethodError occurre
Undefined method 'thepower' for #<scene_battle:0x142a48>
I'm really flustered because I though I kinda got the dead basics of scripting but this little thing is putting me off. Can anyone help?
Thanks