Self Switch not activating.

I am making a fishing tutorial for my game using self switches. Using Yanfly Engine Ace - Debug Extension v1.01 I have determined that the self switch is not switching on. What am I doing wrong with my code?

AcceptFishingRod.jpg
- The quest to get basic fishing rod.

Fishingpg1.jpg
- Fishing event pg 1

Fishingpg2.jpg
- Fishing event pg 2

Fishingpg3.jpg
- Fishing event pg 3

Fishingpg4.jpg
- Fishing event pg 4

Fishingpg5.jpg
- Fishing event pg 5

Fishingpg6.jpg
- Fishing event in pg 6

Thank you for your help. I am a little stumped.
wrong page order.


If several pages have their conditions fulfilled, only the page with the highest number will be executed (the higher the page number, the higher the priority).


Which means that when self-switch A is activated, the event goes directly to page 6, skipping all pages between.


Which means that the variable with the number of fishes is never increased, the conditional branch is never processed and your game hangs in an eternal autorun loop.


EDIT:


Condition the last page on self-switch B, and all pages between replace the self-switch A OFF with an self-Switch B ON.


On the last page, first turn off self-switch A and then turn off self-switch B
Was just about to mention it, but Andar got there first 😀

To quote the manual:

If there are multiple event pages satisfying conditions, the event will spawn based on the event page with the highest number. The event will not spawn if none of the pages have their conditions satisfied.

Original thread: https://forums.rpgmakerweb.com/threads/self-switch-not-activating.43578/