This application provides a method for generating a schedule for a non-player character, comprising: obtaining scene information corresponding to the game map of the target game, including area information indicating multiple areas in the game map,
atmosphere information indicating the environmental conditions of each area in different time periods of the target game, and point information indicating specific locations within each area; obtaining the identity information of the target non-player character, including at least the name information, occupation information, and character introduction of the target non-player character; and generating a schedule for the target non-player character using a trained
first language model based at least on the scene information, identity information, and candidate game actions corresponding to the target non-player character. The candidate game actions are obtained by selecting corresponding game actions as candidate game actions from an entity
knowledge base based on at least one of the scene and identity information. The entity
knowledge base is pre-constructed based on at least a number of game actions pre-designed for the target game.