Implement creating scripts from the quest tree.