Examine event tile three times before you get an item?

I'm attempting to create a "puzzle solver" of sorts (ironic as I can't solve this particular puzzle...). I've never done a project like this before and I'm only what you would call an "okay" user with Ace. Regardless, I've never had to create a stipulation such as this, so I'm at a loss.

One of the clues you get is "Third time's a charm," relating to having to examine something three times before you get a necessary item. I've dabbled around for a while and attempted to find some information on how to do this via conditional branches, scripts, anything - but to no avail. Any help would be immensely appreciated!
This should be simple using variables. Each time the player checks, add 1 to the variable. Then set a conditional branch to check if the variable equals 3.
oiP3aei.jpg


See if something like this works.
This can also be achieved by using 3 self switches.

The event should contain 4 pages

Page 1 - No condition, contains text that you want, Self Switch A = ON

Page 2 - Condition: Self Switch A is ON, contains text that you want, Self Switch A = OFF, Self Switch B = ON

Page 3 - Condition: Self Switch B is ON, add item to inventory, text for received item, Self Switch B = OFF, Self Switch C = ON

Page 4 - Condition: Self Switch C is ON, contains text that item was already received

Original thread: https://forums.rpgmakerweb.com/threads/examine-event-tile-three-times-before-you-get-an-item.22097/