Virtual game processing method and device, equipment and storage medium

By displaying team-up prompts and adding NPCs in virtual matches, the problem of the limited NPC addition methods in existing technologies is solved. This achieves the fulfillment of the assistance needs and matching of behavioral styles of virtual objects, thereby improving the collaboration efficiency of virtual matches.

CN121927299APending Publication Date: 2026-04-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411514288.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

The existing technology has a relatively simple way of adding non-player characters (NPCs), which cannot effectively meet the assistance needs of virtual objects in virtual teams. In particular, when virtual objects with low virtual competitive level need additional assistance, there is a lack of effective prompts and assistance mechanisms.

Method used

A method for handling virtual matches is provided, which allows the addition of NPCs when virtual objects meet the conditions for assisting in matches by displaying team-up prompts. The NPCs perform assisting activities in the virtual matches, and the behavior matching of the NPCs is optimized by using behavior prediction models and label prediction models to ensure consistency with the behavior style of the virtual objects.

Benefits of technology

It improves the efficiency of human-computer interaction by proactively prompting users to add NPC permissions, thus meeting the assistance needs of virtual objects, enhancing the collaborative effect in virtual games, reducing the differences in competitive styles between virtual objects and NPCs, and improving the tactical coordination of virtual teams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121927299A_ABST
    Figure CN121927299A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual game processing method and device, equipment and a storage medium, and belongs to the technical field of human-computer interaction. The method comprises the following steps: displaying a virtual team which is organized, wherein the virtual team comprises a first virtual object; under the condition that the first virtual object meets an assistant game condition, team forming prompt information is displayed, the assistant game condition is used for indicating the condition that the first virtual object needs to obtain additional assistance in the virtual game, and the team forming prompt information is used for prompting that the permission of adding the NPC in the virtual team exists; in response to a role adding operation, displaying that the NPC joins the virtual team; and displaying that the NPC executes the virtual activity in the virtual environment of the virtual game.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of human-computer interaction technology, and in particular to a method, apparatus, device and storage medium for processing virtual games. Background Technology

[0002] Games and other applications provide virtual environments where virtual objects typically need to be controlled to perform activities such as walking, driving, climbing, picking up items, and fighting.

[0003] In this technology, players can add AI-controlled non-player characters to fill vacant positions in a virtual team. Players then control these virtual and non-player characters to perform virtual activities and complete virtual competitions within the virtual environment.

[0004] However, the methods for adding non-player characters are relatively limited. Summary of the Invention

[0005] This application provides a method, apparatus, device, and storage medium for processing virtual games, the technical solution of which is as follows:

[0006] According to one aspect of this application, a method for processing virtual games is provided, the method comprising:

[0007] Displays a virtual team that is currently forming a group, the virtual team including a first virtual object;

[0008] When the first virtual object meets the conditions for assisting in the game, a team-up prompt message is displayed. The conditions for assisting in the game are used to indicate the conditions under which the first virtual object needs additional assistance in the virtual game. The team-up prompt message is used to indicate that the user has the authority to add NPCs to the virtual team.

[0009] In response to a character addition operation, the NPC is displayed as having joined the virtual team;

[0010] This shows the NPC performing virtual activities in the virtual environment of the virtual game.

[0011] According to another aspect of this application, a virtual game processing apparatus is provided, the apparatus comprising:

[0012] A display module is used to display virtual teams that are currently forming a team, wherein the virtual team includes a first virtual object;

[0013] The processing module is used to display a team-up prompt when the first virtual object meets the conditions for assisting in the game. The conditions for assisting in the game are used to indicate the conditions under which the first virtual object needs to receive additional assistance in the virtual game. The team-up prompt is used to indicate that the first virtual object has the authority to add NPCs to the virtual team.

[0014] The processing module is also used to respond to the character addition operation by displaying that the NPC has joined the virtual team;

[0015] The display module is also used to display the virtual activities performed by the NPC in the virtual environment of the virtual game.

[0016] In an optional design of this application, the processing module is further configured to:

[0017] If the first virtual object meets the object weakness condition, the team formation prompt information is displayed. The object weakness condition indicates that the virtual competitive level of the first virtual object is lower than that of other virtual objects in the virtual match.

[0018] In an alternative design of this application, the vulnerable condition of the object includes at least one of the following:

[0019] The first virtual object lost a games in the most recent consecutive historical games prior to the virtual game, where a is a positive integer;

[0020] The first virtual object does not have any teammates who invited it to join its historical team in the most recent consecutive b historical matches before the virtual match, where b is a positive integer;

[0021] The first virtual object loses a game in a first historical game adjacent to the virtual game, and the difference in game score with the opposing team exceeds the difference threshold;

[0022] The first virtual object lost a team fight in the first historical game adjacent to the virtual game.

[0023] In an optional design of this application, the processing module is further configured to:

[0024] When the first virtual object meets the key conditions for the game, the team-up prompt information is displayed. The key conditions for the game are conditions that indicate that the virtual game is important to the first virtual object.

[0025] In an optional design of this application, the key game conditions include at least one of the following:

[0026] The first virtual object advances to the next round in a virtual tournament upon winning the match;

[0027] The first virtual object receives a virtual rank upgrade upon winning a match;

[0028] The second virtual object in the virtual team is bound to the first virtual object through a social relationship.

[0029] In an optional design of this application, the virtual activity performed by the NPC has the same activity attributes as the historical activity performed by the first virtual object in a historical game, and the activity attributes include at least one of the following:

[0030] The average time interval for launching virtual attacks, the critical hit rate of launching virtual attacks, the accuracy rate of launching virtual attacks, the configuration order of virtual equipment, the configuration type of virtual equipment, the upgrade order of virtual skills, the usage ratio of virtual skills, and the movement path in the virtual environment.

[0031] In an optional design of this application, the display module includes at least one of the following:

[0032] When the first virtual object launches a virtual attack, the NPC is shown to move to the vicinity of the first virtual object and launch a virtual attack together with the first virtual object.

[0033] When the first virtual object is in a dying state due to a virtual attack, the NPC is shown to move to the first direction in which the first virtual object is being attacked, and / or provide the first virtual object with a virtual shield, and / or replenish the first virtual object with virtual health.

[0034] When the first virtual object attacks a virtual monster in the virtual wilderness of the virtual environment, the NPC is shown to be moving away from the first virtual object;

[0035] When the first virtual object is concealed from the enemy virtual object, the NPC is shown moving to a second area to perform virtual activities, and the second area is away from the direction of movement of the first virtual object.

[0036] In an optional design of this application, the processing module is further configured to:

[0037] The behavior prediction model is invoked to predict the environmental information in the virtual game, thereby obtaining the virtual activity to be performed by the NPC.

[0038] In an optional design of this application, the device further includes:

[0039] The acquisition module is used to acquire sample environment information in sample games;

[0040] The processing module is also used for:

[0041] The teacher subnetwork in the initial behavior prediction model is invoked to perform behavior prediction on the sample environment information to obtain the first predicted behavior;

[0042] The student sub-network in the initial behavior prediction model is invoked to perform behavior prediction on the sample environment information to obtain the second predicted behavior;

[0043] Based on the difference between the first predicted behavior and the second predicted behavior, the initial behavior prediction model is trained to obtain the trained behavior prediction model.

[0044] The behavior prediction model is the student subnetwork in the trained behavior prediction model.

[0045] In an optional design of this application, the processing module is further configured to:

[0046] The encoding network is invoked to perform encoding prediction on the historical activity information of the first virtual object in the historical game to obtain style feature information;

[0047] The behavior prediction model is invoked to perform predictions on the environmental information and the style feature information to obtain the virtual activity to be performed by the NPC.

[0048] In an optional design of this application, the device further includes:

[0049] The acquisition module is used to acquire sample behavior and sample tags, wherein the sample tags are used to indicate whether the sample behavior belongs to the behavior information recorded in a real game.

[0050] The processing module is also used for:

[0051] The encoding sub-network in the initial label prediction model is invoked to perform encoding prediction on the sample behavior, thereby obtaining predicted feature information;

[0052] The discriminant subnetwork in the initial label prediction model is invoked to perform label prediction on the predicted feature information, thereby obtaining the predicted label;

[0053] Based on the difference between the predicted label and the sample label, the initial label prediction model is trained to obtain the trained label prediction model;

[0054] The encoding network is the encoding sub-network in the trained label prediction model.

[0055] In an optional design of this application, the first virtual object selects the same first character type as the second character type corresponding to the NPC in the historical game.

[0056] In an optional design of this application, the processing module is further configured to:

[0057] If the number of matches in which the first virtual object selects the first character type does not exceed the number threshold, the historical activity information is constructed based on the reference activity information when the first virtual object selects at least two other character types.

[0058] The first character type is the same as the second character type corresponding to the NPC.

[0059] In an alternative design of this application, the processing module is further configured to perform at least one of the following:

[0060] The reference skill information and skill weight information when the first virtual object selects the at least two other character types are determined as the historical skill information in the historical activity information. The skill weight information is positively correlated with the skill similarity. The skill similarity is used to indicate the degree of similarity between the virtual skills of the other character types and the virtual skills of the second character type corresponding to the NPC.

