# US 2026/0014468 A1 · Reinforcement-learning-based npc battle decision-making method and related product

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0014468 A1
- Document ID: US20260014468A1
- Status: Published application
- Kind: A1
- Application number: 19/334,656
- Filed: 2025-09-19
- Published: 2026-01-15
- Earliest claimed: 2023-09-26
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Jingwen YANG; Nan HU; Yichi XIAO; Hao ZHOU
- Web page: https://patentgrep.com/patent/US20260014468A1

## CPC

- A63F 13/55: Controlling game characters or game objects based on the game progress
- A63F 13/56: Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
- A63F 13/58: by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
- A63F 13/67: adaptively or by learning from player actions, e.g. skill level adjustment or by storing successful combat sequences for re-use
- A63F 13/822: Strategy games; Role-playing games (A63F13/825, A63F13/828 take precedence)
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06N 3/092: Reinforcement learning
- A63F 2300/6027: using adaptive systems learning from user actions, e.g. for skill level adjustment
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

This application discloses a reinforcement-learning-based non-player character (NPC) battle decision-making method and a related product. The method includes: obtaining current state information, current relative pose information, and historical battle state information of a target NPC and its opponent; processing the current state information and the current relative pose information, through a long short-term memory network, to obtain a first processing result; and making a decision about a battle policy that is to be taken by the target NPC at a next moment based on the first processing result, context information of skill release of the target NPC, a skill set of the target NPC, and a reward item of a reinforcement learning model. As a result, an NPC battle decision is obtained through the reinforcement learning model, without establishing a complex behavior tree, thereby saving labor costs.

## Claims

### Claim 1

A reinforcement-learning-based non-player character (NPC) battle decision-making method performed by a computer device, the method comprising:
obtaining current state information of a target NPC and an opponent of the target NPC, current relative pose information of the target NPC and the opponent in a virtual scene, and historical battle state information of the target NPC and the opponent;
performing feature extraction and concatenation on the current state information of the target NPC and the opponent and the current relative pose information of the target NPC and the opponent, to obtain a concatenated feature;
processing the concatenated feature and the historical battle state information through a long short-term memory network, to obtain a first processing result;
applying the first processing result, context information of the skill release of the target NPC and a skill set of the target NPC to a reinforcement learning model to obtain a reward value of a reward item based on reduction of a combat ability of the opponent; and
making a decision about a battle policy that is to be taken by the target NPC at a next moment based on the reward value of the reward item.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the performing feature extraction and concatenation on the current state information of the target NPC and the opponent and the current relative pose information of the target NPC and the opponent, to obtain a concatenated feature comprises:
respectively performing feature extraction on the current state information of the target NPC and the opponent, and the current relative pose information of the target NPC and the opponent, to obtain a current state feature of the target NPC, a current state feature of the opponent, and a current relative pose feature of the target NPC and the opponent;
concatenating a plurality of features comprised in the current state feature of the target NPC, to obtain a first concatenation result;
concatenating a plurality of features comprised in the current state feature of the opponent, to obtain a second concatenation result;
concatenating a plurality of features comprised in the current relative pose feature, to obtain a third concatenation result;
respectively extracting the features in the first concatenation result, the second concatenation result, and the third concatenation result by using a first deep neural network, a second deep neural network, and a third deep neural network, to obtain a first extraction result, a second extraction result, and a third extraction result; and
concatenating the first extraction result, the second extraction result, and the third extraction result, to obtain the concatenated feature.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the method further comprises:
obtaining global environment information of the target NPC in the virtual scene, the global environment information comprising time information, a quantity of opponents, and environment warning perception information, the environment warning perception information comprising a warning range before the opponent releases a skill and a sustained effect after the opponent releases the skill; and
concatenating the global environment information, the first feature extraction result, the second feature extraction result, and the third feature extraction result, to obtain the concatenated feature.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the making a decision about a battle policy that is to be taken by the target NPC at a next moment based on the reward value of the reward item comprises:
performing feature extraction on the context information of the skill release of the target NPC and the skill set of the target NPC, to obtain a plurality of skill features of the target NPC, the skill set comprising a name, an effect label, cooldown time, a release distance, and current availability of each skill of the target NPC;
concatenating the plurality of skill features to obtain a skill feature concatenation result; and
making the decision about the battle policy that is to be taken by the target NPC at the next moment based on the first processing result, the skill feature concatenation result, and the reward value of the reward item.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the making the decision about the battle policy that is to be taken by the target NPC at the next moment based on the first processing result, the skill feature concatenation result, and the reward value of the reward item comprises:
predicting a first probability distribution, a second probability distribution, and a third probability distribution of the target NPC at the next moment based on the first processing result, the skill feature concatenation result, and a reward value of a reward item that is obtained by a battle policy taken at a previous moment, the first probability distribution being a probability distribution about a released skill, the second probability distribution being a probability distribution about a movement direction, and the third probability distribution being a probability distribution about a movement distance;
determining a target skill based on a highest value in the first probability distribution, determining a target direction based on a highest value in the second probability distribution, and determining a target distance based on a highest value in the third probability distribution;
controlling, if the target skill is an attack skill having a movement effect, the target NPC to release the target skill at the next moment and move in the target direction by the target distance; and
controlling, if the target skill is an attack skill having no movement effect or the target skill is a healing skill, the target NPC to release the target skill at the next moment.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the reinforcement learning model comprises a plurality of reward items, and the making a decision about a battle policy that is to be taken by the target NPC at a next moment based on the reward value of the reward item comprises:
making the decision about the battle policy that is to be taken by the target NPC at the next moment based on the first processing result, the context information of the skill release of the target NPC, the skill set of the target NPC, and weighted summation of respective reward values of the plurality of reward items; and
making the decision about the battle policy that is to be taken by the target NPC at the next moment based on the first processing result, the context information of the skill release of the target NPC, the skill set of the target NPC, and the reward value of the reward item of the reinforcement learning.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the current state information of the target NPC further comprises current combat ability attribute information of a teammate belonging to a same camp as the target NPC, movement information, context information of a released skill of the teammate, and a skill set of the teammate.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the skill set of the target NPC comprises a name, an effect label, cooldown time, a release distance, and current availability of each skill of the target NPC.

