Hi folks!
I begin to do a really simple script who permit to have specific music by enemy
the notetag work !
is the calling via the BattleManager
here the error
so here the whole scripts and I highlight the principal line who cause me problem...
I begin to do a really simple script who permit to have specific music by enemy
the notetag work !
is the calling via the BattleManager
here the error
Code:
=beginNio Kasgami Hope EngineEnemy Specific Battle Song=endmodule Enemy_Songendclass Game_Enemy < Game_Battler def initialize(index, enemy_id) super() @index = index @enemy_id = enemy_id enemy = $data_enemies[@enemy_id] @original_name = enemy.name @letter = "" @plural = false @screen_x = 0 @screen_y = 0 @battler_name = enemy.battler_name @battler_hue = enemy.battler_hue @hp = mhp @mp = mmp check_music_notetag end def check_music_notetag if enemy.note =~ /<Monster>/ RPG::BGM.new("Battle2",100,100).play if enemy.note =~ /<Human>/ RPG::BGM.new("Battle9",100,100).play else $game_system.battle_bgm.play end end endendmodule BattleManager def self.play_battle_bgm @music = Game_Enemy.check_music_notetag endend