OpheliaEnigma

Villager
Member
Joined
Nov 3, 2020
Messages
22
Reaction score
28
First Language
Portuguese
Primarily Uses
RMMV
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: OpheliaEnigmaUltimateCoder@gmail.com
 

ccarsas

Villager
Member
Joined
Jun 2, 2018
Messages
5
Reaction score
8
First Language
spanish
Primarily Uses
RMMV
No one? Thanks a lot for your work, I really find this very useful for my own personal game :D
 

OpheliaEnigma

Villager
Member
Joined
Nov 3, 2020
Messages
22
Reaction score
28
First Language
Portuguese
Primarily Uses
RMMV
No one? Thanks a lot for your work, I really find this very useful for my own personal game :D
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!
 

ViolinGamer23

Warper
Member
Joined
Jul 26, 2021
Messages
2
Reaction score
0
First Language
Spanish
Primarily Uses
RMMV
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
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,501
Reaction score
1,728
First Language
Dutch
Primarily Uses
RMMV
@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 =)
 

OpheliaEnigma

Villager
Member
Joined
Nov 3, 2020
Messages
22
Reaction score
28
First Language
Portuguese
Primarily Uses
RMMV
@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 :p. 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.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,501
Reaction score
1,728
First Language
Dutch
Primarily Uses
RMMV
@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

Villager
Member
Joined
Nov 3, 2020
Messages
22
Reaction score
28
First Language
Portuguese
Primarily Uses
RMMV
@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 :)!
 

Latest Threads

Latest Posts

Latest Profile Posts

While was working on one of the monsters that will appear in my horor game I may have made harold a Lovecraftian monster. (I used his head to keep things aligned.)
Finally got my website fixed and the security sorted so it's been a productive day. Can I go to sleep now? I mean... I don't need to work right?
It's always a good idea to refresh yourself on what your plugins do. I'm working on a map with opening walls, and I was about to tear my hair out over how much image editing and hand-constructing of autotiles I'd have to do, when I looked again and saw @Shaz 's Tile Changer could copy areas from another map.
"sorry it took me so long to respond" - can we please agree not to say that anymore unless it actually took a long time?! (Like 36hrs at least) I mean, I'm running out of funny responses here xD
Ugh... 4:53AM over here and I can't sleep so why not just game make.

Forum statistics

Threads
115,923
Messages
1,094,073
Members
151,180
Latest member
GinTank
Top