1. Is there a way for the local $test alias to also return the value from the global alias?
;script1.mrc
#group.local.test on
alias -l test { .disable #group.local.test | return testlocal $test | .enable #group.local.test }
#group.local.test end
;
alias testlocal { return $test }
;
alias Q3 { .disable #group.local.test | return Q3 $test | .enable #group.local.test }
* i use this approch when im replacing an original mirc command, such as for instance /JOIN, i know i could just do a /JOIN and the internal command would run, but i wont to allow any other script that might have a alias join to also get a crack at it.
2. Is there a way for a script in a different script than script1.mrc, or from the commandline, to access the local alias in script1.mrc?
Thats exactly what the -l option was designed to prevent, I guess it could be done using actual reading of the file, and altering the lines of the file so it no longer said -l, then inserting it again, but i think you would need to have mirc script editor options/monitor file changes also enabled, alot of work, and likely easier if u didnt try
3. Is there a way for another alias in script1.mrc to call the global $test alias instead of the local one?
see Q1 answer alias Q3, its just the same thing as Q1 answer is doing but not within itself.
PS: I wasnt sure if u really needed all these answered or if u possed all the questions as a kinda fall back system, if i cant do 1 can i do 2 and if not what about 3, I hope I have helped.