Role interaction control method and device, computer equipment and storage medium

文档序号:623979 发布日期:2021-05-11 浏览:30次 中文

阅读说明:本技术 角色交互控制方法、装置、计算机设备以及存储介质 (Role interaction control method and device, computer equipment and storage medium ) 是由 韩鹏程 董兆喆 于 2021-01-22 设计创作,主要内容包括:本公开提供了一种角色交互控制方法、装置、计算机设备以及存储介质,该方法包括:响应多个第一虚拟角色对第二虚拟角色的攻击触发事件,将多个第一虚拟角色进行集合划分,得到多个角色集合,其中,角色集合包括至少两个第一虚拟角色;针对多个角色集合中的各角色集合,确定在目标交互周期内角色集合中符合发起交互动作条件的目标第一虚拟角色;控制确定出的目标第一虚拟角色攻击第二虚拟角色。通过上述方法可以有效地限制同时对第二虚拟角色发起攻击的第一虚拟角色的数量,使得画面内容简洁有序,既可以有效提升游戏内容的观感,又可以有效降低用户对于游戏内容的精力消耗,有利于为用户对场面进行有效判断和提供良好的操作环境。(The present disclosure provides a role interaction control method, apparatus, computer device and storage medium, the method comprising: responding to an attack triggering event of a plurality of first virtual roles to a second virtual role, and performing set division on the plurality of first virtual roles to obtain a plurality of role sets, wherein the role sets comprise at least two first virtual roles; determining a target first virtual role which accords with the condition of initiating an interactive action in a role set in a target interaction period aiming at each role set in a plurality of role sets; and controlling the determined target first virtual role to attack the second virtual role. The method can effectively limit the number of the first virtual roles which attack the second virtual role simultaneously, so that the picture content is simple and ordered, the impression of the game content can be effectively improved, the energy consumption of the user on the game content can be effectively reduced, and the method is favorable for effectively judging the scene and providing a good operating environment for the user.)

1. A character interaction control method, the method comprising:

responding to an attack triggering event of a plurality of first virtual roles to a second virtual role, and performing set division on the plurality of first virtual roles to obtain a plurality of role sets, wherein the role sets comprise at least two first virtual roles;

determining a target first virtual role which accords with the condition of initiating an interactive action in the role set in a target interaction period aiming at each role set in the plurality of role sets;

and controlling the determined target first virtual role to attack the second virtual role.

2. The method of claim 1, wherein the set partitioning the first virtual roles into a plurality of role sets comprises:

determining attribute information of each first virtual role in the plurality of first virtual roles;

according to the attribute information of each first virtual role, carrying out set division on the plurality of first virtual roles to obtain a plurality of role sets;

wherein the attribute information includes at least one of a role type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

3. The method of claim 1, wherein the determining, for each of the character sets, a target first virtual character in the character set meeting the condition of initiating the interaction action in a target interaction period comprises:

for each role set in the plurality of role sets, determining a comprehensive weight of each first virtual role in the role sets, which can act in the target interaction period;

and determining the target first virtual roles which accord with the condition of initiating the interactive action in the role set in the target interactive period according to the comprehensive weight of each first virtual role.

4. The method of claim 3, wherein determining the composite weight that each first virtual character in the set of characters can act in the target interaction period comprises:

taking the target interaction period as a current interaction period, and acquiring the comprehensive weight of each first virtual character in the character set and the weight gain of each first virtual character when the previous interaction period of the current interaction period is finished;

determining the comprehensive weight of each first virtual character in the current interaction period based on the comprehensive weight of each first virtual character and the weight gain of each first virtual character;

and determining the comprehensive weight of each first virtual character in the current interaction period as the comprehensive weight of each first virtual character in the target interaction period.

5. The method of claim 3, wherein determining the composite weight that each first virtual character in the set of characters can act in the target interaction period comprises:

when the target interaction period is a first interaction period, configuring an initial weight for each first virtual role according to the attribute information of each first virtual role in the role set;

taking the initial weight of each first virtual role as the comprehensive weight of each first virtual role in the target interaction period;

wherein the attribute information includes at least one of a role type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

6. The method of claim 3, wherein after the determining a target first virtual character of the set of characters that meets the conditions for initiating the interaction within the target interaction period, the method further comprises:

after the at least one first virtual character attacks the second virtual character, resetting the comprehensive weight of each first virtual character in the at least one first virtual character to be a preset weight, wherein the preset weight comprises an initial weight and a preset fixed weight;

and taking the preset weight of each first virtual role in the at least one first virtual role as the comprehensive weight of each first virtual role in the at least one first virtual role at the end of the target interaction period.

7. The method according to claim 3, wherein the determining, according to the comprehensive weight of each first virtual character, a target first virtual character in the character set meeting the condition of initiating the interaction action in the target interaction period comprises:

sequencing each first virtual role in the role set according to the sequence of the comprehensive weight from high to low;

and determining the first virtual roles ranked in the role set in the preset number as target first virtual roles meeting the condition of initiating the interactive action.

8. The method according to claim 3, wherein the determining, according to the comprehensive weight of each first virtual character, a target first virtual character in the character set meeting the condition of initiating the interaction action in the target interaction period comprises:

determining a first virtual role of which the comprehensive weight exceeds a preset weight threshold in the role set;

and determining the first virtual character with the corresponding comprehensive weight exceeding a preset weight threshold value as a target first virtual character according with the condition of initiating the interactive action.

9. The method according to any one of claims 1 to 8, wherein the controlling the determined target first virtual character to attack the second virtual character comprises:

configuring a participation identifier for each determined target first virtual role;

and controlling the target first virtual character configured with the participation identification to attack the second virtual character.

10. The method of claim 9, wherein after the controlling determines that the target first avatar attacks the second avatar, the method further comprises:

and when any one target first virtual character configured with the participation identification accords with the participation identification recycling condition, the participation identification of the target first virtual character which accords with the participation identification recycling condition is recycled.

11. The method of claim 10, wherein the determination that the target first virtual character configured with the engagement indicator meets an engagement indicator recovery condition is made by:

for each target first virtual character configured with the participation identification, when the target first virtual character dies, determining that the dead target first virtual character meets the participation identification recovery condition;

for each target first virtual character configured with the participation identifier, when the target first virtual character is knocked off or knocked down, determining that the knocked off or knocked down target first virtual character meets the participation identifier recovery condition;

and aiming at the target first virtual character configured with the participation identifier, when the attack task of the target first virtual character is finished, determining that the target first virtual character with the finished attack task accords with the participation identifier recovery condition.

12. A character interaction control apparatus, characterized in that the apparatus comprises:

