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.
oh right the damage formula got cut off:
(a.atk * 2 - b.def * 2) + (a.agi * 0.01 * a.level)
Please give us a screenshot of your plugins. Then we can rule out some things.
Reorganize your Yanfly plugins in the order shown on the website, save your project, and then try it again.
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?