设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
搜索附件  
同能RPG制作大师 › 附件中心 › 同能RM技术讨论区 › RPG Maker MV 讨论区 › Badge Points (1.0): BadgePoints.js

Badge Points (1.0): BadgePoints.js

 

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







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/
简体中文
繁體中文
English(英语)
日本語(日语)
Deutsch(德语)
Русский язык(俄语)
بالعربية(阿拉伯语)
Türkçe(土耳其语)
Português(葡萄牙语)
ภาษาไทย(泰国语)
한어(朝鲜语/韩语)
Français(法语)
关闭

幸运抽奖

社区每日抽奖来袭,快来试试你是欧皇还是非酋~

立即查看

Loading...

QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

GMT+8, 2026-10-24 21:27 , Processed in 0.087938 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部