MV YEP Buffs & States Repeat skills when Force Action [SOLVED]

Hello again...

Just yesterday, I made a post asking for help, and today, I'm doing it again. I hope it doesn't come across as too bothersome; I apologize in advance.

My current issue is with the YEP Buffs & States Core...

I created a state that is similar to confusion on game Pokemon, called "bug." One of the effects this state has is causing the actor to damage themselves, for which I've assigned a skill that inflicts damage on the actor. Everything is fine up to this point. However, when I put it to the test and force action to the actor to use ANY SKILL, it repeats it over and over again. It seems that at the end of each turn, it repeats once more. I'm using YEP_SysSTB. Could someone help me resolve this issue? Thank you very much for reading!
can you share the state? its hard to know what's going on with it without seeing how you wrote it.

is it a <custom action end effect> that queues the action? youll want to add a check that the current skill isnt the same as the self damaging one before queuing the skill
As Robro says, it's impossible to know what you're doing wrong if you don't actually show us how you're trying to do it.

What's wrong with using the built-in Restriction: attack anyone on the state? Do you only want the user to attack themselves?
What's wrong with using the built-in Restriction: attack anyone on the state? Do you only want the user to attack themselves?
If OP is copying Pokémon's Confusion effect, yes.

@Dails Are you using Yanfly's method for your effect? If so, do you have both Buffs and States, as well as Battle Core?

And if you aren't using Yanfly's method, here it is.
Hello! sorry for not answering. I finally found a solution to the loop.

It was about flipping a switch when it was done hitting. You would then run into a conditional at startup that would see if that switch is open and automatically exit the event process.

After the event notes I set the switch to turn off after the common event, so that when it was my turn again everything could go back to normal.
Screenshot_9.png

Screenshot_10.png


Somehow user Robro33 gave me the idea. So thank you very much 😀.

Sorry for the inconvenience and thank you very much for responding!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yep-buffs-states-repeat-skills-when-force-action-solved.162470/