Virtual prop processing method and device, storage medium and electronic equipment

By establishing a relationship tree for virtual props and using parent-child nodes to represent assembly relationships, the problem of not being able to switch between combined props in existing technologies is solved, improving search efficiency and switching speed.

CN115671747BActive Publication Date: 2026-02-24TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110827586.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-21
Publication Date
2026-02-24
Estimated Expiration
2041-07-21

AI Technical Summary

Technical Problem

In existing technologies, it is not possible to switch between combined items through preset item assembly schemes, such as sights mounted on virtual weapons, which prevents players from switching to use virtual weapons equipped with sights within their virtual characters.

Method used

By establishing a relationship tree between virtual items, and using parent-child nodes to represent the assembly relationship of combined items, matching items can be found in the virtual character's currently equipped item set and warehouse. Switching is then done using nodes in the relationship tree, reducing the complexity and time consumption of the search.

Benefits of technology

It improves the efficiency of finding combination props in preset prop assembly schemes, reduces the complexity and time consumption of searching, and realizes the switching of combination props.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115671747B_ABST
    Figure CN115671747B_ABST
Patent Text Reader

Abstract

The application discloses a virtual prop processing method and device, a storage medium and an electronic device, and relates to the technical field of virtual reality, and specifically discloses the following technical scheme: in a first virtual prop set and a second virtual prop set, a virtual prop matching a virtual prop in a third virtual prop set is found, and a target search result is obtained; an intersection of a second virtual prop subset and a third virtual prop subset is obtained, and a virtual prop subset in the intersection is merged into the first virtual prop subset, and a fourth virtual prop set is obtained; according to a node corresponding to a virtual prop in the fourth virtual prop set in a first relationship tree, a fifth virtual prop set is determined in the fourth virtual prop set, and a virtual prop set currently assembled by a target virtual character is switched from the first virtual prop set to the fifth virtual prop set. The application solves the technical problem that a combination prop cannot be switched by using a preset prop assembly scheme in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computers, and more specifically, to a method and apparatus for processing virtual items, a storage medium, and an electronic device. Background Technology

[0002] In games where items can be equipped, virtual characters can be equipped with virtual items such as weapons, pockets, backpacks, and their contents. Players can use the preset system to pre-set the virtual items currently equipped on their virtual character as an item configuration. When a player selects a preset item configuration, the system needs to find the items that match the configuration from the virtual character's existing inventory and equip them to the virtual character.

[0003] In the existing preset system, items do not have combinable (e.g., can be assembled or nested) features. For example, for a combination item consisting of a virtual weapon and its attached sight, the preset item assembly scheme allows the virtual weapon to be included, but not the sight attached to the virtual weapon. Therefore, when players select a preset item assembly scheme, they will not be able to find the sight attached to the virtual weapon. This means the virtual character can only switch to using the virtual weapon itself, but cannot switch to using the virtual weapon with the attached sight.

[0004] Regarding the issue that existing technologies cannot switch between combined props through preset prop assembly schemes, no effective solution has yet been proposed. Summary of the Invention

[0005] This invention provides a method and apparatus for processing virtual props, a storage medium, and an electronic device, to at least solve the technical problem in the prior art that it is impossible to switch between using combined props through a preset prop assembly scheme.

[0006] According to one aspect of the present invention, a method for processing virtual items is provided, comprising: obtaining a first set of virtual items currently equipped by a target virtual character, a second set of virtual items in the virtual item inventory of the target virtual character, and a third set of virtual items pre-configured for the target virtual character, wherein the assembly relationship between the virtual items in the third set of virtual items is a first relation tree, and the virtual item corresponding to the child node in the first relation tree is equipped in the virtual item corresponding to the parent node of the child node; searching for a virtual item that matches a virtual item in the third set of virtual items in the first set of virtual items and the second set of virtual items to obtain a target search result, wherein the target search result includes a first virtual item successfully searched in the third set of virtual items. The system comprises: a subset of virtual items, a second subset of virtual items that failed to be found in the third virtual item set, and a third virtual item subset, wherein the third virtual item subset includes virtual items from the first virtual item set and the second virtual item set that are equipped in the first virtual item subset; obtaining the intersection of the second virtual item subset and the third virtual item subset, and merging the virtual item subset in the intersection into the first virtual item subset to obtain a fourth virtual item set; determining a fifth virtual item set in the fourth virtual item set based on the nodes in the first relation tree corresponding to the virtual items in the fourth virtual item set, and switching the virtual item set currently equipped by the target virtual character from the first virtual item set to the fifth virtual item set.

[0007] According to another aspect of the present invention, a virtual item processing apparatus is also provided, comprising: a first acquisition module, configured to acquire a first set of virtual items currently equipped by a target virtual character, a second set of virtual items in the target virtual character's virtual item inventory, and a third set of virtual items pre-configured for the target virtual character, wherein the assembly relationship between the virtual items in the third set of virtual items is a first relationship tree, and the virtual item corresponding to a child node in the first relationship tree is equipped in the virtual item corresponding to the parent node of the child node; and a search module, configured to search for virtual items matching the virtual items in the third set of virtual items in the first set of virtual items and the second set of virtual items, and obtain a target search result, wherein the target search result includes the first virtual item successfully searched in the third set of virtual items. The third virtual item set includes a subset of virtual items, a subset of virtual items that failed to be found in the first virtual item set, and a subset of virtual items that includes virtual items in the first virtual item set and the second virtual item set that are equipped in the first virtual item set; a second acquisition module is used to acquire the intersection of the second virtual item set and the third virtual item set, and merge the virtual item subset in the intersection into the first virtual item set to obtain a fourth virtual item set; a determination module is used to determine a fifth virtual item set in the fourth virtual item set based on the node in the first relation tree corresponding to the virtual item in the fourth virtual item set, and switch the virtual item set currently equipped by the target virtual character from the first virtual item set to the fifth virtual item set.

[0008] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described virtual item processing method when running.

[0009] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the above-described virtual item processing method through the computer program.

[0010] In this embodiment of the invention, within a preset item assembly scheme (e.g., a set of virtual items pre-configured for a virtual character), the assembly relationships between different items in a combined item (e.g., a combined item consisting of a virtual weapon and its equipped sights) can be represented by parent-child nodes in a relationship tree. Thus, by using the assembly relationships represented by the parent-child nodes in the aforementioned relationship tree, different items in the combined item can be found in both the currently equipped set of virtual items for the virtual character and the set of virtual items in the virtual item inventory, thereby solving the technical problem in the prior art where it is impossible to switch between combined items using a preset item assembly scheme. Furthermore, in this embodiment of the invention, for a preset item assembly scheme, the virtual items corresponding to the nodes in the aforementioned relationship tree are searched, while the assembly relationships represented by the parent-child nodes in the aforementioned relationship tree do not require separate searches, thereby reducing the complexity and time consumption of the search, and further improving the efficiency of searching for virtual items in the preset item assembly scheme. Attached Figure Description

[0011] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0012] Figure 1 This is a schematic diagram of an application environment for an optional virtual item processing method according to an embodiment of the present invention;

[0013] Figure 2 This is a schematic flowchart of an optional virtual item processing method according to an embodiment of the present invention;

