its kind of already implemented, dont know the name now but some melee chars (like wolfs) have this auto attack feature if a char runs aside the char even if its not his turn he will attack. If you want to make a skill you could use this and expand it.