help with a dialog activated switch?

Hello all if this is not the proper place to post this just let me know so i will know where to post next time.

I am trying to make it when your character talks to the inn keeper and chooses to rent a room in my game you can either move around all you want in the inn except leave until you activate your bed you rest get hp mana etc. refilled. OR after you rent a room your character auto walks to the bed and the resting sequence activates. For the auto move here is a screen shot of the inn

cd0990e80d.png


Thanks in advanced!
you may need this:

A switch where your character has paid to the Inn.

How to use it.

After you put "Do you want to rest here for X g?" put "Yes", activate a switch (NOT a self switch, a normal switch).

After that, add a new page on all teleports with the trigger on touch, saying "I should go to rest at the bed now that I paid" and move the player one step up again.

This will prevent you from going out.

You may also want to add a page to the inn keeper with a text like "good night" or something to avoid paying again and again...

After that, you can put a touch event on the door of the room,

with the movement of the player from the bed,

with the requeriment of that switch being activated.

do your sleep dark jiggle wiggly do and finally, just do your awake animation and turn off the switch you used.

DONE.

Hope this short description helps a bit.
You need to use a switch for the exist that prevents the regular transfer for those times.


Other than that, I can't tell what you want from us as you have neither made a question not posted any event that you have troubles with - we cannot make your game for you...

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-dialog-activated-switch.43830/