[0014] Figure 3 This is an illustration of an optional set of virtual items according to an embodiment of the present invention. Figure 1 ;

[0015] Figure 4 This is an illustration of an optional set of virtual items according to an embodiment of the present invention. Figure 2 ;

[0016] Figure 5 This is a schematic diagram of an optional first relationship tree according to an embodiment of the present invention;

[0017] Figure 6 This is a schematic diagram illustrating an optional method for finding virtual items according to an embodiment of the present invention;

[0018] Figure 7 This is an illustration of an optional set of virtual items according to an embodiment of the present invention. Figure 3 ;

[0019] Figure 8This is a coloring illustration of an optional first relation tree according to an embodiment of the present invention. Figure 1 ;

[0020] Figure 9 This is a schematic diagram of an optional second relationship tree according to an embodiment of the present invention;

[0021] Figure 10 This is a coloring illustration of an optional first relation tree according to an embodiment of the present invention. Figure 2 ;

[0022] Figure 11 This is a schematic diagram of an optional virtual item processing device according to an embodiment of the present invention;

[0023] Figure 12 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] According to one aspect of the present invention, a method for processing virtual items is provided. Optionally, as an optional implementation, the above-described method for processing virtual items may be applied to, but is not limited to, [examples of other methods]. Figure 1 The system environment shown above includes user equipment 102, network 110, and server 112.

[0027] Optionally, the user equipment 102 includes a memory 104, a processor 106, and a display 108. The memory stores a first set of virtual items currently equipped by the target virtual character, a third set of virtual items pre-configured for the target virtual character, a fifth set of virtual items, etc. The processor processes the virtual items in the set of virtual items, including but not limited to switching the set of virtual items currently equipped by the target virtual character from the first set to the fifth set. The display can display the first set of virtual items, the fifth set of virtual items, etc. In this embodiment, the user equipment can be a terminal device configured with a target client, including but not limited to at least one of the following: mobile phone (e.g., Android phone, iOS phone), laptop computer, tablet computer, PDA, MID (Mobile Internet Devices), PAD, desktop computer, smart TV, etc. The target client can be a game client, instant messaging client, browser client, etc.

[0028] Optionally, the aforementioned network 110 may include, but is not limited to, wired networks and wireless networks, wherein the wired network includes local area networks, metropolitan area networks and wide area networks, and the wireless network includes Bluetooth, WIFI and other networks that enable wireless communication.

[0029] Optionally, the aforementioned server 112 can be a single server, a server cluster consisting of multiple servers, or a cloud server. The aforementioned server includes: a database 114 and a processing engine 116. The aforementioned database is used to store data, including but not limited to: a first set of virtual items currently equipped by the target virtual character, a second set of virtual items in the target virtual character's virtual item inventory, a third set of virtual items pre-configured for the target virtual character, the equipment relationships between virtual items in the third set of virtual items, and a fourth and fifth set of virtual items. The aforementioned processing engine can be used to process virtual items, including but not limited to: searching for virtual items in the first and second virtual item sets that match virtual items in the third virtual item set to obtain a target search result; obtaining the intersection of the second and third virtual item subsets and merging the virtual item subsets in the intersection into the first virtual item subset to obtain a fourth virtual item set; determining a fifth virtual item set in the fourth virtual item set based on the nodes in the first relation tree corresponding to the virtual items in the fourth virtual item set, and switching the virtual item set currently equipped by the target virtual character from the first virtual item set to the fifth virtual item set. The above is merely an example, and no limitations are imposed in this embodiment.

[0030] Alternatively, as an optional implementation method, the shutdown terms involved in this application are explained below:

[0031] Preset system: Also known as preset item configuration scheme (e.g., a set of virtual items pre-configured for a virtual character), in a game where items can be equipped (such as weapons, pockets, backpacks and contents that a player character can equip), the virtual items currently equipped on the virtual character are preset as an item configuration scheme. When a player selects a preset item configuration scheme, the items in that scheme need to be found from the virtual character's existing items and equipped on the virtual character.

[0032] Assembleable props: These are props that allow multiple props to be assembled into a new prop according to certain rules, and the assembled prop can still be disassembled into the original prop (multiple weapon parts can be assembled into a complete weapon according to the assembly rules, and the weapon can be disassembled back into the original weapon parts), such as an assembly prop consisting of a virtual weapon and the sights mounted on it.

[0033] Nestable items: These are items that have enough space to accommodate other items, and whose main properties do not change after accommodating other items. For example, a backpack item that can accommodate other items.

[0034] As an alternative implementation method, virtual items can be categorized into the following types:

[0035] Container items: These are items like pockets and backpacks that can hold other items without changing their primary attributes; these items can hold other types of items. For example, pocket items are typical container items, and they can hold items such as bullets and bandages.

[0036] Root type items: These are items that can be directly equipped on the player or in a container, i.e., direct child items of the pre-defined root node or container node items. These items can have child items and can be used directly by the player character without being disassembled or assembled, such as weapons and standard bandages.

[0037] Accessory items: These are items that are sub-items of other root items or accessory items in the player's saved presets, such as aluminum grips and magazines.

[0038] Stackable items: These items have a "quantity" attribute. Multiple items of the same type can be split or merged into a new item, and the quantity of the new item is the sum of the quantities of the items before splitting or merging. For example, ammunition items: ten bullets are one item at the data structure level (its quantity attribute is 10), and this item can be split into two new items with a quantity attribute of 5. For example, bullets.

[0039] Alternatively, as an optional implementation, such as Figure 2 As shown, the processing method for the aforementioned virtual items includes:

[0040] Step S202: Obtain the first set of virtual items currently equipped by the target virtual character, the second set of virtual items in the virtual item warehouse of the target virtual character, and the third set of virtual items pre-configured for the target virtual character. The assembly relationship between the virtual items in the third set of virtual items is a first relationship tree. The virtual items corresponding to the child nodes in the first relationship tree are equipped in the virtual items corresponding to the parent nodes of the child nodes.

[0041] The target virtual character can be a player-controlled object in the game scene. The system acquires items currently equipped on the target virtual character (first set of virtual items), items in the target virtual character's virtual item inventory (second set of virtual items), and preset item assembly schemes for the target virtual character (third set of virtual items). The virtual items in the preset item assembly schemes satisfy the assembly relationships represented by parent-child nodes in a relational tree. The assembly relationship between a child node and its parent node means that the virtual item corresponding to the child node can be equipped into the virtual item corresponding to the parent node. For example, a child node's scope can be equipped onto its parent node's virtual weapon, and a child node's bullets can be equipped into its parent node's pocket container.

[0042] Step S204: Search for virtual items in the first virtual item set and the second virtual item set that match the virtual items in the third virtual item set to obtain the target search result. The target search result includes a first virtual item subset that was successfully found in the third virtual item set, a second virtual item subset that was not successfully found in the third virtual item set, and a third virtual item subset. The third virtual item subset includes virtual items in the first virtual item set and the second virtual item set that are equipped with virtual items in the first virtual item subset.

