Awesome script, it works absolutely fine.
To make it more realistic, I changed the graphics in the outdoor-tileset and made the windows/doors brighter.
To make it work I created an event on every window, with a new page where the default switch 15 "s:PBDayNight.isNight?(pbGetTimeNow)" is on. Additionally the event named "RegularTone"
So if it's night the switch turns on and the window shines bright.
But it only works, when the map refreshes (player changes the map, e.g. goes into a house and outside again).
If it gets dark and he's walking around, the windows stay dark.
And of course the other way round, when daylight comes back the windows are still glowing until the player enters a house and leave it again.
Is there any possibility to let the switch activated autimatically as soon as it gets dark, without going into a house and outside again?
![[PokeCommunity.com] [v13+] Unreal Time System (like Minecraft) [PokeCommunity.com] [v13+] Unreal Time System (like Minecraft)](https://fs5.directupload.net/images/161130/temp/zp39cysn.png)
The two top pictures are correct, the two lower ones incorrect.