This isnt even usable in its current form. It isn't an alias or anything, it's just code looking for a home and cannot be used as-is.
Your comments need to be on seperate lines to avoid them being processed.
You have bracket mismatches.
You do not need to use "/" in front of commands inside of scripts.
Here is the code with the items above fixed.
alias NAME_ME {
if ($exists(scripts\moo.mrc) == $true) {
;if moo.mrc exists...
set %z.sys.moo Available
;...set it as available.
if ($script(moo.mrc) == $null) {
;if it's not loaded...
if (%z.load.plugins == 1) {
;...and plugin loading is enabled...
.load -rs scripts\moo.mrc
;...try to load it...
if ($script moo.mrc) == $null) {
;...if it's still not loaded...
set %z.sys.moo.loaded failed to load
;...set status to 'failed to load'
}
else {
;if it was loaded successfully...
set %z.set.sysinfo.moo 1
;...make moo.mrc do the sysinfo...
set %z.sys.moo.loaded loaded
;...and make moo.mrc show up as loaded.
}
}
else {
;if we don't want to load plugins at start..
set %z.set.sysinfo.moo 0
;...do not use moo.mrc for sysinfo...
set %z.sys.moo.loaded not loaded
;...and make it show up as 'not loaded'.
}
}
else {
set %z.set.sysinfo.moo 1
;if the script is already loaded...
set %z.sys.moo.loaded loaded
;...make it show up as such.
}
}
else {
set %z.sys.moo Unavailable
;if moo.mrc doesn't exist...
set %z.set.sysinfo.moo 0
;...disable moo.mrc sysinfo...
set %z.sys.moo.loaded not loaded
;...set it as 'not loaded'...
set %z.sys.moo Unavailable
;...and as 'unavailable'.
}
echo %z.pr %z.col.hi $+ moo.mrc %z.col.txt $+ is %z.col.hi $+ %z.sys.moo $+ %z.col.txt $+ , %z.sys.moo.loaded
; the line above this shows status, if it's available and/or loaded.
}
Good luck.