Hi all, fresh newbie here, made an account just to reach out for help! Experimenting with all these awesome scripts, trying to create a unique rpg.
While testing I found that three scripts I use, Yanfly's Weapon Attack Replace, Vlue's Pet's and Summon's (Compatibility Version), and lastly (my personal Favorite) Yanfly's Free Turn Battle seem to clash in some way.
Here's my issue. When actor A summons actor B, and actor B kills the enemy and is left with no more Action Points from Yanfly's Free Turn Battle, it crashes the game with an error box stating:
"Script 'Weapon Attack Replace' line 301: NoMethodError occurred.
Undefined method 'actor?' for nil:NilClass"
Line 301 and its neighbors are:
300 def status_redraw_target(target)
301 return unless target.actor?
This is the only way it crashes the game that I've discovered. I've tried re-arranging the scripts, editing the attack (it previously used the Weapon Attack Replace), summoning different actors, but the outcome remains the same, a cold, cold, crash followed by that error. It ONLY happens when the Summoned Actor lands the killing blow on the LAST enemy. I've tested for hours on end to make sure that's correct! My theory is that it tries to check if there's any change in MP or HP as a result of the attack, but the actor is removed at the end of the battle, resulting in the crash, how ever, I have no idea how in the world I would fix that, nor where to even start.
A simple "fix" is to straight up delete "Unless target.actor?" but that brings up graphical errors with the Free Turn Battle Script, resulting in any changes to MP/HP/TP/Stat symbols not being properly shown until the NEXT turn. (Example just in case it doesn't make sense, Actor A, who has 100MP uses a weapon that costs 10 MP, they would use it, but their MP Gauge wouldn't change to show the proper amount (which should be 90MP) until next turn, after the enemy has acted.)
If there's any questions or any other clarifications you need please let me know! This isn't for any serious project, but I'd be lying if I said I didn't want to make it work!
(Side note, I have all the necessary scripts for Yanflys Free turn battle script. Those being "Ace Core Modifications" and Ace Battle Engine)
Apologies for any newbie Mistakes!