A computational appraisal model of the emotions of a virtual character