[0043] The system allows users to search for items required for preset item assembly schemes, both those currently equipped on the target virtual character and those in the target virtual character's virtual item inventory. Items in the first virtual item subset are those successfully found. For example, if a preset item assembly scheme requires an AK74N pistol, and an AK74N pistol is successfully found, it is included in the first virtual item subset. If a preset item assembly scheme requires a scope, and the scope is found, it is included in the second virtual item subset. For parent-child nodes with an assembly relationship, for virtual items corresponding to child nodes equipped on the parent node, if the virtual item corresponding to the parent node is found, the virtual item corresponding to the child node is included in the third virtual item subset. For example, for a combination item consisting of a virtual weapon and a scope equipped on it, if the virtual weapon is found, the virtual weapon is included in the first virtual item subset, and the scope equipped on the virtual weapon is included in the third virtual item subset.

[0044] Step S206: Obtain the intersection of the second virtual item subset and the third virtual item subset, and merge the virtual item subset in the intersection into the first virtual item subset to obtain the fourth virtual item set;

[0045] In this scenario, a pre-defined item assembly scheme requires virtual weapons and scopes. Virtual weapons and scopes are stored in the virtual item inventory, and the scope is equipped on the virtual weapon. The virtual weapon, as the parent node, can be called the parent item, and the scope, as the child node, can be called the child item. Since the scope is equipped on the parent virtual weapon in the virtual item inventory, no separate search is needed, and therefore, the scope cannot be found. In the pre-defined item assembly scheme, the scope, as a failed search item, is included in the second subset of virtual items, while the virtual weapon, as a successfully searched item, is included in the first subset. Since the scope is equipped on the virtual weapon in the virtual item inventory, the scope equipped on the virtual weapon is included in the third subset of virtual items. The second subset of virtual items includes virtual items not found in the preset item assembly scheme, while the third subset includes child items equipped on successfully found parent items (child items that do not require separate searching). Taking the intersection of the second and third subsets reveals the required child item sights for the preset item assembly scheme. Taking the union of the third and first subsets yields the required virtual weapons and sights for the preset item assembly scheme.

[0046] Step S208: Based on the node in the first relationship tree corresponding to the virtual item in the fourth virtual item set, determine the fifth virtual item set in the fourth virtual item set, and switch the virtual item set currently equipped by the target virtual character from the first virtual item set to the fifth virtual item set.

[0047] After finding the required virtual props in the preset system, the fifth set of virtual props is selected from the fourth set of virtual props based on the parent-child relationship between virtual props in the first relationship tree, and the virtual props currently equipped by the target virtual character are replaced with virtual props from the fifth set of virtual props.

[0048] Through the above steps, in a preset item assembly scheme (e.g., a set of virtual items pre-configured for a virtual character), the assembly relationships between different items in a combination item (e.g., a combination item consisting of a virtual weapon and its equipped sights) can be represented by parent-child nodes in the relationship tree. Thus, by using the assembly relationships represented by the parent-child nodes in the aforementioned relationship tree, different items in the aforementioned combination item can be found in both the set of virtual items currently equipped by the virtual character and the set of virtual items in the virtual item inventory, thereby solving the technical problem in the prior art where it is impossible to switch between combination items using a preset item assembly scheme. Furthermore, in this embodiment of the invention, for a preset item assembly scheme, the virtual items corresponding to the nodes in the aforementioned relationship tree are searched, while the assembly relationships represented by the parent-child nodes in the aforementioned relationship tree do not require separate searches, thereby reducing the complexity and time consumption of the search, and further improving the efficiency of searching for virtual items in the preset item assembly scheme.

[0049] As an optional implementation, the above embodiment is described below with a specific example. Assume a game scene where props can be assembled, such as... Figure 3 The diagram shown is a set of virtual props according to an optional embodiment of the present invention. Figure 1 The image shows the first set of virtual items currently equipped by the target virtual character. This set includes: a virtual AKS74U weapon, a virtual G17 pistol, standard bandages, and an AK pull handle cap. The standard bandages and AK pull handle cap are located in a pocket container. The image also shows a second set of virtual items in the target virtual character's inventory. This second set includes: a virtual AK74N weapon, an AK 7460 grip, a standard first aid kit, and disassembled ammunition (10 and 20 rounds). The DP triangular sight, aluminum grip, and AK retractable stock are mounted on the virtual AK74N weapon. Figure 4 The diagram shown is a set of virtual props according to an optional embodiment of the present invention. Figure 2The image includes virtual items from the third virtual item set, which can be a player-preset item configuration. This third virtual item set includes the following virtual items: a virtual weapon AK74N equipped with accessories such as a DP triangular sight, magazine, aluminum grip, and AK pull handle cap. The third virtual item set also includes a pocket container containing a stackable item "30 rounds of ammunition" and a regular item "standard bandage." The third virtual item set also includes the virtual weapon G17. The virtual weapons included in the third virtual item set have parent-child relationships, such as... Figure 5 The diagram shown is a first relation tree diagram according to an optional embodiment of the present invention. The preset prop assembly scheme in the diagram includes a virtual weapon G17, a virtual weapon AK74N, and a pocket container preset for the target virtual character. The virtual weapon AK74N and the pocket container serve as parent nodes. The aluminum grip, sight, magazine, and AK pull handle cap mounted on the virtual weapon AK74N serve as child nodes of the virtual weapon AK74N. The bullets and standard bandages mounted in the pocket container serve as child nodes of the pocket container. Since the bullets need to be installed in the magazine for use, the magazine serves as the parent node of the bullets, and the bullets serve as the child node of the magazine.

[0050] For combination items for virtual characters (e.g., virtual weapons and their equipped sights), existing search methods require finding multiple items with assembly relationships within the virtual item set, which significantly increases complexity. This application reduces complexity, thereby reducing time consumption and improving search efficiency through the following search method.

[0051] exist Figure 3 Search in the first and second virtual item sets shown. Figure 4 The virtual items shown are from the third set of virtual items. You can... Figure 3 Indexes are created for virtual items in the first and second virtual item sets. For parent-child items with an assembly relationship, only the parent item needs to be indexed, while the child items assembled on the parent item do not need to be indexed. The index can be created using key-value pairs, where the key can be the type identifier of the virtual item, and the value can be a list containing all instances of that type of virtual item. This allows for quick retrieval of the corresponding item based on its type identifier when querying preset item assembly schemes, thus speeding up the search process.

[0052] for Figure 3 The virtual weapons AKS74U and G17 pistol in the first set of virtual props, as well as the standard bandage and AK pull handle cap in the pocket container, can be indexed. However, the standard bandage and AK pull handle cap in the pocket container do not require indexing. For... Figure 3 The virtual weapons AK74N, AK7460 grip, standard first aid kit, and disassembled ammunition (10 and 20 rounds) in the second virtual item set, as well as the DP triangular sight, aluminum grip, and AK-to-retractable stock mounted on the virtual weapon AK74N, can be indexed. However, the DP triangular sight, aluminum grip, and AK-to-retractable stock mounted on the virtual weapon AK74N do not require indexing. Table 1 below shows the indexes created for the virtual items in the first and second virtual item sets.

[0053] Table 1

[0054]

[0055]

