Script ‘Window_Base’ line 408: NoMethodError occurred. undefined method ‘hp’ for nil:NilClass.
If you don't want to sacrifice the enemy name, color, and states display by switching the help window off, I fixed mine by finding this method in window help (in the target arrow script):
Code:
def set_target_text(target, align = 0)
复制代码
Find this:
Code:
if target != @target || @target.name != @text
@text = ""
@target = target
@align = align
target_info
end
复制代码
Change that to this:
Code:
if target != nil
if target != @target || @target.name != @text
@text = ""
@target = target
@align = align
target_info
end
end
复制代码
It basically makes sure that if the target is nil, it won't put an arrow over him. I have not run into any problems with this yet. Hope that helps!