Complex sentence: The front doors of the state house are only opened when a governor leaves office or a head of state comes to visit the State House, or for the return of flags from Massachusetts regiments at the end of wars.
Split into simpler sentences: The front doors of the state house are only opened when a governor leaves office or a head of state comes to visit the State House. It is also traditionally opened for the return of flags from Massachusetts regiments at the end of wars.