Weapon Unleash Error When Forced to Attack

I'm using RPG Maker MV 1.6.2 and Yanfly plugins

Whenever I have an actor with a replaced attack (with Weapon Unleash plugin) and they're forced to attack via state, an error always appears.
Can you please show Screenshots of:

1. The replaced attack

2. The state which forces the attack

Anything else that might be relevant like is there any battle events or equipment? Or any notetags that you wrote some custom code.
Weapon Unleash Notetag:
upload_2019-8-26_18-36-59.png

Skill:
upload_2019-8-26_18-46-4.png

State:
upload_2019-8-26_18-37-52.png

I don't have any battle events or equipment with script :s
oh right the damage formula got cut off:
(a.atk * 2 - b.def * 2) + (a.agi * 0.01 * a.level)
I've tried turning off all other plugins as well and there is still an error when forced to attack with a replaced attack. (The plugin definitely still works without even Core Engine)
upload_2019-8-27_16-42-48.png
Please give us a screenshot of your plugins. Then we can rule out some things.
upload_2019-8-27_20-35-42.png

upload_2019-8-27_20-36-0.png

Sorry, not exactly organized
Reorganize your Yanfly plugins in the order shown on the website, save your project, and then try it again.
I've reorganized them according to the order on the website now.
upload_2019-8-27_23-34-48.png

upload_2019-8-27_23-34-59.png
does the error happen when you start a new game, when you load a saved game, or in both cases?
The error is there whether it's a new or loaded game.
Ok I think I've found the problem.
The skill I've been focused on so much targets MULTIPLE random enemies.

I've tested the target selection with 1 enemy, all enemies and 1 random enemy and the scenario plays out fine.
I've also tested target selection for 1 ally and all allies, which cause the skill to target an enemy regardless ( I assume it's supposed to happen with the state restriction).

TLDR: The skill's target scope affected the plugin's usability in this situation, everything besides multiple random enemies works fine.
then your troop data is somehow damaged, or something messed up the random targeting.

The original error happens when the engine tries to use data that doesn't exist. If it happens with random targeting only, then the target that results from the random selection does not exist.

and that means either the troop data (which contains all targets) is messed up or the function for random selection.
Please give us a console screenshot of the moment when the error message happens - and use [alt]-[prtscrn] instead of only [prtscrn] to make the screenshots better readable.

EDIT: Make sure you started a new game when making the screenshots, do NOT load a saved game for this)
How do I get a console screenshot?
edit: nvm I figured out how
1) please rename your project folder to follow networking rules.
Having letters or symbols that are not allowed under networking rules inside the folderpath will cause problems with loading data.
every symbol or letter that is replaced by a %-number combination in browser error messages is one such problem, because that override doesn't work everywhere.
In your case it's the spaces that are replaced by %20

2) There is a reason why I asked you to use [alt]-[prtscrn] instead of asking you to cut away everything - I can't tell from your partial screenshot if there is nothing else or if you cut away part of the important info on the console.
Can you please give a console screenshot done with [alt]-[prtscrn], without cutting away anything?
ok

Original thread: https://forums.rpgmakerweb.com/threads/weapon-unleash-error-when-forced-to-attack.112606/