We can't get this because %!variable is already a valid variable name, adding this would break scripts, you can use the simple $+ to workaround this:
.timer 30 1 echo -a % $+ variable
And check this https://forums.mirc.com/ubbthreads.php/topics/232005/$timer%28%29#Post232005