[0061] The reference movement information and movement weight information when the first virtual object selects the at least two other character types are determined as the historical movement information in the historical activity information. The movement weight information is positively correlated with the virtual survival similarity. The virtual survival similarity is used to indicate the degree of similarity between the virtual health value and / or virtual mana value between the NPC and the other character types.

[0062] The reference equipment information and equipment weight information when the first virtual object selects the at least two other character types are determined as the historical equipment information in the historical activity information. The equipment weight information is positively correlated with the virtual gain similarity. The virtual gain similarity is used to indicate the degree of similarity between the NPC and the other character types in terms of virtual experience value and / or virtual item value.

[0063] According to another aspect of this application, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the virtual game processing method as described above.

[0064] According to another aspect of this application, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, code set, or instruction set is stored therein, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the virtual game processing method described above.

[0065] According to another aspect of this application, a computer program product is provided, the computer program product including computer instructions stored in a computer-readable storage medium, wherein a processor reads from the computer-readable storage medium and executes the computer instructions to implement the virtual game processing method described above.

[0066] The beneficial effects of the technical solution provided in this application include at least the following:

[0067] By displaying team-up prompts, a proactive human-computer interaction method for adding NPCs is provided. When the first virtual object meets the conditions for assisting in the game, and the first virtual object needs additional assistance in the virtual game, the team-up prompts in a timely manner that it has the authority to add NPCs. When an NPC needs to be added and additional assistance is required, the prompts can be made to perform the character addition operation, which increases the frequency of use of the function entry point for adding NPCs and improves the efficiency of human-computer interaction. Attached Figure Description

[0068] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0069] Figure 1 This is a structural block diagram of a computer system provided in an exemplary embodiment of this application;

[0070] Figure 2 This is a schematic diagram of a virtual game processing method provided in an exemplary embodiment of this application;

[0071] Figure 3 This is a flowchart of a virtual game processing method provided in an exemplary embodiment of this application;

[0072] Figure 4 This is a flowchart of a virtual game processing method provided in an exemplary embodiment of this application;

[0073] Figure 5 This is a flowchart of a virtual game processing method provided in an exemplary embodiment of this application;

[0074] Figure 6 This is a user interface diagram of an application provided in an exemplary embodiment of this application;

[0075] Figure 7 This is a flowchart of a virtual game processing method provided in an exemplary embodiment of this application;

[0076] Figure 8 This is a schematic diagram of an initial behavior prediction model and an initial label prediction model provided in an exemplary embodiment of this application;

[0077] Figure 9 This is a flowchart of a virtual game processing method provided in an exemplary embodiment of this application;

[0078] Figure 10 This is a structural block diagram of a virtual game processing apparatus provided in an exemplary embodiment of this application;

[0079] Figure 11 This is a structural block diagram of a terminal provided in an exemplary embodiment of this application.

[0080] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. Detailed Implementation

[0081] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0082] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0083] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0084] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the role addition operation and historical activity information involved in this application were obtained with full authorization.

[0085] It should be understood that although the terms first, second, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, a first parameter may also be referred to as a second parameter without departing from the scope of this disclosure, and similarly, a second parameter may also be referred to as a first parameter. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0086] Figure 1 A structural block diagram of a computer system provided in an exemplary embodiment of this application is shown. The computer system 100 includes: a first terminal 110, a server 120, and a second terminal 130.

[0087] The first terminal 110 has a client 111 installed and running that supports a virtual environment. This client 111 can be a multiplayer online battle arena (MOBA) program. When the first terminal runs the client 111, the user interface of the client 111 is displayed on the screen of the first terminal 110. The client 111 can be any of the following: battle royale shooting game, virtual reality (VR) application, augmented reality (AR) program, 3D mapping program, virtual reality game, augmented reality game, casual game, party game, first-person shooter (FPS) game, third-person shooter (TPS) game, multiplayer online battle arena (MOBA) game, or simulation game (SLG). In this embodiment, an FPS game is used as an example. The first terminal 110 is the terminal used by the first user 112. The first user 112 uses the first terminal 110 to control a first virtual object located in the virtual environment to perform activities. The first virtual object can be referred to as the virtual object of the first user 112. The activities of the first virtual object include, but are not limited to, at least one of the following: moving, jumping, teleporting, releasing skills, using items, adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, and throwing. For illustrative purposes, the first virtual object is a virtual object, such as a realistic character or an anime character.

[0088] The second terminal 130 has a client 131 installed and running that supports a virtual environment. This client 131 can be a multiplayer online battle arena (MOBA) program. When the second terminal 130 runs the client 131, the user interface of the client 131 is displayed on the screen of the second terminal 130. This client can be any of the following: battle royale shooting game, VR application, AR program, 3D map program, virtual reality game, augmented reality game, FPS, TPS, MOBA, or SLG. In this embodiment, a MOBA game is used as an example. The second terminal 130 is the terminal used by the second user 132. The second user 132 uses the second terminal 130 to control a second virtual object located in the virtual environment. This second virtual object can be referred to as the virtual object of the second user 132. Illustratively, the second virtual object is a virtual object, such as a simulated character or an anime character.

[0089] Optionally, the first virtual object and the second virtual object reside in the same virtual environment. Optionally, the first virtual object and the second virtual object may belong to the same faction, the same team, the same organization, have a friend relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object may belong to different factions, different teams, different organizations, or have an adversarial relationship.

[0090] Optionally, the clients installed on the first terminal 110 and the second terminal 130 are the same, or the clients installed on the two terminals are the same type of client on different operating system platforms (Android or iOS). The first terminal 110 can refer to one of multiple terminals, and the second terminal 130 can refer to another of multiple terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 may be the same or different, and these device types include at least one of the following: smartphones, tablets, e-book readers, MP3 players, MP4 players, laptops, and desktop computers.

[0091] Figure 1 Only two terminals are shown in the diagram, but in different embodiments, multiple other terminals 140 can access the server 120. Optionally, one or more terminals 140 may also be terminals corresponding to developers, on which a development and editing platform for clients supporting virtual environments is installed. Developers can edit and update the client on the terminal 140 and transmit the updated client installation package to the server 120 via wired or wireless network. The first terminal 110 and the second terminal 130 can download the client installation package from the server 120 to update the client.

[0092] The first terminal 110, the second terminal 130, and other terminals 140 are connected to the server 120 via a wireless network or a wired network.

[0093] Server 120 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 120 is used to provide backend services for clients supporting a 3D virtual environment. Optionally, server 120 undertakes the main computing work, and the terminal undertakes the secondary computing work; or, server 120 undertakes the secondary computing work, and the terminal undertakes the main computing work; or, server 120 and the terminal use a distributed computing architecture for collaborative computing.

[0094] In an illustrative example, server 120 includes processor 122, user account database 123, battle service module 124, and user-facing input / output interface (I / O interface) 125. Processor 122 loads instructions stored in server 120 and processes data in user account database 123 and battle service module 124. User account database 123 stores data about user accounts used by first terminal 110, second terminal 130, and other terminals 140, such as user account avatars, nicknames, combat power indices, and the service area where the user account is located. Battle service module 124 provides multiple battle rooms for users to play, such as 1v1, 3v3, and 5v5 battles. User-facing I / O interface 125 establishes communication and exchanges data with first terminal 110 and / or second terminal 130 via wireless or wired network.

[0095] The methods provided in this application can be applied to at least one of the following scenarios, but are not limited to: virtual reality applications, 3D map programs, casual games, party games, first-person shooter (FPS) games, third-person shooter (TPS) games, multiplayer online battle arena (MOBA) games, multiplayer shooting survival games, etc. The following embodiments are examples of applications in games.

[0096] Figure 2 A schematic diagram of a virtual game processing method provided in an exemplary embodiment of this application is shown.

[0097] The first interface 310 displays a virtual team that is forming. The virtual team includes a first virtual object 312, whose account identifier is player123. In this example, the virtual team includes five virtual object positions, so that the five virtual objects can team up to play a virtual game.

[0098] For example, the first interface 310 only shows the case where the virtual team includes the first virtual object 312. In different implementations, the virtual team may include a greater number of virtual objects. For example, the first virtual object 312 is located before the virtual team that is currently forming a team. It has lost three consecutive historical matches recently. Due to its low virtual competitive level, the first virtual object 312 needs additional assistance when participating in virtual matches in a team.

[0099] Correspondingly, a team-up prompt message 314 is displayed on the first interface. In this embodiment, the team-up prompt message 314 is a text message, including clicking to activate AI teammates. The team-up prompt message 314 is used to prompt that you have the permission to add non-player characters (NPCs) to the virtual team.

[0100] In response to a click operation 315 on the team-up prompt information 314, a second interface 320 is displayed, in which NPC 322 joins the virtual team. This embodiment illustrates the case of adding one NPC; it is understood that in different embodiments, a greater number of NPCs can be added.

[0101] For example, the second interface 320 also displays a game start control 324. In response to the trigger operation 325 on the game start control 324, a virtual game is started. The NPC 322 performs virtual activities in the virtual environment of the virtual game. The NPC 322 assists the first virtual object 312 in performing virtual activities in the virtual game, such as assisting the first virtual object 312 in launching a virtual attack together; or having a similar behavior style to the first virtual object 312, so as to avoid the problem that the competitive style of the first virtual object 312 controlled by the player is too different from that of other objects in the virtual team, so as to achieve tactical cooperation.

