Method, device, electronic device, and computer program for allocating virtual incentive resources
By dynamically allocating virtual incentive resources based on character contributions, the method enhances player engagement and reduces server load in team battles, addressing the issue of disproportionate rewards and prolonged game times.
Patent Information
- Application Number
- JP2022560967
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-05-20
- Filing Date
- 2021-10-18
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-10-18
AI Technical Summary
Existing game systems for team battles in competitive games fail to accurately reward intensity, leading to disproportionate rewards for haphazardly concluded matches, reducing player motivation and increasing server processing load.
A method for dynamically allocating virtual incentive resources based on the actions and contributions of each virtual character during a team battle, determining a target character and resource update based on contribution information, enhancing player engagement and reducing server load.
This approach increases player motivation in team battles by providing fair and dynamic rewards, shortens game duration, and reduces server processing load by optimizing resource allocation.
Smart Images

Figure 0007550874000006 
Figure 0007550874000007 
Figure 0007550874000008
Abstract
Description
[Technical field]
[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application is based on and claims priority to a Chinese patent application filed on May 20, 2021, bearing application number 202110554403.0, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of computer technology, and to a method, an apparatus, an electronic device, a computer-readable storage medium and a computer program for allocating virtual incentive resources. [Background technology]
[0003] With the rapid development of computer technology and Internet technology, a large number of game application programs have appeared on terminals. Team battle is a relatively important game mode in some battle games.
[0004] In related technologies, rewards for team battles generally adopt a fixed method of setting rewards according to actions such as the number of kills and the number of assists. However, such a simple reward method based on quantities cannot represent the intensity of the team battle, and the reward for a team battle that ends carelessly may be greater than the reward for a team battle that is fierce and results in repeated comebacks, which may affect game players' motivation to participate in team battles, thereby lengthening the duration of single matches and causing excessive processing load on the server. Summary of the Invention [Means for solving the problem]
[0005] The embodiments of the present application provide a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program for allocating virtual incentive resources, which can save the processing resources of a server and reduce the processing load of the server.
[0006] An embodiment of the present application provides a method for allocating virtual incentive resources, the method comprising: Acquiring action information of each virtual character in a target camp during a team battle period, the target camp including at least one virtual character, the action information being information regarding an action that each virtual character in the target camp gives to a virtual object receiving the action, the virtual object receiving the action being a virtual character in at least one of the target camp and an opposing camp; determining contribution information regarding the contributions made by each virtual character in the target camp during the team battle period based on the behavior information; determining a target virtual character and a target virtual incentive resource corresponding to the target virtual character from at least one virtual character included in the target camp based on the contribution information; and updating attribute information of the target virtual character based on the target virtual incentive resource.
[0007] An embodiment of the present application provides a device for allocating virtual incentive resources, the device comprising: An action information acquisition module configured to acquire action information of each virtual character in a target camp during a team battle period, the target camp including at least one virtual character, the action information being information regarding an action that each virtual character in the target camp gives to a virtual object receiving the action, the virtual object receiving the action being a virtual character in at least one of the target camp and the opposing camp; A contribution information acquisition module configured to determine contribution information on the contributions made by each virtual character in the target camp during the team battle period based on the behavior information; An incentive character determination module configured to determine a target virtual character and a target virtual incentive resource corresponding to the target virtual character from at least one virtual character included in the target faction; and a resource allocation module configured to update attribute information of the target virtual character based on the target virtual incentive resource. An embodiment of the present application provides an electronic device, the electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable by the processor, the computer program implementing a method for allocating virtual incentive resources according to an embodiment of the present application when the processor executes the program.
[0008] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, realizes a method for allocating virtual incentive resources according to an embodiment of the present application.
[0009] An embodiment of the present application provides a computer program, which includes computer programs or instructions, which, when executed by a processor, implement the method for allocating virtual incentive resources according to the embodiment of the present application.
[0010] The embodiment of the present application includes at least the following beneficial effects: Obtaining behavior information of each virtual character in the target camp during the team battle period, and determining contribution information on the contributions each virtual character in the target camp has made during the team battle period based on the behavior information, thereby laying a foundation for subsequently flexibly determining a target virtual character and a target virtual incentive resource based on the contribution information; Then, determining a target virtual character and a corresponding target virtual incentive resource from the target camp based on the contribution information, and updating the attribute information of the corresponding target virtual character based on the target virtual incentive resource; The virtual incentive resource can be dynamically allocated based on the behavior of the virtual character in each team battle. In this way, the player's motivation to participate in the team battle can be improved, thereby reducing the time required for a single-player game and reducing the processing load of the server. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a schematic diagram illustrating an implementation environment according to an embodiment of the present application. [Diagram 2] 2 is a flow chart illustrating a method for allocating virtual incentive resources according to an embodiment of the present application; [Diagram 3] FIG. 1 is a schematic diagram illustrating a team match according to an embodiment of the present application. [Figure 4] FIG. 2 is a schematic diagram showing the display of presentation information of a target virtual character and corresponding target virtual reward resources in a game interface according to an embodiment of the present application; [Diagram 5] 1 is a flow chart illustrating frame synchronization according to an embodiment of the present application; [Figure 6] 1 is a first flowchart illustrating a method for allocating virtual incentive resources according to an embodiment of the present application; [Figure 7] 2 is a second flowchart illustrating a method for allocating virtual incentive resources according to an embodiment of the present application; [Figure 8] 1 is a schematic diagram showing the structure of a virtual incentive resource allocation device according to an embodiment of the present application; [Figure 9] 1 is a schematic diagram showing a structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] In order to more clearly describe the technical solutions in the embodiments of the present application, the above briefly describes the drawings necessary for describing the embodiments of the present application.
[0013] The following describes the embodiments of the present application in detail. Examples of the embodiments of the present application are shown in the drawings, in which the same or similar numbers throughout represent the same or similar elements, or elements having the same or similar functions. In the following, the embodiments described in the drawings are illustrative and are merely for the purpose of interpreting the present application, but should not be interpreted as limiting the present application.
[0014] It will be apparent to those skilled in the art that singular forms such as "a", "one" and "the" described herein may also include plural forms, unless otherwise specified. It should be further understood that the term "comprising" as used herein refers to the presence of features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or sets thereof. When an element is described as being "connected" or "coupled" to another element, this may be directly connected or coupled to the other element or may be via an intermediate element. Also, as used herein, "connected" or "coupling" may include wireless connection or coupling. As used herein, the term "and / or" includes one or more of the associated listed items, or any one and all combinations.
[0015] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application are further described in detail below with reference to the drawings.
[0016] First, some terms related to the embodiments of the present application will be explained and interpreted.
[0017] 1. Regarding Multiplayer Online Battle Arena Games (MOBA), players generally need to purchase equipment during battles. Generally, players are divided into two teams, and the two teams compete against each other on distributed game maps. Each player controls a selected character through a Real-Time Strategy Game (RTS) style interface. In the game, at least two virtual characters compete in a single battle mode in a virtual environment. The virtual characters need to inflict damage on other virtual characters and avoid damage from other virtual characters. In some battle modes (e.g., Versus (V) 1 battle), if the life value of the virtual character in the virtual environment is zero, the last surviving virtual character in the virtual environment wins. In other battle modes (e.g., tower mode), if the life value of the base of the virtual character in the virtual environment is zero, the virtual character to which the last undestroyed base in the virtual environment belongs wins. In an embodiment of the present application, a match starts when the first client joins the match and ends when the last client leaves the match. Each client can control one or more virtual characters in the virtual environment. In an embodiment of the present application, the competitive mode of the match may include a single match mode, a two-person match mode, or a multi-person match mode. The embodiment of the present application does not limit the match mode.
[0018] 2. Players: In the embodiment of this application, players are called users. Among them, players may also be called game participants. This is a term for the game industry and game participants. In a broad sense, players refer to users who play games, that is, people who participate in any form of game. In particular, in role-playing games, players play the role of controllable game characters (virtual characters) in the game world, and accomplish the game or goals set by themselves by manipulating these controllable game characters. In addition, some players may be the protagonists of the game or the key points of the game scenario in role-playing games. In other words, players are experiencers, users, evaluators and consumers of games. Different players prefer different game types depending on their personalities and preferences.
[0019] 3. A virtual character is a movable object in a virtual environment. The movable object may be a virtual person or a virtual monster, such as a person, an animal, or a plant displayed in the virtual environment. The virtual character may be a virtual avatar representing a player in the virtual environment. The virtual environment may include multiple virtual characters. Each virtual character has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment.
[0020] In the embodiment of the present application, when the virtual environment is a three-dimensional virtual environment, the virtual character may be a three-dimensional solid model. The three-dimensional solid model may be a three-dimensional character constructed based on three-dimensional human body skeleton technology. The same virtual character displays different appearances by wearing different skins. In some embodiments, the virtual character may be realized by a 2.5-dimensional or 2-dimensional model. The embodiment of the present application is not limited thereto. Optionally, the virtual character may be a player character controlled by an operation on a client, or a non-player character (Non-PlayerCharacter: NPC) in the interaction of the virtual environment. In the embodiment of the present application, the virtual character may be a virtual person who plays a game in the virtual environment.
[0021] 4. Game play refers to an interactive game environment in which a multiplayer online battle arena game provides a user with control virtual objects. In the embodiment of the present application, a user can enter a corresponding game play by selecting a target game mode.
[0022] In an embodiment of the present application, a MOBA type game can provide one or more game modes to a user. Different game modes correspond to different ways of playing and rules. In an embodiment of the present application, when a MOBA type game starts, a plurality of game modes corresponding to the MOBA type game are displayed on a client. A user controls a client to display a virtual environment screen corresponding to the target game mode by clicking a corresponding target game mode. In an embodiment of the present application, the virtual environment screen includes elements in a virtual environment, such as virtual buildings, virtual tools, and virtual characters. In addition, for user operation, some operation controls, such as buttons, sliders, and icons, are generally displayed overlapping on the virtual screen.
[0023] 5. Killing is also called culling or losing. Regardless of which term is used, it refers to the operation of reducing a virtual character's virtual life value to zero. After a virtual character's virtual life value is reduced to zero, the virtual character is in a killed-in-battle state. Correspondingly, a survival state of a virtual character refers to a state in which the virtual character's virtual life value is not zero.
[0024] 6. Frame Synchronization: The server collects operation commands sent from game clients, then broadcasts them to each client at a specific time (after collection is complete), and the clients perform similar logic processing based on the received operation commands, ultimately achieving similar results. In realization, generally, the server collects operation commands from each client according to a fixed frame rate, and then broadcasts these operations to all clients. Since the time (frame) at which each operation command reaches all clients is the same, the calculation results by each client are also the same. In other words, similar inputs produce similar results.
[0025] The method, device, electronic device, computer-readable storage medium, and computer program for allocating virtual incentive resources according to the embodiments of the present application can reduce resource consumption of a server in a team battle.
[0026] The following describes in detail the technical solution according to the embodiment of the present application and the technical problem of how the technical solution according to the embodiment of the present application reduces the resource consumption of the server in team battles. Hereinafter, the embodiment of the present application will be described with reference to the drawings.
[0027] 1, which is a schematic diagram illustrating an implementation environment according to an embodiment of the present application. The implementation environment may include a first terminal 110, a server 120, and a second terminal 130.
[0028] An application program 111 supporting a virtual environment is installed and executed on the first terminal 110, and the application program 111 may be a multiplayer online battle program. When the first terminal executes the application program 111, a user interface of the application program 111 is displayed on the screen of the first terminal 110. The application program 111 may be any one of a military simulation game program, a multiplayer online battle arena game, a battle royal game, and a simulation game (SLG). In the embodiment of the present application, an example is described in which the application program 111 is a MOBA game. The first terminal 110 is a terminal used by a first user 112, and the first user 112 uses the first terminal 110 to control the activity of a first virtual character located in a virtual environment. The first virtual character may be referred to as a main control virtual character of the first user 112. The activity of the first virtual character includes at least one of picking up, shooting, attacking, throwing, performing a skill, displacement, purchasing equipment, and healing, but is not limited thereto. Illustratively, the first virtual character is a first virtual person, such as a simulated person or an animated person.
[0029] The second terminal 130 has an application program 131 installed and running that supports the virtual environment, and the application program 131 may be a multiplayer online battle program. When the second terminal 130 runs the application program 131, the user interface of the application program 131 is displayed on the screen of the second terminal 130. The client may be any one of a military simulation game program, a MOBA game, a battle royal game, and a SLG game. In the embodiment of the present application, the application program 131 is an MOBA game as an example. The second terminal 130 is a terminal used by a second user 132, and the second user 132 uses the second terminal 130 to control the activity of a second virtual character located in the virtual environment. The second virtual character may be referred to as a main control virtual character of the second user 132. Exemplarily, the second virtual character is a second virtual person, such as a simulation person or an animation person.
[0030] In an embodiment of the present application, the first virtual character and the second virtual character are located in the same virtual world. Optionally, the first virtual character and the second virtual character may belong to the same camp, team, or organization, and may be friends or have temporary communication rights. Optionally, the first virtual character and the second virtual character belong to different camps, teams, or organizations, or are enemies.
[0031] In the embodiment of the present application, the application programs installed on the first terminal 110 and the second terminal 130 are the same. Or, the application programs installed on the two terminals are the same type of application programs on different operating system platforms (Android or iOS). The first terminal 110 may refer to one of a plurality of terminals, broadly speaking. The second terminal 130 may refer to another of a plurality of terminals, broadly speaking. This embodiment is described using the first terminal 110 and the second terminal 130 as an example. The device types of the first terminal 110 and the second terminal 130 may be the same or different. The device types include at least one of a smartphone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop portable computer, and a desktop computer.
[0032] Although two terminals are shown in FIG. 1, multiple terminals may access the server 120. In an embodiment of the present application, one or more terminals corresponding to developers are further included. An application program development and editing platform supporting a virtual environment is installed on the terminal. The developer edits and updates the application program on the terminal, and transmits the updated application program installation package to the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 can download the application program installation package from the server 120 to realize the update of the application program.
[0033] The first terminal 110, the second terminal 130 and other terminals are connected to the server 120 via a wireless network or a wired network.
[0034] The server 120 includes at least one of a single server, a server cluster consisting of multiple servers, a cloud computing platform, or a virtual center. The server 120 is for providing background services to application programs supporting a three-dimensional virtual environment. In the embodiment of the present application, the server 120 is responsible for main computing operations, and the terminal is responsible for secondary computing operations. Or, the server 120 is responsible for secondary computing operations, and the terminal is responsible for main computing operations. Or, the server 120 and the terminal perform collaborative computing using a distributed computing architecture.
[0035] For example, the server 120 includes a memory 121, a processor 122, a user account database 123, a battle service module 124, and a user-facing input / output interface (I / O interface) 125. The processor 122 processes data in the user account database 123 and the battle service module 124 by loading instructions stored in the server 120. The user account database 123 is configured to store data of user accounts used by the first terminal 110, the second terminal 130, and other terminals, such as avatars of the user accounts, nicknames of the user accounts, combat power indexes of the user accounts, and service areas in which the user accounts are located. The battle service module 124 is configured to provide multiple battle rooms for user battles, such as 1V1 battles, 3V3 battles, 5V5 battles, etc. The user-facing I / O interface 125 is configured to establish communication and exchange data with the first terminal 110 and / or the second terminal 130 via a wireless network or a wired network.
[0036] Referring to Fig. 2, Fig. 2 is a flow chart showing a method for allocating virtual incentive resources according to an embodiment of the present application, wherein the method for allocating virtual incentive resources is carried out by an electronic device for allocating virtual incentive resources. The following description will be made with reference to the steps shown in Fig. 2.
[0037] In S101, action information of each virtual character in a target camp during a team battle is obtained.
[0038] A game includes multiple camps. The multiple camps include a camp consisting of virtual characters (also called player characters) controlled by players, and may further include a neutral camp consisting of non-player characters (Non-Player Characters: NPCs). Each camp includes at least one virtual character, and each virtual character can attack virtual characters of other camps. The target camp in the embodiment of the present application may be any one of the camps in the game, or may be a camp where a virtual character controlled by a player is located. The embodiment of the present application is not limited thereto.
[0039] The relationship between different virtual characters may be divided into a teammate relationship, an enemy relationship, and a neutral relationship. The enemy relationship refers to the relationship between virtual characters in two different camps controlled by players. For one virtual character, the camp in which the other virtual characters in an enemy relationship with the virtual character are located is the enemy camp. For example, there are 10 players participating in an attack incident, and the 10 players can constitute a plurality of different camps, for example, each camp may include 5 players. For one camp, the virtual characters controlled by the 5 players in the camp and the virtual characters controlled by the players in the other camp are in an enemy relationship. Conversely, the virtual characters controlled by the 5 players in the camp are in a teammate relationship. The virtual characters controlled by the players can attack virtual characters in non-same camps, and the virtual characters in the non-same camps may include NPCs in a neutral relationship.
[0040] A team battle refers to a group battle between multiple virtual objects in a group in a game. For example, when some virtual characters in one group attack some virtual characters in another group in a grass patch, the attacking event may be a team battle event, which is called a team battle.
[0041] Referring to Fig. 3, Fig. 3 exemplarily shows a schematic diagram of a team battle. As shown in Fig. 3, a virtual scene displayed on a user interface 40 of a game application program includes virtual characters of two camps, for example, a virtual character 41 of a first camp and a virtual character 42 of a second camp. In this case, the motion states of the virtual characters of the two camps are both in a state of standing facing the opposing camp, and the virtual characters belonging to the same camp are relatively close together, and the virtual characters all hold virtual weapons and are in a fighting stance, gradually approaching the virtual characters of the opposing camp.
[0042] In the embodiment of the present application, the number of virtual characters involved in the team battle is not limited, and may include 1VN (one of the two camps participating in the team battle includes only one virtual character) and NVN (each of the two camps participating in the team battle includes multiple virtual characters), etc.
[0043] In the embodiment of the present application, the duration of one team battle can be determined in the following manner.
[0044] In S201, if at least two virtual characters in one camp initiate multiple attacks against at least one virtual character in another camp within a predetermined time interval (e.g., 3 seconds), the occurrence time of the earliest attack among the multiple attacks is determined to be the start time of the team battle.
[0045] In S202, after the team battle starts, participants in the team battle are determined in real time, and the participants include direct participants and indirect participants, among which the direct participants are virtual characters that start an attacking act and virtual characters that receive an attacking act from the start time of the team battle, and the indirect participants are other virtual characters that are within a predetermined range of distance from the direct participants.
[0046] In S203, the time when the duration during which virtual characters belonging to different camps among the participants in the team battle do not perform an attacking act exceeds a predetermined time and the interval exceeds a predetermined distance is determined to be the end time of the team battle.
[0047] The action information in the embodiment of the present application may include information about actions that a virtual character gives to other virtual characters in the same camp, such as healing actions and actions of accepting damage, etc. Among them, a healing action is an action that a virtual character performs to recover and lock the blood volume of other virtual characters in the same camp, recovering the blood volume means updating the blood volume from a low blood volume to a high blood volume, and locking the blood volume means locking the blood volume to a fixed value within a certain time period.
[0048] The action information may further include information on actions that a virtual character gives to a virtual character of a different camp, such as an attack action, a kill action, and a control action. An attack action is when a virtual character reduces the blood volume or other state (e.g., the magic power value consumed by the virtual character to activate a technique) of a virtual character of a different camp. A kill action is when a virtual character reduces the blood volume of a virtual character of a different camp to 0, causing the virtual character of the different camp to be in a death-in-battle state. A control action is when a virtual character restricts the movement speed and actions of a virtual character of a different camp, causing the state of the virtual character of the different camp to be in a restricted state. In a restricted state, the movement speed of the virtual character decreases, and the virtual character is unable to move, and is unable to activate a technique or attack other virtual characters.
[0049] In other words, the action information in the embodiments of the present application is information regarding an action that each virtual character in the target camp inflicts on a virtual object receiving the action, the virtual object receiving the action is a virtual character in at least one of the target camp and the enemy camp, and the number of virtual objects included in the virtual object receiving the action may be one or more.
[0050] The action information in the embodiment of the present application includes a unique identifier of the action giver, a unique identifier of the action receiver, information on a specific action, etc. Referring to Table 1, Table 1 exemplarily shows the action information in the embodiment of the present application. Table 1 is generated by recording each action information in a game based on the action occurrence time.
[0051] [Table 1]
[0052] Table 1 shows the action information of a virtual character with a unique identifier sdhfjk001 in the target camp from 10 minutes 12 seconds to 11 minutes 35 seconds of the match. At 10 minutes 12 seconds, the virtual character makes a general attack on a virtual character with a unique identifier qwri23, dealing 24 points of damage. In general, the quantitative result of blood volume is expressed by a score. For example, if the blood volume of a certain virtual character is 2441, the virtual character has a blood volume of 2441 points. The damage recorded in the action information is panel damage. In the game, each virtual character has its own defense attribute, so the defense attribute can offset some of the panel damage. When a virtual character receives damage from another virtual character, the damage actually received by the virtual character (i.e., actual damage) is calculated according to the panel damage and the defense attribute. At 11 minutes and 31 seconds, the virtual character with the unique identifier sdhfjk001 attacks the virtual character with the unique identifier qwri23 with a skill attack corresponding to skill 1, dealing 74 points of damage. A skill attack is an attack using a virtual skill. A virtual character has multiple virtual skills, and the effects of different virtual skills are different. The biggest difference between a virtual skill and a general attack is that it has a cooldown time and consumes some attributes. The cooldown time is the minimum time interval between when the same virtual skill is used once and when it can be used again. Some skill attacks can deal area damage, that is, all virtual characters within a certain range will receive damage. At 11 minutes and 35 seconds, the virtual character with the unique identifier sdhfjk001 deals a skill attack corresponding to skill 2, which belongs to area damage and deals 55 points of damage to both of the two virtual characters (Lko4i and qwri23) within the range.
[0053] In S102, based on the behavior information, contribution information regarding the contributions made by each virtual character in the target camp during the team battle period is determined.
[0054] In the embodiment of the present application, after obtaining the behavior information of each virtual character in the target camp during the team battle period, the contribution information of the contribution made by the virtual character during the team battle period is determined based on the behavior information. Because not all virtual characters in the target camp participate in the team battle event during the team battle period, and the behavior information of different virtual characters has different effects on the virtual characters in the non-target camp during the team battle period, the embodiment of the present application determines the contribution information based on the behavior information, thereby laying the foundation for the subsequent flexible determination of the target virtual character and the target virtual incentive resource based on the contribution information. By determining the virtual incentive resource by only considering the behavior of the virtual character, the shortcomings of the small difference of the virtual incentive resource, which causes the willingness to participate in the team battle, the long game time, and the slow rhythm are overcome.
[0055] In S103, a target virtual character and a target virtual reward resource corresponding to the target virtual character are determined from at least one virtual character included in the target camp based on the contribution information.
[0056] Since the contribution information on the contributions achieved by the virtual characters in the target camp is different, the embodiment of the present application determines a target virtual character from at least one virtual character in the target camp based on the contribution information of each virtual character. For example, the target virtual character may be a virtual character that contributes the most to a team battle, or may be a virtual character that achieves a specific game goal. Based on the contribution information on the contributions achieved by the target virtual character, a corresponding target virtual incentive resource can be determined. The target virtual incentive resource may be a resource that can be consumed in the current game, a resource for purchasing / upgrading the equipment of the virtual character, or a resource for recovering the blood volume and improving the status of the virtual character. For example, an original attack inflicts 100 damage on a virtual character, and the damage caused by the attack becomes 200 due to the status improvement, and both 100 and 200 are examples of the results of quantifying damage.
[0057] In the embodiments of the present application, the target virtual character may be a virtual character controlled by a player or an NPC in the target camp, such as a soldier that appears at regular time intervals in a MOBA game, and the soldier actively attacks soldiers in the opposing camp and the virtual character controlled by the player.
[0058] In S104, update attribute information of the target virtual character according to the target virtual incentive resource.
[0059] In a game, a virtual character has multiple types of attributes. These attributes constitute the attribute information of the virtual character. For example, in a MOBA game, a virtual character has an attack attribute, a defense attribute, and a money attribute. The attack attribute represents the degree of damage that the attack of the virtual character inflicts on the enemy virtual character. The defense attribute represents the degree of damage that the virtual character inflicts when attacked by the enemy virtual character. The money attribute represents the degree of margin that the virtual character has when purchasing virtual tools. The higher the money attribute, the higher the virtual value or the more virtual tools can be purchased. After determining the target virtual incentive resource, the embodiment of the present application can update the attribute information of the corresponding target virtual character, thereby improving the combat power of the target virtual character in the game.
[0060] The virtual incentive resource allocation method of the embodiment of the present application obtains the behavior information of each virtual character in the target camp during the team battle period, and determines the contribution information on the contributions made by each virtual character in the target camp during the team battle period based on the behavior information, thereby laying the foundation for subsequently flexibly determining the target virtual character and the target virtual incentive resource based on the contribution information. By determining the virtual incentive resource by considering only the actions of the virtual characters, the shortcomings of small difference in the virtual incentive resource, low willingness to participate in the team battle, long game time, and slow rhythm are overcome. Based on the contribution information, the target virtual character and the corresponding target virtual incentive resource are further determined from the target camp, and the attribute information of the corresponding target virtual character is updated based on the target virtual incentive resource. The virtual incentive resource can be dynamically allocated based on the actions of the virtual character in each team battle. It can improve the willingness of players to participate in the team battle, improve the rhythm and enjoyment of the game, relatively reduce the time required for each round of the game, and reduce the processing load of the server. It can also improve the matching degree between the reward in the team battle and the interaction processing amount of the server.
[0061] In an embodiment of the present application, after the electronic device determines a target virtual character and corresponding target virtual incentive resources from the target camp, the virtual incentive resource allocation method further includes displaying presentation information of the belonging target virtual character and the corresponding target virtual incentive resources on the game interface of the game client.
[0062] FIG. 4 is a schematic diagram showing a game interface according to an embodiment of the present application displaying the presentation information of a target virtual character and a corresponding target virtual reward resource. As shown in FIG. 4, the virtual character annotated in the annotation box 501 is the target virtual character. It should be understood that the game interface shown in FIG. 4 is an interface from the perspective of the player of the target virtual character. When different players control the corresponding virtual characters, they generally display them from their own perspectives, so as to better control the virtual characters. In FIG. 4, the contribution information of important team formation is achieved. In order to highlight the contribution information in the game interface, the presentation information is displayed in an area located above the target virtual character in the game interface. This includes the important content of the contribution information and the target virtual reward resource, and may refer to the annotation box 502. Among them, the important content of the contribution information in the annotation box 502 includes the avatar information of the target virtual character and the avatar information of the virtual object of the enemy camp that the target virtual character shoots and kills. The target virtual reward resource is a medal. As can be seen from FIG. 4, the specific amount of the medal is 60 medals. Medals can be used to purchase virtual equipment. In the left corner of FIG. 4, the presentation information is similarly displayed. This may refer to the annotation box 503. The distinction between the presentation information in the annotation box 503 and the presentation information in the annotation box 502 is only the proportion of display. The reason for further displaying the presentation information in the left corner of the game interface is as follows: The left corner of the game interface is the display area of the battle information, which generally displays the battle information from other players in the same camp. The battle information may be voice information or text information input by other players, and may further include information generated by the server based on the game process in the game match process, such as the game progress time length and the monster killing status in the neutral camp.By displaying the presented information in a display area for the battle information, other players in the same camp are informed of the virtual encouragement information acquired by the teammate, improving the morale of the team and increasing the satisfaction of the player who controls the target virtual character.
[0063] In an embodiment of the present application, before the electronic device obtains action information of at least one virtual character in the target camp during the team battle period, the virtual incentive resource allocation method further includes: the electronic device obtains, from each game client participating in the game, a frame synchronization command generated by each game client during the team battle period, where the frame synchronization command includes action information of the virtual character controlled by each game client waiting to be verified; and sending the frame synchronization command generated by each game client to other game clients participating in the game, thereby causing each client to perform consistency verification on the received frame synchronization command.
[0064] The role of the consistency verification performed in the embodiment of the present application includes preventing the game client plug-in from simulating frame synchronization commands. The game client checks each player's data and player actions in multiple dimensions, and frame synchronization commands that do not pass the check are not executed, and can also avoid repeated execution of commands when repeated operations occur due to poor network conditions.
[0065] Referring to Fig. 5, Fig. 5 exemplarily illustrates a flow chart of frame synchronization according to an embodiment of the present application. The flow is used in the implementation environment shown in Fig. 1. The first terminal 110 determines action information 1 of a virtual character controlled by the player 1 (first user 112) based on the operation of the player 1, the action information 1 being action information waiting for verification, and generates a frame synchronization command 1 based on the action information 1 and sends it to the server 120.
[0066] The second terminal 130 determines action information 2 of the virtual character controlled by player 2 based on the operation of player 2 (second user 132), the action information 2 is action information awaiting verification, and generates a frame synchronization command 2 based on the action information 2 and transmits it to the server 120.
[0067] The server 120 generates one logical frame at a predetermined time interval (for example, 66 milliseconds). After receiving the frame synchronization command 1 and the frame synchronization command 2 within the time period in which the logical frame exists, the server 120 packages the action information 1 and the action information 2 waiting for verification in the two frame synchronization commands into a data block. When the logical frame time ends, the server 120 sends the data block to the first terminal 110 and the second terminal 130. The data block contains the frame number of the logical frame. After receiving the data block, the first terminal 110 and the second terminal 130 can determine what action information the two virtual characters have performed within the logical frame.
[0068] After receiving a data block, the first terminal 110 and the second terminal 130 perform consistency verification using a predetermined verification rule, and if the verification is passed, they send feedback information indicating that the consistency verification has been passed to the server 120, and if the verification is not passed, they send feedback information indicating that the consistency verification has failed to the server 120.
[0069] The server 120 obtains action information of each virtual character in the target camp during the team battle period from the data block based on the received feedback information that passes the consistency verification, thereby obtaining at least one action information corresponding to at least one virtual character in the target camp.
[0070] In an embodiment of the present application, the electronic device determining, based on the action information, contribution information regarding the contributions achieved by each virtual character in the target camp during the team battle period includes the electronic device determining, based on the action information, the achievement status of each virtual character in the target camp during the team battle period with respect to a predetermined game goal, and determining the contribution information based on the achievement status.
[0071] In the embodiment of the present application, the action information includes the unique identifier of the action giver, the unique identifier of the action recipient, and a specific action, and further includes the actual damage of the specific action to the action recipient and the state of the recipient after receiving the actual damage. For example, the normal damage given by virtual character 1 to virtual character 2 is 24 points, but because virtual character 2 itself has a high defensive attribute, 10 points of the damage are offset, and in this case, the actual damage is 12 points. In addition, for example, the control time given by virtual character 1 to the virtual character is 3s, but virtual character 2 itself has a defensive attribute time, or a teammate performs some processing on virtual character 2, and in this case, the control time is offset to a certain extent, so that only 2s can be controlled in the end, and the actual damage is 2s.
[0072] Referring to Table 2, Table 2 exemplarily shows the action information of an embodiment of the present application. Each action information in a game can be recorded based on the occurrence time of the action.
[0073] [Table 2]
[0074] Table 2 shows the action information of the virtual character whose unique identifier is sdhfjk001 in the target camp from 14 minutes 12 seconds to 14 minutes 45 seconds during the team battle period. Compared with Table 1, actual damage and status information are added to Table 2. Taking the action information at 14 minutes 35 seconds as an example, the virtual character whose unique identifier is sdhfjk001 gave virtual skill 3 to the one whose unique identifier is qwri23. The panel damage of virtual skill 3 is 100 points of damage and 3 seconds of control. The actual damage received by the virtual character whose unique identifier is qwri23 is 80 points and 3s of restriction, and the status is updated to a survival state and a restricted state, and the blood volume is reduced from 134 to 54. As can be seen, based on the action information, it is possible to determine which virtual character caused the damage received by the virtual character, and the numerical value and percentage of the damage caused by each virtual character. Taking the action information at 14 minutes 45 seconds as an example, after the virtual character with a unique identifier Lko4i receives the damage of the technique 2, the actual damage received is 50, and the state of the virtual user with a unique identifier Lko4i is updated to death in battle, that is, the blood volume is reduced to 0. As can be seen, the target to be shot and killed by the virtual character can be determined based on the action information.
[0075] In the embodiment of the present application, the contribution information is determined based on the achievement status of the virtual character with respect to the predetermined game goal during the team battle period. In the following, the predetermined game goal will be described by taking the game goal in a MOBA type game as an example.
[0076] (1) Targets corresponding to control actions, for example, target 1 and target 2.
[0077] Target 1: A virtual character in the target camp is able to be controlled by at least one virtual character in the opposing camp, and the control time during the team battle period exceeds a predetermined time length, and during the control period, causes at least one virtual character in the opposing camp to be updated from a alive state to a killed in battle state.
[0078] Target 2: During a team battle, a proactive control is initiated, the number of people participating in the team battle in the opposing camp is greater than 1, and during the control period, at least one virtual character in the opposing camp is updated from a living state to a dead state. The proactive control in the embodiment of the present application is controlled so that a virtual target in the opposing camp cannot move and / or cannot attack during a team battle before the virtual target starts an attack. (2) The targets corresponding to the attack, for example, Target 3 and Target 4.
[0079] Target 3: A virtual character in the hostile camp will kill a virtual character in the neutral camp if the virtual character in the hostile camp loses more than a predetermined percentage of the blood volume of the virtual character in the neutral camp.
[0080] Target 4: The attacking act causes a virtual character in the opposing camp to lose a predetermined value or a predetermined percentage of blood volume, the number of people participating in the team battle in the opposing camp is greater than 1, and at least one virtual character in the opposing camp is updated from alive to killed in battle. (3) A target that corresponds to the act of accepting damage, for example, target 5.
[0081] Target 5: The damage received during the team battle reaches a predetermined value, the number of people participating in the team battle in the opposing camp is greater than 1, and at least one virtual character in the opposing camp is updated from alive to killed in battle during the team battle.
[0082] For target 1, the electronic device determines whether the virtual character in the target camp is controlled by at least one virtual character in the opposing camp based on the actual damage in the action information of the virtual object in the target camp, and if so, continues to determine based on the actual damage and state. If it determines based on the actual damage and state that the length of time that the virtual character in the opposing camp is controlled exceeds a predetermined length of time and at least one virtual character in the opposing camp has been updated from alive to killed in action, it determines that target 1 has been achieved.
[0083] For target 2, the electronic device judges whether the virtual character in the target camp has caused the proactive control based on the actual damage in the action information of the virtual object in the target camp, and if so, continues the judgment based on the state of the controlled virtual character in the enemy camp. If the number of people participating in the team battle in the enemy camp is greater than 1 and causes at least one virtual character in the enemy camp to be updated from alive to killed in battle during the control period, it determines that target 2 has been achieved.
[0084] For target 3, the electronic device determines whether the virtual character has shot and killed a virtual character in the neutral camp based on the state in the action information of the virtual object in the target camp, and if so, obtains the state of the virtual character in the neutral camp from the action information, and determines that target 3 has been achieved if a predetermined percentage or more of the loss of the virtual character in the neutral camp is due to the virtual character in the target camp.
[0085] For target 4, the electronic device judges whether the blood volume loss status of the virtual character in the opposing camp directly caused by the attack action has reached a predetermined value or a predetermined percentage based on the status in the action information of the virtual object in the target camp, and if so, continues the judgment based on the status information of the virtual object in the opposing camp. If it is determined based on the status information of the virtual object in the opposing camp that the number of people participating in the team battle in the opposing camp is greater than 1, causing at least one virtual character in the opposing camp to be updated from alive to killed in battle, it determines that target 4 has been achieved.
[0086] For target 5, the electronic device determines the actual damage received by the virtual object in the team battle period based on the action information of the virtual object in the target camp. If the actual damage value reaches a predetermined value, the electronic device continues to make a judgment based on the status information of the virtual object in the opposing camp. If it is determined based on the status information of the virtual object in the opposing camp that the number of people participating in the team battle in the opposing camp is greater than 1 and that at least one virtual character in the opposing camp has been updated from alive to killed in battle during the team battle period, it is determined that target 5 has been achieved.
[0087] In addition, for each contribution type, the embodiment of the present application further sets a corresponding virtual incentive resource. The virtual incentive resources corresponding to different contribution types are different. For example, some virtual incentive resources can increase the monetary attribute of the virtual object, some virtual incentive resources can increase the defense attribute of the virtual object, some virtual incentive resources can increase the attack attribute of the virtual object, etc. The embodiment of the present application does not specifically limit this. By setting different virtual incentives for different contribution types, different virtual incentives can be given to virtual characters that are positioned as different characters in the game, thereby improving the interest of the team battle, and further promoting the increase in the number of participations and participation rate in the battle, accelerating the game process, shortening the game time, and contributing to reducing the operating load of the server. Among them, the participation rate in the team battle is the frequency at which a user participates in an effective team strategy. For one virtual character, the number of effective team battles it has participated in is determined, and the participation rate of the virtual character in the team battle can be obtained based on the number of team battle events and the total number of team battles it has participated in.
[0088] In an embodiment of the present application, the electronic device determines, based on the contribution information, a target virtual character and a target virtual incentive resource corresponding to the target virtual character from at least one virtual character included in the target camp, including S301 to S304.
[0089] In S301, a virtual character that has achieved at least one game goal among at least one virtual character included in a target camp based on an achievement status corresponding to the contribution information is set as a target virtual character. During the team battle, the game goals that different virtual characters can achieve may be different. For example, a virtual character whose character position is assisting usually needs to receive as much damage as possible in the team battle, thereby outputting an opportunity to inflict damage on teammates. A virtual character whose character position is monster hunting (annihilate virtual characters in the neutral camp in the game, also called monsters) usually needs to reduce the profit of monster hunting of the enemy camp as much as possible. Therefore, different virtual characters have different game goals in the team battle. The embodiment of the present application collects statistics on the achievement information of each virtual character in the target camp for a predetermined game goal during the team battle, and determines a virtual character that has achieved at least one game goal in the target camp based on the achievement status, and finally sets the virtual character that has achieved at least one game goal in the target camp as the target virtual character. The achievement status indicates whether each virtual character has achieved a predetermined effective target.
[0090] In S302, at least one contribution type that has one-to-one correspondence with at least one game objective is determined based on a predetermined correspondence relationship between the game objective and the contribution type.
[0091] It should be noted that for each game objective, the embodiment of the present application further sets a corresponding contribution type. The contribution types corresponding to different game objectives are different. Therefore, the embodiment of the present application pre-sets a contribution type corresponding to each game objective. For example, for target 1, the corresponding contribution type is a trigger of important control; for target 2, the corresponding contribution type is a trigger of important team formation; for target 3, the corresponding contribution type is a trigger of important capture; for target 4, the corresponding contribution type is a trigger of important output; and for target 5, the corresponding contribution type is a trigger of important damage taken.
[0092] In S303, a candidate virtual incentive resource having one-to-one correspondence with at least one piece of contribution information is determined based on a predetermined correspondence relationship between the contribution type and the virtual incentive resource.
[0093] During the team battle, the target virtual character may achieve one or more contribution types. For each achieved contribution type, a one-to-one corresponding virtual incentive resource needs to be determined, and the virtual incentive resource that has a one-to-one correspondence with at least one piece of contribution information is determined as a candidate virtual incentive resource.
[0094] In S304, at least one virtual incentive resource determined from the candidate virtual incentive resources is determined as a target virtual incentive resource.
[0095] After the candidate virtual incentive resources are determined, the candidate virtual incentive resources may be set as target virtual incentive resources, and the virtual incentive resource with the highest priority among them may be set as the target virtual incentive resource.
[0096] In the embodiment of the present application, the priority relationship of the virtual incentive resources may be pre-arranged, for example, the priority of the important output trigger, the important team formation trigger, the important control trigger, the important damage receiving trigger and the important capture trigger may be arranged to decrease in order.
[0097] In addition, the virtual incentive resource with the highest priority may be specified by the player. For example, when a target virtual character achieves multiple contribution types corresponding to multiple games, multiple virtual incentive resources corresponding to the multiple contribution types are displayed to the player who controls the target virtual character. In response to the player's selection operation of one of the virtual incentive resources, the virtual incentive resource corresponding to the selection operation is set as the virtual incentive resource with the highest priority. By determining the target virtual incentive resource in a manner selected by the player, the fun of participating in a team battle can be further improved and the occurrence of team battles in game matches can be promoted.
[0098] Referring to Fig. 6, Fig. 6 exemplarily illustrates a first flowchart of a virtual incentive resource allocation method according to an embodiment of the present application. The following will be described respectively with reference to the steps illustrated in Fig. 6.
[0099] In S401, a frame synchronization command is generated.
[0100] It should be noted that the game client generates frame synchronization commands in response to the player's control commands, and the frame synchronization commands include action information of the virtual character controlled by the game client that is pending verification.
[0101] In S402, a frame synchronization command is transmitted.
[0102] It should be noted that the server client sends a frame synchronization command to the server.
[0103] In S403, a frame synchronization command is transferred.
[0104] It should be noted that the server transmits frame synchronization commands to each game client in a game match.
[0105] In S404, consistency verification is performed.
[0106] It should be noted that the game client performs consistency checks on received frame synchronization commands.
[0107] In S405, the behavior information is synchronized. It should be noted that, in the game client, if the frame synchronization command passes the consistency verification, the action information is synchronized to the server.
[0108] At S406, at least one contribution type corresponding to the at least one game goal achieved is determined.
[0109] It should be explained that the server determines, based on the behavior information that has passed verification, the achievement status of each virtual character in the target camp during the team battle period with respect to a predetermined game goal, determines at least one achieved game goal based on the achievement status, and further determines at least one contribution type that corresponds one-to-one to the at least one achieved game goal based on the correspondence between the predetermined game goals and the contribution type.
[0110] For example, if the predetermined valid targets are five game objectives, the corresponding contribution types are five contribution types, which are described below respectively.
[0111] For game goal 1, the server determines whether at least three virtual characters in the opposing camp are controlled, and if so, continues to determine whether the control time length exceeds 2s and whether it has caused the blood volume of at least one virtual character in the opposing camp to become 0, and if so, determines that the game goal is achieved and determines that the corresponding contribution type is a trigger for critical control.
[0112] For game goal 2, the server determines whether it has caused preemptive control during the team battle period, and if so, continues to determine whether the number of people participating in the team battle in the opposing camp is greater than 1 and whether it has caused the blood volume of at least one virtual character in the opposing camp to become 0, and if so, determines that the game goal has been achieved and that the corresponding contribution type is a trigger for the formation of an important team.
[0113] For game goal 3, the server determines whether a virtual character in the neutral camp has been shot and killed, and if so, continues to determine whether a virtual character in the hostile camp has caused the loss of more than a predetermined percentage (e.g., 70%) of the blood volume of a virtual character in the neutral camp, and if so, determines that the game goal has been achieved and that the corresponding contribution type is a key capture trigger.
[0114] Regarding game goal 4, the server determines whether the blood volume loss status of the virtual characters in the opposing camp during the team battle reaches a predetermined value or a predetermined percentage, and if so, determines that a large amount of output has occurred during the team battle. In this case, it continues to determine whether the number of people participating in the team battle in the opposing camp is greater than 1 and whether it has caused the blood volume of at least one virtual character in the opposing camp to become 0, and if so, determines that the game goal has been achieved and that the corresponding contribution type is a trigger for an important output.
[0115] For game goal 5, the server determines whether the damage received during the team battle period reaches a predetermined value, and if so, that is, determines that a large amount of damage has been received during the team battle period, in which case it continues to determine whether the number of people participating in the team battle in the opposing camp is greater than 1 and whether it has caused the blood volume of at least one virtual character in the opposing camp to become 0, and if so, determines that the game goal has been achieved and that the corresponding contribution type is a trigger for receiving significant damage.
[0116] Explained, the at least one game objective is at least one of five game objectives and the at least one contribution type is at least one of five contribution types.
[0117] In S407, it is determined whether the number of at least one contribution type is one.
[0118] It should be explained that the server determines the number of contribution types included in the at least one contribution type, determines whether the number is 1, and if so, executes S408; otherwise, executes S409.
[0119] In S408, the virtual reward resource corresponding to the contribution type is set as the target virtual reward resource, and S410 is executed.
[0120] In S409, the virtual incentive resource having the highest determined priority from the virtual incentive resources having one-to-one correspondence with at least one contribution type is determined as a target virtual incentive resource.
[0121] In S410, the information is displayed on a user interface (UI).
[0122] Explained below, the game client displays the target virtual reward resource in the UI.
[0123] In S411, attribute information of the target virtual character is updated according to the target virtual reward resource.
[0124] In an embodiment of the present application, the electronic device determining, based on the action information, contribution information regarding the contributions each virtual character in the target camp has achieved during the team battle period includes, if it determines that the opposing camp includes a deceased virtual character, determining, based on information in the action information relating to the deceased virtual character, contribution information regarding the contributions each virtual character in the target camp has achieved during the team battle period.
[0125] It should be explained that the opposing camp is a camp that is in an antagonistic relationship with the target camp, the dead virtual character is a virtual character that has changed from a living state to a dead state during the team battle period, and the contribution information is intended to represent the degree of correlation between each virtual character in the target camp and the change of the dead virtual character from a living state to a dead state.
[0126] In an embodiment of the present application, after determining that the blood volume of a virtual character in the opposing camp during a team battle period becomes 0 based on the recorded state in the action information, the target camp determines corresponding contribution information based on the participation status in shooting down the virtual character in the opposing camp.
[0127] It should be explained that the participation status includes, in each killing event, participation information such as damage and control inflicted by the virtual character participating in the killing on the virtual character who was killed, damage received by the virtual target who was killed, and treatment provided to the virtual character participating in the killing, among which, a killing event is an event in which a virtual character in the opposing camp is killed.
[0128] In the embodiment of the present application, different weights can be set for each piece of participation information, and the corresponding contribution information can be determined according to the specific value of the participation information. The calculation process of the contribution information is as shown in Equation (1).
[0129] Contribution information = A x damage rate + B x damage received rate + C x control rate + D x healing rate (1)
[0130] Among them, A to D represent weights corresponding to different participation information, and the damage ratio, the damage receiving ratio, the control ratio, and the treatment ratio are contribution information.
[0131] It should be understood that the damage ratio is the ratio of the actual damage that the virtual character in the target camp inflicts on the killed virtual character during the team battle period to the total damage that the killed virtual character receives during the team battle period. For example, if the total damage that the killed virtual character receives during the team battle period is 100 points, among which the virtual character 1 in the target camp inflicts 20 points of actual damage on the killed virtual character, the virtual character 2 inflicts 30 points of actual damage on the killed virtual character, the virtual character 3 inflicts 40 points of actual damage on the killed virtual character, and the virtual character 4 inflicts 10 points of actual damage on the killed virtual character, then the damage ratio of the virtual character 1 in the target camp is 0.2. Similarly, the damage ratio is the ratio of the damage output from the killed virtual character that is received by the virtual character in the target camp during the team battle period to the total damage output from the killed virtual character. The control ratio is the ratio of the time during the team battle during which a virtual character in the target camp controls the killed virtual character to the total time of control over the killed virtual character. The treatment ratio is the ratio of the treatment provided by a virtual character in the target camp to virtual characters who participated in the killing of other virtual characters in the same camp to the total treatment provided to virtual characters who participated in the killing of other virtual characters in the same camp.
[0132] In an embodiment of the present application, the electronic device determining a target virtual character and a target virtual incentive resource corresponding to the target virtual character from at least one virtual character included in the target camp based on the contribution information includes the electronic device determining a virtual character in the target camp with the highest correlation degree as a candidate virtual character based on the correlation degree corresponding to the contribution information, and if the electronic device determines that the virtual character is an assistant of a deceased virtual character, determining the candidate virtual character as a target virtual character and a predetermined virtual incentive resource as a target virtual incentive resource.
[0133] The contribution information in the embodiment of the present application can represent the degree of correlation between at least one virtual character in the target camp and the change of the dead virtual character from the alive state to the dead state, so that the virtual character with the highest correlation degree can be further determined by ordering the correlation degrees. It should be noted that after determining the virtual character with the highest correlation degree, the embodiment of the present application also needs to determine whether the virtual character is an assistant of the dead virtual character, that is, to determine whether the virtual character is not the one who shot and killed the dead virtual character. In the embodiment of the present application, a reward is added for the assistant in the team battle, and a reward is given only to the one who shot and killed, thereby overcoming the shortcoming of "competing for the achievement of the one who shot and killed", maintaining the fairness of the game, and truly promoting teamwork in the game, and promoting the occurrence of team battles.
[0134] Referring to Fig. 7, Fig. 7 exemplarily illustrates a second flowchart of a method for allocating virtual incentive resources according to an embodiment of the present application. As shown in Fig. 7, the method includes S501 to S510. Each step will be described below respectively.
[0135] In S501, a frame synchronization command is generated.
[0136] It should be noted that the game client generates frame synchronization commands in response to the player's control commands, and the frame synchronization commands include action information of the virtual character controlled by the game client that is pending verification.
[0137] In S502, a frame synchronization command is transmitted.
[0138] It should be noted that the game client sends a frame synchronization command to the server.
[0139] In S503, a frame synchronization command is transferred.
[0140] It should be noted that the server transmits frame synchronization commands to each game client in a game match.
[0141] In S504, consistency verification is performed.
[0142] It should be noted that the game client performs consistency verification on the received frame synchronization command, and if the consistency verification is passed, it synchronizes the player's operation command with the server, thereby realizing the synchronization of the action information.
[0143] In S505, action information of each virtual character in the target camp during the team battle period is acquired, and the blood volume of a virtual character in the opposing camp during the game is detected.
[0144] In S506, if it is detected that the blood amount of the virtual character in the enemy camp is 0, it is determined that a dead virtual character has appeared, and the action information of each virtual character in the target camp within a certain period of time before the dead virtual character was shot and killed is back-traced.
[0145] It should be noted that the action information includes the actual damage to the dead virtual character, the damage received, the control time caused, and the treatment given to the friendly virtual character.
[0146] In S507, the contribution information is calculated.
[0147] It should be noted that, for each virtual character in the target camp who participated in killing the dead virtual character, the server calculates the corresponding contribution information according to formula (1).
[0148] For example, if a virtual character who joined the dead virtual character in the target camp is called participant 1, the contribution information corresponding to each participant for N participants is obtained by formula (1). Thereby, participant 1: contribution information 1 = A*damage ratio 1 + B*damage ratio 1 + C*control ratio 1 + D*treatment ratio 1, participant 2: contribution information 2 = A*damage ratio 2 + B*damage ratio 2 + C*control ratio 2 + D*treatment ratio 2, ..., participant N: contribution information N = A*damage ratio N + B*damage ratio N + C*control ratio N + D*treatment ratio N are obtained.
[0149] In S508, the virtual character corresponding to the highest contribution information in the target camp is set as a candidate virtual character.
[0150] In S509, it is determined whether the candidate virtual character is an assistant of the deceased virtual character. If so, S510 is executed.
[0151] In S510, the candidate virtual character is set as a target virtual character, and the predetermined virtual incentive resource is set as a target virtual incentive resource.
[0152] In S511, the target virtual reward resource is displayed on the UI of the game client.
[0153] An embodiment of the present application provides a virtual reward resource allocation device. As shown in Figure 8, the device may include: an action information acquisition module 81, a contribution information acquisition module 82, a reward character determination module 83, and a resource allocation module 84. Specifically, The action information acquisition module 81 is configured to acquire action information of each virtual character in a target camp during a team battle period, the target camp including at least one virtual character, the action information being information on an action given by each virtual character in the target camp to a virtual object receiving the action, the virtual object receiving the action being a virtual character in at least one of the target camp and the opposing camp; The contribution information acquisition module 82 is configured to determine contribution information regarding the contributions made by each virtual character in the target camp during the team battle period based on the behavior information; The incentive character determination module 83 is configured to determine, based on the contribution information, from at least one virtual character included in the target camp, a target virtual character and a target virtual incentive resource corresponding to the target virtual character; The resource allocation module 84 is configured to update attribute information of the target virtual character based on the target virtual incentive resource.
[0154] The virtual incentive resource allocation device according to the embodiment of the present application executes the virtual incentive resource allocation method according to the embodiment of the present application. The virtual incentive resource allocation device according to the embodiment of the present application obtains the behavior information of each virtual character in the target camp during the team battle period, and determines the contribution information on the contributions made by each virtual character in the target camp during the team battle period based on the behavior information, thereby laying the foundation for subsequently flexibly determining the target virtual character and the target virtual incentive resource based on the contribution information. In the prior art, the virtual incentive resource is determined by considering only the behavior of the virtual character, which overcomes the disadvantages that the difference of the virtual incentive resource is small, which causes low willingness to participate in the team battle, long game time, and slow rhythm. Based on the contribution information, the target virtual character and the corresponding target virtual incentive resource are determined from the target camp, and the attribute information of the corresponding target virtual character is updated based on the target virtual incentive resource. The virtual incentive resource can be dynamically allocated based on the behavior of the virtual character in each team battle. It can improve the willingness of players to participate in the team battle, improve the rhythm and enjoyment of the game, relatively reduce the time required for each round of the game, and reduce the processing load of the server.
[0155] In an embodiment of the present application, the virtual incentive resource allocation device includes: a frame synchronization command acquisition module configured to acquire a frame synchronization command generated by each game client participating in the game during the team battle period, the frame synchronization command including verification-waiting action information of the virtual character operated by each game client; a forwarding module configured to transmit the frame synchronization command generated by each of the game clients to other game clients participating in the game, thereby causing each of the clients to perform consistency verification on the received frame synchronization command; The action information acquisition module is further configured to acquire the action information of each virtual character in the target camp during the team battle period based on the received feedback information sent from each game client that passes consistency verification.
[0156] In an embodiment of the present application, the contribution information acquisition module is further configured to determine, based on the action information, the achievement status of each virtual character in the target camp with respect to a predetermined game goal during the team battle period, and determine the achievement status as the contribution information.
[0157] In an embodiment of the present application, the promotion character determination module: A target character determination module configured to determine, based on the achievement status corresponding to the contribution information, a virtual character that has achieved at least one game goal among at least one virtual character included in the target camp as the target virtual character; A candidate resource determination module configured to determine at least one contribution type that corresponds one-to-one to the at least one game goal based on a correspondence between a predetermined game goal and a contribution type, and determine a candidate virtual incentive resource that corresponds one-to-one to the at least one contribution information based on a correspondence between the predetermined contribution type and a virtual incentive resource; and a target resource determination module configured to determine at least one virtual incentive resource determined from the candidate virtual incentive resources as the target virtual incentive resource.
[0158] In an embodiment of the present application, the target resource determination module is further configured to determine the candidate virtual incentive resource as the at least one virtual incentive resource, or to determine the virtual incentive resource with the highest priority among the candidate virtual incentive resources as the at least one virtual incentive resource.
[0159] In an embodiment of the present application, the contribution information acquisition module is further configured to determine, when it is determined that the opposing camp includes a dead virtual character, the contribution information regarding the contributions made by each virtual character in the target camp during the team battle period based on information related to the dead virtual character in the action information, wherein the opposing camp is a camp that is in an antagonistic relationship with the target camp, the dead virtual character is a virtual character that has been changed from a alive state to a dead state during the team battle period, and the contribution information is intended to represent the degree of correlation between each virtual character in the target camp and the change of the dead virtual character from a alive state to a dead state.
[0160] In an embodiment of the present application, the promotion character determination module: A correlation degree ordering module configured to determine a virtual character having the highest correlation degree among at least one virtual character included in the target camp as a candidate virtual character based on the correlation degree corresponding to the contribution information; If it is determined that the virtual character is an assistant to the deceased virtual character, the candidate virtual character is determined as the target virtual character, and a predetermined virtual incentive resource is determined as the target virtual incentive resource.
[0161] In an embodiment of the present application, an electronic device is provided. The electronic device includes a memory and a processor, and at least one program is stored in the memory. When executed by the processor, the electronic device is configured to obtain action information of each virtual character in a target camp during a team battle period, and determine contribution information on the contributions made by each virtual character in the target camp during a team battle period based on the action information, thereby laying a foundation for subsequently flexibly determining a target virtual character and a target virtual incentive resource based on the contribution information. In the prior art, the virtual incentive resource is determined by considering only the actions of the virtual characters, which overcomes the disadvantages that the difference in the virtual incentive resource is small, which causes low willingness to participate in the team battle, long game time, and slow rhythm. Based on the contribution information, a target virtual character and a corresponding target virtual incentive resource are determined from the target camp, and attribute information of the corresponding target virtual character is updated based on the target virtual incentive resource. Based on the actions of the virtual characters in each team battle, the virtual incentive resource can be dynamically allocated. It can improve the willingness of players to participate in the team battle, improve the rhythm and enjoyment of the game, relatively reduce the time required for each round of the game, and reduce the processing load of the server.
[0162] As shown in Fig. 9, the electronic device 4000 shown in Fig. 9 includes a processor 4001 and a memory 4003. Wherein, the processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 400 may further include a transceiver 4004. It should be noted that in practical application, the number of transceivers is not limited to one, and the structure of the electronic device 4000 does not limit the embodiments of the present application.
[0163] The processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in connection with the contents disclosed in the embodiments of the present application. The processor 4001 may be a combination of those that implement computing functions, including, for example, one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0164] The bus 4002 may include paths for transmitting information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For convenience of illustration, only one line is shown in FIG. 9, but this does not represent that there is only one bus or only one type of bus.
[0165] The memory 4003 may be, but is not limited to, a ROM (Read Only Memory) or other type of static storage device capable of storing static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device capable of storing information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage device, an optical disk memory (including compressed optical disks, laser optical disks, optical disks, digital versatile disks, Bluetooth disks, etc.), a magnetic disk storage medium or other magnetic storage medium, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
[0166] The memory 4003 is configured to store and execute the application program code of the present application, and controls the execution by the processor 4001. The processor 4001 is configured to execute the application program code stored in the memory 4003 and realize the virtual incentive resource allocation method according to the embodiment of the present application.
[0167] The embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed on a computer, causes the computer to execute the corresponding content of the embodiment of the method. Obtain action information of each virtual character in a target camp during a team battle period, and determine contribution information on the contributions made by each virtual character in the target camp during a team battle period based on the action information, thereby laying a foundation for subsequently flexibly determining a target virtual character and a target virtual incentive resource based on the contribution information. Overcome the drawback of determining a virtual incentive resource by only considering the actions of a virtual character in the prior art, which causes a small difference in virtual incentive resources, a low willingness to participate in a team battle, a long game time, and a slow rhythm. Based on the contribution information, determine a target virtual character and a corresponding target virtual incentive resource from the target camp, and update the attribute information of the corresponding target virtual character based on the target virtual incentive resource. Based on the actions of the virtual characters in each team battle, the virtual incentive resource can be dynamically allocated. This increases players' motivation to participate in team battles, improves the rhythm and enjoyment of the game, relatively reduces the time required for each round of the game, and reduces the processing load on the server.
[0168] An embodiment of the present application provides a computer program. The computer program includes computer instructions, which are stored in a computer-readable storage medium. When a processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions to make the computer device execute the contents described in the embodiment of the method. Compared with the prior art, the method obtains behavior information of each virtual character in a target camp during a team battle, and determines contribution information on the contributions made by each virtual character in the target camp during a team battle based on the behavior information, thereby laying a foundation for subsequently flexibly determining a target virtual character and a target virtual incentive resource based on the contribution information. The prior art overcomes the disadvantage that the virtual incentive resource is determined by considering only the behavior of the virtual character, which causes the difference of the virtual incentive resource to be small, which leads to low willingness to participate in the team battle, long game time, and slow rhythm. Based on the contribution information, a target virtual character and a corresponding target virtual incentive resource are determined from the target camp, and attribute information of the corresponding target virtual character is updated based on the target virtual incentive resource. According to the actions of the virtual characters in each team battle, the virtual reward resources can be dynamically allocated, which can improve the players' willingness to participate in the team battle, improve the rhythm and enjoyment of the game, relatively reduce the time required for each round of the game, and reduce the processing load of the server.
[0169] Although the steps in the flow charts of the figures are shown in the order indicated by the arrows, it should be understood that the steps are not necessarily performed sequentially in the order indicated by the arrows. Unless otherwise specified herein, the steps are not limited to a strict order of performance. The steps may be performed in other orders. Also, at least some of the steps in Figures 2 and 5 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. These sub-steps or stages are not necessarily performed in the order of performance, but may be performed sequentially or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0170] The above are only some embodiments of the present application. It should be noted that those skilled in the art may make some improvements and modifications without departing from the principles of the present application, and these improvements and modifications shall also fall within the scope of protection of the present application. [Explanation of symbols]
[0171] 40 User Interface 41 Virtual Characters 42 Virtual Characters 81 Behavior Information Acquisition Module 82 Contribution Information Acquisition Module 83 Recommended Character Determination Module 84 Resource Allocation Module 110 Terminal 1 111 Application programs that support virtual environments 112 First User 120 Servers 121 Memory 122 processors 123 User Account Database 124 Battle Service Module 125 I / O Interface 130 Terminal 2 131 Application programs that support virtual environments 132 Second User 501 Annotation Box 502 Annotation Box 503 Annotation Box 4000 electronic equipment 4001 Processor 4002 Bus 4003 Memory 4004 Transmitter / Receiver
Claims
1. A method for allocating virtual incentive resources, the method being performed by an electronic device, comprising: Obtaining a frame synchronization command generated during a team battle by each game client participating in the game; transmitting the frame synchronization command generated by each of the game clients to other game clients participating in the game, thereby causing each of the game clients to perform consistency verification of the received frame synchronization command at predetermined time intervals; Obtaining action information of each virtual character in a target camp during the team battle period based on the feedback information that has passed the consistency verification, the target camp including at least one virtual character, the action information being information regarding an action that each virtual character in the target camp gives to a virtual object that receives the action, the virtual object that receives the action being a virtual character in at least one of the target camp and the opposing camp; determining contribution information regarding the contributions made by each of the virtual characters in the target camp during the team battle period based on the behavior information; Determine a target virtual character and a target virtual incentive resource corresponding to the target virtual character from the at least one virtual character included in the target camp based on the contribution information, and determine different types of virtual incentive resources for different types of contribution types; and updating attribute information of the target virtual character according to the target virtual incentive resource. A method for allocating virtual incentive resources.
2. Determining contribution information regarding the contributions made by each virtual character in the target camp during the team battle period based on the behavior information; determining an achievement status of each virtual character in the target camp with respect to a predetermined game goal during the team battle period based on the action information; determining the achievement status as the contribution information. The method of claim 1 .
3. determining a target virtual character and a target virtual incentive resource corresponding to the target virtual character from at least one virtual character included in the target camp based on the contribution information; determining, as the target virtual character, at least one virtual character included in the target camp that has achieved at least one game goal based on the achievement status corresponding to the contribution information; determining at least one contribution type that corresponds one-to-one to the at least one game objective based on a predetermined correspondence relationship between the game objective and the contribution type; determining a candidate virtual incentive resource that corresponds one-to-one to the at least one piece of contribution information based on a predetermined correspondence relationship between a contribution type and a virtual incentive resource; determining at least one virtual incentive resource determined from the candidate virtual incentive resources as the target virtual incentive resource. The method of claim 2.
4. Before determining at least one virtual incentive resource determined from the candidate virtual incentive resources as the target virtual incentive resource, the method further comprises: determining the candidate virtual incentive resource as the at least one virtual incentive resource; or The method further includes determining a virtual incentive resource having the highest priority among the candidate virtual incentive resources as the at least one virtual incentive resource. The method of claim 3.
5. Determining contribution information regarding the contributions made by each virtual character in the target camp during the team battle period based on the behavior information; when it is determined that the opposing camp includes a dead virtual character, determining the contribution information regarding the contributions made by each virtual character in the target camp during the team battle period based on information in the action information related to the dead virtual character; The hostile camp is a camp that is in an antagonistic relationship with the target camp, the dead virtual character is a virtual character that has changed from a living state to a dead state during the team battle period, and the contribution information is for expressing a degree of correlation between each virtual character in the target camp and the change of the dead virtual character from a living state to a dead state. The method of claim 1 .
6. determining a target virtual character and a target virtual incentive resource corresponding to the target virtual character from at least one virtual character included in the target camp based on the contribution information; determining, as a candidate virtual character, a virtual character having the highest correlation degree among at least one virtual character included in the target camp based on the correlation degree corresponding to the contribution information; When it is determined that the virtual character is an assistant of the deceased virtual character, the candidate virtual character is determined as the target virtual character, and a predetermined virtual incentive resource is determined as the target virtual incentive resource. The method of claim 5.
7. An apparatus for allocating virtual incentive resources, the apparatus comprising: An action information acquisition module configured to acquire action information of each virtual character in a target camp during a team battle period, the target camp including at least one virtual character, the action information being information regarding an action that each virtual character in the target camp gives to a virtual object receiving the action, the virtual object receiving the action being a virtual character in at least one of the target camp and an opposing camp; A contribution information acquisition module configured to determine contribution information on the contributions made by each virtual character in the target camp during the team battle period based on the behavior information; An incentive character determination module configured to determine a target virtual character and a target virtual incentive resource corresponding to the target virtual character from at least one virtual character included in the target camp, characterized in that the incentive character determination module determines different types of virtual incentive resources for different types of contribution types of the contribution information; A resource allocation module configured to update attribute information of the target virtual character according to the target virtual incentive resource; Before acquiring action information of each virtual character in the target camp during the team battle period, the device: Obtaining frame synchronization instructions generated during the team battle by each game client participating in the game; transmitting the frame synchronization command generated by each of the game clients to other game clients participating in the game, thereby causing each of the game clients to perform consistency verification of the received frame synchronization command at predetermined time intervals; Obtaining behavior information of each virtual character in the target camp during the team battle period based on the feedback information that has passed the consistency verification; configured to execute A virtual incentive resource allocation device.
8. An electronic device for allocating virtual incentive resources, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, the electronic device realizing the virtual incentive resource allocation method described in any one of claims 1 to 6 when the processor executes the computer program.
9. A computer program causing a processor to implement the method for allocating virtual incentive resources according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for automatically recording group battle event, equipment and storage medium
CN111346375A
Game resource allocation method and device, storage medium and electronic device
CN112337089A
Program and method of controlling social game system
JP2015002953A
Game program, and game server and method for providing battle game
JP2017000237A
Game system and program
JP2017056074A
