NPC Guard

I am trying to make a guard event in my pub.
So the way i want to set up the guard is like this:
Bar is closed, you can get in through the back door.
A guard is walking around the bar looking for intruders. You must stay out of his/her line of sight.
If they see you you will get 2 choices: pay a fine or fight the guard.
If you fight the guard and win then you can continue to rome the bar.
If you pay the fine, you are transferred outside of the bar and the guard is reset.
When you exit the bar from the fight, the guard is reset.
You will also get into a fight with the guard if you don't have the money to pay the fine.
Any help is much appreciated.
If this can be done by only eventing let me know how.
I tried to make it using YEA - Event Chase Player
maybe this demo can explain you.
Spoiler
I tried to make it using YEA - Event Chase Player
maybe this demo can explain you.
Spoiler
I am using Vlues advanced time script and need the guard to only be at the bar if the bar is closed.
Screenshot_1.png
I am using Vlues advanced time script and need the guard to only be at the bar if the bar is closed.
View attachment 139112
I updated the demo. I added 2 switches that were used to identify the time of the day and night.
It's in the script editor. set the switch and run the guard like in the demo
This is the Demo
I updated the demo. I added 2 switches that were used to identify the time of the day and night.
It's in the script editor. set the switch and run the guard like in the demo
This is the Demo
I am using vlues advanced game time script: https://forums.rpgmakerweb.com/index.php?threads/advanced-game-time.3851/
Try this
Try this
There is nothing there when I extract it. Nevermind, extracted it wrong. lol

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/npc-guard.119928/