Enemy Overworld Stealth A.I. Questions

Do you know how to make a conditional branch, that checks distance between specified event and the player?

Do you know how to make a conditional branch, that checks if the player and a specified event stare at each other?

Do you know how to check by conditional branch if the player and specified event are behind impassable objects against each other?
"How do I?" questions belong in the support forum. Based on your profile, I've moved this to VXAce Support for you.
I mean if it is possible to check by using a script in conditional branch is the player located for a 6 or shorter distance from specified event.
Do you know how to make a conditional branch, that checks distance between specified event and the player?
https://forums.rpgmakerweb.com/index.php?threads/proximity-distance-check.79791/

Do you know how to make a conditional branch, that checks if the player and a specified event stare at each other?
You can try a "if X is facing" which is found conditional branch 3rd tab. You'll have to check if one is facing, for example, right and the other is facing left. The only flaw is if they arent staring at each other, but happen to be facing in that direction, that could be an issue. So you may need to do another distance/proximity check because if the player and the event in question is 1 or 2 tile proximity, with that, the chance of error has lessened.

Do you know how to check by conditional branch if the player and specified event are behind impassable objects against each other?
I have no idea.
Do you know how to make a conditional branch, that checks if the player and a specified event stare at each other?
In addition to what has been said this can also be done checking their direction if they are far from each other. Direction (Down, Left, Right, Up) is respectively 2, 4, 6, 8 and can be checked using character_id.direction (character_id is either $game_player or $game_map.events[id]).

Do you know how to check by conditional branch if the player and specified event are behind impassable objects against each other?
This requires an algorithm to check simple paths in a graph. For detailed info about this you can google "path graph". It can be done using an event but the theory behind it is somewhat compelx. If any of the tiles in the shortest path is an impassable tile then they have an impassable tile between them.
Great thanks, but I may only need to judge distance between player and the opponent, if it is 6 or less than opponent the opponent will chase the player.

Also i'm planning to use Theo Allen pathfinding script to fix issue with opponent running into trees.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-overworld-stealth-a-i-questions.96488/