I'm using Victor Engine ATB with Symphony side battle.
The problem is that VE ATB removes the "Fight Escape" from the start of the battle. So if I hit the cancel button, the game crashes with this:
Script 'Game_Actor' line 692: NoMethodError occurred.
undefined method '<=' for nil:NilClass
Here is the script that is causing the error:
#--------------------------------------------------------------------------
# * To Previous Command Input
#--------------------------------------------------------------------------
def prior_command
return false if @action_input_index <= 0
@action_input_index -= 1
return true
end
Basically the game is trying to go back to a previous command that doesn't exist, so it goes nuts.
I was thinking if there was a way to check to see if @action_input_index was not assigned a value, to either ignore it or set it at some value that isn't causing the game to crash.
If anyone has any ideas on how to fix this, I would be very grateful. I love using these two scripts together, they fit my needs perfectly. I can't find another good ATB script either, so I'm stuck trying to get VE ATB working.
The game is crashing when I hit "cancel" at the start of battle. I know what needs to be fixed but I
● ARCHIVED · READ-ONLY
-
-
Try changing this:
Code:to this:return false if @action_input_index <= 0
Code:If that doesn't work, add a link to the full script, please.return false if @action_input_index.nil? || @action_input_index <= 0 -
If I could hug you right now, I would!
Thanks so much! Works like a charm.
Me right now: :D :D :D :D :D :D :D -
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.