I'm having a problem, I have an enemy that casts a seal magic ability, but it rolls it again even though the targets already have that status on, how can I make it detect if it has the status on and consequently if so, don't use that ability ?
Problem with enemy
RPG Maker MZ SupportYou can use the VisuStella Battle Core and give the skill the notetag
where X is the ID of your state (no leading zeros).
Code:
<JS Targets>
targets=$gameParty.aliveMembers().filter(actor => !actor.isStateAffected(X));
</JS Targets>
I put the notetag in the skill? or in the state?
Turan says skill in his post.
Oh sorry i read it wrong :c, thanks for the help
Original thread: https://forums.rpgmakerweb.com/threads/problem-with-enemy.153896/