public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers
Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Kill Counter
  • Original author: Shaz
  • Original date: February 15, 2016
  • Source thread: https://forums.rpgmakerweb.com/threads/kill-counter.56923/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)

Summary

Kill Counter 2016.02.15 by Shaz Introduction

Archived First Post

Kill Counter


2016.02.15


by Shaz


Introduction


This plugin allows you to track, in a variable, the number of enemies of a specific kind killed.  The counter can be turned on and off as desired.


How to use


Add to your plugins folder (file name does not matter, but I call mine KillCounter.js).  There are no parameters to set.


Use the following plugin commands:

Code:
StartKillCounter enemyId variableId maximumRequired
EndKillCounter enemyId

enemyId is the enemy's id as shown in the database - do not include leading zeros


variableId is the variable's id where the kill count is to be stored - do not include leading zeros


maximumRequired is the point at which the counter will stop accumulating.  This argument is optional - if omitted or 0, the variable will keep incrementing until the kill counter is ended.  Use this argument if you want to show the number of enemies killed in a text message via \v[...] and don't want it to go over the required amount (for example, if you will show \v[...] / 10 slimes, you would not want the variable to exceed 10).


Example:

Code:
StartKillCounter 1 15 10

will increment variable 15 for every bat (enemy 1 in the default database) killed after the plugin command is run.  When the variable reaches 10, it will not be incremented further.


Remember, if you don't pass in a maximum, the variable will keep incrementing, so if you only need 10 slimes, your test will have to be "if variable >= 10" rather than "if variable = 10".


Plugin


Download from pastebin


Credit


- Shaz


Terms


- free for use in commercial games


Notes


- You MUST define the maximum variables in the database to be large enough to include the variable you're using in the plugin command.  If your database only contains 50 variables and you use variable 100 for the plugin, it will not work.  I suggest using a Control Variables to set it to 0 (and give it a name) at the same time as the Plugin Command is called to start the counter

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

License / Terms Note

Credit - Shaz Terms - free for use in commercial games

Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rmmv#plugin-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar