Game task processing method, device and electronic equipment
Edit task objects and actions through the graphical user interface, combine and generate conditional events, and configure input and output events. This solves the problem of high task generation efficiency and cost in traditional online game task systems, and achieves flexible and efficient task generation.
Patent Information
- Application Number
- CN202011255743.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-11
AI Technical Summary
Traditional online game task systems have high limitations in task generation efficiency and cost. Planners need to cooperate in depth with code engineers, resulting in high task generation costs and low efficiency.
Edit tasks through the graphical user interface, determine target task objects and actions, combine to generate conditional events, configure input event groups and output events, and realize flexible logic construction of tasks without complex programming.
It reduces the cost of task generation, improves the efficiency of task generation, and increases the flexibility and scalability of task generation.
Smart Images

Figure CN112370772B
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device and electronic device for processing game tasks. Background Art
[0002] At present, there are many tasks involved in traditional online games, including main tasks, side tasks, daily tasks, weekly tasks, holiday activity tasks, etc. These tasks are usually implemented through the task system. There are two main processes for implementing the task system: (1) table allocation: planners allocate all tasks to a table, where each task is a row. This method is relatively rigid and cannot be used to expand tasks; (2) specifying types: a template is made for each task type in advance, and planners can specify multiple tasks to use the same template. This method can achieve template reuse for similar tasks, which improves the efficiency of task generation to a certain extent. However, this implementation method that relies on task templates requires planners to implement the corresponding task type logic in the code every time they add a new task type. This process requires in-depth cooperation and participation between planners and code engineers, resulting in high cost of task generation and low efficiency of task generation. Summary of the invention
[0003] The purpose of this application is to provide a method, device and electronic device for processing game tasks to reduce the cost of task generation and improve the efficiency of task generation.
[0004] An embodiment of the present application provides a method for processing a game task, wherein the method includes: responding to a task editing operation on a graphical user interface, determining a target task object and a target task action; combining the target task object and the target task action to generate at least one conditional event; generating an input event group for the game task based on the at least one conditional event, wherein the input event group is used to configure a trigger condition for the game task; generating an output event for the game task based on the input event group, wherein the output event is a game event executed in the game according to the trigger condition.
[0005] The above-mentioned task editing operation includes a first selection operation and a second selection operation; responding to the task editing operation on the graphical user interface, determining the target task object and the target task action, including: responding to the first selection operation on the graphical user interface, determining the target task object from an object set; responding to the second selection operation on the graphical user interface, determining the target task action from an action set.
[0006] The above-mentioned graphical user interface includes a first selection control corresponding to an object set and a second selection control corresponding to an action set; in response to a first selection operation on the graphical user interface, a target task object is determined from the object set, including: in response to a first trigger operation on the first selection control, the object set is displayed; in response to the first selection operation for the object set, the object selected by the first selection operation is used as the target task object; in response to a second selection operation on the graphical user interface, a target task action is determined from the action set, including: in response to a second trigger operation on the second selection control, the action set is displayed; in response to a second selection operation for the action set, the action selected by the second selection operation is used as the target task action.
[0007] When generating multiple conditional events, generating an input event group for the game task according to at least one conditional event includes: generating an input event group for the game task in response to a logical relationship combination operation for the multiple conditional events.
[0008] The above-mentioned response is for the logical relationship combination operation of multiple conditional events, and generates the input event group of the game task, including: responding to the logical unit selection operation for multiple conditional events, establishing connections between multiple conditional events and the selected logical units, and obtaining the input event group of the game task; wherein the logical unit includes an AND unit, an OR unit, a NOT unit and an AND unit in sequence, wherein the AND unit in sequence is used to limit the occurrence order between the conditional events connected with the AND unit in sequence.
[0009] The above-mentioned configuration of the triggering condition of the game task includes: configuring the game instructions corresponding to the triggering condition.
[0010] The above-mentioned combining the target task object and the target task action to generate at least one conditional event includes: combining the target task object and the target task action with a subject-predicate structure and / or a subject-predicate-object structure to obtain at least one conditional event.
[0011] The above-mentioned subject-predicate structure combination of the target task object and the target task action to obtain at least one conditional event includes: using the target task object as the subject and the target task action as the predicate to generate a conditional event of the subject-predicate structure.
[0012] The above-mentioned target task object includes a first task object corresponding to the subject and a second task object corresponding to the object; the target task object and the target task action are combined into a subject-predicate-object structure to obtain at least one conditional event, including: taking the first task object as the subject, the target task action as the predicate, and the second task object as the object, to generate a conditional event with a subject-predicate-object structure.
[0013] After the input event group of the game task is generated, the method further includes: configuring a signal monitoring method for each conditional event according to each conditional event in the input event group; wherein the signal monitoring method is used to monitor whether the trigger condition corresponding to the input event group occurs during the game process; the signal monitoring method includes a pulse signal monitoring method and a step signal monitoring method.
[0014] The above-mentioned graphical user interface includes a task executor for game tasks; based on the input event group, the output event of the game task is generated, including: responding to the configuration operation for the task executor, connecting the input event group to the input end of the task executor, configuring the output event of the game task for the output end of the task executor, and obtaining a target task node including the input event group, the task executor and the output event.
[0015] The target task node is a node in the overall task; the method further includes: in response to a connection operation on each target task node in the overall task, connecting each target task node to obtain the overall task.
[0016] The above method also includes: monitoring whether the input events in the input event group meet the triggering conditions of the game task; and executing the output event in response to the monitoring result that the triggering conditions of the game task are met.
[0017] The conditional events in the above-mentioned input event group correspond to signal monitoring methods, and the signal monitoring methods include: pulse signal monitoring method and step signal monitoring method; monitoring whether the input events in the input event group meet the triggering conditions of the game task, including: for the input events in the input event group, the following operations are performed: applying the signal monitoring method corresponding to the conditional events contained in the input event to monitor whether the conditional event occurs; judging whether the input event occurs based on the logic units configured for each conditional event in the input event and the monitoring results of each conditional event; if all the input events in the input event group occur, it is determined that the triggering conditions of the game task are met.
[0018] The above-mentioned step of monitoring whether the conditional event occurs by using the signal monitoring method corresponding to the conditional event contained in the input event, includes: monitoring the conditional event by using the signal monitoring method corresponding to the conditional event contained in the input event; if the conditional event corresponds to a pulse signal monitoring method, when the conditional event is monitored to occur, determining that the conditional event has occurred, and stopping monitoring the conditional event; if the conditional event corresponds to a step signal monitoring method, continuously monitoring whether the conditional event occurs according to the monitoring interval corresponding to the step signal monitoring method, until all conditional events in the input event have occurred, and then stopping continuous monitoring.
[0019] The above-mentioned step of judging whether the input event occurs according to the logical units configured for each conditional event in the input event and the monitoring results of each conditional event, comprises: determining the logical units configured for each conditional event in the input event; the logical units comprise AND units, OR units, NOT units and AND units in sequence, wherein the AND units in sequence are used to limit the occurrence order between the conditional events connected with the AND units in sequence; when the monitoring results of each conditional event in the input event all satisfy the logical relationship of the configured logical units, it is determined that the input event occurs.
[0020] In a second aspect, an embodiment of the present application further provides a device for processing a game task, wherein the device comprises: a response module, used to respond to a task editing operation on a graphical user interface, and determine a target task object and a target task action; a combination module, used to combine the target task object and the target task action to generate at least one conditional event; a first generation module, used to generate an input event group for the game task based on at least one conditional event, wherein the input event group is used to configure the triggering condition of the game task; and a second generation module, used to generate an output event for the game task based on the input event group, wherein the output event is a game event executed in the game according to the triggering condition.
[0021] The above device also includes: a monitoring module, which is used to monitor whether the input events in the input event group meet the triggering conditions of the game task; and a response module, which is used to respond to the monitoring results that meet the triggering conditions of the game task and output an output event.
[0022] In a third aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above method.
[0023] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above method.
[0024] The embodiment of the present application provides a method, device and electronic device for processing a game task, wherein, in response to a task editing operation on a graphical user interface, a target task object and a target task action are determined; the target task object and the target task action are combined to generate at least one conditional event; according to at least one conditional event, an input event group of the game task is generated; according to the input event group, an output event of the game task is generated, and the output event is a game event executed in the game according to the trigger condition of the configured game task. The method can quickly determine that the target task object and the target task action constitute a conditional event by performing a simple task editing operation on the graphical user interface, further, an input event group that can be used to configure the trigger condition of the game task is generated by at least one conditional event, and a corresponding output event is generated based on the input event group, which can flexibly realize the basic logic construction of the task, and the generation of the task can be completed without complex programming, which reduces the task generation cost to a certain extent and improves the task generation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 A flowchart of a method for processing a game task provided in an embodiment of the present application;
[0027] Figure 2 A schematic diagram of a graphical user interface provided in an embodiment of the present application;
[0028] Figure 3 A flowchart of another method for processing a game task provided in an embodiment of the present application;
[0029] Figure 4 A flowchart of another method for processing a game task provided in an embodiment of the present application;
[0030] Figure 5 A schematic diagram of the structure of a task executor provided in an embodiment of the present application;
[0031] Figure 6 A schematic diagram of the structure of another task executor provided in an embodiment of the present application;
[0032] Figure 7 A schematic diagram of an interface of a task editor provided in an embodiment of the present application;
[0033] Figure 8 A schematic diagram of an interface for creating a task start node provided in an embodiment of the present application;
[0034] Fig. 9 A schematic diagram of the structure of a device for processing a game task provided in an embodiment of the present application;
[0035] Fig.10 A schematic diagram of the structure of another device for processing game tasks provided in an embodiment of the present application;
[0036] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The technical solution of the present application will be described clearly and completely below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0038] Tasks have become an indispensable part of the game. They can help players clarify game goals, discover new functions in the game, and guide players to continue playing. In order to reduce the cost of task generation and improve the efficiency of task generation during the task generation process, the embodiments of the present application provide a method, device, and electronic device for processing game tasks, which can be arbitrarily combined into input event groups according to target task objects and target task actions, and generate corresponding output events based on the input event groups. Task generation can be completed without complex programming, and the flexibility of task generation is increased to a certain extent, thereby reducing the cost of task generation and improving the efficiency of task generation. The following is described by embodiments.
[0039] This embodiment provides a method for processing a game task. Figure 1 The flowchart of a method for processing a game task is shown in FIG. 1 , and the method is applied to an electronic device. The method specifically comprises the following steps:
[0040] Step S102, responding to the task editing operation on the graphical user interface, determining a target task object and a target task action;
[0041] The above electronic device (not limited to smart terminals or portable terminals) can provide a graphical user interface capable of performing editing operations. Usually, the graphical user interface is integrated into the task system or achievement system of the game for use. The tasks created on the graphical user interface of the task system are tasks used in the game process, such as tasks for players to kill non-player characters, obtain weapons, etc.; and the tasks created on the graphical user interface of the achievement system are tasks used in non-game processes, such as tasks for players to upgrade, players to collect game coins, etc. It can be understood that tasks are an external manifestation. In this embodiment, tasks can be specifically set according to game needs and are not limited here.
[0042] In actual use, the above-mentioned graphical user interface can be understood as a task generation editing interface. By performing task editing operations on the graphical user interface, the target task object and the target task action can be edited from an object set including multiple objects and an action set including multiple actions, respectively. The above-mentioned object set and action set are pre-configured and can be expanded as needed in actual applications. The above-mentioned task editing operation can be an input operation, for example: the user can directly input the target task object or target task action on the graphical user interface; the task editing operation can also be a selection operation, for example: selecting the target task object from an object set of multiple objects, or selecting the target task action from an action set of multiple actions, which is not specifically limited here.
[0043] For ease of understanding, take the task editing operation as an example, Figure 2 An interface diagram of a graphical user interface is shown. In order to enhance the readability of the graphical user interface, the graphical user interface can be pre-divided into the object selection area 200 and the planning area 201, wherein the object selection area 200 includes an object set and an action set; the object selection area 200 is an area for performing task editing operations to determine target task objects and target task actions, and the planning area 201 is an area for displaying and editing target task objects and target task actions, which will be described in detail later.
[0044] Step S104, combining the target task object and the target task action to generate at least one conditional event;
[0045] The state changes of player characters, items, non-player characters, environment, etc. in the game can be called events. In essence, the evolution of the game world can be seen as the generation of a series of events; the conditional events in this embodiment are the events in the above-mentioned game evolution process.
[0046] The above conditional events can be obtained by combining the above target task objects and target task actions according to the needs of the game. It should be noted that a statement composed of the target task object and the target task action is a conditional event, wherein multiple different conditional events can be generated by using different combinations of target task objects and target task actions. For example, if the target task object is "player" and the target task actions are "obtaining items" and "upgrading", then "player upgrading" constitutes one conditional event, and "player obtaining items" constitutes another conditional event.
[0047] The conditional event generation method based on object sets and action sets, when planning and designing new objects or new actions, only needs to add new objects to the object set or add new verbs to the action set, and the relevant conditional events can be generated, which is very convenient for expansion.
[0048] Step S106: Generate an input event group of the game task according to at least one conditional event, wherein the input event group is used to configure the triggering condition of the game task.
[0049] The above input event group is a combination of multiple input events, each of which is composed of at least one conditional event with a logical relationship. For example, the conditional events are A, B, C, D and E, where conditional events A and B are in a logical and relationship, forming an input event 1, i.e. A&&B; conditional events C and D are in a logical or relationship, forming an input event 2, i.e. C‖D; conditional event E is an input event 3 composed of a logical negation, i.e. !E. Then input event 1, input event 2 and input event 3 are an input event group. The number of input events included in the input event group is related to the tasks to be achieved by the game and is not limited here.
[0050] Optionally, configuring the triggering condition of the game task includes: configuring a game instruction corresponding to the triggering condition;
[0051] The configured trigger conditions can be presented in the form of game instructions. After the input event group is generated, the corresponding game instructions will be generated synchronously on the background program side. In the subsequent game process, the corresponding game tasks will be triggered by the game instructions. In this way, it is convenient for users to design game tasks, and even those who do not understand programming can realize the basic logic construction of tasks through the above method.
[0052] Step S108, generating an output event of the game task according to the input event group; the output event is a game event executed according to the trigger condition in the game.
[0053] After obtaining the input event group and output event, a task design is considered completed.
[0054] In order to enable the output of task results when each input event of the input event group occurs, a corresponding output event can be generated according to the input event group. The output event is the trigger condition of the game task configured according to the input event group in the game, and the corresponding executed game event (game execution result). It should be noted that different output events can be generated according to different occurrences of the input event group to realize the construction of the basic logic of the task.
[0055] The embodiment of the present application provides a method for processing a game task, wherein, in response to a task editing operation on a graphical user interface, a target task object and a target task action are determined; the target task object and the target task action are combined to generate at least one conditional event; according to at least one conditional event, an input event group of the game task is generated; according to the input event group, an output event of the game task is generated, and the output event is a game event executed in the game according to the trigger condition of the configured game task. The method can quickly determine that the target task object and the target task action constitute a conditional event by performing a simple task editing operation on the graphical user interface, further, an input event group that can be used to configure the trigger condition of the game task is generated by at least one conditional event, and a corresponding output event is generated based on the input event group, which can flexibly realize the basic logic construction of the task, and there is no need to perform complex programming to complete the generation of the task, which reduces the task generation cost to a certain extent and improves the task generation efficiency.
[0056] The above-mentioned object collection may include a player-controlled character subset, a non-player-controlled character subset and an item subset, wherein the player-controlled character subset pre-stores objects that can be operated by game players, such as the game character itself controlled by the player or the mount corresponding to the character, etc., the non-player-controlled character subset pre-stores objects that can be operated by non-game players, such as other characters except the player's own character, and the item subset pre-stores items.
[0057] In actual use, in order to facilitate the search and management of objects, the objects in the object collection can be classified and stored according to the object category to which they belong. For example, the objects in the player-controlled character sub-collection and the objects in the non-player-controlled character sub-collection can be classified and stored in the two object categories of animals and plants, and the objects in the item sub-collection can be classified and stored in the three object categories of weapons, food and clothing. Among them, the object category and the object can be set as needed and are not limited here. It should be noted that multiple objects can be pre-stored in each sub-collection, and the part of speech of each object stored in the object collection is a noun part of speech.
[0058] The above action set includes: killing, being killed, death, obtaining items and upgrading, etc. It should be noted that the part of speech of each word stored in the action set is a verb, and the verbs in the action set can be set according to actual needs and are not limited here.
[0059] like Figure 2 As shown, each object in the above object set (player, rabbit, non-player) and each verb in the action set (kill, obtain item, upgrade) are displayed in the object selection area 200. When the above task editing operation includes a first selection operation and a second selection operation, the process of determining the target task object and the target task action can be implemented by steps A1 to A2:
[0060] Step A1, in response to a first selection operation on the graphical user interface, determining a target task object from an object set;
[0061] For example, the planner can perform a first selection operation such as clicking or dragging the object to be selected, so as to select the target task object from the object set, and the selected target task object can be displayed in the planning area 201 of the graphical user interface in the form of a box, and the name or logo corresponding to the target task object can be displayed on the box.
[0062] If the first selection operation is a click operation, the planner clicks on the object to be selected to obtain the target task object, and displays the task object in the planning area 201 in the form of a box.
[0063] If the first selection operation is a drag operation, the planner can directly drag the object to be selected into the planning area 201, and display the dragged object, ie, the target task object, in the form of a box.
[0064] Step A2, in response to a second selection operation on the graphical user interface, determining a target task action from the action set.
[0065] The planner can perform a second selection operation such as a click operation or a drag operation on the verb to be selected, determine the target task action from the action set, and display the determined target task action in the form of a box in the planning area 201 of the graphical user interface, and the name or logo corresponding to the task action can be displayed on the box. The operation process of the above second selection operation is the same as that of the first selection operation, and will not be repeated here.
[0066] like Figure 2As shown, in order to make the graphical user interface neat and beautiful, the first selection control 202 corresponding to the object set and the second selection control 203 corresponding to the action set can be drop-down menu controls. When planners do not need to select target task objects and target task actions, the objects in the object set and the verbs in the action set can be hidden, that is, not displayed in the object selection area 200.
[0067] When it is necessary to determine the target task object from the object set, the object set can be displayed in response to a first trigger operation on the first selection control; in response to a first selection operation on the object set, the object selected by the first selection operation is used as the target task object;
[0068] When the planner performs a first trigger operation such as a touch operation or a long press operation on the first selection control 202, the objects included in the object set can be displayed in the object selection area 200 through a drop-down list. Then, the planner can perform a first selection operation such as a click operation or a drag operation on the object to be selected, so as to select the target task object from the object set.
[0069] When it is necessary to determine the target task action from the action set, the action set can be displayed in response to the second trigger operation on the second selection control; in response to the second selection operation for the action set, the action selected by the second selection operation is used as the target task action.
[0070] When the planner performs a second trigger operation such as a touch operation or a long press operation on the second selection control 203, the verbs included in the action set can be displayed in the object selection area 200 through a drop-down list. Then, the planner can perform a second selection operation such as a click operation or a drag operation on the verb to be selected, so that the target task verb can be selected from the verb set.
[0071] This embodiment provides another task design method in a game, which is implemented on the basis of the above embodiment; this embodiment focuses on describing the specific implementation method of generating at least one conditional event based on the target task object and the target task action, and generating an input event group for the game task. Figure 3 FIG. 1 is a flowchart of another method for processing a game task, and the method in this embodiment includes the following steps:
[0072] Step S302, responding to the task editing operation on the graphical user interface, determining a target task object and a target task action;
[0073] Step S304, performing subject-predicate structure combination and / or subject-predicate-object structure combination on the target task object and the target task action to obtain at least one conditional event;
[0074] In this embodiment, the conditional event of the subject-predicate structure is a conditional event generated by the combination of the subject and the predicate, and the conditional event of the subject-predicate-object structure is a conditional event generated by the combination of the subject, the predicate and the object. In this embodiment, the conditional event of the subject-predicate structure is generated with the target task object as the subject and the target task action as the predicate. For example, the above-mentioned "player upgrade" and "player obtains items" are both conditional events of the subject-predicate structure composed of the subject "player" and the predicates "upgrade" and "obtain items".
[0075] Typically, the target task object determined in the object set includes a first task object corresponding to the subject and a second task object corresponding to the object;
[0076] In order to distinguish whether the target task object determined in the object set is the first task object or the second task object, in actual use, the control corresponding to each object in the above object set includes a subject selection control and an object selection control; Figure 2 As shown, the subject selection control can be set on the left side of the control where each object is located, and the object selection control can be set on the right side of the control where each object is located. The positions of the subject selection control and the object selection control can be set according to actual needs and are not limited here.
[0077] Through the above-mentioned subject selection control and object selection control, it can be determined whether the object selected from the object set is used as a subject object or as an object object. Specifically, in response to a subject selection operation on the subject selection control, a first task object is determined from the object set; in response to an object selection operation on the object selection control, a second task object is determined from the object set.
[0078] For example, when selecting "player" in the object set as the first task object, the planner can perform subject selection operations such as clicking or dragging the subject selection control corresponding to the "player" to be selected, so as to determine the first task object in the object set, and display the selected first task object in the planning area 201 of the graphical user interface in the form of a box node.
[0079] If "player" in the object set is selected as the second task object, the planner can perform object selection operations such as clicking or dragging on the object selection control corresponding to the "player" to be selected, so as to determine the second task object in the object set, and display the selected second task object in the planning area 201 of the graphical user interface in the form of a box node.
[0080] Since the process of determining the subject object when generating a conditional event of a subject-predicate structure is the same as above, it will not be repeated here. The conditional event of the subject-predicate-object structure is generated by taking the first task object as the subject, the target task action as the predicate, and the second task object as the object.
[0081] For example, the first task object determined by the subject selection control is "player", the target task action determined by the second selection operation is "kill", and the second task object determined by the object selection control is "rabbit", then "player kills rabbit" constitutes a conditional event of a subject-predicate-object structure.
[0082] Step S306, generating an input event group of the game task in response to the logical relationship combination operation of the plurality of conditional events;
[0083] Among them, the logic unit includes the unit And, the unit Or, the unit Not and the unit Sequence, wherein the unit Sequence is used to limit the occurrence order of the conditional events connected with the unit Sequence; when the target task object and / or the target task action are multiple, the conditional events that can be composed are also multiple. When there are multiple conditional events, the planner can select the above logic unit through the logic unit selection operation. For example, the conditional events are "player upgrade", "player obtains items" and "player kills rabbits". Through the logic unit selection operation, the unit is selected to connect "player upgrade" and "player obtains items" with a logical relationship and form the first input event; through the logic unit selection operation, the unit is selected to connect "player upgrade" and "player obtains items" with a logical relationship or form the second input event; through the logic unit selection operation, the unit is selected to connect "player upgrade", "player obtains items" and "player kills rabbits" with a logical relationship and form the third input event; the above three input events constitute the input event group input into the task executor. Among them, the number of input events in the input event group needs to be specifically set according to the game task, and is not limited here.
[0084] The above-mentioned conditional events connected to the units in sequence need to all occur and the order of occurrence is also a pre-defined order. Continuing to use the above-mentioned three input events as an example, each input event formed by the logic unit selection operation can be integrated into its corresponding box, and, in order to facilitate the search of planners, there is a logo of the corresponding input event on the formed box, and the name of the input event can be used as the logo, for example, the first input event, the second input event and the third input event are displayed in text on the corresponding box, or the local time of completing the input event is used as an identifier for effective marking.
[0085] Planners can implement the constraint order of the input event by sorting the conditional events corresponding to the input event. The sorting operation can be to set serial numbers for the conditional events, to arrange the conditional events in the constraint order, or to connect the conditional events in the constraint order.
[0086] Step S308, generating an output event of the game task according to the input event group;
[0087] The above-mentioned graphical user interface includes a task executor (Trigger) of the game task, and the task executor is used to monitor the occurrence of the input event group and execute the output event.
[0088] The implementation process of the above S308 is: responding to the configuration operation for the task executor, connecting the input event group to the input end of the task executor, configuring the output event of the game task for the output end of the task executor, and obtaining the target task node including the input event group, task executor and output event.
[0089] The output event corresponding to the input event group can be obtained by configuring the output event of the game task for the output end of the task executor. The input event group obtained in step S306 is used as an example for explanation. For example, when the above three input events are reached at the same time, the output events of issuing items and upgrading levels can be configured. If at least one of the input events is not reached, the output event of player failure can be configured. Among them, the display form of the output event can be set to display to the game player in the form of text, or it can be set to display to the game player in the form of animation. There is no restriction on the output event here.
[0090] If the task executor detects that all three input events in the above input event group connected to the input end of the task executor have occurred, the above output event can be output; if it detects that at least one of the three input events in the above input event group has not occurred, the above output event will not be output.
[0091] Specifically, if the input event group includes multiple input events, then the input events are in an "and" logical relationship. If all input events occur, it is considered that the input event group meets the conditions and the above output events can be output. Whether an input event occurs depends on the conditional event that constitutes the input event and the logical unit corresponding to the conditional event. Continuing with the previous example, the input event group includes input event 1, input event 2, and input event 3; input event 1 is A&&B, input event 2 is C‖D, and input event 3 is !E. Assuming that the configured output event is that the player obtains equipment 1, the input of the task is input event 1, input event 2, and input event 3; the output is that the player obtains equipment 1. After the above input event 1, input event 2, and input event 3 all occur, the player obtains equipment 1.
[0092] Usually, multiple tasks in a game are related to each other, and these related tasks can constitute a total task. To facilitate the operation of planners, the task containing the input event group, task executor and output event can be regarded as a target task node, and different target task nodes can be combined into a new task or called a total task.
[0093] Based on this, the above method also includes: responding to the connection operation for each target task node, connecting each task node, and obtaining the total task. In this way, the creation process of the total task can be completed. Of course, a game may include multiple total tasks. This creation method is relatively simple and intuitive.
[0094] Among them, Figure 2 After right-clicking the mouse to create a blank position in the planning area 201, a creation menu corresponding to the task node will appear in the planning area 201, and the target task node can be created through the creation menu.
[0095] Each target task node needs to have an input event group. The input event group can be obtained based on the object set and action set displayed in the object selection area 200. Specifically, execute step S302 to determine the target task object from the object set, target determine the task action from the action set, and execute steps S304 and S306 to obtain the input event group connected to the input end of the task executor.
[0096] For the output event of the target task node, an input dialog box can be displayed in the object selection area 200, and the planner can input the output event in the input dialog box. The configuration operation in the specific implementation process in step S308 can be understood as the operation of inputting the output event in the input dialog box. After completing the output event input operation, the output event can be displayed in the planning area 201 in the form of a box to complete the configuration of the corresponding output event for the input event group.
[0097] The above-mentioned total task can be considered to be composed of multiple subtasks, and the subtask can be understood as a task consisting of an input event group and its corresponding output event, and a task executor. Each task node can be connected by a connection operation (for example, a wiring operation). In actual use, multiple task nodes can be connected in series or in parallel, and the specific connection method can be flexibly selected based on the storyline in the game scene. In practical applications, two pins "in" and "out" can be configured for the task node, and the order between each task node can be realized by connecting the "in" and "out" pins on the task node. For example, the total task includes task nodes 1, task nodes 2, and task nodes 3 connected in sequence; then the "out" pin of task node 1 is connected to the "in" pin of task node 2, and the "out" pin of task node 2 is connected to the "in" pin of task node 3.
[0098] At the same time, in order to further reduce the repetitive operations of planners, the task start node, task end node, task failure node and other nodes that do not change with the task change can be pre-configured without manual editing by planners. This method of using the created task nodes to build the total task does not require complex code programming to generate tasks, which can reduce the cost of task generation to a certain extent and improve the efficiency of task generation.
[0099] The above-mentioned game task processing method provided by the embodiment of the present invention can quickly and flexibly determine the conditional events by combining the target task object and the target task action with a subject-predicate structure and / or a subject-predicate-object structure. Planners can perform logical relationship combination operations on these conditional events to generate an input event group, and configure corresponding output events based on the input event group, so as to flexibly edit the tasks, thereby improving the scalability and flexibility of the tasks.
[0100] This embodiment provides another method for processing game tasks, which is implemented on the basis of the above embodiment; this embodiment focuses on describing the specific implementation method of monitoring whether an input event occurs. Figure 4 FIG. 1 is a flowchart of another method for processing a game task, and the method for processing a game task in this embodiment includes the following steps:
[0101] Step S402, responding to the task editing operation on the graphical user interface, determining a target task object and a target task action;
[0102] Step S404, combining the target task object and the target task action to generate at least one conditional event;
[0103] Step S406, generating an input event group for the game task according to at least one conditional event;
[0104] Step S408, according to each conditional event in the input event group, configure a signal monitoring mode for each conditional event; wherein the signal monitoring mode is used to monitor whether the triggering condition corresponding to the input event group occurs during the game process; the signal monitoring mode includes a pulse signal monitoring mode and a step signal monitoring mode;
[0105] The task executor is responsible for configuring the signal monitoring mode for each conditional event. The task executor can automatically configure the corresponding signal monitoring mode according to the task action in the generated conditional event. The signal monitoring mode is divided into pulse signal monitoring mode and step signal monitoring mode. Different signal monitoring modes monitor input events differently.
[0106] Generally, the pulse signal monitoring method is characterized by being non-traceable and non-verifiable. For example, the rabbit killed by the conditional event "player kills rabbit" cannot be resurrected after the conditional event occurs, and there is no need for the task executor to continue monitoring the conditional event after the conditional event occurs.
[0107] The characteristic of the step signal monitoring method is that it can be traced back and verified. For example, for the conditional event "the player obtains an item", you can directly verify whether there is such an item in the backpack. If so, the conditional event is achieved.
[0108] The configured signal monitoring method allows the task executor to monitor whether the trigger conditions corresponding to the input event group occur; the input events in the above input event group are events after the logic unit selection operation, such as the above first input event, the second input event and the third input event. Among them, a pulse signal monitoring method is configured for the "player upgrade" conditional event in the second input event, and a step signal monitoring method is configured for the "player obtains items" conditional event. If the task executor detects that the "player upgrade" conditional event is achieved through the pulse signal monitoring method, and detects that the "player obtains items" conditional event is also achieved through the pulse signal monitoring method, it indicates that the above second input event has occurred. If at least one of the conditional events is not achieved, it indicates that the above second input event has not occurred.
[0109] Step S410, generating an output event of the game task according to the input event group;
[0110] Typically, a first output event (e.g., a task success output event or a task completion output event) may be configured for an input event group when all input events occur, and a second output event (e.g., a task failure output event) may be configured for an input event group when at least one input event does not occur. In actual use, different output events may be configured according to different situations in which input events occur in an input event group, so as to enrich the game content effect and achieve the purpose of attracting game players.
[0111] Step S412, monitoring whether the input events in the input event group meet the triggering conditions of the game task;
[0112] Typically, the task executor can pre-set its internal logic according to different input event groups and output events to monitor whether the input event meets the triggering condition of the game task; the above step S412 can be implemented by steps B1 to B4:
[0113] Step B1: for each input event in the input event group, perform steps B2 to B4:
[0114] Step B2, using a signal monitoring method corresponding to the conditional event included in the input event to monitor whether the conditional event occurs;
[0115] In the process of monitoring the conditional event using the signal monitoring method corresponding to the conditional event contained in the input event, if the conditional event corresponds to the pulse signal monitoring method, when the conditional event is detected, it is determined that the conditional event has occurred and the monitoring of the conditional event is stopped; if the conditional event corresponds to the step signal monitoring method, the conditional event is continuously monitored according to the monitoring interval corresponding to the step signal monitoring method to see if it has occurred, until all the conditional events in the input event have occurred, and then the continuous monitoring is stopped. That is, for the pulse signal monitoring method, if only one occurrence of the conditional event is detected, it is considered that the conditional event has occurred. For the step signal monitoring method, even if the conditional event is detected once, the conditional event will continue to be monitored according to the set monitoring interval, until all the conditional events in the input event have occurred, and then the monitoring is stopped. Of course, in order to avoid an endless loop, the total number of monitoring occurrences or the total monitoring duration of the step signal monitoring method can also be set. If the number of occurrences of the conditional event reaches the total number or the cumulative monitoring duration reaches the total monitoring duration, the step signal monitoring method of the conditional event is stopped.
[0116] In actual use, the task executor is used to monitor whether the input events in the input event group occur. When the generation of the input event group and the output event configuration are completed using the graphical user interface as shown in 2, a task executor can be automatically generated on the graphical user interface. The internal logic of the task executor is edited by the program developer.
[0117] Usually, a task executor is composed of a signal node, a logic node, an action node, and an output node. For ease of explanation, Figure 5 A schematic diagram of the structure of a task executor is shown, such as Figure 5 As shown, the signal node 500 is a signal type corresponding to the signal monitoring mode corresponding to the conditional event in the input event group. In actual use, a pulse signal or a step signal can be output through the out pin on the signal node 500.
[0118] The logic nodes include a logic AND node 501, a logic OR node 502, a logic NOT node 503 and a logic sequential AND node 504. Each logic node has a list pin and an out pin, wherein the list pin can be connected to the out pin on the signal node 500 to receive a pulse signal or a step signal output by the signal node 500; and the out pin on each logic node can be connected to the in pin of the action node 505, and the out pin on the signal node 500 can also be directly connected to the in pin of the action node 505.
[0119] The out pin of the action node 505 is connected to the in pin of the output node 506, wherein the output node 506 stores pre-configured output events and the representation of the output events, wherein the next pin of the output node 506 can be connected to the in pin of the logic node or other action node 505, for monitoring it as a new input event group. The action node 505 also has a signal pin that can be connected to the logic node and the signal node.
[0120] To understand the process of monitoring input event groups by the TaskExecutor, Figure 6 shows a structural diagram of another task executor, such as Figure 6 As shown, the preset input event group includes two conditional events, "arriving at a certain position in scene A" and "the son is alive". Among them, the signal monitoring method configured for the conditional event of "arriving at a certain position in scene A" in the task executor is a pulse signal monitoring method, that is, the conditional event outputs a pulse signal (impulse) at the out pin of the signal node 500 in the task executor, and the signal monitoring method configured for the conditional event of "the son is alive" in the task executor is a step signal monitoring method, that is, the conditional event outputs a step signal (step) at the out pin of the signal node 500 in the task executor.
[0121] Connect the two signal nodes 500 to the list pin of the logic AND node 501, connect the out pin of the logic AND node 501 to the in pin of the action node 505, and connect the out pin of the action node 505 to the in pins of the two output nodes 506. Figure 6 There are two different output nodes 506 shown in FIG. 5 , one of which outputs an output event in the form of a task dialogue (dialogue), and the other outputs an output event in the form of an animation (result).
[0122] In actual use, since the input event of "arriving at a certain position in scene A" corresponds to the pulse signal monitoring method, when the action node 505 detects the occurrence of the input event, it is determined that the input event has occurred; since the input event of "the son is alive" corresponds to the step signal monitoring method, the action node 505 continues to monitor whether the input event has occurred according to the monitoring interval corresponding to the step signal monitoring method, until all input events in the input event group have occurred, and then stops continuous monitoring.
[0123] Step B3, judging whether the input event occurs according to the logic units configured for each conditional event in the input event and the monitoring results of each conditional event;
[0124] For example: determine the logical unit configured for each conditional event in the input event; the logical unit includes an AND unit, an OR unit, a NOT unit and an AND unit in sequence, wherein the AND unit in sequence is used to limit the occurrence order between the conditional events connected with the AND unit in sequence; when the monitoring results of each conditional event in the input event satisfy the logical relationship of the configured logical unit, determine that the input event occurs.
[0125] For example, there are five conditional events A, B, C, D, and E in the above input events, among which conditional event A and conditional event B form the first conditional event group with a logical relationship, and input event C, input event D, and input event E all form the second conditional event group with a logical OR relationship, and the two conditional event groups are in a sequential AND relationship. Assuming that the constraint order of the two conditional event groups is that the first conditional event group occurs before the second conditional event group, it is determined that the input event occurs.
[0126] Step B4: if all input events in the input event group occur, it is determined that the triggering condition of the game task is met.
[0127] When the task executor detects that the monitoring results of each conditional event in each input event meet the logical relationship of the configured logical unit, it is determined that the input event occurs. When all the input events included in the input event group occur, the input event group meets the triggering conditions of the game task.
[0128] Step S414, in response to the monitoring result that meets the triggering condition of the game task, execute the output event.
[0129] Continue with Figure 6Take the example in as an example to illustrate, when the action node 505 detects that both of the above two input events have occurred, it will output the output event in the form of animation (result), and at the same time, it will also output the output event in the form of task dialogue (dialogue); if the action node 505 detects that at least one of the above two input events has not occurred, it will not output the above two output events. Usually, the overall task is composed of the above multiple different subtasks, and its monitoring method and the process of outputting output events according to the monitoring results are similar to Figure 6 The process is similar to that in , and will not be described here.
[0130] The task design method in the above-mentioned game provided by the embodiment of the present invention can configure a corresponding signal monitoring method for each conditional event in the input event group; monitor whether the input event occurs according to the signal monitoring method; and output the event according to the monitoring result to complete the task generation. The occurrence status of the input event is accurately monitored by the signal monitoring method, which can effectively improve the accuracy of task generation.
[0131] In actual use, the creation of internal nodes of the task executor is implemented using the task editor. For ease of understanding, Figure 7 A schematic diagram of the interface of a task editor is shown, Figure 7 As shown, the task editor interface may include an editing area 700. After a blank position of the editing area 700 is right-clicked to create a task node, a creation menu 701 corresponding to the task node appears in the editing area 700. The task trigger node 703 of the task executor is created through the creation menu 701. The task start node 702, the task end node 704 and the task failure node 705 are automatically created by default when the task trigger node 703 is created, and there is no need to create them through the creation menu 701. Figure 7 As shown, the task start node 702 displayed in the editing area 700 has a Sub pin, the task trigger node 703 has a Sub pin and a Pre pin, and the task end node 704 and the task failure node 705 have only a Pre pin; a total task can be formed by connecting the pins on the task start node 702, the task trigger node 703, the task end node 704 and the task failure node 705. The interface of the task editor includes a display area 706 for displaying the properties, numbers and other information of the created nodes, which is not limited here.
[0132] Among them, the task start node 702 is a conditional judgment node, that is, Figure 6The example shown; the task end node 704 is the end node of the successful completion of the task, and the task failure node 705 is the node after the task fails. It can be understood that the above-mentioned task end node and task failure node are nodes for outputting the output event of the total task; the task Trigger node 703 is used for task monitoring, and there can be multiple task Trigger nodes.
[0133] For ease of understanding, Figure 7 On the basis of Figure 8 A schematic diagram of the interface for creating a task start node is shown. By clicking Figure 7 The task start node created in can appear Figure 8 The interface shown is as follows Figure 8 As shown, the four nodes in the box marked 1 are signal nodes 500, and each signal node outputs a pulse signal (impulse), the three nodes in the box marked 2 are respectively a logic AND node 501, a logic OR node 502, and a logic NOT node 503, and the four nodes in the box marked 3 are output nodes 506, which are respectively an animation playback node, a reward node, a state change node, and a dialogue node, wherein the next pin of the animation playback node is connected to the in pin of the reward node, the next pin of the reward node is connected to the in pin of the reward node, and the next pin of the state change node is connected to the in pin of the dialogue node.
[0134] The out pins of the two signal nodes 500 in the box marked 1 are connected to the list pin of the logic OR node 502, the out pin of the logic OR node 502 and the out pins of the other two signal nodes 500 are all connected to the Signal pin of the action node 505, and the out pin of the action node 505 is connected to the in pin of the animation playback node. The construction of the subtask can be completed through the connection operation. Since the task construction process of the task Trigger node 703, the task end node 704 and the task failure node 705 is the same as the task construction process of the above-mentioned task start node, it will not be repeated here.
[0135] Corresponding to the above method embodiment, the embodiment of the present invention provides a device for processing a game task. Fig. 9 A schematic diagram of the structure of a device for processing game tasks is shown. Fig. 9 As shown, the device comprises:
[0136] A response module 902, for responding to a task editing operation on the graphical user interface, and determining a target task object and a target task action;
[0137] A combining module 904, used to combine the target task object and the target task action to generate at least one conditional event;
[0138] A first generating module 906, configured to generate an input event group of a game task according to at least one conditional event, wherein the input event group is used to configure a triggering condition of the game task;
[0139] The second generating module 908 is used to generate an output event of the game task according to the input event group, where the output event is a game event executed according to a trigger condition in the game.
[0140] The embodiment of the present application provides a processing device for a game task, wherein, in response to a task editing operation on a graphical user interface, a target task object and a target task action are determined; the target task object and the target task action are combined to generate at least one conditional event; according to at least one conditional event, an input event group of the game task is generated; according to the input event group, an output event of the game task is generated, and the output event is a game event executed in the game according to the trigger condition of the configured game task. The method can quickly determine that the target task object and the target task action constitute a conditional event by performing a simple task editing operation on the graphical user interface, further, an input event group that can be used to configure the trigger condition of the game task is generated by at least one conditional event, and a corresponding output event is generated based on the input event group, which can flexibly realize the basic logic construction of the task, and the generation of the task can be completed without complex programming, which reduces the task generation cost to a certain extent and improves the task generation efficiency.
[0141] The above-mentioned task editing operation includes a first selection operation and a second selection operation; based on this, the above-mentioned response module 902 is also used to respond to the first selection operation on the graphical user interface, determine the target task object from the object set; respond to the second selection operation on the graphical user interface, determine the target task action from the action set.
[0142] The graphical user interface includes a first selection control corresponding to an object set and a second selection control corresponding to an action set; based on this, the response module 902 is further used to respond to a first trigger operation on the first selection control, display the object set; respond to a first selection operation on the object set, use the object selected by the first selection operation as the target task object. And respond to a second trigger operation on the second selection control, display the action set; respond to a second selection operation on the action set, use the action selected by the second selection operation as the target task action.
[0143] The first generating module 906 is further used to generate an input event group of a game task in response to a logical relationship combination operation of a plurality of conditional events.
[0144] The above-mentioned first generation module 906 is also used to respond to the logic unit selection operation for multiple conditional events, establish connections between multiple conditional events and the selected logic units, and obtain the input event group of the game task; wherein the logic unit includes an AND unit, an OR unit, a NOT unit and an AND unit in sequence, wherein the AND unit in sequence is used to limit the occurrence order between the conditional events connected with the AND unit in sequence.
[0145] The above-mentioned configuration of the triggering conditions of the game tasks includes: configuring game instructions corresponding to the triggering conditions.
[0146] The combination module 904 is further used to perform subject-predicate structure combination and / or subject-predicate-object structure combination on the target task object and the target task action to obtain at least one conditional event.
[0147] The above-mentioned combination module 904 is also used to generate a conditional event of a subject-predicate structure by taking the target task object as the subject and the target task action as the predicate.
[0148] The above-mentioned combination module 904 is also used to generate a conditional event of a subject-predicate-object structure by taking the first task object as the subject, the target task action as the predicate, and the second task object as the object.
[0149] Based on the above-mentioned game task processing device, the embodiment of the present invention also provides another game task processing device, see Fig.10 The structure diagram of the game task processing device shown in FIG. Fig. 9 In addition to the structure shown, it also includes a configuration module 1002 connected to the first generation module 906 and the first generation module 906, which is used to configure the signal monitoring method of each conditional event according to each conditional event in the input event group; wherein the signal monitoring method is used to monitor whether the trigger condition corresponding to the input event group occurs during the game; the signal monitoring method includes a pulse signal monitoring method and a step signal monitoring method.
[0150] The above-mentioned second generation module 908 is also used to respond to the configuration operation for the task executor, connect the input event group to the input end of the task executor, configure the output event of the game task for the output end of the task executor, and obtain the target task node including the input event group, task executor and output event.
[0151] The second generating module 908 is further configured to connect the target task nodes in response to the connection operation on the target task nodes in the overall task to obtain the overall task.
[0152] The above-mentioned device also includes a monitoring module 1004 connected to the second generation module 908, which is used to monitor whether the input events in the input event group meet the triggering conditions of the game task; and a response module 1006 connected to the monitoring module 1004, which is used to respond to the monitoring results that meet the triggering conditions of the game task and output the output event.
[0153] The above-mentioned monitoring module 1004 is also used to perform the following operations for the input events in the input event group: apply the signal monitoring method corresponding to the conditional event contained in the input event to monitor whether the conditional event occurs; determine whether the input event occurs based on the logical units configured for each conditional event in the input event and the monitoring results of each conditional event; if all the input events in the input event group occur, determine that the triggering conditions of the game task are met.
[0154] The above-mentioned monitoring module 1004 is also used to monitor the conditional event using the signal monitoring method corresponding to the conditional event contained in the input event; if the conditional event corresponds to the pulse signal monitoring method, when the conditional event is monitored to occur, it is determined that the conditional event has occurred and the monitoring of the conditional event is stopped; if the conditional event corresponds to the step signal monitoring method, according to the monitoring interval corresponding to the step signal monitoring method, it is continuously monitored whether the conditional event occurs until all the conditional events in the input event have occurred, and then the continuous monitoring is stopped.
[0155] The above-mentioned monitoring module 1004 is also used to determine the logical units configured for each conditional event in the input event; the logical units include AND units, OR units, NOT units and AND units in sequence, wherein the AND units in sequence are used to limit the order of occurrence between the conditional events connected with the AND units in sequence; when the monitoring results of each conditional event in the input event satisfy the logical relationship of the configured logical units, the input event is determined to have occurred.
[0156] The game task processing device provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for parts not mentioned in the embodiment of the game task processing device, reference may be made to the corresponding contents in the aforementioned game task processing method embodiment.
[0157] The present application also provides an electronic device, such as Fig.11 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 131 and a memory 130, the memory 130 stores computer executable instructions that can be executed by the processor 131, and the processor 131 executes the computer executable instructions to implement the above method.
[0158] exist Fig.11In the illustrated embodiment, the electronic device further includes a bus 132 and a communication interface 133 , wherein the processor 131 , the communication interface 133 and the memory 130 are connected via the bus 132 .
[0159] Among them, the memory 130 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 133 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 132 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 132 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0160] The processor 131 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 131. The above processor 131 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 131 reads the information in the memory and completes the steps of the method of the above embodiment in combination with its hardware.
[0161] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0162] The game task processing method, device and computer program product of the electronic device provided in the embodiments of the present application include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0163] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0164] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0165] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0166] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for processing a game task, characterized in that: The method comprises: In response to a task editing operation on the graphical user interface, a target task object and a target task action are determined; Performing subject-predicate structure combination and / or subject-predicate-object structure combination on the target task object and the target task action to generate at least one conditional event; When generating a plurality of conditional events, in response to a logic unit selection operation for the plurality of conditional events, a connection between the plurality of conditional events and the selected logic unit is established to generate an input event group of a game task, wherein the input event group is used to configure a trigger condition of the game task; the logic unit includes one or more of an AND unit, an OR unit, a NOT unit and an AND unit in sequence, wherein the AND unit in sequence is used to limit the occurrence order between the conditional events connected with the AND unit in sequence; Generating an output event of the game task according to the input event group, wherein the output event is a game event executed in the game according to the trigger condition; According to each conditional event in the input event group, a signal monitoring method for each conditional event is configured; wherein the signal monitoring method is used to monitor whether a triggering condition corresponding to the input event group occurs during a game.
2. The method according to claim 1, characterized in that The task editing operation includes a first selection operation and a second selection operation; the response to the task editing operation on the graphical user interface to determine the target task object and the target task action includes: In response to a first selection operation on the graphical user interface, determining a target task object from the object collection; In response to a second selection operation on the graphical user interface, a target task action is determined from the action set.
3. The method according to claim 1, characterized in that The graphical user interface includes a first selection control corresponding to the object set and a second selection control corresponding to the action set; The step of determining the target task object from the object set in response to the first selection operation on the graphical user interface includes: displaying the object set in response to the first trigger operation on the first selection control; and taking the object selected by the first selection operation as the target task object in response to the first selection operation on the object set. The method of responding to a second selection operation on the graphical user interface and determining a target task action from an action set includes: responding to a second trigger operation on the second selection control and displaying the action set; and responding to a second selection operation for the action set and using the action selected by the second selection operation as the target task action.
4. The method according to claim 1, characterized in that: The configuring the triggering condition of the game task includes: configuring a game instruction corresponding to the triggering condition.
5. The method according to claim 1, characterized in that The subject-predicate structure combination of the target task object and the target task action to generate at least one conditional event includes: The target task object is used as the subject and the target task action is used as the predicate to generate a conditional event of a subject-predicate structure.
6. The method according to claim 1, characterized in that The target task object includes a first task object corresponding to the subject and a second task object corresponding to the object; The subject-predicate-object structure combination of the target task object and the target task action to generate at least one conditional event includes: A conditional event of a subject-predicate-object structure is generated by taking the first task object as the subject, the target task action as the predicate, and the second task object as the object.
7. The method according to claim 1, characterized in that The signal monitoring mode includes a pulse signal monitoring mode and a step signal monitoring mode.
8. The method according to claim 1, characterized in that The graphical user interface includes a task executor for the game task; Generating the output event of the game task according to the input event group includes: In response to the configuration operation for the task executor, the input event group is connected to the input end of the task executor, and the output event of the game task is configured for the output end of the task executor to obtain a target task node including the input event group, the task executor and the output event.
9. The method according to claim 8, characterized in that The target task node is a node in the overall task; the method further comprises: In response to the connection operation for each target task node in the overall task, each of the target task nodes is connected to obtain the overall task.
10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: Monitoring whether the input events in the input event group meet the triggering conditions of the game task; In response to the monitoring result satisfying the triggering condition of the game task, the output event is executed.
11. The method according to claim 10, characterized in that The conditional events in the input event group correspond to signal monitoring modes, and the signal monitoring modes include: pulse signal monitoring mode and step signal monitoring mode; The monitoring of whether the input event in the input event group satisfies the triggering condition of the game task includes: For the input events in the input event group, the following operations are performed: applying the signal monitoring method corresponding to the conditional event contained in the input event to monitor whether the conditional event occurs; judging whether the input event occurs according to the logic units configured for each of the conditional events in the input event and the monitoring results of each of the conditional events; If all input events in the input event group occur, it is determined that the triggering condition of the game task is met.
12. The method according to claim 11, characterized in that The step of using a signal monitoring method corresponding to a conditional event included in the input event to monitor whether the conditional event occurs comprises: Using a signal monitoring method corresponding to a conditional event included in the input event to monitor the conditional event; If the conditional event corresponds to the pulse signal monitoring mode, when the conditional event is detected to have occurred, it is determined that the conditional event has occurred, and the monitoring of the conditional event is stopped; If the conditional event corresponds to a step signal monitoring method, continuously monitor whether the conditional event occurs according to the monitoring interval corresponding to the step signal monitoring method until all the conditional events in the input event have occurred, and then stop continuous monitoring.
13. The method according to claim 11, characterized in that The step of judging whether the input event occurs according to the logic units configured by each of the conditional events in the input event and the monitoring results of each of the conditional events comprises: Determine the logic unit configured for each of the conditional events in the input event; the logic unit includes an AND unit, an OR unit, a NOT unit, and an AND unit in sequence, wherein the AND unit in sequence is used to limit the occurrence order of the conditional events connected to the AND unit in sequence; When the monitoring results of each of the conditional events in the input event satisfy the logical relationship of the configured logical unit, it is determined that the input event occurs.
14. A device for processing a game task, characterized in that: The device comprises: A response module, used to respond to the task editing operation on the graphical user interface, and determine the target task object and the target task action; A combination module, used for performing subject-predicate structure combination and / or subject-predicate-object structure combination on the target task object and the target task action to generate at least one conditional event; A first generating module is used for, when generating a plurality of conditional events, responding to a logic unit selection operation for the plurality of conditional events, establishing a connection between the plurality of conditional events and the selected logic unit, and generating an input event group of a game task, wherein the input event group is used to configure a trigger condition of the game task; the logic unit includes one or more of an AND unit, an OR unit, a NOT unit, and an AND unit in sequence, wherein the AND unit in sequence is used to limit an occurrence order between the conditional events connected with the AND unit in sequence; A second generating module, configured to generate an output event of the game task according to the input event group, wherein the output event is a game event executed in the game according to the trigger condition; The configuration module is used to configure the signal monitoring method of each conditional event according to each conditional event in the input event group; wherein the signal monitoring method is used to monitor whether the triggering condition corresponding to the input event group occurs during the game process.
15. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
System and method for context enhanced ad creation
CN102224517A
Group-sending message processing method and system as well as electronic device
CN105791080A
Mobile game editing method and device
CN110876850A
Game control method and device, computer equipment and storage medium
CN111054060A
Image synthesis method and device, storage medium and electronic equipment
CN111768478A
