VE - Target Arrow

For those of you with this error:

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!

I also posted it on his blog.

Original thread: https://forums.rpgmakerweb.com/threads/ve-target-arrow.457/