like Lindrian said in ur last one to use var instead of set...
alias scripts { var %total.scripts $script(0), %c = 1 echo -a 4*#Scripts Loaded4* $script(0) while (%c <= %total.scripts) { echo -a 4*# $+ %c $+ 4* $script(%c) inc %c 1 } }