• Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Resource icon

v21.1 Badgecase 2022-11-12

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
Are you tired of the old fashion badge case inside your trainer card? This plugin is for you!
Sorry for the mess, it's my first time sharing a plugin.

1696360762386.png

1696360768657.png

1696360775481.png

Features:
  • New and better-looking UI for badge case including two pages:
  • The badge case with all of the badges
  • Badge screen including Leader name and sprite, location, main type, and ace Pokemon.
  • New method for getting a badge that uses the UI to show the badge after receiving it (same way as catching a new Pokemon)
  • New method for getting the max number of badges the player can obtain ($player.badge_max)
Installation:
  • Download the zip file from the link above ("Go to download", top right)
  • Extract it into your game main folder
  • Compile before starting to play
  • Have fun!
The zip file contains:
  • Plugins/Badge Case/Badgecase_Config- Some options for you to choose about the UI
  • Plugins/Badge Case/Badgecase_Main- Main script for the plugin's backend
  • Plugins/Badge Case/Badgecase_UI- Main script for the plugin's frontend
  • Plugins/Badge Case/Badgecase_PBS- The script to read the PBS file
  • PBS/badges- The badges list
  • Data/badges- The badges data, you shouldn't touch it
  • Graphics/UI/Badgecase- Almost all the sprites that the plugin uses
  • Graphics/Trainers- Contains sprites for gym leaders used as examples
How to use:
Adding the badge case to your pause menu- add the following code at the bottom of the UI_PauseMenu script:
Ruby:
MenuHandlers.add(:pause_menu, :badges, {
  "name"      =>  _INTL("Badges"),
  "order"     => 50,
  "effect"    => proc { |menu|
    pbPlayDecisionSE
    pbFadeOutIn {
      scene = BadgeCase_Scene.new
      screen = BadgeCaseScreen.new(scene)
      screen.pbStartScreen
      menu.pbRefresh
    }
    next false
  }
})

Credit to wrigty12 for instructions
In 005_VoltseonMenu_Entries, add this somewhere:
Ruby:
#-------------------------------------------------------------------------------
# Entry for Badge Case
#-------------------------------------------------------------------------------
class MenuEntryBadgeCase < MenuEntry
  def initialize
    @icon = "menuBadgeCase"
    @name = "Badge Case"
  end

  def selected(menu)
    pbFadeOutIn(99999) {
      scene = BadgeCase_Scene.new
      screen = BadgeCaseScreen.new(scene)
      screen.pbStartScreen
      menu.pbRefresh
    }
  end

  def selectable?; return true; end
end
In 001_VoltseonMenu_Config, in MENU_ENTRIES array, add "MenuEntryBadgeCase" to the list, where you want it
Add this to Plugins/Modular Menu/Config [001]/Config
Ruby:
#-------------------------------------------------------------------------------
#  Badges
#-------------------------------------------------------------------------------
ModularMenu.add_entry(:BADGES, _INTL("Badges"), "menuBadges") do |menu|
  scene = BadgeCase_Scene.new
  screen = BadgeCaseScreen.new(scene)
  screen.pbStartScreen
end

The function for getting a badge is:
pbGetBadge(:badge_internal_name)

If you want to add another badge- that's easy.
Go to PBS/badges.txt and add your badge.

On Plugins/Badge Case/Badgecase_Config you can change the following:
  • Info Page (for every badge or only for obtained)
  • Badge Name (show always or only when obtained)
  • Location (show always or only when obtained)
  • Main Type (show always or only when obtained)

For any questions, problems, or requests- feel free to reply :)
Credits
Credit if used:
roei110
Luka S.J. (Luka's Scripting Utilities)
  • icon.png
    icon.png
    52 KB · Views: 5,244
  • example.png
    example.png
    63.9 KB · Views: 4,673
  • example2.png
    example2.png
    38.3 KB · Views: 4,590
Author
roei110
Downloads
2,938
Views
11,421
First release
Last update
Rating
5.00 star(s) 7 ratings

More resources from roei110

Latest updates

  1. Updated For v21.1

    Made the following changes: The plugin is now compatible with v21.1 The plugin shouldn't clash...
  2. Badgecase 2.1

    Made the following changes: The badges list is now a PBS file The in-game badges list should...
  3. Another Update :)

    Made the following changes: You can now choose if you want the badges to be shown as themself...

Latest reviews

I keep getting an error saying "stack level too deep." How do I fix this error?
R
roei110
On the configuration page, add a smaller accepted size.
Had some slight trouble with installation, but I think that was user-error on my part. I ended up getting it working, and the badge case looks great!
Really cool. Can be more cooler if added support for animated pokemon.
Great resource to display more than just a badge on the trainer card. Allows for better customization and content showing.
Really cool plugin. Default Essentials doesn't have an animation for receiving a badge, so this helps to spice things up a bit.
So nice add-on ! Well done ! I love seeing the images of the champions and their favorite Pokemon
Back
Top