Try this..a smaller code for your INPUT event --> on :INPUT:: { if ( / != $left($1,1) ) { if (%colours == on) { msg $active %colour $1- | halt } | if (%random == on) { var %colorrand = $rand(02,14) | msg $active $+(,%colorrand) $1- | halt } } }