Joined
Jan 25, 2022
Messages
77
Reaction score
65
First Language
English
Primarily Uses
RMVXA
Anyway, I ran into a problem using Fomar0153's "YanFly Compatible Customisable ATB/Stamina Based Battle System script" (found here).
As it says, it requires Yanfly's Ace Battle Engine, which I am also using...

The problem: Whenever an enemy uses the "Escape" ability in battle, the game will crash and give me this error:
error.png
Here's line 458 in the script:
458.png
I'm not really sure how to fix this issue. From what I understand from the error message, it seems this method wasn't properly defined? However, only a few lines below, the 'stamina_cost' method is indeed defined:
stamina_cost.png
So... I'm a little lost, to be honest. I recreated the error in a new project with fresh scripts from the sources I provided. The error still appeared. If anyone can take a look at these and try and find the solution, I would be eternally grateful.
 
Last edited:

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
7,338
Reaction score
11,088
First Language
Indonesian
Primarily Uses
N/A
Here is a quick fix.
At the end of line 458 from your second screenshot, add if @actions[0]
 

Latest Threads

Latest Posts

Latest Profile Posts

The forum stalled for a second and I thought I got banned for using 1 swear word. :kaoswt2:
Today years old when I realized I can track Last Skill ID used as a variable... natively in engine....

*sighs in reconstructing skill system*
Well, another class starts tomorrow. About 2 weeks of teaching them virtually and then they arrive on campus for about 4 weeks of in-person instruction. The next batch of Snorlax Acolytes is hopefully ready to go!

Forum statistics

Threads
131,749
Messages
1,222,902
Members
173,498
Latest member
hyotae
Top