I have a Yanfly script that affects the battle system, and in battle it works fine, but when I walk around on the map, I get a few steps and then I get the error outlined above, and then it points me here;
#-------------------------------------------------------------------------- # alias method: on_turn_end #-------------------------------------------------------------------------- alias game_battler_on_turn_end_ftb on_turn_end def on_turn_end game_battler_on_turn_end_ftb init_ftb_actions @has_defended = false #grs if self.is_a?(Game_Actor) $game_temp.current_decays[self.id][1] = 0 endend
Here is the entire (altered from its original) script for reference.
http://pastebin.com/WptB7fuF
#-------------------------------------------------------------------------- # alias method: on_turn_end #-------------------------------------------------------------------------- alias game_battler_on_turn_end_ftb on_turn_end def on_turn_end game_battler_on_turn_end_ftb init_ftb_actions @has_defended = false #grs if self.is_a?(Game_Actor) $game_temp.current_decays[self.id][1] = 0 endend
Here is the entire (altered from its original) script for reference.
http://pastebin.com/WptB7fuF