[0102] The following examples will illustrate the processing method for virtual games.

[0103] Figure 3 A flowchart illustrating a virtual game processing method provided in an exemplary embodiment of this application is shown. The method can be executed by a computer device. The method includes:

[0104] Step 510: Display the virtual teams that are currently forming a team;

[0105] For example, a virtual team includes a first virtual object; the first virtual object and other virtual objects in the virtual team participate in a virtual match. For example, the first virtual object can be a player's account character, which performs virtual activities in the virtual match by selecting a virtual character (e.g., in a MOBA game, a player controls a selected virtual hero to perform virtual activities; when forming a virtual team, before selecting a virtual hero, the player's game account character is displayed); the first virtual object can also be a virtual character performing virtual activities in the virtual match. This application does not limit the implementation method of the first virtual object.

[0106] For example, each step in this embodiment can be executed by the terminal. The first virtual character is the main virtual character of the terminal, and the user performs virtual activities in the virtual environment by controlling the first virtual object.

[0107] For example, a virtual team is a team that performs virtual competition in a virtual environment. This application does not restrict the way virtual teams participate in virtual matches; virtual teams can participate in virtual matches with or without members. In one example, the virtual objects in a virtual team belong to the same virtual faction in the virtual match. However, it is not excluded that other virtual teams with hostile relationships with the virtual team may also be displayed in the virtual team's display interface.

[0108] Step 520: If the first virtual object meets the conditions for assisting in the game, display a team-up prompt message;

[0109] For example, the assist match condition is used to indicate the conditions under which the first virtual object needs additional assistance in the virtual match; if the first virtual object meets the assist match condition, a team-up prompt message is displayed, which is used to indicate that the user has the permission to add non-player characters (NPCs) to the virtual team.

[0110] For example, a team-up prompt message indicating permission to add NPCs to a virtual team is a prompt message that provides additional assistance to the first virtual object by adding NPCs to the virtual team.

[0111] For example, the reason why the first virtual object needs additional assistance may be at least one of the following: the first virtual object's low level of virtual competition against Xu Ang, or the virtual match being of importance to the first virtual object. This application does not make any restrictive provisions in this regard.

[0112] Step 530: In response to the character addition operation, display the NPC joining the virtual party;

[0113] For example, the character addition operation provides a human-computer interaction operation with the function of adding NPCs to a virtual team; the character addition operation includes, but is not limited to, at least one of the following: clicking, swiping, rotating; for example: clicking a touch screen or button, swiping a touch screen or controller, rotating a terminal or controller.

[0114] For example, a non-player character is a virtual character controlled by an AI model (or AI agent) that has the ability to autonomously perform virtual activities in a virtual environment.

[0115] Step 540: Display the NPC performing virtual activities in the virtual environment of the virtual game;

[0116] For example, in a virtual match, an NPC performs a virtual competition with a first virtual object in a team manner. For example, in a virtual match, the NPC provides at least one of the following: provides virtual support to the first virtual object, jointly launches a virtual attack on an enemy object, moves to the direction from which the first virtual object receives virtual damage to provide virtual protection to the first virtual object; and provides assistance to the first virtual object.

[0117] For example, a virtual environment is a virtual space in which a first virtual character performs virtual activities; for instance, the first virtual character engages in virtual competition by launching virtual attacks in a virtual game. A virtual environment can be any of a two-dimensional, 2.5-dimensional, or three-dimensional virtual environment.

[0118] In summary, the method provided in this embodiment offers a proactive human-computer interaction approach for adding NPCs by displaying team-up prompts. When a first virtual object meets the conditions for assisting in a virtual game, and the first virtual object needs additional assistance in the virtual game, the team-up prompts promptly indicate that it has the permission to add NPCs. This allows for prompting the execution of the character addition operation when an NPC needs additional assistance, increasing the frequency of use of the function entry point for adding NPCs and improving the efficiency of human-computer interaction.

[0119] The conditions for assisting in a match are explained in more detail below.

[0120] Figure 4 A flowchart illustrating a virtual game processing method provided in an exemplary embodiment of this application is shown. This method can be executed by a computer device. That is, in Figure 3 In the illustrated embodiment, step 520 can be implemented as step 522:

[0121] Step 522: If the first virtual object meets the weak object condition, display a team-up prompt message;

[0122] In this embodiment, the assistance conditions include object weakness conditions, which indicate that the virtual competitive level of a first virtual object is lower than that of other virtual objects in the virtual match. For example, if the first virtual object meets the object weakness condition, it needs additional assistance because its virtual competitive level is low in one or more historical matches. Accordingly, the object weakness condition indicates that the competitive level of the first virtual object is lower than that of other virtual objects in the virtual match, based on its virtual competitive performance in historical matches.

[0123] For example, object weakness conditions include at least one of the following:

[0124] • The first virtual object lost a game in the most recent consecutive a games in its historical history before the virtual game, where a is a positive integer;

[0125] For example, if a player loses a game in the most recent consecutive a historical games, it indicates, in the dimension of the overall game results in the virtual game, that the first virtual object was unable to achieve victory in the historical games due to its low overall competitive level.

[0126] • The first virtual object has no teammates who invited it to join its historical team in the most recent consecutive b games before the virtual game, where b is a positive integer;

[0127] For example, if there are no teammates invited to join the historical team in consecutive b historical matches, in terms of the team formation method of the first virtual object participating in the historical matches, it is indicated that the first virtual object has a low competitive level because there are no teammates invited to join the historical team and it relies solely on randomly matched teammates in the historical matches.

[0128] For example, this embodiment does not impose any restrictive provisions on the size relationship between a and b. In one example, a and b have the same value. If there are no teammates invited to join the historical team in the most recent consecutive b historical matches, and the first virtual object loses in the most recent consecutive a historical matches, the weak object condition is met. This indicates that because there are no teammates invited to join the historical team, the first virtual object relies solely on randomly matched teammates in historical matches. Due to the lack of cooperation between the first virtual object and its teammates in historical matches, the first virtual object cannot achieve victory in historical matches.

[0129] • The first virtual object loses a game in the first historical game adjacent to the virtual game, and the score difference with the opposing team exceeds the difference threshold.

[0130] For example, if a virtual object loses a match in a first historical match adjacent to the virtual match and the score difference with the opposing team exceeds a difference threshold, from the perspective of the first historical match, it is indicated that the first virtual object was unable to win the historical match due to poor performance and low competitive level in the single historical match, and the score difference exceeded the difference threshold.

[0131] • The first virtual object loses a team fight in the first historical game adjacent to the virtual game;

[0132] For example, in the first historical match, the team fight was lost. From the perspective of team fight, this indicates that the first virtual object's competitive level in the team fight was low due to poor coordination with teammates or poor performance of itself. The first virtual object did not achieve victory in the first historical match.

[0133] For example, the various implementations of the object weakness conditions described above can be combined to form new implementations, and this embodiment does not impose any restrictions on this.

[0134] In summary, the method provided in this embodiment offers a proactive human-computer interaction approach by displaying team-up prompts. When a first virtual object meets the condition of being weak, and the first virtual object has a low virtual competitive level in one or more historical matches, it needs additional assistance in the virtual match. The team-up prompts promptly indicate that the object has the permission to add an NPC, and can prompt the execution of the character addition operation when there is a need for an NPC to add additional assistance. This increases the frequency of use of the function entry point for adding NPCs and improves the efficiency of human-computer interaction.

[0135] Figure 5 A flowchart illustrating a virtual game processing method provided in an exemplary embodiment of this application is shown. This method can be executed by a computer device. That is, in Figure 3 In the illustrated embodiment, step 520 can be implemented as step 524:

[0136] Step 524: If the first virtual object meets the key conditions of the game, display a team-up prompt message;

[0137] In this embodiment, the assistance conditions for a game include key game conditions, which are conditions indicating that a virtual game is important to the first virtual object. For example, if the first virtual object meets the key game conditions, the first virtual object needs additional assistance because the virtual game in which the virtual team is forming is important to the first virtual object. Accordingly, key game conditions are conditions that are important to the first virtual object from the perspective of virtual games. For example, virtual game importance indicates that the virtual game is more important to the first virtual object than historical games. This importance can be at least one of the following: virtual growth importance, social importance, virtual gain importance, and the importance of virtual events within the application providing the virtual environment.

[0138] For example, key conditions for a game include at least one of the following:

[0139] The first virtual player to win a match advances to the next round in the virtual tournament.

[0140] For example, virtual tournaments are actively participated in by a first virtual object based on its interest. Advancement in a virtual tournament indicates receiving an incentive or advancing to the next stage of the tournament. Based on the first virtual object's interest in the virtual tournament, advancing through a win is an incentive recognizing the first virtual object's competitive level in the virtual tournament, thus emphasizing the importance of the virtual match. Before the virtual match, the first virtual object is in a state of imminent advancement. To avoid situations where other virtual objects teaming up with the first virtual object have low virtual competitive levels or temporarily underperform in a single virtual match, the first virtual object needs additional assistance to eliminate the randomness of other virtual objects and reflect its true virtual competitive level.

[0141] • The first virtual player gains a virtual rank upgrade upon winning a match;

