- 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.
Features:
Adding the badge case to your pause menu- add the following code at the bottom of the UI_PauseMenu script:
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:
For any questions, problems, or requests- feel free to reply :)
Sorry for the mess, it's my first time sharing a plugin.
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)
- 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!
- 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
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:
In 001_VoltseonMenu_Config, in MENU_ENTRIES array, add "MenuEntryBadgeCase" to the list, where you want it
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
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
- ChampChar110