Badges for Items
How to Limit an Item to a certain amount of Badges.
Last updated
How to Limit an Item to a certain amount of Badges.
Last updated
By default in Essentials you would need to setup a list of items for each badge amount that you want to change the items available for.
This plugin provides a handy Setting that handles this for you.
Simply said, you add the badge amount and assign an array of items that will be available when you have at least this amount of badges. This Setting is similar at how you setup the HM's usage in the Overworld for each badge. But the difference there is that you can do this by a specific badge (by ID) or the amount.
Any Items that are not mentioned in the BADGES_FOR_ITEMS Setting will be buyable from the start.
So if we made this method and added this at the bottom of the 000_PokeMarket_Settings_and_Setup.rb file, we only need to a script command in the event saying pbSomeMart.
Result in Game when we have 0 Badges:
Result in Game when we have 1 Badge:
And we can keep going for when we have 3 badges but looking at theBADGES_FOR_ITEMS
Setting, it'll add the:HYPERPOTION
, :SUPERREPEL
and :REVIVE
items to the buyable items.