I've been trying to figure out how to make a script in the Conditional Branch that works similar to Pokemon essentials pbNoticePlayer(get_self) script. I've looked online for script commands but all I'm finding is stuff Vx ace and the newer stuff. i have got one script to do close to what I want. its not working right though. I'm trying to make my enemies see 5 tiles straight in front of them.
Code:
The top lines in my first Conditional Branch 2nd line is inside the first in another Conditional Branch.
(($game_map.events[@event_id].x - $game_player.x).abs + ($game_map.events[@event_id].y - $game_player.y).abs) == 1
($game_map.events[@event_id].direction == 2 && $game_map.events[@event_id].y < $game_player.y) || ($game_map.events[@event_id].direction == 8 && $game_map.events[@event_id].y > $game_player.y) || ($game_map.events[@event_id].direction == 4 && $game_map.events[@event_id].x < $game_player.x) || ($game_map.events[@event_id].direction == 6 && $game_map.events[@event_id].x > $game_player.x) && (($game_map.events[@event_id].x - $game_player.x).abs + ($game_map.events[@event_id].y - $game_player.y).abs) == 1