attack every random x turn

how do i make a monster attack every random X turn and not fixed? like 1 5 9 13, but more like 1 3 7 9 10 14 15 like that
Directly it would require a rewrite of the battlesystem, and most of the existing battlescripts are still based on one action per turn (and the ones that don't remove the turns completely.


However, you can pretend to the player that the monster attacks only in some turns by giving it a skill that does nothing and have it randomly choose between attack or doing nothing in a turn.


There are several ways to do this with the attack pattern depending on what exactly you want.
ahh thats clever sir, how does weighting work?
is there a way to make script to have a monster attack a player.

Original thread: https://forums.rpgmakerweb.com/threads/attack-every-random-x-turn.53138/