[0056] Based on the above index relationship, the virtual item in the preset item assembly scheme (third virtual item set) is searched in the first virtual item set and the second virtual item set. In this embodiment, three lists can be created: foundList, lackList, and externList. Among them, foundList corresponds to the first virtual item subset and is used to record the virtual items that were successfully found. lackList corresponds to the second virtual item subset and is used to record the virtual items that were not found. externList corresponds to the third virtual item subset and is used to record the sub-items that are assembled on the successfully found virtual items.

[0057] for Figure 4 The preset item configuration shown includes the virtual weapon AK74N, the virtual weapon G17, the accessories DP triangular sight, magazine, aluminum grip, AK pull handle cap, pocket container, the stackable item "30 rounds of ammunition," and a regular item "standard bandage." The following explains how to find each of these virtual items:

[0058] For the virtual weapon AK74N in the above-mentioned preset prop assembly scheme, the corresponding index ID_13 can be found in the index. The found virtual weapon AK74N is added to foundList, and the DP triangular sight, aluminum grip and AK telescopic stock equipped on the virtual weapon AK74N corresponding to index ID_13 are recorded in externList.

[0059] For the pocket container in the above-mentioned preset prop assembly scheme, the corresponding index ID_21 can be found in the preset relationship table. The found pocket container is added to foundList, and the standard bandage and AK pull cap assembled in the pocket container corresponding to index ID_21 are recorded in externList.

[0060] For the DP triangular sight, magazine, aluminum grip, lever cap, and standard bandage in the above-mentioned preset prop assembly scheme, since there is no corresponding index in the index table, the above-mentioned DP triangular sight, magazine, aluminum grip, lever cap, and standard bandage cannot be found. Therefore, the DP triangular sight, magazine, aluminum grip, lever cap, and standard bandage are recorded in the lackList.

[0061] For the preset item configuration of "30 bullets" and the virtual weapon G17, since the index table shows 10 bullets corresponding to index ID_61 and 20 bullets corresponding to ID_62, these 10 and 20 bullets can be recorded in foundList. Then, the index table is searched for the virtual weapon corresponding to index ID_12, and the found virtual weapon G17 is recorded in foundList.

[0062] Table 2 shows the virtual items recorded in foundList, lackList, and externList.

[0063] Table 2

[0064] foundList lackList externList AK74N DP triangular sight DP triangular sight G17 magazine Aluminum grip Pocket Container Aluminum grip AK with telescopic stock 10 bullets AK pull handle cap Standard bandage 20 bullets Standard bandage AK pull handle cap

[0065] Since no index is created for the child items assembled on the parent item, the parent-child relationship between the parent and child nodes does not need to be considered during retrieval. Without disassembling the assembled virtual item combinations, the virtual items corresponding to the child nodes assembled on the parent node can be found by taking the intersection of the virtual items recorded in the `lackList` and `externList`. This is then combined with the union of the found virtual items in the `foundList`, as shown below. Figure 6 The diagram shown is a schematic diagram of searching for virtual props according to an optional embodiment of the present invention. It can find virtual weapons AK74N, G17, pocket container, 30 bullets, DP triangular sight, aluminum grip, AK pull handle cap, and standard bandage required for the preset prop assembly scheme, thereby obtaining the fourth set of virtual props.

[0066] Since the virtual items in the preset item assembly scheme satisfy the parent-child node relationship, if the parent item of a found accessory item is not found, the found accessory cannot be used and can be returned to the target virtual character's inventory. For example, in the above embodiment, the magazine and bullets in the preset item assembly scheme have a parent-child relationship. Since the magazine is not found, and the found bullets cannot be used without a magazine, the found bullets can be returned to the inventory, resulting in the fifth virtual item set including the virtual weapons AK74N, G17, pocket container, DP triangular sight, aluminum grip, AK pull handle cap, and standard bandage required by the preset item assembly scheme, and the virtual items currently equipped by the target virtual character are switched to the above virtual items.

[0067] Optionally, the method further includes: obtaining a sixth virtual item set from the first virtual item set and the second virtual item set, excluding the fifth virtual item set; and switching the virtual item set in the virtual item warehouse from the second virtual item set to the sixth virtual item set.

[0068] As an optional implementation, taking the above embodiment as an example, after finding the virtual weapons AK74N, G17, pocket container, DP triangular sight, aluminum grip, AK pull handle cap, and standard bandage required in the preset item assembly scheme, the found virtual items are removed from the first virtual item set (virtual weapon AKS74U, virtual weapon G17 pistol, pocket container, standard bandage, AK pull handle cap) and the second virtual item set (virtual weapon AK74N, AK 7460 grip, standard first aid kit, disassembled bullets, DP triangular sight, aluminum grip, and AK telescopic stock), resulting in the remaining sixth virtual item set, which includes: virtual weapon AKS74U, AK 7460 grip, standard first aid kit, disassembled bullets, and AK telescopic stock. The virtual items in the sixth virtual item set are then placed into the target virtual character's virtual inventory. Figure 7 This is a schematic diagram of a virtual item set according to an optional embodiment of the present invention. Figure 3 The image includes virtual props obtained according to a preset prop assembly scheme. Figure 7 The AK74N in the image is equipped with an AK pull handle cap, DP triangular sight, and aluminum grip. The remaining virtual items from the sixth virtual item set (virtual weapon AKS74U, grip AK 7460, standard first aid kit, disassembled bullets, and AK retractable stock) are placed into the target virtual character's virtual item inventory. The virtual items in the target virtual character's virtual item inventory are... Figure 3 Switch to Figure 7 The virtual props shown.

[0069] Optionally, switching the set of virtual items currently equipped by the target virtual character from the first set of virtual items to the fifth set of virtual items includes: equipping a first virtual item from the fifth set of virtual items to a second virtual item to obtain a target combination item, wherein the first virtual item corresponds to a first node in the first relationship tree, the second virtual item corresponds to a second node in the first relationship tree, and the first node is a child node of the second node; and equipping the target combination item to the target virtual character.

[0070] As an optional implementation, taking the above embodiment as an example, after finding the fifth set of virtual props required in the preset prop assembly scheme (virtual weapons AK74N, G17, pocket container, DP triangular sight, aluminum grip, AK pull handle cap, standard bandage), through... Figure 5 As shown in the first relationship tree, the pocket container and the standard bandage have a parent-child relationship, with the standard bandage being a child node of the pocket container. Therefore, assembling the standard bandage into the pocket container yields a combined item. Similarly, the DP triangular sight, aluminum grip, AK pull handle cap, and the virtual weapon AK74N have a parent-child relationship, with the DP triangular sight, aluminum grip, and AK pull handle cap being child nodes of the AK74N. Therefore, assembling the DP triangular sight, aluminum grip, and AK pull handle cap onto the AK74N yields a combined item. Figure 7 The preset item configuration shown includes a combination of items (an DP triangular sight, aluminum grip, and AK charging handle cap on an AK74N, and a standard bandage in the container). Equipping this combination of items to the target virtual character allows for the switching of virtual items on the target virtual character.

