This application provides a game behavior
planning method, apparatus,
computer device, and medium. The method includes: acquiring the current state information and target task planning of a non-player character in the game, wherein the current state information includes the current behavior and the current behavior state, and the target task planning includes the target behavior state; quantifying the current behavior state and the target behavior state, and calculating the distance between the quantified current behavior state and the target behavior state; acquiring behavior
route information from an action
library based on the distance, using the current behavior as a reference; and performing behavior planning on the non-player character based on the behavior
route information, so that the non-player character completes the target task planning. The method proposed in this application can acquire the behavior
route of the non-player character according to a given target task planning, and then control it to complete the target planning. This method improves the development speed of the non-player character, and the behavior range of the non-player character is wide, which can improve the player's user experience.