IntroductionThis study examines the emotional support offered by the non-player characters (NPCs) in an interactive learning environment, as well as the effects of the perceived playfulness of the interactive system on German language learning.MethodWe developed a role-playing library system to serve this purpose. 2,377 Chinese Internet users were surveyed using online questionnaire.ResultsA theoretical model of emotion- driven learning (ELM) was proposed based on the analysis results of valid recovered data. Additionally, NPCs were found to be effective in improving learning outcomes through emotional support.DiscussionAn interactive education system may be able to enhance the perceived playfulness of learning in order to enhance the learning experience.