Please read the entire post, as the problem is not as simple as the title may suggest.
Post summary
I have recently completed a game; it does not possess field exploration. There is only a single screen, and the player may press either a "Forward" or "Backwards" button.
The buttons were achieved by the use of YEP's Picture Common Events.
This is the current common event for the Foward button.
A press of the Forward button is supposed to increase the invisible Cnt. event by 1, and the visible Turn counter (Cnt. turn) and Step counter (Cnt. step) by 1, while decreasing the visible Energy (Cnt. Fatigue) by 1. After waiting 5 frames it turns the Switch "random encounters" ON. If the Switch "skip random encounters" is OFF, it calls upon what the Switch "random encounters" does: calling the Common Event "Random encounters."
The "Random encounters" Common Event is too long to post fully, but here is an average call.
"If cnt. turn is equal or above 9" -> flexibility to have multiple different batches of random encounters possible as the turn counter increases.
Control variable "random event" from 1 to 10 -> Numbers 1, 4 and 7 include random battles. 9 and 10 random loot drops.
There are multiple conditional branches for the numbers 1, 4, 7, 9 and 10, nested in ascending order (1 first, 10 last, while skipping unused numbers) inside else statements.
The Common Event "loot processor" was evented in the same way as the "random encounters" Common Event, instead distributing randomized items as opposed to battles.
Additionally, within the map where single-screen exploration occurs, there is a paralllel process event that checks for the invisible "cnt. event", dictating whether a random encounter is absolutely unable to happen because a cutscene should play instead. I don't believe it's causing the problem, but it may be useful to show as well.
The problem
Post summary
I have recently completed a game; it does not possess field exploration. There is only a single screen, and the player may press either a "Forward" or "Backwards" button.
The buttons were achieved by the use of YEP's Picture Common Events.
This is the current common event for the Foward button.
A press of the Forward button is supposed to increase the invisible Cnt. event by 1, and the visible Turn counter (Cnt. turn) and Step counter (Cnt. step) by 1, while decreasing the visible Energy (Cnt. Fatigue) by 1. After waiting 5 frames it turns the Switch "random encounters" ON. If the Switch "skip random encounters" is OFF, it calls upon what the Switch "random encounters" does: calling the Common Event "Random encounters."
The "Random encounters" Common Event is too long to post fully, but here is an average call.
"If cnt. turn is equal or above 9" -> flexibility to have multiple different batches of random encounters possible as the turn counter increases.
Control variable "random event" from 1 to 10 -> Numbers 1, 4 and 7 include random battles. 9 and 10 random loot drops.
There are multiple conditional branches for the numbers 1, 4, 7, 9 and 10, nested in ascending order (1 first, 10 last, while skipping unused numbers) inside else statements.
The Common Event "loot processor" was evented in the same way as the "random encounters" Common Event, instead distributing randomized items as opposed to battles.
Additionally, within the map where single-screen exploration occurs, there is a paralllel process event that checks for the invisible "cnt. event", dictating whether a random encounter is absolutely unable to happen because a cutscene should play instead. I don't believe it's causing the problem, but it may be useful to show as well.
The problem
Is anyone able to help?