For this command, evaluating text as if 0 can make it difficult to get back into your client after this scripting error.

//var %setting 128 | !setlayer %setting $chan(1) | timer -o 1 10 !setlayer 255

If the 128 is deleted, the $null %variable causes the first setlayer command to be seen as "setlayer #channel" which is evaluated as if "setlayer 0" against the main window.