Closed window detector ?

Hi everyone,

I'd like to play a sound when a chest is closed.

Si I think it might be when the window is closed.

Is there any way to detect when a window is closed ?
OK, just for confirmation - you aren't talking about menu windows, because when those are closed they don't exist anymore?


If you're talking about a chest's lit - those don't exist for the computer, they are just different pictures, usually employed by different event pages.


So what you really want is to play a sound when the picture is changed to the closed chest.


That command needs to be given at the place where the picture is changed, so it depends on the event - show us a screenshot of the event that closes the chest and we'll tell you where to enter the sound command there.
Do you mean after the popup window that tells you what you got from a chest?
No, in fact I'm talking about de game windows.

For example, when a chest is open, a sound is played and a dialog box appears.

So, we are all OK to say that the dialog box close by pressing Enter or another button.

I want that a sound plays WHEN the dialog box is closed.
Have you tried putting the SE as the last command on the event page, after the last dialogue box?

EDIT

Just re-read you last post and it occurred to me that you might mean that after every dialogue box.  I think that as a player I would become deeply irritated by it, if that is what you mean.  The average game contains hundreds, if not thousands, of dialogue boxes.  To hear the same SE that many times would, I think drive me crazy, especially if there were sections of long'ish dialogue where I would be hearing it repeatedly in a short time.
Ok, that worked ksjp17 🙂 Thank you, this is very simple and I use RMVXA for a long time, but I did not think about this.

Thanks again !

You can now close this topic.

Original thread: https://forums.rpgmakerweb.com/threads/closed-window-detector.43815/