Finding a way to shorten an event/script

So basically I am attempting to make an 'action' combat system, where you smack around your enemy and they smack around you. I have this down pretty well, but the problem is, it is very very very long. I was hoping someone would know of a solution to make this event shorter.





Basically I have it set up that if you hit 'A' you will attack and if the enemy is one space away and you are facing them, you hit. This works well, but like I said it is very long. In addition to that I have the same thing going for enemies, only instead of a button push it is random if they actually attack you or not.


Any help would be greatly appreciated it.


Edit: Well I managed to condense it a little by making the direct and the location conditional branches into one each, so four instead of 12. I am still open for other suggestions on this though.
Any bits that you're repeating a bunch, like move routes, etc. could be condensed via CommonEvents.
That is true, I don't know why I didn't even think of that! Thanks ZServ! I also found that if I replace some of the common events with a scriptlet it really shortens what I have to enter.

Original thread: https://forums.rpgmakerweb.com/threads/finding-a-way-to-shorten-an-event-script.59082/