Method and device for configuring role attributes, storage medium, and electronic device
By generating and configuring virtual character relationship values, the problem of fixed attributes of non-player characters is solved, and the interactivity and user experience of the game scene are improved.
Patent Information
- Application Number
- CN202011584670.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-12-28
AI Technical Summary
In the existing technology, the attribute values of non-player characters (NPCs) are fixed and cannot be changed, which limits the interactivity and playability of the game scene.
By generating the first slave virtual character and the second slave virtual character, and generating relationship values based on the interaction behavior of the master virtual character and its resources, the gain attribute values are judged and configured to improve the matching degree and attribute configuration method of the slave virtual characters.
It improves the interactivity and relevance of subordinate virtual characters in virtual scenes, and improves game playability and user experience.
Smart Images

Figure CN112675543B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for configuring role attributes, 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, abbreviated as MOBA) or other types of role-playing games (RPG), 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 technology, usually only the configuration and interaction of player characters are focused on to improve the user's control experience in the game. When configuring the attribute values and other information of non-player characters, they are fixed in the AI, and the attribute range and attribute value of the non-player characters cannot be changed. However, non-player characters are also important game elements in the game scene. Providing more attribute configuration methods for non-player characters can improve the interactivity and playability of 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] The embodiments of the present invention provide a method and device for configuring role attributes, a storage medium, and an electronic device.
[0006] According to one embodiment of the present invention, there is provided a method for configuring character attributes, comprising: responding to a synthesis instruction of a main virtual character, generating a first subordinate virtual character and a second subordinate virtual character in a virtual scene according to first fragment resources and second fragment resources respectively; generating a first relationship value and a second relationship value according to resource interaction behaviors of the main virtual character with the first subordinate virtual character and the second subordinate virtual character respectively; responding to an association instruction of the main virtual character, determining whether the first subordinate virtual character matches the second subordinate virtual character; and if the first subordinate virtual character matches the second subordinate virtual character, configuring gain attribute values for the first subordinate virtual character and the second subordinate virtual character.
[0007] Optionally, after responding to the synthesis instruction of the main virtual character and generating the first subordinate virtual character and the second subordinate virtual character in the virtual scene according to the first fragment resource and the second fragment resource respectively, the method further includes: issuing a game task; responding to the selection instruction of the main virtual character, selecting a target character from the first subordinate virtual character and the second subordinate virtual character based on the selection instruction to perform the game task; calculating the matching degree between the game task and the target character; and configuring the execution success rate of the game task based on the matching degree, wherein the execution success rate is positively correlated with the matching degree.
[0008] Optionally, determining whether the first subordinate virtual character matches the second subordinate virtual character includes: obtaining a first role identifier and the first relationship value of the first subordinate virtual character, and obtaining a second role identifier and the second relationship value of the second subordinate virtual character, wherein the first role identifier and the second role identifier are identification identifiers of the first subordinate virtual character and the second subordinate virtual character in the virtual scene, respectively; determining whether the combination of the first role identifier and the second role identifier hits a preset role combination, and determining whether the first relationship value and the second relationship value are both greater than a preset threshold; if the combination of the first role identifier and the second role identifier hits the preset role combination, and the first relationship value and the second relationship value are both greater than a preset threshold, determining that the first subordinate virtual character matches the second subordinate virtual character.
[0009] Optionally, configuring gain attribute values for the first subordinate virtual character and the second subordinate virtual character includes: obtaining a matching level between the first subordinate virtual character and the second subordinate virtual character, and obtaining basic attribute values of the first subordinate virtual character and the second subordinate virtual character, wherein the matching level is used to characterize the degree of matching between the first subordinate virtual character and the second subordinate virtual character in the virtual scene; calculating the gain attribute value based on the matching level and / or the basic attribute value; and configuring the gain attribute value for the first subordinate virtual character and the second subordinate virtual character.
[0010] Optionally, generating the first relationship value and the second relationship value according to the resource interaction behaviors between the main virtual character and the first subordinate virtual character and the second subordinate virtual character respectively includes: monitoring the first resource amount of the first prop resource transferred from the main virtual character to the first subordinate virtual character, and monitoring the second resource amount of the second prop resource transferred from the main virtual character to the second subordinate virtual character; calculating the first relationship value between the main virtual character and the first subordinate virtual character based on the first resource amount, and calculating the second relationship value between the main virtual character and the second subordinate virtual character based on the second resource amount.
[0011] Optionally, calculating the first relationship value between the main virtual character and the first subordinate virtual character based on the first resource amount includes: parsing the resource type of the first prop resource; obtaining the unit relationship value of the first prop resource according to the resource type; and calculating the first relationship value based on the unit relationship value and the first resource amount.
[0012] Optionally, if the first subordinate virtual character matches the second subordinate virtual character, the method further includes: responding to a matching instruction triggered by the master virtual character, binding the first subordinate virtual character and the second subordinate virtual character to obtain a character combination; and after receiving a virtual prop sent by the master virtual character to the character combination, increasing a matching level of the first subordinate virtual character and the second subordinate virtual character.
[0013] Optionally, after configuring gain attribute values for the first subordinate virtual character and the second subordinate virtual character, the method further includes: calculating the first character attribute value of the first subordinate virtual character based on the basic attribute value and the gain attribute value of the first subordinate virtual character, and calculating the second character attribute value of the second subordinate virtual character based on the basic attribute value and the gain attribute value of the second subordinate virtual character; if the main virtual character, the first subordinate virtual character, the second subordinate virtual character, and the attribute conversion prop appear at the same scene position in the virtual scene, transferring at least a portion of the first character attribute value and / or the second character attribute value to the corresponding attribute of the main virtual character.
[0014] Optionally, transferring at least a portion of the first character attribute value or the second character attribute value to the corresponding attribute of the main virtual character includes: obtaining the conversion rate of the attribute conversion prop; calculating the first transfer attribute value to be converted of the first character attribute value and / or the second transfer attribute value to be converted of the second character attribute value according to the conversion rate; and adding the first transfer attribute value and / or the second transfer attribute value to the corresponding attribute of the main virtual character.
[0015] Optionally, after generating the first subordinate virtual character and the second subordinate virtual character in the virtual scene respectively according to the first fragment resource and the second fragment resource, the method further includes: determining whether the subordinate virtual character sets of the predetermined character type have all been synthesized, wherein the subordinate virtual character sets include multiple subordinate virtual characters; if the subordinate virtual character sets of the predetermined character type have all been synthesized, allocating virtual game resources to the main virtual character.
[0016] According to another embodiment of the present invention, there is provided a device for configuring character attributes, comprising: a synthesis module for responding to a synthesis instruction of a main virtual character, and generating a first subordinate virtual character and a second subordinate virtual character in a virtual scene according to a first fragment resource and a second fragment resource, respectively; a generation module for generating a first relationship value and a second relationship value according to resource interaction behaviors of the main virtual character with the first subordinate virtual character and the second subordinate virtual character, respectively; a first judgment module for responding to an association instruction of the main virtual character, and judging whether the first subordinate virtual character matches the second subordinate virtual character; and a configuration module for configuring gain attribute values for the first subordinate virtual character and the second subordinate virtual character if the first subordinate virtual character matches the second subordinate virtual character.
[0017] Optionally, the device also includes: a publishing module, used to publish the game task after the synthesis module responds to the synthesis instruction of the main virtual character and generates the first subordinate virtual character and the second subordinate virtual character in the virtual scene according to the first fragment resource and the second fragment resource respectively; a selection module, used to respond to the selection instruction of the main virtual character, and select a target character from the first subordinate virtual character and the second subordinate virtual character to perform the game task based on the selection instruction; a calculation module, used to calculate the matching degree between the game task and the target character; a first allocation module, used to configure the execution success rate of the game task based on the matching degree, wherein the execution success rate is positively correlated with the matching degree.
[0018] Optionally, the first judgment module includes: an acquisition unit, used to acquire a first role identifier and the first relationship value of the first subordinate virtual character, and to acquire a second role identifier and the second relationship value of the second subordinate virtual character, wherein the first role identifier and the second role identifier are identification identifiers of the first subordinate virtual character and the second subordinate virtual character in the virtual scene, respectively; a judgment unit, used to judge whether the combination of the first role identifier and the second role identifier hits a preset role combination, and judges that the first relationship value and the second relationship value are both greater than a preset threshold; a determination unit, used to determine that the first subordinate virtual character matches the second subordinate virtual character if the combination of the first role identifier and the second role identifier hits the preset role combination, and the first relationship value and the second relationship value are both greater than a preset threshold.
[0019] Optionally, the configuration module includes: an acquisition unit, used to acquire a matching level between the first subordinate virtual character and the second subordinate virtual character, and to acquire basic attribute values of the first subordinate virtual character and the second subordinate virtual character, wherein the matching level is used to characterize the degree of matching between the first subordinate virtual character and the second subordinate virtual character in the virtual scene; a calculation unit, used to calculate the gain attribute value based on the matching level and / or the basic attribute value; and a configuration unit, used to configure the gain attribute value for the first subordinate virtual character and the second subordinate virtual character.
[0020] Optionally, the generation module includes: a monitoring unit, used to monitor a first resource amount of a first prop resource transferred from the main virtual character to the first subordinate virtual character, and to monitor a second resource amount of a second prop resource transferred from the main virtual character to the second subordinate virtual character; a calculation unit, used to calculate a first relationship value between the main virtual character and the first subordinate virtual character based on the first resource amount, and to calculate a second relationship value between the main virtual character and the second subordinate virtual character based on the second resource amount.
[0021] Optionally, the calculation unit includes: a parsing subunit, used to parse the resource type of the first prop resource; an acquisition subunit, used to acquire the unit relationship value of the first prop resource according to the resource type; and a calculation subunit, used to calculate the first relationship value based on the unit relationship value and the first resource amount.
[0022] Optionally, if the first subordinate virtual character matches the second subordinate virtual character, the device also includes: a binding module, used to respond to the matching instruction triggered by the main virtual character, bind the first subordinate virtual character and the second subordinate virtual character to obtain a character combination; an adding module, used to increase the matching level of the first subordinate virtual character and the second subordinate virtual character after receiving the virtual props sent by the main virtual character to the character combination.
[0023] Optionally, the device also includes: a calculation module, which is used to calculate the first character attribute value of the first subordinate virtual character based on the basic attribute value and the gain attribute value of the first subordinate virtual character, and calculate the second character attribute value of the second subordinate virtual character based on the basic attribute value and the gain attribute value of the second subordinate virtual character after the configuration module configures the gain attribute value for the first subordinate virtual character and the second subordinate virtual character; and a transfer module, which is used to transfer at least a part of the first character attribute value and / or the second character attribute value to the corresponding attribute of the main virtual character if the main virtual character, the first subordinate virtual character, the second subordinate virtual character, and the attribute conversion prop appear in the same scene position of the virtual scene.
[0024] Optionally, the transfer module includes: an acquisition unit for acquiring the conversion rate of the attribute conversion prop; a calculation unit for calculating the first transfer attribute value to be converted of the first character attribute value and / or the second transfer attribute value to be converted of the second character attribute value according to the conversion rate; and an addition unit for adding the first transfer attribute value and / or the second transfer attribute value to the corresponding attribute of the main virtual character.
[0025] Optionally, the device also includes: a second judgment module, used to judge whether a set of subordinate virtual characters of a predetermined role type has been synthesized after the synthesis module synthesizes the first subordinate virtual character and the second subordinate virtual character in the virtual scene according to the first character fragment resources and the second character fragment resources respectively, wherein the set of subordinate virtual characters includes multiple subordinate virtual characters; a second allocation module, used to allocate virtual game resources to the main virtual character if the set of subordinate virtual characters of the predetermined role type has been synthesized.
[0026] 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.
[0027] 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.
[0028] Through the present invention, in response to the synthesis instruction of the main virtual character, the first subordinate virtual character and the second subordinate virtual character are respectively generated in the virtual scene according to the first fragment resource and the second fragment resource, the first relationship value and the second relationship value are generated according to the resource interaction behavior of the main virtual character with the first subordinate virtual character and the second subordinate virtual character respectively, in response to the association instruction of the main virtual character, it is judged whether the first subordinate virtual character and the second subordinate virtual character match, if the first subordinate virtual character and the second subordinate virtual character match, the gain attribute value is configured for the first subordinate virtual character and the second subordinate virtual character, by judging whether the two subordinate virtual characters match, and configuring the gain attribute value for the subordinate virtual character based on the judgment result, a configuration method of role attribute value is realized, the technical problem that the related technology cannot configure attribute value for the subordinate virtual character according to the matching condition is solved, the interactivity and correlation of the subordinate virtual characters in the virtual scene are improved, and the playability of the game and the user experience are improved at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] 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:
[0030] Figure 1 It is a hardware structure block diagram of a computer for configuring role attributes according to an embodiment of the present invention;
[0031] Figure 2 is a flow chart of a method for configuring role attributes according to an embodiment of the present invention;
[0032] Figure 3 is a conversion schematic diagram of an embodiment of the present invention;
[0033] Figure 4 is a structural block diagram of a device for configuring role attributes according to an embodiment of the present invention;
[0034] Figure 5 It is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] 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.
[0036] 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.
[0037] Example 1
[0038] 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 computer for configuring role attributes according to an embodiment of the present invention. Figure 1 As shown, the computer may include one or more ( Figure 1 Only 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.
[0039] 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 method for configuring a character attribute 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.
[0040] 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.
[0041] 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 a game screen in a game scene;
[0042] In this embodiment, a method for configuring role attributes is provided. Figure 2 FIG. 1 is a flow chart of a method for configuring role attributes according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0043] Step S202, in response to the synthesis instruction of the master virtual character, respectively generate a first subordinate virtual character and a second subordinate virtual character in the virtual scene according to the first fragment resource and the second fragment resource;
[0044] Optionally, the virtual scene of 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 main virtual character can be controlled by the user, such as the PCC (Player-Controlled Character) in the virtual game controlled by the main control player, and the subordinate virtual characters are controlled and interacted by the system AI, such as the non-player character (NPC) in the virtual game. In this embodiment, the virtual scene is taken as a game scene as an example for explanation.
[0045] The character fragment resources of this embodiment are virtual game resources used to synthesize subordinate virtual characters, and may be game resources such as virtual tokens and puzzles of subordinate virtual characters.
[0046] The main virtual character is controlled by the main control player through the game client. After the slave virtual character is synthesized, the main virtual character and the slave virtual character are bound in the game server. The synthesized slave virtual character and the main virtual character are a combination of characters in the same camp or team in the virtual scene. They can execute game tasks assigned to the main virtual character by the system, and execute game events, tasks, etc. such as combat events together with the main virtual character.
[0047] Step S204, generating a first relationship value and a second relationship value according to resource interaction behaviors between the main virtual character and the first subordinate virtual character and the second subordinate virtual character respectively;
[0048] Optionally, the resource interaction behavior includes resource transfer behavior, resource interaction behavior, etc. The relationship value is used to represent the degree of liking or favorability of the main virtual character to the subordinate virtual character.
[0049] Step S206, responding to the association instruction of the master virtual character, determining whether the first subordinate virtual character matches the second subordinate virtual character;
[0050] In this embodiment, the matching relationship between multiple main virtual characters can be reflected in the game as a matching type of relationship such as friends, master and apprentice, husband and wife, father and son, etc. In some scenarios, when the main virtual character has synthesized multiple subordinate virtual characters, it can also respond to a pairing instruction for at least two subordinate virtual characters, and then determine whether the first subordinate virtual character matches the second subordinate virtual character.
[0051] Step S208: If the first subordinate virtual character matches the second subordinate virtual character, configure gain attribute values for the first subordinate virtual character and the second subordinate virtual character.
[0052] The gain attribute value of this embodiment is the attack and defense attribute value (which can be divided into attack attribute value, defense attribute value, movement attribute value, etc.) or combat attribute value in the virtual scene. It is a role attribute. When the subordinate virtual character is synthesized in the virtual scene, the system can also assign a basic attribute value to it. The basic attribute value can be a fixed value, or it can increase or decrease with the amount of tasks completed by the subordinate virtual character or the corresponding main virtual character in the virtual scene, account level, online time and other conditions. The gain attribute value produces a certain amount of gain to the basic attribute value.
[0053] Through the above steps, in response to the synthesis instruction of the main virtual character, the first subordinate virtual character and the second subordinate virtual character are generated in the virtual scene according to the first fragment resource and the second fragment resource respectively, the first relationship value and the second relationship value are generated according to the resource interaction behavior of the main virtual character with the first subordinate virtual character and the second subordinate virtual character respectively, in response to the association instruction of the main virtual character, it is judged whether the first subordinate virtual character and the second subordinate virtual character match, if the first subordinate virtual character and the second subordinate virtual character match, the gain attribute value is configured for the first subordinate virtual character and the second subordinate virtual character, by judging whether the two subordinate virtual characters match, and configuring the gain attribute value for the subordinate virtual character based on the judgment result, a configuration method of role attribute value is realized, the technical problem that the related technology cannot configure attribute value for the subordinate virtual character according to the matching condition is solved, the interactivity and correlation of the subordinate virtual characters in the virtual scene are improved, and the playability and user experience of the game are improved.
[0054] In an implementation scenario of this embodiment, after responding to the synthesis instruction of the master virtual character and generating the first slave virtual character and the second slave virtual character in the virtual scene according to the first fragment resource and the second fragment resource respectively, the method further includes:
[0055] S11, release game tasks;
[0056] The game tasks in this implementation scenario are virtual tasks performed by the main virtual character, such as resource collection tasks, combat tasks, etc. The main virtual character selects and assigns several subordinate virtual characters bound to it to perform the game tasks.
[0057] S12, responding to the selection instruction of the main virtual character, selecting a target character from the first subordinate virtual character and the second subordinate virtual character to perform the game task based on the selection instruction;
[0058] S13, calculating the matching degree between the game task and the target role;
[0059] In this implementation scenario, game tasks and subordinate virtual characters can be classified according to type. For example, they can be divided into five types of game tasks and subordinate virtual characters: piano, book, sword, wine, and flower. They are configured through identifiers in the attributes of the game tasks and subordinate virtual characters, respectively. Each type of game task or subordinate virtual character includes several game tasks or subordinate virtual characters, such as type 1 subordinate virtual characters include character A, character B, and character C.
[0060] Optionally, for a certain game task, the main virtual character can select one or more subordinate virtual characters to execute. For example, multiple subordinate virtual characters can be selected as target characters. Multiple subordinate virtual characters can execute the same game task at the same time to increase the execution speed of the game task. Multiple subordinate virtual characters can execute multiple different game tasks in parallel to increase the resource output of the game task.
[0061] S14, configuring the execution success rate of the game task based on the matching degree, wherein the execution success rate is positively correlated with the matching degree.
[0062] In one embodiment of this implementation scenario, calculating the degree of match between a game task and a target character includes: obtaining a task identifier of the game task, obtaining a character attribute identifier of the target character, wherein the task identifier is used to characterize the task type to which the game task belongs, and the character attribute identifier is used to characterize the character type to which the target character belongs; calculating the degree of match based on the similarity between the character attribute identifier and the task identifier, for example, if the character attribute identifier is exactly the same as the task identifier, the degree of match is 100%, if the character attribute identifier is completely different from the task identifier, the degree of match is 0, and so on for other values.
[0063] Optionally, only two execution success rates can be set, corresponding to match or mismatch respectively (if the matching degree is greater than a threshold, it is a match, otherwise it is a mismatch). If the game task matches the game task, the first execution success rate is assigned to the game task; if the game task does not match the game task, the second execution success rate is assigned to the game task, wherein the first execution success rate is greater than the second execution success rate.
[0064] By executing the game task, if the execution is successful, certain game resources, such as virtual props, virtual currency, etc., can be obtained and distributed to the main virtual character who dispatched the game task. Optionally, the subordinate virtual character that executes the game task can also obtain certain attribute gains (such as character level, attack and defense attributes, etc.), relationship values, etc.
[0065] In one example, the virtual game system issues a knight mission (a game mission in a virtual game scene). The mission has certain attributes (such as a zither, a book, a sword, wine, and flowers). The main virtual character selects a knight (a name for a subordinate virtual character in a virtual game scene) and delegates the obtained knight to complete the mission. The main virtual character can complete the task by hanging up. When the knight type is the same as the mission type, the success rate of the mission is higher. The knight returns to the main virtual character or the predetermined location after a period of time. The mission is completed and the player receives certain game resource rewards.
[0066] In one implementation of the present embodiment, determining whether the first subordinate virtual character matches the second subordinate virtual character includes: obtaining a first role identifier and a first relationship value of the first subordinate virtual character, obtaining a second role identifier and a second relationship value of the second subordinate virtual character, wherein the first role identifier and the second role identifier are identification identifiers of the first subordinate virtual character and the second subordinate virtual character in the virtual scene, respectively; determining whether the combination of the first role identifier and the second role identifier hits a preset role combination, and determining that both the first relationship value and the second relationship value are greater than a preset threshold; if the combination of the first role identifier and the second role identifier hits the preset role combination, and both the first relationship value and the second relationship value are greater than the preset threshold, determining that the first subordinate virtual character matches the second subordinate virtual character.
[0067] Only when the relationship value reaches a preset value and meets the relationship of the preset role combination, the first subordinate virtual character is determined to match the second subordinate virtual character. Optionally, if the combination of the first role identifier and the second role identifier does not hit the preset role combination, or the first relationship value or the second relationship value is less than or equal to a preset threshold, the first subordinate virtual character is determined to not match the second subordinate virtual character.
[0068] In one example, the virtual scene includes six subordinate virtual characters, namely, character A, character B, character C, character D, character E, and character F. By pre-setting in the system, character A and character B, character A and character D, character B and character C, character E and character F, and character B and character E are matching character combinations. If the two subordinate virtual characters currently bound to the main virtual character can hit the above combinations, and the relationship values of the main virtual character and the two subordinate virtual characters are greater than a preset threshold, then they are matched. For example, the two subordinate virtual characters currently bound to the main virtual character are character A and character B, then character A matches character B.
[0069] In other examples, matching can also be performed based on the basic attribute values of the subordinate virtual characters. For example, any two subordinate virtual characters whose basic attribute value difference is less than a preset threshold are matched. Matching can also be performed based on the subordinate virtual characters' gender attributes (male, female, etc.), morphological attributes (fat, thin, tall, short, etc.), and role relationships.
[0070] In one implementation of the present embodiment, configuring gain attribute values for the first subordinate virtual character and the second subordinate virtual character includes: obtaining a matching level between the first subordinate virtual character and the second subordinate virtual character, and obtaining basic attribute values of the first subordinate virtual character and the second subordinate virtual character, wherein the matching level is used to characterize the degree of matching between the first subordinate virtual character and the second subordinate virtual character in the virtual scene; calculating the gain attribute value based on the matching level and / or the basic attribute value; configuring the gain attribute value for the first subordinate virtual character and the second subordinate virtual character.
[0071] In this embodiment, the matching level of the two subordinate virtual characters can be upgraded on the basis of certain conditions on the initial matching level in the virtual scene, or it can be a preset fixed value, for example, the matching level between A and character B is level 2, and the matching level between character A and character D is level 3. Based on this, when the main virtual character generates three subordinate virtual characters A, character B, and character D, it can choose the one with a higher matching level for matching.
[0072] In one implementation of the present embodiment, generating the first relationship value and the second relationship value according to the resource interaction behaviors between the main virtual character and the first subordinate virtual character and the second subordinate virtual character respectively includes: monitoring the first resource amount of the first prop resource transferred from the main virtual character to the first subordinate virtual character, and monitoring the second resource amount of the second prop resource transferred from the main virtual character to the second subordinate virtual character; calculating the first relationship value between the main virtual character and the first subordinate virtual character based on the first resource amount, and calculating the second relationship value between the main virtual character and the second subordinate virtual character based on the second resource amount.
[0073] Based on this implementation, calculating the first relationship value between the main virtual character and the first subordinate virtual character based on the first resource amount includes: parsing the resource type of the first prop resource; obtaining the unit relationship value of the first prop resource according to the resource type; and calculating the first relationship value based on the unit relationship value and the first resource amount.
[0074] In this embodiment, the main virtual character transfers the second prop resource to the subordinate virtual character, and improves the relationship value and increases the favorability by "giving gifts". In one example, the prop resources include multiple types, each type of prop resource corresponds to a unit relationship value, and different types of prop resources are used. The relationship value is improved at different speeds, and different gifts have different effects on different subordinate virtual characters. For example, for subordinate virtual character A, the unit relationship value of the prop resource "wine" is 5, and the unit relationship value of the prop resource "flower" is 4. Then, for each transfer of "a pot of wine" from the main virtual character to the subordinate virtual character, the relationship value between the main virtual character and the subordinate virtual character is increased by 5. Correspondingly, when "a flower" is transferred, the relationship value between the main virtual character and the subordinate virtual character is increased by 4.
[0075] Optionally, if the first subordinate virtual character matches the second subordinate virtual character, the solution of this embodiment also includes: responding to a matching instruction triggered by the main virtual character, binding the first subordinate virtual character and the second subordinate virtual character to obtain a character combination; after receiving the virtual props sent by the main virtual character to the character combination, increasing the matching level of the first subordinate virtual character and the second subordinate virtual character.
[0076] In one example, by sending a virtual gift (a virtual item) to a subordinate virtual character, the favorability (a game attribute) between the main virtual character and the subordinate virtual character can be increased, thereby improving the matching level of the subordinate virtual character, thereby improving the gain attribute value and basic attribute value (such as attack, critical hit, and defense break) of the subordinate virtual character. When the main virtual character obtains multiple subordinate virtual characters, after both subordinate virtual characters reach a certain level, the two subordinate virtual characters can also be matched to form game combinations such as Xiayuan, such as the two subordinate virtual characters Linghu Chong and Ren Yingying in the virtual scene are a matching combination, etc.
[0077] In one implementation of this embodiment, after configuring the gain attribute values for the first subordinate virtual character and the second subordinate virtual character, the method further includes:
[0078] S21, calculating a first character attribute value of the first subordinate virtual character based on a basic attribute value and a gain attribute value of the first subordinate virtual character, and calculating a second character attribute value of the second subordinate virtual character based on a basic attribute value and a gain attribute value of the second subordinate virtual character;
[0079] S22, if the main virtual character, the first subordinate virtual character, the second subordinate virtual character, and the attribute conversion prop appear in the same scene position of the virtual scene, at least a portion of the first character attribute value and / or the second character attribute value is transferred to the corresponding attribute of the main virtual character.
[0080] When the main virtual character, the first subordinate virtual character, and the second subordinate virtual character appear at the same time, and the main virtual character carries an attribute conversion item, the attribute directional transfer of the subordinate virtual character can be achieved, thereby improving the corresponding attribute of the main virtual character.
[0081] Based on the above implementation, transferring at least a portion of the first character attribute value and / or the second character attribute value to the corresponding attribute of the main virtual character includes: obtaining the conversion rate of the attribute conversion prop; calculating the first transfer attribute value to be converted of the first character attribute value and / or the second transfer attribute value to be converted of the second character attribute value according to the conversion rate; and adding the first transfer attribute value and / or the second transfer attribute value to the corresponding attribute of the main virtual character.
[0082] Optionally, the main virtual character can also obtain specific game resources in the virtual scene, such as synthesis props to improve the conversion rate of synthesis props, or can choose one from multiple synthesis props with different conversion rates.
[0083] By using virtual props (concentric knot, square knot, etc.) on the acquired subordinate virtual character, you can increase the favorability level of the subordinate virtual character, that is, improve the relationship value. After the favorability level of the subordinate virtual character is improved, the total attribute value of the subordinate virtual character will also be improved. Players can use conversion props such as formation map to transfer part or all of the attribute value of the subordinate virtual character to the main virtual character. For example, Ren Woxing (a subordinate virtual character) has an attack ability of 1000, and the conversion rate of the formation map is 30%. Through the conversion, the player can obtain 300 attack power of Ren Woxing. After the conversion is completed, the subordinate virtual character automatically disappears or continues to remain. The attributes and attribute values of each subordinate virtual character can be different, and the main virtual character can automatically select the most suitable one for transfer. Figure 3 Schematic diagram of the conversion of the embodiment of the present invention.
[0084] In one implementation of the present embodiment, after respectively generating the first subordinate virtual character and the second subordinate virtual character in the virtual scene according to the first fragment resource and the second fragment resource, it also includes: determining whether the subordinate virtual character sets of the predetermined character type have all been synthesized, wherein the subordinate virtual character sets include multiple subordinate virtual characters; if the subordinate virtual character sets of the predetermined character type have all been synthesized, allocating virtual game resources to the main virtual character.
[0085] Optionally, when each subordinate virtual character is synthesized, a certain amount of virtual game resources may be allocated to the main virtual character.
[0086] In an example, the virtual scene includes five types of subordinate virtual characters, namely, piano, book, sword, wine, and flower. All or part of the subordinate virtual characters of each type can constitute a character set. The system can initially assign a subordinate virtual character to the main virtual character. At the same time, the main virtual character also collects fragment resources such as knight's tokens (fragments), and after the collection is complete, it finally synthesizes the subordinate virtual characters. The main virtual character obtains and binds the corresponding subordinate virtual characters to realize the binding of the main virtual character and the subordinate virtual character. After the main virtual character collects all the subordinate virtual characters of a type of character set, he will obtain certain rewards, such as prop rewards.
[0087] 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.
[0088] Example 2
[0089] In this embodiment, a configuration device for role attributes 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.
[0090] Figure 4 is a structural block diagram of a device for configuring role attributes according to an embodiment of the present invention, such as Figure 4 As shown, the device includes: an acquisition module 40, a generation module 42, a first judgment module 44, and a configuration module 46, wherein:
[0091] A synthesis module 40, for responding to the synthesis instruction of the master virtual character, and generating a first subordinate virtual character and a second subordinate virtual character in the virtual scene according to the first fragment resource and the second fragment resource;
[0092] A generating module 42, configured to generate a first relationship value and a second relationship value according to resource interaction behaviors between the main virtual character and the first subordinate virtual character and the second subordinate virtual character respectively;
[0093] A first judgment module 44 is used to respond to the association instruction of the master virtual character and judge whether the first subordinate virtual character matches the second subordinate virtual character;
[0094] The configuration module 46 is configured to configure gain attribute values for the first subordinate virtual character and the second subordinate virtual character if the first subordinate virtual character matches the second subordinate virtual character.
[0095] Optionally, the device also includes: a publishing module, used to publish the game task after the synthesis module responds to the synthesis instruction of the main virtual character and generates the first subordinate virtual character and the second subordinate virtual character in the virtual scene according to the first fragment resource and the second fragment resource respectively; a selection module, used to respond to the selection instruction of the main virtual character, and select a target character from the first subordinate virtual character and the second subordinate virtual character to perform the game task based on the selection instruction; a calculation module, used to calculate the matching degree between the game task and the target character; a first allocation module, used to configure the execution success rate of the game task based on the matching degree, wherein the execution success rate is positively correlated with the matching degree.
[0096] Optionally, the first judgment module includes: an acquisition unit, used to acquire a first role identifier and the first relationship value of the first subordinate virtual character, and to acquire a second role identifier and the second relationship value of the second subordinate virtual character, wherein the first role identifier and the second role identifier are identification identifiers of the first subordinate virtual character and the second subordinate virtual character in the virtual scene, respectively; a judgment unit, used to judge whether the combination of the first role identifier and the second role identifier hits a preset role combination, and judges that the first relationship value and the second relationship value are both greater than a preset threshold; a determination unit, used to determine that the first subordinate virtual character matches the second subordinate virtual character if the combination of the first role identifier and the second role identifier hits the preset role combination, and the first relationship value and the second relationship value are both greater than a preset threshold.
[0097] Optionally, the configuration module includes: an acquisition unit, used to acquire a matching level between the first subordinate virtual character and the second subordinate virtual character, and to acquire basic attribute values of the first subordinate virtual character and the second subordinate virtual character, wherein the matching level is used to characterize the degree of matching between the first subordinate virtual character and the second subordinate virtual character in the virtual scene; a calculation unit, used to calculate the gain attribute value based on the matching level and / or the basic attribute value; and a configuration unit, used to configure the gain attribute value for the first subordinate virtual character and the second subordinate virtual character.
[0098] Optionally, the synthesis module includes: a monitoring unit for monitoring a first resource amount of a first prop resource transferred from the main virtual character to the first subordinate virtual character, and monitoring a second resource amount of a second prop resource transferred from the main virtual character to the second subordinate virtual character; a calculation unit for calculating a first relationship value between the main virtual character and the first subordinate virtual character based on the first resource amount, and calculating a second relationship value between the main virtual character and the second subordinate virtual character based on the second resource amount.
[0099] Optionally, the calculation unit includes: a parsing subunit, used to parse the resource type of the first prop resource; an acquisition subunit, used to acquire the unit relationship value of the first prop resource according to the resource type; and a calculation subunit, used to calculate the first relationship value based on the unit relationship value and the first resource amount.
[0100] Optionally, if the first subordinate virtual character matches the second subordinate virtual character, the device also includes: a binding module, used to respond to the matching instruction triggered by the main virtual character, bind the first subordinate virtual character and the second subordinate virtual character to obtain a character combination; an adding module, used to increase the matching level of the first subordinate virtual character and the second subordinate virtual character after receiving the virtual props sent by the main virtual character to the character combination.
[0101] Optionally, the device also includes: a calculation module, which is used to calculate the first character attribute value of the first subordinate virtual character based on the basic attribute value and the gain attribute value of the first subordinate virtual character, and calculate the second character attribute value of the second subordinate virtual character based on the basic attribute value and the gain attribute value of the second subordinate virtual character after the configuration module configures the gain attribute value for the first subordinate virtual character and the second subordinate virtual character; and a transfer module, which is used to transfer at least a part of the first character attribute value and / or the second character attribute value to the corresponding attribute of the main virtual character if the main virtual character, the first subordinate virtual character, the second subordinate virtual character, and the attribute conversion prop appear in the same scene position of the virtual scene.
[0102] Optionally, the transfer module includes: an acquisition unit for acquiring the conversion rate of the attribute conversion prop; a calculation unit for calculating the first transfer attribute value to be converted of the first character attribute value and / or the second transfer attribute value to be converted of the second character attribute value according to the conversion rate; and an adding unit for adding the first transfer attribute value and / or the second transfer attribute value to the corresponding attribute of the main virtual character.
[0103] Optionally, the device also includes: a second judgment module, used to judge whether the subordinate virtual character sets of the predetermined character type have been synthesized after the synthesis module synthesizes the first subordinate virtual character and the second subordinate virtual character in the virtual scene according to the first character fragment resources and the second character fragment resources respectively, wherein the subordinate virtual character set includes multiple main virtual characters; a second allocation module, used to allocate virtual game resources to the main virtual character if the subordinate virtual character sets of the predetermined character type have been synthesized.
[0104] 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.
[0105] Example 3
[0106] The present application also provides an electronic device, Figure 5 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 5 As shown, it includes a processor 51, a communication interface 52, a memory 53 and a communication bus 54, wherein the processor 51, the communication interface 52, and the memory 53 communicate with each other through the communication bus 54, and the memory 53 is used to store computer programs;
[0107] The processor 51 is used to execute the program stored in the memory 53 to implement the following steps: respond to the synthesis instruction of the main virtual character, generate a first subordinate virtual character and a second subordinate virtual character in the virtual scene according to the first fragment resource and the second fragment resource respectively; generate a first relationship value and a second relationship value according to the resource interaction behavior between the main virtual character and the first subordinate virtual character and the second subordinate virtual character respectively; respond to the association instruction of the main virtual character, determine whether the first subordinate virtual character matches the second subordinate virtual character; if the first subordinate virtual character matches the second subordinate virtual character, configure gain attribute values for the first subordinate virtual character and the second subordinate virtual character.
[0108] Optionally, after responding to the synthesis instruction of the main virtual character and generating the first subordinate virtual character and the second subordinate virtual character in the virtual scene according to the first fragment resource and the second fragment resource respectively, the method further includes: issuing a game task; responding to the selection instruction of the main virtual character, selecting a target character from the first subordinate virtual character and the second subordinate virtual character based on the selection instruction to perform the game task; calculating the matching degree between the game task and the target character; and configuring the execution success rate of the game task based on the matching degree, wherein the execution success rate is positively correlated with the matching degree.
[0109] Optionally, determining whether the first subordinate virtual character matches the second subordinate virtual character includes: obtaining a first role identifier and the first relationship value of the first subordinate virtual character, and obtaining a second role identifier and the second relationship value of the second subordinate virtual character, wherein the first role identifier and the second role identifier are identification identifiers of the first subordinate virtual character and the second subordinate virtual character in the virtual scene, respectively; determining whether the combination of the first role identifier and the second role identifier hits a preset role combination, and determining whether the first relationship value and the second relationship value are both greater than a preset threshold; if the combination of the first role identifier and the second role identifier hits the preset role combination, and the first relationship value and the second relationship value are both greater than a preset threshold, determining that the first subordinate virtual character matches the second subordinate virtual character.
[0110] Optionally, configuring gain attribute values for the first subordinate virtual character and the second subordinate virtual character includes: obtaining a matching level between the first subordinate virtual character and the second subordinate virtual character, and obtaining basic attribute values of the first subordinate virtual character and the second subordinate virtual character, wherein the matching level is used to characterize the degree of matching between the first subordinate virtual character and the second subordinate virtual character in the virtual scene; calculating the gain attribute value based on the matching level and / or the basic attribute value; and configuring the gain attribute value for the first subordinate virtual character and the second subordinate virtual character.
[0111] Optionally, generating the first relationship value and the second relationship value according to the resource interaction behaviors between the main virtual character and the first subordinate virtual character and the second subordinate virtual character respectively includes: monitoring the first resource amount of the first prop resource transferred from the main virtual character to the first subordinate virtual character, and monitoring the second resource amount of the second prop resource transferred from the main virtual character to the second subordinate virtual character; calculating the first relationship value between the main virtual character and the first subordinate virtual character based on the first resource amount, and calculating the second relationship value between the main virtual character and the second subordinate virtual character based on the second resource amount.
[0112] Optionally, calculating the first relationship value between the main virtual character and the first subordinate virtual character based on the first resource amount includes: parsing the resource type of the first prop resource; obtaining the unit relationship value of the first prop resource according to the resource type; and calculating the first relationship value based on the unit relationship value and the first resource amount.
[0113] Optionally, if the first subordinate virtual character matches the second subordinate virtual character, the method further includes: responding to a matching instruction triggered by the master virtual character, binding the first subordinate virtual character and the second subordinate virtual character to obtain a character combination; and after receiving a virtual prop sent by the master virtual character to the character combination, increasing a matching level of the first subordinate virtual character and the second subordinate virtual character.
[0114] Optionally, after configuring gain attribute values for the first subordinate virtual character and the second subordinate virtual character, the method further includes: calculating the first character attribute value of the first subordinate virtual character based on the basic attribute value and the gain attribute value of the first subordinate virtual character, and calculating the second character attribute value of the second subordinate virtual character based on the basic attribute value and the gain attribute value of the second subordinate virtual character; if the main virtual character, the first subordinate virtual character, the second subordinate virtual character, and the attribute conversion prop appear at the same scene position in the virtual scene, transferring at least a portion of the first character attribute value and / or the second character attribute value to the corresponding attribute of the main virtual character.
[0115] Optionally, transferring at least a portion of the first character attribute value and / or the second character attribute value to the corresponding attribute of the main virtual character includes: obtaining the conversion rate of the attribute conversion prop; calculating the first transfer attribute value to be converted of the first character attribute value and / or the second transfer attribute value to be converted of the second character attribute value according to the conversion rate; and adding the first transfer attribute value and / or the second transfer attribute value to the corresponding attribute of the main virtual character.
[0116] Optionally, after generating the first subordinate virtual character and the second subordinate virtual character in the virtual scene respectively according to the first fragment resource and the second fragment resource, the method further includes: determining whether the subordinate virtual character sets of the predetermined character type have all been synthesized, wherein the subordinate virtual character sets include multiple subordinate virtual characters; if the subordinate virtual character sets of the predetermined character type have all been synthesized, allocating virtual game resources to the main virtual character.
[0117] 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.
[0118] The communication interface is used for communication between the above terminal and other devices.
[0119] 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.
[0120] 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.
[0121] In another embodiment provided by the present application, a computer-readable storage medium is also provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the method for configuring role attributes described in any of the above embodiments.
[0122] 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 method for configuring role attributes described in any of the above embodiments.
[0123] 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.
[0124] 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.
[0125] 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.
[0126] 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.
[0127] 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.
[0128] 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.
[0129] 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.
[0130] 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 configuring role attributes, characterized in that: include: In response to the synthesis instruction of the master virtual character, a first subordinate virtual character and a second subordinate virtual character are generated in the virtual scene according to the first fragment resource and the second fragment resource respectively; Generate a first relationship value and a second relationship value according to resource interaction behaviors of the main virtual character with the first subordinate virtual character and the second subordinate virtual character respectively; In response to the association instruction of the master virtual character, a first role identifier and the first relationship value of the first subordinate virtual character are obtained, and a second role identifier and the second relationship value of the second subordinate virtual character are obtained, wherein the first role identifier and the second role identifier are identification identifiers of the first subordinate virtual character and the second subordinate virtual character in the virtual scene, respectively; judging whether the combination of the first role identifier and the second role identifier hits a preset role combination, and judging that both the first relationship value and the second relationship value are greater than a preset threshold; if the combination of the first role identifier and the second role identifier hits a preset role combination, and both the first relationship value and the second relationship value are greater than a preset threshold, it is determined that the first subordinate virtual character matches the second subordinate virtual character; If the first subordinate virtual character matches the second subordinate virtual character, gain attribute values are configured for the first subordinate virtual character and the second subordinate virtual character.
2. The method according to claim 1, characterized in that After responding to the synthesis instruction of the master virtual character and generating the first slave virtual character and the second slave virtual character in the virtual scene according to the first fragment resource and the second fragment resource, the method further includes: Release game tasks; In response to the selection instruction of the master virtual character, a target character is selected from the first slave virtual character and the second slave virtual character based on the selection instruction to perform the game task; Calculating the matching degree between the game task and the target character; The execution success rate of the game task is configured based on the matching degree, wherein the execution success rate is positively correlated with the matching degree.
3. The method according to claim 1, characterized in that: Configuring gain attribute values for the first subordinate virtual character and the second subordinate virtual character includes: Acquiring a matching level between the first subordinate virtual character and the second subordinate virtual character, and acquiring basic attribute values of the first subordinate virtual character and the second subordinate virtual character, wherein the matching level is used to represent the degree of matching between the first subordinate virtual character and the second subordinate virtual character in the virtual scene; Calculate the gain attribute value based on the matching level and / or the basic attribute value; The gain attribute value is configured for the first subordinate virtual character and the second subordinate virtual character.
4. The method according to claim 1, characterized in that Generating a first relationship value and a second relationship value according to resource interaction behaviors of the main virtual character with the first subordinate virtual character and the second subordinate virtual character respectively includes: Monitoring a first resource amount of a first prop resource transferred from the master virtual character to the first slave virtual character, and monitoring a second resource amount of a second prop resource transferred from the master virtual character to the second slave virtual character; A first relationship value between the master virtual character and the first subordinate virtual character is calculated based on the first resource amount, and a second relationship value between the master virtual character and the second subordinate virtual character is calculated based on the second resource amount.
5. The method according to claim 4, characterized in that Calculating a first relationship value between the primary virtual character and the first subordinate virtual character based on the first resource amount includes: Parsing the resource type of the first prop resource; Acquire the unit relationship value of the first prop resource according to the resource type; The first relationship value is calculated based on the unit relationship value and the first resource amount.
6. The method according to claim 1, characterized in that If the first subordinate virtual character matches the second subordinate virtual character, the method further includes: In response to a matching instruction triggered by the master virtual character, the first subordinate virtual character and the second subordinate virtual character are bound to obtain a character combination; After receiving the virtual props sent by the main virtual character to the character combination, the matching level of the first subordinate virtual character and the second subordinate virtual character is increased.
7. The method according to claim 1, characterized in that After configuring the gain attribute values for the first subordinate virtual character and the second subordinate virtual character, the method further includes: Calculating a first character attribute value of the first subordinate virtual character based on the basic attribute value and the gain attribute value of the first subordinate virtual character, and calculating a second character attribute value of the second subordinate virtual character based on the basic attribute value and the gain attribute value of the second subordinate virtual character; If the main virtual character, the first subordinate virtual character, the second subordinate virtual character, and the attribute conversion prop appear in the same scene position of the virtual scene, at least a portion of the first character attribute value and / or the second character attribute value is transferred to the corresponding attribute of the main virtual character.
8. The method according to claim 7, characterized in that Transferring at least a portion of the first character attribute value and / or the second character attribute value to the corresponding attribute of the main virtual character includes: Obtain the conversion rate of the attribute conversion prop; Calculating a first transfer attribute value to be converted from the first character attribute value and / or a second transfer attribute value to be converted from the second character attribute value according to the conversion rate; The first transfer attribute value and / or the second transfer attribute value are added to the corresponding attribute of the main virtual character.
9. The method according to claim 1, characterized in that: After respectively generating the first subordinate virtual character and the second subordinate virtual character in the virtual scene according to the first fragment resource and the second fragment resource, the method further includes: Determining whether all subordinate virtual character sets of a predetermined character type have been synthesized, wherein the subordinate virtual character set includes a plurality of subordinate virtual characters; If all subordinate virtual character sets of the predetermined character type have been synthesized, virtual game resources are allocated to the main virtual character.
10. A device for configuring role attributes, characterized in that: include: A synthesis module, for responding to a synthesis instruction of the master virtual character, and generating a first subordinate virtual character and a second subordinate virtual character in a virtual scene according to the first fragment resource and the second fragment resource; A generating module, configured to generate a first relationship value and a second relationship value according to resource interaction behaviors between the main virtual character and the first subordinate virtual character and the second subordinate virtual character respectively; A first judgment module is used to respond to the association instruction of the main virtual character, obtain the first role identification and the first relationship value of the first subordinate virtual character, and obtain the second role identification and the second relationship value of the second subordinate virtual character, wherein the first role identification and the second role identification are identification identifications of the first subordinate virtual character and the second subordinate virtual character in the virtual scene respectively; judge whether the combination of the first role identification and the second role identification hits a preset role combination, and judge whether the first relationship value and the second relationship value are both greater than a preset threshold; if the combination of the first role identification and the second role identification hits the preset role combination, and the first relationship value and the second relationship value are both greater than the preset threshold, determine that the first subordinate virtual character matches the second subordinate virtual character; The configuration module is used to configure gain attribute values for the first subordinate virtual character and the second subordinate virtual character if the first subordinate virtual character matches the second subordinate virtual character.
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
Information sending and displaying methods and devices for game, equipment and medium
CN110052025A
Fight control method and device based on virtual roles, equipment and medium
CN110433488A
Game control method and device, electronic device and storage medium
CN110624248A
Game-based skill creation method and device, server and medium
CN111111201A
Virtual prop control method and device, storage medium and electronic device
CN111298430A
