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
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!
本贴来自国际rpgmaker官方论坛作者:Wrongful处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/badge-points-1-0.166289/