Hey, I managed to make that system to work
However is pretty simple for now, I expect your suggestions and features. In current version you train the capt'n, which comes with 12 soldiers. When you issue order to the capt'n, all soldiers will follow his orders. Still you can move single soldiers around individually.
The system is far from finished though, because I need some essential informations from you:
-how much battallions should be the maximum? (to set the proper size of the array)
-should be the officer a hero? (so you can select it via icon)
-how would the battallion die and death's effect on the food supply?
-what if the officer dies? (should he be invulnerable and die after the whole battallion die?)
-and some more that will come up
I want to ask you if you can test this also multiplayer to check if it works
Btw, I inserted a basic melee system, where the soldiers will switch to bayonet attack when attacked from the close range. Although the ability to 'bayonet charge' is not implemented yet.
I hope this helps.