[0071] Optionally, assembling the first virtual item from the fifth set of virtual items into the second virtual item to obtain the target combination item includes: when the second virtual item is an item that the target virtual character can directly use, and the first virtual item is an accessory item of the second virtual item, assembling the first virtual item as an accessory item into the second virtual item to obtain the target combination item; when the second virtual item is a virtual container item, and the first virtual item is an item that can be placed in the second virtual item, placing the first virtual item into the second virtual item to obtain the target combination item.

[0072] As an optional implementation, props are categorized into assemblable props and nestable props. Assemblable props, such as sights and aluminum grips, can be attached to the virtual weapon AK74N as accessories. Nestable props, such as pocket containers, can hold props like bullets, bandages, and standard first-aid kits. Standard bandages, as props that can be placed in pocket containers, can be stored inside them.

[0073] Optionally, the step of searching for a virtual item in the first virtual item set and the second virtual item set that matches a virtual item in the third virtual item set to obtain a target search result includes: searching for an index record including the target item type in a predetermined index table, wherein the target item type is the item type of the third virtual item in the third virtual item set, and each index record in the index table includes the item identifier of the virtual item in the first virtual item set and the second virtual item set and the corresponding item type; when no index record including the target item type is found in the index table, the third virtual item is recorded as a virtual item in the second virtual item subset; when an index record including the target item type is found in the index table, an index record including the target item identifier is searched among the index records including the target item type, wherein the target item identifier is the item identifier of the third virtual item; when an index record including the target item identifier is found among the index records including the target item type, the third virtual item is recorded as a virtual item in the first virtual item subset.

[0074] Optionally, the method further includes: when the third virtual item is recorded as a virtual item in the first virtual item subset, searching for the virtual item currently equipped in the third virtual item in the first virtual item set and the second virtual item set; when a fourth virtual item is found currently equipped in the third virtual item, recording the fourth virtual item as a virtual item in the third virtual item subset.

[0075] As an optional implementation method, for Figure 3 The virtual weapons AKS74U and G17 pistol in the first set of virtual props, as well as the standard bandage and AK pull handle cap in the pocket container, can be indexed. However, the standard bandage and AK pull handle cap in the pocket container do not require indexing. For... Figure 3The virtual weapon AK74N, AK 7460 grip, standard first aid kit, and disassembled ammunition (10 and 20 rounds) in the second set of virtual props, as well as the DP triangular sight, aluminum grip, and AK-to-retractable stock mounted on the virtual weapon AK74N, can be indexed. However, the DP triangular sight, aluminum grip, and AK-to-retractable stock mounted on the virtual weapon AK74N do not require indexing. The pre-defined index table can be found in Table 1 above. ID_1 and ID_2 can be used to represent prop types. ID_1 corresponds to the virtual weapon type of the virtual prop. Props corresponding to the virtual weapon type can include prop identifiers ID_11, ID_12, and ID_13. Prop identifier ID_11 represents AKS74U, ID_12 represents G17, and ID_13 represents AK74N.

[0076] The above-mentioned foundList corresponds to the first subset of virtual items, which is used to record virtual items that were successfully found. The above-mentioned lackList corresponds to the second subset of virtual items, which is used to record virtual items that were not successfully found. The above-mentioned externList corresponds to the third subset of virtual items, which is used to record sub-items that are equipped on the successfully found virtual items.

[0077] The third set of virtual items in the aforementioned preset item assembly scheme includes: the virtual weapon AK74N, the virtual weapon G17, the accessory DP triangular sight, magazine, aluminum grip, AK pull handle cap, pocket container, the stackable item "30 rounds of ammunition," and a regular item "standard bandage." The following explains how to find each of these virtual items:

[0078] For the third virtual item being DP triangular sight, magazine, aluminum grip, lever cap, and standard bandage, since there is no corresponding index record in the index table, the above DP triangular sight, magazine, aluminum grip, lever cap, and standard bandage cannot be found. Therefore, DP triangular sight, magazine, aluminum grip, lever cap, and standard bandage are recorded in the lackList.

[0079] For the third virtual item, which is the virtual weapon AK74N, the corresponding index records ID_1 and ID_13 can be found in the index table. ID_1 represents the virtual weapon type of the item, and ID_13 represents the item identifier of AK74N. The found virtual weapon AK74N is added to the foundList. Since the fourth virtual item, DP triangular sight, aluminum grip, and AK telescopic stock are equipped on the third virtual item, the virtual weapon AK74N, the fourth virtual item, DP triangular sight, aluminum grip, and AK telescopic stock can be recorded in the externList.

[0080] For the third virtual item, the pocket container, the corresponding index record in the preset relationship table includes the item identifier ID_21. The found pocket container is added to the foundList. Since the fourth virtual item, the standard bandage and the AK handle cap, are equipped in the third virtual item pocket container, the standard bandage and the AK handle cap are recorded in the externList.

[0081] For the third virtual item, "30 bullets," and the virtual weapon G17, since the index table contains records for 10 bullets corresponding to item ID_61 and 20 bullets corresponding to item ID_62, these 10 and 20 bullets can be recorded in `foundList`. Then, the index table is searched for the virtual weapon corresponding to item ID_12, and the found virtual weapon G17 is recorded in `foundList`.

[0082] Optionally, searching for the virtual item currently equipped in the third virtual item in the first virtual item set and the second virtual item set includes: when the third virtual item is an item that allows the target virtual character to use directly, and the fourth virtual item is an accessory item currently equipped in the third virtual item, determining the fourth virtual item as the virtual item currently equipped in the third virtual item; when the third virtual item is a virtual container item, and the fourth virtual item is an item currently placed in the third virtual item, determining the fourth virtual item as the virtual item currently equipped in the third virtual item.

[0083] As an optional implementation, props are categorized into assemblable props and nestable props. For assemblable props, taking the virtual weapon AK74N as an example, the virtual weapon AK74N is a weapon directly usable by the target virtual character. Accessories such as sights, stocks, magazines, grips, and pull handle caps are accessory props for the virtual weapon AK74N and can be assembled onto it. Since the DP triangular sight, aluminum grip, and AK-shaped telescopic stock from the second set of virtual props are assembled onto the virtual weapon AK74N, it can be confirmed that the DP triangular sight, aluminum grip, and AK-shaped telescopic stock are currently assembled onto the virtual weapon AK74N. For nestable props, such as pocket containers, which can hold props like bullets, bandages, and standard first-aid kits, since the standard bandages and AK pull handle caps from the first set of virtual props are located in the pocket container, it can be confirmed that the standard bandages and AK pull handle caps are currently assembled into the pocket container.

[0084] Optionally, the method further includes: for the fifth and sixth virtual items in the first virtual item set and the second virtual item set, adding a target index record to the index table, wherein the sixth virtual item is currently equipped in the fifth virtual item, and the target index record includes the item identifier and item type of the fifth virtual item.

