• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

Resource Badgecase 2022-11-12

The fonts of your badge case are different from the base game and other plugins. (The latter picture is also a plugin)
I don't know how you achieved it as other plugins simply follow the same font as the base game.
Oh, try adding pbSetSystemFont(@sprites["overlay"].bitmap) above drawPage in pbStartScene and pbStartSceneOne
You can find those on Plugins/Badge Case/Badgecase_UI.rb
 
My trainer has this Badge Case whenever I start up a new game. Is there a way to activate it (that I might have missed) in a way you don't get the badge case until later through an event?
 
My trainer has this Badge Case whenever I start up a new game. Is there a way to activate it (that I might have missed) in a way you don't get the badge case until later through an event?
You can! On the pause menu condition.
You can add a switch check condition, in your example.
You can check if the player has at least one badge.

Personally, I use (my) other plugin, NTC_LPC and there you should register to the Pokemon league before getting a badgecase.
 
You can! On the pause menu condition.
You can add a switch check condition, in your example.
You can check if the player has at least one badge.

Personally, I use (my) other plugin, NTC_LPC and there you should register to the Pokemon league before getting a badgecase.
Yeah I'm gonna be honest, I don't know how to do that.
I initially had a Pokémon League as well, where the player needed to register, but I want them to hand out the badge case, too, and not have it be a permanent thing always.
 
I don't know about v19.1, so I can't help you :(


Yes! Instead of using addAllBadge, you could add every badge you want manually, and whenever you want. You have a function:
addBadge(badge)
badge should be replaced with Badges::BADGES[index]
index should be replaced with the index number of the wanted badge on the badges file (0 is the first).

You can add 8 now, and then add 8 later.
Where specifically do I add this line of code? It doesn't seem to work in an event. I've tried doing both addBadge(EARTHBADGE) and addBadge(Gamedata::EARTHBADGE) and addBadge(8) and none of these seem to work.
 
Last edited:
Well, no, they do not check how many badges the player has so as not to limit creators. You'll have to use badgecount (I don't remember the exact command) to check how many badges the player has before allowing them to fight the gym leader or before giving them the badge if you want to limit to 8 badges while allowing the player to choose which 8 badges they want. Another way would be for you to only define or give 8 badges. I think that addBadge does check if the player already has the badge.
 
Well, no, they do not check how many badges the player has so as not to limit creators. You'll have to use badgecount (I don't remember the exact command) to check how many badges the player has before allowing them to fight the gym leader or before giving them the badge if you want to limit to 8 badges while allowing the player to choose which 8 badges they want. Another way would be for you to only define or give 8 badges. I think that addBadge does check if the player already has the badge.
I just want to show the first 8 of the badges in the badge case. I currently have 16 badges, but I want the second eight to be hidden until later in the game. Once the player gets the case they can see all 16, even without giving a single badge.
 
Well, I think you will have to modify the code for that because as it is now, it shows all the badges the player can get from the start.
 
Hi, thanks for your work. I have a problem, I don't know why but the icon sprites of the ace Pokémon of the gym leaders appears in their shiny form (i'm in v20.1):
View attachment 21946
I don't know if anyone ever got back to you, or if anyone else knows, but I'm having the same bug on v21.1 and I'm rather confused.
 
I'm getting the following error. Super excited about this plugin though!

Exception:NameError
uninitialized constant BadgeCase_Scene

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
}
})
 
sometimes when i save the game occur an error in this line(232) and i dont know why it only happens after i save the game
they do dont recognize the .y

@sprites["overlay"].y -= 1 if @counter % (Graphics.frame_rate / 8) == 0
 
I just want to show the first 8 of the badges in the badge case. I currently have 16 badges, but I want the second eight to be hidden until later in the game. Once the player gets the case they can see all 16, even without giving a single badge.
You can do so by removeBadge(badge) function, removing the badge from the obtainable into the unused one. addBadge(badge) to make it obtainable.
I probably missed something, but is there a way to fix it saying that I got the badge on january 1st, 2000?View attachment 26027
Yes! I'm using Unreal Time System and forgot to adjust my code so it works without it.
It should take me a few minutes, I'll fix it and update.
I'm getting the following error. Super excited about this plugin though!
I think that the game compiles the menu plugin before the Badgecase one (it works Z to A) so it doesn't know what is it. Tell me if it fixed when you change the order (by changing the names of the folder on Plugins/
sometimes when i save the game occur an error in this line(232) and i dont know why it only happens after i save the game
they do dont recognize the .y

@sprites["overlay"].y -= 1 if @counter % (Graphics.frame_rate / 8) == 0
Can you send a screenshot of the error?
 
Hey, love this plugin!!
I wanted to to know if there was a way to show 8 badges across each row? I have a pretty ambitious game in the works and wanted to increase the 3 badge limit per row. I didn't see any options in settings and the ui code was a little confusing (v21.1)
 
Back
Top