Woes of random number of attacks.

Okay, so after spinning through the internet I found a way to do my "attacks 1 enemy 2-4 times" skill, through the use of self-inflincting states with the damage calculator and common events.


Now, however I noticed that for whatever reason after using said attack on an enemy, it makes the enemy stop using any moves or attacks and make them invincible to boot (HP doesn't seem to decrease.)


I don't really get what's up, the move gives the character a "dummy status" through the damage formula with the "a.addState(x)" formula and starts a common event, which picks a random number between 1-3, which determines if the move is going to be a 2-, 3- or 4-hit version, the conditional branch then checks which character has the dummy state and forces him/her to use said move on the last target, the move plays out just fine and it then removes the dummy state at the end of the event.


If anyone has any idea what's going on, I would much appreciate any help.
show us screenshots of your skills and states - that description skipped several dozen options where the problem might be caused.


We need to see every part of them to see what you did and where the problem might come from.

Original thread: https://forums.rpgmakerweb.com/threads/woes-of-random-number-of-attacks.74319/