Problem with Victor's target arrow script

Status
Not open for further replies.

S.Court

Veteran
Veteran
Joined
Oct 17, 2012
Messages
394
Reaction score
98
First Language
Español
Primarily Uses
RMVXA
Hello, I'm using Victor Target Arrow's script and I'm having a trouble when I use a skill target the user itself. The next error is presented.



And this is the part of the script is showing the problem (the second line is the 451 line the error is refering to)

Code:
  def draw_tartge_info(align)
    if @action.for_one?
      @help_window.set_target_text(target(0), align)
    elsif @action.for_all? && @action.for_random?
      text = help_info[:random_enemies] if @action.for_opponent?
      text = help_info[:random_actors]  if @action.for_friend?
      text = help_info[:random_target]  if @action.for_all_targets?
      @help_window.set_info_text(text, align)
    elsif @action.for_all? && !@action.for_random?
      text = help_info[:all_enemies] if @action.for_opponent?
      text = help_info[:all_actors]  if @action.for_friend?
      text = help_info[:all_target]  if @action.for_all_targets?
      @help_window.set_info_text(text, align)
    end
  end
end
Does someone know a way to fix this problem? Thank you
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
You can try to enter this line right above the error line:
Code:
return @help_window.set_info_text("",0) if @action.nil?
I have no idea what the align argument should be, but usually it's either 0, 1 or 2, so it should work.
This should clear the help window when there is no action inputted (or when the game thinks there is no action inputted) instead of crashing.
 

S.Court

Veteran
Veteran
Joined
Oct 17, 2012
Messages
394
Reaction score
98
First Language
Español
Primarily Uses
RMVXA
You can try to enter this line right above the error line:
Code:
return @help_window.set_info_text("",0) if @action.nil?
I have no idea what the align argument should be, but usually it's either 0, 1 or 2, so it should work.
This should clear the help window when there is no action inputted (or when the game thinks there is no action inputted) instead of crashing.
Excellent! It works, it doesn't show anything when the skill is used, but at least I can use it. Thanks a lot :)
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top