the system comprises a set dividing module, a first role dividing module and a second role dividing module, wherein the set dividing module is used for responding to an attack triggering event of a plurality of first virtual roles to a second virtual role and performing set division on the plurality of first virtual roles to obtain a plurality of role sets, and each role set comprises at least two first virtual roles;

the target determining module is used for determining a target first virtual role which accords with the condition of initiating the interactive action in the role set in a target interaction period aiming at each role set in the plurality of role sets;

and the attack execution module is used for controlling the determined target first virtual role to attack the second virtual role.

13. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the computer device is run, the machine-readable instructions when executed by the processor performing the steps of the character interaction control method according to any one of claims 1 to 11.

14. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the character interaction control method according to any one of claims 1 to 11.

Technical Field

The present disclosure relates to the field of computer technologies, and in particular, to a role interaction control method and apparatus, a computer device, and a storage medium.

Background

In some usage scenarios of interactive applications, a device is required to control the display of interface content. Especially for some applications, such as game applications, that add virtual characters to enrich interactive content, some system virtual characters are usually set to interact with virtual characters controlled by players, so as to improve the interactivity and playability of the game applications, such as massively Multiplayer Online games (MMOs), in the game applications, the system virtual characters are controlled by servers, and most of the servers set fixed attribute information for the system virtual characters to realize the actions of the virtual characters, so as to realize the interaction with the virtual characters controlled by players.

In the game process, a plurality of virtual characters (NPC, monsters, etc.) often attack one virtual character (such as a character controlled by a user), for example, a character controlled by a player triggers hate of a plurality of monsters, resulting in being attacked by a plurality of monsters, when the number of the attacking virtual characters is too large, the picture content is disordered, the scene content is complex, not only the impression of the game content is affected, but also more energy of the player is consumed, etc., so as to cope with the complex scene, and the operation judgment and operability of the user are easily affected.

Disclosure of Invention

The embodiment of the disclosure at least provides a role interaction control method, a role interaction control device, computer equipment and a storage medium.

In a first aspect, an embodiment of the present disclosure provides a role interaction control method, where the method includes:

responding to an attack triggering event of a plurality of first virtual roles to a second virtual role, and performing set division on the plurality of first virtual roles to obtain a plurality of role sets, wherein the role sets comprise at least two first virtual roles;

determining a target first virtual role which accords with the condition of initiating an interactive action in the role set in a target interaction period aiming at each role set in the plurality of role sets;

and controlling the determined target first virtual role to attack the second virtual role.

In a possible implementation manner, the set dividing the plurality of first virtual roles to obtain a plurality of role sets includes:

determining attribute information of each first virtual role in the plurality of first virtual roles;

according to the attribute information of each first virtual role, carrying out set division on the plurality of first virtual roles to obtain a plurality of role sets;

wherein the attribute information includes at least one of a role type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

In a possible embodiment, the determining, for each of the character sets, a target first virtual character in the character set meeting the condition of initiating the interactive action in a target interaction period includes:

for each role set in the plurality of role sets, determining a comprehensive weight of each first virtual role in the role sets, which can act in the target interaction period;

and determining the target first virtual roles which accord with the condition of initiating the interactive action in the role set in the target interactive period according to the comprehensive weight of each first virtual role.

In one possible embodiment, the determining the comprehensive weight that each first virtual character in the character set can act in the target interaction period includes:

taking the target interaction period as a current interaction period, and acquiring the comprehensive weight of each first virtual character in the character set and the weight gain of each first virtual character when the previous interaction period of the current interaction period is finished;

determining the comprehensive weight of each first virtual character in the current interaction period based on the comprehensive weight of each first virtual character and the weight gain of each first virtual character;

and determining the comprehensive weight of each first virtual character in the current interaction period as the comprehensive weight of each first virtual character in the target interaction period.

In one possible embodiment, the determining the comprehensive weight that each first virtual character in the character set can act in the target interaction period includes:

when the target interaction period is a first interaction period, configuring an initial weight for each first virtual role according to the attribute information of each first virtual role in the role set;

taking the initial weight of each first virtual role as the comprehensive weight of each first virtual role in the target interaction period;

wherein the attribute information includes at least one of a role type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

In one possible embodiment, after the determining the target first virtual character in the character set meeting the condition of initiating the interactive action in the target interaction period, the method further comprises:

after the at least one first virtual character attacks the second virtual character, resetting the comprehensive weight of each first virtual character in the at least one first virtual character to be a preset weight, wherein the preset weight comprises an initial weight and a preset fixed weight;

and taking the preset weight of each first virtual role in the at least one first virtual role as the comprehensive weight of each first virtual role in the at least one first virtual role at the end of the target interaction period.

In a possible implementation manner, the determining, according to the comprehensive weight of each first virtual character, a target first virtual character in the character set meeting the condition of initiating the interactive action in a target interaction period includes:

sequencing each first virtual role in the role set according to the sequence of the comprehensive weight from high to low;

and determining the first virtual roles ranked in the role set in the preset number as target first virtual roles meeting the condition of initiating the interactive action.

In a possible implementation manner, the determining, according to the comprehensive weight of each first virtual character, a target first virtual character in the character set meeting the condition of initiating the interactive action in a target interaction period includes:

determining a first virtual role of which the comprehensive weight exceeds a preset weight threshold in the role set;

and determining the first virtual character with the corresponding comprehensive weight exceeding a preset weight threshold value as a target first virtual character according with the condition of initiating the interactive action.

In a possible implementation manner, the controlling that the determined target first virtual character attacks the second virtual character includes:

configuring a participation identifier for each determined target first virtual role;

and controlling the target first virtual character configured with the participation identification to attack the second virtual character.

In a possible implementation manner, after the controlling determines that the target first virtual character attacks the second virtual character, the method further includes:

and when any one target first virtual character configured with the participation identification accords with the participation identification recycling condition, the participation identification of the target first virtual character which accords with the participation identification recycling condition is recycled.

In one possible implementation, it is determined that the target first virtual character configured with the engagement indicator meets an engagement indicator recovery condition by:

for each target first virtual character configured with the participation identification, when the target first virtual character dies, determining that the dead target first virtual character meets the participation identification recovery condition;

for each target first virtual character configured with the participation identifier, when the target first virtual character is knocked off or knocked down, determining that the knocked off or knocked down target first virtual character meets the participation identifier recovery condition;

and aiming at the target first virtual character configured with the participation identifier, when the attack task of the target first virtual character is finished, determining that the target first virtual character with the finished attack task accords with the participation identifier recovery condition.