### Claim 9

A computer device comprising a processor and a memory,
the memory being configured to: store a computer program and transmit the computer program to the processor; and
the processor being configured to perform a reinforcement-learning-based NPC battle decision-making method including:
obtaining current state information of a target NPC and an opponent of the target NPC, current relative pose information of the target NPC and the opponent in a virtual scene, and historical battle state information of the target NPC and the opponent;
performing feature extraction and concatenation on the current state information of the target NPC and the opponent and the current relative pose information of the target NPC and the opponent, to obtain a concatenated feature;
processing the concatenated feature and the historical battle state information through a long short-term memory network, to obtain a first processing result;
applying the first processing result, context information of the skill release of the target NPC and a skill set of the target NPC to a reinforcement learning model to obtain a reward value of a reward item based on reduction of a combat ability of the opponent; and
making a decision about a battle policy that is to be taken by the target NPC at a next moment based on the reward value of the reward item.

### Claim 10 (depends on 9)

The computer device according to claim 9, wherein the performing feature extraction and concatenation on the current state information of the target NPC and the opponent and the current relative pose information of the target NPC and the opponent, to obtain a concatenated feature comprises:
respectively performing feature extraction on the current state information of the target NPC and the opponent, and the current relative pose information of the target NPC and the opponent, to obtain a current state feature of the target NPC, a current state feature of the opponent, and a current relative pose feature of the target NPC and the opponent;
concatenating a plurality of features comprised in the current state feature of the target NPC, to obtain a first concatenation result;
concatenating a plurality of features comprised in the current state feature of the opponent, to obtain a second concatenation result;
concatenating a plurality of features comprised in the current relative pose feature, to obtain a third concatenation result;
respectively extracting the features in the first concatenation result, the second concatenation result, and the third concatenation result by using a first deep neural network, a second deep neural network, and a third deep neural network, to obtain a first extraction result, a second extraction result, and a third extraction result; and
concatenating the first extraction result, the second extraction result, and the third extraction result, to obtain the concatenated feature.

### Claim 11 (depends on 10)

The method according to claim 10, wherein the method further comprises:
obtaining global environment information of the target NPC in the virtual scene, the global environment information comprising time information, a quantity of opponents, and environment warning perception information, the environment warning perception information comprising a warning range before the opponent releases a skill and a sustained effect after the opponent releases the skill; and
concatenating the global environment information, the first feature extraction result, the second feature extraction result, and the third feature extraction result, to obtain the concatenated feature.

### Claim 12 (depends on 9)

The computer device according to claim 9, wherein the making a decision about a battle policy that is to be taken by the target NPC at a next moment based on the reward value of the reward item comprises:
performing feature extraction on the context information of the skill release of the target NPC and the skill set of the target NPC, to obtain a plurality of skill features of the target NPC, the skill set comprising a name, an effect label, cooldown time, a release distance, and current availability of each skill of the target NPC;
concatenating the plurality of skill features to obtain a skill feature concatenation result; and
making the decision about the battle policy that is to be taken by the target NPC at the next moment based on the first processing result, the skill feature concatenation result, and the reward value of the reward item.