[0085] As an optional implementation, as shown in Table 1 above, indexes can be created for the virtual weapons AKS74U and G17 pistol in the first set of virtual items, as well as the standard bandage and AK pull handle cap in the pocket container. Here, ID_1 indicates that the item type of the virtual weapons AKS74U and G17 pistol is virtual weapon, ID_11 is the item identifier of the virtual weapon AKS74U, ID_12 is the item identifier of the virtual weapon G17 pistol, ID_2 is the item type of the pocket item, and ID_21 is the item identifier of the pocket item. However, no index needs to be created for the standard bandage and AK pull handle cap in the pocket container. For the virtual weapon AK74N, AK 7460 grip, standard first aid kit, and disassembled ammunition (10 and 20 rounds) in the second set of virtual items, as well as the DP triangular sight, aluminum grip, and AK telescopic stock mounted on the virtual weapon AK74N, an index can be created for the virtual weapon AK74N, AK 7460 grip, standard first aid kit, and disassembled ammunition (10 and 20 rounds). Here, ID_1 indicates that the item type of the virtual weapon AK74N is a virtual weapon, ID_13 is the item identifier of the virtual weapon AK74N, ID_3 is the item type of the grip item, and ID_31 is the AK... For item identifiers 7460, ID_4 indicates the type of first aid kit, ID_41 indicates the standard first aid kit, ID_6 indicates the type of ammunition, ID_61 indicates 10 rounds, and ID_62 indicates 20 rounds. The DP triangular sight, aluminum grip, and AK telescopic stock mounted on the virtual weapon AK74N do not require indexing.

[0086] Optionally, determining the fifth virtual item set in the fourth virtual item set based on the nodes in the first relation tree corresponding to the virtual items in the fourth virtual item set includes: determining a first group of nodes corresponding to the fourth virtual item set and a second group of nodes corresponding to the second virtual item subset in the first relation tree; searching for a target node subset in the first group of nodes, wherein the parent node of the nodes in the target node subset is a node in the second group of nodes; deleting the second group of nodes, the target node subset, and the child nodes of the nodes in the target node subset from the first relation tree to obtain a second relation tree; and selecting virtual items in the fourth virtual item set corresponding to the nodes in the second relation tree to obtain the fifth virtual item set.

[0087] As an optional implementation, the above... Figure 5 Taking the first relationship tree as an example, the virtual props corresponding to each node in the first relationship tree represent the relationships between the virtual props required in the preset prop assembly scheme. Taking the fourth virtual prop set in the above embodiment, which includes AK74N, G17, pocket container, 30 rounds of ammunition, DP triangular sight, aluminum grip, AK pull handle cap, and standard bandage, as an example, we search for the first group of nodes corresponding to the above virtual props in the first relationship tree. The `lackList` includes DP triangular sight, magazine, aluminum grip, AK pull handle cap, and standard bandage. We then search for the second group of nodes corresponding to the above virtual props in the first relationship tree. The first group of nodes and the second group of nodes can be color-coded using a "coloring tree" method, where the first group of nodes is represented by white, the second group by black, and the target node by gray, as shown below. Figure 8 The coloring diagram of the first relation tree shown. Figure 1 Delete the nodes marked in black and gray in the diagram. Figure 8 In the relationship tree shown, if the node corresponding to the gray-marked bullet has child nodes, then delete the child nodes of the node corresponding to the gray-marked bullet. After deleting the above nodes, we get the following: Figure 9 The diagram shows the second relationship tree. The virtual items corresponding to the nodes in the second relationship tree are the aforementioned fifth set of virtual items.

[0088] Optionally, determining the fifth virtual item set in the fourth virtual item set based on the nodes in the first relation tree corresponding to the virtual items in the fourth virtual item set includes: determining a second group of nodes in the first relation tree corresponding to the second virtual item subset; deleting the second group of nodes and the child nodes of the nodes in the second group of nodes in the first relation tree to obtain a second relation tree; and selecting virtual items in the fourth virtual item set corresponding to the nodes in the second relation tree to obtain the fifth virtual item set.

[0089] As an optional implementation, Figure 5 Taking the first relational tree shown as an example, the `lackList` includes the DP triangular sight, magazine, aluminum grip, AK pull handle cap, and standard bandage. Search for the second group of nodes corresponding to these virtual items in the first relational tree. Delete the second group of nodes from the first relational tree to obtain the following result: Figure 9 The diagram shows the second relationship tree. The virtual items corresponding to the nodes in the second relationship tree are the aforementioned fifth set of virtual items. The nodes in the second group can be colored using a "coloring tree" method; the second group of nodes is represented by black, as shown below. Figure 10 The coloring diagram of the first relation tree shown. Figure 2 Delete the nodes marked in black in the diagram, as well as their child nodes. After deleting these nodes, you will get the following: Figure 9 The diagram shows the second relationship tree. The virtual items corresponding to the nodes in the second relationship tree are the aforementioned fifth set of virtual items.

[0090] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0091] According to another aspect of the present invention, a virtual prop processing apparatus for implementing the above-described virtual prop processing method is also provided. For example... Figure 11As shown, the device includes: 1102 a first acquisition module, used to acquire a first set of virtual items currently equipped by the target virtual character, a second set of virtual items in the target virtual character's virtual item inventory, and a third set of virtual items pre-configured for the target virtual character, wherein the assembly relationship between the virtual items in the third set of virtual items is a first relationship tree, and the virtual items corresponding to the child nodes in the first relationship tree are equipped in the virtual items corresponding to the parent nodes of the child nodes; and a search module 1104, used to search for virtual items in the first set of virtual items and the second set of virtual items that match the virtual items in the third set of virtual items, to obtain a target search result, wherein the target search result includes a subset of the first set of virtual items successfully searched in the third set of virtual items, the third set of virtual items, and the third set of virtual items. The system retrieves a second virtual item subset and a third virtual item subset from the first virtual item set, where the second virtual item set failed to find the third virtual item subset. The third virtual item subset includes virtual items from the first virtual item set and the second virtual item set that are equipped in the first virtual item subset. A second acquisition module 1106 is used to acquire the intersection of the second virtual item subset and the third virtual item subset, and merge the virtual item subset in the intersection into the first virtual item subset to obtain a fourth virtual item set. A determination module 1108 is used to determine a fifth virtual item set from the fourth virtual item set based on the node in the first relation tree corresponding to the virtual item in the fourth virtual item set, and switch the virtual item set currently equipped by the target virtual character from the first virtual item set to the fifth virtual item set.

[0092] Optionally, the above-described apparatus is further configured to acquire a sixth virtual item set in the first virtual item set and the second virtual item set, excluding the fifth virtual item set; and to switch the virtual item set in the virtual item warehouse from the second virtual item set to the sixth virtual item set.

[0093] Optionally, the above-described device is further configured to assemble the first virtual item in the fifth set of virtual items into the second virtual item to obtain a target combination item, wherein the first virtual item corresponds to a first node in the first relationship tree, the second virtual item corresponds to a second node in the first relationship tree, and the first node is a child node of the second node; and to assemble the target combination item into the target virtual character.

[0094] Optionally, the above-described device is further configured to, when the second virtual item is an item that allows the target virtual character to use directly and the first virtual item is an accessory item of the second virtual item, assemble the first virtual item as an accessory item onto the second virtual item to obtain the target combined item; and when the second virtual item is a virtual container item and the first virtual item is an item that can be placed in the second virtual item, place the first virtual item into the second virtual item to obtain the target combined item.

