MZ Region specific sounds that are inaudible somewhere else

Hey ya'll,
I searched a lot, but I didn't really find something that matches my problem.

I'm making a game with a lively town, and I'm using the community lighting plugin to have a day/night circle. In my town, every NPC has some kind of schedule, similar to Stardew Valley for example.
It works fine, but I have an issue with sounds.
Example:
At 7am the local farmer leaves his house and walks over to his crops. He'll spend the day there and then walks back to his house. When he appears and disappears on the map, his door moves and makes a sound. So far so good. But this sound is audible on the whole map, so if several NPCs leave and enter their homes or do their daily tasks, the whole town is filled with door sounds or broom wooshes. You get the idea.
I'd like to find a way, where the source of the sound is in a specific region and you'll only hear it when you're in that region, too.
I don't want something to happen at the exact moment, the player enters a region, I just want to make sounds inaudible, if the player is not in the region around the door/bell/chicken/river etc. Like the sound appears on 7am, and if you're next to the door, you'll hear it, but otherwise, you don't.
I found some plugins that provide things (events) to happen, when you enter a region, but that's not what I need, I'm afraid.
Can someone help me?

Thank you in advance! :LZScat:
https://forums.rpgmakerweb.com/inde...l-audio-voice-acting-new-channels-etc.128741/
Here is the answer to your request
Alternatively, suggestions without a plugin:
  1. If you're playing the SE in a move route, you could swap the Play SE move command for a Script, to include an "if player is in my region" check. E.g. (untested):

    if ($gamePlayer.regionId() === this.regionId()) AudioManager.playSe({ name: "Door1", volume: 5, pitch: 100, pan: 0 });

  2. If you're playing the SE outside of a move route, you could event a region check, e.g.

    ◆Get Location Info:Check, Region ID, Player ◆If:Check = 5 ◆Play SE:Door1 (5, 100, 0) ◆ :End
    Note that this would only require 1 "Check" variable, no matter how many events you have. That's because "Parallel" events don't actually run concurrently: all events are updated one after the other, Parallel events simply run independently of other events.
(Potential search terms: proximity audio, spatial audio.)
Thank you so much for your replies, I'll test it as soon as possible!

Original thread: https://forums.rpgmakerweb.com/threads/region-specific-sounds-that-are-inaudible-somewhere-else.177036/