added smarter scope resolution to CharacterScriptDSL