[0142] For example, a virtual rank is a descriptive information about the virtual competitive level of a first virtual object. By improving the virtual rank, one can be matched with teammates and opponents of higher virtual competitive levels in virtual matches. When the first virtual object participates in virtual matches that affect its virtual rank, it has the intention to improve its virtual competitive level and receive positive evaluations of that level, thus making the virtual matches important. Before a virtual match, the first virtual object is in a state of imminent advancement in its virtual rank. To avoid other virtual objects teaming up with the first virtual object having low virtual competitive levels or temporarily performing poorly in a single virtual match, the first virtual object needs additional assistance to eliminate the randomness of other virtual objects and reflect its true virtual competitive level.

[0143] • A social relationship is bound between the second virtual object and the first virtual object in the virtual team;

[0144] Social relationships can be established within applications that provide virtual matches (such as games) or between social accounts established within instant messaging software. The first virtual object is linked to a social account within the instant messaging software. When the first virtual object and the second virtual object team up to participate in a virtual match, the virtual match serves as a form of game-based social interaction between them; they demonstrate a willingness to maintain their social relationship through virtual matches, and the virtual match itself carries significant importance.

[0145] In summary, the method provided in this embodiment offers a proactive human-computer interaction approach for adding NPCs by displaying team-up prompts. When the first virtual object meets the key conditions of the game, and since the virtual game is important to the first virtual object, the first virtual object needs additional assistance in the virtual game. The team-up prompts promptly indicate that the first virtual object has the permission to add NPCs, and can prompt the execution of the character addition operation when the NPC needs additional assistance. This increases the frequency of use of the function entry point for adding NPCs and improves the efficiency of human-computer interaction.

[0146] In one alternative design, the virtual activities performed by the NPC have the same activity attributes as the historical activities performed by the first virtual object in past matches. This identical activity attribute ensures that the NPC and the first virtual object exhibit similar behavioral styles in their historical performances, avoiding the problem of significant differences in their competitive styles during virtual matches, which could hinder tactical coordination.

[0147] For example, activity attributes include at least one of the following:

[0148] Average time interval for launching virtual attacks, critical hit rate of launching virtual attacks, accuracy of launching virtual attacks, configuration order of virtual equipment, configuration type of virtual equipment, upgrade order of virtual skills, usage ratio of virtual skills, and movement path in the virtual environment.

[0149] For example, the activity attribute is statistically obtained at a moment, within a period of time, or throughout the entire process of a virtual game. This application does not limit the moment or duration corresponding to the activity attribute.

[0150] Figure 6 The diagram illustrates the interface of an application provided in an exemplary embodiment of this application. The interface diagram shows the interface before the first virtual character forms a team. The interface diagram displays NPC prompt information 335, which includes: AI teammate prompt: Keep the game active and accumulate data to increase the AI ​​teammate's coordination and understanding during the game, achieving perfect synergy;

[0151] Message 335 is a notification associated with adding an NPC to a virtual team. It prompts the first virtual object to remain active, providing more historical information for NPC control as a reference.

[0152] In another alternative design, step 540 in the various embodiments above can be implemented as at least one of the following:

[0153] • If the first virtual object launches a virtual attack, the NPC will move to the vicinity of the first virtual object and launch a virtual attack together with the first virtual object;

[0154] In the case of the first virtual object launching a virtual attack, the first virtual object has the intention to initiate a virtual competition in the virtual game. The NPC is the teammate of the first virtual object. The NPC moves to the side of the first virtual object to provide assistance for the virtual attack launched by the first virtual object. The NPC and the first virtual object jointly launch a virtual attack.

[0155] For example, this embodiment does not restrict the target of the virtual attack launched by the NPC. The NPC can attack the same enemy object together with the first virtual object, or attack different enemy objects. This avoids the enemy object that has not been attacked by the first virtual object from being ambushed or escaping when multiple enemy objects attack each other with the first virtual object.

[0156] • When the first virtual object is attacked and is in a dying state, the NPC is displayed to move to the first direction in which the first virtual object is attacked, and / or to provide the first virtual object with a virtual shield, and / or to replenish the first virtual object's virtual health.

[0157] For example, when the first virtual object is in a near-death state due to a virtual attack, its virtual health is below a health threshold, resulting in low survivability in the virtual environment. The NPC acts as a teammate of the first virtual object. The NPC provides cover for the first virtual object by moving in the direction from which it is being attacked, preventing it from being attacked from that direction. The NPC also provides a virtual shield to the first virtual object by moving, preventing it from being attacked in the virtual environment. Furthermore, the NPC replenishes the first virtual object's virtual health, providing favorable conditions for its continued survival in the virtual environment; the NPC replenishes the first virtual object's virtual health through any of the following methods: using virtual items or releasing virtual skills.

[0158] • If the first virtual object attacks a virtual monster in the virtual jungle of the virtual environment, the NPC will be displayed as moving away from the first virtual object;

[0159] For example, when the first virtual object attacks virtual monsters in the virtual jungle of the virtual environment, the first virtual object has the intention to obtain virtual benefits such as virtual gold coins, virtual health points, and virtual mana points in the virtual jungle; the NPC avoids stealing the virtual benefits of the first virtual character by staying away from the first virtual object, thus providing favorable conditions for the growth and development of the first virtual character in the virtual environment.

[0160] • When the first virtual object is concealed from the enemy virtual object, the NPC is shown moving to the second area to perform virtual activities;

[0161] For example, when the first virtual object is concealed from the enemy virtual object, and the enemy virtual object has not detected the first virtual object, the first virtual object has the conditions to move covertly and / or launch a surprise attack on the enemy virtual character. For example, the second area is away from the movement direction of the first virtual object; the NPC moves to the second area, thus moving away from the movement direction of the first virtual object, avoiding the problem of the enemy virtual object focusing on observing the NPC's virtual activity area, which would expose the first virtual object.

[0162] In summary, the method provided in this embodiment offers a proactive human-computer interaction approach by displaying team-up prompts. When the first virtual object meets the conditions for assisting in a virtual match, and the first virtual object requires additional assistance in the virtual match, the team-up prompts promptly indicate that it has the permission to add an NPC. This allows for prompting the character addition operation when an NPC requiring additional assistance is added, increasing the frequency of use of the NPC addition function. In the virtual match, the NPC provides assistance to the first virtual object or has a similar behavioral style to the first virtual object, avoiding the problem of the first virtual object controlled by the player having too different competitive styles from other objects in the virtual team, thus failing to achieve tactical cooperation and improving the efficiency of human-computer interaction.

[0163] Figure 7 A flowchart illustrating a virtual game processing method provided in an exemplary embodiment of this application is shown. This method can be executed by a computer device. That is, in Figure 3 Based on the illustrated embodiment, steps 502, 504, 506, 508, and 535 are also included:

[0164] Step 502: Obtain sample environment information in the sample game;

[0165] For example, a sample match is one or more real virtual matches executed prior to a virtual match. Sample environment information includes, but is not limited to, at least one of the following: virtual terrain in the sample match, the position, movement direction, movement speed, skill usage information, item usage information, and virtual equipment information of each virtual character in the sample match. As described above, sample environment information includes information about the sample virtual object whose behavior needs to be predicted in the sample match, and may also include information about other virtual objects in the sample match.

[0166] Step 504: Call the teacher sub-network in the initial behavior prediction model to perform behavior prediction on the sample environment information to obtain the first predicted behavior;

[0167] For example, the initial behavior prediction model includes a teacher subnetwork and a student subnetwork; for example, the teacher subnetwork has more network parameters than the student subnetwork. For example, the student subnetwork and the teacher subnetwork have similar or identical network structures. For example, the student subnetwork, based on a similar or identical network structure to the teacher subnetwork, simulates the teacher subnetwork's ability to predict the virtual activities to be performed with fewer network parameters.

[0168] Step 506: Call the student sub-network in the initial behavior prediction model to perform behavior prediction on the sample environment information to obtain the second predicted behavior;

[0169] For example, the second prediction action is predicted by the student subnetwork. For example, the prediction processes of the first and second prediction actions can be executed in parallel or sequentially. In one example, the first and second prediction actions affect the environmental information at the next time step in the sample game. The teacher and student subnetworks predict the next time step based on the sample environmental information, which is obtained after the second prediction action predicted by the student subnetwork is executed in the sample game.

[0170] Step 508: Based on the difference between the first predicted behavior and the second predicted behavior, train the initial behavior prediction model to obtain the trained behavior prediction model;

[0171] For example, the purpose of training the initial behavior prediction model is to reduce the difference between the first and second predicted behaviors, so as to enable the student subnetwork to simulate the ability of the teacher subnetwork to predict the virtual activities that need to be performed. For example, the behavior prediction model is the student subnetwork in the trained behavior prediction model.

[0172] Step 535: Call the behavior prediction model to predict the environmental information in the virtual game and obtain the virtual activities to be performed by the NPC;

[0173] For example, the behavior prediction model has the ability to predict the virtual activities that NPCs need to perform based on environmental information in a virtual game. For example, the behavior prediction model is an Artificial Neural Network (ANN). In one example, as described above, the behavior prediction model is a student subnetwork in the trained behavior prediction model, a sub-part of the initial behavior prediction model described above. Accordingly, it is understood that step 535 in this embodiment can be combined with the various embodiments described above to form new embodiments for separate implementation, and this application does not limit this.

