Enemy Kill Counters Plugin

Enemy Kill Counters Plugin+1.0.0
OpheliaEnigma


Introduction

Allows the developer to save the number of defeated enemies on different game variables.

Features

This plugin allows us to do the following features without the need for any plugin command or any aditional effort from the game's developer:

  • hold a variable with the total number of enemies defeated;
  • hold a variable with the total enemies defeated for each different enemy defined on the database.

These features allow us to easily build popular RPG systems such as:

  • check a variable to see if the player defeated an x number of enemies to complete a quest;
  • check a variable to provide aditional advantages when facing an enemy that was defeated more than x times;
  • check a variable to have enemies, npc's, the world, react to the player defeating over x of certain specific enemies;
  • and many others.

How to Use

The plugin has only a single parameter. This parameter is to be set to a number of a variable id. This variable (let's use 100 for example porpuses) will hold the total number of enemies defeated. Then, the game variable right next to that one (in our example's case, 100 + 1) will hold the number of enemies defeated with the database id 1; the game variable equal to 100 + 2 will hold the number of enemies defeated with the database id 2; And so forth.

By just setting a single parameter, the user has a multitude of variables that will, without the need of any aditional effort, know everything the user will ever need about enemy deaths.

VERY IMPORTANT NOTE: The variables must exist on the database for the counters to work. This means that the user should guarantee the variable id for the parameter os this plugin exists and, all others needed to hold each enemy on the database exist too.

Plugin
Please donwload the plugin here

Credits
- OpheliaEnigma

Terms
This plugin is free to be used for non-commercial projects, however, for usage on commercial projects please donate the amount specified for this plugin at the plugin's itch.io page. Any doubts don't hesitate to contact me, OpheliaEnigma, either through here or my email address: [email hidden]
No one? Thanks a lot for your work, I really find this very useful for my own personal game 😀
No one? Thanks a lot for your work, I really find this very useful for my own personal game 😀
thank you 🙂 I'm really happy that my plugin was useful. And, of course, if there is anything you don't understand about it don't hesitate to ask!
Question. I want to make a kind of Undertale-like game, so I was wondering if, with this plugin, I can make the world react (Negatively) to high kill counters, specially affecting the entire story when kill counter reaches certain (Very high) point

Also, does it count if they flee? Because the Spare system I found online makes them flee when you spare
@ViolinGamer23 so far I can see, the code is on enemy collapse, meaning,
running from a fight wont count.

a better question is, if there are 3 enemies of the same, 1 dies, and 2 alive
when running away, this might count +1, and not +3.

but for that part, I cannot tell if thats the case or not, but it might be.
only OpheliaEnigma can tell for clarification =)
@ViolinGamer23
Question. I want to make a kind of Undertale-like game, so I was wondering if, with this plugin, I can make the world react (Negatively) to high kill counters, specially affecting the entire story when kill counter reaches certain (Very high) point

Also, does it count if they flee? Because the Spare system I found online makes them flee when you spare
Sorry for taking so long to answer, I don't know why I only noticed this message now 😛. Hope my answer is still relevant. Sure, you can use this plugin to do that. The kill counters are saved on different variables, and you can just check them when interacting with events. For example, by checking if the player has killed more than a certain number of human enemies, a shopkeeper may refuse to sell items to the player! At the same time, you may even have demon shopkeepers that give discounts if the player has killed many humans!

And don't worry about the fleeing enemies, like @ShadowDragon said, the counter is only added to when the enemy collapses in battle.

I didn't understand very well the question @ShadowDragon makes about the 3 enemies. However, if you kill 1 and then flee from battle (or the remaining two enemies flee), it should only add 1 kill to the counter because, effectively, the player has only killed 1 enemy.
@OpheliaEnigma that is what I didn't know, but wouldn't if you have 3 enemies,
killed 1, and flee result in 0 kills instead? because well, you escaped the battle.

But you answer my question also directly, if 3 the same, 1 killed, than flee,
I couldn't confirm that or from the code, but ty for clarification anyway.

Better later than never I would say.
@OpheliaEnigma that is what I didn't know, but wouldn't if you have 3 enemies,
killed 1, and flee result in 0 kills instead? because well, you escaped the battle.

But you answer my question also directly, if 3 the same, 1 killed, than flee,
I couldn't confirm that or from the code, but ty for clarification anyway.

Better later than never I would say.
Glad that I could help 🙂!
this plugin is awesome saves a lot of time, it worked with other known plugins! thank you so much.

EDIT: Also works with the quest journal plugin that i have been using for some time now.
Awesome, really happy it helped you @exiledknight 🙂 !

Original thread: https://forums.rpgmakerweb.com/threads/enemy-kill-counters-plugin.129564/