Tripleh5 0 Report post Posted July 15, 2015 Everytime I try fighting a normal enemy I get this error code, yet when I tested it in a boss battle against a boss I created, I didn't get it, what's wrong? Share this post Link to post Share on other sites
0 DustyZiroto 3 Report post Posted July 15, 2015 Are you using any scripts? Share this post Link to post Share on other sites
0 Tripleh5 0 Report post Posted July 15, 2015 Yeah, I'm using Yanfly Engine Melody. It's a script I found online. But the weird thing is, I've been using it for a fewdays Ithout problems, I changed some enemies, giving me potions and suddenly I get this problem. Could it be because in battle I use characterrs I have,'t given any victory quotes yet? Share this post Link to post Share on other sites
0 Polraudio 122 Report post Posted July 16, 2015 Post the code for that script that the error is yelling about. The Game_Troop. If you made any edits make sure to tell us what the new line is for the error. Share this post Link to post Share on other sites
0 Tripleh5 0 Report post Posted July 16, 2015 it's about this part of the code: #-------------------------------------------------------------------------- # * Battle Event Setup #-------------------------------------------------------------------------- def setup_battle_event return if @interpreter.running? if $game_temp.common_event_id > 0 common_event = $data_common_events[$game_temp.common_event_id] @interpreter.setup(common_event.list) $game_temp.common_event_id = 0 return end for page in troop.pages next unless conditions_met?(page) @interpreter.setup(page.list) if page.span <= 1 @event_flags = true end return end end Share this post Link to post Share on other sites
0 Polraudio 122 Report post Posted July 16, 2015 it's about this part of the code: #-------------------------------------------------------------------------- # * Battle Event Setup #-------------------------------------------------------------------------- def setup_battle_event return if @interpreter.running? if $game_temp.common_event_id > 0 common_event = $data_common_events[$game_temp.common_event_id] @interpreter.setup(common_event.list) $game_temp.common_event_id = 0 return end for page in troop.pages next unless conditions_met?(page) @interpreter.setup(page.list) if page.span <= 1 @event_flags end return end end = true What part of it exactly? Because the exact line is what i need to know. Share this post Link to post Share on other sites
0 DustyZiroto 3 Report post Posted July 16, 2015 To simplify it, what line of code here is line 168? Share this post Link to post Share on other sites
0 Tripleh5 0 Report post Posted March 24, 2016 I was able to solve that problem, but now after test playing my game for a while, this is the new problem I have. I have no idea how to solve it. #-------------------------------------------------------------------------- # new method: weapon1_icon #-------------------------------------------------------------------------- def weapon1_icon return @cache_weapon_icon[1] if @cache_weapon_icon[1] != nil icon = 0 icon = weapons[0].icon_index if weapons.compact.size > 0 for state in states next unless state.weapon_icon > 0 icon = state.weapon_icon break end @cache_weapon_icon[1] = icon return @cache_weapon_icon[1] end Share this post Link to post Share on other sites
Everytime I try fighting a normal enemy I get this error code, yet when I tested it in a boss battle against a boss I created, I didn't get it, what's wrong?
Share this post
Link to post
Share on other sites