Help with events (using kill counts)

Hi guys I'm new to this forum, I've been working on a game for a few weeks now, and I want to add secret items which only appear in a location, after a certain amount of kills of a specific enemy. I can't do this because I'm not a very good scripter or that familiar with the events system. Can someone help, please?
How are you doing your battles - are they random encounters, or are they all events on the map using the Battle Processing command?


If the latter, after the Battle Processing event command, just increment a variable by however many of that type of enemy were in the party. Then on your secret item event, set the condition (above the event graphic) to be Variable >= however many of them you want killed.


If you're using random encounters, then it involves scripting.
Random encounters, I figured out how to use it after event battles, but event battles are generally bosses, which you can only fight once in my game. Do you know how to script it?
Moving to RGSS3 Script Requests

Original thread: https://forums.rpgmakerweb.com/threads/help-with-events-using-kill-counts.21262/