Patent ID: 10780348

Abstract:
Embodiments of the present disclosure disclose a method and a device for predicting character behaviors of a non-player character in a game. The method includes receiving status data of a current game sent by a game client, the status data being used to indicate current status of a plurality of characters in the current game; obtaining a behavior order sequence related to the current game from a pre-established behavior order library based on the current status, wherein the behavior order sequence indicates a behavior execution order of the plurality of characters including both player characters and non-player characters; performing simulation on the plurality of characters by using a behavior prediction model in sequence according to the behavior execution order to obtain a simulation result; updating the behavior prediction model according to the simulation result to obtained an updated behavior prediction model; using the updated behavior prediction model to generate behavior information, the behavior information being used to indicate next behaviors of one or more of non-player characters among the plurality of characters; and sending the behavior information to the game client to control the behavior of the one or more non-player characters.