[0174] For example, when step 535 can be combined with the various embodiments described above to form a new embodiment and implemented separately, the model structure of the behavior prediction model is not limited, and the model structure may include one or more convolutional layers.

[0175] In summary, the method provided in this embodiment offers a proactive human-computer interaction approach by displaying team-up prompts. When a first virtual object meets the conditions for assisting in a virtual game, and the first virtual object requires additional assistance in the virtual game, the team-up prompts promptly indicate that it has the permission to add an NPC. This allows for prompting the execution of the character addition operation when an NPC requiring additional assistance is needed, increasing the frequency of use of the NPC addition function entry point. Furthermore, by calling a behavior prediction model to predict the virtual activities to be performed by the NPC, the prediction of the required virtual activities is achieved with fewer network parameters, thus improving the efficiency of human-computer interaction.

[0176] The behavior prediction model will be further introduced below.

[0177] In one alternative implementation, the prediction process for virtual activities can be implemented as follows:

[0178] • The encoding network is invoked to perform encoding prediction on the historical activity information of the first virtual object in historical games, thereby obtaining style feature information;

[0179] For example, style feature information is used to indicate the style characteristics of a first virtual object performing historical activities in historical games. For example, style feature information can be implemented as at least one of eigenvectors, eigenmatrices, and eigenvalues.

[0180] In one example, the encoding network is an encoding subnetwork in a label prediction model that has label prediction capabilities; the label prediction model is used to predict whether the input information is activity information in a real game or whether it is activity information of a real player in a game. For example, the encoding network is a subnetwork in the label prediction network used to encode the input information into feature information (such as at least one of feature vectors, feature matrices, and eigenvalues).

[0181] For example, style feature information can be obtained in advance during model training, without needing to be predicted during execution in virtual games, in order to improve the prediction efficiency of virtual activities to be performed by NPCs in virtual games; or it can be encoded in real time during virtual games. This application does not restrict the prediction timing of style feature information.

[0182] • The behavior prediction model is invoked to perform predictions based on environmental and style characteristics to obtain the virtual activities that the NPCs need to perform;

[0183] For example, this step is an optional implementation of step 535 described above. For example, as described above, the style feature information can be obtained in advance during model training or encoded in real time during virtual games; the activity style of the virtual activity to be performed by the NPC predicted by the behavior prediction model is the same as the activity style in the historical activity information of the first virtual object. For example, as described above, the virtual activity performed by the NPC has the same activity attributes as the historical activity performed by the first virtual object in historical games.

[0184] Optionally, the training process of the encoding network is described below:

[0185] • Obtain sample behavior and sample labels;

[0186] For example, sample behavior can be at least one of the following: movement information, location information, skill usage information, item usage information, virtual equipment information, etc., for one or more virtual objects. For example, sample tags are used to indicate whether the sample behavior belongs to the behavior information recorded in a real game, or whether it is the activity information of a real player in a game.

[0187] • Call the encoding sub-network in the initial label prediction model to perform encoding prediction on the sample behavior and obtain the predicted feature information;

[0188] For example, the encoding subnetwork is used to perform encoding predictions on sample behaviors, encoding the sample behaviors into feature information in the hidden layer space, called predicted feature information. For example, the training objective of the encoding subnetwork during training is to improve the accuracy of predicting whether the behavior information belongs to real game records or whether it is the activity information of real players in the game. During the encoding process, the predicted feature information carries hidden layer features of player style.

[0189] • Call the discriminant subnetwork in the initial label prediction model to perform label prediction on the predicted feature information and obtain the predicted label;

[0190] For example, the discriminator subnetwork, also known as the discriminator, is used to perform label prediction on the predicted feature information, predicting the predicted label in the dimension of the hidden layer space. In one example, the initial label prediction model can be implemented as a Generative Adversarial Network (GAN), which improves the overall prediction ability of the model through alternating training of the generator and the discriminator; this application does not impose restrictions on the network structure of the initial label prediction model.

[0191] • Based on the difference between the predicted label and the sample label, the initial label prediction model is trained to obtain the trained label prediction model;

[0192] For example, backpropagation training is performed on the initial label prediction model to improve its predictive ability. For example, training the initial label prediction model includes adjusting the network parameters of the encoding subnetwork and / or discriminator subnetwork in the initial label prediction model. For example, the encoding network described above is the encoding subnetwork in the trained label prediction model.

[0193] In summary, the method provided in this embodiment offers a proactive human-computer interaction approach for adding NPCs by displaying team-up prompts. When the first virtual object meets the conditions for assisting in a virtual match, and the first virtual object needs additional assistance in the virtual match, the team-up prompts promptly indicate that it has the permission to add NPCs. This allows for prompting the character addition operation when an NPC requiring additional assistance is needed, increasing the frequency of use of the NPC addition function entry point. Furthermore, by calling a behavior prediction model to predict the virtual activities to be performed by the NPC, the prediction of the required virtual activities is achieved with fewer network parameters. The predicted virtual activities have a similar behavioral style to the first virtual object, avoiding the problem of the first virtual object controlled by the player having too large a difference in competitive style with other objects in the virtual team, thus failing to achieve tactical cooperation and improving the efficiency of human-computer interaction.

[0194] The prediction process for the virtual activities to be performed is described below. Figure 8 A schematic diagram of an initial behavior prediction model and an initial label prediction model provided in an exemplary embodiment of this application is shown.

[0195] The initial behavior prediction model includes teacher subnet 410 and student subnet 420.

[0196] For the teacher subnet 410, the teacher subnet 410 includes a first coding layer 412 and a first prediction layer 414;

[0197] Specifically, the first encoding layer 412 is invoked to perform encoding prediction on the actions of our character 402 and the enemy character 404, thereby obtaining the first hidden layer representation 413 of the two actions in the hidden layer space; for example, the encoding prediction process includes an attention mechanism; the weighted sum of our character's actions 402 and the enemy character's actions 404 is obtained, and the weighted sum is concatenated with our character's actions 402 to obtain the first hidden layer representation 413.

[0198] The first prediction layer 414 is invoked to perform behavior prediction on the first hidden layer representation 413, resulting in a first predicted behavior 415a and a first predicted gain 415b. Here, the first predicted behavior 415a is the virtual activity to be performed by the NPC, and the first predicted gain 415b is the virtual gain obtained in the virtual game by performing the virtual activity, also known as the value information in the virtual game. For example, the first prediction layer 414 includes cascaded Long Short-Term Memory (LSTM) networks and a fully connected layer to achieve global behavior prediction from the first hidden layer representation 413.

[0199] For student subnet 420, student subnet 420 includes a second coding layer 422 and a second prediction layer 424;

[0200] Specifically, the second encoding layer 422 is invoked to perform encoding prediction on the actions of our character 402 and the enemy character 404, resulting in the second hidden layer representation 423 of the two actions in the hidden layer space; the second prediction layer 424 is invoked to perform behavior prediction on the second hidden layer representation 423, resulting in the second predicted behavior 425a and the second predicted benefit 425b; wherein, the second predicted behavior 425a is the virtual activity to be performed by the NPC, and the second predicted benefit 425b is the virtual benefit obtained in the virtual game by performing the virtual activity, also known as the value information in the virtual game.

[0201] For example, the input information for the second coding layer 422 in the student subnet 420 when performing coding prediction also includes a third hidden layer representation 433; the third hidden layer representation 433 is the encoding result of the encoder 432 in the label prediction model 430 of the historical role behavior 406. The historical role behavior 406 is the historical activity information of the first virtual object in historical games, carrying the behavioral style of the first virtual object.

[0202] For example, the label prediction model 430 also includes a discriminator 434. For a detailed description of the discriminator, please refer to the discriminant network section above. For example, the predicted label 435 obtained by the discriminator 434 is used to indicate whether the input historical character behavior 406 belongs to the behavior information recorded in the actual game, or whether it is the activity information of the actual player in the game.

[0203] For example, backpropagation training is performed on both the initial behavior prediction model and the initial label prediction model. The loss function for training the initial behavior prediction model and the initial label prediction model is the sum of the following loss functions:

[0204] Loss Gail = -log(1-D(x))

[0205] Lossdistill =CrossEntropy(T logits ,S logits )

[0206] Loss value =MSE(S value S TdLAMERT )

[0207] Loss policy =Adv*ClippedRatio

[0208] Among them, Loss Gail The negative log loss function used to indicate the label prediction model 430 for label prediction; D(x) is the variance of the label predictions; Loss distill It is the cross-entropy loss function between the first prediction behavior 415a and the second prediction behavior 425a; CrossEntropy is the calculation of cross-entropy; Loss value is the mean squared error between the second predicted payoff 425b and the expected payoff; MSE is the mean squared error calculation. adv is the game advantage gained by the second predicted action 425a. The second predicted payoff 425b is denoted as V(s), and the value obtained through the second predicted action 425a is V(s,a). The difference between these two is the advantage of my action, i.e., adv. ClippedRatio is used to speed up training. The policy of virtual environment interaction and the policy obtained by actual training are not necessarily the same. ClippedRatio is the ratio of the sampling probabilities in the above two policies.

