Need help with specific item creation

I'm new to the RPG Maker engine (mv) and I have an idea that I'm struggling to put into my game.
I want to create a player character where levels do matter and are scarce and only obtainable from quest and sidequest experience. But this will make battle encounters tidious and unrewarding.
So I wanted to create an item like a ring for example, that will reward the player with stat upgrades on battle won OR kill count. (maxHP/maxMana/ agility etc.)
Im sorry if this is a lame question but im really struggling to wrap my head around it haha.
I don't want this to be a skill or a passive skill. I want it to be an item so I can give it small downsides, so the player would want to change it once it's capped.
Welcome!

This is an unusual one. There might be another method available, but I'd suggest you look at Yanfly's Auto Passive States and Buffs & States Core.

You can use the first to have the ring grant a passive state to the actor wearing it, and the second has notetags you can use for that state to run code at the end of battle.

You would need to define exactly what you want the item to do, and either look up the script calls for that or ask for help with the code to go inside the notetags.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-specific-item-creation.165534/