You don't need a script.
Make a new event, then have it say a message like "Would you like to stay the night?"
Then, make a conditional branch so that if they don't have enough gold, they can't stay.
Then make it tint the screen black and then do a complete healing then restore the screen.