How do you only make enemy attacks possible during specific turn intervals?

Hey,

I'm trying to have enemies inflict status effects (like "sleep" or "rage") alongside regular attacks, to give players a harder time. However, even after setting the status effect priorities lower, I've noticed the enemies still use them way too often.

How do you make enemies only use such attacks at specific turn intervals? (For example, allowing them to use them on turn 1, then turn 3, then turn 5, etc.) I'm sure there's a way to do it in the conditions page, but the way it's presented is a little weird to newcomers, and I'm not sure how to do that.

85e9a2c7258c2c9e9924bb08c0a44a05.png
it is a mathematical presentation.
count x up from 0, 1, 2, 3, 4, 5 and so on, and the turn formula will get you the turn number for the next attack.

however keep in mind that this is only the condition, not the selection.
you have to take both the rating and other skills with similar rating into account.

the second (implicit) condition is that from all skills that have their condition fulfilled, the ones that have lower ratings (more than 2 away from the highest active rating) will also be disabled.

and of all remaining skills one will randomly be chosen based on the weight of the rating.



the entire system is a bit to wrap you mind around, I agree, but when you learned it it is very versatile and can be used for a lot of different effects.
As Andar points out, it's simple math. So the first number is the first turn that it can happen on, then the second number is how many turns for it to repeat.

So if you wanted it to be every third turn, you'd say Turn 3 + 3 (6, 9, 12...).

If you wanted every odd turn, you'd say Turn 1 + 2 (3, 5, 7...).

And then you take into account the rest of what Andar said about having proper ratings entered. If your enemy is only doing programmed attacks, e.g. there's only one possibility for each turn, then that doesn't matter.

If you find you need something more detailed than this, Yanfly's Battle A.I. Core offers very precise control over what enemies will do, but it's more in-depth than this and it's not a free plugin.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-only-make-enemy-attacks-possible-during-specific-turn-intervals.145811/