Trouble with battle conditions

Hello,

I want to better my understanding of battle conditions. I currently have an event setup:
on turn 3 + 5, summon 2.
1775081375706.png

1775081432223.png

Turn 3 works as intended, if unit is not stunned: it will summon 2 other units.
If unit is/was stunned, it will do nothing.


When turn 8, 13, 18, ect comes around, I want it to be ran again. However, the event refuses to do so. My work around is to make multiple of the same events with conditions Turn 3, Turn 8, Turn 13, but that seems inefficient.

Why is condition: Turn 3+5*X not working as intended? Are there better ways to script this event? Please let me know, thank you!
Try using a variable that coincides with turn count, adding +1 at the end of each turn. And then a conditional branch containing all your existing branches inside it. You can simply cut/paste them as a whole. The new conditional branch could use a script line from the 4th tab as such:

$gameVariables.value(x) >= 3 && ($gameVariables.value(x) - 3) % 5 === 0

Replace x with your variable number and this will do the math for you, only returning true when the variable is 3 or every +5 thereafter.

Edit: Also, I didn't notice before, but you have the page set to "Battle" which runs once per battle. You need it set to "Turn" and it should work.
It might be good to think of "Span" as part of the conditions that determine whether the event can run. If it's set to Battle, it means "Do not run if it already ran in the current battle". If it's set to Turn, it means "Do not run if it already ran in the current turn". And setting it to Moment is the battle equivalent of Autorun – meaning it needs to disable its own condition or else it'll permanently freeze the battle.

Original thread: https://forums.rpgmakerweb.com/threads/trouble-with-battle-conditions.183103/