Improve ScriptChain settings

Doesn't restore settings of individual scripts yet.