In a second aspect, an embodiment of the present disclosure provides a character interaction control apparatus, including:

the system comprises a set dividing module, a first role dividing module and a second role dividing module, wherein the set dividing module is used for responding to an attack triggering event of a plurality of first virtual roles to a second virtual role and performing set division on the plurality of first virtual roles to obtain a plurality of role sets, and each role set comprises at least two first virtual roles;

the target determining module is used for determining a target first virtual role which accords with the condition of initiating the interactive action in the role set in a target interaction period aiming at each role set in the plurality of role sets;

and the attack execution module is used for controlling the determined target first virtual role to attack the second virtual role.

In a possible implementation manner, when the set partitioning module is configured to perform set partitioning on the plurality of first virtual roles to obtain a plurality of role sets, the set partitioning module is specifically configured to:

determining attribute information of each first virtual role in the plurality of first virtual roles;

according to the attribute information of each first virtual role, carrying out set division on the plurality of first virtual roles to obtain a plurality of role sets;

wherein the attribute information includes at least one of a role type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

In a possible implementation manner, the target determining module, when configured to determine, for each of the plurality of character sets, a target first virtual character in the character set meeting the condition of initiating the interactive action in a target interaction period, is specifically configured to:

for each role set in the plurality of role sets, determining a comprehensive weight of each first virtual role in the role sets, which can act in the target interaction period;

and determining the target first virtual roles which accord with the condition of initiating the interactive action in the role set in the target interactive period according to the comprehensive weight of each first virtual role.

In a possible implementation manner, the target determination module, when configured to determine the comprehensive weight that each first virtual character in the character set can act in the target interaction period, is specifically configured to:

taking the target interaction period as a current interaction period, and acquiring the comprehensive weight of each first virtual character in the character set and the weight gain of each first virtual character when the previous interaction period of the current interaction period is finished;

determining the comprehensive weight of each first virtual character in the current interaction period based on the comprehensive weight of each first virtual character and the weight gain of each first virtual character;

and determining the comprehensive weight of each first virtual character in the current interaction period as the comprehensive weight of each first virtual character in the target interaction period.

In a possible implementation manner, the target determination module, when configured to determine the comprehensive weight that each first virtual character in the character set can act in the target interaction period, is specifically configured to:

when the target interaction period is a first interaction period, configuring an initial weight for each first virtual role according to the attribute information of each first virtual role in the role set;

taking the initial weight of each first virtual role as the comprehensive weight of each first virtual role in the target interaction period;

wherein the attribute information includes at least one of a role type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

In one possible embodiment, the goal determination module is further configured to:

after the at least one first virtual character attacks the second virtual character, resetting the comprehensive weight of each first virtual character in the at least one first virtual character to be a preset weight, wherein the preset weight comprises an initial weight and a preset fixed weight;

and taking the preset weight of each first virtual role in the at least one first virtual role as the comprehensive weight of each first virtual role in the at least one first virtual role at the end of the target interaction period.

In a possible implementation manner, when the target determining module is configured to determine, according to the comprehensive weight of each first virtual character, a target first virtual character in the character set meeting the condition of initiating the interactive action in the target interaction period, the target determining module is specifically configured to:

sequencing each first virtual role in the role set according to the sequence of the comprehensive weight from high to low;

and determining the first virtual roles ranked in the role set in the preset number as target first virtual roles meeting the condition of initiating the interactive action.

In a possible implementation manner, when the target determining module is configured to determine, according to the comprehensive weight of each first virtual character, a target first virtual character in the character set meeting the condition of initiating the interactive action in the target interaction period, the target determining module is specifically configured to:

determining a first virtual role of which the comprehensive weight exceeds a preset weight threshold in the role set;

and determining the first virtual character with the corresponding comprehensive weight exceeding a preset weight threshold value as a target first virtual character according with the condition of initiating the interactive action.

In a possible implementation manner, when the attack execution module is configured to control the determined target first virtual character to attack the second virtual character, the attack execution module is specifically configured to:

configuring a participation identifier for each determined target first virtual role;

and controlling the target first virtual character configured with the participation identification to attack the second virtual character.

In one possible implementation, the apparatus further includes an identity recovery module configured to: and when any one target first virtual character configured with the participation identification accords with the participation identification recycling condition, the participation identification of the target first virtual character which accords with the participation identification recycling condition is recycled.

In one possible implementation, the identifier recycling module is configured to determine that the target first virtual character configured with the engagement identifier meets an engagement identifier recycling condition by:

for each target first virtual character configured with the participation identification, when the target first virtual character dies, determining that the dead target first virtual character meets the participation identification recovery condition;

for each target first virtual character configured with the participation identifier, when the target first virtual character is knocked off or knocked down, determining that the knocked off or knocked down target first virtual character meets the participation identifier recovery condition;

and aiming at the target first virtual character configured with the participation identifier, when the attack task of the target first virtual character is finished, determining that the target first virtual character with the finished attack task accords with the participation identifier recovery condition.

In a third aspect, embodiments of the present disclosure provide a computer device, including a processor, a memory, and a bus; the memory stores machine-readable instructions executable by the processor, the processor and the memory communicate via a bus when the computer device is running, and the machine-readable instructions, when executed by the processor, perform the steps of the first aspect, or any one of the possible character interaction control methods of the first aspect.

In a fourth aspect, the disclosed embodiments provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the first aspect described above, or any one of the possible role interaction control methods in the first aspect.

The role interaction control method, the role interaction control device, the computer equipment and the storage medium provided by the embodiment of the disclosure respond to an attack trigger event of a plurality of first virtual roles to a second virtual role, and perform set division on the plurality of first virtual roles to obtain a plurality of role sets, wherein each role set comprises at least two first virtual roles; determining a target first virtual role which accords with the condition of initiating an interactive action in a role set in a target interaction period aiming at each role set in a plurality of role sets; and controlling the determined target first virtual role to attack the second virtual role.

Therefore, the attack authority of the first virtual character in each character set for the second virtual character is managed by taking the character set as a unit, and for each character set, the first virtual character capable of being attacked in the target interaction period is determined in the character set through the preset interaction action conditions, so that a plurality of first virtual characters can attack the second virtual character in order, the number of the first virtual characters attacking the second virtual character simultaneously is effectively limited, the picture content is concise and ordered, the impression of the game content can be effectively improved, the energy consumption of a user for the game content can be effectively reduced, and the method is favorable for effectively judging the scene and providing a good operation environment for the user.

In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.

Fig. 1 is a flowchart of a role interaction control method according to an embodiment of the present disclosure;