[0095] Optionally, the above-described apparatus is further configured to search for an index record including a target item type in a predetermined index table, wherein the target item type is the item type of the third virtual item in the third virtual item set, and each index record in the index table includes the item identifier of the virtual item in the first virtual item set and the second virtual item set, as well as the corresponding item type; when no index record including the target item type is found in the index table, the third virtual item is recorded as a virtual item in the second virtual item subset; when an index record including the target item type is found in the index table, an index record including a target item identifier is searched among the index records including the target item type, wherein the target item identifier is the item identifier of the third virtual item; when an index record including the target item identifier is found among the index records including the target item type, the third virtual item is recorded as a virtual item in the first virtual item subset.

[0096] Optionally, the above-described apparatus is further configured to, when recording the third virtual item as a virtual item in the first virtual item subset, search for the virtual item currently equipped in the third virtual item in the first virtual item set and the second virtual item set; and when finding the fourth virtual item currently equipped in the third virtual item, record the fourth virtual item as a virtual item in the third virtual item subset.

[0097] Optionally, the above-described device is further configured to: when the third virtual item is an item that allows the target virtual character to use directly, and the fourth virtual item is an accessory item currently equipped on the third virtual item, determine the fourth virtual item as a virtual item currently equipped on the third virtual item; when the third virtual item is a virtual container item, and the fourth virtual item is an item currently placed in the third virtual item, determine the fourth virtual item as a virtual item currently equipped on the third virtual item.

[0098] Optionally, the above-described apparatus is further configured to add a target index record to the index table for the fifth and sixth virtual items in the first virtual item set and the second virtual item set, wherein the sixth virtual item is currently equipped in the fifth virtual item, and the target index record includes the item identifier and item type of the fifth virtual item.

[0099] Optionally, the above-described apparatus is further configured to: determine in the first relation tree a first group of nodes corresponding to the fourth virtual item set and a second group of nodes corresponding to the second virtual item subset; search for a target node subset in the first group of nodes, wherein the parent node of the node in the target node subset is a node in the second group of nodes; delete the second group of nodes, the target node subset, and the child nodes of the nodes in the target node subset in the first relation tree to obtain a second relation tree; and select virtual items in the fourth virtual item set that correspond to the nodes in the second relation tree to obtain the fifth virtual item set.

[0100] Optionally, the above-described apparatus is further configured to: determine a second group of nodes in the first relation tree that correspond to the second subset of virtual props; delete the second group of nodes and the child nodes of the nodes in the second group of nodes in the first relation tree to obtain a second relation tree; and select virtual props in the fourth set of virtual props that correspond to the nodes in the second relation tree to obtain the fifth set of virtual props.

[0101] According to another aspect of the present invention, an electronic device for implementing the above-described virtual item processing method is also provided, the electronic device being... Figure 1 The terminal device or server shown. This embodiment uses the electronic device as a server as an example for illustration. Figure 12 As shown, the electronic device includes a memory 1202 and a processor 1204. The memory 1202 stores a computer program, and the processor 1204 is configured to execute the steps of any of the above method embodiments through the computer program.

[0102] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0103] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0104] S1, obtain the first set of virtual items currently equipped by the target virtual character, the second set of virtual items in the virtual item warehouse of the target virtual character, and the third set of virtual items pre-configured for the target virtual character, wherein the assembly relationship between the virtual items in the third set of virtual items is a first relationship tree, and the virtual items corresponding to the child nodes in the first relationship tree are equipped in the virtual items corresponding to the parent nodes of the child nodes.

[0105] S2, search for virtual items in the first virtual item set and the second virtual item set that match the virtual items in the third virtual item set to obtain the target search result, wherein the target search result includes a first virtual item subset that was successfully found in the third virtual item set, a second virtual item subset that was not successfully found in the third virtual item set, and a third virtual item subset, wherein the third virtual item subset includes virtual items in the first virtual item set and the second virtual item set that are equipped in the virtual items in the first virtual item subset;

[0106] S3, obtain the intersection of the second virtual item subset and the third virtual item subset, and merge the virtual item subset in the intersection into the first virtual item subset to obtain the fourth virtual item set;

[0107] S4. Based on the node in the first relationship tree corresponding to the virtual item in the fourth virtual item set, determine the fifth virtual item set in the fourth virtual item set, and switch the virtual item set currently equipped by the target virtual character from the first virtual item set to the fifth virtual item set.

[0108] Alternatively, as those skilled in the art will understand, Figure 12 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 12 This does not limit the structure of the aforementioned electronic devices or electronic equipment. For example, electronic devices or electronic equipment may also include components that are more... Figure 12 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 12 The different configurations shown.

[0109] The memory 1202 can be used to store software programs and modules, such as the program instructions / modules corresponding to the virtual item processing method and apparatus in this embodiment of the invention. The processor 1204 executes various functional applications and data processing by running the software programs and modules stored in the memory 1202, thereby realizing the aforementioned virtual item processing method. The memory 1202 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1202 may further include memory remotely located relative to the processor 1204, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1202 may be used, but is not limited to, to store information such as the aforementioned virtual item collection. As an example, such as... Figure 12 As shown, the memory 1202 may include, but is not limited to, the first acquisition module 1102, the search module 1104, the second acquisition module 1106, and the determination module 1108 from the virtual item processing device. Furthermore, it may include, but is not limited to, other module units from the virtual item processing device, which will not be elaborated upon in this example.

[0110] Optionally, the transmission device 1206 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1206 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1206 is a radio frequency (RF) module, used for wireless communication with the Internet.

[0111] In addition, the aforementioned electronic device also includes: a display 1208 for displaying the first virtual item set and the fifth virtual item set; and a connection bus 1210 for connecting the various module components in the aforementioned electronic device.

[0112] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.

[0113] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations described above. The computer program is configured to perform the steps in any of the method embodiments described above at runtime.

[0114] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps:

[0115] S1, obtain the first set of virtual items currently equipped by the target virtual character, the second set of virtual items in the virtual item warehouse of the target virtual character, and the third set of virtual items pre-configured for the target virtual character, wherein the assembly relationship between the virtual items in the third set of virtual items is a first relationship tree, and the virtual items corresponding to the child nodes in the first relationship tree are equipped in the virtual items corresponding to the parent nodes of the child nodes.

[0116] S2, search for virtual items in the first virtual item set and the second virtual item set that match the virtual items in the third virtual item set to obtain the target search result, wherein the target search result includes a first virtual item subset that was successfully found in the third virtual item set, a second virtual item subset that was not successfully found in the third virtual item set, and a third virtual item subset, wherein the third virtual item subset includes virtual items in the first virtual item set and the second virtual item set that are equipped in the virtual items in the first virtual item subset;

[0117] S3, obtain the intersection of the second virtual item subset and the third virtual item subset, and merge the virtual item subset in the intersection into the first virtual item subset to obtain the fourth virtual item set;

[0118] S4. Based on the node in the first relationship tree corresponding to the virtual item in the fourth virtual item set, determine the fifth virtual item set in the fourth virtual item set, and switch the virtual item set currently equipped by the target virtual character from the first virtual item set to the fifth virtual item set.

[0119] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0120] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0121] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0122] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0123] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.