[0209] The historical activity information of the first virtual object will be further described below.

[0210] In one alternative design of this application, the first character type selected by the first virtual object in the historical game is the same as the second character type corresponding to the NPC. Taking a MOBA game as an example, the character type is used to indicate different character skill types. For example, a virtual character belonging to the virtual marksman type has virtual skills for ranged attacks, a virtual character belonging to the virtual support hero type has virtual skills for assisting other characters in restoring virtual health, and a virtual character belonging to the virtual swordsman type has virtual skills for melee attacks.

[0211] For example, an encoding network is invoked to perform encoding prediction on the historical activity information of the first virtual object in historical matches to obtain style feature information; for example, the style feature information is the operation style of the virtual character when the first virtual object selects the first character type. For example, when the first character type is the same as the second character type corresponding to the NPC, the virtual character corresponding to the NPC in the virtual match and the virtual character selected by the first virtual object in the historical matches have the same character type; at least one of the virtual character's virtual skills, virtual health, virtual mana, virtual equipment to be carried, etc., is similar; using the historical activity information of the first virtual object when selecting the first character type in historical matches can ensure the rationality of the NPC's virtual activities and the style similarity with the first virtual object.

[0212] In another alternative design of this application, it also includes:

[0213] • If the number of matches in which the first virtual object selects the first character type does not exceed the number threshold, construct historical activity information based on the reference activity information when the first virtual object selects at least two other character types;

[0214] The number of matches in which the first virtual object selected the first character type did not exceed the limit. The first virtual object selected the first character type infrequently in historical matches. The first character type is the same as the second character type corresponding to the NPC. Since the first virtual object selected the first character type infrequently in historical matches, it is impossible to determine the control style of the virtual character of the first character type by the first virtual object. It is necessary to use the reference activity information of at least two other character types as a basis to supplement the historical activity information.

[0215] In one alternative implementation, the reference skill information and skill weight information when the first virtual object selects at least two other role types are determined as the historical skill information in the historical activity information.

[0216] For example, skill weight information is used to indicate the importance of reference skill information in historical skill information. There is a positive correlation between skill weight information and skill similarity. Skill similarity is used to indicate the degree of similarity between virtual skills of other character types and virtual skills of the second character type corresponding to NPCs. For example, the degree of similarity between virtual skills includes, but is not limited to, at least one of the following: skill type of virtual skill (regional virtual skill, directional virtual skill, etc.), virtual damage caused by virtual skill, critical hit rate, cooldown time, skill proficiency.

[0217] For example, if the first virtual object selects the first character type in a low frequency in historical matches, the historical skill information in the historical activity information is obtained by weighting the virtual skills of at least two other character types with the first character type.

[0218] In another optional implementation, the reference movement information and movement weight information when the first virtual object selects at least two other role types are determined as the historical movement information in the historical activity information.

[0219] For example, movement weight information is used to indicate the importance of reference movement information in historical movement information. Movement weight information is positively correlated with virtual survival similarity. Virtual survival similarity is used to indicate the degree of similarity between the virtual health and / or virtual mana values ​​of NPCs and other character types. For example, virtual characters in the virtual environment need to be kept alive. As the similarity of virtual health and / or virtual mana values ​​increases, the movement patterns of other character types and NPCs in the virtual environment are more similar to whether they are approaching dangerous areas.

[0220] For example, if the first virtual object selects the first character type in a low frequency in historical matches, the historical movement information in the historical activity information is obtained by weighting the similarity between the virtual health and / or virtual mana of at least two other character types and the first character type.

[0221] In another alternative implementation, the reference equipment information and equipment weight information when the first virtual object selects at least two other character types are determined as the historical equipment information in the historical activity information.

[0222] For example, equipment weight information is used to indicate the importance of reference equipment information in historical equipment information. There is a positive correlation between equipment weight information and virtual gain similarity. Virtual gain similarity is used to indicate the similarity between NPCs and other character types in virtual experience points and / or virtual item values. For example, as the similarity of virtual experience points (such as a virtual character's experience level in a match) and / or virtual item values ​​(such as virtual gold coins gained by a virtual character in a match) increases, other character types show a higher similarity to NPCs in how they choose to equip and / or purchase virtual equipment in the virtual environment.

[0223] Figure 9 A flowchart illustrating a virtual game processing method provided in an exemplary embodiment of this application is shown. The method can be executed by a computer device. The method includes:

[0224] Step 702: The first virtual object participates in the historical game;

[0225] For example, the first virtual object participates in historical matches in a team-based competitive manner.

[0226] Step 703: Train the behavior prediction network based on historical behaviors in historical games;

[0227] For example, historical behavior refers to the actions of the first virtual object in past matches, such as launching a virtual attack, moving, releasing a virtual skill, or purchasing virtual equipment. For a further explanation of behavior prediction networks, please refer to the section above. Figure 7 , Figure 8 A corresponding implementation example. Because the behavior prediction network is trained with reference to historical behaviors in past games, the behavior prediction network has the ability to predict the behavior of virtual characters based on the operating style of the first virtual object in past games.

[0228] Step 704: Determine whether the first virtual object has lost a game in three consecutive historical games;

[0229] For example, if the first virtual object loses three consecutive matches in its historical games, its virtual competitive level is low and it needs additional assistance; proceed to step 708. If the first virtual object does not meet the condition of losing three consecutive matches in its historical games, its virtual competitive level is not significantly insufficient and it does not need additional assistance; proceed to step 706.

[0230] Step 706: The first virtual object is randomly matched with teammates to participate in a virtual game;

[0231] If the virtual competitive level of the first virtual object is not significantly insufficient, similar to the historical matches in step 702, the first virtual object is randomly matched with teammates to form a virtual team and participate in virtual matches.

[0232] Step 708: Display NPC addition information;

[0233] For example, NPC addition information is used to indicate that the user has permission to add NPCs to the virtual team; by adding NPCs, the user can provide additional assistance to the first virtual object, thus avoiding the situation where randomly matched teammates have uneven skill levels or lack of coordination with the first virtual object, resulting in the first virtual object's low virtual skill level.

[0234] Step 710: Determine whether to perform the character addition operation;

[0235] For example, the character addition operation is a human-computer interaction operation that instructs the addition of an NPC to the virtual team. When the character addition operation is performed, step 712 is executed, and the first virtual object and the NPC participate in the virtual game together; conversely, when the character addition operation is not performed, although the virtual competitive level of the first virtual object is low, the player controlling the first virtual object does not have the intention to add an NPC to the virtual team, and step 706 is executed, and the first virtual object still participates in the virtual game by randomly matching teammates to form a virtual team.

[0236] Step 712: The first virtual object and the NPC jointly participate in the virtual game;

[0237] For example, the first virtual object and the NPC participate in the virtual game together. By adding the NPC to provide additional assistance to the first virtual object, the uneven skill levels of randomly matched teammates or the lack of cooperation with the first virtual object can be avoided, which would result in the first virtual object's low virtual competitive level.

[0238] Step 714: Display the NPC performing a virtual activity;

[0239] For example, the virtual activities performed by the NPC are predicted based on environmental information in the currently participating virtual game, according to the behavior prediction network trained in step 703.

[0240] Those skilled in the art will understand that the above embodiments can be implemented independently, or the above embodiments can be freely combined to create new embodiments to implement the virtual game processing method of this application.

[0241] Figure 10 A structural block diagram of a virtual game processing apparatus provided in an exemplary embodiment of this application is shown. The apparatus includes:

[0242] Display module 810 is used to display a virtual team that is forming a team, the virtual team including a first virtual object;

[0243] The processing module 820 is used to display a team-up prompt when the first virtual object meets the conditions for assisting in the game. The conditions for assisting in the game are used to indicate the conditions under which the first virtual object needs to receive additional assistance in the virtual game. The team-up prompt is used to indicate that the user has the authority to add NPCs to the virtual team.

[0244] The processing module 820 is also used to respond to the character addition operation by displaying that the NPC has joined the virtual team;

[0245] The display module 810 is also used to display the virtual activities performed by the NPC in the virtual environment of the virtual game.

[0246] In an optional implementation of this embodiment, the processing module 820 is further configured to:

[0247] If the first virtual object meets the object weakness condition, the team formation prompt information is displayed. The object weakness condition indicates that the virtual competitive level of the first virtual object is lower than that of other virtual objects in the virtual match.

[0248] In an optional implementation of this embodiment, the object's weak condition includes at least one of the following:

[0249] The first virtual object lost a games in the most recent consecutive historical games prior to the virtual game, where a is a positive integer;

[0250] The first virtual object does not have any teammates who invited it to join its historical team in the most recent consecutive b historical matches before the virtual match, where b is a positive integer;

[0251] The first virtual object loses a game in a first historical game adjacent to the virtual game, and the difference in game score with the opposing team exceeds the difference threshold;

[0252] The first virtual object lost a team fight in the first historical game adjacent to the virtual game.

[0253] In an optional implementation of this embodiment, the processing module 820 is further configured to:

[0254] When the first virtual object meets the key conditions for the game, the team-up prompt information is displayed. The key conditions for the game are conditions that indicate that the virtual game is important to the first virtual object.

[0255] In an optional implementation of this embodiment, the key conditions for the game include at least one of the following:

[0256] The first virtual object advances to the next round in a virtual tournament upon winning the match;

[0257] The first virtual object receives a virtual rank upgrade upon winning a match;

[0258] The second virtual object in the virtual team is bound to the first virtual object through a social relationship.

[0259] In an optional implementation of this embodiment, the virtual activity performed by the NPC has the same activity attributes as the historical activity performed by the first virtual object in the historical game, and the activity attributes include at least one of the following:

[0260] The average time interval for launching virtual attacks, the critical hit rate of launching virtual attacks, the accuracy rate of launching virtual attacks, the configuration order of virtual equipment, the configuration type of virtual equipment, the upgrade order of virtual skills, the usage ratio of virtual skills, and the movement path in the virtual environment.

[0261] In an optional implementation of this embodiment, the display module 810 includes at least one of the following:

[0262] When the first virtual object launches a virtual attack, the NPC is shown to move to the vicinity of the first virtual object and launch a virtual attack together with the first virtual object.

[0263] When the first virtual object is in a dying state due to a virtual attack, the NPC is shown to move to the first direction in which the first virtual object is being attacked, and / or provide a virtual shield to the first virtual object, and / or replenish the virtual health of the first virtual object;

[0264] When the first virtual object attacks a virtual monster in the virtual wilderness of the virtual environment, the NPC is shown to be moving away from the first virtual object;

[0265] When the first virtual object is concealed from the enemy virtual object, the NPC is shown moving to a second area to perform virtual activities, and the second area is away from the direction of movement of the first virtual object.

[0266] In an optional implementation of this embodiment, the processing module 820 is further configured to:

[0267] The behavior prediction model is invoked to predict the environmental information in the virtual game, thereby obtaining the virtual activity to be performed by the NPC.

[0268] In an optional implementation of this embodiment, the apparatus further includes:

[0269] The acquisition module 830 is used to acquire sample environment information in sample games;

[0270] The processing module 820 is further configured to:

[0271] The teacher subnetwork in the initial behavior prediction model is invoked to perform behavior prediction on the sample environment information to obtain the first predicted behavior;

[0272] The student sub-network in the initial behavior prediction model is invoked to perform behavior prediction on the sample environment information to obtain the second predicted behavior;

[0273] Based on the difference between the first predicted behavior and the second predicted behavior, the initial behavior prediction model is trained to obtain the trained behavior prediction model.

[0274] The behavior prediction model is the student subnetwork in the trained behavior prediction model.

[0275] In an optional implementation of this embodiment, the processing module 820 is further configured to:

[0276] The encoding network is invoked to perform encoding prediction on the historical activity information of the first virtual object in the historical game to obtain style feature information;

[0277] The behavior prediction model is invoked to perform predictions on the environmental information and the style feature information to obtain the virtual activity to be performed by the NPC.

[0278] In an optional implementation of this embodiment, the apparatus further includes:

[0279] The acquisition module 830 is used to acquire sample behavior and sample tags, wherein the sample tags are used to indicate whether the sample behavior belongs to the behavior information recorded in a real game.

[0280] The processing module 820 is further configured to:

[0281] The encoding sub-network in the initial label prediction model is invoked to perform encoding prediction on the sample behavior, thereby obtaining predicted feature information;

[0282] The discriminant subnetwork in the initial label prediction model is invoked to perform label prediction on the predicted feature information, thereby obtaining the predicted label;

[0283] Based on the difference between the predicted label and the sample label, the initial label prediction model is trained to obtain the trained label prediction model;

[0284] The encoding network is the encoding sub-network in the trained label prediction model.

[0285] In an optional implementation of this embodiment, the first character type selected by the first virtual object in the historical game is the same as the second character type corresponding to the NPC.

[0286] In an optional implementation of this embodiment, the processing module 820 is further configured to:

[0287] If the number of matches in which the first virtual object selects the first character type does not exceed the number threshold, the historical activity information is constructed based on the reference activity information when the first virtual object selects at least two other character types.

[0288] The first character type is the same as the second character type corresponding to the NPC.

[0289] In an optional implementation of this embodiment, the processing module 820 is further configured to perform at least one of the following:

[0290] The reference skill information and skill weight information when the first virtual object selects the at least two other character types are determined as the historical skill information in the historical activity information. The skill weight information is positively correlated with the skill similarity. The skill similarity is used to indicate the degree of similarity between the virtual skills of the other character types and the virtual skills of the second character type corresponding to the NPC.

[0291] The reference movement information and movement weight information when the first virtual object selects the at least two other character types are determined as the historical movement information in the historical activity information. The movement weight information is positively correlated with the virtual survival similarity. The virtual survival similarity is used to indicate the degree of similarity between the virtual health value and / or virtual mana value between the NPC and the other character types.

[0292] The reference equipment information and equipment weight information when the first virtual object selects the at least two other character types are determined as the historical equipment information in the historical activity information. The equipment weight information is positively correlated with the virtual gain similarity. The virtual gain similarity is used to indicate the degree of similarity between the NPC and the other character types in terms of virtual experience value and / or virtual item value.

[0293] It should be noted that the device provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0294] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments of the relevant method; the technical effects achieved by each module performing its operation are the same as the technical effects in the embodiments of the relevant method, and will not be elaborated here.