### Claim 13 (depends on 9)

The computer device according to claim 9, wherein the reinforcement learning model comprises a plurality of reward items, and the making a decision about a battle policy that is to be taken by the target NPC at a next moment based on the reward value of the reward item comprises:
making the decision about the battle policy that is to be taken by the target NPC at the next moment based on the first processing result, the context information of the skill release of the target NPC, the skill set of the target NPC, and weighted summation of respective reward values of the plurality of reward items; and
making the decision about the battle policy that is to be taken by the target NPC at the next moment based on the first processing result, the context information of the skill release of the target NPC, the skill set of the target NPC, and the reward value of the reward item of the reinforcement learning.

### Claim 14 (depends on 9)

The computer device according to claim 9, wherein the current state information of the target NPC further comprises current combat ability attribute information of a teammate belonging to a same camp as the target NPC, movement information, context information of a released skill of the teammate, and a skill set of the teammate.

### Claim 15 (depends on 9)

The computer device according to claim 9, wherein the skill set of the target NPC comprises a name, an effect label, cooldown time, a release distance, and current availability of each skill of the target NPC.

### Claim 16

A non-transitory computer-readable storage medium, having a computer program stored therein, the computer program, when executed by a processor of a computer device, causing the computer device to implement a reinforcement-learning-based NPC battle decision-making method including:
obtaining current state information of a target NPC and an opponent of the target NPC, current relative pose information of the target NPC and the opponent in a virtual scene, and historical battle state information of the target NPC and the opponent;
performing feature extraction and concatenation on the current state information of the target NPC and the opponent and the current relative pose information of the target NPC and the opponent, to obtain a concatenated feature;
processing the concatenated feature and the historical battle state information through a long short-term memory network, to obtain a first processing result;
applying the first processing result, context information of the skill release of the target NPC and a skill set of the target NPC to a reinforcement learning model to obtain a reward value of a reward item based on reduction of a combat ability of the opponent; and
making a decision about a battle policy that is to be taken by the target NPC at a next moment based on the reward value of the reward item.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium according to claim 16, wherein the performing feature extraction and concatenation on the current state information of the target NPC and the opponent and the current relative pose information of the target NPC and the opponent, to obtain a concatenated feature comprises:
respectively performing feature extraction on the current state information of the target NPC and the opponent, and the current relative pose information of the target NPC and the opponent, to obtain a current state feature of the target NPC, a current state feature of the opponent, and a current relative pose feature of the target NPC and the opponent;
concatenating a plurality of features comprised in the current state feature of the target NPC, to obtain a first concatenation result;
concatenating a plurality of features comprised in the current state feature of the opponent, to obtain a second concatenation result;
concatenating a plurality of features comprised in the current relative pose feature, to obtain a third concatenation result;
respectively extracting the features in the first concatenation result, the second concatenation result, and the third concatenation result by using a first deep neural network, a second deep neural network, and a third deep neural network, to obtain a first extraction result, a second extraction result, and a third extraction result; and
concatenating the first extraction result, the second extraction result, and the third extraction result, to obtain the concatenated feature.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium according to claim 17, wherein the method further comprises:
obtaining global environment information of the target NPC in the virtual scene, the global environment information comprising time information, a quantity of opponents, and environment warning perception information, the environment warning perception information comprising a warning range before the opponent releases a skill and a sustained effect after the opponent releases the skill; and
concatenating the global environment information, the first feature extraction result, the second feature extraction result, and the third feature extraction result, to obtain the concatenated feature.

### Claim 19 (depends on 16)

The non-transitory computer-readable storage medium according to claim 16, wherein the making a decision about a battle policy that is to be taken by the target NPC at a next moment based on the reward value of the reward item comprises:
performing feature extraction on the context information of the skill release of the target NPC and the skill set of the target NPC, to obtain a plurality of skill features of the target NPC, the skill set comprising a name, an effect label, cooldown time, a release distance, and current availability of each skill of the target NPC;
concatenating the plurality of skill features to obtain a skill feature concatenation result; and
making the decision about the battle policy that is to be taken by the target NPC at the next moment based on the first processing result, the skill feature concatenation result, and the reward value of the reward item.

### Claim 20 (depends on 16)

The non-transitory computer-readable storage medium according to claim 16, wherein the current state information of the target NPC further comprises current combat ability attribute information of a teammate belonging to a same camp as the target NPC, movement information, context information of a released skill of the teammate, and a skill set of the teammate.