[0124] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0125] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0126] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A virtual prop processing method, characterized by, The method comprises: obtaining a first virtual prop set currently equipped by a target virtual character, a second virtual prop set in a virtual prop warehouse of the target virtual character, and a third virtual prop set pre-configured for the target virtual character, wherein a relationship between virtual props in the third virtual prop set is a first relationship tree, and a child node in the first relationship tree corresponds to a virtual prop equipped in a virtual prop corresponding to a parent node of the child node; finding virtual props matching virtual props in the third virtual prop set from the first virtual prop set and the second virtual prop set to obtain a target finding result, wherein the target finding result comprises a first virtual prop subset found successfully from the third virtual prop set, a second virtual prop subset found unsuccessfully from the third virtual prop set, and a third virtual prop subset comprising virtual props equipped in virtual props in the first virtual prop subset from the first virtual prop set and the second virtual prop set; obtaining an intersection of the second virtual prop subset and the third virtual prop subset, and incorporating a virtual prop subset in the intersection into the first virtual prop subset to obtain a fourth virtual prop set; determining a fifth virtual prop set from the fourth virtual prop set according to a node corresponding to a virtual prop in the fourth virtual prop set in the first relationship tree, and switching a virtual prop set currently equipped by the target virtual character from the first virtual prop set to the fifth virtual prop set.

2. The method of claim 1, wherein, The method further comprises: obtaining a sixth virtual prop set from the first virtual prop set and the second virtual prop set except the fifth virtual prop set; switching a virtual prop set in the virtual prop warehouse from the second virtual prop set to the sixth virtual prop set.

3. The method of claim 1, wherein, The switching of the virtual prop set currently equipped by the target virtual character from the first virtual prop set to the fifth virtual prop set comprises: equipping a first virtual prop in the fifth virtual prop set into a second virtual prop to obtain a target combined prop, wherein the first virtual prop corresponds to a first node in the first relationship tree, the second virtual prop corresponds to a second node in the first relationship tree, and the first node is a child node of the second node; equipping the target combined prop to the target virtual character.

4. The method of claim 3, wherein, The equipping of the first virtual prop in the fifth virtual prop set into the second virtual prop to obtain the target combined prop comprises: when the second virtual prop is a prop directly allowed to be used by the target virtual character, and the first virtual prop is an accessory prop of the second virtual prop, equipping the first virtual prop as an accessory prop to the second virtual prop to obtain the target combined prop; When the second virtual prop is a virtual container prop and the first virtual prop is a prop allowed to be placed in the second virtual prop, the first virtual prop is placed in the second virtual prop to obtain the target combined prop.

5. The method of claim 1, wherein, The searching for the virtual prop matching the virtual prop in the third virtual prop set from the first virtual prop set and the second virtual prop set comprises: searching for an index record including a target prop type in a predetermined index table, wherein the target prop type is a prop type of a third virtual prop in the third virtual prop set, each index record in the index table includes a prop identifier of a virtual prop in the first virtual prop set and the second virtual prop set and a corresponding prop type; when the index record including the target prop type is not found in the index table, recording the third virtual prop as a virtual prop in the second virtual prop subset; when the index record including the target prop type is found in the index table, searching for an index record including a target prop identifier in the index record including the target prop type, wherein the target prop identifier is a prop identifier of the third virtual prop; when the index record including the target prop identifier is found in the index record including the target prop type, recording the third virtual prop as a virtual prop in the first virtual prop subset.

6. The method of claim 5, wherein, The method further comprises: when the third virtual prop is recorded as a virtual prop in the first virtual prop subset, searching for a virtual prop currently assembled in the third virtual prop from the first virtual prop set and the second virtual prop set; when a fourth virtual prop currently assembled in the third virtual prop is found, recording the fourth virtual prop as a virtual prop in the third virtual prop subset.

7. The method of claim 6, wherein, The searching for the virtual prop currently assembled in the third virtual prop from the first virtual prop set and the second virtual prop set comprises: when the third virtual prop is a prop allowed to be directly used by the target virtual character and the fourth virtual prop is an accessory prop currently assembled on the third virtual prop, determining the fourth virtual prop as the virtual prop currently assembled in the third virtual prop; when the third virtual prop is a virtual container prop and the fourth virtual prop is a prop currently placed in the third virtual prop, determining the fourth virtual prop as the virtual prop currently assembled in the third virtual prop.

8. The method of claim 5, wherein, The method further comprises: for a fifth virtual prop and a sixth virtual prop in the first virtual prop set and the second virtual prop set, adding a target index record in the index table, wherein the sixth virtual prop is currently assembled in the fifth virtual prop, the target index record includes a prop identifier of the fifth virtual prop and a prop type of the fifth virtual prop.

9. The method according to any one of claims 1 to 8, characterized in that, The fifth virtual prop set is determined from the fourth virtual prop set according to nodes in the first relationship tree corresponding to virtual props in the fourth virtual prop set, and the fifth virtual prop set is obtained. A first group of nodes corresponding to the fourth virtual prop set and a second group of nodes corresponding to the second virtual prop subset are determined in the first relationship tree; A target node subset is searched for in the first group of nodes, wherein parent nodes of nodes in the target node subset are nodes in the second group of nodes; The second group of nodes, the target node subset, and child nodes of nodes in the target node subset are deleted from the first relationship tree to obtain a second relationship tree; Virtual props corresponding to nodes in the second relationship tree are selected from the fourth virtual prop set to obtain the fifth virtual prop set.

10. The method according to any one of claims 1 to 8, characterized in that, The fifth virtual prop set is determined from the fourth virtual prop set according to nodes in the first relationship tree corresponding to virtual props in the fourth virtual prop set, and the fifth virtual prop set is obtained. A second group of nodes corresponding to the second virtual prop subset is determined in the first relationship tree; The second group of nodes and child nodes of nodes in the second group of nodes are deleted from the first relationship tree to obtain a second relationship tree; Virtual props corresponding to nodes in the second relationship tree are selected from the fourth virtual prop set to obtain the fifth virtual prop set.

11. A virtual prop processing apparatus, comprising: The first virtual prop set, the second virtual prop set, and the third virtual prop set are obtained. The target search result includes a first virtual prop subset that is successfully searched for in the third virtual prop set, a second virtual prop subset that is unsuccessfully searched for in the third virtual prop set, and a third virtual prop subset including virtual props in the first virtual prop subset and the second virtual prop subset; The intersection of the second virtual prop subset and the third virtual prop subset is obtained, and a virtual prop subset in the intersection is merged into the first virtual prop subset to obtain a fourth virtual prop set; The fifth virtual prop set is determined from the fourth virtual prop set according to nodes in the first relationship tree corresponding to virtual props in the fourth virtual prop set, and the fifth virtual prop set is obtained. ​ 12. A computer readable storage medium, characterized in that, The computer readable storage medium comprises a stored program, wherein the program performs the method in any one of claims 1 to 10 when executed.

13. An electronic device comprising a memory and a processor, characterized in that The memory stores a computer program, and the processor is configured to execute the method in any one of claims 1 to 10 by using the computer program.

Citation Information

Patent Citations

  • Display control method and device, storage medium and electronic equipment

    CN112156458A

  • Virtual prop equipment method and device, terminal and storage medium

    CN112316421A