[0295] This application also provides a computer device, which includes: a processor and a memory, wherein the memory stores a computer program; the processor is used to execute the computer program in the memory to implement the virtual game processing method provided in the above method embodiments.

[0296] Figure 11 A structural block diagram of a terminal provided in an exemplary embodiment of this application is shown. The terminal 1900 may be a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The terminal 1900 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.

[0297] Typically, terminal 1900 includes a processor 1901 and a memory 1902. Processor 1901 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 1901 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1901 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1901 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1901 may also include an AI (Artificial Intelligence) processor, which handles computational operations related to machine learning.

[0298] The memory 1902 may include one or more computer-readable storage media, which may be non-transitory. The memory 1902 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1902 are used to store at least one instruction, which is executed by the processor 1901 to implement the virtual game processing method provided in the method embodiments of this application.

[0299] In some embodiments, the terminal 1900 may also optionally include a peripheral device interface 1903 and at least one peripheral device. The processor 1901, memory 1902, and peripheral device interface 1903 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1904, a touch display screen 1905, a camera assembly 1906, an audio circuit 1907, and a power supply 1908.

[0300] Peripheral interface 1903 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1901 and memory 1902. In some embodiments, processor 1901, memory 1902 and peripheral interface 1903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1901, memory 1902 and peripheral interface 1903 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0301] The radio frequency (RF) circuit 1904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1904 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1904 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1904 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1904 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0302] The touch display screen 1905 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1905 also has the energy to collect touch signals on or above its surface. These touch signals can be input as control signals to the processor 1901 for processing. In this case, the touch display screen 1905 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one touch display screen 1905, which is used as the front panel of the terminal 1900; in other embodiments, there may be at least two touch display screens, respectively disposed on different surfaces of the terminal 1900 or in a folded design; in still other embodiments, the touch display screen 1905 may be a flexible display screen, disposed on a curved surface or a folded surface of the terminal 1900. Furthermore, the touch display screen 1905 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The touch display 1905 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0303] The camera assembly 1906 is used to acquire images or videos. Optionally, the camera assembly 1906 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting for VR (Virtual Reality) shooting, or other fusion shooting functions by fusion of the main camera and the wide-angle camera. In some embodiments, the camera assembly 1906 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.

[0304] The audio circuit 1907 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting them into electrical signals that are input to the processor 1901 for processing, or to the radio frequency circuit 1904 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each positioned at a different location on the terminal 1900. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1901 or the radio frequency circuit 1904 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1907 may also include a headphone jack.

[0305] Power supply 1908 is used to power the various components in terminal 1900. Power supply 1908 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1908 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, and a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0306] In some embodiments, the terminal 1900 further includes one or more sensors 1909. The one or more sensors 1909 include, but are not limited to: an accelerometer 1910, a gyroscope 1911, a pressure sensor 1912, an optical sensor 1913, and a proximity sensor 1914.

[0307] Accelerometer 1910 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established by terminal 1900. For example, accelerometer 1910 can be used to detect the components of gravitational acceleration on the three coordinate axes. Processor 1901 can control touchscreen 1905 to display the user interface in landscape or portrait view based on the gravitational acceleration signal collected by accelerometer 1910. Accelerometer 1910 can also be used for game or user motion data acquisition. Gyroscope 1911 can detect the orientation and rotation angle of terminal 1900. Gyroscope 1911 can work in conjunction with accelerometer 1910 to acquire 3D user actions on terminal 1900. Based on the data collected by gyroscope 1911, processor 1901 can perform the following functions: motion sensing (e.g., changing the UI based on user tilt), image stabilization during shooting, game control, and inertial navigation.