FIG. 2 is a flowchart of another method for controlling role interaction according to an embodiment of the present disclosure;

fig. 3 is a schematic diagram of a character interaction control apparatus according to an embodiment of the present disclosure;

fig. 4 is a second schematic diagram of a character interaction control apparatus according to an embodiment of the present disclosure;

fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.

The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.

Research shows that in the use scene of some interactive applications, the device is required to control the display of the interface content. Especially for some applications, such as game applications, that add virtual characters to enrich interactive content, some system virtual characters are usually set to interact with virtual characters controlled by players, so as to improve the interactivity and playability of the game applications, such as massively Multiplayer Online games (MMOs), in the game applications, the system virtual characters are controlled by servers, and most of the servers set fixed attribute information for the system virtual characters to realize the actions of the virtual characters, so as to realize the interaction with the virtual characters controlled by players.

In the game process, a plurality of virtual characters (NPC, monsters, etc.) often attack one virtual character (such as a character controlled by a user), for example, a character controlled by a player triggers hate of a plurality of monsters, resulting in being attacked by a plurality of monsters, when the number of the attacking virtual characters is too large, the picture content is disordered, the scene content is complex, not only the impression of the game content is affected, but also more energy of the player is consumed, etc., so as to cope with the complex scene, and the operation judgment and operability of the user are easily affected.

Based on the research, the present disclosure provides a role interaction control method, which responds to an attack trigger event of a plurality of first virtual roles to a second virtual role, and performs set division on the plurality of first virtual roles to obtain a plurality of role sets, wherein a role set includes at least two first virtual roles; determining a target first virtual role which accords with the condition of initiating an interactive action in a role set in a target interaction period aiming at each role set in a plurality of role sets; and controlling the determined target first virtual role to attack the second virtual role.

Therefore, the attack authority of the first virtual character in each character set for the second virtual character is managed by taking the character set as a unit, and for each character set, the first virtual character capable of being attacked in the target interaction period is determined in the character set through the preset interaction action conditions, so that a plurality of first virtual characters can attack the second virtual character in order, the number of the first virtual characters attacking the second virtual character simultaneously is effectively limited, the picture content is concise and ordered, the impression of the game content can be effectively improved, the energy consumption of a user for the game content can be effectively reduced, and the method is favorable for effectively judging the scene and providing a good operation environment for the user.

The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.

To facilitate understanding of the present embodiment, first, a role interaction control method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the role interaction control method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, and the computer device includes, for example: a terminal device, which may be a User Equipment (UE), a mobile device, a User terminal device, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or a server or other processing device. In some possible implementations, the character interaction control method may be implemented by a processor calling computer-readable instructions stored in a memory.

The following describes a role interaction control method provided by the embodiment of the present disclosure, taking an execution subject as a terminal device as an example.

Referring to fig. 1, a flowchart of a character interaction control method provided in the embodiment of the present disclosure is shown, where the method includes steps S110 to S130, where:

s110: responding to an attack trigger event of the plurality of first virtual roles to the second virtual role, and performing set division on the plurality of first virtual roles to obtain a plurality of role sets.

The game scene of the embodiment of the present disclosure includes a plurality of virtual characters, which include a Player virtual Character controlled by a game Player, and also includes other characters besides the Player virtual Character, which may include Non-Player characters (NPCs), monsters, and the like. Here, the player virtual character may be the second virtual character, and at least one other character (e.g., NPC and/or monster) than the player virtual character may be the first virtual character.

After detecting the attack trigger event, the terminal device may perform set division on the plurality of first virtual roles to obtain a plurality of role sets. It should be noted here that each role set may include at least two first virtual roles. After the plurality of role sets are obtained, the plurality of first virtual roles can attack the second virtual role in the following steps by taking the role sets as units.

In the embodiment of the present disclosure, a plurality of first virtual roles may be set-divided in a plurality of set-dividing manners. For example, a random set division can be performed on the plurality of first virtual roles in a random division manner; or, the game player can perform set division operation for a plurality of first virtual characters based on the terminal device based on own needs or preferences, and the terminal device performs set division for the plurality of first virtual characters in response to the set division operation of the game player; alternatively, the terminal device may group the plurality of first virtual characters according to attribute information of each first virtual character.

In the embodiment of the present disclosure, the attribute information of the first virtual character may include at least one of a character type, an attack frequency, an attack distance type, an attack effect, and a moving speed. The terminal device can determine attribute information of each first virtual role in the plurality of first virtual roles; and according to the attribute information of each first virtual role, performing set division on the plurality of first virtual roles to obtain a plurality of role sets. That is, the terminal device may perform set division on the basis of at least one of a role type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

In the following, the attribute information is taken as the role type, and a partial manner of performing set division according to the role type is described, wherein the role type at least may include a BOSS type, an elite type, and a normal type.

Alternatively, the first virtual roles having the same role type may be divided into a set division, that is, the role types of the first virtual roles in each role set are the same. For example, the first virtual character of BOSS type among the plurality of first virtual characters is divided into a character set, the first virtual character of elite type among the plurality of first virtual characters is divided into a character set, and the first virtual character of ordinary type among the plurality of first virtual characters is divided into a character set.

Alternatively, to ensure the balance of the character sets to a large extent, each character set may include a first virtual character of at least two character types. For example, the plurality of first virtual characters are set-divided based on the occupation ratio of the first virtual characters of each desired character type in each character set. It is assumed that each character set is defined to include a first virtual character of a BOSS type, at least one first virtual character of an elite type, and at least two first virtual characters of a general type. The plurality of first virtual characters may be grouped together according to a condition of a character type that the first virtual character needs to satisfy in the predetermined character group.

In the following, by taking the attribute information as an attack distance type as an example, a partial manner of set division according to the attack distance type is described, where the attack distance type at least may include a long-range attack and a short-range attack.

Optionally, the first virtual roles with the same attack distance type may be divided into one role set, that is, the attack distance types of the first virtual roles in each role set are the same. For example, a first virtual character of a remote attack among the plurality of first virtual characters is divided into one character set, and a first virtual character of a short attack among the plurality of first virtual characters is divided into one character set.

In the following, a partial manner of performing set division according to the role type and the attack distance type is described by taking the attribute information as the role type and the attack distance type as an example.

Optionally, each role set may include a first virtual role of at least two role types, and the attack distance types of the first virtual roles in each role set are the same. For example, the plurality of first virtual characters are grouped into sets based on the expected occupation ratio of the first virtual characters of the character types in each character set, and the attack distance types of the first virtual characters in the character sets are the same. It is assumed that each character set is defined to include a first virtual character of a BOSS type, at least one first virtual character of an elite type, and at least two first virtual characters of a general type, and attack distance types of all the first virtual characters in the character set are both long-range attacks or both short-range attacks. The plurality of first virtual roles may be grouped together according to conditions of the role type and the attack distance type that the first virtual role needs to satisfy in the above-specified role set.

