So with winter break here, I decided I wanted to spend a little more time further developing my game. But recently, when I try to kill a monster successfully, and after pressing enter once the loot screen appears, I get an error:
Script 'LevelNotifier' line 307: NoMethodError occured.
undefined method 'size' for nil:NilClass
It redirects me to the script I've used which is "Easy LvlUp Notifier by Blizzard". The script can be found here:
http://downloads.chaos-project.com/scripts/Easy%20LvlUp%20Notifier.txt.
The line it points to is:
I'm not very familiar with ruby, but after looking through the code, the only other instance I see of texts is on line 274 through 284:
def start_phase5
start_phase5_lvlup_later
@skill_texts = []
$game_party.actors.each {|actor|
actor.remove_states_battle
if @lvlup_data[actor][0, 7] != [actor.level, actor.maxhp, actor.maxsp,
actor.str, actor.dex, actor.agi, actor.int]
@pending_windows.push(Window_LevelUp.new(actor, @lvlup_data[actor]))
@skill_texts.push('')
new_skills = actor.skills - @lvlup_data[actor][8]
if new_skills.size > 0
new_skills.each {|id|
@skill_texts.push("#{actor.name} learned #{$data_skills[id].name}!")}
end
elsif @lvlup_data[actor][7] != actor.exp && !NO_EXP_DISPLAY
@moving_windows.push(Window_LevelUp.new(actor, @lvlup_data[actor]))
end}
end
I'd really appreciate if anyone had the time to tell me what the problem is exactly. I'm thinking that it has to do with other scripts interfering, but even if I place the class higher up in the list of classes, nothing seems to change.
Thanks for your time.