Checking on a specific die roll total and displaying a note?

Hi folks,

for the Valor&Victory wargame I am trying to watch for a natural roll of 2 (2d6 of 1+1) and when such a result is rolled, have either a LOG entry added, or a window displayed (in the game that means “Valor” results). This does not tie to any piece and is rather “global”.

What would be the broad framework?

The Symbolic dice button is named “2d6”, so I imagine $2d6_result$ would be the value…