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.

28053859_1973894099306200_578586587_n.png


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,201
Reaction score
853
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.

Latest Threads

Latest Posts

Latest Profile Posts

Doing RPG Maker News for 24th October 2021

I'm not sure how to do this so I'll just ask here, Wheres a good place to post your game (for free) once its done?
I don't know what I'm doing :D
So got my hearing tested to see if it was the cause of my mishearing what people say. Test showed no problems but talked with the doctor about anxiety and ADHD causing hearing issues and she agreed and also added that some people hear things differently. With my anxiety cause I am in fight or flight I pay attention to all the sounds in the area so body knows when react. Can't pay attention to one source.

Forum statistics

Threads
116,057
Messages
1,095,393
Members
151,418
Latest member
MythologixGD
Top