It is to be understood that the set division manner is not limited to the above-mentioned exemplary manner, and other set division manners are not specifically described here.

In one possible implementation, the plurality of virtual characters in the game scene may further include a third virtual character that does not participate in attacking the second virtual character. In the process of performing set division on the plurality of first virtual roles to obtain a plurality of role sets, at least two first virtual roles and at least one third virtual role can be divided into one role set.

Taking the role set 1 as an example, the role set 1 includes 3 virtual roles, and the 3 virtual roles are virtual role m1, virtual role m2, and virtual role m3, respectively, where virtual role m1 and virtual role m2 are first virtual roles, and virtual role m3 is a third virtual role. The game scene also comprises a virtual character p1 and a virtual character p2, wherein the virtual character p1 is a second virtual character. Within the target interaction period, for the 3 first virtual characters in character set 1, virtual character m1 and virtual character m2 may be used at least to attack virtual character p1, and virtual character m3 may be used only to possess attacking virtual character p 2.

It should be noted that the third virtual character in the character set does not affect the subsequent process of determining the target first virtual character and controlling the target first virtual character to attack the second virtual character.

S120: and determining a target first virtual role which accords with the condition of initiating the interactive action in the role set in the target interaction period aiming at each role set in the plurality of role sets.

It should be noted that, the process of determining the target first virtual character in each character set in the target interaction period is the same. In this step, a process of determining the target first virtual character is described by taking a role set as an example, and it should be understood that each first virtual character in this step is a first virtual character in the same role set.

In order to facilitate the description and understanding of the scheme, the embodiment of the present disclosure defines the first virtual character in the character set, which meets the condition of initiating the interactive action, as the target first virtual character. Here, when the first avatar meets the interaction condition, it indicates that the first avatar can participate in attacking the second avatar in the target interaction period.

In this step, whether the first virtual character in the character set meets the condition for initiating the interactive action may be determined in various ways.

Optionally, attribute information of a first virtual character in the character set, which needs to participate in attacking the second virtual character in each interaction period, may be predefined. And determining the target first virtual role which accords with the condition of initiating the interactive action in the role set according to the attribute information of the first virtual role which needs to participate in attacking the second virtual role in the target interaction period in the role set.

Taking the attribute information as the role type as an example, the following can be specified in advance: in a first interaction period, a BOSS type first virtual role in a role set is required to participate in attacking a second virtual role; in a second interaction period, a common first virtual role in the role set is required to participate in attacking a second virtual role; in the third interaction period, the first virtual character of the elite type and the first virtual character of the common type in the character set are required to participate in attacking the second virtual character.

When the target interaction period is the first interaction period, the BOSS-type first virtual character in the character set may be determined as the target first virtual character that meets the condition of initiating the interaction action.

When the target interaction period is the second interaction period, the common type first virtual character in the character set can be determined as the target first virtual character which accords with the condition of initiating the interaction action.

When the target interaction period is the third interaction period, the elite-type first virtual character and the common-type first virtual character in the character set can be determined as the target first virtual character meeting the condition of initiating the interaction action.

Optionally, before the target first virtual character is determined, a comprehensive weight capable of acting may be configured for the first virtual character, and the target first virtual character meeting the condition of initiating the interactive action in the character set is determined according to the comprehensive weight of the first virtual character.

In the embodiment of the disclosure, for each role set in a plurality of role sets, determining a comprehensive weight of each first virtual role in the role set, which can act in a target interaction period; and determining the target first virtual roles which accord with the condition of initiating the interactive action in the role set in the target interactive period according to the comprehensive weight of each first virtual role.

Optionally, the target first virtual role may be determined according to a magnitude relationship between the comprehensive weights of the first virtual roles; alternatively, the target first virtual character may be determined according to a magnitude relationship between the comprehensive weight of each first virtual character and a preset value.

In a possible implementation manner of the present disclosure, the first virtual roles in the role set may be sorted in an order from high to low of the integrated weight; and determining the first virtual roles ranked in the role set in the preset number as target first virtual roles meeting the condition of initiating the interactive action. For example, the preset number is set to 3, and the first virtual character ranked at the top 3 in the character set can be determined as the target first virtual character meeting the condition of initiating the interactive action.

The preset number may be determined according to actual design requirements, and of course, an upper limit number of the first virtual characters capable of participating in attacking the second virtual character in one interaction period may also be preset for each character set, and the preset number is not greater than the upper limit number. For example, if the upper limit number is set to 4, the preset number may be an integer within 4.

In one possible implementation manner of the present disclosure, a first virtual character of which the integrated weight exceeds a preset weight threshold in the character set may be determined; and determining the first virtual character with the corresponding comprehensive weight exceeding a preset weight threshold value as a target first virtual character meeting the condition of initiating the interactive action. The preset weight threshold may be determined according to actual design requirements, and for example, if the preset weight threshold is set to 30, the first virtual character whose corresponding integrated weight exceeds 30 may be determined as the target first virtual character meeting the condition of initiating the interactive action.

It is to be understood that the manner of determining the target first avatar according to the integrated weight is not limited to the above-mentioned manner, and other manners of determining the target first avatar according to the integrated weight are not specifically described here.

The following describes a specific process for determining the comprehensive weight of each first virtual character in the character set in the target interaction period.

Prior to determining the target first virtual character, the first virtual character may be configured with integrated weights capable of action. Specifically, when the target interaction period is a first interaction period, configuring an initial weight for each first virtual character according to the attribute information of each first virtual character in the character set; and taking the initial weight of each first virtual character as the comprehensive weight of each first virtual character in the target interaction period.

The attribute information includes at least one of a character type, an attack frequency, an attack distance type, an attack effect, and a moving speed. In order to ensure that the target first virtual character is distinguished from the first virtual characters in the character set, the initial weights of at least two first virtual characters in the character set may be different, and thus the initial weights of the first virtual characters having different attribute information may be different. When the attribute information of each first virtual character in the character set is the same, different initial weights can be randomly assigned to each first virtual character.

It is to be understood that the initial weight may be configured for each first virtual character based on at least one of a character type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

In the following, the attribute information is taken as the role type, and a partial way of performing initial weight configuration according to the role type is described, wherein the role type at least may include a BOSS type, an elite type, and a normal type.

