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.

Menu

I would like to know how to add something in the pause menu.  It should appear under where your total amount of gold is displayed, and it should say 
                  "Quest Points: <insert number here>" 

The way the game works now, quest points are added as a variable called "Quest Points" but the player cannot see how many they have.  The amount of quest points displayed in the menu should be the same as the value of the variable.  For example, if the variable=1, it should be displayed as     

                  "Quest Points: 1"

Thanks for the help!
 

poccil

Sponsor

You can edit the step count window to do this.  In the method _refresh_ of the script section Window_Steps:
Code:
  def refresh
    self.contents.clear
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "Quest Points")
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 32, 120, 32, $game_variables[1], 2) # Change 1 to the quest point variable number
  end
 

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