any clicking on something and/or something typed in into the command bar at the bottom (type in something and then hitting the '[enter]' key on your keyboard) is an internal turn. As Pixie mentioned, you can restrict your scriptings from being activated upon an internal turn change/incrementing, via blocking that scripting/script(s) off using an 'if'/conditional scripting in the various places involved with internal turns (anything that is clickable with mouse and/or uses typed in input into the command box).
here's how Pixie is doing it for/with/through a Turnscript:
viewtopic.php?f=10&t=6269&p=42530&hilit=notarealturn#p42497but you're not limited to doing it through a Turnscript, as I believe for example, if you can work with the internal code, you can alter the 'Command's handling scripting' to have that 'if boolean' Scripting to prevent Commands from activating your scriptings in them, upon an internal turn (change/incrementing).