how to sleep in bed or buy items in a shop

How do you sleep in a bed. I made a Inn where your character can sleep during the night. This will regain your health if you sleep. And how do you buy items in a shop? (health ect)


Here is a Inn i created.


inn sleep.JPG


inn sleep2.JPG
These are the most basic questions about using the engine.  I strongly recommend that you have a look at Andar's excellent compilation of information for new users.  One of the many links he provides is to Dreadshadow's tutorial on Event Commands, which is what you need to do the things you're asking about.  Spending a bit of time on this now will save you vast amounts of time and frustration in the future.


As for feedback on your Inn, this is not the forum for that.  Here it is for "How do I...?" questions.  There is a dedicated thread for map feedback which you can find here.  Please post there.
Pseudo code:


1.


If you choose stay over night.


Hotel Girl activates self switch a which activates here seccond eventpage which got condition self switch a on.


2.


Seccond page must be Autorun, this is used for cutscene so the player cant move.


Insert in this Eventpage:


Play Music


Transfer player with blending dark into the bed.


than wait 60 frames (1seccond)


show baloon sleeping buble


wait 60 frames


set move route 😛layer jump 0,0


Self Switch A off


wait 4frames


this could be done better but thats my quick brainstorming to this.


Item shop


There is an Eventcommand to open a shop Window.
@Bex Unless the OP simply means the standard Inn event via Quick Create.  Visibly transferring the player into a bed will require a specific graphic of the player under the blanket, otherwise it just looks like the sprite is standing on it.  I suspect that would be a bit complex here, so probably best to keep it simple.
This is simple and fun for playing around iam sure he will figure it out after some time or he will get back to the starter tutorials.
i

This is simple and fun for playing around iam sure he will figure it out after some time or he will get back to the starter tutorials.

i figured it out, it was very easy just a few clicks of a button, i got help on how to do it. The screen just goes black and then goes back to normal again once the character wakes up from his sleep.
@Bex At the risk of getting off-topic, context is all when giving advice.  The OP doesn't yet know how to use Quick Create or Shop Processing, and is using RTP tiles.  It is unlikely that s/he will want to be creating custom tiles at this stage.  Until a person knows how to do the fundamentals, suggesting something more elaborate is possibly not the most helpful thing to do.
I read somewhere that there is nothing wrong with different answers for posible solution ways.


I cant see what Painting Tile Graphics has to do with this Topic.
@Bex At the risk of getting off-topic, context is all when giving advice.  The OP doesn't yet know how to use Quick Create or Shop Processing, and is using RTP tiles.  It is unlikely that s/he will want to be creating custom tiles at this stage.  Until a person knows how to do the fundamentals, suggesting something more elaborate is possibly not the most helpful thing to do.

I have now learnt a lot since a few hours ago. By watching YT videos i now know how to use those fundamentals now like i just made a locked door for a house and you need a key in order to get in, so i went to the Inn got the key from a chest (in which i did all the requirments on putting the key in the chest) then i went back outside from the INN and went to the locked house and opened up the locked door and went inside. I am going to now try it with other items you have to collect in my game.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-sleep-in-bed-or-buy-items-in-a-shop.68191/