functional scripting language with mood shifts