Multi-role and multi-task parallel execution method and device in turn system competition application
By executing multiple action tasks in turn-based competitive applications in parallel, the problems of slow pace and poor user experience in traditional turn-based competitive applications are solved, and faster turn execution speed and better user experience are achieved.
Patent Information
- Application Number
- CN202510343396.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2045-03-21
AI Technical Summary
In traditional turn-based competitive applications, due to the strict sequential action mechanism, the pace is slow and the user waits for a long time, which seriously affects the user experience.
By obtaining the action queue to be acted on in the turn-based competitive application in real time, and determining whether multiple action tasks conflict in the order of action, an executable task sequence is obtained, and the executable first action task sequence is simultaneously executed while continuing to perform the second action task.
It realizes the parallel execution of multiple action tasks without conflict, which improves the speed of round execution, improves the user experience, and ensures the consistency and fairness of the execution of competitive tasks.
Smart Images

Figure CN120154908A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the technical field of turn-based competitive applications, and particularly relates to a method and device for parallel execution of multiple roles and multiple tasks in a turn-based competitive application. Background Art
[0002] Turn-based competition is an ancient and classic type of competition, which has been widely used in the field of e-sports. Traditional turn-based competitive applications usually adopt a strict sequential action mechanism, that is, after one role completes the action content, the next role can start to act. Although this mechanism has strong strategy, there are problems such as slow rhythm and long waiting time for users, which seriously affect the user experience. Summary of the Invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a method and device for parallel execution of multiple roles and multiple tasks in a turn-based competitive application, which can parallelly execute multiple roles and multiple tasks in the same turn, effectively improve the competition rhythm, and enhance the user experience.
[0004] In a first aspect, an embodiment of the present application provides a method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application, including:
[0005] Obtain a real-time action queue to be acted on in the current turn; the action queue includes at least one first action role to be acted on, the action order of at least one of the first action roles, and at least one first action task to be executed by each of the first action roles;
[0006] According to the action order, sequentially determine whether at least one of the first action tasks conflicts with at least one second action task being currently executed until it is determined that any one of the first action tasks conflicts with the second action task, and obtain an executable first action task sequence; the second action task is executed by a second action role, and the action order of the second action role takes precedence over that of the first action role;
[0007] During the continued execution of the second action task, simultaneously execute each of the first action tasks in the executable first action task sequence.
[0008] In some embodiments, the conflict includes a role conflict, and the sequentially determining whether at least one of the first action tasks conflicts with at least one second action task being currently executed includes:
[0009] Obtain at least one second target role corresponding to at least one of the second action tasks;
[0010] When any one of the second target roles is the same as any one of the first action roles, it is determined that the first action task and the second action task conflict.
[0011] In some embodiments, the conflict further includes a conflict in execution results, and the method further includes:
[0012] When at least one of the second target roles is not the same as at least one of the first action roles, obtain at least one first target role corresponding to at least one of the first action tasks;
[0013] When it is recognized that the second target role is the same as the first target role, respectively obtain the first action task parameters corresponding to the first action task and the second action task parameters corresponding to the second action task;
[0014] When the fusion result of the first action task parameters and the second action task parameters exceeds a preset range, it is determined that the first action task and the second action task conflict.
[0015] In some embodiments, it further includes:
[0016] Obtain the second quantity of the second action task being currently executed and the first quantity of the first action task in the executable first action task sequence;
[0017] When the sum of the first quantity and the second quantity is greater than a preset quantity, obtain the number of executable tasks;
[0018] According to the action sequence of the first action role, determine the executable first action task sequence based on the number of executable tasks.
[0019] In some embodiments, the simultaneously executing each of the first action tasks in the executable first action task sequence includes:
[0020] Obtain the starting animation, release animation, and finishing animation corresponding to each of the first action tasks in the executable first action task sequence;
[0021] During the execution of the second action task, for each of the first action tasks, sequentially execute the starting animation, the release animation, and the finishing animation.
[0022] In some embodiments, the simultaneously executing each of the first action tasks in the executable first action task sequence further includes:
[0023] Obtain the priority of each of the first action tasks respectively; the priority includes the attribute priority of the action task relative to the first action role and the order priority of the first action role in the action queue;
[0024] When at least one of the first action tasks has the attribute priority, display at least one of the first action tasks with the attribute priority in sequence according to the order priority.
[0025] In some embodiments, it further includes:
[0026] In response to the end of execution of any action task, update the speed configuration data corresponding to each role based on the action task;
[0027] Update the action queue to be acted on in the current round based on the speed configuration data corresponding to each role.
[0028] In a second aspect, an embodiment of the present application provides a multi-role and multi-task parallel execution device in a turn-based competitive application, including:
[0029] An action queue module, configured to obtain the action queue to be acted on in the current round in real time; the action queue includes at least one first action role to be acted on, the action order of the first action role, and at least one first action task to be executed by the first action role;
[0030] A conflict detection module, configured to sequentially determine whether at least one of the first action tasks conflicts with at least one of the second action tasks being currently executed according to the action order until it is determined that any one of the first action tasks conflicts with the second action task, to obtain an executable first action task sequence; the second action task is executed by a second action role, and the action order of the second action role takes precedence over that of the first action role;
[0031] A parallel execution module, configured to simultaneously execute each of the first action tasks in the executable first action task sequence while continuing to execute the second action task.
[0032] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, it implements the method described in the embodiments of the present application.
[0033] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the method described in the embodiments of the present application.
[0034] Fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, it implements the method described in the embodiments of the present application.
[0035] The method and device for parallel execution of multiple roles and multiple tasks in a turn-based competitive application proposed in the embodiments of the present application can judge the conflict between the action queue to be acted on in the current turn obtained in real time and the second action task being executed, obtain a first action task sequence that does not conflict with at least one second action task being executed, and while continuing to execute the second action task, execute each first action task in the executable first action task sequence at the same time, achieving the purpose of parallel execution of action tasks when the action tasks do not conflict, enabling multiple action tasks in the same turn to be executed simultaneously without waiting when they do not conflict, thereby greatly improving the speed of turn execution, improving the execution rhythm of the turn-based competitive application while ensuring the consistency and fairness of the execution of competitive tasks, and improving the user experience.
[0036] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be understood through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, objects, and advantages of the present application will become more apparent:
[0038] Figure 1 Shows the implementation environment architecture diagram of the method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application provided by the embodiments of the present application;
[0039] Figure 2 Shows the flow diagram of a method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application provided by an embodiment of the present application;
[0040] Figure 3 Shows the flow diagram of a method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application provided by another embodiment of the present application;
[0041] Figure 4 Shows the flow diagram of a method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application provided by still another embodiment of the present application;
[0042] Figure 5 Shows the flow diagram of a method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application provided by yet another embodiment of the present application;
[0043] Figure 6The block diagram of a parallel execution device for multiple roles and multiple tasks in a turn-based competitive application provided by an embodiment of the present application is shown;
[0044] Figure 7 The block diagram of a parallel execution device for multiple roles and multiple tasks in a turn-based competitive application provided by another embodiment of the present application is shown;
[0045] Figure 8 The schematic structural diagram of a computer system of an electronic device or a server suitable for implementing the embodiments of the present application is shown. Detailed implementation manners
[0046] The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention, rather than limiting the invention. In addition, it should be noted that, for the sake of convenience of description, only the parts related to the invention are shown in the drawings.
[0047] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the drawings and embodiments.
[0048] It should be noted that, before collecting the relevant data of the user and during the process of collecting the relevant data of the user, a prompt interface, a pop-up window or a voice prompt message can be displayed, and the prompt interface, the pop-up window or the voice prompt message is used to prompt the user that the relevant data of the user is currently being collected, so that the present application only starts to execute the relevant steps of obtaining the relevant data of the user after obtaining the confirmation operation of the user on the prompt interface or the pop-up window. Otherwise (that is, when the confirmation operation of the user on the prompt interface or the pop-up window is not obtained), the relevant steps of obtaining the relevant data of the user are ended, that is, the relevant data of the user is not obtained. In other words, all user data collected by the present application is collected with the consent and authorization of the user, and the collection, use and processing of the relevant user data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0049] For the specific implementation environment of the parallel execution method for multiple roles and multiple tasks in the turn-based competitive application proposed by the present application, see Figure 1 . Figure 1 The implementation environment architecture diagram of the parallel execution method for multiple roles and multiple tasks in the turn-based competitive application provided by the embodiment of the present application is shown.
[0050] As Figure 1 shown, the implementation environment architecture includes: at least one terminal device 101 and a server 102.
[0051] The terminal device 101 is a client for installing and running a turn-based competitive application. Among them, the turn-based competitive application world is a virtual world displayed (or provided) when running on the terminal. The turn-based competitive application world can be a simulation world of the real world, a semi-simulated and semi-fictional world, or a purely fictional world. The virtual world can be any one or a combination of a two-dimensional virtual world, a 2.5D virtual world, a three-dimensional virtual world, and an achievable multi-dimensional virtual world, and the present application does not make any limitations thereto. Optionally, the turn-based competitive application world is further used for virtual battles between at least two virtual characters, and there are virtual resources available for at least two virtual characters in the turn-based competitive application world.
[0052] It should also be noted that, in the embodiments of the present application, the turn-based competitive application can be an independent application program or a subroutine in other application programs. For example, it can be a subroutine in an educational application program. Exemplarily, it can be a reward level for teaching achievements, etc., and the present application does not make specific limitations thereto. Preferably, the turn-based competitive application is a turn-based competitive game.
[0053] The terminal device 101 is a terminal used by the user. The user uses the first terminal 101 to control the actions of at least one virtual character located in the turn-based competitive application. The action methods include but are not limited to attacking other virtual characters, replacing other virtual characters, controlling other virtual characters, assisting other virtual characters, etc. Among them, the virtual character can be a virtual person or a virtual thing. For example, it can be a simulated human object or a chess piece, a teaching aid, etc.
[0054] When the user competes with the application program, for example, the turn-based competitive application is a single-player game, an educational game (including but not limited to basic science learning, popular science knowledge learning, etc.), a strategy game (including but not limited to classic random strategy games and quantum random strategy games), etc., and the user competes with the preset plan of the server, then it can include one terminal device 101. When the user competes with another user, for example, the turn-based competitive application is a two-player battle game (such as board games like Go, Chinese chess, and chess), then it can include two terminal devices 101. When the user competes with multiple users, for example, the turn-based competitive application is a multi-player battle game, then it can include multiple terminal devices 101.
[0055] The server 102 is used to receive the control request sent by the terminal device 101 (such as a request to control the virtual character to perform an action task in the current round), execute the request result (such as execute the display content of the first action task and the second action task determined by the multi-character and multi-task parallel execution method proposed in the turn-based competitive application of the present application), and send the rendered content to the terminal device 101, so that the terminal device 101 executes the rendered content to display the action effect to the user.
[0056] The terminal device 101 can be at least one of a smart phone, a smart watch, a smart TV, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, a desktop computer, a smart machine (such as a humanoid machine), and a user wearable device. Among them, the user wearable device can be a VR (Virtual Reality) device that provides a virtual simulation world (such as VR glasses); it can also be a Mecha for competition, etc. The server 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0057] The terminal device 101 and the server 102 are directly or indirectly connected through a wired or wireless communication method. Optionally, the above-mentioned wireless network or wired network uses standard communication technologies and / or protocols. The network is usually the Internet, or can be any network, including but not limited to any combination of a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network, or a virtual private network.
[0058] The method for parallel execution of multiple roles and multiple tasks in the turn-based competitive application proposed in this application can be implemented by a device for parallel execution of multiple roles and multiple tasks in the turn-based competitive application. The device for parallel execution of multiple roles and multiple tasks in the turn-based competitive application can be installed on the terminal device or the server.
[0059] To further illustrate the technical solutions provided by the embodiments of this application, the following will be described in detail in conjunction with the accompanying drawings and specific implementation manners. Although the embodiments of this application provide the method operation instruction steps shown in the following embodiments or drawings, based on routine or non-creative labor, more or fewer operation instruction steps may be included in the method. In steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiments of this application. When the method is actually processed or executed by the device, it can be executed in the order shown in the embodiments or drawings or executed in parallel.
[0060] Please refer to Figure 2 , Figure 2 which shows a schematic flowchart of a method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application provided by an embodiment of this application. AsFigure 2 As shown in Figure 2 , the method includes:
[0061] Step 201, obtaining the action queue to be acted on in the current round in real time.
[0062] Among them, the action queue includes at least one first action role to be acted on, the action order of at least one first action role, and at least one first action task to be executed by each first action role.
[0063] It should be noted that the current round is a round in the competitive scenario of a turn-based competitive application, such as a round in the combat scenario of a turn-based game. Exemplarily, it can be the first round after a virtual character enters the competitive scenario, or other rounds during the competition process, and the present application does not make specific limitations. Among them, the action in a turn-based competitive application refers to an action mode in which at least two parties participating in the competition take turns to execute action tasks according to the round order. Different from the immediate action mode, a turn-based competitive application pays more attention to the order during the action process. Optionally, a complete round in a turn-based competitive application refers to at least two parties participating in the competition taking turns to execute the set action tasks.
[0064] In a feasible embodiment, the action tasks can be different according to the implementation scenario of the turn-based competitive application. Exemplarily, the action tasks in a board game can be tasks such as placing a piece or replacing a piece, such as the task of placing a piece by adding a piece or moving a piece, and the replacement task of "eating" a piece, etc.; in a fun learning game, the action tasks can be practical tasks learned, such as the operation task of performing an operation method, the transformation task of word transformation, the graphic splitting task in geometric analysis, etc.; the strategy tasks in a strategy game, such as in the quantum prisoner's dilemma, two players share an entangled state and coordinate to choose a "cooperate" strategy through quantum operations.
[0065] Among them, when the turn-based competitive application is a turn-based game, the action tasks can also include combat tasks such as attack, defense, attribute improvement, position replacement, etc., which are determined according to the virtual scenario of the turn-based game, and the present application does not make specific limitations.
[0066] Exemplarily, a complete round in a turn-based game can refer to at least two virtual characters controlled by at least two parties participating in the game each executing a combat task once; or, a complete round can refer to at least two virtual characters controlled by at least two parties participating in the game taking turns to execute combat tasks until at least one virtual character controlled by one party fails or escapes, etc.
[0067] In a feasible embodiment, in a competitive scene of a turn-based competitive application, an action queue to be acted in the current round is obtained in real time, and the queue may include at least one virtual character with action ability in the scene, that is, the first action character to be acted. Among them, having action ability means that the first action character has not died, escaped or been replaced, etc.
[0068] In a feasible embodiment, the action order of at least one first action character is determined based on the speed value of each first action character in the current round, that is, at least one first action character to be executed in the current round is arranged in descending order according to the speed value to obtain the action order of at least one action character.
[0069] Optionally, the speed value of the first action character can be determined comprehensively based on the basic speed and additional speed of the action character, etc. The additional speed includes but is not limited to the additional speed (such as speed gain) given by other characters in the previous round or the current round, or the additional speed given by the user through the speed control instruction (such as priority execution instruction), etc., which is not specifically limited in this application.
[0070] In a feasible embodiment, at least one first action task to be performed by the first action character is a skill to be released determined based on user input or preset control instructions before the start of the current round. Among them, the control instruction input by the user can be generated based on the skill control triggered by the user in the round gap between the current round and the previous round, or it can be generated based on the combat shortcut control triggered by the user at any time before the current round, such as automatic combat. The preset control instruction refers to the combat instruction sequence set in advance by the system for the NPC character in the turn-based game, or the action rules preset by the user for automatic combat, etc. This application does not specifically limit the method of obtaining the first combat task.
[0071] Step 202, according to the action sequence, determine in turn whether at least one first action task conflicts with at least one second action task currently being executed, until it is determined that any first action task conflicts with the second action task, and an executable first action task sequence is obtained.
[0072] Among them, the second action task is performed by the second action role, and the action order of the second action role takes precedence over the first action role.
[0073] It should be noted that in the embodiments of the present application, an action task conflict means that at least two action tasks cannot be executed simultaneously. Optionally, in the embodiments of the present application, conflicts may include role conflicts, execution result conflicts, and other conflicts that cannot be executed simultaneously due to competition rules. Exemplarily, a role conflict may be a conflict between the role executing the action task and the role of the action task being executed. An execution result conflict may be that the execution result of the second action task that should be executed first may cause the first action task behind to be unable to produce an execution effect. Optionally, the action task command rules can be set independently by the user, and the conflicts between action tasks can also be set independently by the user, which is not specifically limited in the present application.
[0074] It should also be noted that the second action task is the action task being currently executed. The formation method of the second action task is not specifically limited in the present application. Exemplarily, when the turn-based competition application is a turn-based game, it may be directly executing the combat task corresponding to the first action role in the action queue after entering the turn to form the second combat task being executed, or it may be that during the execution of other combat tasks, at least one first combat task that is recognized as non-conflicting and executed is combined with the second combat task being currently executed to form at least one second combat task.
[0075] Specifically, obtain at least one second action task being currently executed. At the same time, obtain the first first action task to be executed according to the action sequence, and determine whether the first first action task conflicts with any of the second action tasks. If the first first action task conflicts with any of the second action tasks, the determination ends, wait for the second action task to finish execution, and then execute the first first action task; if the first first action task does not conflict with all the second action tasks, store the first first action task into the executable first action task sequence, obtain the second first action task, and continue to determine whether the second first action task conflicts with any of the second action tasks. If the second action task conflicts with any of the second action tasks, the determination ends and step 203 is executed; if the second action task does not conflict with all the second action tasks, store the second first action task into the executable first action task sequence, obtain the third first action task, and continue to determine whether the third first action task conflicts with any of the second action tasks, and so on, until each first action task in the obtained action queue is traversed, or it is recognized that any first action task conflicts with any second action task, to obtain the executable first action task sequence.
[0076] Step 203, during the continued execution of the second action task, simultaneously execute each first action task in the executable first action task sequence.
[0077] That is to say, after determining an executable first action task sequence composed of at least one first action task that does not conflict with the second action task, each first action task in the executable first action task sequence can be directly executed simultaneously during the execution of the second action task.
[0078] Optionally, after completing the traversal of the action queue as described above and obtaining a complete executable first action task sequence, each first action task in the executable first action task sequence can be executed; or when it is detected that there is a first action task to be executed in the executable first action task sequence, the first action task can be immediately executed.
[0079] Therefore, the method for parallel execution of multiple roles and multiple tasks in the turn-based competitive application proposed in the embodiments of the present application can determine, by making a conflict judgment on the action queue to be acted in the current turn obtained in real time and the second action task being executed, a first action task sequence that does not conflict with at least one second action task being executed, and during the continuous execution of the second action task, each first action task in the executable first action task sequence is executed simultaneously, achieving the purpose of parallel execution of action tasks when the action tasks do not conflict, enabling multiple action tasks in the same turn to be executed simultaneously without waiting when they do not conflict, thus greatly improving the execution speed of the turn, improving the execution rhythm of the turn-based competitive application on the basis of ensuring the consistency and fairness of the execution of competitive tasks, and improving the user experience.
[0080] In a feasible embodiment, the conflict includes a role conflict. Specifically, sequentially determining whether at least one first action task conflicts with at least one second action task being executed includes: obtaining at least one second target role corresponding to at least one second action task, and when any second target role and any action role are the same role, determining that the first action task and the second action task conflict.
[0081] That is to say, the target role data of each second action task is obtained, including but not limited to the role name, role ID, role position, etc., which are used to identify the role identity in the current competitive scene. Wherein, in some embodiments, the second action task may include multiple target roles. For example, when the turn-based competitive application is a turn-based game, the second action task is a combat task for group attack. Similarly, the role data of each first action role in the current action queue is obtained. Then the first action role to be judged whether the conflict is in the current action queue is matched with the target role data of the second target role respectively. If the match is successful, that is, the role data of the first action role is the same as the role data of a second target role, then the second target role is considered to be the same role as the first action role, and the second target role corresponding to the second action task being executed is the first action role to be acted. At this time, there is a role conflict between the first action task and the second action task. If the matching is unsuccessful, that is, the role data of the first action character is not the same as the role data of any second target character, then it is considered that the second target character corresponding to the second action task is not the same as the first action character to be acted upon, and the second target character corresponding to the second action task in execution is not the first action character to be acted upon. At this time, the first action task does not conflict with any second action task.
[0082] Therefore, the present application can effectively identify the first action role with action conflict by performing role conflict judgment on action roles, so that it cannot be executed in parallel, and can effectively ensure the consistency and watchability of the second action task in execution, that is, the recipient of the action task can wait for the execution result of the action task in the execution order of the turn-based competitive application to ensure that its attributes, status, etc. are consistent with the conventional turn-based competitive application when it is executed later, avoiding affecting the actual effect of the turn-based competition, and ensuring that the target role of the second action task remains affected by the status of the action task, ensuring that the display content of the second action task can be fully presented, and ensuring the user's visual experience.
[0083] In a feasible embodiment, the conflict also includes a conflict in execution results. Specifically, when the first action role does not conflict with the second target role, at least one first target role corresponding to at least one first action task is further obtained, and when the second target role and the first target role are identified as the same role, the first action task parameters and the second action task parameters corresponding to the first action task and the second action task are respectively obtained, and when the fusion result of the first action task parameters and the second action task parameters exceeds the preset range, it is determined that the first action task and the second action task conflict.
[0084] It should be noted that the action task parameters include the attribute type and attribute value corresponding to the action task. For example, when the turn-based competitive application is a turn-based game, the attribute type and attribute value corresponding to the action task can be the attribute type and attribute value corresponding to the combat task, such as attack - attack value, critical hit - critical hit value, blood addition - blood addition amount, etc. Specifically, it can be set according to the game or character type, and this application does not make specific limitations.
[0085] That is to say, after determining that there is no role conflict between the first action role of the first action task and the second target role of the second action task in this application, it is further determined whether the simultaneous execution of two action tasks that should be sequentially executed for the same role will have a conflict effect on the target role.
[0086] Specifically, obtain the role data of at least one first target role corresponding to at least one first action task, identify whether the role data of the second target role is consistent with the role data of the first target role. When it is identified that the second target role and the first target role are the same role, respectively obtain the attribute type and attribute value of the first action task corresponding to the first action task and the attribute type and attribute value of the second action task corresponding to the second action task, perform a conflict analysis on the attribute type and attribute value corresponding to the first action task and the attribute type and attribute value corresponding to the second action task, and determine whether the fusion result of the attribute type and attribute value corresponding to the first action task and the attribute type and attribute value corresponding to the second action task exceeds the preset range. If it exceeds the preset range, it is determined that there is an execution result conflict between the first task action task and the second action task, that is, it is determined that the first action task and the second action task conflict. If it does not exceed the preset range, it is determined that there is no execution result conflict between the first task action task and the second action task, that is, it is determined that the first action task and the second action task do not conflict.
[0087] Optionally, the preset range can be determined according to the health value range of the target role (the first target role and the second target role are the same). Exemplarily, when the turn-based competitive application is a turn-based game, the preset range is less than or equal to the current health value of the target role. That is to say, the target role remains alive after simultaneously or sequentially receiving the first action task and the second action task, that is, it will not die during the execution of the action task, resulting in problems such as being unable to determine the cause of death (attributed to the first action role or the second action role), or being unable to determine the trigger timing of the execution of the death animation.
[0088] Preferably, the preset range can be the initial state before the start of the first action task and the second action task, that is, if the fusion result of the attribute type and attribute value corresponding to the first action task and the attribute type and attribute value corresponding to the second action task is that the target role maintains the initial state, it is determined that the first action task and the second action task do not conflict.
[0089] In a specific embodiment, when the turn-based competitive application is a turn-based game, as Figure 3 shown, first obtain the relevant information of the first combat task corresponding to the first acting character, then obtain the relevant information of the second combat task corresponding to the second acting character, and then determine whether the second target character corresponding to the second acting task is the same character as the first acting character. If so, it is determined that the first combat task conflicts with the second combat task, and the first combat task waits for at least one of the currently executing second combat tasks to be completed. If not, it is further determined whether the first target character corresponding to the first combat task and the second target character corresponding to the second combat task are the same character. If they are the same character, it is further determined whether the target character can return to the initial state when attacked again. If it can, it is determined that the first combat task and the second combat task do not conflict and can be executed. If not, it is determined that the first combat task conflicts with the second combat task, and the first combat task waits for at least one of the currently executing second combat tasks to be completed. If they are not the same character, it is determined that the first combat task and the second combat task do not conflict and can be executed.
[0090] Thus, by judging the conflict of execution results for acting characters, this application can effectively avoid the anomalies in action settlement or animation display that are likely to occur during parallel execution, effectively improve the consistency and fairness during parallel execution in turn-based competitive applications, and at the same time ensure the display of the visual effects of the competitive application, ensuring the competitive experience of users.
[0091] In a feasible embodiment, in order to further ensure the reliability of parallel execution of multiple characters and multiple tasks, especially the reliability of image rendering, this application further limits the number of characters executing in parallel.
[0092] Specifically, obtain the second quantity of the second acting tasks currently being executed and the first quantity of the first acting tasks in the executable first acting task sequence. When the sum of the first quantity and the second quantity is greater than the preset quantity, obtain the number of executable tasks, and based on the number of executable tasks, determine the executable first acting task sequence according to the acting order of the first acting character.
[0093] That is to say, respectively obtain the second quantity of the second action task being currently executed and determine the quantity of the first action tasks that can be executed without conflicting with the second action task, then calculate the sum of the first quantity and the second quantity, that is, the quantity of action tasks actually executed in parallel if the executable first action tasks are executed. Then, determine whether the sum of the first quantity and the second quantity is greater than a preset quantity. If it is greater, it is determined that the total quantity of the second action task being executed and the executable first action tasks is greater than the maximum quantity of action tasks executed in parallel to ensure the visual effect. At this time, obtain the quantity of executable tasks, that is, the difference between the preset quantity and the second quantity, and then determine the sequence of executable first action tasks based on the quantity of executable tasks according to the action sequence of the first action role.
[0094] Thus, the embodiment of the present application can further improve the reliability and effect experience of multi-role and multi-task parallel execution in a turn-based competitive application by restricting the quantity of roles executed in parallel, and improve the competitive experience of users.
[0095] In a feasible embodiment, it further includes: in response to the end of execution of any action task, update the speed configuration data corresponding to each role based on the action task, and update the action queue to be acted in the current round based on the role speed configuration data.
[0096] That is to say, after the execution of the second action task or the first action tasks executed in parallel ends, the speed configuration data corresponding to each role is updated according to the execution result, including but not limited to updating the speed value of the next round for the role that has executed the action task, updating the speed value of the current round for the role that has not executed the action task (the first action role in the action queue), etc. Then, for the current round, update the action queue to be acted in the current round.
[0097] It should be understood that in some game scenarios, the prior executed combat task may increase the extra speed for other roles in the same camp, or reduce the extra speed for other roles in the enemy camp, etc. Based on this, after the combat task of the second action role is executed, it is easy to affect the action sequence of the action queue in the current round. In order to ensure the consistency between the result of parallel execution and the result of sequential execution in a turn-based game, it is necessary to immediately update the action sequence of the action queue after each combat task ends to improve the game experience of users.
[0098] In a feasible embodiment, in some game scenarios, the speed configuration data is changed through a special state. For example, only adjust any action role to the next action role without changing the attribute value of the role.
[0099] In a feasible embodiment, in some game scenarios, updating the speed value of the next round for a character that has executed a combat mission includes updating the speed value of the character that has executed the combat mission using a preset speed decay curve.
[0100] Specifically, in some game scenarios, there is no upper limit to the character speed value. The embodiment of the present application uses a non-linear decay curve to reduce the benefits brought by the character speed. For example, the actual speed = base speed × log(1 + additional speed). In addition, the present application further introduces a speed penalty mechanism. For example, before starting to execute a combat mission in each round, identify the first acting character in the current round. If the number of times any acting character serves as the first acting character is greater than the preset number of actions, then gradually reduce the speed value of that character according to the preset rules. Thus, by introducing the speed decay rule, the present application can effectively prevent high-speed characters from overly dominating the combat in turn-based competitive applications.
[0101] In a specific embodiment, when the turn-based competitive application is a turn-based game, as Figure 4 shown, obtain the action queue to be acted on in the current round, query whether there is a special state among the first acting characters. If there is, then adjust the action order in the action queue based on the special state. If not, obtain the additional speed corresponding to each character, and determine the real-time speed value of each character in the current round. Based on the real-time speed value, judge whether it is necessary to adjust the action order of the action queue. If so, then adjust the action queue and return to the step of obtaining the action queue to be acted on in the current round. If not, judge whether the number of second acting characters reaches the preset number. If not, then execute the first combat mission that can be executed currently. If so, then wait for at least one second combat mission to end.
[0102] Thus, the present application can effectively coordinate the action order between the parallel execution and sequential execution of multiple characters and multiple tasks in the turn-based competitive application. On the basis of ensuring the consistency between the action order of parallel combat and sequential execution, it realizes the parallel execution of non-conflicting combat tasks, improves the competitive rhythm of the turn-based competitive application, and improves the user's competitive experience.
[0103] In a feasible embodiment, simultaneously executing each first combat mission in the executable first combat mission sequence includes: obtaining the starting animation, release animation, and finishing animation corresponding to each first action mission in the executable first action mission sequence, and during the execution of the second action mission, for the first action mission, sequentially execute the starting animation, release animation, and finishing animation.
[0104] It should be noted that in some game scenes, the starting animation includes the action performance of the action character standing in place before making a move, sprinting to the target character's position, and other special effects animations before releasing a move. The ending animation includes the action character's ending action, the skill special effects gradually disappearing, the action character returning to the original position, and other special effects animations after releasing a move.
[0105] That is to say, in the embodiment of the present application, in order to ensure the user's viewing experience of the game on the basis of improving the competitive rhythm and distinguish multiple combat tasks executed in parallel, during the execution process, the present application executes the corresponding starting animation, release animation and closing animation for each first action task in sequence, so that the first action tasks executed in parallel can be clearly displayed.
[0106] Preferably, the priority of each first action task is obtained separately, and the priority includes the attribute priority of the action task relative to the first action role and the sequence priority of the first action role in the action queue. When at least one first action task has an attribute priority, at least one action task with the attribute priority is displayed in sequence according to the sequence priority.
[0107] It should be noted that in some game scenarios, the attribute priority of an action task relative to the first action character can be determined based on the attribute characteristics of the action task, including but not limited to action tasks with special identification, such as combat skills that consume more energy or special skills with specific display effects, etc. This application does not make specific limitations.
[0108] Optionally, in some game scenarios, the priority includes multiple levels. When the attribute priority corresponding to the first action task is the highest, the camera is locked on the first action task and other action tasks being executed are covered with a black mask. In other words, when there is a combat task with the highest priority among multiple combat tasks being executed in parallel, the combat task is provided with a focused display effect by locking the camera and covering other combat tasks, so that users can enjoy the combat effect.
[0109] Optionally, the first combat mission with a higher priority may also be displayed through UI text display of the combat mission name, display of a static character portrait, or a dynamic Spine animation performance, etc. This application does not make any specific limitations.
[0110] In a specific embodiment, when the turn-based competitive application is a turn-based game, such as Figure 5As shown, obtain the action sequence to be executed in parallel, and determine whether the parallel execution reaches the role limit. If so, return to obtain the action sequence, for example, re-determine the action sequence according to the number of executable tasks. If not, determine whether the role to be executed is in an abnormal state. If it is in an abnormal state, such as being attacked and killed by other roles or being replaced, etc., return to re-obtain the action queue. If it is not in an abnormal state, obtain the target role of the combat task to be executed, calculate the movement time for the acting role to reach the position of the target role, execute the starting animation of the acting role, for example, render the role sprinting to the position of the target role, execute the release animation of the acting role, and continuously determine in real time whether all the release animations of the combat task have been executed. If not, continue to execute. For example, if the role has skills such as combos that can continuously execute multiple skill release animations. If it is executed completely, execute the finishing animation of the acting role to determine that the combat task has been executed completely.
[0111] Therefore, the embodiment of the present application can fully display the competitive details to the user during the parallel execution of multiple roles and multiple tasks in the turn-based competitive application. While ensuring the execution of the action tasks, it can display the special effects of the action tasks with attribute priorities to the user, improving the user's competitive experience.
[0112] It should be noted that although the operations of the method of the present invention are described in a specific order in the drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result.
[0113] Further referring to Figure 6 , Figure 6 shows a block diagram of a parallel execution device for multiple roles and multiple tasks in a turn-based competitive application provided by an embodiment of the present application.
[0114] As Figure 6 shown, the parallel execution device 10 for multiple roles and multiple tasks in the turn-based competitive application includes:
[0115] An action queue module 11, configured to obtain in real time the action queue to be acted in the current round; the action queue includes at least one first acting role to be acted, the action sequence of the first acting role, and the first action task to be executed by the first acting role;
[0116] A conflict detection module 12, configured to sequentially determine whether at least one of the first action tasks conflicts with at least one second action task being currently executed according to the action sequence until it is determined that any one of the first action tasks conflicts with the second action task, so as to obtain an executable first action task sequence; the second action task is executed by a second acting role, and the action sequence of the second acting role takes precedence over that of the first acting role;
[0117] The parallel execution module 13 is used to simultaneously execute each of the first action tasks in the executable first action task sequence while continuing to execute the second action task.
[0118] Among them, the action queue module AQM 11 (Action Queue Manager) is specifically used to manage and update the action order of the character. The conflict detection module CDM 12 (Conflict Detection Module) is specifically used to analyze potential conflicts between character actions. The parallel execution module PEM 13 (Parallel Execution Module) is specifically used to coordinate and execute the simultaneous actions of multiple characters.
[0119] In some embodiments, the conflict includes character conflict. The conflict detection module 12 is further used to:
[0120] Obtain at least one second target character corresponding to at least one of the second action tasks;
[0121] When any of the second target characters and any of the first action characters are the same character, determine that the first action task and the second action task conflict.
[0122] In some embodiments, the conflict further includes execution result conflict. The conflict detection module 12 is further used to:
[0123] When at least one of the second target characters and at least one of the first action characters are not the same character, obtain at least one first target character corresponding to at least one of the first action tasks;
[0124] When it is recognized that the second target character and the first target character are the same character, respectively obtain the first action task parameters and the second action task parameters corresponding to the first action task and the second action task;
[0125] When the fusion result of the first action task parameters and the second action task parameters exceeds a preset range, determine that the first action task and the second action task conflict.
[0126] In some embodiments, the parallel execution module 13 is further used to:
[0127] Obtain the second quantity of the second action task being currently executed and the first quantity of the first action tasks in the executable first action task sequence;
[0128] When the sum of the first quantity and the second quantity is greater than a preset quantity, obtain the number of executable tasks;
[0129] Determine at least one of the executable first action tasks based on the number of executable tasks according to the action sequence of the first action role.
[0130] In some embodiments, as Figure 7 shown, the multi-role and multi-task parallel execution device 10 in the turn-based competitive application further includes: a visual rendering module 14,
[0131] The visual rendering module 14 is configured to obtain the starting animation, release animation, and finishing animation corresponding to each of the first action tasks in the executable first action task sequence;
[0132] During the execution of the second action task, for each of the first action tasks, sequentially execute the starting animation, the release animation, and the finishing animation.
[0133] In some embodiments, the visual rendering module 14 is further configured to:
[0134] Respectively obtain the priority of each of the first action tasks; the priority includes the attribute priority of the action task relative to the first action role and the order priority of the first action role in the action queue;
[0135] When at least one of the first action tasks has the attribute priority, sequentially display at least one of the first action tasks having the attribute priority according to the order priority.
[0136] In some embodiments, as Figure 7 shown, the multi-role and multi-task parallel execution device 10 in the turn-based competitive application further includes: a balance adjustment module 15,
[0137] The balance adjustment module 15 is configured to, in response to the end of execution of any action task, update the speed configuration data corresponding to each role based on the action task;
[0138] Based on the speed configuration data corresponding to each role, update the action queue to be acted on in the current round.
[0139] It should be understood that the various modules or the modules and references described in the multi-role and multi-task parallel execution device 10 in the turn-based competitive application Figure 2Each step in the described method corresponds. Thus, the operations and features described above for the method also apply to the multi-role, multi-task parallel execution device 10 in the turn-based competitive application and the modules included therein, which will not be elaborated here. The multi-role, multi-task parallel execution device 10 in the turn-based competitive application can be pre-implemented in the browser or other secure applications of the electronic device, or can be loaded into the browser or its secure application of the electronic device by means such as downloading. The corresponding modules in the multi-role, multi-task parallel execution device 10 in the turn-based competitive application can cooperate with the modules in the electronic device to implement the solution of the embodiments of the present application.
[0140] Among the several modules or units mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0141] The following refers to Figure 8 , Figure 8 shows a schematic structural diagram of a computer system of an electronic device or a server suitable for implementing the embodiments of the present application,
[0142] As Figure 8 shown, the computer system includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage section 808 into the random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation instructions of the system are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. The input / output (I / O) interface 805 is also connected to the bus 804.
[0143] The following components are connected to the I / O interface 805; an input section 806 including a keyboard, a mouse, etc.; an output section 807 including such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that the computer program read from it can be installed into the storage section 808 as needed.
[0144] In particular, according to the embodiments of the present application, the above refers to the flowchartFigure 2 The described process can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the method shown in the flowchart. In such an embodiment, the computer program contains program codes for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above functions defined in the system of the present application are executed.
[0145] It should be noted that the computer-readable medium shown in the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0146] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operation instructions of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two connected blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that executes the specified functions or operation instructions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0147] The units or modules involved in the embodiments described in the present application can be implemented in software or in hardware. The described units or modules can also be provided in a processor. For example, it can be described as: a processor includes an action queue module, a conflict detection module, and a parallel execution module. Among them, the names of these units or modules do not constitute a limitation on the units or modules themselves in some cases. For example, the action queue module can also be described as "real-time obtaining the action queue to be acted on in the current round; the action queue includes at least one first action role to be acted on, the action order of the first action role, and the first action task to be executed by the first action role".
[0148] As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments, or may exist separately without being assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are executed by one or more processors, they are used to execute the method for parallel execution of multiple roles and multiple tasks in the turn-based competitive application described in the present application.
[0149] The above description is only a preferred embodiment of the present application and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the foregoing disclosure concept. For example, technical solutions formed by mutually replacing the above features with (but not limited to) technical features having similar functions disclosed in the present application.
Claims
1. A method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application, characterized in that: include: Acquire in real time an action queue to be acted in the current round; the action queue includes at least one first action role to be acted, an action sequence of at least one first action role, and at least one first action task to be performed by each first action role; According to the action sequence, it is determined in sequence whether at least one of the first action tasks conflicts with at least one second action task currently being executed, until it is determined that any of the first action tasks conflicts with the second action task, thereby obtaining an executable first action task sequence; The second action task is performed by a second action role, and the action sequence of the second action role takes precedence over that of the first action role; While continuing to execute the second action task, each of the first action tasks in the executable first action task sequence is executed simultaneously.
2. The method for executing multiple roles and multiple tasks in parallel in a turn-based competitive application according to claim 1, characterized in that: The conflict includes a role conflict, and the sequentially determining whether at least one of the first action tasks conflicts with at least one second action task currently being executed includes: Acquire at least one second target role corresponding to at least one of the second action tasks; When any of the second target characters and any of the first action characters are the same character, it is determined that the first action task conflicts with the second action task.
3. The method for executing multiple roles and multiple tasks in parallel in a turn-based competitive application according to claim 2, characterized in that: The conflict also includes an execution result conflict, and the method further includes: When at least one of the second target characters and at least one of the first action characters are not the same character, obtaining at least one first target character corresponding to at least one of the first action tasks; When it is identified that the second target role and the first target role are the same role, first action task parameters and second action task parameters corresponding to the first action task and the second action task are respectively obtained; When a fusion result of the first action task parameter and the second action task parameter exceeds a preset range, it is determined that the first action task and the second action task conflict.
4. The method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application according to claim 1, characterized in that: Also includes: Acquire a second number of the second action tasks currently being executed and a first number of the first action tasks in the executable first action task sequence; When the sum of the first number and the second number is greater than a preset number, obtaining the number of executable tasks; According to the action sequence of the first action role, the executable first action task sequence is determined based on the number of executable tasks.
5. The method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application according to claim 1, characterized in that: The simultaneously executing each of the first action tasks in the executable first action task sequence includes: Obtaining a starting animation, a releasing animation, and a closing animation corresponding to each first action task in the executable first action task sequence; During the execution of the second action task, for each of the first action tasks, the starting animation, the releasing animation and the ending animation are executed in sequence.
6. The method for executing multiple roles and multiple tasks in parallel in a turn-based competitive application according to claim 5, characterized in that: The simultaneously executing each of the first action tasks in the executable first action task sequence also includes: respectively obtaining the priority of each of the first action tasks; the priority includes the attribute priority of the action task relative to the first action role and the order priority of the first action role in the action queue; When at least one of the first action tasks has the attribute priority, the at least one of the first action tasks having the attribute priority is displayed in sequence according to the order priority.
7. The method for executing multiple roles and multiple tasks in parallel in a turn-based competitive application according to claim 1, characterized in that: Also includes: In response to the completion of any action task, updating the speed configuration data corresponding to each character based on the action task; Based on the speed configuration data corresponding to each character, the action queue to be acted in the current round is updated.
8. A device for parallel execution of multiple roles and tasks in a turn-based competitive application, characterized in that: include: An action queue module is used to obtain in real time an action queue to be acted in the current round; the action queue includes at least one first action role to be acted, an action sequence of the first action role, and at least one first action task to be performed by the first action role; a conflict detection module, configured to determine, in accordance with the action sequence, whether at least one of the first action tasks conflicts with at least one of the second action tasks currently being executed, until it is determined that any of the first action tasks conflicts with the second action task, thereby obtaining an executable first action task sequence; The second action task is performed by a second action role, and the action sequence of the second action role takes precedence over that of the first action role; The parallel execution module is used to simultaneously execute each of the first action tasks in the executable first action task sequence while continuing to execute the second action task.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application as described in any one of claims 1-7 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements a method for parallel execution of multiple roles and multiple tasks in a turn-based competitive application as described in any one of claims 1-7.
Citation Information
Patent Citations
Apparatus and method for simultaneous turn-based play board game
CN101743042A
Method, device and equipment for sorting confrontation skills of virtual characters
CN116099193A