So I would need some help with different kind rpg combat.
You have max 6 members in your group and they can be Melee, Support or Ranged.
Melees would be in one line first, support / ranged behind them and after them there is you the commander.
Melees can attack only straight to melees but not behind them. Rangers can shoot over melees. Support would heal and cast buffs. The commander cant be attacked before melees/ranged/support are all dead.
So basically you would have 3 lines of soldiers and enemy too, unless your group is total melee or total ranged. And some bosses/special characters have special powers that they can use sometimes, example AoE damage or massive damage to single char. Same works for you when you get more abilities.
Idea is the combat is automated but you can give 3 kind of orders to your group.
Attack stance -> X + To attack, X - To Defence
Defence stance -> X - To attack, X + To Defence, melees can block wider area.
Normal stance -> Nothing.
Now Im just confused how I should do this?