Alternatively, the first virtual character of BOSS type may be configured with the highest initial weight, and the first virtual character of normal type may be configured with the lowest initial weight, and the initial weight configured by the first virtual character of elite type is between the initial weight of the first virtual character of BOSS type and the initial weight of the first virtual character of normal type.

For example, the initial weight of the first avatar of the BOSS type is set to 40, the initial weight of the first avatar of the elite type is set to 20, and the initial weight of the first avatar of the normal type is set to 10. Taking the first avatar a as an example, the role type of the first avatar a is BOSS type, and the initial weight of the first avatar a may be set to 40.

In the following, a partial way of performing initial weight allocation according to the moving speed will be described by taking the attribute information as the moving speed as an example.

It will be appreciated that a first avatar moving faster will typically reach a location near a second avatar in a shorter amount of time, thereby preferentially attacking the second avatar. Therefore, for the first virtual role with higher moving speed, higher initial weight can be configured; for the first avatar that moves slower, a lower initial weight may be configured.

Alternatively, the moving speed may be divided into a plurality of speed interval levels, each speed interval level corresponds to a different initial weight, and the initial weight of each first virtual character may be determined according to the speed interval level to which the moving speed of each first virtual character belongs. For example, a first speed section level, a second speed section level, and a third speed section level may be set. Wherein, the speed range corresponding to the first speed interval grade is 1m/s to 3m/s, and the initial weight corresponding to the first speed interval grade is 5; the speed range corresponding to the second speed interval grade is 3m/s to 6m/s, and the initial weight corresponding to the second speed interval grade is 10; the speed corresponding to the third speed interval level is more than 6m/s, and the initial weight corresponding to the third speed interval level is 15.

Taking the first avatar a as an example, the moving speed of the first avatar a is 4m/s, and therefore, the moving speed of the first avatar a belongs to the second speed interval level, and the initial weight of the first avatar a may be set to 10.

In the following, a partial way of performing initial weight configuration according to the role type and the movement speed is described by taking the attribute information as the role type and the movement speed as an example.

Optionally, each role type corresponds to a different first weight; the moving speed may be divided into a plurality of speed section levels, and each of the speed section levels may correspond to a different second weight. The initial weight of the first virtual character is determined based on a first weight corresponding to the character type of the first virtual character and a second weight corresponding to the speed interval level to which the moving speed of the first virtual character belongs. For example, the sum of the first weight and the second weight of the first avatar may be used as the initial weight of the first avatar, or the average of the first weight and the second weight of the first avatar may be used as the initial weight of the first avatar.

For example, the first weight of the first avatar of BOSS type is set to 40, the first weight of the first avatar of elite type is set to 20, and the first weight of the first avatar of normal type is set to 10. A first speed interval level, a second speed interval level and a third speed interval level may be set. Wherein, the speed range corresponding to the first speed interval grade is 1m/s to 3m/s, and the second weight corresponding to the first speed interval grade is 5; the speed range corresponding to the second speed interval grade is 3m/s to 6m/s, and the second weight corresponding to the second speed interval grade is 10; the speed range corresponding to the third speed interval level is greater than 6m/s, and the second weight corresponding to the third speed interval level is 15.

Taking the first virtual character a as an example, the character type of the first virtual character a is a BOSS type, and the moving speed of the first virtual character a is 4 m/s. The first weight of the first avatar a is 40, the second weight of the first avatar a is 10, and the initial weight of the first avatar a can be determined to be 50 by using the sum of the first weight and the second weight of the first avatar a as the initial weight of the first avatar.

It should be understood that the configuration of the initial weights is not limited to the above-mentioned configuration, and other configurations of the initial weights are not specifically described here.

In the embodiment of the present disclosure, in order to ensure that each first virtual character in the character set has a certain probability to be determined as the target first virtual character, after each interaction period is ended, the comprehensive weight of at least one first virtual character in the character set may be readjusted, thereby ensuring that each first virtual character has a chance to be determined as the target virtual character to a greater extent.

Optionally, the target interaction period may be used as a current interaction period, and the comprehensive weight of each first virtual character in the character set and the weight gain of each first virtual character at the end of a previous interaction period of the current interaction period are obtained; determining the comprehensive weight of each first virtual character in the current interaction period based on the comprehensive weight of each first virtual character and the weight gain of each first virtual character; and determining the comprehensive weight of each first virtual character in the current interaction period as the comprehensive weight of each first virtual character in the target interaction period.

In this disclosure, the weight gain may represent a weight increment, and the integrated weight of the first virtual character at the end of the previous interaction period is added to the corresponding weight increment to obtain the integrated weight of the first virtual character in the current interaction period. The weight gain may also represent a weight increase ratio, and the integrated weight of the first avatar at the end of the previous interaction period is amplified according to the corresponding weight increase ratio to obtain the integrated weight of the first avatar in the current interaction period.

Optionally, in order to improve the probability that the first virtual character which does not meet the initiating interaction condition in the previous interaction period can be determined as the target first virtual character in the target interaction period, the weight gain corresponding to the target interaction period of the first virtual character which does not meet the initiating interaction condition in the previous interaction period may be set to be greater than the weight gain corresponding to the target first virtual character in the previous interaction period.

For example, for a target first virtual character in a previous interaction period, the weight increment amount of the first virtual character corresponding to the target interaction period may be set to 0, or the weight increment ratio of the first virtual character corresponding to the target interaction period may be set to 1; for a first virtual character which does not meet the condition of initiating the interactive action in the previous interactive period, the weight increment of the first virtual character corresponding to the target interactive period can be set to any value larger than 0, or the weight increment ratio of the first virtual character corresponding to the target interactive period can be set to any ratio value larger than 1.

Optionally, the weight gains corresponding to each first virtual character which does not meet the condition of initiating the interactive action in the previous interactive period may be the same; of course, the weight gain corresponding to the target interaction period may also be different for each first virtual character that does not meet the condition for initiating the interaction action in the previous interaction period, for example, the weight gain corresponding to the target interaction period for the first virtual character may be determined according to the attribute information of the first virtual character.

Optionally, the weight gains corresponding to the target first virtual character in each previous interaction period may be the same; of course, the target first avatar in each previous interaction period may also have different weight gains corresponding to the target interaction period, for example, the weight gain corresponding to the first avatar in the target interaction period may be determined according to the attribute information of the first avatar.

Optionally, in order to improve the probability that the first virtual character that does not meet the condition of initiating the interactive action in the previous interactive period can be determined as the target first virtual character in the target interactive period, the comprehensive weight of each first virtual character in the at least one first virtual character may be reset to the preset weight after the at least one first virtual character attacks the second virtual character. And taking the preset weight of each first virtual role in the at least one first virtual role as the comprehensive weight of each first virtual role in the at least one first virtual role when the target interaction period is ended. The above process can largely ensure that each first virtual character has an opportunity to be determined as a target virtual character.

