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.

Getting Inns to work right

How can I make it so that once you purchase a room from the inn master that you can only then sleep in the bed without making lots and lots of switches?
 

R.J.

Member

It is very simple.

1. Make a switch called HiredRoom (or whatever you wanna name it)
2. For the Inn NPC event code, put whatever you want him to say, subtract gold if the Inn costs money, then turn the switch HiredRoom on.
3. Put an event on the bed you want the player to sleep on. For the event code, put whatever you want to happen when he rests, I usually put a black screen and the traditional Inn music.
4. At the bed event code, at the very bottom turn the switch HiredRoom off. If you want the player to be able to sleep in all the beds, simply copy&paste the event for the bed to other beds. There are no additional switches needed for this.

This should work.
 

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