Variables when receiving key item(RPG Maker VX Ace)

Hello, I am new here on the forum and I hope I am posting this in the correct place.

Im using rpg maker vx ace and I have come across a problem. I have a certain key item that the player receives occasionally at the end of battle with a certain enemy. The problem is that I want to change a variable each time that happens so that variable keeps track of how many of that item the player has. This is so the player can turn in a sidequest when he/she has ten of said item. I cant seem to find a way to do this, do I have to turn to scripting for this to work?

I have tested the sidequest by using an event to change the variable to ten and it works just fine. But as I said I cant seem to find a way to change this variable when receiving the key item after a battle.

edit: I solved it by looking at the variables tutorial. I am sorry for posting this, Im new here and read the rules after posting, stupid I know. But now I know where to look first if a search doesnt find anything.

Original thread: https://forums.rpgmakerweb.com/threads/variables-when-receiving-key-item-rpg-maker-vx-ace.121117/