#loop
?(alive c47box3) : goto "box3"
?(alive c47box2) : goto "box2"
?(alive c47box1) : goto "box1"
goto "loop"

#box1
"box1" SetMarkerType "Flag1"
"box1" SetMarkerPos (Getpos c47box1)
"box1" setMarkerColor "ColorRed"
?(alive c47box2) : goto "box2"
?(alive c47box3) : goto "box3"
goto "loop"

#box2
"box2" SetMarkerType "Flag1"
"box2" SetMarkerPos (Getpos c47box2)
"box2" setMarkerColor "ColorRed"
?(alive c47box3) : goto "box3"
goto "loop"

#box3
"box3" SetMarkerType "Flag1"
"box3" SetMarkerPos (Getpos c47box3)
"box3" setMarkerColor "ColorRed"
goto "loop"