Over the years, Video games have developed rapidly and international game events have attracted widespread attention. As artificial intelligence enters various fields, especially in the field of gaming applications, it brings people a better entertainment experience. In games, nonplayer characters not only assume the role of function, but also an important way for game designers to interact with players. This article analyzes the connection between non-player characters and artificial intelligence. The author believes that artificial intelligence learn independently when human players communicate, it is very possible to create a “real person” in the game.