MZ FF Dia inspired spell

then use
Code:
<JS Pre-Damage>
if (target.states().includes($dataStates[603]))
  value = 200 + user.mat*2
</JS Pre-Damage>
then use
Code:
<JS Pre-Damage>
if (target.states().includes($dataStates[603]))
  value = 200 + user.mat*2
</JS Pre-Damage>
That worked!!

Thank you so much, I learned a ton from this.

That worked!!

Thank you so much, I learned a ton from this.
It does now partially work, however it's always targeting the 1st unit even when another was selected.

then use
Code:
<JS Pre-Damage>
if (target.states().includes($dataStates[603]))
  value = 200 + user.mat*2
</JS Pre-Damage>
Would target.hp help in declaring which target needs to be specified?
the <JS Pre-Damage> notetag should not have any impact on the target selection process. are you sure that its causing that issue? if you removed the notetag, the skill works properly?
the <JS Pre-Damage> notetag should not have any impact on the target selection process. are you sure that its causing that issue? if you removed the notetag, the skill works properly?
I believe the issue is related to the <Target: Ally or Enemy> notetag which may be conflicting or causing the problem.

This is odd, the <Target: Ally or Enemy> does work and allows me to select any unit on the field which is normally not allowed in the engine. However once I include the <JS Pre-Damage> notetag, it seems to have an issue as it doesn't announce the spell in the combat.log, nor does it target correctly.

I believe the issue is related to the <Target: Ally or Enemy> notetag which may be conflicting or causing the problem.

This is odd, the <Target: Ally or Enemy> does work and allows me to select any unit on the field which is normally not allowed in the engine. However once I include the <JS Pre-Damage> notetag, it seems to have an issue as it doesn't announce the spell in the combat.log, nor does it target correctly.
Would this be a possible way to select the current target before damage calc?

<JS Targets>
</JS Targets>
I believe the issue is related to the <Target: Ally or Enemy> notetag which may be conflicting or causing the problem.

This is odd, the <Target: Ally or Enemy> does work and allows me to select any unit on the field which is normally not allowed in the engine. However once I include the <JS Pre-Damage> notetag, it seems to have an issue as it doesn't announce the spell in the combat.log, nor does it target correctly.
i believe you might have encountered a bug within the plugin then. if that is the case, then the only people who would be able to do anything about it would be the visustella team. if you have it to the point that the issue can be replicated, then try to follow the steps for filing a bug report with the visustella team
i believe you might have encountered a bug within the plugin then. if that is the case, then the only people who would be able to do anything about it would be the visustella team. if you have it to the point that the issue can be replicated, then try to follow the steps for filing a bug report with the visustella team
Understood, I appreciate all the effort and help 🙂

Also, as a temporary workaround I've made the spell scope All Allies + Enemies and used the <JS-Pre Damage> notetag with the skill, forcing the spell to be locked into AoE scope, but now it functions as intended.
I think an Element plugin would probably solve this fairly simply.
You can try mine.
LINK - Pastebin

It was made for MV but should work fine in MZ.
Now, it MIGHT have issues with VS plugins, so place it below them in your plugin order if you try to use it.

Let me know if you need help with the specific notetags.

Good luck!

Original thread: https://forums.rpgmakerweb.com/threads/ff-dia-inspired-spell.175942/