Virtual character control method and device, storage medium, and electronic device
By dynamically generating and unlocking operation buttons, and adjusting the control method according to the attribute information and status of the virtual character, the problem of low virtual character control efficiency is solved, and the control flexibility and user experience of the game are improved.
Patent Information
- Application Number
- CN202011612441.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-12-30
AI Technical Summary
In multiplayer online tactical competitive games and role-playing games, the control efficiency of virtual characters is low and lacks flexibility. Existing technologies have not been able to effectively solve this problem.
By judging the attribute information and current status of the virtual character, dynamically generate and unlock the operation buttons of the control interface, add control methods, including generating a second type of operation button and updating its status according to specific conditions, and responding to game peripheral instructions to adjust the virtual character's Attribute values and skills improve control flexibility.
It improves the control efficiency and flexibility of virtual characters, improves the playability and user experience of the game, and provides more operation methods to adapt to different scenarios and states.
Smart Images

Figure CN112619145B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for controlling a virtual character, a storage medium, and an electronic device. Background Art
[0002] In the related art, in fighting games, such as MOBA games (Multiplayer Online Battle Arena, MOBA for short) or other types of role-playing games (RPG for short), in the game, the player is responsible for playing the role in a realistic or fictional world, and the following interactive characters in the game scene are non-player characters (NPC).
[0003] In the related art, the operation buttons and corresponding control skills of the game characters are all provided by the system when the player initially selects the game character. The same game characters have the same control buttons on the control interface. If the game characters want other control buttons or skills, they can only choose to use other game characters. However, the game characters in the game scene are limited, which results in low control efficiency and lack of flexibility in the game characters in the game scene.
[0004] With respect to the above-mentioned problems existing in the related technologies, no effective solutions have been found so far. Summary of the invention
[0005] Embodiments of the present invention provide a method and device for controlling a virtual character, a storage medium, and an electronic device.
[0006] According to an embodiment of the present invention, a method for controlling a virtual character is provided, comprising: judging whether first attribute information and second attribute information of the virtual character meet a first preset condition, wherein the first attribute information is used to characterize the team attribute of the virtual character, and the second attribute information is used to characterize the character attribute of the virtual character; if the first attribute information and the second attribute information meet the first preset condition, generating a second type of operation button at an adjacent position of a first type of operation button of a control interface of the virtual character according to the first attribute information and the third attribute information of the virtual character, wherein the first type of operation button is a control button provided by the virtual character when it is newly created, and wherein the third attribute information is used to characterize the faction attribute of the virtual character in the team; judging whether the current state and the fourth attribute information of the virtual character meet a second preset condition; if the current state and the fourth attribute information meet the second preset condition, updating the second type of operation button from a locked state to an open state in the control interface; responding to a first control instruction triggered by a game peripheral on the second type of operation button, determining a first current attribute value of the virtual character based on the first control instruction, and controlling the virtual character in a virtual scene based on the first current attribute value.
[0007] Optionally, the method also includes: determining whether the fifth attribute information of the virtual character meets the third preset condition; if the fifth attribute information meets the third preset condition, unlocking the gain item of the first type of operation button or the second type of operation button based on the attribute type of the fifth attribute information, wherein the gain item is used to increase one of the following attributes corresponding to the first type of operation button or the second type of operation button: control range, control duration, control frequency; responding to a second control instruction triggered by a game peripheral on the first type of operation button or the second type of operation button, determining the second current attribute value of the virtual character according to the gain item and the second control instruction, and controlling the virtual character in the virtual scene based on the second current attribute value.
[0008] Optionally, in response to a second control instruction triggered by a gaming peripheral on the first type of operation button, determining the second current attribute value of the virtual character according to the gain item and the second control instruction includes: obtaining basic attributes of the second control instruction, wherein the attribute items of the basic attributes include: basic control range, basic control duration, basic control frequency, and output attack and defense attribute values; increasing the attribute value of the corresponding attribute item based on the gain item to obtain the target control range, target control duration, and target control frequency.
[0009] Optionally, in response to a second control instruction triggered by a gaming peripheral on the second type of operation button, determining a second current attribute value of the virtual character based on the gain item and the second control instruction includes: determining a control operation corresponding to the second control instruction; and increasing one of the following attributes of the control operation based on the gain item: control range, control duration, and control frequency.
[0010] Optionally, the method also includes: determining whether the sixth attribute information of the virtual character meets the fourth preset condition; if the sixth attribute information meets the fourth preset condition, unlocking the preset skill permission; matching the operation permission according to the scene type of the virtual scene, and activating the operation permission for the virtual character.
[0011] Optionally, after unlocking the preset skill permissions, the method further includes: allocating M operation permissions to the virtual character; responding to the selection instruction of the virtual character, selecting N operation permissions from the M operation permissions, and activating or adding N first-category operation buttons corresponding to the N operation permissions on the control interface of the virtual character, wherein N≤M, M, and N are both positive integers.
[0012] Optionally, determining whether the current state and fourth attribute information of the virtual character meet the second preset condition includes: obtaining the number of triggering times of the first type of operation button; determining whether the number of triggering times is greater than a preset value, and determining whether the current state of the virtual character is the preset state; if the number of triggering times is greater than the preset value and the current state of the virtual character is the preset state, determining that the second attribute information meets the second preset condition; if the number of triggering times is less than or equal to the preset value or the current state of the virtual character is not the preset state, determining that the second attribute information does not meet the second preset condition.
[0013] Optionally, obtaining the trigger count of the first category of operation buttons includes one of the following: obtaining the first trigger count of the first button; obtaining the second trigger count of several specified second buttons; obtaining the third trigger count of the first button and several specified second buttons; wherein the first category of operation buttons includes the first button and multiple second buttons.
[0014] Optionally, controlling the virtual character in the virtual scene based on the first current attribute value includes: switching the virtual character to a specified state in the virtual scene, wherein the virtual character shields external attack instructions in the specified state; determining an attack object pointed to by the first control instruction in the virtual scene, and outputting a damage value m to the attack object. n attack command, wherein m is the damage value output when the first type of operation button is triggered, and n is the level of the attack skill corresponding to the second type of operation button.
[0015] According to another embodiment of the present invention, a control device for a virtual character is provided, comprising: a first judgment module, used to judge whether first attribute information and second attribute information of the virtual character meet a first preset condition, wherein the first attribute information is used to characterize the team attribute of the virtual character, and the second attribute information is used to characterize the character attribute of the virtual character; a generation module, used to generate a second type of operation button at an adjacent position of a first type of operation button of a control interface of the virtual character according to the first attribute information and third attribute information of the virtual character if the first attribute information and the second attribute information meet the first preset condition, wherein the first type of operation button is a control button provided by the virtual character when it is newly created, wherein the third attribute information is used to characterize the faction attribute of the virtual character in the team; a second judgment module, used to judge whether the current state and fourth attribute information of the virtual character meet the second preset condition; a first unlocking module, used to update the second type of operation button from a locked state to an open state in the control interface if the current state and the fourth attribute information meet the second preset condition; and a first control module, used to respond to a first control instruction triggered by a game peripheral on the second type of operation button, determine a first current attribute value of the virtual character based on the first control instruction, and control the virtual character in a virtual scene based on the first current attribute value.
[0016] Optionally, the device also includes: a third judgment module, used to judge whether the fifth attribute information of the virtual character meets the third preset condition; a second unlocking module, used to unlock the gain item of the first type of operation button or the second type of operation button based on the attribute type of the fifth attribute information if the fifth attribute information meets the third preset condition, wherein the gain item is used to increase one of the following attributes corresponding to the first type of operation button or the second type of operation button: control range, control duration, control frequency; a second control module, used to respond to the second control instruction triggered by the game peripheral on the first type of operation button or the second type of operation button, determine the second current attribute value of the virtual character according to the gain item and the second control instruction, and control the virtual character in the virtual scene based on the second current attribute value.
[0017] Optionally, the second control module includes: an acquisition unit, used to acquire the basic attributes of the second control instruction, wherein the attribute items of the basic attributes include: a basic control range, a basic control duration, a basic control frequency, and an output attack and defense attribute value; a first gain unit, used to increase the attribute value of the corresponding attribute item based on the gain item to obtain the target control range, target control duration, and target control frequency.
[0018] Optionally, the second control module includes: a determination unit, used to determine the control operation corresponding to the second control instruction; and a second gain unit, used to increase one of the following attributes of the control operation based on the gain item: control range, control duration, and control frequency.
[0019] Optionally, the device also includes: a fourth judgment module, used to judge whether the sixth attribute information of the virtual character meets the fourth preset condition; a third unlocking module, used to unlock the preset skill permission if the sixth attribute information meets the fourth preset condition; an activation module, used to match the operation permission according to the scene type of the virtual scene, and activate the operation permission for the virtual character.
[0020] Optionally, the device also includes: an allocation module, used to allocate M operation permissions to the virtual character after the third unlocking module unlocks the preset skill permission; a control module, used to respond to the selection instruction of the virtual character, select N operation permissions from the M operation permissions, and activate or add N first-category operation buttons corresponding to the N operation permissions in the control interface of the virtual character, wherein N≤M, M, N are both positive integers.
[0021] Optionally, the second judgment module includes: an acquisition unit, used to acquire the number of triggering times of the first type of operation button; a judgment unit, used to judge whether the number of triggering times is greater than a preset value, and to judge whether the current state of the virtual character is a preset state; a determination unit, used to determine that the second attribute information satisfies a second preset condition if the number of triggering times is greater than the preset value and the current state of the virtual character is the preset state; and determine that the second attribute information does not satisfy the second preset condition if the number of triggering times is less than or equal to the preset value or the current state of the virtual character is not the preset state.
[0022] Optionally, the acquisition unit includes one of the following: a first acquisition unit, used to acquire the first triggering number of the first button; a second acquisition unit, used to acquire the second triggering number of several specified second buttons; a third acquisition unit, used to acquire the third triggering number of the first button and several specified second buttons; wherein the first type of operation button includes the first button and multiple second buttons.
[0023] Optionally, controlling the virtual character in the virtual scene based on the first current attribute value includes: switching the virtual character to a specified state in the virtual scene, wherein the virtual character shields external attack instructions in the specified state; determining an attack object pointed to by the first control instruction in the virtual scene, and outputting a damage value m to the attack object. nattack command, wherein m is the damage value output when the first type of operation button is triggered, and n is the level of the attack skill corresponding to the second type of operation button.
[0024] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.
[0025] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0026] Through the present invention, it is judged whether the first attribute information and the second attribute information of the virtual character meet the first preset condition. If the first attribute information and the second attribute information meet the first preset condition, a second type of operation button is generated at an adjacent position of the first type of operation button of the control interface of the virtual character according to the first attribute information and the third attribute information of the virtual character, it is judged whether the current state and the fourth attribute information of the virtual character meet the second preset condition, if the current state and the fourth attribute information meet the second preset condition, the second type of operation button is updated from a locked state to an open state on the control interface, a first control instruction triggered on the second type of operation button by a game peripheral is responded to, the first current attribute value of the virtual character is determined based on the first control instruction, and the virtual character is controlled in a virtual scene based on the first current attribute value. By generating and unlocking the second type of operation button except the control button provided when the virtual character is newly created under certain conditions, the operation buttons of the virtual character on the control interface can be increased, and more control methods can be realized for the same virtual character, so as to solve the technical problem of low efficiency in controlling virtual characters in virtual scenes in related technologies, improve the control efficiency and flexibility of the virtual characters, and improve the playability of the game and user experience at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0028] Figure 1 It is a hardware structure block diagram of a control computer of a virtual character according to an embodiment of the present invention;
[0029] Figure 2 is a flow chart of a method for controlling a virtual character according to an embodiment of the present invention;
[0030] Figure 3 is a schematic diagram of a control interface in an embodiment of the present invention;
[0031] Figure 4 is a schematic diagram of a scenario in an embodiment of the present invention;
[0032] Figure 5 is a structural block diagram of a control device for a virtual character according to an embodiment of the present invention;
[0033] Figure 6 It is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] Example 1
[0037] The method embodiment provided in the first embodiment of the present application can be executed in a mobile phone, tablet, server, computer or similar electronic terminal. Taking running on a computer as an example, Figure 1 FIG. 1 is a hardware structure diagram of a control computer of a virtual character according to an embodiment of the present invention. Figure 1 As shown, the computer may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0038] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a control method of a virtual character in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. In this embodiment, the processor 104 is used to respond to human-computer interaction instructions and game strategies, and control the target virtual character to perform specified operations to complete the game task. The memory 104 is used to store program scripts, configuration information, attribute information of virtual characters, etc. of electronic games.
[0039] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0040] Optionally, the input-output device 108 further includes a human-computer interaction screen for obtaining human-computer interaction instructions through a human-computer interaction interface and for presenting images in a virtual scene;
[0041] In this embodiment, a method for controlling a virtual character is provided. Figure 2FIG. 1 is a flow chart of a method for controlling a virtual character according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0042] Step S202, determining whether first attribute information and second attribute information of the virtual character meet a first preset condition, wherein the first attribute information is used to characterize the team attribute of the virtual character, and the second attribute information is used to characterize the role attribute of the virtual character;
[0043] Optionally, the virtual scene used in this embodiment can be a virtual game scene, a virtual teaching scene, a virtual demonstration scene, etc., and the virtual scene includes multiple virtual characters, which can be controlled by user operations or system AI, wherein the virtual characters can be controlled by users, such as PCCs (Player-Controlled Characters) in virtual games controlled by a main control player. In this embodiment, the virtual scene is described as a game scene as an example.
[0044] The virtual character (Player Control Character, PCC) of this embodiment is controlled by the main control player through the game client. The second attribute information can be information about the virtual character's health, resources, level, attack and defense in the virtual scene, and can be whether the virtual character has obtained the attribute value or the virtual amount of the attribute value. The team attribute corresponding to the first attribute information can be the virtual camp where the virtual character is located, such as the gang and country in the virtual game, the grade and class in the virtual teaching scene, etc.
[0045] Step S204, if the first attribute information and the second attribute information meet the first preset condition, generate a second type of operation button at an adjacent position of the first type of operation button of the control interface of the virtual character according to the first attribute information and the third attribute information of the virtual character, wherein the first type of operation button is a control button that comes with the virtual character when it is newly created, and wherein the third attribute information is used to characterize the faction attribute of the virtual character in the team;
[0046] In the virtual scene of this embodiment, the team to which the virtual character belongs can be divided into at least two factions, such as dividing the same gang in the game scene into two factions (such as corresponding to the attack flow and the defense flow respectively), and dividing the students in the same class in the virtual teaching scene into two factions (such as corresponding to the active learning type and the passive learning type respectively). When generating the second type of operation button, matching can be performed based on the team to which the virtual character belongs and the faction within the team to which it belongs.
[0047] The first type of operation buttons (including several first operation buttons) and the second type of operation buttons (including several second type of operation buttons) of this embodiment are the attack and defense control buttons of the virtual character, corresponding to two types of attack and defense skills (such as the first control skill and the second control skill, and the control skill can be divided into attack skills, defense skills, etc.), wherein the attack skill triggered by the first type of operation button is the attack and defense skill that comes with the system when the virtual character is newly created, and every two identical virtual characters in the virtual scene are configured with the same first type of operation button, and the attack skill triggered by the second type of operation button is the attack skill assigned by the game server according to the attribute status of the virtual character (whether the first and second attribute information meet the preset conditions), which is used to selectively upgrade the attack and defense system of the virtual character to form the attack and defense system of the virtual character, and every two identical virtual characters in the virtual scene can be configured with the same or different second type of operation buttons, which need to be unlocked and take effect under certain conditions after allocation;
[0048] Step S206, determining whether the current state of the virtual character and the fourth attribute information meet the second preset condition;
[0049] Step S208: if the current state and the fourth attribute information meet the second preset condition, the second type of operation button is updated from the locked state to the open state on the control interface;
[0050] After the second type of operation button is unlocked (turned on), the second type of operation button and the first type of operation button can be triggered simultaneously or in time-sharing mode. Under certain conditions, the second type of operation button and the first type of operation button can be triggered collaboratively, and specific skill effects and skill attributes can also be generated, such as increasing attack range, attack time, etc.
[0051] Step S210, responding to a first control instruction triggered by the gaming peripheral on a second type of operation button, determining a first current attribute value of the virtual character based on the first control instruction, and controlling the virtual character in the virtual scene based on the first current attribute value.
[0052] For example, when a virtual character performs a game task or participates in a combat event in a virtual game scene, two characters in opposing camps may fight each other or compete for virtual resources in the virtual scene in a world scene or a copy scene in the virtual game, and attack instructions may be triggered and sent to each other through the first type of operation buttons or the second type of operation buttons.
[0053] Through the above steps, it is determined whether the first attribute information and the second attribute information of the virtual character meet the first preset condition. If the first attribute information and the second attribute information meet the first preset condition, a second type of operation button is generated at an adjacent position of the first type of operation button of the control interface of the virtual character according to the first attribute information and the third attribute information. It is determined whether the current state and the fourth attribute information of the virtual character meet the second preset condition. If the current state and the fourth attribute information meet the second preset condition, the second type of operation button is updated from a locked state to an open state on the control interface. In response to a first control instruction triggered by a game peripheral on the second type of operation button, the first current attribute value of the virtual character is determined based on the first control instruction, and the virtual character is controlled in a virtual scene based on the first current attribute value. By generating and unlocking the second type of operation button except the control button provided by the system under certain conditions, the operation buttons of the virtual character on the control interface can be improved, thereby realizing more control methods for the same virtual character, solving the technical problem of low efficiency in controlling virtual characters in virtual scenes in related technologies, improving control efficiency and flexibility of virtual characters, and improving game playability and user experience.
[0054] In an implementation scenario of this embodiment, it also includes:
[0055] S11, determining whether the fifth attribute information of the virtual character meets the third preset condition;
[0056] S12, if the fifth attribute information satisfies the third preset condition, unlocking a gain item of the first type of operation button or the second type of operation button based on the attribute type of the fifth attribute information, wherein the gain item is used to increase one of the following attributes corresponding to the first type of operation button or the second type of operation button: control range, control duration, and control frequency;
[0057] The type of gain item may be matched based on the fifth attribute information or may be randomly assigned.
[0058] S13, responding to a second control instruction triggered by the game peripheral on the first type of operation button or the second type of operation button, determining a second current attribute value of the virtual character according to the gain item and the second control instruction, and controlling the virtual character in the virtual scene based on the second current attribute value.
[0059] In one embodiment based on this implementation scenario, determining whether the fifth attribute information of the virtual character meets the third preset condition includes: obtaining the skill level of the first type of operation button, and / or obtaining the amount of game resources of the virtual character; determining whether the skill level reaches the second preset level, and / or determining whether the amount of game resources is greater than the second preset amount; if the skill level reaches the second preset level and / or the amount of game resources is greater than the second preset amount, determining that the fifth attribute information of the virtual character meets the third preset condition; if the skill level does not reach the second preset level and / or the amount of game resources is less than or equal to the second preset amount, determining that the fifth attribute information of the virtual character does not meet the third preset condition.
[0060] Optionally, different types of game resources correspond to different gain items, such as game resource A generates A gain item for the first type of operation button, and game resource B generates B gain item for the first type of operation button.
[0061] The gain item of this embodiment can generate the gain attribute of the attribute value of the first control skill, such as increasing the attack time, attack object, etc. of the first type of operation button or the second type of operation button. When used in combination with the first control skill or the second type of operation button, the virtual character can obtain game resources by improving the skill level of the first type of operation button, or unlock the gain item by obtaining virtual resources such as required props. The gain item can increase the range of the first control skill, reduce the unlocking cycle, and achieve game effects such as reducing the skill CD time (cooling time), increasing the damage range, and blood recovery ability. In this embodiment, the gain item is combined with the first type of control skills that come with the system and the second type of control skills corresponding to the second type of operation buttons, and other attributes other than the damage value or defense value in the control skill can be increased, such as the time, range, CD time, etc. of the hegemony (the character state that is immune to all external damage), thereby achieving additional gain for the frequency, control range, control time, etc. of the output skill of the operation button.
[0062] In one implementation of the present embodiment, the gain item is combined with the first type of operation button, and responds to the second control instruction triggered by the game peripheral on the first type of operation button. Determining the second current attribute value of the virtual character according to the gain item and the second control instruction includes: obtaining the basic attributes of the second control instruction, wherein the attribute items of the basic attributes include: basic control range, basic control duration, basic control frequency, and output attack and defense attribute values; increasing the attribute value of the corresponding attribute item based on the gain item to obtain the target control range, target control duration, and target control frequency, so as to determine the second current attribute value.
[0063] In an example, the basic attribute of the second control instruction is to output an attack instruction lasting 2 seconds to the hostile character within range A every 5 seconds, and the gain item is the control duration, which is increased by 1 second. After the gain, the first type of operation button can trigger the output of an attack instruction lasting 3 (2+1) seconds to the hostile character within range A every 5 seconds.
[0064] In another implementation of this embodiment, the gain item is combined with the second type of operation button, and responds to the second control instruction triggered by the game peripheral on the second type of operation button. Determining the second current attribute value of the virtual character based on the gain item and the second control instruction includes: determining the control operation corresponding to the second control instruction; and increasing one of the following attributes of the control operation based on the gain item: control range, control duration, and control frequency.
[0065] In one example, the original control frequency of the second control instruction triggered by the second type of operation button (corresponding to the cooling time of the second control instruction) is 0.1 (HZ), that is, the second control instruction can be triggered once every 10 seconds by the second type of operation button, and the gain item is the control frequency. When it increases by 0.1, the cooling time is reduced by 5 seconds. After the gain, the second type of operation button can trigger the second control instruction once every 5 seconds.
[0066] In another implementation scenario of this embodiment, the solution further includes: determining whether the sixth attribute information of the virtual character meets the fourth preset condition; if the sixth attribute information meets the fourth preset condition, unlocking the preset skill permission; matching the operation permission according to the scene type of the virtual scene, and activating the operation permission for the virtual character. Optionally, the operation permission is the operation permission of the third type of operation button.
[0067] In a virtual game scene, preset skill permission is a permission to add new control skills to a virtual character. The control skills are skills that cannot be triggered by the first and second type of operation buttons. The unlocked skills can be selectively displayed in the virtual character's control interface. In an example, the system activates several matching control skills for the virtual character by identifying and matching the virtual character's current copy, map position, life status, combat status and other parameters, such as skill attack skills and defense skills in combat status.
[0068] In some examples, in addition to automatic allocation by the system, the virtual character can also select, after unlocking the preset skill authority, it also includes: allocating M operation permissions to the virtual character; responding to the virtual character's selection instruction, selecting N operation permissions from the M operation permissions, and activating or adding N first-class operation buttons corresponding to the N operation permissions in the virtual character's control interface, where N≤M, M, N are all positive integers.
[0069] In one instance, activated operation permissions can be selected in combination, such as skill combination 1 includes: operation permission 1 + operation permission 2 + operation permission 3, and skill combination 2 includes: operation permission 2 + operation permission 4 + operation permission 5. By selecting the combination logo, the user can select and add operation buttons of multiple operation permissions in the control interface.
[0070] In this implementation scenario, the virtual character obtains virtual prop resources through meditation trials to cultivate the level of the mind realm. As the level of the mind realm increases, talent points (a kind of game resource) are obtained. Talent points can be used to unlock preset skill permissions and activate the operation permissions of several skills.
[0071] In one implementation of the present embodiment, determining whether the second attribute information of the virtual character satisfies the first preset condition includes: obtaining the account level of the virtual character, and / or obtaining the first game resource amount of the virtual character; determining whether the account level has reached a preset level, and / or determining whether the first game resource amount is greater than a preset amount; if the account level has reached the preset level and / or the first game resource amount is greater than the preset amount, determining that the second attribute information of the virtual character satisfies the first preset condition; if the account level has not reached the preset level and / or the first game resource amount is less than or equal to the preset amount, determining that the second attribute information of the virtual character does not meet the first preset condition.
[0072] In this embodiment, the virtual character increases the amount of game resources by collecting resource fragments, receiving resource fragments transferred by other virtual characters, etc., and can also be obtained through allocation by game camps such as guilds.
[0073] In one example, the second type of operation buttons includes two types, namely, general type and exclusive type, which are used to trigger exclusive unique skills and general unique skills respectively. When the virtual character reaches a certain level, the system assigns the player the right to generate exclusive unique skills. When the virtual character obtains a preset amount of the first game resource, the game system assigns the virtual character exclusive unique skills and generates the second type of operation buttons in the control interface of the virtual character. The second type of operation buttons and the attack and defense skills triggered by them correspond to the first game resources. For example, game resource A generates a second type of operation button of type A, and game resource B generates a second type of operation button of type B.
[0074] When assigning operation rights to general second-type operation buttons, second-type operation buttons can be matched and generated for virtual characters according to the first attribute information and the third attribute information, and different second-type operation buttons can be generated for virtual characters of different factions in the same team.
[0075] Figure 3: is a schematic diagram of a control interface in an embodiment of the present invention. The control interface is used to control a virtual character in a virtual scene in a game peripheral. In the control interface, the second type of operation buttons includes button 1 and button 2, and the first type of operation buttons includes button 3, button 4, and button 5.
[0076] In one implementation of this embodiment, after the first type of operation buttons, the second type of operation buttons, and the third type of operation buttons are generated in the control interface of the virtual character, the above-mentioned operation buttons can also be sorted in the control interface and / or the display status of the operation buttons can be controlled. Since the display area of the control interface is limited, in order to prevent the buttons from being accidentally touched due to being too large, the display of the operation buttons currently displayable in the control interface can be optimized.
[0077] In one example, the scenes in which the virtual characters are located are sorted according to the scene status and character status. For example, if the virtual character is currently walking, the display priority of traffic-related operation buttons can be increased and displayed on the control interface, while other irrelevant operation buttons can be hidden or their sizes can be reduced.
[0078] In another example, the display priority of the operation button is set according to the unlocking state of the operation button (unlocked / open, unlocked / locked) and the remaining unlocking time, the priority of the unlocked operation button is set to the maximum, and the display priority of the operation button is sorted based on the remaining unlocking time. The smaller the remaining time, the greater the display priority, or the button size of the operation button is adjusted in real time according to the remaining unlocking time. The smaller the remaining unlocking time, the larger the button size (the original size is the limit size);
[0079] In another example, the display priority of the operation button is set according to the video frequency of the operation button, and the higher the frequency of use, the greater the priority.
[0080] In one implementation of the present embodiment, determining whether the current state and fourth attribute information of the virtual character meet the second preset condition includes: obtaining the number of triggering times of the first type of operation button; determining whether the number of triggering times is greater than a preset value, and determining whether the current state of the virtual character is the preset state; if the number of triggering times is greater than the preset value and the current state of the virtual character is the preset state, determining that the second attribute information meets the second preset condition; if the number of triggering times is less than or equal to the preset value or the current state of the virtual character is not the preset state, determining that the second attribute information does not meet the second preset condition.
[0081] Optionally, obtaining the triggering times of the first type of operation button includes one of the following: counting the triggering times of the first type of operation button through a preset period, and calculating the triggering times within each preset period; accumulating the triggering times of the first type of operation button according to time, and when the preset value is reached, if the first type of operation button is triggered once, it is directly cleared to zero, and then continues to accumulate. When the virtual character releases ordinary skills through the first type of operation button, it will accumulate the attack slot of the second type of operation button of the unique skill to shorten the release time of the unique skill. When it is full, the unique skill can be released by triggering the second type of operation button.
[0082] Optionally, obtaining the triggering times of the first type of operation buttons includes one of the following: obtaining the first triggering times of the first button; obtaining the second triggering times of several specified second buttons; obtaining the third triggering times of the first button and several specified second buttons; wherein the first type of operation buttons includes the first button and multiple second buttons. Since the first type of operation buttons may include multiple buttons, the triggering times of some of the buttons may be selected for statistics.
[0083] In other examples, in addition to the number of times the first type of operation button is triggered, the total effective damage value, total effective defense value and other attribute values of the first attack skill triggered by the first type of operation button, the number of kills, etc. can also be used as second attribute information to unlock the second type of operation button. For example, after the total effective damage value is greater than a certain amount, the second type of operation button is unlocked once, and the unlocking progress can also be updated in real time based on the current accumulation of attribute values.
[0084] In this embodiment, controlling the virtual character in the virtual scene based on the first current attribute value includes: switching the virtual character to a specified state in the virtual scene, wherein the virtual character shields external attack instructions in the specified state; determining the attack object pointed to by the second control instruction in the virtual scene, and outputting a damage value m to the attack object. n , where m is the damage value output when the first type of operation button is triggered, and n is the level of the attack skill corresponding to the second type of operation button.
[0085] The attack value of the unique skill triggered by the second control command is greater than the first attack skill triggered by the first type of operation button, and is exponentially greater than that of the martial arts skill. During the period of the unique skill triggered by the second control command, the virtual character is in an invincible state (specified state). In the specified state, the virtual character can block the attack commands of the enemy camp for a period of time, or generate an infinite defense value.
[0086] On the other hand, it also includes: responding to a third control instruction triggered by the game peripheral on the first type of operation button to obtain the skill level of the first control skill; using the following formula to calculate the attack and defense attribute value m output by the third control instruction: m=l+a*h, where l is the basic value, a is the gradient coefficient, and h is the skill level.
[0087] The first type of operation button triggers the first control skill, which is the basic skill of the virtual character. The basic skills of each virtual character of each profession (Wudang, Wuxiang, Huashan, Hengshan, and Sun and Moon gangs, each gang is divided into two schools, and each school corresponds to a profession) are different. The virtual character's control interface includes multiple basic skill release buttons (such as 2 or 3). Optionally, in the virtual scene, according to the professional identity of the virtual character, each profession includes two schools, corresponding to attack and defense respectively. By upgrading the player's basic skills, the damage value and defense value output by the virtual character can be improved, such as 1000+100*h (h is the martial arts level of the first control skill). Players can improve their martial arts level by upgrading their levels, thereby improving their attack and defense values.
[0088] In one implementation of the present embodiment, after the control interface unlocks the second type of operation buttons, it also includes: detecting a fourth control instruction triggered by the gaming peripheral on the second type of operation buttons at a first time, and detecting a fifth control instruction triggered by the gaming peripheral on the first type of operation buttons at a second time; calculating the interval between the fourth time and the fifth time, and continuously outputting the fourth control instruction and the fifth control instruction within the interval.
[0089] In one example, virtual character A and virtual character B attack each other in a game environment. Virtual character A triggers a fourth control instruction on the second type of operation button at 10:20:33, and triggers a fifth control instruction on the first type of operation button at 10:20:43. The interval between 10:20:33 and 10:20:43 is calculated to be 10s. The fourth control instruction and the fifth control instruction are continuously output for 10s starting from 10:20:43. Optionally, the start time of the continuous output is the latest time between the first time and the second time, or a moment after the latest time.
[0090] In another implementation of this embodiment, after the control interface unlocks the second type of operation buttons, it also includes: detecting a sixth control instruction triggered by the game peripheral on the second type of operation button at the first position in the virtual scene, and detecting a seventh control instruction triggered by the game peripheral on the first type of operation button at the second position in the virtual scene; selecting a connection area between the first position and the second position in the virtual scene, and outputting a fourth control instruction and a fifth control instruction to all attack objects in the connection area.
[0091] In one example, virtual character A and virtual character B attack each other in a game environment, virtual character A triggers a sixth manipulation instruction at position A in the virtual scene on the second type of operation button, and virtual character B triggers a seventh manipulation instruction at position B in the virtual scene on the first type of operation button, and a connection area between position A and position B is selected in the virtual scene, and optionally, the start time of continuous output is the closest time between the first time and the second time, and the connection area also includes virtual character C and virtual character D (which can be a non-player character), then virtual character A simultaneously outputs the fourth manipulation instruction and the fifth manipulation instruction to virtual character B, virtual character C and virtual character D. Figure 4 It is a schematic diagram of a scenario of an embodiment of the present invention.
[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0093] Example 2
[0094] In this embodiment, a control device for a virtual character is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0095] Figure 5 is a structural block diagram of a control device for a virtual character according to an embodiment of the present invention. Figure 5 As shown, the device includes: a first judgment module 50, a generation module 52, a second judgment module 54, a first unlocking module 56, and a first control module 58, wherein:
[0096] A first judgment module 50 is used to judge whether first attribute information and second attribute information of the virtual character meet a first preset condition, wherein the first attribute information is used to characterize the team attribute of the virtual character, and the second attribute information is used to characterize the role attribute of the virtual character;
[0097] A generating module 52, configured to generate a second type of operation button at an adjacent position of a first type of operation button of a control interface of the virtual character according to the first attribute information and third attribute information of the virtual character if the first attribute information and the second attribute information meet a first preset condition, wherein the first type of operation button is a control button provided by the virtual character when it is newly created, and wherein the third attribute information is used to characterize the faction attribute of the virtual character in the team;
[0098] A second judgment module 54 is used to judge whether the current state of the virtual character and the fourth attribute information meet a second preset condition;
[0099] A first unlocking module 56, configured to update the second type of operation button from a locked state to an unlocked state in the control interface if the current state and the fourth attribute information satisfy a second preset condition;
[0100] The first control module 58 is used to respond to the first control instruction triggered by the game peripheral on the second type of operation button, determine the first current attribute value of the virtual character based on the first control instruction, and control the virtual character in the virtual scene based on the first current attribute value.
[0101] Optionally, the device also includes: a third judgment module, used to judge whether the fifth attribute information of the virtual character meets the third preset condition; a second unlocking module, used to unlock the gain item of the first type of operation button or the second type of operation button based on the attribute type of the fifth attribute information if the fifth attribute information meets the third preset condition, wherein the gain item is used to increase one of the following attributes corresponding to the first type of operation button or the second type of operation button: control range, control duration, control frequency; a second control module, used to respond to the second control instruction triggered by the game peripheral on the first type of operation button or the second type of operation button, determine the second current attribute value of the virtual character according to the gain item and the second control instruction, and control the virtual character in the virtual scene based on the second current attribute value.
[0102] Optionally, the second control module includes: an acquisition unit, used to acquire the basic attributes of the second control instruction, wherein the attribute items of the basic attributes include: a basic control range, a basic control duration, a basic control frequency, and an output attack and defense attribute value; a first gain unit, used to increase the attribute value of the corresponding attribute item based on the gain item to obtain the target control range, target control duration, and target control frequency.
[0103] Optionally, the second control module includes: a determination unit, used to determine the control operation corresponding to the second control instruction; and a second gain unit, used to increase one of the following attributes of the control operation based on the gain item: control range, control duration, and control frequency.
[0104] Optionally, the device also includes: a fourth judgment module, used to judge whether the sixth attribute information of the virtual character meets the fourth preset condition; a third unlocking module, used to unlock the preset skill permission if the sixth attribute information meets the fourth preset condition; an activation module, used to match the operation permission according to the scene type of the virtual scene, and activate the operation permission for the virtual character.
[0105] Optionally, the device also includes: an allocation module, used to allocate M operation permissions to the virtual character after the third unlocking module unlocks the preset skill permission; a control module, used to respond to the selection instruction of the virtual character, select N operation permissions from the M operation permissions, and activate or add N first-category operation buttons corresponding to the N operation permissions in the control interface of the virtual character, wherein N≤M, M, N are both positive integers.
[0106] Optionally, the second judgment module includes: an acquisition unit, used to acquire the number of triggering times of the first type of operation button; a judgment unit, used to judge whether the number of triggering times is greater than a preset value, and to judge whether the current state of the virtual character is a preset state; a determination unit, used to determine that the second attribute information satisfies a second preset condition if the number of triggering times is greater than the preset value and the current state of the virtual character is the preset state; and determine that the second attribute information does not satisfy the second preset condition if the number of triggering times is less than or equal to the preset value or the current state of the virtual character is not the preset state.
[0107] Optionally, the acquisition unit includes one of the following: a first acquisition unit, used to acquire the first triggering number of the first button; a second acquisition unit, used to acquire the second triggering number of several specified second buttons; a third acquisition unit, used to acquire the third triggering number of the first button and several specified second buttons; wherein the first type of operation button includes the first button and multiple second buttons.
[0108] Optionally, controlling the virtual character in the virtual scene based on the first current attribute value includes: switching the virtual character to a specified state in the virtual scene, wherein the virtual character shields external attack instructions in the specified state; determining an attack object pointed to by the first control instruction in the virtual scene, and outputting a damage value m to the attack object. nattack command, wherein m is the damage value output when the first type of operation button is triggered, and n is the level of the attack skill corresponding to the second type of operation button.
[0109] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0110] Example 3
[0111] The present application also provides an electronic device, Figure 6 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 6 As shown, it includes a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62, and the memory 63 communicate with each other through the communication bus 64, and the memory 63 is used to store computer programs;
[0112] The processor 61 is used to execute the program stored in the memory 63 to implement the following steps: determine whether the first attribute information and the second attribute information of the virtual character meet the first preset condition, wherein the first attribute information is used to characterize the team attribute of the virtual character, and the second attribute information is used to characterize the role attribute of the virtual character; if the first attribute information and the second attribute information of the virtual character meet the first preset condition, generate a second type of operation button at an adjacent position of the first type of operation button of the control interface of the virtual character according to the first attribute information and the third attribute information, wherein the first type of operation button is a newly created control button of the virtual character, and the third attribute information is used to characterize the faction attribute of the virtual character in the team; determine whether the current state and the fourth attribute information of the virtual character meet the second preset condition; if the current state and the fourth attribute information meet the second preset condition, update the second type of operation button from a locked state to an open state in the control interface; respond to a first control instruction triggered by a game peripheral on the second type of operation button, determine a first current attribute value of the virtual character based on the first control instruction, and control the virtual character in a virtual scene based on the first current attribute value.
[0113] Optionally, the method also includes: determining whether the fifth attribute information of the virtual character meets the third preset condition; if the fifth attribute information meets the third preset condition, unlocking the gain item of the first type of operation button or the second type of operation button based on the attribute type of the fifth attribute information, wherein the gain item is used to increase one of the following attributes corresponding to the first type of operation button or the second type of operation button: control range, control duration, control frequency; responding to a second control instruction triggered by a game peripheral on the first type of operation button or the second type of operation button, determining the second current attribute value of the virtual character according to the gain item and the second control instruction, and controlling the virtual character in the virtual scene based on the second current attribute value.
[0114] Optionally, in response to a second control instruction triggered by a gaming peripheral on the first type of operation button, determining the second current attribute value of the virtual character according to the gain item and the second control instruction includes: obtaining basic attributes of the second control instruction, wherein the attribute items of the basic attributes include: basic control range, basic control duration, basic control frequency, and output attack and defense attribute values; increasing the attribute value of the corresponding attribute item based on the gain item to obtain the target control range, target control duration, and target control frequency.
[0115] Optionally, in response to a second control instruction triggered by a gaming peripheral on the second type of operation button, determining a second current attribute value of the virtual character based on the gain item and the second control instruction includes: determining a control operation corresponding to the second control instruction; and increasing one of the following attributes of the control operation based on the gain item: control range, control duration, and control frequency.
[0116] Optionally, the method also includes: determining whether the sixth attribute information of the virtual character meets the fourth preset condition; if the sixth attribute information meets the fourth preset condition, unlocking the preset skill permission; matching the operation permission according to the scene type of the virtual scene, and activating the operation permission for the virtual character.
[0117] Optionally, after unlocking the preset skill permissions, the method further includes: allocating M operation permissions to the virtual character; responding to the selection instruction of the virtual character, selecting N operation permissions from the M operation permissions, and activating or adding N first-category operation buttons corresponding to the N operation permissions on the control interface of the virtual character, wherein N≤M, M, and N are both positive integers.
[0118] Optionally, determining whether the current state and fourth attribute information of the virtual character meet the second preset condition includes: obtaining the number of triggering times of the first type of operation button; determining whether the number of triggering times is greater than a preset value, and determining whether the current state of the virtual character is the preset state; if the number of triggering times is greater than the preset value and the current state of the virtual character is the preset state, determining that the second attribute information meets the second preset condition; if the number of triggering times is less than or equal to the preset value or the current state of the virtual character is not the preset state, determining that the second attribute information does not meet the second preset condition.
[0119] Optionally, obtaining the trigger count of the first category of operation buttons includes one of the following: obtaining the first trigger count of the first button; obtaining the second trigger count of several specified second buttons; obtaining the third trigger count of the first button and several specified second buttons; wherein the first category of operation buttons includes the first button and multiple second buttons.
[0120] Optionally, controlling the virtual character in the virtual scene based on the first current attribute value includes: switching the virtual character to a specified state in the virtual scene, wherein the virtual character shields external attack instructions in the specified state; determining an attack object pointed to by the first control instruction in the virtual scene, and outputting a damage value m to the attack object. n attack command, wherein m is the damage value output when the first type of operation button is triggered, and n is the level of the attack skill corresponding to the second type of operation button.
[0121] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0122] The communication interface is used for communication between the above terminal and other devices.
[0123] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0124] The above-mentioned processor 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 gate or transistor logic devices, discrete hardware components.
[0125] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the control method of the virtual character described in any of the above embodiments.
[0126] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the control method of the virtual character described in any one of the above embodiments.
[0127] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0128] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0129] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0130] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0131] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0132] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0133] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable 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: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0134] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for controlling a virtual character, characterized in that: include: Determining whether first attribute information and second attribute information of the virtual character meet a first preset condition, wherein the first attribute information is used to characterize the team attribute of the virtual character, and the second attribute information is used to characterize the role attribute of the virtual character; If the first attribute information and the second attribute information meet a first preset condition, a second type of operation button is generated at an adjacent position of the first type of operation button of the control interface of the virtual character according to the first attribute information and the third attribute information of the virtual character, wherein the first type of operation button is a control button that comes with the virtual character when it is newly created, the third attribute information is used to characterize the faction attribute of the virtual character in the team, and the second type of operation button is a control button assigned according to the attribute status of the virtual character; Determining whether the current state of the virtual character and the fourth attribute information meet a second preset condition; If the current state and the fourth attribute information satisfy a second preset condition, updating the second-type operation button from a locked state to an open state on the control interface; In response to a first manipulation instruction triggered on the second-type operation button, a first current attribute value of the virtual character is determined based on the first manipulation instruction, and the virtual character is controlled in a virtual scene based on the first current attribute value.
2. The method according to claim 1, characterized in that: The method further comprises: Determining whether the fifth attribute information of the virtual character meets a third preset condition; If the fifth attribute information satisfies the third preset condition, unlocking the gain item of the first type of operation button or the second type of operation button based on the attribute type of the fifth attribute information, wherein the gain item is used to increase one of the following attributes corresponding to the first type of operation button or the second type of operation button: control range, control duration, and control frequency; In response to a second control instruction triggered by a game peripheral on the first type of operation button or the second type of operation button, a second current attribute value of the virtual character is determined according to the gain item and the second control instruction, and the virtual character is controlled in the virtual scene based on the second current attribute value.
3. The method according to claim 2, characterized in that In response to a second control instruction triggered by the gaming peripheral on the first type of operation button, determining a second current attribute value of the virtual character according to the gain item and the second control instruction includes: Acquire basic attributes of the second control instruction, wherein the attribute items of the basic attributes include: basic control range, basic control duration, basic control frequency, and output attack and defense attribute values; The attribute value of the corresponding attribute item is increased based on the gain item to obtain the target control range, the target control duration, and the target control frequency.
4. The method according to claim 2, characterized in that: In response to a second manipulation instruction triggered by the gaming peripheral on the second type of operation button, determining a second current attribute value of the virtual character according to the gain item and the second manipulation instruction includes: Determining a control operation corresponding to the second manipulation instruction; One of the following attributes of the control operation is correspondingly increased based on the gain term: control range, control duration, and control frequency.
5. The method according to claim 1, characterized in that The method further comprises: Determining whether the sixth attribute information of the virtual character meets a fourth preset condition; If the sixth attribute information satisfies the fourth preset condition, unlocking the preset skill permission; The operation authority is matched according to the scene type of the virtual scene, and the operation authority is activated for the virtual character.
6. The method according to claim 5, characterized in that After unlocking the preset skill permission, the method further includes: Allocating M operation permissions to the virtual character; In response to the selection instruction of the virtual character, N operation permissions are selected from the M operation permissions, and N first-category operation buttons corresponding to the N operation permissions are activated or added on the control interface of the virtual character, wherein N≤M, M, and N are both positive integers.
7. The method according to claim 1, characterized in that Determining whether the current state of the virtual character and the fourth attribute information satisfy the second preset condition includes: Obtain the number of times the first type of operation button is triggered; Determining whether the triggering number is greater than a preset value, and determining whether the current state of the virtual character is a preset state; If the triggering number is greater than the preset value and the current state of the virtual character is a preset state, it is determined that the second attribute information satisfies a second preset condition.
8. The method according to claim 7, characterized in that Obtaining the triggering times of the first type of operation button includes one of the following: Get the first triggering count of the first button; Get the second triggering times of several specified second buttons; Get the third triggering times of the first button and several specified second buttons; The first type of operation buttons includes the first button and a plurality of the second buttons.
9. The method according to claim 1, characterized in that: Controlling the virtual character in the virtual scene based on the first current attribute value includes: Switching the virtual character to a specified state in a virtual scene, wherein the virtual character shields external attack instructions in the specified state; Determine the attack object pointed to by the first control instruction in the virtual scene, and output a damage value m to the attack object. n attack command, wherein m is the damage value output when the first type of operation button is triggered, and n is the level of the attack skill corresponding to the second type of operation button.
10. A control device for a virtual character, characterized in that: include: A first judgment module, used to judge whether first attribute information and second attribute information of the virtual character meet a first preset condition, wherein the first attribute information is used to characterize the team attribute of the virtual character, and the second attribute information is used to characterize the role attribute of the virtual character; A generating module, configured to generate a second type of operation button at an adjacent position of a first type of operation button of a control interface of the virtual character according to the first attribute information and third attribute information of the virtual character if the first attribute information and the second attribute information meet a first preset condition, wherein the first type of operation button is a control button provided by the virtual character when it is newly created, wherein the third attribute information is used to characterize the faction attribute of the virtual character in a team, and the second type of operation button is a control button allocated according to the attribute status of the virtual character; A second judgment module, used to judge whether the current state of the virtual character and the fourth attribute information meet a second preset condition; A first unlocking module, configured to update the second-type operation button from a locked state to an unlocked state on the control interface if the current state and the fourth attribute information satisfy a second preset condition; The first control module is used to respond to a first control instruction triggered by the game peripheral on the second type of operation button, determine a first current attribute value of the virtual character based on the first control instruction, and control the virtual character in a virtual scene based on the first current attribute value.
11. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 9 when executed.
12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method, device, terminal, system and medium for controlling virtual role
CN109364475A
Virtual object control method and device, storage medium and electronic device
CN111111194A
