Facing Away From Player Utility

So this is something I've been ruminating about.

So Earthbound has this system where if you touch an overworld enemy from the back, you enter battle with an advantage. How do I replicate this in RPG Maker? Is there a way for a conditional branch to check "facing away from player"?
So this is something I've been ruminating about.

So Earthbound has this system where if you touch an overworld enemy from the back, you enter battle with an advantage. How do I replicate this in RPG Maker? Is there a way for a conditional branch to check "facing away from player"?
Not in one statement (without script), but you can do it another way.

If you look in the IF statement conditions, there's a condition where you can read a character or event's facing direction. So you can do a set of 4 statements where you basically say...

IF player character is facing up THEN
{
IF event is facing up THEN
{
do stuff
}
}

... and variants of that approach.
Not in one statement (without script), but you can do it another way.

If you look in the IF statement conditions, there's a condition where you can read a character or event's facing direction. So you can do a set of 4 statements where you basically say...

IF player character is facing up THEN
{
IF event is facing up THEN
{
do stuff
}
}

... and variants of that approach.
Actually if you touch the event, then it's always facing toward player (if no "direction fix" checked), so it's not gonna work this time.
Actually if you touch the event, then it's always facing toward player (if no "direction fix" checked), so it's not gonna work this time.
As RCXDan's example was about them sneaking up on an enemy, I assumed that they would have "direction fix" checked.
Looks like you are looking for Symbol Encounter (Here's a translated version with a demo)

While on stealth if you touch an enemy encounter from the back you start battle in preemptive battle mode, if enemy does it to you then they get a turn first.

Can configure for enemies to run away from you after certain levels, and other things.

Note that for a character to be in stealth you will need to set up a skill or an item that provides that effect with a plugin command
So I'm going to re-open this thread because it's relevant again to what I want.

Is there a script call I can use to decide if an event is "facing away" from the player? As in, "enemy NPC is not looking in any direction the player is in"?

(I know about Vlue's Proximity Detection so that suggestion is already out.)

Original thread: https://forums.rpgmakerweb.com/threads/facing-away-from-player-utility.128870/