Badge Points (1.0)

Badge Points (1.0)
by Wrongful​

Introduction
This plugin adds a new "Badge" system, where instead of a set number of equipment slots, the player has "points" that can change throughout gameplay; they can equip a small number of powerful badges, or a larger number of lesser ones. This plugin is named after the Badges from Paper Mario, but is also similar to the Charms from Hollow Knight, or the Medals from Bug Fables, for example.

(This is the first plugin I've publicly released, so any feedback is welcome! 😍)

Features
(Requires YEP_EquipCore.)

The number of "Badges" you can equip is not based on a set number of slots, but how many Badge Points your Actor has, and how many Badge Points each Badge is worth. Setup is very simple, and the player can change their Badges at any time in a new Badges menu just like regular Equipment.

Badges all fall under a single Equipment Type, as defined in the plugin parameters. All other equipment types and systems should be the same, meaning you can have both Badges and normal Equipment without conflicts. However, beware of any plugins where a Player's default Equip Slots can change throughout gameplay (such as Yanfly's Class Change Core).

Screenshots
The Badges menu. The player has 9 BP, 1 Badge equipped, and 2 more in their inventory.
The Badges menu with no BP.



How to Use
Define in the plugin parameters which Equipment Type you want to use for Badges; this eType will then no longer be equippable in any actor's default Equip menu. Then, make a Badge by setting any Armor to that same eType, and make sure their Armor Type is set to 1 as well ('General Armor'). Use the <BP:x> notetag to define how many Badge Points that Badge is worth.

From there, make the Badge have whatever unique traits you want!

Plugin Commands / Script Calls
GainBP 5 1
Gives 5 BP to Actor 1.​

LoseBP 5 1
Takes 5 BP to Actor 1. (NOTE: If an actor's BP falls into the negatives, it will automatically unequip Badges until their BP is at least 0 again.)​

PartyGainBP 5
Gives 5 BP to the entire current party.​

PartyLoseBP 5
Takes 5 BP from the entire current party.​

ShowBadgeMenu
Shows the Badge option in the Main Menu.​

HideBadgeMenu
Hides the Badge option in the Main Menu.​

EnableBadgeMenu
Enables the Badge option in the Main Menu.​

DisableBadgeMenu
Disables the Badge option in the Main Menu.​

(NOTE: The following plugin commands call for specific indexes in your actor's equipped Badges. Because Badges can have their indexes fluctuate by design, these commands are not always reliable.)

ForceEquipBadge 8 3 1 true
Automatically makes Actor 3 equip the Badge with the armor ID of 8 in slot 1. If "true," it will be added along with your other equips; by default, it will replace whatever Badge is currently in slot 1. (Note that this does still use BP, so be careful not to send an actor's BP into the negatives.)​

LockEquipBadge 1 2
Locks Badge slot 1 for Actor 2; the player will not be able to change it manually in the menu.​

UnlockEquipBadge 1 2
Unlocks Badge slot 1 for Actor 2, if it was locked previously.​

Download
https://github.com/Wrongful/badgepoints for the latest version. The same file is also attached below.

Terms and Credits
This plugin may be used freely in any projects, commercial or private, so long as credit is given to Wrongful.

Changelog
  • 1.0: Plugin finished and released!
this is literally exactly what i was looking for thank you omg
Can we check if an actor has a badge equipped the same way we check equipment?
Maybe I'm just stupid, but it seems like this plug-in has an issue where if you go over an actor's BP, it just goes into the negatives and still lets you equip. I've tried on blank projects and still get the same result. Probably a missing >= somewhere in the .js or something.
Maybe I'm just stupid, but it seems like this plug-in has an issue where if you go over an actor's BP, it just goes into the negatives and still lets you equip.
It looks like there's a logical error - it only checks whether a badge's cost exceeds your maximum BP, not what you have left.

In the plugin, change line 675:
Code:
    if (bp > this._bp) {return false};
to
Code:
    if (bp > this.bpLeft()) {return false};
It looks like there's a logical error - it only checks whether a badge's cost exceeds your maximum BP, not what you have left.

In the plugin, change line 675:
Code:
    if (bp > this._bp) {return false};
to
Code:
    if (bp > this.bpLeft()) {return false};
Yup, that was it! Thank you Turan, you're the GOAT.
Hey! me and my friend found this the other day (or well, I learned of its existence from her and idk if she saw this sooner but still)
We are having struggles setting up the badge menu so it can be seen as in the screenshots provided, would it be okay if you were able to make a demo project with it?
(since we tried for like 20 minutes last night and had no luck, then again we are a bit dumb)

help would be appreciated!! 😀
I’m trying to use the plugin and I follow the entire process you describe, but I can’t get it to work. When I add an armor that is supposed to be a badge, it doesn’t appear when I open the badge menu. The game doesn’t register it at all, so it can’t be equipped. No armor shows up in the menu, and even if I force the game to equip it to a character, the game still doesn’t recognize it—I can’t unequip it or interact with it in any way ;-;
Is there a solution for this? Honestly, it’s a very interesting plugin and I’d really like to use it in my game.
I’m trying to use the plugin and I follow the entire process you describe, but I can’t get it to work. When I add an armor that is supposed to be a badge, it doesn’t appear when I open the badge menu. The game doesn’t register it at all, so it can’t be equipped. No armor shows up in the menu, and even if I force the game to equip it to a character, the game still doesn’t recognize it—I can’t unequip it or interact with it in any way ;-;
Is there a solution for this? Honestly, it’s a very interesting plugin and I’d really like to use it in my game.
do you have YEP_EquipCore enabled?
if you do, is is placed below?

if you use more YEP plugins, are they in the correct order?
Yess, I have all of that and still, it doesn't work

Original thread: https://forums.rpgmakerweb.com/threads/badge-points-1-0.166289/