freakishfae
Member
I'm having a problem with it I can't figure out...
Okay, so I was playing through my game just to make sure there were no bugs. All the battles before had gone fine, but once one of my characters was paralyzed at the end of a battle, I got the following script error:
Window_BattleResult line 88: NoMethod Error occurred.
undefined method '[]' for nil:NilClass
(the line in the script is: if @level_flags[actor_index][0] == false)
I changed "false" to "true", knowing I could just go back and change it if this screwed it up anymore. Then, I tried my game again and got the following error in the same situation:
Scene_Battle#Edits line 154: TypeError occurred
no implicit conversion from nil to integer
(the line in the script is: last = $data_actors[@actor_id].parameters[stat, last_level])
EDIT: Just to clarify, this error only occurs when a character is paralyzed or dead at the end of the battle.
Also, from an earlier post:
Okay, so I was playing through my game just to make sure there were no bugs. All the battles before had gone fine, but once one of my characters was paralyzed at the end of a battle, I got the following script error:
Window_BattleResult line 88: NoMethod Error occurred.
undefined method '[]' for nil:NilClass
(the line in the script is: if @level_flags[actor_index][0] == false)
I changed "false" to "true", knowing I could just go back and change it if this screwed it up anymore. Then, I tried my game again and got the following error in the same situation:
Scene_Battle#Edits line 154: TypeError occurred
no implicit conversion from nil to integer
(the line in the script is: last = $data_actors[@actor_id].parameters[stat, last_level])
EDIT: Just to clarify, this error only occurs when a character is paralyzed or dead at the end of the battle.
Also, from an earlier post:
What is the initialize method? Sorry, I'm not a scripter, so I don't know. It's just looking funny to have the font in the battle result script different than the rest of my game, so it would be great to be able to add this.You probably have the font error just add this to the initialize method
self.contents.font.name = "Arial" #whatever font you want
self.contents.font.size = 32