Staking task

Hello all,
I’m currently working on a turn based game and I would like to be able to stack the task the player gives to each unit. Example if one unit is currently attacking I would like the player to be able to start selecting their next task for a different unit and its stacks in a task array or something.

Could anyone suggest a way to do this with a multiplayer system ?