help with a sleep # variable

my character has been arrested and will be broken out but i'm trying to make it so he has to sleep like 5 times before certain events take place. character has the option of talking to a party member through a hole in the wall (event) checking the door which is locked, or sleeping in the bed. if they go talk to the party member in between sleep sessions it seems to work fine. but if they sleep and then immediately try to sleep again, the screen fades to black and nothing progresses. I just get BGS.
Screenshot%202017-03-24%2010.18.08.png
It looks like your move route is trying to move an event on the the same tile as another event.
Set your bed event Options to 'Through', and the Priority to 'Above Characters'.
@Rinobi While I think the problem lies in the move route, I don't think that changing bed's passability can fix that. An event with "Above characters" prioriry can only be activated while on the same square as the event, this will change the way the event can be activated but it will hardly fix the proble since the event is moving Dorian, which is not the bed event.

@dcarter84 Unfortunatly it is impossible tho see what is in the room in your screenshot because the event window conceals it. One thing you shoul be able to do for sure is to set the move route to be skippable. Edit the move route and check the "Skip if cannot move" option. This should fix your bed event.

NOTE: I said that it will fix your bed event, not that it will fix the Dorian event position. That one might still be changed. However, if I guessed right - given the position of the bed in the visible portion of your map - I think that your event moves Dorian to the upper right corner of the room (I presume that's in proximity of your hole event) and so it shouldn't go any further.


EDIT: If you are using that move route so that your Dorian event is always at the same spot after sleeping then I would suggest to use a command to set event position to that spot instead. This way you don't have to set a skippable move route, it will ALWAYS move the event to the correct position and it is faster to execute.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-sleep-variable.76321/