Control method and device of virtual interactive object, terminal and storage medium
Patent Information
- Application Number
- CN202210540722.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-17
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2042-05-17
AI Technical Summary
[0004]然而,对于部分复杂操作,相关技术中的方案需要多次交互步骤实现,操作较为繁琐
[0018] In this embodiment, when a first control voice is received, a first virtual interactive object capable of executing the target operation indicated by the first control voice is determined, and the execution condition judgment logic is triggered. Based on the current virtual environment, it is determined whether the first virtual interactive object meets the execution conditions of the target operation. If the first virtual interactive object meets the execution conditions, the triggering process of the target operation is simulated, the interactive operation is flattened, and complex condition judgments are automatically executed according to the first control voice to realize the corresponding functions, thereby greatly simplifying the interaction process of complex functions, reducing operation steps and shortening operation time.
Smart Images

Figure CN117101122B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of human-computer interaction technology, and in particular to a control method, device, terminal and storage medium for a virtual interactive object. Background Technology
[0002] Current games, especially simulation strategy games (SLGs), offer diverse and highly realistic gameplay features. However, developers often need to consider the limitations of terminal devices when designing interaction methods, finding a balance between interactive controls and game complexity.
[0003] The relevant technologies optimize complex interactive operations by using shortcut keys and prompts. For example, they allow players to customize the user interface in a lightweight way, moving frequently used controls to easily accessible locations, or the game client can provide operation prompts at different stages via email, pop-ups, etc., to obtain player touch feedback and assist in completing complex operations.
[0004] However, for some complex operations, the solutions in the relevant technologies require multiple interactive steps, making the operation rather cumbersome. Summary of the Invention
[0005] This application provides a method, device, terminal, and storage medium for controlling virtual interactive objects, which can greatly simplify the interaction process of complex functions, reduce operation steps, and shorten operation time.
[0006] On the one hand, this application provides a method for controlling a virtual interactive object, the method comprising:
[0007] The virtual environment screen displays a virtual environment screen, which includes at least one virtual interactive object owned by the target virtual faction. The virtual interactive object is used to perform corresponding operations in the virtual environment based on the received operation instructions.
[0008] In response to receiving a first control voice, a first virtual interaction object is determined from at least one of the virtual interaction objects, wherein the first virtual interaction object is a virtual interaction object for performing the target operation indicated by the first control voice;
[0009] If the first virtual interactive object meets the execution conditions of the target operation, the first virtual interactive object is controlled to execute the target operation.
[0010] On the other hand, this application provides a control device for a virtual interactive object, the device comprising:
[0011] The display module is used to display a virtual environment screen, which includes at least one virtual interactive object owned by the target virtual faction. The virtual interactive object is used to perform corresponding operations in the virtual environment based on received operation instructions.
[0012] A determining module is configured to, in response to receiving a first control voice, determine a first virtual interaction object among at least one of the virtual interaction objects, wherein the first virtual interaction object is a virtual interaction object for performing the target operation indicated by the first control voice;
[0013] The control module is used to control the first virtual interactive object to execute the target operation when the first virtual interactive object meets the execution conditions of the target operation.
[0014] On the other hand, this application provides a terminal, the terminal including a processor and a memory; the memory stores at least one program, the at least one program being loaded and executed by the processor to implement the control method of the virtual interactive object as described above.
[0015] On the other hand, embodiments of this application provide a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to implement the control method for the virtual interactive object as described above.
[0016] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the control method for a virtual interactive object provided in various alternative implementations of the above aspect.
[0017] The technical solutions provided in this application have at least the following beneficial effects:
[0018] In this embodiment, when a first control voice is received, a first virtual interactive object capable of executing the target operation indicated by the first control voice is determined, and the execution condition judgment logic is triggered. Based on the current virtual environment, it is determined whether the first virtual interactive object meets the execution conditions of the target operation. If the first virtual interactive object meets the execution conditions, the triggering process of the target operation is simulated, the interactive operation is flattened, and complex condition judgments are automatically executed according to the first control voice to realize the corresponding functions, thereby greatly simplifying the interaction process of complex functions, reducing operation steps and shortening operation time. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a schematic diagram of an implementation environment provided by an exemplary embodiment of this application;
[0021] Figure 2 This is a flowchart of a method for controlling a virtual interactive object provided in an exemplary embodiment of this application;
[0022] Figure 3 This is a schematic diagram illustrating the execution of a target operation by a first virtual interactive object based on a first control voice, provided in an exemplary embodiment of this application;
[0023] Figure 4 This is a flowchart of a method for controlling a virtual interactive object provided in another exemplary embodiment of this application;
[0024] Figure 5 This is a schematic diagram illustrating the execution of a target operation by a first virtual interactive object based on a first control voice, provided in another exemplary embodiment of this application;
[0025] Figure 6 This is a schematic diagram illustrating the execution of a target operation by a first virtual interactive object based on a first control voice, provided in another exemplary embodiment of this application;
[0026] Figure 7 This is a flowchart of a method for controlling a virtual interactive object provided in another exemplary embodiment of this application;
[0027] Figure 8 This is a schematic diagram of a speech recognition process provided in an exemplary embodiment of this application;
[0028] Figure 9 This is a schematic diagram illustrating the training of a speech recognition model provided in an exemplary embodiment of this application;
[0029] Figure 10 This is a schematic diagram illustrating the training of a speech translation model provided in an exemplary embodiment of this application;
[0030] Figure 11 This is a schematic diagram illustrating the training of an intent recognition model provided in an exemplary embodiment of this application;
[0031] Figure 12 This is a flowchart illustrating intent recognition provided in an exemplary embodiment of this application;
[0032] Figure 13 This is a flowchart of a method for controlling a virtual interactive object provided in another exemplary embodiment of this application;
[0033] Figure 14 This is a schematic diagram illustrating the setting of a custom operation provided in an exemplary embodiment of this application;
[0034] Figure 15 This is a structural block diagram of a control device for a virtual interactive object provided in an exemplary embodiment of this application;
[0035] Figure 16 This application provides a structural block diagram of a terminal according to an exemplary embodiment. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0037] Related technologies typically optimize complex interactive operations using shortcut keys or prompts. For example, they allow players to customize the interface with lightweight controls, moving frequently used controls to easily accessible locations. However, this approach is limited by the touch limitations of the terminal, and many complex operations still require multiple interaction steps. Alternatively, the game client may provide operation prompts at different stages via emails, pop-ups, etc., obtaining touch feedback from the player to assist in completing complex operations. However, this method cannot support continuous user operation needs, and the predetermined operation content cannot meet the requirements for precise and complex operations.
[0038] Please refer to Figure 1 This diagram illustrates an implementation environment provided by an exemplary embodiment of this application. The implementation environment includes: a first terminal 120, a server 140, and a second terminal 160.
[0039] The first terminal 120 has an application installed and running that supports a virtual environment. This application can be any of the following: a virtual reality application, an SLG game, a 3D map application, or a Multiplayer Online Battle Arena (MOBA) game. The first terminal 120 is the terminal used by the first user, who uses the first terminal 120 to control a first virtual interactive object located in the virtual environment to perform operations. These operations include, but are not limited to, at least one of: gaining rewards, upgrading, engaging in combat, switching equipment, and building. Illustratively, the first virtual interactive object is a first virtual character, such as a realistic or anime character, or it may be a first virtual object.
[0040] The first terminal 120 is connected to the server 140 via a wireless network or a wired network.
[0041] Server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Schematic, server 140 includes a processor 142 and a memory 144. Processor 142 includes an intent recognition module 1421, a central control module 1422, and a game detection module 1423. Server 140 provides background services for applications supporting a 3D virtual environment. Optionally, server 140 undertakes the primary computing work, while the first terminal 120 and the second terminal 160 undertake secondary computing work; or, server 140 undertakes secondary computing work, while the first terminal 120 and the second terminal 160 undertake the primary computing work; or, server 140, the first terminal 120, and the second terminal 160 collaborate in a distributed computing architecture.
[0042] The second terminal 160 has an application installed and running that supports a virtual environment. This application can be any of the following: a virtual reality application, an SLG game, a 3D map application, or a MOBA game. The second terminal 160 is a terminal used by a second user. The second user uses the second terminal 160 to control a second virtual interactive object located in the virtual environment to perform operations, including but not limited to: gaining rewards, upgrading, engaging in combat, switching equipment, and building at least one of these operations. Illustratively, the second virtual interactive object is a second virtual character, such as a realistic or anime character, or it may be a second virtual object.
[0043] Optionally, the first virtual interaction object and the second virtual interaction object are in the same virtual environment.
[0044] Optionally, the applications installed on the first terminal 120 and the second terminal 160 are the same, or the applications installed on the two terminals are the same type of application from different control system platforms. The first terminal 120 can refer to one of multiple terminals, and the second terminal 160 can refer to one of multiple terminals; this embodiment only uses the first terminal 120 and the second terminal 160 as examples. The device types of the first terminal 120 and the second terminal 160 may be the same or different, and these device types include at least one of: smartphones, tablets, e-book readers, MP3 players, MP4 players, laptops, and desktop computers. The following embodiment uses smartphones as an example.
[0045] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. This application does not limit the number of terminals or the type of device.
[0046] Please refer to Figure 2This document illustrates a flowchart of a control method for a virtual interactive object provided in an exemplary embodiment of this application. This embodiment describes the method as being executed by a terminal supporting a virtual environment, and the method includes the following steps:
[0047] Step 201: Display a virtual environment screen, which contains at least one virtual interactive object owned by the target virtual faction.
[0048] The virtual interaction object is used to execute corresponding operations in the virtual environment based on received operation instructions. The target virtual faction is the virtual faction controlled by the terminal.
[0049] Optionally, the virtual interactive object can be a virtual character or a virtual object within the target virtual faction. Different types of virtual objects may execute different operation commands. For example, the virtual object corresponding to a building upgrade operation command is a virtual building, while the virtual object corresponding to a battle operation command is a virtual team. This application does not limit this aspect.
[0050] The terminal displays a virtual environment screen of a management strategy game, which includes virtual buildings that can generate virtual revenue or virtual products, virtual citizens used for management or construction, and virtual teams used for battles.
[0051] Step 202: In response to receiving the first control voice, determine the first virtual interaction object among at least one virtual interaction object, the first virtual interaction object being a virtual interaction object used to perform the target operation indicated by the first control voice.
[0052] In one possible implementation, the terminal performs speech recognition on the received first control voice, determines the target operation indicated by the first control voice, and then identifies the first virtual interaction object from the virtual interaction objects of the target virtual faction based on the target operation. For example, when the first control voice "upgrade farm" is received, the terminal identifies the "farm" in the target virtual faction as the first virtual interaction object.
[0053] Optionally, the terminal may keep the microphone on throughout the game to collect voice data in real time; alternatively, the terminal may turn on the microphone to collect voice data when it receives a voice input operation and turn it off when the voice input operation ends (e.g., the user long-presses the voice control to input the first control voice); or, the terminal may automatically turn on the microphone to collect voice data during specific game stages or game scenarios. This application does not limit these options.
[0054] Step 203: If the first virtual interactive object meets the execution conditions of the target operation, control the first virtual interactive object to execute the target operation.
[0055] For some complex operation commands, the terminal needs to determine whether the first virtual interaction object can be executed based on the current virtual environment. For example, for the operation of selecting a team to fight against the enemy faction, since the same faction may contain multiple virtual teams, and virtual teams can support multiple operation commands, the relevant technology requires the user to trigger a team control to open a team selection list. The user observes the status of each team in the team selection list to determine the target virtual team that can be deployed, and then triggers the target team selection control corresponding to the target virtual team to select that team. Subsequently, the battle control is triggered in the pop-up target virtual team settings window (the virtual team settings window may also contain other controls such as team reset, team deletion, team upgrade, etc.).
[0056] In this embodiment, the user can directly input "select a team to fight in the xx faction" or specify "team A to fight in the xx faction" via voice. The terminal recognizes the target operation based on the first control voice, determines the first virtual interaction object, and judges whether the first virtual interaction object (virtual team) meets the execution conditions of the target operation. If it does, the terminal automatically controls the first virtual interaction object to execute the target operation. Therefore, the user can directly instruct the terminal to complete the team selection and battle operation with a single voice input, thereby eliminating the complex intermediate interaction process.
[0057] Figure 3 A schematic diagram illustrating the execution of a target operation command based on a first control voice is shown. After the terminal acquires the voice content 301 "Recruiting Talented Individuals" of the first control voice (in actual application scenarios, the user-inputted first control voice content is visible in the virtual environment, or the terminal does not display the corresponding voice content) via its microphone, it determines the target operation and the first virtual interactive object based on the first control voice. The terminal determines that the first virtual interactive object meets the execution conditions of the target operation, controls the first virtual interactive object to execute the target operation, and provides feedback 302 "Okay, Recruiting Talented Individuals has been initiated for you."
[0058] In summary, in this embodiment, when the first control voice is received, a first virtual interactive object capable of executing the target operation indicated by the first control voice is determined, and the execution condition judgment logic is triggered. Based on the current virtual environment, it is determined whether the first virtual interactive object meets the execution conditions of the target operation. If the first virtual interactive object meets the execution conditions, the triggering process of the target operation is simulated, thus flattening the interactive operation. The complex condition judgment is automatically executed according to the first control voice, and the corresponding function is realized, thereby greatly simplifying the interaction process of complex functions, reducing operation steps, and shortening operation time.
[0059] Because the virtual interactive object control method provided in this application flattens the interactive operation, allowing users to omit many intermediate condition judgments and object selection processes, and directly input the first control voice based on the required operation, there may be situations where the first virtual interactive object does not meet the execution conditions of the target operation. To further assist users in quickly achieving the target operation through voice control commands, the terminal generates a prompt message when the first virtual interactive object does not meet the execution conditions of the target operation, prompting the user to choose an alternative operation or to delay the execution of the target operation.
[0060] Please refer to Figure 4 This embodiment illustrates a flowchart of a control method for a virtual interactive object provided in another exemplary embodiment of this application. This embodiment describes the method as being executed by a terminal supporting a virtual environment, and the method includes the following steps:
[0061] Step 401: Display a virtual environment screen, which contains at least one virtual interactive object owned by the target virtual faction.
[0062] Step 402: In response to receiving the first control voice, determine the first virtual interaction object among at least one virtual interaction object, the first virtual interaction object being a virtual interaction object used to perform the target operation indicated by the first control voice.
[0063] The specific implementation of steps 401 to 402 can be referred to steps 201 to 202 above, and will not be repeated here in the embodiments of this application.
[0064] Step 403: Obtain the faction information of the target virtual faction.
[0065] The faction information includes at least one of faction resource information and faction behavior information. The faction resource information is used to characterize the virtual resources possessed by the target virtual faction, and the faction behavior information is used to characterize the faction behavior of the target virtual faction in the virtual environment.
[0066] In SLG games, many operations require virtual resources to perform. For example, upgrading buildings requires building materials, and building a team requires troops. Furthermore, because SLG games assign complex functions to various virtual objects, conflicting and non-parallel faction behaviors may exist. For instance, buildings under construction or upgrading cannot generate revenue, and teams in combat cannot perform upgrades or formation changes. Therefore, the terminal needs to determine whether the first virtual interaction object meets the execution conditions of the target operation based on the faction information of the target virtual faction.
[0067] It is worth mentioning that, Figure 4In the illustrated embodiment, the terminal executes step 402 first and then step 403. In other possible real-time modes, the terminal may also execute steps 402 and 403 simultaneously after receiving the first control voice, or the terminal may execute step 403 first and then step 402.
[0068] Step 404: Determine whether the first virtual interaction object meets the execution conditions of the target operation based on the faction information.
[0069] Different operations require different execution conditions, and the faction information used to determine whether the first virtual interaction object meets the execution conditions may also differ. For illustration, the terminal (or server) sends a condition query command to the game control module through the central control module. The game control module calculates the conditions in the game log and returns the necessary execution conditions for the target operation.
[0070] In one possible implementation, the faction information includes faction resource information, and the terminal determines whether the first virtual interaction object meets the execution conditions of the target operation based on the faction resource information. Step 404 specifically includes the following steps 404a to 404c:
[0071] Step 404a: Determine the amount of virtual resources required for the first virtual interactive object to perform the target operation.
[0072] Optionally, the amount of virtual resources used can be determined by the voice content of the first control voice input by the user, or it can be the default setting of the target operation in the game.
[0073] For example, for the target operation corresponding to the first control voice "team up with 10 infantrymen", the virtual resource usage of "10 infantrymen" is determined by the voice content of the first control voice. For the target operation corresponding to the first control voice "upgrade the farm", the virtual resource usage of "1000 wood and 10000 gold coins" is the default setting of the game.
[0074] Step 404b: If the virtual resource ownership indicated by the faction resource information is greater than the virtual resource usage, determine that the first virtual interaction object meets the execution conditions of the target operation.
[0075] When the amount of virtual resources possessed by the target virtual faction exceeds the amount of virtual resources required to execute the target operation, the target virtual faction can provide sufficient virtual resources for the first virtual interaction object, and the terminal determines that the first virtual interaction object meets the execution conditions of the target operation.
[0076] For example, if the virtual resource usage is 10 infantrymen, and the virtual resource ownership indicated by the faction resource information includes 20 infantrymen, then the terminal determines that the first virtual interaction object meets the execution conditions of the target operation.
[0077] Step 404c: If the amount of virtual resources owned as indicated by the faction resource information is less than the amount of virtual resources used, determine that the first virtual interaction object does not meet the execution conditions of the target operation.
[0078] When the amount of virtual resources possessed by the target virtual faction is less than the amount of virtual resources required to execute the target operation, the target virtual faction cannot provide enough virtual resources for the first virtual interaction object, and the terminal determines that the first virtual interaction object does not meet the execution conditions of the target operation.
[0079] For example, if the virtual resource usage is 10 infantrymen, and the virtual resource ownership indicated by the faction resource information includes 5 infantrymen, then the terminal determines that the first virtual interaction object does not meet the execution conditions of the target operation.
[0080] Furthermore, the terminal acquires data such as the virtual resource ownership of the target virtual faction or the combat status of the target virtual faction in real time (or at a certain frequency), and provides operation prompts based on the acquired data.
[0081] When the target virtual faction possesses sufficient virtual resources to perform a certain operation, the terminal can prompt the user to perform that operation. Alternatively, when a virtual resource of the target virtual faction falls below a certain resource threshold, the terminal can prompt the user to replenish that virtual resource. For example, when the target virtual faction has sufficient idle troops and training ground space, the terminal displays a prompt message such as "More infantry can be built now" through virtual environment visuals and / or game voice prompts; when the target virtual faction's food supply is less than a certain threshold, the terminal displays a prompt message such as "Time to farm" through virtual environment visuals and / or game voice prompts.
[0082] On the other hand, the terminal obtains information about the opposing virtual faction, generates a battle strategy based on the information, and provides operation prompts based on the battle strategy.
[0083] Information about the opposing faction includes the actions performed by the opposing faction, their virtual resource holdings, and battle status. In one possible implementation, when the opposing virtual faction performs an action or its virtual resources change, the terminal can also prompt the user to take appropriate action. For example, after the opposing virtual faction performs the action of building infantry, the terminal displays a prompt message through the virtual environment screen and / or game voice: "The opponent is producing a large number of infantry again, please be careful." The above operation prompt may also include operation options, such as "How many infantry need to be built?" or "Upgrade the farm?", and identify the target operation based on the received control voice. After displaying the above prompt message, the terminal collects ambient sound through the microphone and identifies whether the first control voice is present. The user can then instruct the terminal to perform the target operation through voice based on the prompt message generated by the terminal.
[0084] In another possible implementation, the faction information includes faction behavior information, and the terminal determines whether the first virtual interaction object meets the execution conditions of the target operation based on the faction behavior information. Step 404 specifically includes the following steps 404d to 404e:
[0085] Step 404d: If the faction behavior indicated by the faction behavior information and the target operation support parallel execution, determine that the first virtual interaction object meets the execution conditions of the target operation.
[0086] Because the method provided in this application eliminates many intermediate interaction processes such as condition judgment and object selection (for example, related technologies display controls as untriggerable to prompt the user that there is currently an unexecutable object or operation), the user directly inputs the first control voice based on the required operation. Therefore, the first virtual interactive object may be performing other faction behaviors, and the terminal needs to determine whether the first virtual interactive object can perform the target operation based on the faction behavior information. If the current faction behavior and the target operation support parallel execution, the terminal determines that the first virtual interactive object meets the execution conditions of the target operation.
[0087] For example, if the target operation is to obtain farm profits, the first virtual interactive object "farm" may not have other faction behaviors, or it may have a faction behavior of "increasing crops", but the two can be executed in parallel. The terminal determines that the first virtual interactive object meets the execution conditions of the target operation.
[0088] Step 404e: If the faction behavior indicated by the faction behavior information and the target operation do not support parallel execution, determine that the first virtual interaction object does not meet the execution conditions of the target operation.
[0089] If the first virtual interaction object currently has other faction behaviors, and these faction behaviors cannot be executed in parallel with the target operation, then the terminal determines that the first virtual interaction object does not meet the execution conditions of the target operation.
[0090] For example, if the target operation is to obtain farm profits, and the first virtual interaction object "farm" has a faction behavior of "farm upgrade", the two cannot be executed in parallel, and the terminal determines that the first virtual interaction object does not meet the execution conditions of the target operation.
[0091] Step 405: If the first virtual interactive object meets the execution conditions of the target operation, control the first virtual interactive object to execute the target operation.
[0092] The specific implementation of step 405 can be referred to step 203 above, and will not be repeated here in the embodiments of this application.
[0093] Step 406: If the first virtual interactive object does not meet the execution conditions of the target operation, prompt at least one alternative operation corresponding to the target operation.
[0094] The substitution operation is determined based on the virtual resource ownership and virtual resource usage.
[0095] In one possible implementation, the terminal determines whether the first virtual interactive object meets the execution conditions of the target operation based on faction resource information. When the first virtual interactive object cannot perform the target operation due to insufficient virtual resources, in order to further assist the user in performing the corresponding operation, the terminal determines an alternative operation based on the virtual resource availability and provides a prompt for at least one alternative operation.
[0096] like Figure 5 As shown, the terminal receives the first control voice and recognizes the voice content 501 "Build 10 infantrymen". Based on the faction resource information, it determines that the virtual resource possession is insufficient, and the first virtual interaction object does not meet the execution conditions. Based on the current virtual resource possession, the terminal determines the alternative operation "Build 5 infantrymen" and generates the prompt message 502 "Our economy is insufficient, and we can only support the production of 5 infantrymen. Do you want to execute?".
[0097] Optionally, the terminal may provide alternative operation prompts via text displayed in a virtual environment, or the terminal may provide alternative operation prompts via voice. This application does not limit this approach.
[0098] Step 407: In response to receiving the second control voice, determine the second virtual interaction object among at least one virtual interaction object.
[0099] Step 408: Control the second virtual interactive object to perform the alternative operation.
[0100] The second virtual interaction object is a virtual interaction object used to perform the replacement operation indicated by the second control voice operation.
[0101] In one possible real-time approach, after the terminal provides a prompt based on an alternative operation, it continues to collect voice information through the microphone. The user can select an alternative operation based on the feedback from the terminal and control the terminal to perform the alternative operation by inputting a second control voice.
[0102] For example, based on the example in step 406, if the terminal receives the second control voice and recognizes the voice content as "yes", it determines that the second virtual interaction object is 5 infantrymen and controls the second virtual interaction object to perform the alternative operation "create 5 infantrymen".
[0103] Step 409: If the first virtual interaction object does not meet the execution conditions of the target operation, a delayed execution prompt is given.
[0104] This delayed execution prompt is used to indicate when to perform the target action after the faction action has ended.
[0105] In one possible implementation, the terminal determines whether the first virtual interactive object meets the execution conditions of the target operation based on faction behavior information. When the first virtual interactive object does not meet the execution conditions of the target operation because the current faction behavior cannot be executed in parallel with the target operation, the terminal provides a delayed execution prompt to further assist the user in performing the corresponding operation based on voice commands, reminding the user to issue the command to execute the target operation after the faction behavior has ended.
[0106] like Figure 6 As shown, the terminal receives the first control voice and recognizes the voice content 601 "Build 10 infantrymen". Based on the faction behavior information, it determines that the current faction behavior "Police Ground Upgrade" and the target operation cannot be executed in parallel, and the first virtual interaction object does not meet the execution conditions. The terminal generates the prompt message 602 "Police Ground is being upgraded. Please build infantrymen after the upgrade is completed" based on the faction behavior.
[0107] Step 410: Upon receiving the third control voice and after the faction action has ended, control the first virtual interactive object to perform the target operation.
[0108] In one possible implementation, after determining that a conflicting faction action has ended, the user continues to issue commands via voice. Upon receiving a third control voice and the faction action has ended, the terminal controls the first virtual interactive object to execute the target action.
[0109] For example, if the terminal receives a third control voice and recognizes the voice content as "build 10 infantrymen", and determines that there is currently no camp line "training ground upgrade" that cannot be executed in parallel with the target operation, then the terminal controls the first virtual interactive object to execute the target operation.
[0110] Step 411: Provide a prompt for the execution result of the target operation, wherein the prompting method includes at least one of voice and text.
[0111] After the target operation is completed or fails, the terminal will provide a prompt on the execution result of the target operation (or alternative operation) via voice or text to help users understand the execution status.
[0112] like Figure 3As shown, after the terminal collects the voice content 301 "Recruiting Talents" of the first control voice through the microphone, it determines that the first virtual interactive object meets the execution conditions of the target operation based on the first control voice. After the terminal controls the first virtual interactive object to execute the target operation, it outputs the prompt message 302 "Okay, recruitment has been started for you" in the form of voice.
[0113] In this embodiment, when the first virtual interactive object does not meet the execution conditions of the target operation, the terminal can provide alternative operations based on the amount of virtual resources it possesses, or prompt the user to delay the execution of the target operation. This further assists the user in achieving complex operations through simple voice commands, without requiring the user to manually change the operation commands. When the target operation cannot be executed, the terminal prompts the user and provides executable alternative operations for the user to choose from, or reminds the user to issue the command again after the execution conditions are met. This allows the user to confidently perform voice control even when it is uncertain whether the target operation can be executed, improving the convenience of game operation. Providing operation prompts to the user when the target virtual faction or the opposing virtual faction changes reduces the user's understanding and operational costs for SLG games. It can assist novice users in completing unfamiliar operations and help all types of users improve their competitive level, increasing game activity. Furthermore, in related technologies, SLG games typically require multiple combinations of operations to achieve a specific function. For example, sending troops requires first setting up a gathering point to gather the team, then calling up the team options, instructing the expedition, and then selecting the destination. The solution in this embodiment only requires inputting a single voice command, resulting in high operational efficiency.
[0114] In one possible implementation, the terminal determines candidate virtual interactive objects that support the target operation based on the operations supported by each virtual interactive object in the target virtual faction. For game operations that require selecting the first virtual interactive object from multiple candidate virtual interactive objects, the user can achieve this through a combination of touch operation and voice control, or it can be achieved entirely through voice control.
[0115] Please refer to Figure 7 This embodiment illustrates a flowchart of a control method for a virtual interactive object provided in another exemplary embodiment of this application. This embodiment describes the method as being executed by a terminal supporting a virtual environment, and the method includes the following steps:
[0116] Step 701: Display a virtual environment screen, which contains at least one virtual interactive object owned by the target virtual faction.
[0117] The specific implementation of step 701 can be referred to step 201 above, and will not be repeated here in the embodiments of this application.
[0118] Step 702: In response to receiving the first control voice, the first control voice is converted into speech text.
[0119] The terminal collects ambient sound through a microphone. When it recognizes the user's voice from the ambient sound, the terminal determines that it has received the first control voice and converts the first control voice into speech text so that subsequent target operations can be recognized based on the speech text.
[0120] In one possible implementation, such as Figure 8 As shown, before speech conversion, the terminal first performs noise reduction and truncation processing on the acquired speech stream to obtain clear and accurate speech text. The noise reduction process includes two stages: human voice recognition and system sound recognition. In the human voice recognition stage, the terminal identifies the user's voice from the acquired speech stream using a human voice model (the user can pre-record their own voiceprint features). In the system sound recognition stage, the terminal removes system sounds generated by the terminal from the acquired speech stream through reverse acoustic wave processing and / or acoustic wave extraction technology, thereby reducing the impact of system sounds on human voice recognition. Truncation processing is performed on the noise-reduced audio. The terminal determines whether a sentence has been recorded completely based on the silence duration. For example, the silence duration can be selected from the range of 100ms to 200ms. For instance, if the silence duration is 100ms, the terminal will truncate the speech stream when it detects a silent segment of 100ms or longer, thus confirming the end of the previous sentence.
[0121] During speech translation, the terminal (or server)'s speech translation model recognizes the real-time speech stream and translates the target user's speech stream into text (query) using Automatic Speech Recognition (ASR) technology. In the speech translation stage, the terminal (or server) first segments the speech stream into sentences and outputs audio window segments. Then, it uses acoustic models, language models, and dictionaries to translate the audio window segments into queries.
[0122] The training process of the speech escaping model is as follows: Figure 9 As shown. Because the game scene involves a large number of proper nouns, and many users may input similar nouns based on their own language habits when inputting voice commands, the computer device needs to be pre-configured with hot words or phrases during the model training phase in order to correct errors in the online translation during the application phase.
[0123] Optionally, the noise reduction, truncation, and text conversion processes described above are performed by the terminal; alternatively, the terminal sends the audio stream to a backend server, which then performs the noise reduction, truncation, and text conversion processes; or the noise reduction and truncation processes are performed by the backend server, while the text conversion is performed by the terminal. This application does not limit the scope of these processes.
[0124] Step 703: Perform intent recognition on the speech text to obtain intent recognition results, which include the identified target operation.
[0125] The terminal (or server) inputs a text query into the intent recognition module for intent recognition and obtains the intent recognition result. This result can be of two types: rejection or successful recognition, and the result must contain a specific intent identity document (ID), which is the operation identifier corresponding to the target operation.
[0126] In one possible implementation, the offline framework of the intent recognition module is as follows: Figure 10 As shown. The main training process of the intent recognition module includes: 1. Configuring intent IDs. 2. Expanding intents with similarity questions. Similarity questions are a means to improve robot education; like the original corpus, they are objects of robot learning and provide training material for the model. 3. Training a word2vec vector model on text logs of similar questions and other user speech. N-Gram is an algorithm based on statistical language models. Its basic idea is to perform a sliding window operation of size N on the content of the text, forming a sequence of byte segments of length N. Each byte segment is called a gram. The frequency of all grams is statistically analyzed and filtered according to a pre-set threshold to form a list of key grams, which is the vector feature space of the text. Each gram in the list is a feature vector dimension. Word2Vec is a tool for generating word vectors, and word vectors are closely related to language models. Computer devices can learn semantic knowledge in an unsupervised manner from a large amount of text. 4. After processing the intent classification and similarity questions through a vector model, a recurrent neural network (RNN) is trained to output the intent classification model.
[0127] In practical applications, the online intent recognition process is as follows: Figure 11 As shown, the terminal (or server) first vectorizes the text query, then retrieves it using vector matching and calculates it using a deep learning model, and combines this with a recognition strategy to either reject the query or output an intent ID. The recognition strategy primarily includes entity recognition. The entity recognition module extracts entity words from the text query, disambiguates the entity words, and outputs the entity type and entity value. Specific entity words include resource names, resource categories, location information, place names, building names, etc.
[0128] like Figure 12As shown, once the voice recognition module of the backend server identifies a valid intent, i.e., determines the target operation, it initiates a condition query to the game module through the central control module to obtain the execution conditions of the target operation. Then, the server sends the specific target operation and execution conditions to the terminal. The terminal updates the game log based on the operation execution status and sends the game log to the server so that the server can update the game log.
[0129] Step 704: Based on the intent recognition results and the candidate operations corresponding to each virtual interaction object, determine the first virtual interaction object.
[0130] Among them, the candidate operation is the operation supported by the virtual interaction object, and the candidate operation corresponding to the first virtual interaction object includes the target operation.
[0131] In one possible implementation, different types of virtual objects may be able to execute different operation instructions. The terminal determines the first virtual interaction object that supports the target operation based on the correspondence between virtual interaction objects and candidate operations.
[0132] Step 704 includes either step 704a or step 704b:
[0133] Step 704a: If at least two candidate virtual interaction objects have candidate operations that include the target operation, determine the first virtual interaction object from the at least two candidate virtual interaction objects based on the interface interaction operations received within the target time period. The target time period includes the time period before the first control voice is received.
[0134] In one possible implementation, users can directly control game operations via voice, meaning they can perform a game operation entirely through voice commands. Alternatively, they can combine touch controls with voice commands. For example, a user can select a target virtual team from multiple virtual teams and then input the first control voice command, "Fight against xxx faction." Based on the team selection and the first control voice command, the terminal determines the first virtual interaction object to perform the target operation, i.e., the target virtual team.
[0135] Indicatively, the target time period is 10 seconds. When there are at least two candidate virtual interaction objects whose candidate operations include the target operation, and the first control voice does not indicate the first virtual interaction object, the terminal acquires the interface interaction operations within the 10 seconds before the first control voice is collected based on historical operation records, and determines the first virtual interaction object based on the interface interaction operations.
[0136] Step 704b: If at least two candidate virtual interaction objects have candidate operations that include the target operation, prompt at least two candidate virtual interaction objects; in response to receiving a selection operation for a candidate virtual interaction object, determine the selected candidate virtual interaction object as the first virtual interaction object.
[0137] In another possible implementation, when at least two candidate virtual interactive objects correspond to candidate operations that include the target operation, and the first control voice does not indicate the first virtual interactive object, the terminal prompts the user to make a selection based on at least two candidate virtual objects. Optionally, the terminal provides the prompt via voice, or the terminal displays the prompt information as text on the virtual environment screen. The user can select the first virtual interactive object based on the prompt information via touch operation or by inputting voice control commands.
[0138] For example, when the terminal receives the first control voice command "Battle against the xxx faction," it determines two candidate virtual interaction objects, including virtual team A and virtual team B, and outputs the voice prompt "Please select team A or team B to battle." When the terminal receives the control voice command "Team A," it identifies virtual team A as the first virtual interaction object.
[0139] Step 705: If the first virtual interactive object meets the execution conditions of the target operation, control the first virtual interactive object to execute the target operation.
[0140] The specific implementation of step 705 can be referred to step 203 above, and will not be repeated here in the embodiments of this application.
[0141] In this embodiment, before converting the speech content into text content, the acquired speech stream is first subjected to noise reduction and truncation processing, which improves the accuracy of speech recognition. When there are at least two candidate virtual interactive objects that support the target operation, the terminal can prompt the user to make a selection, or it can automatically determine the first virtual interactive object based on the interface interaction operations within the target time period. Users can rely entirely on voice control for game operations, or they can combine interface interaction operations with voice control, providing rich interaction forms and improving the convenience of game interaction.
[0142] In one possible implementation, the terminal supports user-defined voice commands, allowing complex combinations of commands to be edited into specific voice commands.
[0143] Please refer to Figure 13 This embodiment illustrates a flowchart of a control method for a virtual interactive object provided in another exemplary embodiment of this application. This embodiment describes the method as being executed by a terminal supporting a virtual environment, and the method includes the following steps:
[0144] Step 1301: Display a virtual environment screen, which contains at least one virtual interactive object owned by the target virtual faction.
[0145] The specific implementation of step 1301 can be referred to step 201 above, and will not be repeated here in the embodiments of this application.
[0146] Step 1302: The operation settings interface is displayed.
[0147] In one possible implementation, the game client supports customizable operations. Users can customize these operations through the operation settings interface, entering operation names and commands.
[0148] Step 1303: Obtain the operation name of the custom operation entered in the operation settings interface.
[0149] Optionally, users can input the text corresponding to the operation name through touch operation, or users can input the operation name through voice, and the terminal will recognize the operation name and display it through the operation settings interface.
[0150] Indicative, such as Figure 14 As shown, the operation settings interface 1401 displays a voice command text box 1402, and the user enters the operation name "Wild Goose Formation" in the voice command text box 1402.
[0151] Step 1304: Based on the demonstration operation entered in the operation settings interface, generate the operation instructions corresponding to the custom operation. The demonstration operation is used to demonstrate the custom operation.
[0152] Optionally, this demonstration can be performed via text input, such as... Figure 14 The operation settings interface 1401 shown includes a game operation text box 1403. Users can input custom operations such as "5 cavalrymen in the middle, 10 infantrymen on the left side of the middle, and 10 infantrymen on the right side of the middle" in the game operation text box 1403. Alternatively, for operations that are difficult to describe in words, the terminal also supports recording demonstration operations through actual interactive operations. For example, when an operation input command is received, the terminal returns to the virtual environment screen and begins recording the interface interaction operations; when an operation input end command is received, the terminal stops recording the interaction operations and returns to the operation settings interface.
[0153] Step 1305: Associate and store the operation name and operation command of the custom operation.
[0154] After the terminal associates and stores the operation name and operation command of a custom operation, the user can input the name of the custom operation by voice to have the terminal complete the corresponding operation command. For example... Figure 14As shown, after the terminal associates and stores the operation name "Wild Goose Formation" in the voice command text box 1402 and the operation command in the game operation text box 1403, when it recognizes the control voice 1404 "Arrange Wild Goose Formation" containing "Wild Goose Formation", it executes the corresponding operation command and feeds back the operation execution result 1405 "Okay".
[0155] The terminal stores the operation name and operation command of the custom operation corresponding to the currently logged-in account locally. In one possible implementation, since users may log in to their game accounts on different terminal devices, to ensure that users can use custom operations on various terminals, the terminal also performs the following steps after obtaining the newly added custom operation:
[0156] Upload the operation name and operation command corresponding to the custom operation to the server.
[0157] Step 1306: In response to receiving the first control voice, determine the first virtual interaction object among at least one virtual interaction object, the first virtual interaction object being a virtual interaction object for performing the target operation indicated by the first control voice.
[0158] The specific implementation of step 1306 can be referred to step 202 above, and will not be repeated here in the embodiments of this application.
[0159] Step 1307: If the first virtual interactive object meets the execution conditions of the target operation, obtain the operation instruction corresponding to the target operation.
[0160] In SLG games, especially in complex operation scenarios, one operation may correspond to multiple interface interaction operation instructions. In this embodiment, after the terminal determines the target operation based on the user's first control voice, it then determines the operation instructions corresponding to the target operation, and then controls the first virtual interactive object to complete the interactive operation in sequence according to the operation instructions.
[0161] In one possible implementation, the terminal locally associates and stores operation names and operation instructions, including operation names set by default on the client and user-defined operation names. In another possible implementation, step 1307 further includes the following steps 1307a to 1307b:
[0162] Step 1307a: If the operation instruction corresponding to the target operation is not found locally, a command query request is sent to the server.
[0163] Step 1307b: Receive the operation instruction corresponding to the target operation from the server.
[0164] If the client running on the terminal is not updated in a timely manner, or if the user adds a custom operation on another terminal device, the terminal cannot find the operation instruction corresponding to the target operation locally. In this case, the terminal sends an instruction query request to the server and receives the operation instruction corresponding to the target operation from the server. In one possible implementation, after receiving the operation instruction from the server, the terminal updates its local storage and adds the mapping between the target operation and the operation instruction.
[0165] Step 1308: Control the first virtual interactive object to perform the target operation based on the operation instructions.
[0166] The terminal controls the first virtual interactive object to perform the target operation according to the operation instructions and the order in which the operation instructions are executed.
[0167] In this embodiment, the terminal supports user-defined operations. Users can combine complex interface interaction operations and enter operation names according to their own language habits, thereby further simplifying the interaction and improving the convenience of game operation. On the other hand, the terminal promptly uploads the relevant information of the newly added custom operation to the server, and obtains the operation instruction from the server when the corresponding operation instruction for the target operation is not found locally, thereby realizing the synchronization of custom operations across different devices.
[0168] Figure 15 This is a structural block diagram of a control device for a virtual interactive object provided in an exemplary embodiment of this application. The device includes the following structure:
[0169] Display module 1501 is used to display a virtual environment screen, the virtual environment screen containing at least one virtual interactive object owned by the target virtual faction, the virtual interactive object being used to perform corresponding operations in the virtual environment based on received operation instructions;
[0170] The determining module 1502 is configured to, in response to receiving a first control voice, determine a first virtual interaction object among at least one of the virtual interaction objects, wherein the first virtual interaction object is a virtual interaction object for performing the target operation indicated by the first control voice.
[0171] The control module 1503 is used to control the first virtual interactive object to execute the target operation when the first virtual interactive object meets the execution conditions of the target operation.
[0172] Optionally, the device further includes:
[0173] The acquisition module is used to acquire the faction information of the target virtual faction. The faction information includes at least one of faction resource information and faction behavior information. The faction resource information is used to characterize the virtual resources possessed by the target virtual faction, and the faction behavior information is used to characterize the faction behavior of the target virtual faction in the virtual environment.
[0174] The determining module 1502 is further configured to determine, based on the faction information, whether the first virtual interactive object meets the execution conditions of the target operation.
[0175] Optionally, the faction information includes the faction resource information;
[0176] The determining module 1502 is further configured to:
[0177] Determine the amount of virtual resources required for the first virtual interactive object to perform the target operation;
[0178] If the virtual resource ownership indicated by the faction resource information is greater than the virtual resource usage, it is determined that the first virtual interaction object meets the execution conditions of the target operation.
[0179] If the amount of virtual resources owned as indicated by the faction resource information is less than the amount of virtual resources used, it is determined that the first virtual interaction object does not meet the execution conditions of the target operation.
[0180] Optionally, the device further includes:
[0181] The prompting module is used to prompt at least one alternative operation corresponding to the target operation when the first virtual interactive object does not meet the execution conditions of the target operation. The alternative operation is determined based on the virtual resource ownership and the virtual resource usage.
[0182] The determining module 1502 is further configured to, in response to receiving the second control voice, determine at least one of the virtual interaction objects as a second virtual interaction object, wherein the second virtual interaction object is a virtual interaction object for performing the replacement operation indicated by the second control voice operation;
[0183] The control module 1503 is also used to control the second virtual interactive object to perform the alternative operation.
[0184] Optionally, the faction information includes the faction behavior information;
[0185] The determining module 1502 is further configured to:
[0186] If the faction behavior indicated by the faction behavior information and the target operation support parallel execution, it is determined that the first virtual interaction object satisfies the execution conditions of the target operation;
[0187] If the faction behavior indicated by the faction behavior information and the target operation do not support parallel execution, it is determined that the first virtual interaction object does not meet the execution conditions of the target operation.
[0188] Optionally, the prompting module is further configured to provide a delayed execution prompt when the first virtual interactive object does not meet the execution conditions of the target operation, wherein the delayed execution prompt is used to prompt the target operation to be executed after the faction behavior ends;
[0189] The control module 1503 is further configured to control the first virtual interactive object to perform the target operation when a third control voice is received and the faction behavior ends.
[0190] Optionally, the determining module 1502 is further configured to:
[0191] In response to receiving the first control voice, the first control voice is converted into speech text;
[0192] The speech text is subjected to intent recognition to obtain intent recognition results, which include the identified target operation.
[0193] Based on the intent recognition result and the candidate operations corresponding to each of the virtual interaction objects, the first virtual interaction object is determined. The candidate operations are the operations supported by the virtual interaction object, and the target operation is included in the candidate operations corresponding to the first virtual interaction object.
[0194] Optionally, the determining module 1502 is further configured to:
[0195] If the target operation is included in the candidate operations corresponding to at least two candidate virtual interaction objects, the first virtual interaction object is determined from at least two candidate virtual interaction objects based on the interface interaction operations received within the target time period, wherein the target time period includes the time period before the first control voice is received.
[0196] or,
[0197] If at least two candidate virtual interaction objects contain the target operation in their candidate operations, prompt at least two of the candidate virtual interaction objects; in response to receiving a selection operation for the candidate virtual interaction object, determine the selected candidate virtual interaction object as the first virtual interaction object.
[0198] Optionally, the control module 1503 is further configured to:
[0199] Obtain the operation instruction corresponding to the target operation;
[0200] Based on the operation instructions, the first virtual interactive object is controlled to perform the target operation.
[0201] Optionally, if the target operation is a custom operation,
[0202] The display module 1501 is also used to display the operation settings interface;
[0203] The acquisition module is also used to acquire the operation name of the custom operation entered in the operation settings interface;
[0204] The device further includes a generation module, which is used to generate operation instructions corresponding to the custom operation based on the demonstration operation entered in the operation setting interface, and the demonstration operation is used to demonstrate the custom operation.
[0205] The device further includes a storage module for associating and storing the operation name and operation instruction of the custom operation.
[0206] Optionally, the device further includes:
[0207] The transmission module is used to upload the operation name and operation instruction corresponding to the custom operation to the server;
[0208] The acquisition module is also used for:
[0209] If the operation instruction corresponding to the target operation is not found locally, an instruction query request is sent to the server;
[0210] Receive the operation instruction corresponding to the target operation fed back by the server.
[0211] Optionally, the prompting module is further configured to:
[0212] The result of the target operation is prompted, wherein the prompting method includes at least one of voice and text.
[0213] It should be noted that the apparatus provided in the above embodiments is only an example of the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their implementation process can be found in the method embodiments, which will not be repeated here.
[0214] In summary, in this embodiment, when the first control voice is received, a first virtual interactive object capable of executing the target operation indicated by the first control voice is determined, and the execution condition judgment logic is triggered. Based on the current virtual environment, it is determined whether the first virtual interactive object meets the execution conditions of the target operation. If the first virtual interactive object meets the execution conditions, the triggering process of the target operation is simulated, thus flattening the interactive operation. The complex condition judgment is automatically executed according to the first control voice, and the corresponding function is realized, thereby greatly simplifying the interaction process of complex functions, reducing operation steps, and shortening operation time.
[0215] Please refer to Figure 16 This diagram illustrates a structural block diagram of a terminal 1600 provided in an exemplary embodiment of this application. The terminal 1600 may be a portable mobile terminal, such as a smartphone, tablet computer, Moving Picture Experts Group Audio Layer III (MP3) player, or Moving Picture Experts Group Audio Layer IV (MP4) player. The terminal 1600 may also be referred to as a user device, portable terminal, or other names.
[0216] Typically, terminal 1600 includes a processor 1601 and a memory 1602.
[0217] Processor 1601 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1601 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 1601 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1601 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1601 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.
[0218] The memory 1602 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1602 are used to store at least one instruction, which is executed by the processor 1601 to implement the method provided in the embodiments of this application.
[0219] In some embodiments, terminal 1600 may also optionally include: peripheral device interface 1603.
[0220] Peripheral interface 1603 can be used to connect at least one input / output (I / O) related peripheral device to processor 1601 and memory 1602. In some embodiments, processor 1601, memory 1602 and peripheral interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1601, memory 1602 and peripheral interface 1603 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0221] This application also provides a computer-readable storage medium storing at least one instruction, which is loaded and executed by a processor to implement the control method for the virtual interactive object described in the above embodiments.
[0222] Optionally, the computer-readable storage medium may include ROM, RAM, solid-state drives (SSDs), or optical discs, etc. The RAM may include resistive random access memory (ReRAM) and dynamic random access memory (DRAM).
[0223] This application provides a computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the virtual interactive object control method described in the above embodiments.
[0224] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0225] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the first control voice, faction information, game logs, historical operation records, voiceprint characteristics, and other information involved in this application were all obtained with full authorization.
[0226] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A control method of a virtual interactive object, characterized by, The method includes: The virtual environment screen displays a virtual environment screen, which includes at least one virtual interactive object owned by the target virtual faction. The virtual interactive object is used to perform corresponding operations in the virtual environment based on the received operation instructions. In response to receiving a first control voice, a first virtual interaction object is determined from at least one of the virtual interaction objects, wherein the first virtual interaction object is a virtual interaction object for performing the target operation indicated by the first control voice; Obtain faction information of the target virtual faction, wherein the faction information includes at least one of faction resource information and faction behavior information, wherein the faction resource information is used to characterize the virtual resources possessed by the target virtual faction, and the faction behavior information is used to characterize the faction behavior of the target virtual faction in the virtual environment; Based on at least one of the faction resource information and the faction behavior information, determine whether the first virtual interaction object meets the execution conditions of the target operation; If the first virtual interactive object meets the execution conditions of the target operation, control the first virtual interactive object to execute the target operation; Obtain enemy faction information of the opposing virtual faction; generate a battle strategy based on the enemy faction information; provide operation prompts based on the battle strategy, wherein the enemy faction information includes at least one of the operations performed by the enemy faction, the amount of virtual resources owned, and battle status information.
2. The method according to claim 1, characterized in that, The step of determining whether the first virtual interactive object meets the execution conditions of the target operation based on the faction resource information includes: Determine the amount of virtual resources required for the first virtual interactive object to perform the target operation; If the amount of virtual resources owned as indicated by the faction resource information is greater than the amount of virtual resources used, it is determined that the first virtual interactive object meets the execution conditions of the target operation. If the amount of virtual resources owned as indicated by the faction resource information is less than the amount of virtual resources used, it is determined that the first virtual interaction object does not meet the execution conditions of the target operation.
3. The method of claim 2, wherein, The method further includes: If the first virtual interactive object does not meet the execution conditions of the target operation, at least one alternative operation corresponding to the target operation is prompted, and the alternative operation is determined based on the virtual resource ownership and the virtual resource usage. In response to receiving a second control voice, a second virtual interaction object is identified from at least one of the virtual interaction objects, the second virtual interaction object being a virtual interaction object for performing the replacement operation indicated by the second control voice operation; Control the second virtual interactive object to perform the alternative operation.
4. The method according to claim 1, characterized in that, The step of determining whether the first virtual interactive object meets the execution conditions of the target operation based on the faction behavior information includes: If the faction behavior indicated by the faction behavior information and the target operation support parallel execution, it is determined that the first virtual interaction object satisfies the execution conditions of the target operation; If the faction behavior indicated by the faction behavior information and the target operation do not support parallel execution, it is determined that the first virtual interaction object does not meet the execution conditions of the target operation.
5. The method of claim 4, wherein, The method further includes: If the first virtual interaction object does not meet the execution conditions of the target operation, a delayed execution prompt is given, which is used to prompt the target operation to be executed after the faction behavior ends; Upon receiving a third control voice and after the faction action has ended, the first virtual interactive object is controlled to perform the target operation.
6. The method according to any one of claims 1 to 5, characterized in that, The step of responding to receiving a first control voice and determining a first virtual interactive object among at least one of the virtual interactive objects includes: In response to receiving the first control voice, the first control voice is converted into speech text; The speech text is subjected to intent recognition to obtain intent recognition results, which include the identified target operation. Based on the intent recognition result and the candidate operations corresponding to each of the virtual interaction objects, the first virtual interaction object is determined. The candidate operations are the operations supported by the virtual interaction object, and the target operation is included in the candidate operations corresponding to the first virtual interaction object.
7. The method according to claim 6, characterized in that, The step of determining the first virtual interaction object based on the intent recognition result and the candidate operations corresponding to each of the virtual interaction objects includes: If the target operation is included in the candidate operations corresponding to at least two candidate virtual interaction objects, the first virtual interaction object is determined from at least two candidate virtual interaction objects based on the interface interaction operations received within the target time period, wherein the target time period includes the time period before the first control voice is received. or, If at least two candidate virtual interaction objects contain the target operation in their candidate operations, prompt at least two of the candidate virtual interaction objects; in response to receiving a selection operation for the candidate virtual interaction object, determine the selected candidate virtual interaction object as the first virtual interaction object.
8. The method according to any one of claims 1 to 5, characterized in that, The step of controlling the first virtual interactive object to execute the target operation includes: Obtain the operation instruction corresponding to the target operation; Based on the operation instructions, the first virtual interactive object is controlled to perform the target operation.
9. The method according to claim 8, characterized in that, When the target operation is a custom operation, the method further includes: Display the operation settings interface; Obtain the name of the custom operation entered in the operation settings interface; Based on the demonstration operation entered in the operation settings interface, an operation instruction corresponding to the custom operation is generated, and the demonstration operation is used to demonstrate the custom operation. The operation name and operation instruction of the custom operation are associated and stored.
10. The method according to claim 9, characterized in that, The method further includes: Upload the operation name and operation instruction corresponding to the custom operation to the server; The step of obtaining the operation instruction corresponding to the target operation includes: If the operation instruction corresponding to the target operation is not found locally, an instruction query request is sent to the server; Receive the operation instruction corresponding to the target operation fed back by the server.
11. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The result of the target operation is prompted, wherein the prompting method includes at least one of voice and text.
12. A control device for a virtual interactive object, characterized in that, The device includes: The display module is used to display a virtual environment screen, which includes at least one virtual interactive object owned by the target virtual faction. The virtual interactive object is used to perform corresponding operations in the virtual environment based on received operation instructions. A determining module is configured to, in response to receiving a first control voice, determine a first virtual interaction object among at least one of the virtual interaction objects, wherein the first virtual interaction object is a virtual interaction object for performing the target operation indicated by the first control voice; The acquisition module is used to acquire the faction information of the target virtual faction. The faction information includes at least one of faction resource information and faction behavior information. The faction resource information is used to characterize the virtual resources possessed by the target virtual faction, and the faction behavior information is used to characterize the faction behavior of the target virtual faction in the virtual environment. The determination module is used to determine whether the first virtual interaction object meets the execution conditions of the target operation based on at least one of the faction resource information and the faction behavior information. The control module is used to control the first virtual interactive object to execute the target operation when the first virtual interactive object meets the execution conditions of the target operation; A module for acquiring enemy faction information of an opposing virtual faction; generating a battle strategy based on the enemy faction information; and providing operation prompts based on the battle strategy. The enemy faction information includes at least one of the following: operations performed by the enemy faction, virtual resource ownership, and battle status information.
13. A terminal, characterized in that, The terminal includes a processor and a memory; the memory stores at least one program, which is loaded and executed by the processor to implement the control method for the virtual interactive object as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the control method for the virtual interactive object as described in any one of claims 1 to 11.
15. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the control method for a virtual interactive object as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Voice-based interaction method and device, medium and electronic equipment
CN110992947A