Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] Very little change to the shop menu. How do I do this?

Does anybody know where, in the Window_ShopStatus script, I can edit it so it doesn't show the + (plus sign) when comparing item's Physical and magic defence in the shop buy menu? Is this even possible?

Why would I want to do this you may be thinking: Well, I'm using a Font that up until now, I hadn't realized has a minus where the plus should be. So If I type + in a Text window (for example), when you play the game it looks like -
Because the letters in the font are all irregular (different width spacing) I cant just swap it with a new font without redoing every bit of text in my whole game, and believe me, that would be a nightmare!
 
Look for the code:
Code:
# Draw parameter change values
        self.contents.draw_text(124, 64 + 64 * i, 112, 32,
          sprintf("%+d", change), 2)
The sprintf() method causes this, so just change the '+' in between the % and d. Should work like a charm.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top