The purpose of this thesis is building the continuous-event programmer of the affective robot, include single-event, continuous-event, voice-event and branch-event programmer which is friendly programmable human- machine interface. The affective robot’s emotion is generated by personality, physiological state, environmental event and emotion memory, expressed through the language, voice and facial expression. Between emotion’s generation and expression to contract by six-one emotional model and emotion value transfer function. The affective robot is expressed corresponding emotions based on real events. It can be extended applied to the affective robot story plot, early childhood education, news broadcast and so on.