It can be understood that the preset weight corresponding to the first virtual character may be smaller than the current comprehensive weight of the first virtual character. Specifically, the preset weight includes an initial weight and a preset fixed weight, and after the at least one first virtual character attacks the second virtual character, the comprehensive weight of each first virtual character in the at least one first virtual character is reset to the initial weight or the preset fixed weight, where the preset fixed weight may be any value smaller than the current comprehensive weight of the first virtual character, and for example, the preset fixed weight may be zero.

S130: and controlling the determined target first virtual role to attack the second virtual role.

In the embodiment of the present disclosure, after the target first virtual role in any role set is determined, the target first virtual role in the role set can be controlled to attack the second virtual role; or after the target first virtual roles in the designated number of role sets are determined, the target first virtual roles in the designated number of role sets are controlled to attack the second virtual roles. The specified number may be the total number of the role sets, or may be any value smaller than the total number of the role sets.

In the embodiment of the present disclosure, the target first virtual character attacking the second virtual character may refer to a behavior that the first virtual character itself directly attacks the second virtual character. Of course, the target first virtual character attacking the second virtual character may also refer to a behavior of the target first virtual character assisting another target first virtual character in attacking the second virtual character. For example, for a target first avatar, the target first avatar may restrict the action of the second avatar, or the target first avatar may provide weapons or energy for other target first avatars to attack the second avatar, or the target first avatar blocks the counter attack of the second avatar for other target first avatars, etc., all of the above-mentioned behaviors of the target first avatar may be regarded as the target first avatar attacking the second avatar.

Referring to fig. 2, a flowchart of another role interaction control method provided in the embodiment of the present disclosure is shown, where the method includes steps S210 to S240, where:

s210: responding to an attack trigger event of the plurality of first virtual roles to the second virtual role, and performing set division on the plurality of first virtual roles to obtain a plurality of role sets.

The description of this step may refer to the description of step S110, and the same technical effect may be achieved, which is not described herein again.

S220: and determining a target first virtual role which accords with the condition of initiating the interactive action in the role set in the target interaction period aiming at each role set in the plurality of role sets.

The description of this step may refer to the description of step S120, and the same technical effect may be achieved, which is not described herein again.

S230: and configuring a fighting identifier for each determined target first virtual role.

The character set is provided with at least one engagement identifier, and the number of the engagement identifiers of the character set can be determined according to actual design requirements. Of course, the upper limit number of the first virtual characters capable of participating in attacking the second virtual character in one interaction period may also be set for each character set, and the number of the engagement identifiers of the character set is not greater than the upper limit number. For example, if the upper limit number is set to 4, the number of engagement identifiers possessed by the character set may be an integer within 4.

In the step, after the target first virtual character which meets the condition of initiating the interactive action in the character set in the target interactive period is determined, configuring a participation identifier for each target first virtual character in the character set. In the subsequent step, the target first virtual character can attack the second virtual character under the condition that the fighting identifier is configured.

Optionally, the number of the engagement identifiers of each character set may be determined according to at least one of the total number of the engagement identifiers, the total number of the first virtual characters, the number of the character sets, and the number of the first virtual characters in each character set; or, under the condition that the total number of the fighting identifiers is not changed, the number of the fighting identifiers of each role set can be randomly determined; or the number of the fighting identifiers of each character set can be set according to the current game difficulty; alternatively, the number of engagement markers of each character set may be set by the game player. It is to be understood that the manner of determining the number of the first virtual characters in each character set is not limited to the above-mentioned manner, and other manners of determining the number of the engagement identifiers are not specifically described here.

Alternatively, the character set may be the same for the number of engagement identifiers that it has in each interaction period. Of course, after one interaction period is ended, the number of engagement identifiers corresponding to the character set in the next interaction period may be determined again.

S240: and controlling the target first virtual character configured with the participation identification to attack the second virtual character.

In the disclosed embodiments, for a target first virtual character configured with an engagement identifier, in some cases, the engagement identifier configured by the target first virtual character may be recalled. After the participation identification of the target first virtual character is recovered, the target first virtual character does not attack the second virtual character within the target interaction period. Therefore, in this step, it is possible to periodically detect whether or not each target first virtual character is provided with a participation flag, and if it is determined that the target first virtual character is provided with the participation flag, control the target first virtual character provided with the participation flag to attack the second virtual character.

The specific process of retrieving the engagement identifier configured by the target first virtual character is described below.

In the disclosed embodiment, when any target first virtual character configured with the participation identification accords with the participation identification recycling condition, the participation identification of the target first virtual character which accords with the participation identification recycling condition is recycled.

Specifically, it may be determined that the target first virtual character configured with the engagement identifier meets the engagement identifier recovery condition in the following manner:

and aiming at each target first virtual character configured with the participation identification, when the target first virtual character dies, determining that the dead target first virtual character accords with the participation identification recycling condition.

Optionally, when the target first virtual character dies due to counterattack or other factors of the second virtual character, it may be determined that the target first virtual character meets the participation identification recycling condition, so as to recycle the participation identification of the target first virtual character.

And aiming at each target first virtual character configured with the participation identification, when the target first virtual character is knocked off or knocked down, determining that the knocked off or knocked down target first virtual character meets the participation identification recycling condition.

Optionally, when the target first virtual character is hit away or knocked down due to counterattack of the second virtual character, it may be determined that the target first virtual character meets the participation identification recovery condition, so as to recover the participation identification of the target first virtual character.

And aiming at each target first virtual character configured with the participation identification, when the attack task of the target first virtual character is finished, determining that the target first virtual character with the finished attack task accords with the participation identification recovery condition.

Optionally, when the attack duration of the target first virtual character for the second virtual character reaches a preset duration threshold, or the attack frequency of the target first virtual character for the second virtual character reaches a preset frequency threshold, or the target interaction period is ended, it is determined that the attack task of the target first virtual character is ended, and it is further determined that the target first virtual character meets the participation identifier recovery condition, so as to recover the participation identifier of the target first virtual character.

For other descriptions of this step, reference may be made to the description of step S130, and the same technical effect may be achieved, which is not described herein again.

Based on the same inventive concept, a role interaction control device corresponding to the role interaction control method is also provided in the embodiments of the present disclosure, and because the principle of solving the problem of the role interaction control device in the embodiments of the present disclosure is similar to the role interaction control method in the embodiments of the present disclosure, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.

