Virtual article processing method and device and electronic equipment
By providing a graphical user interface in the game, automatically matching and filling virtual items to the to-be-occupied area, it solves the complexity of players manually finding and storing virtual items, and improves game experience and retention.
Patent Information
- Application Number
- CN202510181131.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-05-13
AI Technical Summary
In the game, when storing virtual items, players need to manually find the game props that can be accommodated by the remaining space of the container. The operation is complicated and the experience is poor, which affects the retention rate of the game.
The terminal device provides a graphical user interface, determine the area to be occupied in response to the area selection operation, display the matching items on the interface, and fill the target item to be occupied in response to the item selection operation.
It simplifies players' operations to process virtual items, improves player experience, reduces operational complexity, and improves game retention rate.
Smart Images

Figure CN119971492A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of game technology, and in particular to a method, device and electronic device for processing virtual items. Background Art
[0002] In some games, game props usually have a fixed shape when stored and need to occupy corresponding storage space. When players put game props picked up in the game into a container, or put game props in one container into another container, they need to consider the shape of the game props and the remaining storage space in the container. In related technologies, players usually need to manually search for game props that can be accommodated in the remaining space of the container from the list of storable game props. In this way, the player's operation is more complicated and the experience is poor, which affects the retention rate of the game to a certain extent. Summary of the invention
[0003] In view of this, the purpose of the present disclosure is to provide a method, device and electronic device for processing virtual items to simplify the player's operation of processing virtual items and improve the player experience.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for processing virtual items, providing a graphical user interface through a terminal device; the graphical user interface displays a preset first virtual storage space; the method includes: in response to an area selection operation, determining an area to be occupied from the first virtual storage space; displaying at least one matching item on the graphical user interface, wherein the matching item is an alternative item determined from at least one alternative item and matching the area to be occupied; in response to an item selection operation, determining a target item from at least one matching item, and filling the target item into the area to be occupied.
[0005] In a second aspect, an embodiment of the present disclosure provides a device for processing virtual items, which provides a graphical user interface through a terminal device; the graphical user interface displays a preset first virtual storage space; the device includes: a to-be-occupied area determination module, which is used to determine the to-be-occupied area from the first virtual storage space in response to an area selection operation; a matching item display module, which is used to display at least one matching item in the graphical user interface, wherein the matching item is an alternative item determined from at least one alternative item and matching the to-be-occupied area; and an item storage module, which is used to determine a target item from at least one matching item in response to an item selection operation, and fill the target item into the to-be-occupied area.
[0006] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned virtual item processing method.
[0007] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned virtual item processing method.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The above-mentioned method, device and electronic device for processing virtual items determine the area to be occupied from the first virtual storage space in response to the area selection operation; display at least one matching item on the graphical user interface, wherein the matching item is an alternative item determined from at least one alternative item that matches the area to be occupied; in response to the item selection operation, determine the target item from at least one matching item, and fill the area to be occupied with the target item. In this method, after the player selects a part of the space in the virtual storage space where the item needs to be stored, the item corresponding to this part of the space can be matched from the alternative items, and the player can select the matching item to fill it into the selected part of the space. This method simplifies the player's operation of processing virtual items and improves the player experience.
[0010] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or understood by practicing the present disclosure. The purpose and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0011] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 A flowchart of a method for processing virtual items provided by an embodiment of the present disclosure;
[0014] Figure 2 A schematic diagram of a field of view direction indicator provided by an embodiment of the present disclosure;
[0015] Figure 3 A schematic diagram of a graphical user interface provided in an embodiment of the present disclosure;
[0016] Figure 4 Another graphical user interface schematic diagram provided for an embodiment of the present disclosure;
[0017] Figure 5 Another graphical user interface schematic diagram provided for an embodiment of the present disclosure;
[0018] Figure 6 Another graphical user interface schematic diagram provided for an embodiment of the present disclosure;
[0019] Figure 7 Another graphical user interface schematic diagram provided for an embodiment of the present disclosure;
[0020] Figure 8 A schematic diagram of the structure of a virtual item processing device provided by an embodiment of the present disclosure;
[0021] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0023] In some games, virtual items as supplies have different shapes. For example, the shapes can be limited to 1×2, 2×2, 1×3, and 2×3 cells. When players put these supplies into their own containers, they need to consider which container to put supplies of different shapes into, because generally speaking, containers also have shape restrictions.
[0024] For example, there is a 2×2 empty space in the player's chest mount, and you want to put an item that is exactly 2×2 in it to avoid wasting other spaces, but there are two problems at this time:
[0025] 1. There are many items on the player and in the game scene, and you need to find 2×2 items quickly.
[0026] 2. Even if you find the right item, you still need to long-press and drag it, and you may need to slide the item list to drag the required item to the target location.
[0027] Based on this, the embodiments of the present disclosure provide a method, device and electronic device for processing virtual items. This technology can be applied to the storage process of virtual items in games.
[0028] In one embodiment of the present invention, the processing method of virtual items can be run on a local terminal device or a server. When the processing method of virtual items is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0029] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the processing method of virtual items are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the user operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0030] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the user through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the user through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0031] See also Figure 1 First, a method for processing virtual items provided by an embodiment of the present invention is introduced, wherein a graphical user interface is provided through a terminal device; the graphical user interface displays a preset first virtual storage space. The above-mentioned first virtual storage space can be a virtual storage space of a game account controlled by the terminal device, or a virtual storage space of a controlled virtual character controlled by the game account.
[0032] The first virtual storage space may be a plane storage space, and correspondingly, the shape of the virtual items in the virtual scene is also a plane shape. The graphical user interface may directly display the first virtual storage space. The first virtual storage space may also be a three-dimensional storage space, and correspondingly, the shape of the virtual items in the virtual scene is also a three-dimensional shape. The graphical user interface may display a three-dimensional image of the first virtual storage space, or may display three-view images of the first virtual storage space. The first virtual storage space may also include a plane storage space and a three-dimensional storage space at the same time, which may be set according to needs and is not limited here.
[0033] The method comprises the following steps:
[0034] Step S102: In response to the area selection operation, determine an area to be occupied from the first virtual storage space.
[0035] The above-mentioned area selection operation can be of various types. For example, the player can long press a position in the first virtual storage space that is not occupied by a virtual item to start the area selection mode, and then determine the area to be occupied in the first virtual storage space based on the player's touch operation. A control for triggering the area selection mode can also be pre-set in the graphical user interface, and after the player triggers the control, the area to be occupied is determined based on the player's touch operation.
[0036] The player's touch operation may specifically be a sliding operation. For example, the space area within a certain range around the track of the sliding operation may be determined as the area to be occupied, or the first virtual storage space may be divided into a plurality of unit storage spaces in advance, and the unoccupied unit storage spaces passed by the track of the sliding operation constitute the area to be occupied. When the first virtual storage space is divided into a plurality of unit storage spaces in advance, the player's touch operation may also be a clicking operation, and the space area composed of one or more unoccupied unit storage spaces clicked by the player may be determined as the unoccupied area.
[0037] When the first virtual storage space is a three-dimensional space area, the player's touch operation can also be a long press operation. When the player long presses a surface position of the first virtual storage space, the distance between the unit storage space selected by the player and the unit storage space corresponding to the surface position can be determined based on the time of the long press operation, or the number of unit storage spaces selected by the player that are perpendicular to the surface where the surface position is located can be determined based on the time of the long press operation, etc., and there is no restriction here.
[0038] The above-mentioned area to be occupied is usually continuous. When it is preset that one or some virtual items can be stored in a discontinuous storage space, the area to be occupied can also be discontinuous. It can be set specifically according to needs.
[0039] Step S104: displaying at least one matching object on a graphical user interface, wherein the matching object is a candidate object determined from at least one candidate object to match the area to be occupied.
[0040] The above-mentioned candidate items may include virtual items in the first virtual storage space, may also include virtual items in the game scene, or may include virtual items in other virtual storage spaces of the game account controlled by the terminal device or the controlled virtual character.
[0041] Generally, when the virtual items in the game scene are pickable by the controlled virtual character controlled by the terminal device, or the player controls the controlled virtual character to open the game props containing the virtual items, the virtual items in the game scene can be regarded as alternative items.
[0042] As for other virtual storage spaces possessed by game accounts and controlled virtual characters controlled by the terminal device, when the player usually opens these virtual storage spaces at the same time as opening the first virtual storage space, the virtual items in these virtual storage spaces can be regarded as alternative items.
[0043] After the area to be occupied is determined, the shape of the area to be occupied can be determined. The shape can be a plane shape or a three-dimensional shape, which specifically corresponds to whether the first virtual storage space is a plane storage space or a three-dimensional storage space.
[0044] The space occupied by the candidate items in the virtual storage space is usually pre-set, which can be achieved by setting the shape of the candidate items in the virtual storage space. The matching items that match the area to be occupied can be determined based on the shape of the candidate items and the shape of the area to be occupied. In the specific implementation, the candidate items with the same shape as the shape of the area to be occupied can be used as matching items, and the candidate items whose shapes can be included in the shape of the area to be occupied can also be used as matching items. For example, when the area to be occupied consists of 2×2 unit storage spaces, the candidate items with the shape of 2×2 unit storage spaces can be used as matching items, and the candidate items with the shapes of 2×2, 2×1, 1×2 and 1×1 can also be used as matching items.
[0045] After the matching items are determined, the matching items need to be displayed in the graphical user interface. Generally, the identification, name, number, etc. of the matching items can be displayed. When there are multiple matching items, the matching items can be arranged and displayed according to the frequency of use, first letter, quantity, etc. of the matching items. When the matching items are candidate items whose shapes can be included in the shape of the area to be occupied, they can be arranged and displayed from small to large based on the remaining space in the area to be occupied after the matching items are placed in the area to be occupied, that is, the matching items whose shapes are more consistent with the shape of the area to be occupied are displayed in the front.
[0046] Step S106 , in response to the item selection operation, determining a target item from at least one matching item, and filling the target item into the area to be occupied.
[0047] The item selection operation may be a click operation on the displayed item to be matched, or a sliding operation starting from the matching item and ending at the area to be occupied. When there are multiple matching items, the object of the click operation or sliding operation may be the target item. Furthermore, the target item may be filled into the area to be occupied.
[0048] The above-mentioned method for processing virtual items, in response to an area selection operation, determines the area to be occupied from the first virtual storage space; displays at least one matching item on a graphical user interface, wherein the matching item is an alternative item determined from at least one alternative item that matches the area to be occupied; in response to an item selection operation, determines a target item from at least one matching item, and fills the area to be occupied with the target item. In this method, after the player selects a part of the space in the virtual storage space where the item needs to be stored, the item corresponding to this part of the space can be matched from the alternative items, and the player can select the matching item to fill it into the selected part of the space. This method simplifies the player's operation of processing virtual items and improves the player experience.
[0049] The following embodiment provides a specific method for determining a region to be occupied from a first virtual storage space in response to a region selection operation.
[0050] As described above, the first virtual storage space may be a plane storage space, or a three-dimensional storage space, or both. The first virtual storage space is usually pre-divided into a plurality of adjacent unit spaces. When implementing the method, the plurality of unit spaces need to include unoccupied unit spaces, wherein the unoccupied unit spaces are not occupied by virtual items. There may be occupied unit spaces in the plurality of unit spaces, or there may be no unoccupied unit spaces.
[0051] The player can determine the area to be occupied by sliding operation, or by clicking operation, or by combining sliding operation and clicking operation. When the area to be occupied can be determined by sliding operation, in response to the sliding operation on the graphical user interface, the storage area consisting of at least one unoccupied unit space passed by the sliding operation can be determined as the area to be occupied. When the area to be occupied can be determined by clicking operation, in response to the clicking operation, the storage area consisting of at least one unoccupied unit space acted by the clicking operation can be determined as the area to be occupied. In some cases, it is necessary to control each unoccupied unit space in the area to be occupied to be adjacent to at least one other unoccupied unit space in the area to be occupied. At this time, it is necessary to eliminate the unoccupied unit spaces that are not adjacent to other unoccupied unit spaces in the unoccupied unit spaces acted by the sliding operation or the clicking operation.
[0052] The first control may also be displayed in advance on the graphical user interface, such as Figure 2 As shown. The player needs to trigger the first control to turn on the area selection mode. In response to the trigger operation on the first control, the sliding operation or the click operation on the graphical user interface is monitored, or both operations need to be monitored at the same time. At this time, the player can determine the area to be occupied through the corresponding operation, thereby reducing the player's misoperation.
[0053] After the area to be occupied is determined, a cancel control corresponding to the area to be occupied may also be displayed on the graphical user interface. The player may trigger the cancel control, and in response to the triggering operation on the cancel control, the display of the area to be occupied is canceled.
[0054] The following embodiments provide a method of displaying at least one matching item on a graphical user interface, wherein the matching item is a specific method of determining a candidate item that matches the area to be occupied from at least one candidate item.
[0055] The above-mentioned candidate items may be virtual items in the first virtual storage space, or virtual items in other virtual storage spaces. For example, when the first game props corresponding to the first virtual storage space belong to a controlled virtual character controlled by the terminal device, and the controlled virtual character is in a preset game scene, the controlled virtual character may obtain game props of other virtual characters, or obtain game props in the game scene. For the convenience of writing, the other game props obtained by the controlled virtual character are referred to as "second game props".
[0056] The player can control the controlled virtual character to open the second game prop. In response to the opening operation of the second game prop in the game scene, the second virtual storage space corresponding to the second game prop can be displayed on the graphical user interface, and the virtual items stored in the second virtual storage space can be determined as candidate items.
[0057] During the movement of the controlled virtual character in the game scene, when the controlled virtual character and the virtual items meet the preset conditions, the controlled virtual character can usually pick up these virtual items. The preset condition can be that the controlled virtual character can enter a certain building, and the virtual items in the building can be picked up by the controlled virtual character. The preset condition can also be that the distance between the controlled virtual character and the virtual item is less than or equal to a preset distance threshold, and the virtual item can be picked up by the controlled virtual character. The specific setting can be based on demand and is not limited here.
[0058] In actual applications, a list of candidate items to be picked up may be displayed in a graphical user interface, and the list of candidate items to be picked up includes candidate items that meet preset conditions with the controlled virtual character controlled by the terminal device. When displaying the list of candidate items to be picked up, the names and icons of the candidate items may be displayed. The game scene where the controlled virtual character is located and the list of candidate items to be picked up may be displayed at the same time, for example, the list of candidate items to be picked up may be displayed in a semi-transparent format.
[0059] In a specific implementation, the first virtual storage space may be opened while the second virtual storage space is opened. At this time, the virtual items stored in the first virtual storage space and the second virtual storage space may be determined as candidate items.
[0060] After determining the area to be occupied, the target shape of the area to be occupied can be directly determined. The target shape can be a plane shape or a three-dimensional shape. Then, based on the shape of at least one candidate item and the target shape, at least one matching item that matches the area to be occupied is determined. The shape of the candidate item and the target shape are correspondingly a plane shape or a three-dimensional shape. The shape of the candidate item generally refers to the shape of the candidate item in the storage space, or the shape of the minimum storage space required to be occupied.
[0061] In a specific implementation, the candidate item with the same shape as the target shape in at least one candidate item can be determined as a matching item that matches the area to be occupied. The candidate item that can be placed in the area to be occupied can also be used as a matching item. At this time, for each candidate item in the at least one candidate item, it is necessary to determine whether the shape of the candidate item can be accommodated by the target shape; if so, the candidate item is determined as a matching item that matches the area to be occupied; otherwise, the candidate item is determined as a non-matching item.
[0062] After the matching items are determined, a first window may be generated at a specified position of the graphical user interface. Specifically, the first window may be generated at a fixed position of the graphical user interface, or at a specified position of the area to be occupied, or based on the position of the area to be occupied in the graphical user interface, the first window may be displayed near the area to be occupied. The specific setting may be based on the needs. It is usually necessary to display at least one item identification of the matching item in the first window. Figure 3 As shown, the area to be occupied is displayed in gray, and a first window is displayed on the right side of the area to be occupied, and the first window displays the identification of item 1 and the identification of item 2. The player can perform a designated touch operation on the identification of an item, such as a click operation, a long press operation, etc., and in response to the designated touch operation acting on the first identification of the item identification of at least one matching item, the matching item corresponding to the first identification is determined as the target item.
[0063] The present disclosure also provides another method for processing virtual items. Figure 1 The method is implemented on the basis of the method shown in FIG. This method can more conveniently locate items of corresponding shapes according to the shape of the area to be occupied defined by the player through operation and fill the items into the area to be occupied.
[0064] This method is implemented in the following way:
[0065] 1. Set a control in the interface, which can be displayed in the shape of a magnifying glass, such as Figure 4 It is worth noting that Figure 4 This interface displays the virtual storage space corresponding to the warehouse (equivalent to the above-mentioned "first virtual storage space") and the virtual storage space corresponding to the backpack props opened by the player (equivalent to the above-mentioned "second virtual storage space").
[0066] 2. After the player clicks the magnifying glass control (also called "UI"), the player can slide the control so that the track of the sliding operation passes through the grid of the unit storage control representing the warehouse to draw the shape of the space to be occupied, that is, the shape of the items to be placed there. Figure 5 As shown, the dotted line with an arrow represents the trajectory of the player's sliding operation.
[0067] 3. After the player finishes the sliding operation, the items that match the shape of the area to be occupied can be displayed at the designated location of the area to be occupied. The displayed items can include the items on your body and the items you are looting. Click again to fill the area to be occupied with this item.
[0068] like Figure 6 As shown, the 2×2 area to be occupied selected by the player is displayed in gray, and items that match the shape of the area to be occupied are displayed on the right side of the area to be occupied. Specifically, multiple items are displayed in a list form. Figure 7 As shown, it shows the situation that the objects 1 that meet the shape of the area to be occupied are filled into the area to be occupied.
[0069] This method can more conveniently locate and transfer items of corresponding shapes based on the shapes defined by the player, thereby improving the player's gaming experience.
[0070] For the above method embodiments, see Figure 8 A virtual item processing device is shown, which provides a graphical user interface through a terminal device; the graphical user interface displays a preset first virtual storage space; the device includes:
[0071] The to-be-occupied area determining module 802 is used to determine the to-be-occupied area from the first virtual storage space in response to the area selection operation;
[0072] A matching item display module 804 is used to display at least one matching item on a graphical user interface, wherein the matching item is a candidate item determined from at least one candidate item to match the area to be occupied;
[0073] The object storage module 806 is used to determine a target object from at least one matching object in response to an object selection operation, and fill the target object into the area to be occupied.
[0074] The above-mentioned device for processing virtual items determines the area to be occupied from the first virtual storage space in response to the area selection operation; displays at least one matching item on the graphical user interface, wherein the matching item is an alternative item determined from at least one alternative item that matches the area to be occupied; in response to the item selection operation, determines the target item from at least one matching item, and fills the area to be occupied with the target item. In this method, after the player selects a part of the space in the virtual storage space where the item needs to be stored, the item corresponding to this part of the space can be matched from the alternative items, and the player can select the matching item to fill it into the selected part of the space. This method simplifies the player's operation of processing virtual items and improves the player experience.
[0075] The first virtual storage space includes a plane storage space and / or a three-dimensional storage space.
[0076] The above-mentioned first virtual storage space includes multiple adjacent unit spaces; the multiple unit spaces include unoccupied unit spaces; the unoccupied unit spaces are not occupied by virtual items; the to-be-occupied area determination module is also used to: respond to a sliding operation and / or a click operation on the graphical user interface, and determine a storage area composed of at least one unoccupied unit space passed by a sliding operation or a storage area composed of at least one unoccupied unit space acted upon by a click operation as a to-be-occupied area.
[0077] The above-mentioned graphical user interface also displays a first control; the above-mentioned device also includes: an operation monitoring module, which is used to respond to a trigger operation acting on the first control and monitor a sliding operation and / or a clicking operation acting on the graphical user interface.
[0078] The above device also includes a matching object determination module, which is used to: determine a target shape of the area to be occupied; and determine at least one matching object that matches the area to be occupied based on the shape of at least one candidate object and the target shape.
[0079] The matching object determination module is further used to: determine, among at least one candidate object, a candidate object having the same shape as the target shape as a matching object that matches the area to be occupied.
[0080] The matching object determination module is further used to: for each candidate object in the at least one candidate object, determine whether the shape of the candidate object can be accommodated by the target shape; if so, determine the candidate object as a matching object that matches the area to be occupied.
[0081] The above-mentioned step of displaying at least one matching item in the graphical user interface includes: generating a first window at a specified position of the graphical user interface, and displaying the item identification of at least one matching item in the first window; the item storage module is also used to: respond to a specified touch operation acting on a first identification in the item identification of at least one matching item, and determine the matching item corresponding to the first identification as the target item.
[0082] The first game prop corresponding to the above-mentioned first virtual storage space belongs to a controlled virtual character; the controlled virtual character is controlled by a terminal device; the controlled virtual character is in a preset game scene; the above-mentioned device also includes: a second virtual storage space display module, which is used to respond to an opening operation for a second game prop in the game scene, and display a second virtual storage space corresponding to the second game prop in a graphical user interface; an alternative item determination module, which is used to determine the virtual items stored in the second virtual storage space as alternative items.
[0083] The candidate item determination module is further configured to determine virtual items stored in the first virtual storage space and the second virtual storage space as candidate items.
[0084] The above-mentioned device also includes: a list display module of candidate items to be picked up, which is used to display a list of candidate items to be picked up on a graphical user interface, and the list of candidate items to be picked up includes candidate items that meet preset conditions for the controlled virtual character controlled by the terminal device.
[0085] The above-mentioned device also includes: a cancel control display module, which is used to display a cancel control corresponding to the area to be occupied on the graphical user interface; and a to-be-occupied area cancel module, which is used to cancel the display of the area to be occupied in response to a trigger operation acting on the cancel control.
[0086] This embodiment further provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned virtual item processing method, for example:
[0087] In response to an area selection operation, an area to be occupied is determined from a first virtual storage space; at least one matching item is displayed on a graphical user interface, wherein the matching item is an alternative item determined from at least one alternative item and matching the area to be occupied; in response to an item selection operation, a target item is determined from at least one matching item, and the target item is filled into the area to be occupied.
[0088] In the above method, after the player selects a part of the virtual storage space where the item needs to be stored, the item corresponding to this part of the space can be matched from the candidate items, and the player can select the matching item to fill the selected part of the space. This method simplifies the player's operation of handling virtual items and improves the player experience.
[0089] Optionally, the first virtual storage space includes a plane storage space and / or a three-dimensional storage space.
[0090] Optionally, the first virtual storage space includes multiple adjacent unit spaces; the multiple unit spaces include unoccupied unit spaces; the unoccupied unit spaces are not occupied by virtual items; and in response to an area selection operation, the step of determining an area to be occupied from the first virtual storage space comprises: in response to a sliding operation and / or a click operation on a graphical user interface, determining a storage area consisting of at least one unoccupied unit space passed by a sliding operation or a storage area consisting of at least one unoccupied unit space acted upon by a click operation as an area to be occupied.
[0091] Optionally, the above-mentioned graphical user interface also displays a first control; in response to a sliding operation and / or a click operation acting on the graphical user interface, before determining a storage area consisting of at least one unoccupied unit space passed by the sliding operation or a storage area consisting of at least one unoccupied unit space acted on by the click operation as a to-be-occupied area, the above-mentioned method also includes: in response to a trigger operation acting on the first control, listening to the sliding operation and / or the click operation acting on the graphical user interface.
[0092] Optionally, the matching object is determined by: determining a target shape of the area to be occupied; and determining at least one matching object that matches the area to be occupied based on the shape of at least one candidate object and the target shape.
[0093] Optionally, the step of determining at least one matching object that matches the area to be occupied based on the shape of at least one candidate object and the target shape includes: determining a candidate object whose shape is the same as the target shape among the at least one candidate object as the matching object that matches the area to be occupied.
[0094] Optionally, the step of determining at least one matching object that matches the area to be occupied based on the shape of at least one candidate object and the target shape includes: for each candidate object among the at least one candidate object, judging whether the shape of the candidate object can be accommodated by the target shape; if so, determining the candidate object as a matching object that matches the area to be occupied.
[0095] Optionally, the step of displaying at least one matching item in the graphical user interface includes: generating a first window at a specified position of the graphical user interface, and displaying an item identifier of at least one matching item in the first window; and in response to an item selection operation, determining a target item from at least one matching item, includes: responding to a specified touch operation acting on a first identifier among the item identifiers of at least one matching item, determining the matching item corresponding to the first identifier as the target item.
[0096] Optionally, the first game prop corresponding to the first virtual storage space belongs to a controlled virtual character; the controlled virtual character is controlled by a terminal device; the controlled virtual character is in a preset game scene; the method further includes: responding to an opening operation for a second game prop in the game scene, displaying a second virtual storage space corresponding to the second game prop in a graphical user interface; and determining the virtual items stored in the second virtual storage space as alternative items.
[0097] Optionally, the step of determining the virtual items stored in the second virtual storage space as candidate items includes: determining the virtual items stored in the first virtual storage space and the second virtual storage space as candidate items.
[0098] Optionally, the method further includes: displaying a list of candidate items to be picked up on a graphical user interface, wherein the list of candidate items to be picked up includes candidate items that meet preset conditions for the controlled virtual character controlled by the terminal device.
[0099] Optionally, the method further includes: displaying a cancel control corresponding to the area to be occupied on the graphical user interface; and canceling the display of the area to be occupied in response to a triggering operation acting on the cancel control.
[0100] See also Fig. 9 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine executable instructions that can be executed by the processor 100. The processor 100 executes the machine executable instructions to implement the above-mentioned virtual item processing method.
[0101] Further, Fig. 9 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0102] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0103] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0104] This embodiment further provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned virtual item processing method.
[0105] A method, device and electronic device for processing virtual items provided in the embodiments of the present disclosure include a computer-readable storage medium storing program code, and the program code includes instructions that can be used to execute the methods described in the previous method embodiments, for example:
[0106] In response to an area selection operation, an area to be occupied is determined from a first virtual storage space; at least one matching item is displayed on a graphical user interface, wherein the matching item is an alternative item determined from at least one alternative item and matching the area to be occupied; in response to an item selection operation, a target item is determined from at least one matching item, and the target item is filled into the area to be occupied.
[0107] In the above method, after the player selects a part of the virtual storage space where the item needs to be stored, the item corresponding to this part of the space can be matched from the candidate items, and the player can select the matching item to fill the selected part of the space. This method simplifies the player's operation of handling virtual items and improves the player experience.
[0108] Optionally, the first virtual storage space includes a plane storage space and / or a three-dimensional storage space.
[0109] Optionally, the first virtual storage space includes multiple adjacent unit spaces; the multiple unit spaces include unoccupied unit spaces; the unoccupied unit spaces are not occupied by virtual items; and in response to an area selection operation, the step of determining an area to be occupied from the first virtual storage space comprises: in response to a sliding operation and / or a click operation on a graphical user interface, determining a storage area consisting of at least one unoccupied unit space passed by a sliding operation or a storage area consisting of at least one unoccupied unit space acted upon by a click operation as an area to be occupied.
[0110] Optionally, the above-mentioned graphical user interface also displays a first control; in response to a sliding operation and / or a click operation acting on the graphical user interface, before determining a storage area consisting of at least one unoccupied unit space passed by the sliding operation or a storage area consisting of at least one unoccupied unit space acted on by the click operation as a to-be-occupied area, the above-mentioned method also includes: in response to a trigger operation acting on the first control, listening to the sliding operation and / or the click operation acting on the graphical user interface.
[0111] Optionally, the matching object is determined by: determining a target shape of the area to be occupied; and determining at least one matching object that matches the area to be occupied based on the shape of at least one candidate object and the target shape.
[0112] Optionally, the step of determining at least one matching object that matches the area to be occupied based on the shape of at least one candidate object and the target shape includes: determining a candidate object whose shape is the same as the target shape among the at least one candidate object as the matching object that matches the area to be occupied.
[0113] Optionally, the step of determining at least one matching object that matches the area to be occupied based on the shape of at least one candidate object and the target shape includes: for each candidate object among the at least one candidate object, judging whether the shape of the candidate object can be accommodated by the target shape; if so, determining the candidate object as a matching object that matches the area to be occupied.
[0114] Optionally, the step of displaying at least one matching item in the graphical user interface includes: generating a first window at a specified position of the graphical user interface, and displaying an item identifier of at least one matching item in the first window; and in response to an item selection operation, determining a target item from at least one matching item, includes: responding to a specified touch operation acting on a first identifier among the item identifiers of at least one matching item, determining the matching item corresponding to the first identifier as the target item.
[0115] Optionally, the first game prop corresponding to the first virtual storage space belongs to a controlled virtual character; the controlled virtual character is controlled by a terminal device; the controlled virtual character is in a preset game scene; the method further includes: responding to an opening operation for a second game prop in the game scene, displaying a second virtual storage space corresponding to the second game prop in a graphical user interface; and determining the virtual items stored in the second virtual storage space as alternative items.
[0116] Optionally, the step of determining the virtual items stored in the second virtual storage space as candidate items includes: determining the virtual items stored in the first virtual storage space and the second virtual storage space as candidate items.
[0117] Optionally, the method further includes: displaying a list of candidate items to be picked up on a graphical user interface, wherein the list of candidate items to be picked up includes candidate items that meet preset conditions for the controlled virtual character controlled by the terminal device.
[0118] Optionally, the method further includes: displaying a cancel control corresponding to the area to be occupied on the graphical user interface; and canceling the display of the area to be occupied in response to a triggering operation acting on the cancel control.
[0119] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0120] In addition, in the description of the embodiments of the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0121] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0122] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0123] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, those skilled in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for processing virtual items, characterized in that: Providing a graphical user interface through the terminal device; The graphical user interface displays a preset first virtual storage space; the method comprises: In response to the area selection operation, determining an area to be occupied from the first virtual storage space; Displaying the at least one matching object on the graphical user interface, wherein the matching object is a candidate object determined from at least one candidate object to match the area to be occupied; In response to the item selection operation, a target item is determined from the at least one matching item, and the target item is filled into the area to be occupied.
2. The method according to claim 1, characterized in that The first virtual storage space includes a plane storage space and / or a three-dimensional storage space.
3. The method according to claim 1, characterized in that The first virtual storage space includes a plurality of adjacent unit spaces; the plurality of unit spaces include an unoccupied unit space; the unoccupied unit space is not occupied by a virtual item; In response to the area selection operation, the step of determining the area to be occupied from the first virtual storage space includes: In response to a sliding operation and / or a clicking operation performed on the graphical user interface, a storage area consisting of at least one unoccupied unit space passed by the sliding operation or a storage area consisting of at least one unoccupied unit space acted upon by the clicking operation is determined as an area to be occupied.
4. The method according to claim 3, characterized in that: The graphical user interface also displays a first control; In response to a sliding operation and / or a clicking operation on the graphical user interface, before determining a storage area consisting of at least one unoccupied unit space passed by the sliding operation or a storage area consisting of at least one unoccupied unit space acted by the clicking operation as a to-be-occupied area, the method further includes: In response to a trigger operation applied to the first control, a sliding operation and / or a clicking operation applied to the graphical user interface is monitored.
5. The method according to claim 1, characterized in that The matching items are determined in the following manner: determining a target shape of the area to be occupied; At least one matching object matching the area to be occupied is determined based on the shape of the at least one candidate object and the target shape.
6. The method according to claim 5, characterized in that The step of determining at least one matching object that matches the area to be occupied based on the shape of the at least one candidate object and the target shape comprises: A candidate object having the same shape as the target shape among the at least one candidate object is determined as a matching object that matches the area to be occupied.
7. The method according to claim 5, characterized in that The step of determining at least one matching object that matches the area to be occupied based on the shape of the at least one candidate object and the target shape comprises: For each candidate item in the at least one candidate item, determining whether a shape of the candidate item can be accommodated by the target shape; If yes, the candidate item is determined as a matching item that matches the area to be occupied.
8. The method according to claim 1, characterized in that The step of displaying the at least one matching item on the graphical user interface comprises: generating a first window at a designated position of the graphical user interface, and displaying an item identifier of the at least one matching item in the first window; In response to the item selection operation, the step of determining a target item from the at least one matching item comprises: In response to a designated touch operation on a first identifier among the item identifiers of the at least one matching item, the matching item corresponding to the first identifier is determined as a target item.
9. The method according to claim 1, characterized in that: The first game prop corresponding to the first virtual storage space belongs to a controlled virtual character; the controlled virtual character is controlled by the terminal device; The controlled virtual character is in a preset game scene; The method further comprises: In response to an opening operation on a second game prop in the game scene, displaying a second virtual storage space corresponding to the second game prop on the graphical user interface; The virtual items stored in the second virtual storage space are determined as candidate items.
10. The method according to claim 9, characterized in that The step of determining the virtual item stored in the second virtual storage space as a candidate item includes: The virtual items stored in the first virtual storage space and the second virtual storage space are determined as candidate items.
11. The method according to claim 1, characterized in that: The method further comprises: The graphical user interface is controlled to display a list of candidate items to be picked up, wherein the list of candidate items to be picked up includes candidate items that meet preset conditions for the controlled virtual character controlled by the terminal device.
12. The method according to claim 1, characterized in that The method further comprises: Displaying a cancel control corresponding to the to-be-occupied area on the graphical user interface; In response to a triggering operation acting on the cancel control, the display of the to-be-occupied area is canceled.
13. A virtual item processing device, characterized in that: Providing a graphical user interface through the terminal device; The graphical user interface displays a preset first virtual storage space; the device comprises: a to-be-occupied area determining module, configured to determine, in response to an area selection operation, an to-be-occupied area from the first virtual storage space; a matching object display module, configured to display the at least one matching object on the graphical user interface, wherein the matching object is a candidate object determined from at least one candidate object to match the area to be occupied; The object storage module is used to determine a target object from the at least one matching object in response to an object selection operation, and fill the target object into the area to be occupied.
14. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method for processing virtual items according to any one of claims 1 to 12.
15. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method for processing virtual items according to any one of claims 1 to 12.