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.

Gold not working the way it supposed to.

When im shopping then i need gold but when im like in a Inn and we say I have 0 gold and it costs 10 gold I can still sleep because it's not a shop.
What I want help with is: When it takes 10 gold for sleeping and he doesn't have 10 gold then it shouldn't work.

I hope I get some help from you guys <3
 

candle

Sponsor

Yopu need a line that checks to see if gold is > 10.  and a branch for if it is true or false.  the true statement would be sleep, etc., and the false statement would be something like, "You don't have enough, now get out of here freeloaders!"
 

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