Need help figuring out a stamp-collecting system and handing out rewards appropriately

Hello, everyone. I'm making an adventuring side quest in my game in RPG Maker MV where the goal is to collect stamps from various locations, and then the player returns to an adventurer's club when they have enough stamps to earn a reward. I believe I am supposed to use variables and add +1 for each stamp collected. However, I'm confused on how to hand out rewards in the appropriate order. If the player collects 5 stamps and returns to the the adventurer's club before getting the reward for collecting 3 stamps, I would think the event for the 3 stamp reward would be skipped in favor of the 5 stamp reward because of how event pages function.

How can I get this to work properly, so even if the player returns to the adventurer's club with 5 stamps, they still get the reward for having collected 3 stamps?

If I haven't provided enough information to receive help, please kindly let me know, and I'll do my best to elaborate further. This could always be one of those things where it makes sense to me typing it out, but another person reading it might have it lost in translation.
You'll want to have a variable tracking which rewards they've currently got in addition to which one they're currently eligible for. This is pretty straightforward, you don't really need to do any nesting for the base case.

Pseudocode wise, let's say you have 5 stamps and have rewards set up for 1, 3, and 5

At the start, your variables are:
CurrentStamps=5;
HighestStamps=0;

The event goes through this logic:

if ((HighestStamps<1) AND (CurrentStamps>=1)
"Oh, I see you have collected a stamp! Here's your prize."
HighestStamps=1;

if ((HighestStamps<3) AND (CurrentStamps>=3)
"Wait, is that three stamps I see? A bigger prize for you!"
HighestStamps=3;

if ((HighestStamps<5) AND (CurrentStamps>=5)
"Five stamps? Wait... this is a rare misprint. An ENORMOUS prize for you!"
HighestStamps=5;



And the result is that the player gets all three prizes in a row. Then when they talk to the NPC again, the HighestStamps value prevents any of the prize text from firing.
Make an Item Called Stamp.
Add this Item to inventory when you collect one.
In your NPC HQ do this at your NPC:

Control Variable1 = Number of Stamp item in inventory (it stores the value you have at this moment)

Conditional Branch Variable2 = 0 (This condition helps to add this price only 1 time when spoken to npc)
If yes: Conditional Branch if Variable1 is equal or more than 1 (Enough Stamps for this Price?)
If yes: Control Variable2 add 1, Show Textbox: Here is your 1st Price and add Item. Else Case: Textbox: You dont have enough Stamps. You got \V[1] Stamps and 1 is needed for this Price.

Conditional Branch Variable2 = 1
If yes: Conditional Branch if Variable1 is equal or more than 3
If yes: Control Variable2 add 1, Show Textbox: Here is your 2nd Price and add Item. Else Case: Textbox: You dont have enough Stamps. You got \V[1] Stamps and 3 are needed for this Price.

I believe this code is not perfect, but maybe it helps to get a start in combination with what @Restart wrote.
You could just look up an "Image Gallery" Plugin, Like the one by Mog Hunter and pretend the Stamps are simply Enlarged Images.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-figuring-out-a-stamp-collecting-system-and-handing-out-rewards-appropriately.117243/