Data processing method and device, electronic equipment and computer readable storage medium
By obtaining the acquisition conditions and preset index maps of virtual props, determine the affiliation between virtual props, predict comprehensive attribute values, optimize the assembly and operation of virtual props, solve the problem of low game experience caused by the isolated use of virtual props, and improve Game effects in virtual environments.
Patent Information
- Application Number
- CN202310390649.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-04
- Publication Date
- 2024-10-15
AI Technical Summary
In a virtual environment, the isolated use of virtual props leads to a low gaming experience, and it takes a long time to determine the impact of virtual tools on virtual objects step by step, affecting the game effect.
By obtaining the acquisition conditions of virtual props, determining the affiliation between props based on the preset virtual prop index map, predicting comprehensive attribute values, optimizing the assembly and operation of virtual props, and improving the efficiency of increasing the attribute values of virtual objects.
With a wide variety of virtual props, it is possible to fully consider the acquisition and operation of the relationship between each prop, improve the game experience, simplify the use process of virtual props, and improve the game effect.
Smart Images

Figure CN118767428A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of cloud technology and game technology, and in particular to a data processing method, device, electronic device and computer-readable storage medium. Background Art
[0002] In the related art, in a virtual environment, virtual props are usually unlocked based on the amount of virtual resources required for each virtual prop, and when virtual operations are performed through virtual props, the attribute values of virtual objects may be changed.
[0003] However, in the related art, each virtual tool directly acts on the virtual tool it relies on. For example, stickers only play a decorative role, and their impact on virtual objects needs to be determined step by step, which is troublesome and time-consuming, affecting the game effect. In addition, when determining the change in the attribute value of the corresponding virtual object caused by virtual operations through multiple virtual props, the change in the attribute value of the virtual object based on each virtual prop is usually directly added together. Using each virtual prop in isolation leads to a low gaming experience. Summary of the invention
[0004] The embodiment of the present application provides a data processing method to solve the problem in the related art that each virtual prop is used in isolation, resulting in a low gaming experience.
[0005] Correspondingly, an embodiment of the present application also provides a data processing device, an electronic device and a computer-readable storage medium to ensure the implementation and application of the above method.
[0006] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:
[0007] In response to the first virtual item acquisition request, determining a first acquisition condition corresponding to the first virtual item; the first acquisition condition indicates an amount of virtual resources required to acquire the first virtual item;
[0008] After the virtual resource amount is acquired, if it is determined based on a preset virtual prop index map that there is a subordinate relationship between the first virtual prop and the second virtual prop, and the first virtual prop is subordinate to the second virtual prop, the first virtual prop is acquired when the acquisition state of the second virtual prop is acquired; the preset virtual prop index map indicates the subordinate relationship between virtual objects, virtual props, and attribute values corresponding to each virtual prop in the virtual environment;
[0009] Predicting a comprehensive attribute value based on the first attribute value, the second attribute value, and the first association relationship;
[0010] Among them, each virtual prop is assembled to the virtual object directly or through other virtual props; the attribute value corresponding to the virtual prop indicates the amount of improvement of the attribute value of the virtual object when the virtual object configured with the virtual prop performs a virtual operation through the virtual prop; the first attribute value indicates the amount of improvement of the attribute value corresponding to the first virtual prop; the second attribute value indicates the amount of improvement of the attribute value corresponding to the second virtual prop; the first association relationship indicates the interaction relationship between the first virtual prop and the second virtual prop; the comprehensive attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when the virtual operation is performed through the first virtual prop and the second virtual prop.
[0011] On the other hand, an embodiment of the present application provides a data processing device, the device comprising:
[0012] A condition acquisition module, configured to determine a first acquisition condition corresponding to the first virtual item in response to a first virtual item acquisition request; the first acquisition condition indicates an amount of virtual resources consumed to acquire the first virtual item;
[0013] A prop acquisition module, for acquiring the first virtual prop after acquiring the virtual resource amount, if it is determined based on a preset virtual prop index map that there is a subordinate relationship between the first virtual prop and the second virtual prop, and the first virtual prop is subordinate to the second virtual prop, and if the acquisition state of the second virtual prop is acquired, acquiring the first virtual prop; the preset virtual prop index map indicates the subordinate relationship between virtual objects, virtual props, and attribute values corresponding to each virtual prop in the virtual environment;
[0014] An attribute value determination module, used to predict a comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship;
[0015] Among them, each virtual prop is assembled to the virtual object directly or through other virtual props; the attribute value corresponding to the virtual prop indicates the amount of improvement of the attribute value of the virtual object when the virtual object configured with the virtual prop performs a virtual operation through the virtual prop; the first attribute value indicates the amount of improvement of the attribute value corresponding to the first virtual prop; the second attribute value indicates the amount of improvement of the attribute value corresponding to the second virtual prop; the first association relationship indicates the interaction relationship between the first virtual prop and the second virtual prop; the comprehensive attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when the virtual operation is performed through the first virtual prop and the second virtual prop.
[0016] Optionally, when predicting the comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship, the attribute value determination module may be used to:
[0017] In the case where the first association relationship indicates a superposition relationship, a superposition operation is performed on the first attribute value and the second attribute value to obtain a comprehensive attribute value; the comprehensive attribute value is greater than the sum of the first attribute value and the second attribute value;
[0018] In the case where the first association relationship indicates a reduction relationship, a reduction operation is performed on the first attribute value and the second attribute value to obtain a comprehensive attribute value; the comprehensive attribute value is less than the smaller value of the first attribute value and the second attribute value.
[0019] Optionally, when predicting the comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship, the attribute value determination module may be used to:
[0020] Determine a third attribute value based on the first attribute value, the first level of the first virtual prop, and the method for determining the first attribute value; the third attribute value indicates an increase in the attribute value of the virtual object when the virtual object configured with the first virtual prop performs a virtual operation through the first virtual prop when the first virtual prop is at the first level;
[0021] Determine a fourth attribute value based on the third attribute value, the first association relationship, the second attribute value, the second level of the second virtual prop, and the second attribute value determination method; the fourth attribute value indicates an increase in the attribute value of the virtual object when the virtual object configured with the first virtual prop and the second virtual prop performs a virtual operation through the second virtual prop when the first virtual prop is at the first level and the second virtual prop is at the second level;
[0022] Based on the fourth attribute value, a comprehensive attribute value is predicted.
[0023] Optionally, the above device may further include a prop assembly module, wherein the prop assembly module is used to:
[0024] Before performing a virtual operation through the first virtual prop, a first assembly condition corresponding to the first virtual prop is determined based on the virtual prop index map; the first assembly condition indicates a first assembly position for assembling the first virtual prop to the second virtual prop;
[0025] Based on the first assembly condition, an assembly operation is performed on the first virtual prop.
[0026] Optionally, when performing an assembly operation on the first virtual prop based on the first assembly condition, the prop assembly module may be used to:
[0027] Determining a third virtual prop that has been assembled to the second virtual prop, and a second assembly condition of the third virtual prop; the second assembly condition indicates that the third virtual prop is assembled to a second assembly position of the second virtual prop;
[0028] Based on the first assembly condition, the second assembly condition and the second association relationship, an assembly operation is performed on the first virtual prop; the second association relationship indicates an assembly association relationship between the first virtual prop and the third virtual prop.
[0029] Optionally, when performing the assembly operation on the first virtual prop based on the first assembly condition, the second assembly condition and the second association relationship, the prop assembly module may be used to:
[0030] If the second association relationship is a symbiotic relationship, and the first assembly position is different from the second assembly position, assembling the first virtual prop to the first assembly position;
[0031] If the second association relationship is a mutually exclusive relationship, the first virtual item is assembled based on the comparison result of the first attribute value and the fifth attribute value; the fifth attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when the third virtual item is used to perform the virtual operation;
[0032] If the first attribute value is greater than the fifth attribute value, the third virtual prop is disassembled from the second assembly position, and the first virtual prop is assembled to the first assembly position;
[0033] If the first attribute value is less than or equal to the fifth attribute value, no assembly operation is performed on the first virtual item.
[0034] Optionally, the above device may further include an index map construction module, wherein the index map construction module is used to construct a preset virtual prop index map in the following manner:
[0035] Determine at least two virtual objects of a preset virtual environment, virtual props corresponding to each virtual object, attribute values and assembly conditions corresponding to each virtual prop, sub-virtual props corresponding to at least one virtual prop, and attribute values and assembly conditions corresponding to each sub-virtual prop; wherein the attribute value corresponding to each virtual prop is the sum of the attribute values corresponding to its corresponding virtual props;
[0036] For each virtual object, classify the virtual props corresponding to the virtual object, and determine a first prop type of the virtual props corresponding to the virtual object;
[0037] For each virtual prop, classify the sub-virtual props corresponding to the virtual prop, and determine the second prop type of the sub-virtual props corresponding to the virtual prop;
[0038] Among them, the environment identifier of the preset virtual environment, the object identifier of each virtual object, the first type identifier of the first prop type under each virtual object, the first virtual prop identifier of each virtual prop under the first prop type, the assembly condition of each first virtual prop and the second type identifier of the second prop type under each first virtual prop, the second virtual prop identifier of the sub-virtual prop under each second prop type, and the attribute value corresponding to each sub-virtual prop and the level of the assembly condition are decreased in sequence; wherein the level of the assembly condition of each first virtual prop and the level of the second type identifier are the same; the level of the attribute value corresponding to each sub-virtual prop and the level of the assembly condition are the same;
[0039] According to the order from high to low levels, the environment identifier is used as the first main node, each object identifier is used as a subsidiary sub-node of the first main node, and each object identifier is used as the second main node, until the attribute values and assembly conditions corresponding to each sub-virtual prop are arranged, and a preset virtual prop index map is obtained.
[0040] On the other hand, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the processor and the memory are connected to each other;
[0041] The memory is used to store computer programs;
[0042] The above-mentioned processor is configured to execute the data processing method provided in the embodiment of the present application when calling the above-mentioned computer program.
[0043] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the data processing method provided by the embodiment of the present application.
[0044] On the other hand, an embodiment of the present application provides a computer program product, which includes a computer program. When the above computer program is executed by a processor, it implements the data processing method provided by the embodiment of the present application.
[0045] In an embodiment of the present application, after obtaining the amount of virtual resources required to obtain the first virtual item, based on a preset virtual item index map, a second virtual item that is affiliated with the first virtual item is determined, and when the first virtual item is affiliated with the second virtual item and the acquisition status of the second virtual item is acquired, the first virtual item is acquired. This allows the first virtual item to be acquired while fully considering the relationship between the virtual items when there are a variety of virtual items.
[0046] Furthermore, by combining the first attribute value of the first virtual prop, the second attribute value of the second virtual prop, and the interaction relationship when virtual operations are performed through the first virtual prop and the second virtual prop, it is determined that when a virtual object configured with the first virtual prop and the second virtual prop performs a virtual operation through the first virtual prop and the second virtual prop, the amount of improvement in the attribute value of the virtual object can be determined. This can fully consider the amount of improvement in the attribute value of the corresponding virtual object when virtual operations are performed through each virtual prop respectively, as well as the interaction relationship when virtual operations are performed through different virtual props, and predict the amount of improvement in the attribute value of the corresponding virtual object when virtual operations are performed through different virtual props. Therefore, before performing virtual operations, it can be determined whether to use different virtual props in combination based on the predicted comprehensive attribute values when virtual operations are performed with different virtual props, thereby improving the gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A schematic diagram of a system architecture for implementing a data processing method provided in an embodiment of the present application is shown;
[0049] Figure 2 A schematic diagram of interactive signaling of a data processing method provided in an embodiment of the present application is shown;
[0050] Figure 3 A schematic diagram of a data processing method provided in an embodiment of the present application is shown;
[0051] Figure 4 A schematic diagram showing a virtual prop index map in a data processing method provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of an application scenario of a data processing method provided by an embodiment of the present application is shown;
[0053] Figure 6 A schematic diagram of another application scenario of a data processing method provided by an embodiment of the present application is shown;
[0054] Figure 7 A schematic diagram showing another virtual prop index map in a data processing method provided in an embodiment of the present application;
[0055] Figure 8A schematic diagram of another application scenario of a data processing method provided in an embodiment of the present application is shown;
[0056] Fig. 9 A schematic diagram showing another virtual prop index map in a data processing method provided in an embodiment of the present application;
[0057] Fig.10 A schematic diagram of a configuration structure of another virtual prop in a data processing method provided in an embodiment of the present application is shown;
[0058] Fig.11 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application is shown;
[0059] Fig.12 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0061] The execution subject of the data processing method provided in the embodiment of the present application may be a data processing device. The data processing device may be any computer device, including but not limited to a terminal or a server. The data processing method may also be implemented by a processor calling a computer-readable instruction stored in a memory.
[0062] The server may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, but is not limited thereto.
[0063] The terminal (also referred to as a user terminal or user equipment (UE)) can be a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device (such as a smart speaker), a wearable electronic device (such as a smart watch), a vehicle terminal, a smart home appliance (such as a smart TV), AR (Augmented Reality) / VR (Virtual Reality) device, etc., but is not limited to these.
[0064] The data processing method provided in the embodiment of the present application can be implemented based on artificial intelligence (AI) technology. For example, an association determination model and a comprehensive attribute value prediction model are obtained based on artificial intelligence technology training, and the first association relationship and the comprehensive attribute value are predicted based on the trained association determination model and the comprehensive attribute value prediction model. AI is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0065] The data processing method provided in the embodiment of the present application can be implemented based on cloud technology. For example, the data calculation involved in the process of obtaining the first virtual prop, determining the comprehensive attribute value, assembling the first virtual prop, and training the association determination model and the comprehensive attribute value prediction model (for example, determining text features, performing statistical calculations, determining model losses, etc.) can adopt cloud computing. Among them, cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize data calculation, storage, processing, and sharing.
[0066] It can be understood that in the specific implementation methods of the present application, information associated with user objects, such as the amount of virtual resources contained in the user objects, user object identification and other related data, when the above embodiments of the present application are applied to specific products or technologies, it is necessary to obtain the permission or consent of each object, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0067] Figure 1 A schematic diagram of a text matching system provided in an embodiment of the present application is shown. Figure 1 As shown, the system includes a user terminal 11 and an application server 12. The user terminal 11 can be any terminal described above. The application server 12 can be any server described above. The user terminal 11 and the application server 12 can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.
[0068] The user terminal 11 may have a game application installed, or a game plug-in or mini-program for performing game operations may be set in a certain application in the user terminal 11. By opening the game application, triggering the game plug-in, or starting the mini-program on the user terminal 11, the user terminal 11 is started to open the relevant game interface, obtain and assemble game props (i.e., virtual props), and perform game operations through the game props.
[0069] In an embodiment of the present application, the game may be a game in a game application that needs to be downloaded and installed on a client (e.g., a mobile phone, a computer, a pad, etc.), or a game in a cloud game application, or a game in a mini-program. Specific game types may include, but are not limited to, battle, action, adventure, simulation, role-playing, racing, and casual games. Among them, battle games may include, but are not limited to, shooting games, multiplayer online tactical competitive games, multiplayer gunfight survival games, and real-time strategy games. Casual games may include, but are not limited to, music games, chess and card games, etc.
[0070] Game props include but are not limited to: attack props, defense props, wearable props, mount props, virtual appliances, virtual medicines, virtual ammunition, virtual keys, virtual cards, fragments, etc.
[0071] Among them, when the game character in the game performs game operations through game props, the attribute value of the game character can be improved. For example, if the game character has obtained and equipped an attack prop, if the game character performs a virtual operation through the attack prop, the attack value of the game character can be improved. For another example, if the game character has obtained and equipped a defense prop, if the game character performs a virtual operation through the defense prop, the defense value of the game character can be improved.
[0072] The application server 12 can receive game prop acquisition requests, assembly requests, game operation requests, etc. from the terminal, acquire game props, determine comprehensive attribute values, assemble game props or perform game operations, and deploy a game prop index map (i.e., a virtual prop index map).
[0073] Specifically, the following combination Figure 2 , the process of implementing the data processing method provided in the embodiment of the present application through the interactive operation of the user terminal 11 and the application server 12 is described as follows:
[0074] Step S21: In response to the user triggering an acquisition operation for the first game prop “brooch” in the game prop library (ie, the pendant system), the user terminal 11 generates a prop acquisition request and sends it to the application server 12 .
[0075] Step S22: The application server 12 responds to the prop acquisition request, and based on the game prop and game resource mapping table, determines that the game resource amount corresponding to the first game prop "brooch" is 200, and determines that the game resource amount in the local game resource amount storage library of the current user is 500, which is greater than 200, then it can be determined that the general acquisition conditions for the first game prop are met.
[0076] The application server 12 indexes the first game prop "brooch" in the game prop index map based on the prop identification of the first game prop, determines that the first game prop "brooch" is attached to the second game prop "game skin", and determines whether any second game prop "game skin" is stored in the local game prop library of the current user.
[0077] When it is determined that the “first game skin” is stored in the user's local game prop library, the prop resource of the first game prop “brooch” is obtained and the prop resource is fed back to the user terminal 11 .
[0078] Step S23: After acquiring the prop resource of the first game prop “brooch”, the application server 12 can also determine the comprehensive attribute value based on the first attribute value of the first game prop “brooch” and the second attribute value of the second virtual prop “first game skin”, and feed the comprehensive attribute value back to the user terminal 12.
[0079] Step S24: The user terminal 11 receives and displays the comprehensive attribute values corresponding to the first game prop "brooch" and the second virtual prop "first game skin", and provides a control for whether to assemble the first game prop "brooch". In response to the user's triggering operation of the control for assembling the first game prop "brooch", a prop assembly request is generated and sent to the application server 12.
[0080] Step S25: In response to the prop assembly request, the application server 12 determines whether there is a third virtual prop assembled on the second virtual prop "first game skin". And when there is a third virtual prop "epaulettes" assembled on the second virtual prop "first game skin", the assembly positions of the third virtual prop "epaulettes" and the first game prop "brooch" are indexed in the game prop index map. When it is determined that the assembly positions of the third virtual prop "epaulettes" and the first game prop "brooch" are different, the first game prop "brooch" is assembled to the side of the second virtual prop "first game skin" opposite to the "chest position" of the game character, and a prompt message that the first game prop "brooch" has been assembled is fed back to the user terminal 11.
[0081] Step S26: The user terminal receives and displays a prompt message indicating that the first game prop “brooch” has been assembled.
[0082] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0083] The present application embodiment provides a data processing method, such as Figure 3 As shown, the method includes:
[0084] Step S310: In response to the first virtual item acquisition request, determining a first acquisition condition corresponding to the first virtual item; the first acquisition condition indicates the amount of virtual resources consumed to acquire the first virtual item.
[0085] The first virtual prop acquisition request can be sent directly through the client; or a recommendation request for the first virtual prop can be sent to the client based on the transformation relationship of the attribute value of the virtual object in the virtual environment, and sent through the client after the client responds to the recommendation request. The embodiment of the present application does not limit this.
[0086] The virtual resource amount may be the virtual resource amount owned by the game player to which the virtual object belongs in the virtual environment, such as gold coin resources, or may be the attribute value of the virtual object during the process of performing virtual operations through the virtual object.
[0087] The attributes of the virtual object may include but are not limited to at least one of attack attribute, damage attribute, defense attribute, experience attribute, etc., which is not limited in the present embodiment. Correspondingly, the attribute value of the virtual object may include but is not limited to at least one of attack value, damage value, defense value, experience value, etc.
[0088] Specifically, the first acquisition condition may be that the amount of virtual resources owned by the game player to which the game object belongs in the virtual environment is greater than or equal to a first preset value, and the specified attribute value of the virtual object is greater than or equal to a second preset value.
[0089] It can be understood that, in the first acquisition condition, the specified attribute value of the virtual object that is set may be an attribute value corresponding to each attribute of the virtual object, or may be an attribute value corresponding to some attributes of the virtual object.
[0090] Step S320: After the virtual resource amount is acquired, if it is determined based on the preset virtual prop index map that there is a subordinate relationship between the first virtual prop and the second virtual prop, and the first virtual prop is subordinate to the second virtual prop, the first virtual prop is acquired when the acquisition status of the second virtual prop is acquired; the preset virtual prop index map indicates the subordinate relationship between the virtual objects, virtual props, and the attribute values corresponding to each virtual prop in the virtual environment. Among them, each virtual prop is directly or through other virtual props assembled to the virtual object; the attribute value corresponding to the virtual prop indicates the amount of improvement of the attribute value of the virtual object when the virtual object configured with the virtual prop performs a virtual operation through the virtual prop.
[0091] After the first virtual item acquisition request is obtained, it can be determined whether the virtual resource amount has been obtained based on the first acquisition condition. In particular, it can be determined that the virtual resource amount has been obtained when the virtual resource amount owned by the game player to which the game object belongs in the virtual environment is greater than or equal to a first preset value; or it can be determined that the virtual resource amount has been obtained when the attribute value of the virtual object is greater than or equal to a second preset value.
[0092] The attachment relationship can be that a virtual prop is equipped on another virtual prop or virtual object.
[0093] The preset virtual prop index map may be constructed based on the hierarchical relationship among virtual objects, virtual props, and attribute values corresponding to each virtual prop in the same virtual environment, or may be constructed based on the hierarchical relationship among virtual objects, virtual props, and attribute values corresponding to each virtual prop in different virtual environments.
[0094] Taking the construction of a preset virtual prop index map based on the hierarchical relationship between virtual objects, virtual props, and attribute values corresponding to each virtual prop in the same virtual environment as an example, it is assumed that the virtual environment is game A, and the virtual objects include game characters a and b. Game character a corresponds to game props 1 and 2, wherein game props 6 can also be loaded on game props 2 (that is, new game props 6, and can only be called by the game character when game props 6 is loaded on game props 2), game character b corresponds to game props 3, game props 4, and game props 5, the attribute value corresponding to game prop 1 is attack value +5, the attribute value of game prop 2 itself is defense value +10, the attribute value corresponding to game prop 6 is experience value +5, the attribute value corresponding to game prop 3 is defense value +6 and attack value +8, the attribute value corresponding to game prop 4 is damage value +4, and the attribute value corresponding to game prop 5 is experience value +12, then the following can be constructed: Figure 4 The virtual prop index diagram shown. It can be understood that when the game prop 6 is attached to the game prop 2, the attribute value of the game prop 2 may change.
[0095] Assuming that the first virtual prop is a game prop 6, it can be based on Figure 4 The virtual prop index diagram shown determines that game prop 6 is subordinate to game prop 2, that is, there is a second virtual prop that has a subordinate relationship with the first virtual prop, and the first virtual prop is subordinate to the second virtual prop.
[0096] In the embodiment of the present application, when setting the acquisition condition of the first virtual prop, "the amount of virtual resources required to obtain the first virtual prop" can also be used as a general acquisition condition for obtaining the virtual prop, and "based on a preset virtual prop index map, it is determined that there is an affiliation relationship between the first virtual prop and the second virtual prop, and the first virtual prop is affiliated with the second virtual prop, and the acquisition status of the second virtual prop is acquired" can be used as a specific acquisition condition for obtaining the virtual prop. When the general acquisition condition and the specific acquisition condition corresponding to the first virtual prop are met at the same time, the first virtual prop is acquired.
[0097] Of course, if Figure 5 As shown, by setting a plurality of callback interfaces for specific acquisition conditions, it is convenient to continuously add specific acquisition conditions for the first virtual item during the development of the virtual system.
[0098] Step S330: predicting a comprehensive attribute value based on the first attribute value, the second attribute value, and the first association relationship.
[0099] Among them, the first attribute value indicates the improvement amount of the attribute value corresponding to the first virtual prop; the second attribute value indicates the improvement amount of the attribute value corresponding to the second virtual prop; the first association relationship indicates the interaction relationship between the first virtual prop and the second virtual prop; the comprehensive attribute value indicates the improvement amount of the attribute value of the corresponding virtual object when performing virtual operations through the first virtual prop and the second virtual prop.
[0100] Among them, the first attribute value specifically indicates the amount of improvement of the attribute value of the corresponding virtual object when the virtual operation is performed through the first virtual prop; the second attribute value specifically indicates the amount of improvement of the attribute value of the corresponding virtual object when the virtual operation is performed through the second virtual prop.
[0101] The interaction relationship between the first virtual item and the second virtual item, i.e., whether the sum of the first attribute value and the second attribute value is different from the comprehensive attribute value. Wherein, if the sum of the first attribute value and the second attribute value is different from the comprehensive attribute value, it is determined that there is an interaction between the first virtual item and the second virtual item, i.e., there is an association relationship between the two; if the sum of the first attribute value and the second attribute value is the same as the comprehensive attribute value, it is determined that there is no interaction between the first virtual item and the second virtual item, i.e., there is no first association relationship between the two.
[0102] In an embodiment of the present application, a first training data set can be constructed based on multiple sample virtual props, the attribute value corresponding to each sample virtual prop, and the comprehensive attribute values corresponding to at least two sample virtual props among the multiple sample virtual props, and the first initial neural network model can be trained to obtain a model for determining the association relationship between different virtual props; and a second training data set can be constructed based on the attribute value corresponding to each sample virtual prop of at least two sample virtual props with an association relationship and the corresponding association relationship, and the second initial neural network model can be trained to obtain a model for predicting the comprehensive attribute values between different virtual props.
[0103] After obtaining the first virtual prop, the second virtual prop, the first attribute value and the second attribute value, the first virtual prop, the second virtual prop, the first attribute value and the second attribute value can be input into the association determination model to determine whether there is a first association relationship between the first virtual prop and the second virtual prop, and if there is a first association relationship between the first virtual prop and the second virtual prop, the first attribute value, the second attribute value and the first association relationship are input into the comprehensive attribute value prediction model to predict the comprehensive attribute value.
[0104] In an embodiment of the present application, after obtaining the amount of virtual resources required to obtain the first virtual item, based on a preset virtual item index map, a second virtual item that is affiliated with the first virtual item is determined, and when the first virtual item is affiliated with the second virtual item and the acquisition status of the second virtual item is acquired, the first virtual item is acquired. This allows the first virtual item to be acquired while fully considering the relationship between the virtual items when there are a variety of virtual items.
[0105] Furthermore, by combining the first attribute value of the first virtual prop, the second attribute value of the second virtual prop, and the interaction relationship when virtual operations are performed through the first virtual prop and the second virtual prop, it is determined that when a virtual object configured with the first virtual prop and the second virtual prop performs a virtual operation through the first virtual prop and the second virtual prop, the amount of improvement in the attribute value of the virtual object can be determined. This can fully consider the amount of improvement in the attribute value of the corresponding virtual object when virtual operations are performed through each virtual prop respectively, as well as the interaction relationship when virtual operations are performed through different virtual props, and predict the amount of improvement in the attribute value of the corresponding virtual object when virtual operations are performed through different virtual props. Therefore, before performing virtual operations, it can be determined whether to use different virtual props in combination based on the predicted comprehensive attribute values when virtual operations are performed with different virtual props, thereby improving the gaming experience.
[0106] Furthermore, in the above manner, without acquiring the virtual object, the virtual props corresponding to the virtual object and the subsidiary virtual props of the virtual props can be directly unlocked, and the corresponding comprehensive attribute values can be determined, thereby improving the flexibility of the system.
[0107] Optionally, the predicting of the comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship may include:
[0108] In the case where the first association relationship indicates a superposition relationship, a superposition operation is performed on the first attribute value and the second attribute value to obtain a comprehensive attribute value; the comprehensive attribute value is greater than the sum of the first attribute value and the second attribute value;
[0109] In the case where the first association relationship indicates a reduction relationship, a reduction operation is performed on the first attribute value and the second attribute value to obtain a comprehensive attribute value; the comprehensive attribute value is less than the smaller value of the first attribute value and the second attribute value.
[0110] When the first attribute value and the second attribute value are superimposed, the first weight corresponding to the first virtual item and the second weight corresponding to the second virtual item can be preset, and the first attribute value and the second attribute value can be weighted summed to obtain a comprehensive attribute value. Figure 4 Taking the attached relationship index diagram shown as an example, the attribute value of game prop 2 itself is defense value +10, and the corresponding first weight is +150%. The corresponding attribute value of game prop 6 is experience value +5, and the corresponding second weight is +200%. When game prop 6 is attached to game prop 2, the attribute value of game prop 2 can be changed to a comprehensive attribute value, that is, defense value +15 and experience value +10.
[0111] It can be understood that either the first weight or the second weight can be less than or equal to 1. As long as the final comprehensive attribute value is greater than the sum of the first attribute value and the second attribute value, the first association relationship can be considered to be a superposition relationship.
[0112] Wherein, in the case where the first association relationship indicates a superposition relationship, the set value may be added to the first attribute value and the second attribute value to obtain a comprehensive attribute value. Wherein, the attribute corresponding to the set value may be the same as the first attribute corresponding to the first attribute value and the second attribute corresponding to the second attribute value, or may be different, and this embodiment of the application does not limit this.
[0113] When reducing the first attribute value and the second attribute value, the third weight corresponding to the first virtual item and the fourth weight corresponding to the second virtual item can be preset to perform weighted summation on the first attribute value and the second attribute value to obtain a comprehensive attribute value. Figure 4Taking the attached relationship index diagram shown as an example, the attribute value of game prop 2 itself is defense value +10, and the corresponding third weight is -50%. The attribute value corresponding to game prop 6 is experience value +5, and the corresponding fourth weight is -50%. When game prop 6 is attached to game prop 2, the attribute value of game prop 2 can be changed to a comprehensive attribute value, that is, defense value +5, experience value +2.5.
[0114] It can be understood that any one of the third weight and the fourth weight can be greater than or equal to 1. As long as the final comprehensive attribute value is less than the smaller value of the first attribute value and the second attribute value, the first association relationship can be considered to be a reduction relationship.
[0115] Wherein, in the case where the first association relationship indicates a superposition relationship, the set value may be subtracted from the first attribute value and the second attribute value to obtain a comprehensive attribute value. Wherein, the attribute corresponding to the set value may be the same as the first attribute corresponding to the first attribute value and the second attribute corresponding to the second attribute value, or may be different, and this embodiment of the application does not limit this.
[0116] It is understandable that, in the case where there is no first association relationship between the first virtual item and the second virtual item, the first attribute value and the second attribute value can be directly added to obtain the comprehensive attribute value. Figure 4 Taking the attached relationship index diagram shown as an example, the attribute value of game prop 2 itself is defense value +10, and the corresponding attribute value of game prop 6 is experience value +5. When game prop 6 is attached to game prop 2, the attribute value of game prop 2 can be changed to a comprehensive attribute value, that is, defense value +10, experience value +5.
[0117] In the embodiment of the present application, by performing corresponding processing operations on the first attribute value and the second attribute value based on the attribute of the first association relationship, a comprehensive attribute value can be quickly obtained, so that before performing a virtual operation, it is possible to quickly determine whether to combine the first virtual prop and the second virtual prop to perform a virtual operation based on the comprehensive attribute value.
[0118] Optionally, the predicting of the comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship may include:
[0119] Determine a third attribute value based on the first attribute value, the first level of the first virtual prop, and the method for determining the first attribute value; the third attribute value indicates an increase in the attribute value of the virtual object when the virtual object configured with the first virtual prop performs a virtual operation through the first virtual prop when the first virtual prop is at the first level;
[0120] Determine a fourth attribute value based on the third attribute value, the first association relationship, the second attribute value, the second level of the second virtual prop, and the second attribute value determination method; the fourth attribute value indicates an increase in the attribute value of the virtual object when the virtual object configured with the first virtual prop and the second virtual prop performs a virtual operation through the second virtual prop when the first virtual prop is at the first level and the second virtual prop is at the second level;
[0121] Based on the fourth attribute value, a comprehensive attribute value is predicted.
[0122] The first attribute value determination method may be associated with the first level, and the first attribute value determination method may be based on the first attribute value, and may be incremented in sequence. The present application embodiment does not limit the incrementing method, for example, it may be incremented by a set value each time, or may be incremented in proportion.
[0123] For example, assuming that the first attribute value is determined by increasing by multiples each time, and the first attribute value is the attribute value of the first virtual item when it is at the first level, then when the first virtual item is at the second level, the attribute value of the first virtual item is the first attribute value × 2.
[0124] Since the first virtual item depends on the second virtual item, when determining the fourth attribute value of the second virtual item, the influence attribute value of the first virtual item on the second virtual item can be determined based on the third attribute value and the first association relationship; the sixth attribute value can be determined based on the influence attribute value and the second attribute value; and the fourth attribute value can be determined based on the sixth attribute value, the second level and the method for determining the second attribute value.
[0125] Among them, the first association relationship can be a superposition relationship, a reduction relationship, or the first association relationship does not exist. The embodiment of the present application does not limit this. The method for determining the comprehensive attribute value in the above embodiment can be referred to, and the influencing attribute value can be determined based on the third attribute value and the first association relationship. It will not be elaborated here.
[0126] The second attribute value determination method may be associated with the second level, and the second attribute value determination method may be based on the second attribute value, and may be incremented in sequence. The present application embodiment does not limit the increment method, for example, it may be incremented by a set value each time, or may be incremented in proportion.
[0127] For example, assuming that the second attribute value is determined by increasing exponentially each time, and the fifth attribute value is the attribute value of the second virtual item when it is at the first level, then when the second virtual item is at the second level, the attribute value of the second virtual item is the sixth attribute value × 2.
[0128] Considering that the subordinate relationship between the first virtual item and the second virtual item has been taken into consideration when determining the fourth attribute value, after determining the fourth attribute value, the fourth attribute value can be directly used as the comprehensive attribute value, or the fourth attribute value can be processed to obtain the comprehensive attribute value. For example, the experience value + 5 can be added to the fourth attribute value to obtain the comprehensive attribute value.
[0129] In the embodiment of the present application, by combining the levels of each virtual prop and the association between each virtual prop, the attribute value of each virtual prop at each level and the comprehensive attribute value when performing virtual operations with different virtual props are determined, the comprehensive attribute value can be quickly obtained, so that before performing a virtual operation, it is possible to quickly determine whether to perform a virtual operation on the first virtual prop and the second virtual prop in combination based on the comprehensive attribute value.
[0130] In the embodiment of the present application, when determining the comprehensive attribute value, "determining the sum of the first attribute value and the second attribute value as the comprehensive attribute value" can also be used as a general condition for determining the comprehensive attribute value, and "determining the comprehensive attribute value based on the first association relationship, the first attribute value and the second attribute value" can be used as the first specific condition for determining the comprehensive attribute value, and "determining the comprehensive attribute value based on the first association relationship, the level of the virtual item, the first attribute value and the second attribute value" can be used as the second specific condition for determining the comprehensive attribute value.
[0131] Of course, if Figure 6 As shown, by setting multiple callback interfaces for specific conditions, it is convenient to continuously add specific conditions for determining comprehensive attribute values during the development of the virtual system.
[0132] Optionally, the above method may further include:
[0133] Before performing a virtual operation through the first virtual prop, a first assembly condition corresponding to the first virtual prop is determined based on the virtual prop index map; the first assembly condition indicates a first assembly position for assembling the first virtual prop to the second virtual prop;
[0134] Based on the first assembly condition, an assembly operation is performed on the first virtual prop.
[0135] The virtual item index map may also include assembly conditions corresponding to each virtual item, that is, for each virtual item, the attribute value and assembly condition corresponding to the virtual item may be stored in parallel.
[0136] Taking the above example, assuming that game prop 1 corresponds to assembly condition 1 (assembled in the hands of game character a, for example, the handle of game character a), game prop 2 corresponds to assembly condition 2 (assembled to the whole body of game character a, for example, game prop 2 is the clothing of game character a), game prop 3 corresponds to assembly condition 3 (assembled to the whole body of game character b, for example, game prop 3 is the clothing of game character b), game prop 4 corresponds to assembly condition 4 (assembled in the hands of game character b, for example, the handle of game character b), game prop 5 corresponds to assembly condition 5 (assembled on the head of game character b, for example, the headdress of game character b), and game prop corresponds to assembly condition 6 (assembled to the "shoulder position" of game prop 2, corresponding to the shoulder position of game character a, for example, game prop 2 is specifically the "decoration at the shoulder position"), then you can Figure 4 On the basis of Figure 7 .
[0137] In the embodiment of the present application, by combining the first assembly condition corresponding to the first virtual prop and performing an assembly operation on the first virtual prop, accurate assembly of the first virtual prop can be achieved.
[0138] Optionally, the step of assembling the first virtual prop based on the first assembly condition may include:
[0139] Determining a third virtual prop that has been assembled to the second virtual prop, and a second assembly condition of the third virtual prop; the second assembly condition indicates that the third virtual prop is assembled to a second assembly position of the second virtual prop;
[0140] Based on the first assembly condition, the second assembly condition and the second association relationship, an assembly operation is performed on the first virtual prop; the second association relationship indicates an assembly association relationship between the first virtual prop and the third virtual prop.
[0141] The assembly association relationship may be whether two virtual props can exist at the same time, and whether there is an association in the assembly process when the two virtual props can exist at the same time.
[0142] The assembly association relationship can be divided into a symbiotic relationship and a mutually exclusive relationship based on whether the two virtual props can exist at the same time. When the two virtual props can exist at the same time, the assembly association relationship between the two virtual props is determined to be a symbiotic relationship; when the two virtual props cannot exist at the same time, the assembly association relationship between the two virtual props is determined to be a mutually exclusive relationship.
[0143] When two virtual props can exist at the same time (i.e., a symbiotic relationship), the assembly association relationship can be divided into a mutual matching association and a non-matching association based on the association of the assembly process. For example, when two virtual props are in a mutually meshing state, the assembly association relationship can be determined to be a mutual matching association. For example, when the first virtual prop is a silencer, the third virtual prop is a bullet box, and the second virtual prop is a gun, the first virtual prop and the third virtual prop need to be meshed and matched to the second virtual prop, and the assembly association relationship between the first virtual prop and the second virtual prop can be considered to be a mutual matching association.
[0144] Optionally, the assembling operation on the first virtual prop based on the first assembly condition, the second assembly condition and the second association relationship may include:
[0145] If the second association relationship is a symbiotic relationship, and the first assembly position is different from the second assembly position, assembling the first virtual prop to the first assembly position;
[0146] If the second association relationship is a mutually exclusive relationship, the first virtual item is assembled based on the comparison result of the first attribute value and the fifth attribute value; the fifth attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when the third virtual item is used to perform the virtual operation;
[0147] If the first attribute value is greater than the fifth attribute value, the third virtual prop is disassembled from the second assembly position, and the first virtual prop is assembled to the first assembly position;
[0148] If the first attribute value is less than or equal to the fifth attribute value, no assembly operation is performed on the first virtual item.
[0149] Of course, in the case where the second association relationship is a mutually exclusive relationship, the third virtual prop can also be directly disassembled from the second assembly position, and the first virtual prop can be assembled to the first assembly position.
[0150] When comparing the first attribute value with the fifth attribute value, if the attributes corresponding to the first attribute value and the fifth attribute value are the same, the first attribute value and the fifth attribute value can be directly compared; if the attributes corresponding to the first attribute value and the fifth attribute value are different, the first attribute value and the fifth attribute value can be converted, for example, converted into experience values, and then the first attribute value and the fifth attribute value are compared.
[0151] In the embodiment of the present application, by fully considering the assembly position of the first virtual prop, the assembly position of the third virtual prop that has been assembled to the second virtual prop, and the assembly association relationship between the first virtual prop and the third virtual prop, the first virtual prop is assembled, and at the same time, the first virtual prop can be assembled while avoiding conflicts with the assembled virtual props.
[0152] Furthermore, by performing an assembly operation on the first virtual prop based on the comparison result of the first attribute value and the fifth attribute value when the second association relationship is a mutually exclusive relationship, the game effect and game experience after the assembly of the virtual prop can be improved by further considering the increase in the attribute value of the virtual object.
[0153] In an embodiment of the present application, when performing an assembly operation on the first virtual prop, "assembling the first virtual prop to the first assembly position" can also be used as a general condition for performing an assembly operation on the first virtual prop, and "based on the assembly association relationship between the third virtual prop that has been assembled on the second virtual prop and the first virtual prop, performing an assembly operation on the first virtual prop" can be used as a specific condition for performing an assembly operation on the first virtual prop.
[0154] Of course, if Figure 8 As shown, by setting a plurality of callback interfaces for specific conditions, it is convenient to continuously add specific conditions for assembling the first virtual prop during the development of the virtual system, thereby achieving accurate assembly of the first virtual prop.
[0155] Optionally, the above preset virtual prop index map is constructed in the following way:
[0156] Determine at least two virtual objects of a preset virtual environment, virtual props corresponding to each virtual object, attribute values and assembly conditions corresponding to each virtual prop, sub-virtual props corresponding to at least one virtual prop, and attribute values and assembly conditions corresponding to each sub-virtual prop; wherein the attribute value corresponding to each virtual prop is the sum of the attribute values corresponding to its corresponding virtual props;
[0157] For each virtual object, classify the virtual props corresponding to the virtual object, and determine a first prop type of the virtual props corresponding to the virtual object;
[0158] For each virtual prop, classify the sub-virtual props corresponding to the virtual prop, and determine the second prop type of the sub-virtual props corresponding to the virtual prop;
[0159] Among them, the environment identifier of the preset virtual environment, the object identifier of each virtual object, the first type identifier of the first prop type under each virtual object, the first virtual prop identifier of each virtual prop under the first prop type, the assembly condition of each first virtual prop and the second type identifier of the second prop type under each first virtual prop, the second virtual prop identifier of the sub-virtual prop under each second prop type, and the attribute value corresponding to each sub-virtual prop and the level of the assembly condition are decreased in sequence; wherein the level of the assembly condition of each first virtual prop and the level of the second type identifier are the same; the level of the attribute value corresponding to each sub-virtual prop and the level of the assembly condition are the same;
[0160] According to the order from high to low levels, the environment identifier is used as the first main node, each object identifier is used as a subsidiary sub-node of the first main node, and each object identifier is used as the second main node, until the attribute values and assembly conditions corresponding to each sub-virtual prop are arranged, and a preset virtual prop index map is obtained.
[0161] like Fig. 9 As shown, when constructing a virtual prop index graph in descending order of levels, the environment identifier can be used as the first main node, each object identifier can be used as a subsidiary sub-node of the first main node, and each object identifier can be used as the second main node; for each virtual object, the first type identifier corresponding to the virtual object can be used as a subsidiary sub-node of the second main node corresponding to the virtual object, and each first type identifier corresponding to the virtual object can be used as a third main node; for each first prop type, the first virtual prop identifier of each virtual prop under the first prop type can be used as a subsidiary sub-node of the third main node corresponding to the first type identifier of the first prop type, and the first virtual prop identifier corresponding to each virtual prop can be used as a fourth main node; for each virtual prop, the assembly condition and the second prop type under the virtual prop can be listed in parallel as subsidiary sub-nodes of the fourth main node corresponding to the virtual prop, and so on, to obtain the attribute value and assembly condition corresponding to each child virtual prop.
[0162] In the above manner, by extracting according to the affiliation between each object (preset virtual environment, virtual object, virtual prop, attribute value and assembly condition), setting corresponding levels based on the affiliation between each object, and constructing a virtual prop index map based on the hierarchical affiliation and identification between the levels, the affiliation and identification between each object can be directly stored, which is different from constructing a configuration structure based on each virtual prop and its affiliated virtual prop or virtual object (such as Fig.10 The method shown in the figure reduces the complexity and redundant structure of the virtual prop system and increases the scheduling flexibility of the virtual prop system.
[0163] Based on the same principle as the data processing method provided in the embodiment of the present application, the embodiment of the present application also provides a data processing device. Fig.11 As shown, the device 110 includes:
[0164] The condition acquisition module 111 is used to determine a first acquisition condition corresponding to the first virtual item in response to the first virtual item acquisition request; the first acquisition condition indicates the amount of virtual resources consumed to acquire the first virtual item;
[0165] The prop acquisition module 112 is used to acquire the first virtual prop after acquiring the virtual resource amount, if it is determined based on a preset virtual prop index map that there is a subordinate relationship between the first virtual prop and the second virtual prop, and the first virtual prop is subordinate to the second virtual prop, and if the acquisition state of the second virtual prop is acquired, acquire the first virtual prop; the preset virtual prop index map indicates the subordinate relationship between virtual objects, virtual props, and attribute values corresponding to each virtual prop in the virtual environment;
[0166] An attribute value determination module 113, configured to predict a comprehensive attribute value based on the first attribute value, the second attribute value, and the first association relationship;
[0167] Among them, each virtual prop is assembled to the virtual object directly or through other virtual props; the attribute value corresponding to the virtual prop indicates the amount of improvement of the attribute value of the virtual object when the virtual object configured with the virtual prop performs a virtual operation through the virtual prop; the first attribute value indicates the amount of improvement of the attribute value corresponding to the first virtual prop; the second attribute value indicates the amount of improvement of the attribute value corresponding to the second virtual prop; the first association relationship indicates the interaction relationship between the first virtual prop and the second virtual prop; the comprehensive attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when the virtual operation is performed through the first virtual prop and the second virtual prop.
[0168] Optionally, when predicting the comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship, the attribute value determination module 113 may be used to:
[0169] In the case where the first association relationship indicates a superposition relationship, a superposition operation is performed on the first attribute value and the second attribute value to obtain a comprehensive attribute value; the comprehensive attribute value is greater than the sum of the first attribute value and the second attribute value;
[0170] In the case where the first association relationship indicates a reduction relationship, a reduction operation is performed on the first attribute value and the second attribute value to obtain a comprehensive attribute value; the comprehensive attribute value is less than the smaller value of the first attribute value and the second attribute value.
[0171] Optionally, when predicting the comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship, the attribute value determination module 113 may be used to:
[0172] Determine a third attribute value based on the first attribute value, the first level of the first virtual prop, and the method for determining the first attribute value; the third attribute value indicates an increase in the attribute value of the virtual object when the virtual object configured with the first virtual prop performs a virtual operation through the first virtual prop when the first virtual prop is at the first level;
[0173] Determine a fourth attribute value based on the third attribute value, the first association relationship, the second attribute value, the second level of the second virtual prop, and the second attribute value determination method; the fourth attribute value indicates an increase in the attribute value of the virtual object when the virtual object configured with the first virtual prop and the second virtual prop performs a virtual operation through the second virtual prop when the first virtual prop is at the first level and the second virtual prop is at the second level;
[0174] Based on the fourth attribute value, a comprehensive attribute value is predicted.
[0175] Optionally, the above device may further include a prop assembly module, wherein the prop assembly module is used to:
[0176] Before performing a virtual operation through the first virtual prop, a first assembly condition corresponding to the first virtual prop is determined based on the virtual prop index map; the first assembly condition indicates a first assembly position for assembling the first virtual prop to the second virtual prop;
[0177] Based on the first assembly condition, an assembly operation is performed on the first virtual prop.
[0178] Optionally, when performing an assembly operation on the first virtual prop based on the first assembly condition, the prop assembly module may be used to:
[0179] Determining a third virtual prop that has been assembled to the second virtual prop, and a second assembly condition of the third virtual prop; the second assembly condition indicates that the third virtual prop is assembled to a second assembly position of the second virtual prop;
[0180] Based on the first assembly condition, the second assembly condition and the second association relationship, an assembly operation is performed on the first virtual prop; the second association relationship indicates an assembly association relationship between the first virtual prop and the third virtual prop.
[0181] Optionally, when performing the assembly operation on the first virtual prop based on the first assembly condition, the second assembly condition and the second association relationship, the prop assembly module may be used to:
[0182] If the second association relationship is a symbiotic relationship, and the first assembly position is different from the second assembly position, assembling the first virtual prop to the first assembly position;
[0183] If the second association relationship is a mutually exclusive relationship, the first virtual item is assembled based on the comparison result of the first attribute value and the fifth attribute value; the fifth attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when the third virtual item is used to perform the virtual operation;
[0184] If the first attribute value is greater than the fifth attribute value, the third virtual prop is disassembled from the second assembly position, and the first virtual prop is assembled to the first assembly position;
[0185] If the first attribute value is less than or equal to the fifth attribute value, no assembly operation is performed on the first virtual item.
[0186] Optionally, the above device may further include an index map construction module, wherein the index map construction module is used to construct a preset virtual prop index map in the following manner:
[0187] Determine at least two virtual objects of a preset virtual environment, virtual props corresponding to each virtual object, attribute values and assembly conditions corresponding to each virtual prop, sub-virtual props corresponding to at least one virtual prop, and attribute values and assembly conditions corresponding to each sub-virtual prop; wherein the attribute value corresponding to each virtual prop is the sum of the attribute values corresponding to its corresponding virtual props;
[0188] For each virtual object, classify the virtual props corresponding to the virtual object, and determine a first prop type of the virtual props corresponding to the virtual object;
[0189] For each virtual prop, classify the sub-virtual props corresponding to the virtual prop, and determine the second prop type of the sub-virtual props corresponding to the virtual prop;
[0190] Among them, the environment identifier of the preset virtual environment, the object identifier of each virtual object, the first type identifier of the first prop type under each virtual object, the first virtual prop identifier of each virtual prop under the first prop type, the assembly condition of each first virtual prop and the second type identifier of the second prop type under each first virtual prop, the second virtual prop identifier of the sub-virtual prop under each second prop type, and the attribute value corresponding to each sub-virtual prop and the level of the assembly condition are decreased in sequence; wherein the level of the assembly condition of each first virtual prop and the level of the second type identifier are the same; the level of the attribute value corresponding to each sub-virtual prop and the level of the assembly condition are the same;
[0191] According to the order from high to low levels, the environment identifier is used as the first main node, each object identifier is used as a subsidiary sub-node of the first main node, and each object identifier is used as the second main node, until the attribute values and assembly conditions corresponding to each sub-virtual prop are arranged, and a preset virtual prop index map is obtained.
[0192] In an embodiment of the present application, after obtaining the amount of virtual resources required to obtain the first virtual item, based on a preset virtual item index map, a second virtual item that is affiliated with the first virtual item is determined, and when the first virtual item is affiliated with the second virtual item and the acquisition status of the second virtual item is acquired, the first virtual item is acquired. This allows the first virtual item to be acquired while fully considering the relationship between the virtual items when there are a variety of virtual items.
[0193] Furthermore, by combining the first attribute value of the first virtual prop, the second attribute value of the second virtual prop, and the interaction relationship when performing virtual operations through the first virtual prop and the second virtual prop, it is determined that when performing virtual operations through the first virtual prop and the second virtual prop, the amount of improvement in the attribute value of the virtual object is determined. This can fully consider the amount of improvement in the attribute value of the corresponding virtual object when performing virtual operations through each virtual prop respectively, as well as the interaction relationship when performing virtual operations through different virtual props, and predict the amount of improvement in the attribute value of the corresponding virtual object when performing virtual operations through different virtual props. Therefore, before performing virtual operations, it can be determined whether to use different virtual props in combination based on the predicted comprehensive attribute values when performing virtual operations with different virtual props, so as to improve the gaming experience.
[0194] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0195] Based on the same principle as the data processing method and device provided in the embodiment of the present application, an electronic device (such as a server) is also provided in the embodiment of the present application. The electronic device may include a memory, a processor, and a computer program stored in the memory. The processor executes the above computer program to implement:
[0196] In response to the first virtual item acquisition request, determining a first acquisition condition corresponding to the first virtual item; the first acquisition condition indicates an amount of virtual resources required to acquire the first virtual item;
[0197] After the virtual resource amount is acquired, if it is determined based on a preset virtual prop index map that there is a subordinate relationship between the first virtual prop and the second virtual prop, and the first virtual prop is subordinate to the second virtual prop, the first virtual prop is acquired when the acquisition state of the second virtual prop is acquired; the preset virtual prop index map indicates the subordinate relationship between virtual objects, virtual props, and attribute values corresponding to each virtual prop in the virtual environment;
[0198] Predicting a comprehensive attribute value based on the first attribute value, the second attribute value, and the first association relationship;
[0199] Among them, each virtual prop is assembled to the virtual object directly or through other virtual props; the attribute value corresponding to the virtual prop indicates the amount of improvement of the attribute value of the virtual object when the virtual object configured with the virtual prop performs a virtual operation through the virtual prop; the first attribute value indicates the amount of improvement of the attribute value corresponding to the first virtual prop; the second attribute value indicates the amount of improvement of the attribute value corresponding to the second virtual prop; the first association relationship indicates the interaction relationship between the first virtual prop and the second virtual prop; the comprehensive attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when the virtual operation is performed through the first virtual prop and the second virtual prop.
[0200] In an embodiment of the present application, after obtaining the amount of virtual resources required to obtain the first virtual item, based on a preset virtual item index map, a second virtual item that is affiliated with the first virtual item is determined, and when the first virtual item is affiliated with the second virtual item and the acquisition status of the second virtual item is acquired, the first virtual item is acquired. This allows the first virtual item to be acquired while fully considering the relationship between the virtual items when there are a variety of virtual items.
[0201] Furthermore, by combining the first attribute value of the first virtual prop, the second attribute value of the second virtual prop, and the interaction relationship when virtual operations are performed through the first virtual prop and the second virtual prop, it is determined that when a virtual object configured with the first virtual prop and the second virtual prop performs a virtual operation through the first virtual prop and the second virtual prop, the amount of improvement in the attribute value of the virtual object can be determined. This can fully consider the amount of improvement in the attribute value of the corresponding virtual object when virtual operations are performed through each virtual prop respectively, as well as the interaction relationship when virtual operations are performed through different virtual props, and predict the amount of improvement in the attribute value of the corresponding virtual object when virtual operations are performed through different virtual props. Therefore, before performing virtual operations, it can be determined whether to use different virtual props in combination based on the predicted comprehensive attribute values when virtual operations are performed with different virtual props, thereby improving the gaming experience.
[0202] See also Fig.12 , Fig.12 FIG. 1 is a schematic diagram showing the structure of an electronic device provided by an embodiment of the present application. Fig.12 As shown, the electronic device 1200 in this embodiment may include: a processor 1201, a network interface 1204 and a memory 1205. In addition, the above-mentioned electronic device 1200 may also include: an object interface 1203, and at least one communication bus 1202. Among them, the communication bus 1202 is used to realize the connection and communication between these components. Among them, the object interface 1203 may include a display screen (Display), a keyboard (Keyboard), and the object interface 1203 may optionally include a standard wired interface and a wireless interface. The network interface 1204 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1205 may be a high-speed RAM memory, or it may be a non-volatile memory (NVM), such as at least one disk storage. The memory 1205 may optionally also be at least one storage device located away from the aforementioned processor 1201. As Fig.12 As shown, the memory 1205 as a computer-readable storage medium may include an operating system, a network communication module, an object interface module, and a device control application program.
[0203] exist Fig.12 In the electronic device 1200 shown, the network interface 1204 can provide a network communication function; the object interface 1203 is mainly used to provide an input interface for the object; and the processor 1201 can be used to call the device control application stored in the memory 1205 to achieve:
[0204] In some feasible implementations, the processor 1201 is configured to:
[0205] It should be understood that in some feasible implementations, the processor 1201 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the type of device.
[0206] In a specific implementation, the electronic device 1200 can execute the above-mentioned functions through its built-in functional modules. Figure 3 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.
[0207] The present application also provides a computer-readable storage medium, which stores a computer program and is executed by a processor to implement Figure 3 For the methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.
[0208] The computer-readable storage medium may be an internal storage unit of a data processing device or an electronic device provided in any of the aforementioned embodiments, such as a hard disk or memory of an electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the electronic device. The computer-readable storage medium may also include a magnetic disk, an optical disk, a read-only memory (read-only memory, ROM) or a random access memory (random access memory, RAM), etc. Further, the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0209] The present invention provides a computer program product, which includes a computer program. The computer program is executed by a processor. Figure 3 The methods provided in each step.
[0210] The terms "first", "second" and the like in the claims, the specification and the drawings of the present application are used to distinguish different objects rather than to describe a specific order.
[0211] In addition, those skilled in the art will understand that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. The terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or electronic device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or electronic devices.
[0212] Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. Displaying the phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0213] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0214] The above disclosure is only the preferred embodiment of the present application, which cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, characterized in that: The method comprises: In response to a first virtual item acquisition request, determining a first acquisition condition corresponding to the first virtual item; the first acquisition condition indicates an amount of virtual resources required to acquire the first virtual item; After the virtual resource amount is acquired, if it is determined based on a preset virtual prop index map that there is an affiliation relationship between the first virtual prop and the second virtual prop, and the first virtual prop is attached to the second virtual prop, and if the acquisition status of the second virtual prop is acquired, the first virtual prop is acquired; the preset virtual prop index map indicates the affiliation relationship between virtual objects, virtual props, and attribute values corresponding to each of the virtual props in the virtual environment; Predicting a comprehensive attribute value based on the first attribute value, the second attribute value, and the first association relationship; Among them, each virtual prop is assembled to a virtual object directly or through other virtual props; the attribute value corresponding to the virtual prop indicates the amount of improvement of the attribute value of the virtual object when the virtual object configured with the virtual prop performs a virtual operation through the virtual prop; the first attribute value indicates the amount of improvement of the attribute value corresponding to the first virtual prop; the second attribute value indicates the amount of improvement of the attribute value corresponding to the second virtual prop; the first association relationship indicates the interaction relationship between the first virtual prop and the second virtual prop; the comprehensive attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when a virtual operation is performed through the first virtual prop and the second virtual prop.
2. The method according to claim 1, characterized in that The predicting of the comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship includes: In the case where the first association relationship indicates a superposition relationship, a superposition operation is performed on the first attribute value and the second attribute value to obtain the comprehensive attribute value; the comprehensive attribute value is greater than the sum of the first attribute value and the second attribute value; In the case where the first association relationship indicates a reduction relationship, a reduction operation is performed on the first attribute value and the second attribute value to obtain the comprehensive attribute value; the comprehensive attribute value is smaller than the smaller value of the first attribute value and the second attribute value.
3. The method according to claim 1, characterized in that The predicting of the comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship includes: determining a third attribute value based on the first attribute value, the first level of the first virtual item, and the first attribute value determination method; the third attribute value indicating an improvement amount of the attribute value of the virtual object when the virtual object configured with the first virtual item performs a virtual operation through the first virtual item when the first virtual item is at the first level; Determine a fourth attribute value based on the third attribute value, the first association relationship, the second attribute value, the second level of the second virtual item, and the second attribute value determination method; the fourth attribute value indicates an improvement amount of the attribute value of the virtual object when the virtual object configured with the first virtual item and the second virtual item performs a virtual operation through the second virtual item when the first virtual item is at the first level and the second virtual item is at the second level; Based on the fourth attribute value, the comprehensive attribute value is predicted.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: Before performing a virtual operation using the first virtual prop, Based on the virtual prop index map, determining a first assembly condition corresponding to the first virtual prop; the first assembly condition indicates a first assembly position for assembling the first virtual prop to the second virtual prop; Based on the first assembly condition, an assembly operation is performed on the first virtual prop.
5. The method according to claim 4, characterized in that The step of assembling the first virtual prop based on the first assembly condition includes: Determining a third virtual prop that has been assembled to the second virtual prop, and a second assembly condition of the third virtual prop; wherein the second assembly condition indicates that the third virtual prop is assembled to a second assembly position of the second virtual prop; Based on the first assembly condition, the second assembly condition and a second association relationship, an assembly operation is performed on the first virtual prop; the second association relationship indicates an assembly association relationship between the first virtual prop and the third virtual prop.
6. The method according to claim 5, characterized in that The step of assembling the first virtual prop based on the first assembly condition, the second assembly condition and the second association relationship includes: If the second association relationship is a symbiotic relationship, and the first assembly position is different from the second assembly position, assembling the first virtual prop to the first assembly position; If the second association relationship is a mutually exclusive relationship, the first virtual item is assembled based on the comparison result of the first attribute value and the fifth attribute value; the fifth attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when the third virtual item is used to perform a virtual operation; Wherein, if the first attribute value is greater than the fifth attribute value, the third virtual prop is disassembled from the second assembly position, and the first virtual prop is assembled to the first assembly position; If the first attribute value is less than or equal to the fifth attribute value, no assembly operation is performed on the first virtual item.
7. The method according to claim 4, characterized in that The preset virtual prop index map is constructed in the following way: Determine at least two virtual objects in a preset virtual environment, virtual props corresponding to each of the virtual objects, attribute values and assembly conditions corresponding to each of the virtual props, sub-virtual props corresponding to at least one virtual prop, and attribute values and assembly conditions corresponding to each of the sub-virtual props; wherein the attribute value corresponding to each of the virtual props is the sum of the attribute values corresponding to its corresponding sub-virtual props; For each of the virtual objects, classify the virtual props corresponding to the virtual object to determine a first prop type of the virtual props corresponding to the virtual object; For each of the virtual props, classify the sub-virtual props corresponding to the virtual prop, and determine the second prop type of the sub-virtual prop corresponding to the virtual prop; The environment identifier of the preset virtual environment, the object identifier of each virtual object, the first type identifier of the first prop type under each virtual object, the first virtual prop identifier of each virtual prop under the first prop type, the assembly condition of each first virtual prop and the second type identifier of the second prop type under each first virtual prop, the second virtual prop identifier of each sub-virtual prop under the second prop type, and the level of the attribute value corresponding to each sub-virtual prop and the assembly condition are sequentially decreased; wherein the level of the assembly condition of each first virtual prop and the level of the second type identifier are the same; the level of the attribute value corresponding to each sub-virtual prop and the level of the assembly condition are the same; According to the order from high to low levels, the environment identifier is used as the first main node, each object identifier is used as a subsidiary sub-node of the first main node, and each object identifier is used as the second main node, until the attribute values and assembly conditions corresponding to each sub-virtual prop are arranged, and the preset virtual prop index map is obtained.
8. A data processing device, characterized in that: The device comprises: A condition acquisition module, configured to determine, in response to a first virtual item acquisition request, a first acquisition condition corresponding to the first virtual item; the first acquisition condition indicating an amount of virtual resources required to be consumed by the first virtual item; A prop acquisition module, configured to acquire the first virtual prop after acquiring the virtual resource amount, if it is determined based on a preset virtual prop index map that there is an affiliation relationship between the first virtual prop and the second virtual prop, and the first virtual prop is attached to the second virtual prop, and if the acquisition status of the second virtual prop is already acquired, acquire the first virtual prop; the preset virtual prop index map indicates the affiliation relationship between virtual objects, virtual props, and attribute values corresponding to each of the virtual props in the virtual environment; An attribute value determination module, used to predict a comprehensive attribute value based on the first attribute value, the second attribute value and the first association relationship; Among them, each virtual prop is assembled to a virtual object directly or through other virtual props; the attribute value corresponding to the virtual prop indicates the amount of improvement of the attribute value of the virtual object when the virtual object configured with the virtual prop performs a virtual operation through the virtual prop; the first attribute value indicates the amount of improvement of the attribute value corresponding to the first virtual prop; the second attribute value indicates the amount of improvement of the attribute value corresponding to the second virtual prop; the first association relationship indicates the interaction relationship between the first virtual prop and the second virtual prop; the comprehensive attribute value indicates the amount of improvement of the attribute value of the corresponding virtual object when a virtual operation is performed through the first virtual prop and the second virtual prop.
9. An electronic device, characterized in that: comprising a processor and a memory, wherein the processor and the memory are connected to each other; The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 7 when calling the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
