I see how mixing up someone's settings would cause them to lose the battle, I think that was the whole purpose of an ambush. Catch them off guard. No time to set up lines. Why is this a problem? Have we not been looking for something that allows a realm with very few troops to gain an upper hand?
One thing that I would highly suggest for ambushes, the attackers gain no Honour or Prestige in the battle, where as the defenders gain more than usual for surviving it (if they do).