Representatives of the armed forces in Scotland stood alongside veterans and invited guests to mark the service and sacrifice of Scots who lost their lives in armed conflicts over the past century.