Badges for Items

How to Limit an Item to a certain amount of Badges.


In default Essentials, managing which items are available in a Mart based on badge count requires setting up separate item lists for each scenario.
This plugin simplifies that process with a dedicated setting: BadgesForItems

Image not found
Default Mart Event for Badges
Hint

Introduced in v1.6.0 — there's a new setting BadgesForSpecies, which can only be used for Species events. The setup is completely the same as for BadgesForItems with exceptions you should specify Species instead of Items.


The Easy Way with BadgesForItems

Use the following setup in your 000_PokeMarket_Settings_and_Setup.rb file:

Each key in the hash represents a badge requirement.
Once the player has at least that many badges, the associated items become available for purchase.

Hint

This system is similar to how HMs unlock with badge milestones — but event better, you can also configure the specific badge ID if needed.


Items Available from the Start

Any items not listed in the BadgesForItems hash will be available by default, with 0 badges.


Example Usage

Let's say we define a Mart like this:

Now simply call pbSomeMart in your event using a script command.

Image not found
Shorter Mart Event for Badges

Result in Game

🔒 With 0 Badges:

Image not found
No Badges Item Category 1
Image not found
No Badges Item Category 2

🔓 With 1 Badge:

Image not found
1 Badge Item Category 1
Image not found
1 Badge Item Category 2
Image not found
1 Badge Item Category 3
Image not found
1 Badge Item Category 4

As shown, once a badge treshold is crossed, all items defined at or below that level become available.
For example, reaching 3 badges will unlock:

...and so on, all the way to 8 or more badges.