[0308] The pressure sensor 1912 can be disposed on the side bezel of the terminal 1900 and / or on the lower layer of the touch display screen 1905. When the pressure sensor 1912 is disposed on the side bezel of the terminal 1900, it can detect the user's grip signal on the terminal 1900, and the processor 1901 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1912. When the pressure sensor 1912 is disposed on the lower layer of the touch display screen 1905, the processor 1901 can control the operable controls on the UI interface based on the user's pressure operation on the touch display screen 1905. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0309] An optical sensor 1913 is used to collect ambient light intensity. In one embodiment, the processor 1901 can control the display brightness of the touch screen 1905 based on the ambient light intensity collected by the optical sensor 1913. Specifically, when the ambient light intensity is high, the display brightness of the touch screen 1905 is increased; when the ambient light intensity is low, the display brightness of the touch screen 1905 is decreased. In another embodiment, the processor 1901 can also dynamically adjust the shooting parameters of the camera assembly 1906 based on the ambient light intensity collected by the optical sensor 1913.

[0310] The proximity sensor 1914, also known as a distance sensor, is typically located on the front panel of the terminal 1900. The proximity sensor 1914 is used to detect the distance between the user and the front of the terminal 1900. In one embodiment, when the proximity sensor 1914 detects that the distance between the user and the front of the terminal 1900 is gradually decreasing, the processor 1901 controls the touchscreen display 1905 to switch from a screen-on state to a screen-off state; when the proximity sensor 1914 detects that the distance between the user and the front of the terminal 1900 is gradually increasing, the processor 1901 controls the touchscreen display 1905 to switch from a screen-off state to a screen-on state.

[0311] Those skilled in the art will understand that the above structure does not constitute a limitation on the terminal 1900, and may include more or fewer components than illustrated, or combine certain components, or employ different component arrangements.

[0312] In an exemplary embodiment, a chip is also provided, the chip including programmable logic circuitry and / or program instructions, which, when the chip is run on a computer device, are used to implement the virtual game processing method described above.

[0313] In an exemplary embodiment, a computer program product is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to implement the virtual game processing method provided in the above-described method embodiments.

[0314] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores a computer program that is loaded and executed by a processor to implement the virtual game processing method provided in the above-described method embodiments.

[0315] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0316] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0317] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for processing virtual games, characterized in that, The method includes: Displays a virtual team that is currently forming a group, the virtual team including a first virtual object; When the first virtual object meets the conditions for assisting in the game, a team-up prompt message is displayed. The conditions for assisting in the game are used to indicate the conditions under which the first virtual object needs additional assistance in the virtual game. The team-up prompt message is used to indicate that the user has the authority to add NPCs to the virtual team. In response to a character addition operation, the NPC is displayed as having joined the virtual team; This shows the NPC performing virtual activities in the virtual environment of the virtual game.

2. The method according to claim 1, characterized in that, When the first virtual object meets the conditions for assisting in the game, displaying a team-up prompt message includes: If the first virtual object meets the object weakness condition, the team formation prompt information is displayed. The object weakness condition indicates that the virtual competitive level of the first virtual object is lower than that of other virtual objects in the virtual match.

3. The method according to claim 2, characterized in that, The object's weak condition includes at least one of the following: The first virtual object lost a games in the most recent consecutive historical games prior to the virtual game, where a is a positive integer; The first virtual object does not have any teammates who invited it to join its historical team in the most recent consecutive b historical matches before the virtual match, where b is a positive integer; The first virtual object loses a game in a first historical game adjacent to the virtual game, and the difference in game score with the opposing team exceeds the difference threshold; The first virtual object lost a team fight in the first historical game adjacent to the virtual game.

4. The method according to claim 1, characterized in that, When the first virtual object meets the conditions for assisting in the game, displaying a team-up prompt message includes: When the first virtual object meets the key conditions for the game, the team-up prompt information is displayed. The key conditions for the game are conditions that indicate that the virtual game is important to the first virtual object.

5. The method according to claim 4, characterized in that, The key conditions for the game include at least one of the following: The first virtual object advances to the next round in a virtual tournament upon winning the match; The first virtual object receives a virtual rank upgrade upon winning a match; The second virtual object in the virtual team is bound to the first virtual object through a social relationship.

6. The method according to any one of claims 1 to 5, characterized in that, The virtual activity performed by the NPC has the same activity attributes as the historical activity performed by the first virtual object in the historical game, and the activity attributes include at least one of the following: The average time interval for launching virtual attacks, the critical hit rate of launching virtual attacks, the accuracy rate of launching virtual attacks, the configuration order of virtual equipment, the configuration type of virtual equipment, the upgrade order of virtual skills, the usage ratio of virtual skills, and the movement path in the virtual environment.

7. The method according to any one of claims 1 to 5, characterized in that, The description of the NPC performing virtual activities in the virtual environment of the virtual game includes at least one of the following: When the first virtual object launches a virtual attack, the NPC is shown to move to the vicinity of the first virtual object and launch a virtual attack together with the first virtual object. When the first virtual object is in a dying state due to a virtual attack, the NPC is shown to move to the first direction in which the first virtual object is being attacked, and / or provide the first virtual object with a virtual shield, and / or replenish the first virtual object with virtual health. When the first virtual object attacks a virtual monster in the virtual wilderness of the virtual environment, the NPC is shown to be moving away from the first virtual object; When the first virtual object is concealed from the enemy virtual object, the NPC is shown moving to a second area to perform virtual activities, and the second area is away from the direction of movement of the first virtual object.

8. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The behavior prediction model is invoked to predict the environmental information in the virtual game, thereby obtaining the virtual activity to be performed by the NPC.

9. The method according to claim 8, characterized in that, The method further includes: Obtain sample environment information in sample games; The teacher subnetwork in the initial behavior prediction model is invoked to perform behavior prediction on the sample environment information to obtain the first predicted behavior; The student sub-network in the initial behavior prediction model is invoked to perform behavior prediction on the sample environment information to obtain the second predicted behavior; Based on the difference between the first predicted behavior and the second predicted behavior, the initial behavior prediction model is trained to obtain the trained behavior prediction model. The behavior prediction model is the student subnetwork in the trained behavior prediction model.

10. The method according to claim 8, characterized in that, The method further includes: The encoding network is invoked to perform encoding prediction on the historical activity information of the first virtual object in the historical game to obtain style feature information; The invocation behavior prediction model performs predictions on environmental information in the virtual game to obtain the virtual activities to be performed by the NPC, including: The behavior prediction model is invoked to perform predictions on the environmental information and the style feature information to obtain the virtual activity to be performed by the NPC.

11. The method according to claim 10, characterized in that, The method further includes: Acquire sample behaviors and sample tags, wherein the sample tags are used to indicate whether the sample behaviors belong to behavior information recorded in real games; The encoding sub-network in the initial label prediction model is invoked to perform encoding prediction on the sample behavior, thereby obtaining predicted feature information; The discriminant subnetwork in the initial label prediction model is invoked to perform label prediction on the predicted feature information, thereby obtaining the predicted label; Based on the difference between the predicted label and the sample label, the initial label prediction model is trained to obtain the trained label prediction model; The encoding network is the encoding sub-network in the trained label prediction model.

12. The method according to claim 10, characterized in that, The first virtual object selects the same first character type as the second character type corresponding to the NPC in the historical game.

13. The method according to claim 10, characterized in that, The method further includes: If the number of matches in which the first virtual object selects the first character type does not exceed the number threshold, the historical activity information is constructed based on the reference activity information when the first virtual object selects at least two other character types. The first character type is the same as the second character type corresponding to the NPC.

14. The method according to claim 13, characterized in that, The step of constructing the historical activity information based on reference activity information when the first virtual object selects at least two other character types includes at least one of the following: The reference skill information and skill weight information when the first virtual object selects the at least two other character types are determined as the historical skill information in the historical activity information. The skill weight information is positively correlated with the skill similarity. The skill similarity is used to indicate the degree of similarity between the virtual skills of the other character types and the virtual skills of the second character type corresponding to the NPC. The reference movement information and movement weight information when the first virtual object selects the at least two other character types are determined as the historical movement information in the historical activity information. The movement weight information is positively correlated with the virtual survival similarity. The virtual survival similarity is used to indicate the degree of similarity between the virtual health value and / or virtual mana value between the NPC and the other character types. The reference equipment information and equipment weight information when the first virtual object selects the at least two other character types are determined as the historical equipment information in the historical activity information. The equipment weight information is positively correlated with the virtual gain similarity. The virtual gain similarity is used to indicate the degree of similarity between the NPC and the other character types in terms of virtual experience value and / or virtual item value.

15. A virtual game processing device, characterized in that, The device includes: A display module is used to display virtual teams that are currently forming a team, wherein the virtual team includes a first virtual object; The processing module is used to display a team-up prompt when the first virtual object meets the conditions for assisting in the game. The conditions for assisting in the game are used to indicate the conditions under which the first virtual object needs to receive additional assistance in the virtual game. The team-up prompt is used to indicate that the first virtual object has the authority to add NPCs to the virtual team. The processing module is also used to respond to the character addition operation by displaying that the NPC has joined the virtual team; The display module is also used to display the virtual activities performed by the NPC in the virtual environment of the virtual game.

16. A computer device, characterized in that, The computer device includes: a processor and a memory, wherein the memory stores at least one program; the processor is configured to execute the at least one program in the memory to implement the virtual game processing method as described in any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that, The readable storage medium stores executable instructions, which are loaded and executed by a processor to implement the virtual game processing method as described in any one of claims 1 to 14.

18. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium, and a processor reads and executes the computer instructions from the computer-readable storage medium to implement the virtual game processing method as described in any one of claims 1 to 14.