Variables that store numbers

I've seen in games like Pokemon where if you bring a Magikarp an NPC tells you how big the fish is. I've been pondering the idea of testing a fishing contest but it would require remembering the sizes of fish caught. I'm not sure how to event this.

I imagine the event something like "player caught fish that was 6inch" or something. Or whatever number I want. I think I can make the actual fishing event myself I just don't know how to make variables remember the sizes the player caught.

Or maybe Animal Crossing would be a better example? I dunno. Any suggestions on how to event this?
There is a control variable option in the event command list. Set it to be the number (however you determine it) and it will be stored. You can recall it in text with \v[#]

edit: for clarity
Spoiler: Fish Size Sample
1597875929318.png
Assuming I understood your question correctly, you mean remember the sizes of all the fishes ever caught? If that's so, you can use arrays.
First you can declare the array like this:
$gameVariables.setValue(x, []);
Then when you catch fishes, you can push the size inside the variable like this:
$gameVariables.value(x).push(size);
Another way you can do it is just with a ton of different items: fish1inch, fish2inches, fish3inches, etc.

When you want to check a fish, you can then let the player select which fish to compare, and have a nice big nested set of if... blocks to check the item id and set the appropriate size into a variable. You'll then have the fish size in a variable.
Just wanted to say thank you everyone for the great suggestions! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/variables-that-store-numbers.125456/