Posted by member 36955 on 2003-11-01 02:07:22 link
well... the best solution would really be naming the mzvars the same as the evars, and then including the mzvarfile in your step.rc. so for your example, use
this requires mzscript 0.9 beta 8 or later, and it requires 0.9 beta 12 jam 4 if you need to use $ or " in your value for SatImg
;mzvarfile.rc
SatImg "stuff"
SatImg "stuff"
;mzscriptfile.rc
*script bang !dostuff
*script exec !varset SatImg "morestuff"
*script exec !varsave SatImg
*script ~bang
*script bang !dostuff
*script exec !varset SatImg "morestuff"
*script exec !varsave SatImg
*script ~bang
;step.rc
*mzScriptFile "$ConfigDir$mzscriptfile.rc"
*mzVarFile "$ConfigDir$mzvarfile.rc"
include "$ConfigDir$mzvarfile.rc"
*mzScriptFile "$ConfigDir$mzscriptfile.rc"
*mzVarFile "$ConfigDir$mzvarfile.rc"
include "$ConfigDir$mzvarfile.rc"
this requires mzscript 0.9 beta 8 or later, and it requires 0.9 beta 12 jam 4 if you need to use $ or " in your value for SatImg