rtg.dir = get_dir(rtg,trg)
So say if you set an arg that if your direction is say NORTHWEST/NORTHEAST and it doesn't support that, you can easily just go the obj will go NORTH. Now while this works, what if the trg your aiming at is y+1,x-5, now the games rtg.dir = get_dir(rtg,trg) will set the rtg's dir to NORTHWEST, which will set it to NORTH, when WEST was the more obvious way to fire, thus making this auto-target system faulty.
Now, BYOND has a very smart and cool system of making your icon direction in the right direction when it has only 4 states, so say if you move from north to northwest it stays north. But if you move from west to northwest it stays west. That would help a lil' in the aiming if I made a proc to set the jutsu dir in what icon_state dir your in.
Though still if your icon_state dir was NORTH, and the obj was y+1,x-5, it would still go NORTH. So I was wondering if there was some kind of way I can have a better check for this? Like maybe a path finding kind of thing that makes obj's and if more go west then your attack will go west, or something. Any ideas? Or is there pre-set args for this?