Help MV chrono engine ABS battle ( chat or fight)

how do I talk to police officer but also have the option to hit police officer instead of talking to him first.

Im trying to have town folks walking around town and the player has the option to chat with the town folks
or attack towns people.

atm I have the option to attack this npcs and remove him. but im having troubles starting a conversation with the npc
it won't open dialog chat.

I believe I gotta use a variable to check if player has hit the npc and perhaps a common event to help with it. im just not sure how the order goes
chrono engine.png
police officer.png
police officer event 1.png
police officer event 2.png
police officer event 3.png
Doable but could you specify exactly what situation pressing ok next to the npc would trigger talking and what situation would be attack if talk and attack both share the same (ok) button?

If the player is next to the NPC and presses 'ok' how does the game know whether to attack or talk?

Edit: Your trigger right now is Player Touch so the talking message will show when you touch the event

Original thread: https://forums.rpgmakerweb.com/threads/help-mv-chrono-engine-abs-battle-chat-or-fight.176937/