Script: set_direction(2) if region_id == 1
Script: set_direction(4) if region_id == 2
Script: set_direction(6) if region_id == 3
Script: set_direction(8) if region_id == 4
Move Forward
There are other ways to do this as well, which are not limited just to region_ids
Script:set_direction(2) if @x == 123 && @y == 345
That code will cause premature turning though, so you may want to use @real_x and @real_y, which is basically just @x, @y * 256 (or 128 in RMXP). If you REALLY wanna get fancy, you could even check other stuff that has nothing to do with that event itself!
Script: set_direction(2) if $game_player.x == 5 and $game_player.y == 8
And for Events
Script: set_direction(8) if $game_map.events[12].x == 3 and $game_map.evets[12].y == 8 and $game_map.events[12].through and region_id == 4 and terrain_tag == 4
There really is not any sort of a limit on what you can do with Scripts!
But lets get REALLY fancy!
Script: move_right unless @x == 12 and not moving?
Script: @move_route_index -= 2 unless @x == 12
That is a simple way of continuing to move until the Event's X is at 12 instead of putting in twelve move left commands! This is IMPORTANT as it allows for variable movement also. The important part is to note the @move_route_index -= 2 That makes the Move Route continue to repeat the move_right command until it hits that coordinate. It is basically a very simple way to do pathfinding.
That stuff is for XP, so if anyone wants to translate that above code for VXA, Im sure it would be appreciated.