Referring to fig. 3, a character interaction control apparatus 300 according to an embodiment of the present disclosure includes a set partitioning module 310, a targeting module 320, and an attack execution module 330.

The set partitioning module 310 is configured to respond to an attack trigger event of a plurality of first virtual roles for a second virtual role, and perform set partitioning on the plurality of first virtual roles to obtain a plurality of role sets, where a role set includes at least two first virtual roles;

the target determining module 320 is configured to determine, for each role set in the plurality of role sets, a target first virtual role meeting the condition of initiating the interactive action in the role set in the target interaction period;

the attack execution module 330 is configured to control the determined target first virtual role to attack the second virtual role.

In a possible implementation manner, the set dividing module 310 is specifically configured to, when configured to perform set division on a plurality of first virtual roles to obtain a plurality of role sets:

determining attribute information of each first virtual role in a plurality of first virtual roles;

according to the attribute information of each first virtual role, performing set division on the plurality of first virtual roles to obtain a plurality of role sets;

wherein the attribute information includes at least one of a role type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

In a possible implementation manner, the target determining module 320, when configured to determine, for each of the plurality of character sets, a target first virtual character in the character set meeting the condition of initiating the interaction action in the target interaction period, is specifically configured to:

determining the comprehensive weight of each first virtual role in the role set, which can act in a target interaction period, aiming at each role set in the plurality of role sets;

and determining the target first virtual roles which accord with the condition of initiating the interactive action in the role set in the target interactive period according to the comprehensive weight of each first virtual role.

In one possible implementation, the target determination module 320, when configured to determine the comprehensive weight that each first virtual character in the character set can act in the target interaction period, is specifically configured to:

taking the target interaction period as a current interaction period, and acquiring the comprehensive weight of each first virtual character in the character set and the weight gain of each first virtual character when the previous interaction period of the current interaction period is finished;

determining the comprehensive weight of each first virtual character in the current interaction period based on the comprehensive weight of each first virtual character and the weight gain of each first virtual character;

and determining the comprehensive weight of each first virtual character in the current interaction period as the comprehensive weight of each first virtual character in the target interaction period.

In one possible implementation, the target determination module 320, when configured to determine the comprehensive weight that each first virtual character in the character set can act in the target interaction period, is specifically configured to:

when the target interaction period is a first interaction period, configuring an initial weight for each first virtual role according to the attribute information of each first virtual role in the role set;

taking the initial weight of each first virtual role as the comprehensive weight of each first virtual role in the target interaction period;

wherein the attribute information includes at least one of a role type, an attack frequency, an attack distance type, an attack effect, and a moving speed.

In one possible embodiment, the goal determination module is further configured to:

after the at least one first virtual character attacks the second virtual character, resetting the comprehensive weight of each first virtual character in the at least one first virtual character to be a preset weight, wherein the preset weight comprises an initial weight and a preset fixed weight;

and taking the preset weight of each first virtual role in the at least one first virtual role as the comprehensive weight of each first virtual role in the at least one first virtual role when the target interaction period is ended.

In a possible implementation manner, the target determining module 320, when configured to determine, according to the comprehensive weight of each first virtual character, a target first virtual character meeting the condition of initiating the interaction action in the character set in the target interaction period, is specifically configured to:

sequencing each first virtual role in the role set according to the sequence of the comprehensive weight from high to low;

and determining the first virtual roles ranked in the role set in the preset number as target first virtual roles meeting the condition of initiating the interactive action.

In a possible implementation manner, the target determining module 320, when configured to determine, according to the comprehensive weight of each first virtual character, a target first virtual character meeting the condition of initiating the interaction action in the character set in the target interaction period, is specifically configured to:

determining a first virtual role of which the comprehensive weight exceeds a preset weight threshold in the role set;

and determining the first virtual character with the corresponding comprehensive weight exceeding a preset weight threshold value as a target first virtual character meeting the condition of initiating the interactive action.

In a possible implementation manner, when the attack execution module 330 is configured to control the determined target first virtual character to attack the second virtual character, specifically, to:

configuring a fighting identifier for each determined target first virtual role;

and controlling the target first virtual character configured with the participation identification to attack the second virtual character.

In a possible implementation manner, referring to fig. 4, a second schematic diagram of a character interaction control device provided in an embodiment of the present disclosure is shown. The character interaction control device 300 further includes an identification recycling module 340 on the basis of the set partitioning module 310, the target determining module 320 and the attack performing module 330.

The identifier recycling module 340 is configured to, when it is determined that any target first virtual character configured with the participation identifier meets the participation identifier recycling condition, recycle the participation identifier of the target first virtual character meeting the participation identifier recycling condition.

In one possible implementation, the identifier recycling module 340 determines that the target first virtual character configured with the engagement identifier meets the engagement identifier recycling condition by:

aiming at each target first virtual character configured with the participation identification, when the target first virtual character dies, determining that the dead target first virtual character accords with the participation identification recovery condition;

aiming at each target first virtual character configured with the participation identification, when the target first virtual character is knocked off or knocked down, determining that the knocked off or knocked down target first virtual character meets the participation identification recovery condition;

and aiming at each target first virtual character configured with the participation identification, when the attack task of the target first virtual character is finished, determining that the target first virtual character with the finished attack task accords with the participation identification recovery condition.

The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.

Corresponding to the character interaction control method in fig. 1, an embodiment of the present disclosure further provides a computer device 500, as shown in fig. 5, for a schematic structural diagram of the computer device provided in the embodiment of the present disclosure, the computer device 500 includes a processor 51, a memory 52 and a bus 53. The memory 52 is used for storing instructions for execution and includes a memory 521 and an external memory 522. The memory 521 is also referred to as an internal memory, and is used for temporarily storing the operation data in the processor 51 and the data exchanged with the external memory 522 such as a hard disk, the processor 51 exchanges data with the external memory 522 through the memory 521, and when the computer device 500 operates, the processor 51 communicates with the memory 52 through the bus 53, so that the processor 51 executes the following instructions:

responding to an attack triggering event of a plurality of first virtual roles to a second virtual role, and performing set division on the plurality of first virtual roles to obtain a plurality of role sets, wherein the role sets comprise at least two first virtual roles; determining a target first virtual role which accords with the condition of initiating an interactive action in a role set in a target interaction period aiming at each role set in a plurality of role sets; and controlling the determined target first virtual role to attack the second virtual role.

The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the role interaction control method in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.

The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the role interaction control method in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.

The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.

It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.

The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

24页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种虚拟角色掩蔽方法、装置、计算机设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类