Virtual article pickup method and device, electronic equipment, computer readable storage medium and computer program product

By displaying the virtual items to be replaced and the space indication information, the virtual items pickup operation when the backpack is insufficient is simplified, the problem of cumbersome operation is solved, and the operation efficiency and user experience are improved.

CN120168962APending Publication Date: 2025-06-20SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510465014.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-14
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

When the user's backpack space is insufficient, picking virtual items in the virtual scene requires tedious operations, such as opening the backpack interface, selecting unwanted items to discard, closing the backpack interface, etc., resulting in low operation efficiency and affecting the user experience.

Method used

It provides a method for picking virtual items, which simplifies the operation process by displaying the virtual items to be replaced, occupying space indication information and freeing up space indication information, allowing the user to directly discard the target virtual items and picking up the required items.

Benefits of technology

When the backpack is insufficient, the operation efficiency of users picking virtual items is significantly improved, the user interface is simplified, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120168962A_ABST
    Figure CN120168962A_ABST
Patent Text Reader

Abstract

The invention provides a virtual article pickup method and device, electronic equipment, a computer readable storage medium and a computer program product. The method comprises the steps of displaying at least one to-be-replaced second virtual article, first space indication information and second space indication information in a knapsack in response to a pickup operation of a virtual object for a first virtual article under the condition that the residual space of the knapsack of the virtual object is not enough to accommodate the first virtual article; wherein the first space indication information indicates an occupied space of the second virtual article, and the second space indication information indicates a first knapsack space required to be vacated for picking up the first virtual article; and in response to a replacement operation for a target virtual article in the at least one second virtual article, discarding the target virtual article from the knapsack, and picking up the first virtual article into the knapsack. Through the method and the device, the operation efficiency of picking up the virtual articles by the user can be improved when the backpack space is insufficient, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of human-computer interaction, and particularly to a method, device, electronic device, computer-readable storage medium, and computer program product for picking up virtual items. Background Art

[0002] In various applications (such as games, social networking, and education), users can obtain various virtual items in the virtual scene by exploring, completing tasks, and interacting with other users in the virtual scene provided by the application. For example, virtual items such as equipment, resources, consumables, and props. These virtual items are usually stored in the user's backpack for subsequent use or management.

[0003] However, in the related art, when the backpack space of the user is insufficient, if the user wants to pick up a virtual item in the virtual scene, a series of cumbersome operations are usually required, such as opening the backpack interface, selecting unwanted virtual items to discard to free up backpack space, closing the backpack interface, and returning to the virtual scene to pick up the virtual item. This results in low efficiency of the user picking up virtual items and affects the user experience. Summary of the Invention

[0004] Embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for picking up virtual items, which can improve the operation efficiency of the user picking up virtual items when the backpack space is insufficient, thereby improving the user experience.

[0005] The technical solution of the embodiments of the present application is implemented as follows:

[0006] Embodiments of the present application provide a method for picking up virtual items. The method includes:

[0007] In response to a picking operation of a virtual object on a first virtual item, when the remaining space in the backpack of the virtual object is not enough to accommodate the first virtual item, at least one second virtual item to be replaced in the backpack, first space indication information, and second space indication information are displayed; wherein, the first space indication information indicates the occupied space of the second virtual item, and the second space indication information indicates the first backpack space that needs to be vacated to pick up the first virtual item; in response to a replacement operation on a target virtual item among the at least one second virtual item, the target virtual item is discarded from the backpack, and the first virtual item is picked up into the backpack; wherein, the sum of the occupied space of the target virtual item and the remaining space is not less than the occupied space of the first virtual item.

[0008] Embodiments of the present application provide a device for picking up virtual items, including:

[0009] A display module, configured to, in response to a picking operation of a virtual object on a first virtual item, display at least one second virtual item to be replaced, first space indication information, and second space indication information in the backpack of the virtual object when the remaining space in the backpack of the virtual object is not sufficient to accommodate the first virtual item;

[0010] Wherein, the first space indication information indicates the occupied space of the second virtual item, and the second space indication information indicates the first backpack space that needs to be vacated for picking up the first virtual item;

[0011] A replacement module, configured to, in response to a replacement operation on a target virtual item among the at least one second virtual item, discard the target virtual item from the backpack and pick up the first virtual item into the backpack;

[0012] Wherein, the sum of the occupied space of the target virtual item and the remaining space is not less than the occupied space of the first virtual item.

[0013] In the above solution, the picking device for virtual items further includes a sorting module, configured to, before responding to the picking operation of the virtual object on the first virtual item, in response to there being multiple virtual items to be picked up, determine a first influencing parameter that affects the picking priority of each virtual item, where the first influencing parameter includes at least one of the following: the value of the virtual item, the occupied space of the virtual item, the ratio of the value of the virtual item to the occupied space of the virtual item, the matching degree between the virtual item and the virtual object; predict the picking priority of each virtual item based on the first influencing parameter to obtain the picking priority of each virtual item; sort the multiple virtual items in a manner that the higher the picking priority, the more forward the corresponding virtual item is sorted.

[0014] In the above solution, the display module is further configured to, in response to there being multiple virtual items in the backpack, use the virtual items that meet the first replacement condition as the second virtual items to be replaced; wherein, the first replacement condition includes at least one of the following: the value is lower than the value threshold, the occupied space exceeds the space threshold, the ratio of the value to the occupied space is lower than the ratio threshold, and the matching degree with the virtual object is lower than the degree threshold.

[0015] In the above solution, the display module is further configured to, in response to the number of the second virtual items being multiple, determine a second influencing parameter that affects the replacement priority of each of the second virtual items, where the second influencing parameter includes at least one of the following: the value of the second virtual item, the occupied space of the second virtual item, the ratio of the value of the second virtual item to the occupied space of the second virtual item, and the matching degree between the second virtual item and the virtual object; based on the second influencing parameter, query the corresponding relationship between different second influencing parameters and the replacement priority, and use the queried replacement priority as the replacement priority of the second virtual item; sort and display the multiple second virtual items in a manner that the higher the replacement priority, the more forward the sorting of the corresponding second virtual item.

[0016] In the above solution, the display module is further configured to, in response to the first space indication information indicating that the occupied space of each of the second virtual items is not less than the first backpack space required to pick up the first virtual item, display first replacement indication information, where the first replacement indication information is used to indicate that any one of the second virtual items can be replaced with the first virtual item; or, in response to the first space indication information indicating that the occupied space of each of the second virtual items is less than the first backpack space required to pick up the first virtual item, display second replacement indication information, where the second replacement indication information is used to indicate that at least two second virtual items need to be replaced with the first virtual item.

[0017] In the above solution, the replacement module is further configured to, in response to a trigger operation on a target virtual item among the at least one second virtual item, when the occupied space of the target virtual item is not less than the first backpack space, discard the target virtual item from the backpack and pick up the first virtual item into the backpack.

[0018] In the above solution, the display module is further configured to update the display style of the first backpack space indicated by the second space indication information from a first style to a second style; where the first style indicates that the first backpack space is the backpack space to be vacated, and the second style indicates that the first backpack space is the vacated backpack space.

[0019] In the above solution, the replacement module is further configured to, in response to a replacement operation on a first target virtual item among the at least one second virtual item, discard the first target virtual item from the backpack and update the first backpack space required to be vacated indicated by the second space indication information to a second backpack space; where the second backpack space is the difference between the first backpack space and the occupied space of the first target virtual item.

[0020] In the above solution, the replacement module is further configured to pick up the first virtual item into the backpack when the second backpack space is zero; when the second backpack space is not zero, continuously discard the second target virtual item from the backpack until the second space indication information indicates that the required backpack space to be vacated is zero, and then stop discarding and pick up the first virtual item into the backpack.

[0021] In the above solution, the display module is further configured to, when the second backpack space is not zero, display the remaining second backpack space that needs to be vacated indicated by the second space indication information in a third style, and display the vacated backpack space indicated by the second space indication information in a fourth style, where the vacated backpack space is the occupied space of the first target virtual item.

[0022] In the above solution, the replacement module is further configured to, when each of the second virtual items is associated with a pre-deletion control, in response to a trigger operation on a target pre-deletion control, mark the second virtual item corresponding to the target pre-deletion control as in a pre-deletion state, and update the first backpack space indicated by the second space indication information to a third backpack space, where the third backpack space is the difference between the first backpack space and the occupied space of the second virtual item corresponding to the target pre-deletion control; when the third backpack space is zero, in response to a deletion confirmation operation, use the second virtual item corresponding to the target pre-deletion control as the target virtual item, discard the target virtual item from the backpack, and pick up the first virtual item into the backpack.

[0023] In the above solution, the replacement module is further configured to, when the third backpack space is not zero, continuously mark other second virtual items as in a pre-deletion state until the second space indication information indicates that the required backpack space to be vacated is zero and then stop marking; in response to a deletion confirmation operation, use all the second virtual items in the pre-deletion state as the target virtual items, discard the target virtual items from the backpack, and pick up the first virtual item into the backpack.

[0024] In the above solution, the display module is further configured to, when the third backpack space is not zero, display the remaining third backpack space that needs to be vacated indicated by the second space indication information in a fifth style, and display the pre-vacated backpack space indicated by the second space indication information in a sixth style, where the pre-vacated backpack space is the occupied space of the second virtual item corresponding to the target pre-deletion control.

[0025] In the above solution, the replacement module is further configured to receive the deletion determination operation in response to a trigger operation on the first virtual item; or, receive the deletion determination operation in response to a trigger operation on the deletion confirmation control; or, receive the deletion determination operation in response to a determination operation on the deletion indication information, where the deletion indication information is used to indicate that the backpack space to be vacated is sufficient to accommodate the first virtual item.

[0026] In the above solution, the replacement module is further configured to, in response to a replacement operation on a target virtual item among the at least one second virtual item, display a replacement prompt information when the number of the target virtual items is multiple, where the replacement prompt information indicates that the sum of the values of the target virtual items is greater than the value of the first virtual item, and the types of the target virtual items are the same as the type of the first virtual item; and discard each of the target virtual items from the backpack in response to a determination operation on the replacement prompt information.

[0027] In the above solution, the replacement module is further configured to, in response to a replacement operation on a target virtual item among the at least one second virtual item, discard each of the target virtual items from the backpack when the number of the target virtual items is multiple and the second replacement condition is satisfied; the second replacement condition includes at least one of the following: the sum of the values of the target virtual items is less than the value of the first virtual item; the sum of the values of the target virtual items is not less than the value of the first virtual item and there is a target virtual item among the target virtual items whose type is different from the type of the first virtual item.

[0028] In the above solution, the display module is further configured to display the first space indication information and the second space indication information in a grid style, where the number of grids indicated by the first space indication information is proportional to the size of the occupied space indicated by the first space indication information, and the number of grids indicated by the second space indication information is proportional to the size of the first backpack space; display the first space indication information and the second space indication information in a digital style; display the first space indication information and the second space indication information in a text style; display the first space indication information and the second space indication information in a measuring cup style; display the first space indication information and the second space indication information in a progress bar style, where the progress bar of the first space indication information is used to represent the ratio of the occupied space of the second virtual item to the total space of the backpack, and the progress bar of the second space indication information is used to represent the ratio of the first backpack space to the total space of the backpack.

[0029] An embodiment of the present application provides an electronic device, where the electronic device includes:

[0030] A memory for storing computer-executable instructions or computer programs;

[0031] A processor, when executing the computer-executable instructions or computer programs stored in the memory, implements the method for picking up virtual items provided in the embodiments of the present application.

[0032] The embodiments of the present application provide a computer-readable storage medium storing a computer program or computer-executable instructions, which, when executed by a processor, implement the method for picking up virtual items provided in the embodiments of the present application.

[0033] The embodiments of the present application provide a computer program product including a computer program or computer-executable instructions, which, when executed by a processor, implement the method for picking up virtual items provided in the embodiments of the present application.

[0034] The embodiments of the present application have the following beneficial effects:

[0035] Through the above embodiments, in response to a picking operation made by a virtual object on a first virtual item, if the remaining space in the backpack of the virtual object is not enough to accommodate the first virtual item, at least one second virtual item to be replaced in the backpack, first space indication information indicating the occupied space of the second virtual item, and second space indication information indicating the first backpack space required to be vacated for picking up the first virtual item can be displayed. In this way, the player (i.e., the user) can directly decide the target virtual item to be discarded based on the displayed second virtual item, first space indication information, and second space indication information. In response to a replacement operation on the target virtual item among at least one second virtual item, the target virtual item is directly discarded from the backpack, and the first virtual item is picked up into the backpack. In this way, the player does not need to perform a series of cumbersome operations such as opening the backpack interface, selecting unwanted virtual items to discard to vacate the backpack space, closing the backpack interface, and returning to the virtual scene to pick up virtual items. The player only needs to make a selection on the target virtual item to clean up the backpack and pick up the first virtual item. This method can improve the operation efficiency of the player in picking up virtual items when the backpack space is insufficient. Description of the Drawings

[0036] Figure 1 is a schematic structural diagram of a system for picking up virtual items provided in the embodiments of the present application;

[0037] Figure 2 is a schematic structural diagram of an electronic device provided in the embodiments of the present application;

[0038] Figure 3 is a first flowchart of the method for picking up virtual items provided in the embodiments of the present application;

[0039] Figure 4 It is a schematic diagram of spatial indication information provided by an embodiment of the present application;

[0040] Figure 5 It is a schematic diagram of a pick-up list provided by an embodiment of the present application;

[0041] Figure 6 It is a first schematic diagram of a replacement list provided by an embodiment of the present application;

[0042] Figure 7A It is a first schematic diagram of a pick-up list and a replacement list provided by an embodiment of the present application;

[0043] Figure 7B It is a second schematic diagram of a pick-up list and a replacement list provided by an embodiment of the present application;

[0044] Figure 7C It is a third schematic diagram of a pick-up list and a replacement list provided by an embodiment of the present application;

[0045] Figure 8 It is a second schematic diagram of a replacement list provided by an embodiment of the present application;

[0046] Figure 9A It is a first schematic diagram of the change of the second spatial indication information provided by an embodiment of the present application;

[0047] Figure 9B It is a second schematic diagram of the change of the second spatial indication information provided by an embodiment of the present application;

[0048] Figure 9C It is a third schematic diagram of the change of the second spatial indication information provided by an embodiment of the present application;

[0049] Figure 10 It is a schematic diagram of a pre-deletion control provided by an embodiment of the present application;

[0050] Figure 11 It is a schematic diagram of replacement prompt information provided by an embodiment of the present application;

[0051] Figure 12 It is a schematic diagram of virtual item pick-up provided by an embodiment of the present application;

[0052] Figure 13 It is a second process schematic diagram of a method for picking up virtual items provided by an embodiment of the present application;

[0053] Figure 14 It is a third process schematic diagram of a method for picking up virtual items provided by an embodiment of the present application.

[0054] It should be noted that the above "first" and "second" are only used to distinguish different solutions, and do not represent the distinction of the quality of the solutions or the priority in the implementation process. Detailed implementation manners

[0055] In order to make the objectives, technical solutions, and advantages of this application clearer, the following will further describe this application in detail with reference to the accompanying drawings. The described embodiments should not be construed as limitations on this application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

[0056] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict.

[0057] In the following description, the terms "first / second / third" are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence when permitted, so that the embodiments of this application described here can be implemented in an order other than that illustrated or described here.

[0058] In the embodiments of this application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works together with other related parts to achieve a predetermined goal and can be fully or partially implemented by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of the overall module or unit that includes the function of that module or unit.

[0059] Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by those skilled in the technical field to which this application belongs. The terms used in the embodiments of this application are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0060] In the embodiments of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations when applied in practical examples, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope authorized by laws and regulations and the personal information subject.

[0061] Before further elaborating on the embodiments of this application, the nouns and terms involved in the embodiments of this application are explained. The nouns and terms involved in the embodiments of this application are subject to the following explanations.

[0062] 1) Client, an application program running on a terminal for providing various services, such as a video playback client, a game client, a social client, etc.

[0063] 2) In response to: used to represent the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more of the executed operations can be real-time or can have a set delay; without special instructions, there is no limit on the execution order of multiple executed operations.

[0064] 3) Human-computer interaction interface, an interface for providing human-computer interaction functions / an interface for displaying virtual scene information.

[0065] For example, a graphical user interface (GUI) display, such as an augmented reality (AR) interface, a virtual reality (VR) interface, a voice user interface (VUI), an interactive projection interface (using projection technology to display information on a plane), an eye movement detection interface (an interface controlled by detecting the user's line of sight), a holographic interface (a three-dimensional hologram formed by projecting an image through holographic projection technology, and a stereoscopic image can be seen without wearing special glasses), a multimodal interface (an interactive interface that combines multiple interaction methods, such as touch, vision, hearing, etc.), a brain-machine interface (BMI) interface, etc.

[0066] 4) Virtual scene, a virtual scene displayed (or provided) when an application program runs on a terminal. The virtual scene can be a simulation environment of the real world, a semi-simulated and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5D virtual scene, or a three-dimensional virtual scene. The embodiments of the present application do not limit the dimension of the virtual scene. For example, the virtual scene can include the sky, land, ocean, etc. The land can include environmental elements such as deserts, cities, etc. Users can control virtual objects to move in the virtual scene.

[0067] 5) Virtual object: The images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. Such movable objects can be virtual characters, virtual animals, anime characters, etc. For example, the people, animals, etc. displayed in a virtual scene. A virtual object can be a virtual image in the virtual scene used to represent the user. A virtual scene can include multiple virtual objects, and each virtual object has its own shape and volume in the virtual scene, occupying a part of the space in the virtual scene. In a game, a virtual object can also be a game character controlled by a user (or player).

[0068] 6) Virtual item: A virtual item is a digital asset in a virtual scene. It can exist only in a virtual environment or platform, without a physical form, and can also be stored and managed through the "backpack" of a virtual object in the virtual scene. Each virtual item has its specific use or meaning, such as enhancing abilities, completing tasks, or decorating virtual objects. A virtual object can obtain, use, trade, or discard these virtual items, and the functions and values of virtual items are defined by the virtual scene or platform they are in. That is to say, a virtual item can refer to a digital asset or object stored, managed, and used by a virtual object (such as a character, user, or entity) through a "backpack" system. These virtual items exist only in a virtual environment, without a physical entity, but have specific functions, values, or meanings, and can affect the behavior, abilities, or experiences of virtual objects in the virtual environment.

[0069] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for picking up virtual items, which can improve the operation efficiency of players picking up virtual items when the backpack space is insufficient.

[0070] See Figure 1 , Figure 1 which is a schematic diagram of the architecture of the virtual item picking system 100 provided by the embodiments of the present application. To support a virtual item picking application, the terminal 401 is connected to the server 200 through the network 300. The network 300 can be a wide area network, a local area network, or a combination of both.

[0071] In some embodiments, a client or application with the function of picking up virtual items is set on the terminal 401, such as a game client, an educational client, a fitness and health client, a social client, a travel exploration client, a shopping client, an augmented reality or virtual reality client, etc. Alternatively, a web link with the function of picking up virtual items runs on the terminal 401 to implement the method for picking up virtual items provided in the embodiments of the present application. For example, the terminal 401 can display a virtual scene, and in response to a picking operation of a virtual object on a first virtual item in the virtual scene, when the remaining space in the backpack of the virtual object is not enough to accommodate the first virtual item, at least one second virtual item to be replaced in the backpack and space indication information are displayed; in response to a replacement operation on a third virtual item among the at least one second virtual items, the third virtual item is discarded from the backpack, and the first virtual item is picked up into the backpack.

[0072] Here, the above different types of clients, applications or web links are introduced in detail:

[0073] For a game client, application or web page, the virtual scene is the virtual scene displayed (or provided) when the game runs on the terminal 401, and the virtual object is an active object of the player in the virtual scene. The method for picking up virtual items in the embodiments of the present application can be applied to role-playing games, large-world exploration games, strategy games, simulation business games, combat games, etc. Among them, in role-playing games, virtual items can be items related to the growth and adventure of virtual objects, such as virtual weapons, armors, consumables, task resources, etc.; in large-world exploration games, virtual items can be various virtual weapons, food ingredients, ores and other items of virtual objects; in strategy games, virtual items can be various resources and props of virtual objects in the virtual scene, such as points, scores, strategic resources, etc.; in simulation business games, virtual items can be crops, ores, tools and other items of virtual objects; in combat games, virtual items can be various virtual weapons, virtual ammunition, virtual drugs, etc.

[0074] For an educational client, application or web page, the virtual scene is a virtual learning environment provided by the educational client (or application, web page) in the terminal 401, and students can pick up virtual items in the virtual scene by completing tasks or exploring the scene. Here, the virtual items can be items such as knowledge points, badges, learning tools or learning resources.

[0075] For fitness and health clients, applications, or web pages, the virtual scene is a virtual fitness scene provided by the fitness and health client (or application, web page) in the terminal 401. Users can pick up virtual rewards (i.e., virtual items) such as energy bottles, health coins, nutritional items, achievement badges, etc. in the virtual scene by completing exercise goals or health tasks.

[0076] For social clients, applications, or web pages, the virtual scene is a virtual social scene provided by the social client (or application, web page) in the terminal 401. Users can pick up virtual items in the virtual scene to decorate their personal home pages, virtual avatars (i.e., virtual objects), etc. Here, the virtual items can be virtual gifts, virtual decorations, etc.

[0077] For travel exploration clients, applications, or web pages, the virtual scene is an augmented reality scene provided by the travel exploration client (or application, web page) in the terminal 401. Users can pick up virtual items in the virtual scene, such as virtual commemorative coins, historical knowledge, or task props, etc.

[0078] For shopping clients, applications, or web pages, the virtual scene is a shopping page or virtual fitting room scene provided by the shopping client (or application, web page) in the terminal 401. Users can pick up items such as coupons, points, gifts, etc. in the virtual scene, or pick up items such as virtual clothing, virtual configurations, etc. to decorate their virtual avatars (i.e., virtual objects).

[0079] In some embodiments, the method for picking up virtual items provided by the embodiments of the present application can also be implemented in cooperation with the terminal 401 and the server 200. For example, display the virtual scene on the terminal 401, and in response to a pick-up operation of a first virtual item in the virtual scene by a virtual object, send a pick-up request to the server 200. When the server 200 determines that the remaining space in the backpack of the virtual object is not enough to accommodate the first virtual item, determine at least one second virtual item to be replaced in the backpack of the virtual object, and send a display instruction to the terminal 401. In response to the display instruction, the terminal 401 displays at least one second virtual item to be replaced in the backpack and space indication information on the graphical interface; the terminal 401 sends a replacement request to the server 200 in response to a replacement operation for a third virtual item among the at least one second virtual items. In response to the replacement request, the server 200 discards the third virtual item from the backpack and picks up the first virtual item into the backpack.

[0080] In some embodiments, the terminal 401 can be implemented as various types of terminals such as laptop computers, tablet computers, desktop computers, set-top boxes, smart phones, smart speakers, smart watches, smart TVs, vehicle-mounted terminals, etc., or can also be implemented as a server.

[0081] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected through wired or wireless communication methods, which are not limited in the embodiments of the present application.

[0082] See Figure 2 , Figure 2 is a schematic structural diagram of the electronic device 400 provided by the embodiments of the present application. Figure 2 The illustrated electronic device 400 includes: at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. Each component in the electronic device 400 is coupled together through a bus system 440. It can be understood that the bus system 440 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clear illustration, in Figure 2 all kinds of buses are labeled as the bus system 440.

[0083] The processor 410 may be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a Digital Signal Processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or any conventional processor, etc.

[0084] The user interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as keyboards, mice, microphones, touch screen displays, cameras, and other input buttons and controls.

[0085] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memories, hard disk drives, optical disc drives, etc. The memory 450 optionally includes one or more storage devices that are physically located away from the processor 410.

[0086] The memory 450 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.

[0087] In some embodiments, the memory 450 is capable of storing data to support various operations. Examples of such data include programs, modules, and data structures, or subsets or supersets thereof, which are exemplarily described below.

[0088] The operating system 451 includes system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, the core library layer, the driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0089] The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420. Exemplary network interfaces 420 include: Bluetooth, wireless fidelity (WiFi), and universal serial bus (USB), etc.;

[0090] The presentation module 453 is used to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 associated with the user interface 430 (e.g., a display screen, a speaker, etc.).

[0091] The input processing module 454 is used to detect and translate one or more user inputs or interactions from one of one or more input devices 432.

[0092] In some embodiments, the virtual item picking device provided in the embodiments of the present application may be implemented in software. Figure 2 The virtual item picking device 455 stored in the memory 450 is shown, which may be software in the form of a program and a plugin, etc., including the following software modules: a display module 4551 and a replacement module 4552. These modules are logical, and thus can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.

[0093] In some other embodiments, the picking device for virtual items provided by the embodiments of the present application may be implemented in a hardware manner. As an example, the picking device for virtual items provided by the embodiments of the present application may be a processor in the form of a hardware decoding processor, which is programmed to execute the picking method for virtual items provided by the embodiments of the present application. For example, the processor in the form of a hardware decoding processor may employ one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0094] In some embodiments, the terminal or the server may implement the picking method for virtual items provided by the embodiments of the present application by running various computer-executable instructions or computer programs. For example, the computer-executable instructions may be commands at the microprogram level, machine instructions, or software instructions. The computer program may be a native program or software module in the operating system; it may be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as a game APP; or it may be a small program that can be embedded in any APP, that is, a program that only needs to be downloaded to the browser environment to run. In short, the above computer-executable instructions may be instructions in any form, and the above computer programs may be application programs, modules, or plugins in any form.

[0095] As described above, the picking method for virtual items provided by the embodiments of the present application may be implemented by various types of electronic devices. For example, it may be Figure 1 individually executed by any one of the terminal 401 and the server 200 in Figure 1 or may be executed collaboratively by the terminal 401 and the server 200 in

[0096] Next, taking the application scenario of a game as an example, the case where the picking method for virtual items provided by the embodiments of the present application is individually executed by the Figure 1 terminal 401 in Figure 3 will be described. Refer to Figure 3 which is the first process schematic diagram of the picking method for virtual items provided by the embodiments of the present application, and will be described in combination with the steps shown in Figure 3

[0097] ​In step 101, in response to a picking-up operation of a virtual object on a first virtual item, when the remaining space in the backpack of the virtual object is not sufficient to accommodate the first virtual item, at least one second virtual item to be replaced in the backpack, first space indication information, and second space indication information are displayed.

[0098] Among them, the first space indication information indicates the occupied space of the second virtual item, and the second space indication information indicates the first backpack space that needs to be vacated for picking up the first virtual item.

[0099] Here, the virtual object can be a character controlled by a player on the current terminal side (i.e., the user in the game virtual scene). The player can control the virtual object to explore in the virtual scene on the terminal. Based on the game scene involved, virtual items will appear at certain specific positions or scenes in the virtual scene. These positions and scenes are usually closely related to the specific gameplay, plot, and environment of the game. In the game, virtual items usually appear on the ground, in hidden areas, held by enemies or non-player characters (NPCs), at task-related positions, in stores, at environmental interaction points, at randomly generated points, and in special scenes. For example, if the virtual item is a treasure chest, the virtual item can be placed at any position in the virtual scene, such as on the ground, in a corner, in the center of a room, etc.; if the virtual item is a dropped item, the virtual item can fall on the ground after the player controls the virtual object to defeat an enemy; if the virtual item is a virtual resource, such as ore, wood, food ingredients, etc., the virtual item can be distributed in specific areas of the virtual scene; the virtual item can also be an item obtained by the virtual object through purchase or exchange at a trading point in the virtual scene.

[0100] In actual implementation, if a player wants to use a virtual item in the virtual scene as their own resource, they need to pick up the virtual item into their backpack. In the initial stage of the game, when the backpack space of the virtual object is sufficient, the player can control the virtual object to directly perform a picking-up operation on the virtual item in the virtual scene, so as to pick up the virtual item into the backpack.

[0101] In actual implementation, the picking-up operation performed by the player on the virtual item in the virtual scene can include active picking up and passive picking up.

[0102] Among them, active picking up means that the player controls the virtual object to obtain the virtual item existing in the virtual scene through their own conscious operation behavior in the virtual scene. In this case, the player has a clear intention and action to pick up the virtual item into their backpack.

[0103] For example, when a player explores a virtual scene, they may encounter a treasure chest hidden in a corner or placed at a specific location. When the player controls the virtual object to approach the treasure chest, the game interface will prompt the player that they can open the chest. The player can open the chest by pressing the corresponding interaction button (such as the E key on the keyboard, clicking with the mouse, or directly triggering the chest). If there is enough space in the player's backpack, the virtual items in the chest (such as gold coins, equipment, gems, etc.) will be automatically picked up and placed in the player's backpack. This process reflects active picking up. Another example is a common action-adventure game. After the player controls the virtual object to fight against a monster (or non-player character) and successfully defeats it, the monster will drop various virtual items (such as virtual weapons, potions, materials, etc.). These virtual items will be scattered at the location where the monster died. The player needs to move the virtual object to the side of the virtual item and then pick up the dropped virtual item into their backpack by clicking or pressing a specific pick-up button (such as triggering the "one-key pick-up" control). This also belongs to the player's active picking up of virtual items.

[0104] Among them, passive picking up means that the player does not need to perform specific active operations, and the game system directly distributes virtual items to the player. The player is in a relatively passive receiving state during this process.

[0105] For example, in some games, after the player accepts and completes a specific task, the terminal will directly determine that the task is completed and automatically add the virtual items as task rewards (such as experience points, money, items, etc.) to the player's backpack. In this case, the player does not need to manually operate to pick up these virtual items. They only need to focus on completing the task itself. At the moment the task is completed, the virtual items already belong to the player. This is an example of passive picking up.

[0106] In actual implementation, the space in the backpack of the virtual object in the game is usually limited. As the player controls the virtual object to explore, fight, and complete tasks in the game, the more virtual items the virtual object picks up, the smaller the remaining space in the backpack will become. When the remaining space in the backpack of the virtual object is small, the player usually cannot directly pick up virtual items and needs to make a certain choice between the picked-up virtual items and the virtual items to be picked up. Generally, the player hopes to pick up virtual items with higher value and smaller space occupancy to make full use of the backpack space.

[0107] Therefore, when the remaining space in the backpack of the virtual object is not enough to accommodate the first virtual item that the player wants to pick up, at least one second virtual item that can be replaced by the player can be screened out in the backpack, and at least one second virtual item to be replaced in the backpack, as well as the first space indication information and the second space indication information, are displayed to the player, so that the player can make a choice between the first virtual item and the second virtual item based on the displayed information.

[0108] Here, the first virtual item is one of the virtual items to be picked up in the virtual scene. The first spatial indication information indicates the occupied space of the second virtual item, and the second spatial indication information indicates the first backpack space required to be vacated for picking up the first virtual item.

[0109] Among them, the occupied space refers to the space occupied by the virtual item in the backpack when the virtual item is stored in the backpack, and each virtual item has its specific occupied space. And the first backpack space can be understood as the space occupied by the first virtual item when it is stored in the backpack, and is also equal to the occupied space of the first virtual item.

[0110] In some embodiments, the terminal can display the first spatial indication information and the second spatial indication information in at least one of the following ways: display the first spatial indication information and the second spatial indication information in a grid style, the number of grids indicated by the first spatial indication information is proportional to the size of the occupied space indicated by the first spatial indication information, and the number of grids indicated by the second spatial indication information is proportional to the size of the first backpack space; display the first spatial indication information and the second spatial indication information in a digital style; display the first spatial indication information and the second spatial indication information in a text style; display the first spatial indication information and the second spatial indication information in a measuring cup style; display the first spatial indication information and the second spatial indication information in a progress bar style, the progress bar of the first spatial indication information is used to represent the ratio of the occupied space of the second virtual item to the total space of the backpack, and the progress bar of the second spatial indication information is used to represent the ratio of the first backpack space to the total space of the backpack.

[0111] In actual implementation, according to the different painting styles of the game or the different requirements of the game screen display, different styles can be used to display the spatial indication information (such as the first spatial indication information and the second spatial indication information).

[0112] As an example, Figure 4 is a schematic diagram of the spatial indication information provided by the embodiments of the present application. Refer to Figure 4 , Figure 4 which shows 4 display styles of the spatial indication information. Specifically, Figure 4 Figure (a) in Figure 4 shows the grid style, Figure 4 Figure (b) in Figure 4 shows the digital style,

[0113] As an example, refer to Figure 4In Figure (a), when the first spatial indication information and the second spatial indication information are displayed in a grid style, the number of grids indicated by the first spatial indication information is proportional to the size of the occupied space indicated by the first spatial indication information, and the number of grids indicated by the second spatial indication information is proportional to the size of the first backpack space. For example, the relationship between the number of grids indicated by the first spatial indication information and the size of the occupied space can be 1:1, and the relationship between the number of grids indicated by the second spatial indication information and the size of the first backpack space can also be 1:1. Suppose Figure 4 If the grids shown in Figure (a) represent the first spatial indication information, and the number of grids indicated by the first spatial indication information is 8, then it can represent that the occupied space indicated by the first spatial indication information is 8, that is, the occupied space of the second virtual item corresponding to the first spatial indication information is 8.

[0114] As an example, see Figure 4 In Figure (b), when the first spatial indication information and the second spatial indication information are displayed in a numerical style, the first spatial indication information and the second spatial indication information can be represented in the form of a fraction. The denominator of the fraction can represent the total space of the backpack of the virtual object. When the first spatial indication information is displayed in a numerical style, the numerator of the fraction can represent the occupied space of the second virtual item; when the second spatial indication information is displayed in a numerical style, the numerator of the fraction can represent the first backpack space that needs to be vacated to pick up the first virtual item. Suppose Figure 4 If "3 / 100" shown in Figure (b) represents the first spatial indication information, then it can represent that the total space of the backpack of the virtual object is 100, and the occupied space of the second virtual item corresponding to the first spatial indication information is 3.

[0115] As an example, when the first spatial indication information and the second spatial indication information are displayed in a text style, a level division can be made in advance for the occupied space of the virtual item. For example, the occupied space is divided into three levels (high, medium, low). If the occupied space of the virtual item exceeds the first spatial threshold, the spatial indication information of the virtual item can be represented by "high"; if the occupied space of the virtual item exceeds the second spatial threshold but is less than the first spatial threshold, the spatial indication information of the virtual item can be represented by "medium"; if the occupied space of the virtual item is lower than the second spatial threshold, the spatial indication information of the virtual item can be represented by "low". For example, suppose the total space of the backpack is 100. If the occupied space of a second virtual item is 15, exceeding the first spatial threshold of 10, the first spatial indication information of this second virtual item can be represented as "high"; if the first backpack space that needs to be vacated to pick up the first virtual item is 2, that is, the occupied space of the first virtual item is 2, which is lower than the second spatial threshold of 3, the second spatial indication information of the first virtual item can be represented as "low".

[0116] As an example, see Figure 4 In Figure (c), when the first space indication information and the second space indication information are displayed in a measuring cup style, the total space of the measuring cup can be represented as the total space of the backpack, the occupied space in the measuring cup indicated by the first space indication information is used to represent the occupied space of the second virtual item, and the occupied space in the measuring cup indicated by the second space indication information is used to represent the first backpack space, that is, the occupied space of the first virtual item.

[0117] As an example, see Figure 4 In Figure (d), when the first space indication information and the second space indication information are displayed in a progress bar style, the total length of the progress bar represents the total space of the backpack, the progress bar of the first space indication information is used to represent the ratio of the space occupied by the second virtual item to the total space of the backpack, and the progress bar of the second space indication information is used to represent the ratio of the first backpack space to the total space of the backpack.

[0118] Through the above method, the spatial indication information is displayed in a variety of styles, which can provide greater flexibility for game design, so that the display style of the spatial indication information is adapted to the style of the game, and the display styles of the first spatial indication information and the second spatial indication information are usually consistent. In this way, the spatial information of the virtual object can be conveyed to the player intuitively and clearly, so that the player can quickly distinguish the size of the space occupied by the first virtual object and the second virtual object, thereby improving the player's gaming experience.

[0119] In actual implementation, since the number of second virtual items to be replaced screened out from the backpack is usually multiple, when the second virtual items are displayed, each second virtual item will correspond to a first space indication information. In the case of insufficient backpack space, the player can usually only pick up virtual items one by one. Therefore, the number of first virtual items picked up by the player's virtual object is generally one, and the second space indication information represents the first backpack space required to be vacated to pick up this first virtual item. If the number of first virtual items picked up by the player's virtual object is multiple, the second space indication information represents the first backpack space required to be vacated for multiple first virtual items (equal to the sum of the space occupied by the multiple first virtual items).

[0120] In the subsequent embodiments, Figure 4 The grid style shown in (a) is used to display the first space indication information and the second space indication information as an example for explanation.

[0121] In some embodiments, there are often multiple virtual items available for virtual objects to pick up in a virtual scene. Therefore, before a virtual object performs a pick-up operation on a first virtual item, the terminal can sort the virtual items to be picked up in the following manner: in response to there being multiple virtual items to be picked up, determine a first influencing parameter that affects the pick-up priority of each virtual item, where the first influencing parameter includes at least one of the following: the value of the virtual item, the occupied space of the virtual item, the ratio of the value of the virtual item to the occupied space of the virtual item, and the degree of matching between the virtual item and the virtual object; predict the pick-up priority of each virtual item based on the first influencing parameter to obtain the pick-up priority of each virtual item; and sort the multiple virtual items in such a way that the higher the pick-up priority, the more forward the corresponding virtual item is sorted.

[0122] In actual implementation, when there are multiple virtual items available for players to pick up (i.e., virtual items to be picked up) in a virtual scene, due to insufficient backpack space of the virtual object, players usually need to make certain trade-offs for virtual items, or select virtual items with high cost performance from the virtual items to be picked up to pick them into the backpack. Therefore, in order to facilitate players to quickly determine the first virtual item with high cost performance, the pick-up priority of each virtual item to be picked up can be predicted, and then the multiple virtual items to be picked up can be sorted based on the pick-up priority.

[0123] In actual implementation, first, determine a first influencing parameter that can affect the pick-up priority of each virtual item to be picked up. The first influencing parameter can include at least one of the value of the virtual item, the occupied space of the virtual item, the ratio of the value of the virtual item to the occupied space of the virtual item, and the degree of matching between the virtual item and the virtual object.

[0124] As an example, the value of a virtual item is usually determined comprehensively based on factors such as the function, rarity, practicality, and level of the virtual item in the game. Generally speaking, high-value virtual items often have powerful functions, rare acquisition methods, wide practicality, and high levels. The terminal can predict the value of the virtual item based on factors such as the function, rarity, practicality, and level of the virtual item to obtain the value of the virtual item. The manifestation form of the value can be a percentage value, where the higher the value, the higher the value, or it can be a preset value level, such as high value, medium-high value, medium value, low value, etc.

[0125] As an example, the occupied space refers to the space occupied by the virtual item in the backpack when the virtual item is stored in the backpack. Each virtual item has its specific occupied space, and there needs to be sufficient remaining space in the backpack to accommodate the occupied space of the virtual item in order to successfully put the virtual item in.

[0126] As an example, the ratio of the value of a virtual item to the occupied space of the virtual item can reflect the cost performance of the virtual item. That is to say, the higher the ratio of the value of the virtual item to the occupied space of the virtual item, the higher the cost performance of the virtual item. Therefore, the virtual item with higher value and smaller occupied space has higher cost performance.

[0127] As an example, the matching degree between a virtual item and a virtual object can be obtained by matching factors such as the type, attributes, and functions of the virtual item with factors such as the attributes, current tasks, and levels of the virtual object. Here, the type, attributes, functions of the virtual item, and the attributes, current tasks, levels, etc. of the virtual object can be determined based on a specific game. For example, the type of the virtual item can be types such as equipment type, consumable type, quest item type, etc., the attributes of the virtual item can be attributes such as attack attribute, defense attribute, effect duration attribute, etc., the functions of the virtual item can be to increase attack power, restore vitality, unlock areas, etc.; the attributes of the virtual object can be character level, current health value, skill attributes, etc., the current tasks of the virtual object can include main quests, side quests, daily quests, etc., and the levels of the virtual object can include character level, equipment level, etc.

[0128] In actual implementation, for the matching degree between a virtual item and a virtual object, matching rules can be predefined, and the matching rules can include at least one of a matching rule based on type, a matching rule based on attributes, a matching rule based on function, and a matching rule based on tasks and levels.

[0129] Among them, the matching rule based on type can include: judging whether the type of the virtual item matches the attributes of the virtual object. For example, a virtual object of the warrior type is more suitable for using a sword and a shield, while a virtual object of the mage type is more suitable for using a staff; judging whether the type of the virtual item matches the current state of the virtual object. For example, a virtual object with low health value has a higher matching degree with a virtual item of the health potion type; judging whether the type of the virtual item matches the current task of the virtual object, such as judging whether the virtual item is an item required for the current task of the virtual object.

[0130] The matching rule based on attributes can include: judging whether the attributes of the virtual item match the current attributes of the virtual object. For example, an equipment (virtual item) with high attack power is suitable for an output-type virtual object, and an equipment (virtual item) with high defense power is suitable for a tank-type virtual object; judging whether the attributes of the virtual item match the usage frequency of the virtual object. For example, an equipment (virtual item) with high durability is suitable for a virtual object that fights frequently.

[0131] Function-based matching rules may include: determining whether the function of a virtual item matches the current task requirements of a virtual object, such as matching a virtual item that enhances attack before a battle and a virtual item that restores life after a battle; determining whether the function of a virtual item matches the exploration progress of a virtual object, such as matching virtual items like keys or unlocking items when a new area needs to be unlocked.

[0132] Task- and level-based matching rules may include: determining whether the level of a virtual item matches the level of a virtual object, such as a high-level virtual item can only be used by a high-level virtual object.

[0133] As an example, for each virtual item to be picked up, after obtaining multiple matching degrees based on the above multiple matching rules, based on predefined matching weights, such as type weights defined for type-based matching rules, attribute weights defined for attribute-based matching rules, function weights defined for function-based matching rules, etc., the multiple matching degrees can be weighted and summed to obtain the matching degree between the virtual item and the virtual object.

[0134] Subsequently, for each virtual item to be picked up, based on at least one influencing parameter among the value of the virtual item, the occupied space, the ratio of the value to the occupied space, and the matching degree with the virtual object, the picking priority of the virtual item can be predicted to obtain the picking priority of each virtual item. Here, based on the rule that the higher the value of the virtual item, the smaller the occupied space, and the higher the matching degree, the higher the picking priority, a large model for predicting the picking priority can be pre-trained, and based on the trained large model, the picking priority of each virtual item to be picked up can be predicted.

[0135] Figure 5 is a schematic diagram of the picking list provided by an embodiment of the present application. Refer to Figure 5 , the terminal can sort the multiple virtual items to be picked up in the way that the higher the picking priority, the more forward the corresponding virtual item is sorted, and based on the sorting result, display at least one virtual item to be picked up in the picking list 110. The virtual item sorted most forward in the sorting result is the first virtual item with the highest picking priority. Here, when displaying the virtual items to be picked up in the picking list, relevant information such as the icon, name, and brief introduction of the virtual item can be displayed.

[0136] In the above manner, by sorting multiple virtual items to be picked up based on the first influencing parameters (such as the value of the virtual item, the occupied space, the ratio of the value to the occupied space, and the matching degree with the virtual object), and presenting them to the player in the order of decreasing picking priority, it is possible to enable the player to automatically screen out the virtual item with the highest cost performance (i.e., the highest picking priority) without having to view the attributes and values of each virtual item one by one, so that the player can control the virtual object to trigger the picking operation for the first virtual item with the highest picking priority among the multiple virtual items to be picked up based on the sorting result, helping the player make a picking decision quickly, reducing the cumbersome operations of manual screening and comparison by the player, and this method can also help the player maximize the resource gain, avoid missing important virtual items due to insufficient backpack space, enabling the player to effectively utilize the backpack space, thereby enhancing the player's gaming experience.

[0137] In some embodiments, the terminal can screen out the second virtual item to be replaced from the backpack in the following manner: in response to there being multiple virtual items in the backpack, taking the virtual item that meets the first replacement condition as the second virtual item to be replaced; wherein, the first replacement condition includes at least one of the following: the value is lower than the value threshold, the occupied space exceeds the space threshold, the ratio of the value to the occupied space is lower than the ratio threshold, and the matching degree with the virtual object is lower than the degree threshold.

[0138] In actual implementation, there are usually also multiple virtual items in the backpack of the virtual object. Therefore, before presenting at least one second virtual item to be replaced to the player, the virtual items in the backpack can be screened based on the first replacement condition to obtain at least one second virtual item to be replaced.

[0139] Here, the purpose of setting the first replacement condition is to screen out the second virtual items that are not needed by the player and have low cost performance in the backpack for the player to choose.

[0140] In some cases, when screening virtual items based on the first replacement condition, the virtual items with a matching degree lower than the degree threshold with the virtual object can be first determined in the backpack, and then, among the virtual items with a matching degree lower than the degree threshold with the virtual object, the virtual items with a value lower than the value threshold and an occupied space exceeding the space threshold, or a ratio of the value to the occupied space lower than the ratio threshold are determined. These screened virtual items are the virtual items that meet the first replacement condition, that is, the second virtual items.

[0141] In some cases, when screening virtual items based on the first replacement condition, the virtual items in the backpack can also be sorted in such a way that the lower the matching degree, the lower the value, the larger the occupied space, and the lower the ratio of value to occupied space, the higher the sorting position. Then, the first N virtual items in the sorting result are used as the second virtual items to be replaced. Here, N can be set according to the actual situation.

[0142] In some cases, if all the virtual items in the backpack meet the first replacement condition, all the virtual items in the backpack can be shown to the player as the second virtual items, and the player can decide which or which of the second virtual items to discard by themselves.

[0143] In actual implementation, after screening out the second virtual items to be replaced from the backpack, the second virtual items can be shown to the player in the form of a list.

[0144] As an example, Figure 6 is the first schematic diagram of the replacement list provided by the embodiment of the present application. Refer to Figure 6 , Figure 6 which shows two types of replacement lists. Refer to Figure 6 Figure (a) in Figure 6 The replacement list 120 shown in Figure (a) of Figure 6 can display the icon, name, and brief introduction information of the second virtual item (schematically indicated by "XXX" in the figure), and can also display the second space indication information 1201 in the replacement list 120, and display the first space indication information 1202 corresponding to the second virtual item at the associated position of each second virtual item. Figure 6 Figure (b) in Figure 6 In the replacement list 130 shown in Figure (b) of Figure 6 the icon of the second virtual item can be displayed, and the second space indication information 1301 can be displayed in the replacement list 130, and the first space indication information corresponding to the second virtual item (for example, the first space indication information 1302 of the second virtual item is displayed at the associated position of the third second virtual item) can be displayed at the associated position of each second virtual item.

[0145] It can be understood that Figure 6 both of the two replacement lists in can be used to display multiple second virtual items, and the player can view the second virtual items not shown in the current list by pulling down or swiping.

[0146] From Figure 6 the replacement list in Figure 6 , it can be seen that while displaying at least one second virtual item in the replacement list, displaying the first space indication information and the second space indication information of each second virtual item can help the player quickly distinguish the size difference of the occupied spaces of the first virtual item and the second virtual item, thereby helping the player quickly determine which second virtual items have a large occupied space and helping the player quickly determine which second virtual item or items to discard so that the backpack is sufficient to accommodate the first virtual item.

[0147] In the above manner, by screening out the second virtual items to be replaced in the backpack based on the first replacement condition and presenting at least one second virtual item to be replaced to the player, the second virtual items with relatively low cost performance in the backpack can be automatically screened out for the player. This way allows the player to discard the unwanted second virtual items among the second virtual items to be replaced without burden to free up space in the backpack. Even when the player makes a misoperation during this process (such as selecting the wrong second virtual item, or not wanting to pick up the first virtual item but discarding the second virtual item in the backpack), it can be ensured that the second virtual item discarded due to the misoperation is a virtual item with low cost performance and will not cause losses to the player. This automatic screening and display method eliminates the need for the player to perform the operation of opening the backpack and also eliminates the need for the player to independently screen virtual items from the backpack, improving the convenience of the operation.

[0148] In some embodiments, after screening out the second virtual items in the backpack in the above manner, if the number of second virtual items is multiple, the terminal can sort the second virtual items in the following way: in response to the number of second virtual items being multiple, determine a second influencing parameter that affects the replacement priority of each second virtual item, where the second influencing parameter includes at least one of the following: the value of the second virtual item, the occupied space of the second virtual item, the ratio of the value of the second virtual item to the occupied space of the second virtual item, the matching degree between the second virtual item and the virtual object; based on the second influencing parameter, query the corresponding relationship between different second influencing parameters and the replacement priority, and use the queried replacement priority as the replacement priority of the second virtual item; sort and display the multiple second virtual items in such a way that the higher the replacement priority, the more forward the corresponding second virtual item is sorted.

[0149] In actual implementation, a correspondence between the second influence parameter and the replacement priority is pre-configured. Among them, the second influence parameter of the second virtual item may include at least one of the value of the second virtual item, the occupied space of the second virtual item, the ratio of the value of the second virtual item to the occupied space, and the matching degree between the second virtual item and the virtual object. When configuring the correspondence between the second influence parameter and the replacement priority, it can be based on the method that the lower the value of the second virtual item, the larger the occupied space, the smaller the ratio of the value to the occupied space, and the smaller the matching degree with the virtual object, the greater the replacement priority, to construct the correspondence between the second influence parameter and the replacement priority. In this way, for players, the higher the replacement priority of the second virtual item, the lower its cost performance.

[0150] In actual implementation, if the number of second virtual items selected from the backpack is multiple, the second influence parameters of each second virtual item can be determined respectively, and based on the pre-configured correspondence between the second influence parameter and the replacement priority, the replacement priorities of each second virtual item can be queried, and the multiple second virtual items can be sorted and displayed in the way that the higher the replacement priority, the more forward the sorting of the corresponding second virtual item.

[0151] As an example, after sorting the multiple second virtual items, it can be displayed through the replacement list shown in Figure (a) of Figure 6 or the multiple sorted second virtual items can be displayed through the replacement list shown in Figure (b) of Figure 6 .

[0152] In some embodiments, after obtaining the second influence parameters of each second virtual item, it is also possible to pre-train a large model for predicting the replacement priority based on the rule that the lower the value of the second virtual item, the larger the occupied space, the smaller the ratio of the value to the occupied space, and the smaller the matching degree with the virtual object, the greater the replacement priority. Then, the replacement priorities of the second virtual items are predicted through the trained large model to obtain the replacement priorities of each second virtual item.

[0153] It can be understood that although the first influence parameters used in predicting the pickup priority of the virtual item to be picked up in the above embodiments and the second influence parameters used in determining the replacement priority here are essentially the same parameters, the influence of these parameters on the pickup priority and the influence on the replacement priority are opposite.

[0154] In the above - mentioned manner, after screening out the second virtual items in the backpack based on the first replacement condition, the replacement priorities of the second virtual items are determined through the second influence parameters of each second virtual item. And based on the method that the higher the replacement priority, the more forward the corresponding sorting, the multiple second virtual items are sorted and displayed. This can enable the player to directly obtain the second virtual items with low cost - performance in the backpack in the replacement list without manual analysis and comparison, greatly saving the player's decision - making time. Moreover, this method can also ensure that the player can retain the virtual items with high cost - performance in the backpack to the greatest extent and discard the second virtual items with low cost - performance, helping the player scientifically manage the backpack space and improve the utilization rate of the backpack space.

[0155] In some embodiments, the terminal can display the first replacement indication information or the second replacement indication information in the following manner:

[0156] First, in response to the first space indication information indicating that the occupied space of each second virtual item is not less than the first backpack space required to pick up the first virtual item, the first replacement indication information is displayed. The first replacement indication information is used to indicate that any one of the second virtual items can be replaced with the first virtual item.

[0157] In actual implementation, the occupied spaces of the second virtual items screened out from the backpack based on the first replacement condition are relatively large. Therefore, if the occupied spaces of the screened - out second virtual items are not less than the first backpack space required to pick up the first virtual item, the first replacement indication information can be displayed while displaying the second virtual items in the replacement list. The first replacement indication information can indicate to the player in the form of text prompts that any one of the second virtual items displayed in the replacement list can be replaced with the first virtual item.

[0158] As an example, Figure 7A is the first schematic diagram of the pick - up list and the replacement list provided by the embodiment of the present application. Refer to Figure 7A , after screening out multiple second virtual items in the backpack and sorting the second virtual items based on the above - mentioned replacement priorities, multiple second virtual items can be displayed in the replacement list 140 as shown in Figure 7A according to the sorting result, and the first space indication information 1403 corresponding to each second virtual item is displayed at the associated position of each second virtual item. In addition, the second space indication information 1402 indicating the first backpack space required to pick up the first virtual item 1404 can also be displayed in the replacement list 140. According to Figure 7AIt can be known from the number of grids indicated by the second spatial indication information 1402 in [the relevant context] that picking up the first virtual item 1404 requires freeing up 8 grids. And according to the number of grids indicated by the first spatial indication information 1403 corresponding to each second virtual item, it can be known that the occupied spaces of the multiple second virtual items shown in the current replacement list 140 are all 8 grids. That is to say, the first spatial indication information of each second virtual item indicates that the occupied space of each second virtual item is not less than the first backpack space required to be freed up for picking up the first virtual item. In this case, if the player randomly selects a second virtual item in the replacement list 140 to discard, the sum of the occupied space of the discarded second virtual item (i.e., the space freed up by discarding the second virtual item) and the remaining space of the backpack (even if it is 0) will be greater than the first backpack space, and thus the first virtual item 1404 can be picked up into the backpack. Therefore, in this case, the first replacement indication information can be displayed in the replacement list 140, such as the text prompt information 1401 of "Please select a replacement item" in the replacement list 140. This first replacement indication information is used to inform the player that discarding any one of the second virtual items in the replacement list 140 can pick up the first virtual item.

[0159] Second, in response to the first spatial indication information indicating that the occupied space of each second virtual item is less than the first backpack space required to be freed up for picking up the first virtual item, display the second replacement indication information. The second replacement indication information is used to indicate that at least two second virtual items need to be replaced with the first virtual item.

[0160] In actual implementation, the occupied space of the second virtual items screened out from the backpack may also be less than the first backpack space required to be freed up for picking up the first virtual item. In this case, the player may need to discard multiple (at least two) second virtual items in the backpack to possibly meet the requirement of picking up the first virtual item. Therefore, the second replacement indication information can be displayed in the replacement list to inform the player that at least two second virtual items need to be replaced with the first virtual item.

[0161] As an example, Figure 7B is the second schematic diagram of the picking list and the replacement list provided by the embodiments of the present application. Refer to Figure 7B After screening out multiple second virtual items from the backpack and sorting the second virtual items based on the above replacement priority, multiple second virtual items can be displayed in the replacement list 150 as shown in Figure 7B according to the sorting result, and the first spatial indication information 1503 corresponding to each second virtual item can be displayed at the associated position of each second virtual item. In addition, the second spatial indication information 1502 indicating the first backpack space required to be freed up for picking up the first virtual item 1504 can also be displayed in the replacement list 150. According to Figure 7BFrom the number of grids indicated by the second space indication information 1502 in [description], it can be known that picking up the first virtual item 1504 requires freeing up 8 grids. And according to the number of grids indicated by the first space indication information 1503 corresponding to each second virtual item, the occupied spaces of the multiple second virtual items shown in the current replacement list 150 are all less than 8 grids. For example, the number of grids indicated by the first space indication information of the first second virtual item is 4, the number of grids indicated by the first space indication information of the second second virtual item is 6, and the number of grids indicated by the first space indication information of the third second virtual item is 2. In this case, if the remaining space in the backpack is 0, that is, the backpack is full, the player needs to discard at least multiple second virtual items in order to pick up the first virtual item. Therefore, in this case, the second replacement indication information can be displayed in the replacement list 150, such as the text prompt information 1501 of "Please select N replacement items" in the replacement list 150. This second replacement indication information is used to inform the player that at least two second virtual items in the replacement list 150 need to be discarded in order to pick up the first virtual item.

[0162] As an example, Figure 7C is the third schematic diagram of the pickup list and the replacement list provided by the embodiment of the present application. Refer to Figure 7C , when the occupied spaces of each second virtual item indicated by the first space indication information are all less than the first backpack space required to be freed up for picking up the first virtual item, the player usually needs to select multiple second virtual items to discard. In this case, showing more second virtual items to the player in the replacement list can help the player make a decision. Therefore, it is also possible to Figure 7C show the second virtual items sorted based on the replacement priority through the replacement list 160 shown in

[0163] , display the corresponding first space indication information 1603 at the associated position of each second virtual item, and display the second space indication information 1602 indicating the first backpack space required to be freed up for picking up the first virtual item 1604 in the replacement list 160, as well as the second replacement indication information (such as the text prompt information 1601 of "Please select N replacement items").

[0164] In step 102, in response to a replacement operation for a target virtual item among at least one second virtual item, the target virtual item is discarded from the backpack, and the first virtual item is picked up into the backpack.

[0165] Wherein, the sum of the occupied space and the remaining space of the target virtual item is not less than the occupied space of the first virtual item.

[0166] In some embodiments, Figure 3 The shown step 102 can be implemented in the following manner: in response to a trigger operation for a target virtual item among at least one second virtual item, when the occupied space of the target virtual item is not less than the first backpack space, the target virtual item is discarded from the backpack, and the first virtual item is picked up into the backpack.

[0167] In actual implementation, among the second virtual items filtered out from the backpack based on the first replacement condition, there may be a second virtual item whose occupied space is not less than the first backpack space, or there may be a second virtual item whose occupied space is less than the first backpack space. In this case, any of the above Figure 6 replacement lists can be used to display multiple second virtual items. While displaying the second virtual items in the replacement list, the third replacement indication information can also be displayed to the player in the replacement list. The third replacement indication information is used to instruct the player to discard the second virtual item to replace the first virtual item. For example, the third replacement indication information can be a text prompt message such as "Clean up the backpack space". Based on the second space indication information shown in the replacement list and the first space indication information of each second virtual item, the player can independently determine which or which second virtual items to discard.

[0168] In actual implementation, if the player selects to discard the target virtual item among at least one second virtual item, and the number of grids indicated by the first space indication information of the target virtual item is greater than or equal to the number of grids indicated by the second space indication information, then through the trigger operation for the target virtual item, the target virtual item can be directly discarded from the backpack, and the first virtual item can be picked up into the backpack, that is, the terminal responds to the trigger operation for the target virtual item, directly discards the target virtual item from the backpack, and picks up the first virtual item into the backpack.

[0169] As an example, Figure 8 is the second schematic diagram of the replacement list provided by the embodiment of the present application. Refer to Figure 8, when the player determines that the occupied space of the first second virtual item is not less than the first backpack space by replacing the first space indication information of each second virtual item in the list and decides to discard the first second virtual item and replace it with the first virtual item, the player can directly trigger (such as click) the target virtual item 170 as the trigger operation for the target virtual item 170. In response to the trigger operation for the first second virtual item, the terminal takes the triggered second virtual item as the target virtual item, and takes the trigger operation as the replacement operation for the target virtual item 170, directly discards the target virtual item 170 from the backpack, and picks up the first virtual item into the backpack. In this process, the player only needs to perform the operation of "triggering", and the rest of the actions are automatically completed by the terminal.

[0170] As an example, continue to refer to Figure 8 , if each of the second virtual items is associated with a replacement control (for example, the target virtual item 170 is associated with the replacement control 1701), the player can replace the second virtual item with the first virtual item by triggering the corresponding replacement control. Still taking the first second virtual item as the target virtual item as an example, in response to the trigger operation for the replacement control of the first second virtual item, the terminal takes the first second virtual item corresponding to the triggered replacement control as the target virtual item 170, and takes the trigger operation as the replacement operation for the target virtual item 170, directly discards the target virtual item 170 from the backpack, and picks up the first virtual item into the backpack. In this process, the player only needs to perform the "triggering" operation for the replacement control, and the rest of the actions are automatically completed by the terminal.

[0171] Through the above method, when the backpack space is insufficient, after the player performs a trigger operation on the target virtual item, if the occupied space of the target virtual item is not less than the first backpack space, the terminal can, in response to the trigger operation, automatically complete the process of replacing the target virtual item in the backpack with the first virtual item. In this process, the player only needs to perform the trigger operation, and there is no need to manually execute the discard and pick-up actions, which simplifies the operation steps, improves the operation efficiency, and thus improves the player satisfaction.

[0172] In some embodiments, after discarding the target virtual item from the backpack in the above manner, the terminal can display the second space indication information in the following way: update the display style of the first backpack space indicated by the second space indication information from the first style to the second style; where the first style indicates that the first backpack space is the backpack space to be vacated, and the second style indicates that the first backpack space is the vacated backpack space.

[0173] In actual implementation, during the process of the player discarding the target virtual item, the second space indication information will synchronously make dynamic changes, which can be specifically reflected by the change of the display style. For example, when initially displaying the replacement list, that is, when no second virtual item has been discarded yet, the second space indication information is displayed in the first style. At this time, the first style indicates that the first backpack space is the backpack space to be vacated. When discarding the target virtual item, the display style of the second space indication information is updated to the second style, and the second style indicates that the first backpack space has become the vacated backpack space.

[0174] As an example, the first style and the second style can be distinguished by any one of color, grid style (such as striped grid, blank grid), etc. For example, the first style can be a red grid, and the second style can be a green grid.

[0175] As an example, continuing Figure 8 the example shown for illustration, Figure 9A is the first schematic diagram of the change of the second space indication information provided by the embodiment of the present application. Refer to Figure 9A Figure (a) in it. Before discarding the target virtual item 170, the display style of the second space indication information 1702 is the first style, such as a striped grid. At this time, the second space indication information 1702 is used to indicate that the first backpack space is the backpack space to be vacated, that is, to inform the player that the player still needs to vacate the number of grids indicated by the first backpack space (such as 8 grids) to pick up the first virtual item. After the player makes a trigger operation on the target virtual item 170 and the terminal discards the target virtual item 170 from the backpack, refer to Figure 9A Figure (b) in it. The display style of the second space indication information 1702 is updated from the first style to the second style, such as a blank grid. At this time, the second space indication information 1702 is used to indicate that the first backpack space is the vacated backpack space, that is, to inform the player that the vacating of the first backpack space has been completed.

[0176] It can be understood that since the occupied space of the target virtual item is not less than the first backpack space, when the player makes a trigger operation on the target virtual item, the terminal can directly execute the replacement operation, and this process is continuous and uninterrupted. Therefore, Figure 9A the changing process of the display style of the second space indication information shown is a very short process, and this process flashes by quickly during actual display.

[0177] In the above manner, during the process of the player discarding the target virtual item, through the change in the display style of the second space indication information, a real-time prompt for the vacated backpack space can be provided to the player, informing the player whether they still need to continue discarding the second virtual item. This change in the display style can enrich the game content while also giving certain prompts to players who are not familiar with the game mechanism, reducing the player's burden and improving the player's operation fluency.

[0178] In some embodiments, Figure 3 Step 102 shown can be implemented in the following manner: in response to a replacement operation for a first target virtual item among at least one second virtual item, discard the first target virtual item from the backpack, and update the first backpack space indicated by the second space indication information that needs to be vacated to a second backpack space; wherein, the second backpack space is the difference between the first backpack space and the occupied space of the first target virtual item.

[0179] In actual implementation, since the occupied spaces of the second virtual items displayed in the replacement list may not all be greater than the first backpack space, that is to say, the player may need to discard multiple second virtual items to be able to pick up the first virtual item. In this case, the player needs to continuously discard second virtual items in the replacement list until the space that needs to be vacated is zero, and then pick up the first virtual item into the backpack. During this process, the second space indication information will also make synchronous dynamic changes. After discarding the first target virtual item from the backpack, the second space indication information can indicate the second backpack space, and the second backpack space represents the backpack space that still needs to be vacated currently. The second backpack space is the difference between the first backpack space and the occupied space of the first target virtual item.

[0180] As an example, Figure 9B is the second schematic diagram of the change in the second space indication information provided by the embodiment of the present application. Refer to Figure 9B , Figure 9B In (a) of, it represents the replacement list before any second virtual item is discarded. At this time, the second space indication information 1801 displayed in the replacement list is used to indicate the first backpack space that needs to be vacated to pick up the first virtual item. If the remaining space in the backpack is zero, then the first backpack space at this time is equal to the occupied space of the first virtual item; in response to the replacement operation for the first target virtual item 1802 in the replacement list, discard the first target virtual item 1802 from the backpack. Since the number of grid cells indicated by the occupied space of the first target virtual item 1802 is 4, after discarding the first target virtual item, the space vacated in the backpack is not enough to accommodate the first virtual item. Therefore, it is still necessary to continue discarding the second virtual item. After discarding the first target virtual item, refer to Figure 9BIn figure (b) therein, the display style of the second spatial indication information 1801 in the replacement list has changed, that is, the first backpack space required to be vacated indicated by the second spatial indication information 1801 has been updated to the second backpack space, as Figure 9B In figure (b) therein, in the second spatial indication information 1801, the four meshed grids filled with patterns represent the second backpack space, that is, the space that still needs to be vacated, while the four blank grids represent the occupied space of the first target virtual item that has been vacated. Continue to refer to Figure 9B In figure (b) therein, after discarding the first target virtual item 1802, the first target virtual item 1802 is marked as the deleted state.

[0181] It can be understood that in response to the replacement operation for the first target virtual item, the terminal can directly discard the first target virtual item in the backpack. Among them, the triggering operation of the player for the first target virtual item can be used as the replacement operation for the first target virtual item, or the triggering operation of the player for the replacement control of the first target virtual item can be used as the replacement operation for the first target virtual item.

[0182] In the above manner, during the process of discarding the second virtual item, the terminal automatically calculates and updates the second backpack space required to be vacated, and through this dynamic style change of the second spatial indication information, the player can clearly understand the space state of the current backpack without manually calculating the space that still needs to be vacated after discarding the first target virtual item, saving the player's time and energy.

[0183] Correspondingly, in some embodiments, after discarding the first target virtual item from the backpack, the subsequent operations can be determined based on whether the second backpack space is zero:

[0184] First, in the case where the second backpack space is zero, pick up the first virtual item into the backpack.

[0185] In actual implementation, as Figure 9A In the process shown, after the player discards the first target virtual item, since the occupied space of the first target virtual item is not less than the first backpack space, therefore, the second backpack space indicated by the second spatial indication information is zero, that is, there is no need to continue to vacate the backpack space. At this time, in response to the replacement operation for the first target virtual item, the terminal can, while discarding the first target virtual item in the backpack, pick up the first virtual item into the backpack.

[0186] Second, in the case where the second backpack space is not zero, continuously discard the second target virtual item from the backpack until the second spatial indication information indicates that the backpack space required to be vacated is zero, then stop discarding, and pick up the first virtual item into the backpack.

[0187] In actual implementation, if asFigure 9B In the process shown, after the player discards the first target virtual item, since the occupied space of the first target virtual item is smaller than the first backpack space and the backpack cannot yet accommodate the first virtual item, after discarding the first target virtual item, the second space indication information 1801 shown in Figure (b) of Figure 9B is displayed. At this time, the number of grids in the second backpack space indicated by the second space indication information 1801 is 4, that is, it is not zero. At this time, the player can continue to discard the second target virtual item from the replacement list. Refer to Figure 9B Figure (c) of

[0188] Here, the terminal can, in response to the replacement operation for the second target virtual item 1803, directly pick up the first virtual item into the backpack while discarding the second target virtual item 1803 from the backpack. The terminal can also, in response to the replacement operation for the second target virtual item 1803, first discard the second target virtual item 1803 from the backpack and then pick up the first virtual item into the backpack when it receives the trigger operation from the player for the first virtual item.

[0189] In actual implementation, according to the occupied space of the second target virtual item, the number of second target virtual items continuously discarded by the player can be multiple.

[0190] In the above manner, when the player needs to discard multiple second virtual items to pick up the first virtual item, during the process of the player continuously discarding the second virtual items, the terminal automatically calculates the second backpack space that still needs to be vacated and updates the display style of the second space indication information. When it detects that the backpack space that still needs to be vacated is zero, the terminal can directly complete the action of picking up the first virtual item. In this process, the player only needs to make the decision to discard and perform the trigger operation for the second virtual item that they want to discard, and the rest of the actions are completed by the terminal, improving the operation efficiency of the player.

[0191] In some embodiments, when the second backpack space is not zero, the terminal can also adjust the display style of the second space indication information in the following manner: when the second backpack space is not zero, the remaining second backpack space to be vacated indicated by the second space indication information is displayed in a third style, and the vacated backpack space indicated by the second space indication information is displayed in a fourth style. The vacated backpack space is the occupied space of the first target virtual item.

[0192] During actual implementation, as Figure 9B shown in the process, the display style of the second space indication information changes as target virtual items (such as the first target virtual item and the second target virtual item) are continuously discarded. That is to say, the remaining second backpack space to be vacated can be displayed in the third style, while a fourth style different from the third style is used to display the vacated backpack space. In this way, by making a style distinction between the vacated backpack space and the remaining second backpack space in the second space indication information, the dynamic change process of the second space indication information can be clearly shown to the player.

[0193] Here, the third style and the fourth style can be distinguished by any one of color, grid style (such as striped grid, blank grid), etc. For example, the third style and the fourth style can be different colors or different grid styles.

[0194] As an example, Figure 9C is the third schematic diagram showing the change of the second space indication information provided by the embodiments of the present application, Figure 9C showing the dynamic change process of the second space indication information when the number of second target virtual items continuously discarded by the player is multiple, Figure 9C In (1), (2), (3), and (4) in represent the second space indication information, and the rest represent the grids indicating the occupied spaces of different target virtual items. Refer to Figure 9C , Figure 9C In (1) in, it represents the initial second space indication information, which characterizes the first backpack space to be vacated for picking up the first virtual item through a reticulated grid style (i.e., the third style); after discarding the first target virtual item (the number of grids indicating the occupied space is 4), Figure 9C Figure (2) in represents the second space indication information after updating the display style. At this time, the second space indication information shows 4 grids of the remaining second backpack space to be vacated through a reticulated grid style (i.e., the third style), and shows 4 grids of the vacated backpack space through a grid-like grid style (i.e., the fourth style). The vacated backpack space is equal to the occupied space of the first target virtual item; then, after the player continues to discard the second target virtual item a (the number of grids indicating the occupied space is 2), Figure 9CFigure (3) in it shows the second space indication information for updating the display style again. At this time, the second space indication information shows 2 grids of the second backpack space that still needs to be vacated through a reticulated grid style (i.e., the third style), and shows 6 grids of the backpack space that has been vacated through a grid-like grid style (i.e., the fourth style). At this time, the backpack space that has been vacated is equal to the sum of the occupied spaces of the first target virtual item and the second target virtual item a; then, after the player continues to delete the second target virtual item b (the number of grids indicating the occupied space is 2), Figure 9C Figure (4) in it shows the second space indication information for updating the display style again. At this time, the second backpack space that still needs to be vacated is zero, and the second space indication information only shows 8 grids of the backpack space that has been vacated through a grid-like grid style (i.e., the fourth style). At this time, the backpack is already sufficient to accommodate the first virtual item, and the pickup operation of the first virtual item is realized.

[0195] In the above manner, during the process of the player continuously discarding the second virtual item, the terminal automatically calculates the second backpack space that still needs to be vacated and updates the display style of the second space indication information. When it is detected that the backpack space that still needs to be vacated is zero, the terminal can directly complete the pickup action of the first virtual item. In this process, only the player needs to make a decision to discard and perform a trigger operation on the second virtual item to be discarded, and the rest of the actions are completed by the terminal, which improves the operation efficiency of the player.

[0196] In some embodiments, Figure 3 The step 102 shown can also be implemented in the following way: when each second virtual item is associated with a pre-deletion control, in response to a trigger operation on the target pre-deletion control, mark the second virtual item corresponding to the target pre-deletion control as the pre-deleted state, and update the first backpack space indicated by the second space indication information to the third backpack space, where the third backpack space is the difference between the first backpack space and the occupied space of the second virtual item corresponding to the target pre-deletion control; when the third backpack space is zero, in response to a deletion confirmation operation, use the second virtual item corresponding to the target pre-deletion control as the target virtual item, discard the target virtual item from the backpack, and pick up the first virtual item into the backpack.

[0197] During actual implementation, Figure 10 is a schematic diagram of the pre-deletion control provided by the embodiment of the present application. Refer to Figure 10, each of the second virtual items shown in the replacement list is respectively associated with a corresponding pre-deletion control. For example, the third second virtual item is associated with the pre-deletion control 1902. The player can mark the corresponding second virtual item as the pre-deletion state by triggering the pre-deletion control. When the player needs to discard the second virtual item to free up backpack space, the player can mark the second virtual item to be discarded by triggering the pre-deletion control in the replacement list. Similarly, during the marking process, the second space indication information will also make synchronous dynamic changes in the display style.

[0198] It can be understood that during the process of pre-deleting the second virtual item here, the principle of the dynamic change of the second space indication information is the same as that described above Figure 9C shown. The difference is that in Figure 9C , each time a trigger operation is performed on the first target virtual item or the second target virtual item, the terminal will directly discard the first target virtual item or the second target virtual item in the backpack. Here, the pre-deletion control only marks the second virtual item as the pre-deletion state without directly discarding it. When the deletion confirmation operation is received, the terminal will truly discard the second virtual item marked as the pre-deletion state from the backpack.

[0199] As an example, see Figure 10 , in response to the player's trigger operation on the target pre-deletion control 1902, mark the second virtual item 1903 corresponding to the target pre-deletion control 1902 as the pre-deletion state, and at the same time update the first backpack space indicated by the second space indication information 1901 to the third backpack space. As Figure 10 shown, before the pre-deletion, the second space indication information uses a reticulated grid style to display 8 grids indicated by the first backpack space. After marking the second virtual item 1903 as the pre-deletion state, the second space indication information 1901 uses a reticulated grid style to display 6 grids indicated by the third backpack space, and uses a blank grid style to display the 2 grids indicating the occupied space of the second virtual item 1903 corresponding to the target pre-deletion control 1902.

[0200] In actual implementation, after a trigger operation is performed on the target pre-deletion control and the second virtual item corresponding to the target pre-deletion control is marked as the pre-deletion state, if the third backpack space indicated in the second space indication information is zero (for example, the number of grids indicated by the third backpack space is 0), it means that after the second virtual item corresponding to the target pre-deletion control is discarded, the first virtual item can be picked up. Therefore, when the third backpack space is zero, in response to receiving a deletion confirmation operation, the terminal can use the second virtual item corresponding to the target pre-deletion control as the target virtual item, directly discard the target virtual item from the backpack, and pick up the first virtual item into the backpack. In this process, the player only needs to make a pre-deletion selection and a deletion confirmation operation, and the actions of discarding and picking up are automatically completed by the terminal.

[0201] Through the above embodiments, by associating a pre-deletion control with the second virtual item in the replacement list, the player can pre-select the second virtual item that they want to discard in the replacement list. That is, the pre-deletion control allows the player to pre-mark the second virtual item that they want to discard, but the discard operation will not be immediately executed. Instead, the player needs to further confirm (such as a deletion confirmation operation) before the marked second virtual item will be actually discarded. This method provides the player with a second confirmation opportunity, effectively reducing the risk of discarding important items due to misoperation. And before the player confirms the discard, there is sufficient time to check their selection to ensure the accuracy of the decision. This method can also give the player a stronger sense of control over the management of the backpack and enhance the gaming experience.

[0202] In some embodiments, the following method can be used to discard the target virtual item from the backpack and pick up the first virtual item into the backpack: when the third backpack space is not zero, continuously mark other second virtual items as the pre-deletion state until the second space indication information indicates that the required backpack space to be vacated is zero and then stop marking; in response to the deletion confirmation operation, use all the second virtual items in the pre-deletion state as the target virtual items, discard the target virtual items from the backpack, and pick up the first virtual item into the backpack.

[0203] In actual implementation, the same as above Figure 9CIn the process of the embodiment shown, players usually also need to mark multiple second virtual items as being in a pre-deletion state. Therefore, during the process of players marking one by one, the display style of the second space indication information changes dynamically. When the third backpack space is not zero, players can continuously mark other second virtual items in the replacement list as being in a pre-deletion state through the pre-deletion control until the required third backpack space to be vacated indicated by the second space indication information is zero. Then, players can stop marking the second virtual items and then perform a deletion confirmation operation. In response to the deletion confirmation operation, the terminal can use all the second virtual items in the pre-deletion state as target virtual items, discard the target virtual items from the backpack, and at the same time pick up the first virtual item into the backpack.

[0204] It can be understood that after players continuously mark other second virtual items as being in a pre-deletion state until the required third backpack space to be vacated indicated by the second space indication information is zero, players can still continue to mark the second virtual items they want to discard as being in a pre-deletion state. When performing a deletion confirmation operation, the terminal uniformly discards the second virtual items marked as being in a pre-deletion state.

[0205] Through the above embodiment, after players mark multiple second virtual items in the replacement list as being in a pre-deletion state through the pre-deletion control and then perform a deletion confirmation operation, the terminal uniformly executes the deletion and pickup actions, avoiding repeated operations. This method simplifies the operation process, improves efficiency, and is suitable for scenarios where multiple second virtual items need to be discarded.

[0206] In some embodiments, during the process of discarding target virtual items from the backpack through the "pre-deletion control", the terminal can also display the second space indication information in the following way: when the third backpack space is not zero, display the remaining third backpack space to be vacated indicated by the second space indication information in the fifth style, and display the pre-vacated backpack space indicated by the second space indication information in the sixth style. The pre-vacated backpack space is the occupied space of the second virtual item corresponding to the target pre-deletion control.

[0207] Similarly, as mentioned above, during the process of players marking multiple second virtual items as being in a pre-deletion state, the second space indication information changes dynamically synchronously. Continue to refer to Figure 10, in response to the player's trigger operation on the target pre-deletion control 1902, mark the second virtual item 1903 corresponding to the target pre-deletion control 1902 as the pre-deletion state, and at the same time update the first backpack space indicated by the second space indication information 1901 to the third backpack space. At this time, the number of grids indicated by the third backpack space is 6, which is not zero. Then, the grids indicated by the third backpack space can be displayed in the fifth style, and the pre-vacated backpack space can be displayed in the sixth style. Here, the third backpack space represents the backpack space that still needs to be vacated, and the pre-vacated backpack space is equal to the occupied space of the second virtual item corresponding to the target pre-deletion control (that is, the occupied space of the second virtual item marked as the pre-deletion state).

[0208] Similarly, the fifth style and the sixth style can be distinguished by any one of color, grid style (such as striped grid, blank grid), etc. For example, the fifth style and the sixth style can be different colors or different grid styles.

[0209] As an example, as Figure 10 before pre-deletion, the second space indication information uses a reticulated grid style (i.e., the fifth style) to display 8 grids indicated by the first backpack space. After marking the second virtual item 1903 as the pre-deletion state, the second space indication information 1901 uses a reticulated grid style (i.e., the fifth style) to display 6 grids indicated by the third backpack space, and uses a blank grid style (i.e., the sixth style) to display 2 grids indicated by the occupied space of the second virtual item 1903 corresponding to the target pre-deletion control 1902.

[0210] Through the above method, during the process of the player marking the second virtual item as the pre-deletion state, through the dynamic change of the display style of the second space indication information, it can be ensured that every time a second virtual item is marked as the pre-deletion state, the second space indication information will be updated in real time, enabling the player to clearly understand the change of the space that needs to be vacated currently. This method provides instant feedback, enhances the transparency of the operation, and helps the player better master the backpack space status.

[0211] In some embodiments, the terminal can determine that it has received the deletion confirmation operation in the following ways: in response to the trigger operation on the first virtual item, receive the deletion confirmation operation; or, in response to the trigger operation on the deletion confirmation control, receive the deletion confirmation operation; or, in response to the confirmation operation on the deletion indication information, receive the deletion confirmation operation, where the deletion indication information is used to indicate that the pre-vacated backpack space is sufficient to accommodate the first virtual item.

[0212] In actual implementation, a player can perform a deletion confirmation operation in any of the following three ways: First, after marking the pre-deletion state of the second virtual item, the player can perform a triggering operation on the first virtual item (such as clicking with a mouse or touching with a finger) to indicate that the deletion confirmation operation is made. The terminal determines that the deletion confirmation operation is received in response to the triggering operation on the first virtual item. Second, during the process of the player marking the pre-deletion state of the second virtual item, the terminal can display a "one-key deletion" control (i.e., a deletion confirmation control) at an associated position in the replacement list (such as any position around the replacement list). The player can perform a triggering operation on the "one-key deletion" control (such as clicking with a mouse or touching with a finger) to indicate that the deletion confirmation operation is made. The terminal determines that the deletion confirmation operation is received in response to the triggering operation on the deletion confirmation control. Third, when the player marks the pre-deletion state of the second virtual item until the third backpack space becomes zero, the terminal can pop up a window for displaying deletion indication information in the game interface. The deletion prompt information is used to indicate that the pre-vacated backpack space is sufficient to accommodate the first virtual item. The player can perform a triggering operation on the "confirm" control in the window to indicate that the deletion confirmation operation is made. The terminal determines that the confirmation operation for the deletion indication information is received in response to the triggering operation on the "confirm" control in the window, and takes the confirmation operation for the deletion indication information as the deletion confirmation operation.

[0213] Through the above methods, the terminal can provide multiple ways for the player to perform the deletion confirmation operation. Different deletion confirmation operations are adapted to the operation habits and preferences of different players, improving the inclusiveness and usability of the game. Moreover, the player can choose the most convenient operation path according to their own needs without following a fixed process, reducing the cognitive burden on the player.

[0214] In some embodiments, if the number of target virtual items is multiple, the terminal can also discard the target virtual items in the following way: In response to the replacement operation of the target virtual item among at least one second virtual item, when the number of target virtual items is multiple and meets the second replacement condition, each target virtual item is discarded from the backpack.

[0215] In actual implementation, in the solution where, as in the above embodiment, after the player marks multiple second virtual items as the pre-deletion state through the pre-deletion control and the terminal uniformly discards them, the terminal can take the received deletion confirmation operation as the replacement operation for the target virtual item, and then perform a conditional check on multiple target virtual items based on the second replacement condition. Only when it is determined that multiple target virtual items meet the second replacement condition, will the target virtual items be directly discarded from the backpack.

[0216] Among them, the second replacement condition includes at least one of the following: the sum of the values of the target virtual items is less than the value of the first virtual item; the sum of the values of the target virtual items is not less than the value of the first virtual item and there is a target virtual item among the target virtual items whose type is different from the type of the first virtual item. It can be understood that the sum of the occupied spaces of the multiple target virtual items and the sum of the remaining spaces of the backpack must be greater than the first backpack space.

[0217] As an example, if the terminal determines that the sum of the values of the multiple target virtual items is less than the value of the first virtual item, it can directly determine that the multiple target virtual items meet the second replacement condition. If the terminal determines that the sum of the values of the multiple target virtual items is not less than the value of the first virtual item, it is necessary to determine whether the types of all the target virtual items are the same as the type of the first virtual item. If they are all of the same type, then performing the replacement operation of the first virtual item this time is of little significance to the player; while if there is a target virtual item among the multiple target virtual items whose type is inconsistent with the type of the first virtual item, it usually means that these target virtual items are the second virtual items of various types that are not needed by the player in the backpack. Therefore, even if the sum of the values of the multiple target virtual items is not less than the value of the first virtual item, they can be directly discarded, that is, it is directly determined to meet the second replacement condition.

[0218] In the above manner, when the terminal uniformly discards multiple target virtual items, the terminal actively detects the multiple target virtual items based on the second replacement condition, and ensures that the target virtual items are directly discarded only when the second replacement condition is met. This way of the terminal uniformly performing condition detection allows the player not to worry about operation errors caused by omission or misjudgment, reduces the risk of misoperation, and this method improves the fault tolerance of the game, enabling the player to manage the backpack space more reassuringly.

[0219] In some embodiments, if the number of target virtual items is multiple and does not meet the second replacement condition, the terminal can also discard the target virtual items in the following manner: in response to the replacement operation for the target virtual items among at least one second virtual item, when the target virtual items are multiple, display a replacement prompt message, where the replacement prompt message indicates that the sum of the values of the target virtual items is greater than the value of the first virtual item, and the types of the target virtual items are the same as the type of the first virtual item; in response to the determination operation for the replacement prompt message, discard each target virtual item from the backpack.

[0220] In actual implementation, if the terminal detects that multiple target virtual items do not meet the second replacement condition, that is, the sum of the values of the multiple target virtual items is not less than the value of the first virtual item, and the type of each target virtual item is the same as that of the first virtual item, the replacement operation in this case usually has little meaning for the player. Therefore, a replacement prompt message can be displayed to prompt the player, and the player can decide whether to continue the replacement operation by himself / herself.

[0221] As an example, Figure 11 is a schematic diagram of the replacement prompt message provided by the embodiment of the present application. Refer to Figure 11 , in response to the replacement operation for the target virtual item in at least one second virtual item, when there are multiple target virtual items, display Figure 11 the pop-up window 1904 shown in the figure. The replacement prompt message (such as: "The total value of the items to be discarded is higher than the value of the picked-up items, and the types are the same. Do you want to continue?") is displayed in the pop-up window. When the terminal receives the trigger operation of the player for the confirmation control in the pop-up window 1904, it is determined that the confirmation operation for the replacement prompt message is received. In response to the confirmation operation, directly discard each target virtual item from the backpack and pick up the first virtual item into the backpack.

[0222] In the above manner, when the player wants to discard multiple target virtual items to replace the first virtual item, if the replacement operation has little meaning for the player, the player can be informed by displaying the replacement prompt message, and the decision-making power is given to the player. The player can decide whether to continue the replacement by himself / herself. This method can inform the player of the potential risks of replacement, enable the player to weigh the pros and cons according to the prompt message, reduce the possibility of the player regretting due to blind operation, and also enhance the player's sense of control and participation, thereby improving the game experience.

[0223] Through the above embodiments, in response to a pick-up operation performed by a virtual object on a first virtual item, if the remaining space in the backpack of the virtual object is not sufficient to accommodate the first virtual item, at least one second virtual item to be replaced in the backpack, first space indication information indicating the occupied space of the second virtual item, and second space indication information for indicating the first backpack space required to be vacated for picking up the first virtual item may be displayed. In this way, the player (i.e., the user) can directly decide the target virtual item to be discarded based on the displayed second virtual item, first space indication information, and second space indication information. In response to a replacement operation on the target virtual item among at least one second virtual item, the target virtual item is directly discarded from the backpack, and the first virtual item is picked up into the backpack. In this way, the player does not need to perform a series of cumbersome operations such as opening the backpack interface, selecting unwanted virtual items for discarding to vacate the backpack space, closing the backpack interface, and returning to the virtual scene to pick up virtual items. The player only needs to make a selection for the target virtual item to clean up the backpack and pick up the first virtual item. This method can improve the operation efficiency of the player picking up virtual items when the backpack space is insufficient.

[0224] Next, taking the terminal 401 in Figure 1 alone executing the virtual equipment processing method provided in the embodiments of the present application as an example, a specific embodiment in a game application scenario is given.

[0225] Figure 12 is a schematic diagram of virtual item picking provided in the embodiments of the present application. Refer to Figure 12 , when the player controls the virtual object to perform a pick-up operation on the first virtual item in the virtual scene, if the backpack space is insufficient, a replacement list as shown in Figure 12 may be displayed. In the replacement list, a second virtual item of the same type as the first virtual item is associated with a replacement control 210, which is used to guide the player to perform replacement of virtual items of the same type. From a functional logic perspective, this method belongs to the quick replacement of virtual items of the same type or the same function. In this replacement method, the slots in the backpack are usually in a one-to-one correspondence relationship, and only the pick-up replacement processing of a single type of virtual item is performed, which cannot be applied to the pick-up operations of a wider type of virtual items.

[0226] Therefore, when the backpack space is insufficient, the virtual item picking method described in the embodiments of the present application can be used to display the replacement list.

[0227] In some embodiments, when there are multiple virtual items that can be picked up by the virtual object, a pick-up list 110 as shown in Figure 5 may be used to display the multiple virtual items to be picked up. If the backpack space of the virtual object is sufficient, the first virtual item in the pick-up list can be directly clicked to pick up the first virtual item into the backpack.

[0228] In some embodiments, when the backpack space is insufficient (i.e., the backpack space cannot accommodate the occupied space of the first virtual item), the player can click on the first virtual item in the pickup list, and a replacement list will pop up. The replacement list displays at least one second virtual item selected from the backpack that is to be replaced.

[0229] In one case, if the value of each second virtual item to be replaced is lower than the value of the first virtual item and the occupied space of each second virtual item is greater than the occupied space of the first virtual item, then as shown in Figure 7A replacement list 140, multiple second virtual items to be replaced are displayed. Refer to Figure 7A . In response to a trigger operation on the first virtual item, a pointing arrow pointing from the first virtual item to the replacement list 140 is displayed. In the replacement list 140, the second virtual items to be replaced are displayed in ascending order of value. Among them, the screening rule for the second virtual items to be replaced may include: the occupied space is greater than or equal to the occupied space of the first virtual item to be picked up, and the value is less than the value of the first virtual item. The screening rule may also refer to the first replacement condition in the above embodiments, which will not be elaborated here. Refer to Figure 8 . Each second virtual item in the replacement list may also be associated with a replacement control. By clicking on the replacement control on the right side of the target virtual item in the replacement list, the player can discard the target virtual item from the backpack and pick up the first virtual item into the backpack to complete the replacement operation.

[0230] Figure 13 FIG. 14 is a second flowchart of the method for picking up virtual items provided by an embodiment of the present application. Refer to Figure 13 . The method for picking up virtual items may include:

[0231] S201, determine a pickup operation for the first virtual item.

[0232] The player controls the virtual object to perform a pickup operation on the first virtual item in the pickup list. For example, by clicking on the first virtual item, the terminal determines that it has received a pickup operation for the first virtual item.

[0233] S202, determine whether the backpack space is sufficient.

[0234] If the remaining space in the virtual object's backpack is sufficient, then jump to S205.

[0235] S203, display the replacement list.

[0236] If the remaining space in the virtual object's backpack is not enough to accommodate the first virtual item, then select the second virtual items to be replaced from the backpack and display the second virtual items to be replaced in the replacement list.

[0237] S204, discard the target virtual item.

[0238] In response to a trigger operation by the player on the target virtual item among multiple second virtual items in the replacement list, discard the target virtual item from the backpack.

[0239] S205, pick up the first virtual item into the backpack.

[0240] After the terminal discards the target virtual item from the backpack, it can directly pick up the first virtual item into the backpack.

[0241] In another case, if the occupied space of each second virtual item is smaller than that of the first virtual item, the player usually needs to discard multiple second virtual items from the backpack to pick up the first virtual item. In this case, the multiple second virtual items can be displayed through the replacement list 160 as shown in Figure 7C Here, when the replacement list 160 in Figure 7C displays multiple second virtual items, the multiple second virtual items can be sorted and displayed in the order that the smaller the ratio of the value to the occupied space of the second virtual item, the higher the sorting. Also, the second space indication information 1602 is displayed in the replacement list 160, and the second space indication information is used to indicate the first backpack space that needs to be vacated to pick up the first virtual item.

[0242] See Figure 9B Or Figure 10 , each second virtual item in the replacement list can be associated with a pre-deletion control. The player can "pre-discard" the corresponding second virtual item in the backpack by clicking the pre-deletion button associated with the second virtual item below, that is, the second virtual item corresponding to the triggered pre-deletion control will be marked as the to-be-deleted state (marked as "X" in the figure). At the same time, the display style of the second space indication information at the top of the replacement list will change synchronously with the "pre-discard" of the second virtual item, and the pre-vacated backpack space and the backpack space that still needs to be vacated are dynamically displayed through different display styles. For example, the backpack space that still needs to be vacated is displayed in red grid, and the pre-vacated backpack space is displayed in green grid.

[0243] Here, the meaning of "pre-discard" is that when the player clicks the pre-deletion control, the corresponding second virtual item is not actually discarded from the backpack, but only used to calculate the pre-vacated space. When the player's deletion confirmation operation is received subsequently (for example, the player clicks the first virtual item), the second virtual item that has been "pre-discarded" will be actually discarded from the backpack, and the first virtual item will be picked up into the backpack.

[0244] Continue to see Figure 9B, the player can continue to click on the pre-deletion controls of other second virtual items in the replacement list until all the grids of the second space indication information at the top of the replacement list turn green, that is, the second space indication information indicates that the backpack space to be vacated is zero. At this time, the pre-vacated space in the backpack has met or exceeded the occupied space of the first virtual item. In this state, when the terminal receives a trigger operation from the player for the first virtual item, it can directly discard the second virtual item in the pre-deleted state from the backpack and pick up the first virtual item into the backpack.

[0245] Figure 14 is the third process schematic diagram of the virtual item picking method provided by the embodiments of the present application. Refer to Figure 14 , the virtual item picking method may further include:

[0246] S301, determine a picking operation for the first virtual item.

[0247] The player controls the virtual object to perform a picking operation on the first virtual item in the picking list, such as clicking on the first virtual item, and the terminal determines that it has received a picking operation for the first virtual item.

[0248] S302, determine whether the backpack space is sufficient.

[0249] If the remaining space in the virtual object's backpack is sufficient, jump to S306.

[0250] S303, display the replacement list.

[0251] If the remaining space in the virtual object's backpack is not enough to accommodate the first virtual item, then screen out the virtual items with low cost performance in the backpack as the second virtual items to be replaced, and display the second virtual items to be replaced in the replacement list. Low cost performance can be reflected in the low ratio of the value of the virtual item to the occupied space.

[0252] S304, pre-discard at least one second virtual item.

[0253] The player can mark the second virtual item to be discarded as in the pre-deleted state by triggering the pre-deletion control of the second virtual item to be discarded, that is, pre-discard the second virtual item.

[0254] S305, determine whether the pre-vacated space is sufficient to accommodate the first virtual item.

[0255] During the process of the player continuously pre-discarding the second virtual item in S304, the backpack space pre-vacated by pre-discarding the second virtual item is detected in real time.

[0256] If the backpack space reserved in advance is still not enough to accommodate the first virtual item, continue to execute S304 and continuously pre-discard the second virtual items in the replacement list.

[0257] S306, pick up the first virtual item into the backpack.

[0258] If the backpack space reserved in advance is enough to accommodate the first virtual item, when the terminal receives the deletion confirmation operation, directly discard the second virtual item in the pre-deleted state from the backpack and pick up the first virtual item into the backpack.

[0259] In the above way, when the remaining space in the backpack is not enough to pick up the new high-value first virtual item, the low-value second virtual items in the backpack can be quickly discarded, the backpack space can be vacated and the first virtual item can be put in. In this way, the player does not need to abort the current picking operation, open the backpack and discard the low-value items, and then return to the picking scene for secondary picking. Only by selecting the second virtual item to be discarded in the replacement list can the replacement operation be completed, which improves the operation efficiency of the player to pick up virtual items.

[0260] Next, continue to describe the exemplary structure of the virtual item picking device 455 provided by the embodiment of the present application as a software module. In some embodiments, as Figure 2 shown, the software module in the virtual item picking device 455 stored in the memory 450 may include:

[0261] A display module 4551, configured to, in response to a picking operation of a virtual object on a first virtual item, when the remaining space in the backpack of the virtual object is not enough to accommodate the first virtual item, display at least one second virtual item to be replaced in the backpack, first space indication information, and second space indication information.

[0262] Among them, the first space indication information indicates the occupied space of the second virtual item, and the second space indication information indicates the first backpack space that needs to be vacated to pick up the first virtual item.

[0263] A replacement module 4552, configured to, in response to a replacement operation on a target virtual item among at least one second virtual item, discard the target virtual item from the backpack and pick up the first virtual item into the backpack.

[0264] Among them, the sum of the occupied space and the remaining space of the target virtual item is not less than the occupied space of the first virtual item.

[0265] In some embodiments, the pickup device 455 of the virtual item further includes a sorting module, configured to, before responding to the pickup operation of the virtual object for the first virtual item, in response to there being multiple virtual items to be picked up, determine a first influencing parameter that affects the pickup priority of each virtual item, where the first influencing parameter includes at least one of the following: the value of the virtual item, the occupied space of the virtual item, the ratio of the value of the virtual item to the occupied space of the virtual item, and the matching degree between the virtual item and the virtual object; predict the pickup priority of each virtual item based on the first influencing parameter, to obtain the pickup priority of each virtual item; and sort the multiple virtual items in such a way that the higher the pickup priority, the more forward the corresponding virtual item is sorted.

[0266] In some embodiments, the display module 4551 is further configured to, in response to there being multiple virtual items in the backpack, use the virtual item that meets the first replacement condition as the second virtual item to be replaced; where the first replacement condition includes at least one of the following: the value is lower than the value threshold, the occupied space exceeds the space threshold, the ratio of the value to the occupied space is lower than the ratio threshold, and the matching degree with the virtual object is lower than the degree threshold.

[0267] In some embodiments, the display module 4551 is further configured to, in response to there being multiple second virtual items, determine a second influencing parameter that affects the replacement priority of each second virtual item, where the second influencing parameter includes at least one of the following: the value of the second virtual item, the occupied space of the second virtual item, the ratio of the value of the second virtual item to the occupied space of the second virtual item, and the matching degree between the second virtual item and the virtual object; query the corresponding relationship between different second influencing parameters and the replacement priority based on the second influencing parameter, and use the queried replacement priority as the replacement priority of the second virtual item; and sort and display the multiple second virtual items in such a way that the higher the replacement priority, the more forward the corresponding second virtual item is sorted.

[0268] In some embodiments, the display module 4551 is further configured to, in response to the first space indication information indicating that the occupied space of each second virtual item is not less than the first backpack space required to pick up the first virtual item, display first replacement indication information, where the first replacement indication information is used to indicate that any one of the second virtual items can be replaced with the first virtual item; or, in response to the first space indication information indicating that the occupied space of each second virtual item is less than the first backpack space required to pick up the first virtual item, display second replacement indication information, where the second replacement indication information is used to indicate that at least two second virtual items need to be replaced with the first virtual item.

[0269] In some embodiments, the replacement module 4552 is further configured to, in response to a trigger operation on a target virtual item among at least one second virtual item, when the occupied space of the target virtual item is not less than the first backpack space, discard the target virtual item from the backpack and pick up the first virtual item into the backpack.

[0270] In some embodiments, the display module 4551 is further configured to update the display style of the first backpack space indicated by the second space indication information from a first style to a second style; wherein, the first style indicates that the first backpack space is the backpack space to be vacated, and the second style indicates that the first backpack space is the vacated backpack space.

[0271] In some embodiments, the replacement module 4552 is further configured to, in response to a replacement operation on a first target virtual item among at least one second virtual item, discard the first target virtual item from the backpack and update the first backpack space that needs to be vacated indicated by the second space indication information to a second backpack space; wherein, the second backpack space is the difference between the first backpack space and the occupied space of the first target virtual item.

[0272] In some embodiments, the replacement module 4552 is further configured to, when the second backpack space is zero, pick up the first virtual item into the backpack; when the second backpack space is not zero, continuously discard the second target virtual item from the backpack until the backpack space that needs to be vacated indicated by the second space indication information becomes zero and then stop discarding, and pick up the first virtual item into the backpack.

[0273] In some embodiments, the display module 4551 is further configured to, when the second backpack space is not zero, display the second backpack space that still needs to be vacated indicated by the second space indication information in a third style and display the vacated backpack space indicated by the second space indication information in a fourth style, and the vacated backpack space is the occupied space of the first target virtual item.

[0274] In some embodiments, the replacement module 4552 is further configured to, when each second virtual item is associated with a pre-deletion control, in response to a trigger operation on a target pre-deletion control, mark the second virtual item corresponding to the target pre-deletion control as a pre-deletion state and update the first backpack space indicated by the second space indication information to a third backpack space, and the third backpack space is the difference between the first backpack space and the occupied space of the second virtual item corresponding to the target pre-deletion control; when the third backpack space is zero, in response to a deletion confirmation operation, use the second virtual item corresponding to the target pre-deletion control as the target virtual item, discard the target virtual item from the backpack and pick up the first virtual item into the backpack.

[0275] In some embodiments, the replacement module 4552 is further configured to, when the third backpack space is non-zero, continuously mark other second virtual items as pre-deleted until the second space indication information indicates that the required backpack space to be vacated is zero, and then stop marking; in response to a deletion determination operation, use all the second virtual items in the pre-deleted state as target virtual items, discard the target virtual items from the backpack, and pick up the first virtual item into the backpack.

[0276] In some embodiments, the display module 4551 is further configured to, when the third backpack space is non-zero, display the third backpack space that still needs to be vacated indicated by the second space indication information in a fifth style, and display the pre-vacated backpack space indicated by the second space indication information in a sixth style, where the pre-vacated backpack space is the occupied space of the second virtual item corresponding to the target pre-deletion control.

[0277] In some embodiments, the replacement module 4552 is further configured to receive a deletion determination operation in response to a trigger operation on the first virtual item; or, receive a deletion determination operation in response to a trigger operation on the deletion confirmation control; or, receive a deletion determination operation in response to a determination operation on the deletion indication information, where the deletion indication information is used to indicate that the pre-vacated backpack space is sufficient to accommodate the first virtual item.

[0278] In some embodiments, the replacement module 4552 is further configured to, in response to a replacement operation on a target virtual item among at least one second virtual item, when there are multiple target virtual items, display a replacement prompt information indicating that the sum of the values of each target virtual item is greater than the value of the first virtual item, and the type of each target virtual item is the same as the type of the first virtual item; in response to a determination operation on the replacement prompt information, discard each target virtual item from the backpack.

[0279] In some embodiments, the replacement module 4552 is further configured to, in response to a replacement operation on a target virtual item among at least one second virtual item, when there are multiple target virtual items and the second replacement condition is satisfied, discard each target virtual item from the backpack; the second replacement condition includes at least one of the following: the sum of the values of each target virtual item is less than the value of the first virtual item; the sum of the values of each target virtual item is not less than the value of the first virtual item and there is a target virtual item among each target virtual item whose type is different from the type of the first virtual item.

[0280] In some embodiments, the display module 4551 is further configured to display the first spatial indication information and the second spatial indication information in a grid style, where the number of grids indicated by the first spatial indication information is proportional to the size of the occupied space indicated by the first spatial indication information, and the number of grids indicated by the second spatial indication information is proportional to the size of the first backpack space; display the first spatial indication information and the second spatial indication information in a digital style; display the first spatial indication information and the second spatial indication information in a text style; display the first spatial indication information and the second spatial indication information in a measuring cup style; display the first spatial indication information and the second spatial indication information in a progress bar style, where the progress bar of the first spatial indication information is used to represent the ratio of the occupied space of the second virtual item to the total space of the backpack, and the progress bar of the second spatial indication information is used to represent the ratio of the first backpack space to the total space of the backpack.

[0281] An embodiment of the present application provides a computer program product, which includes a computer program or computer-executable instructions, and the computer program or computer-executable instructions are stored in a computer-readable storage medium. The processor of the electronic device reads the computer-executable instructions from the computer-readable storage medium, and the processor executes the computer-executable instructions, so that the electronic device executes the method for picking up virtual items in the above embodiments of the present application.

[0282] An embodiment of the present application provides a computer-readable storage medium, which stores computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will be caused to execute the method for picking up virtual items provided by the embodiments of the present application. For example, as Figure 3 shown in the method for picking up virtual items.

[0283] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disc, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0284] In some embodiments, the computer-executable instructions may be in the form of a program, software, software module, script, or code, and may be written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including being deployed as an independent program or being deployed as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0285] As an example, the computer-executable instructions may or may not correspond to files in a file system, and may be stored as part of a file that holds other programs or data. For example, they may be stored in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program under discussion, or in multiple cooperating files (e.g., files that store one or more modules, subroutines, or portions of code).

[0286] As an example, the computer-executable instructions may be deployed to execute on one electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected by a communication network.

[0287] In summary, through the embodiments of the present application, in response to a pick-up operation performed by a virtual object on a first virtual item, if the remaining space in the backpack of the virtual object is not sufficient to accommodate the first virtual item, at least one second virtual item to be replaced in the backpack, first space indication information indicating the occupied space of the second virtual item, and second space indication information for indicating the first backpack space required to be vacated for picking up the first virtual item may be displayed. In this way, the player (i.e., the user) can directly decide on the target virtual item to be discarded based on the displayed second virtual item, the first space indication information, and the second space indication information. In response to a replacement operation on the target virtual item among the at least one second virtual item, the target virtual item is directly discarded from the backpack, and the first virtual item is picked up into the backpack. In this way, the player no longer needs to perform a series of cumbersome operations such as opening the backpack interface, selecting unwanted virtual items to discard to vacate backpack space, closing the backpack interface, and returning to the virtual scene to pick up virtual items. The player only needs to make a selection on the target virtual item to achieve backpack cleaning and pick up the first virtual item. This method can improve the operation efficiency of the player in picking up virtual items when the backpack space is insufficient.

[0288] The above description is only for the embodiments of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A method for picking up a virtual item, characterized in that: The method comprises: In response to a virtual object picking up a first virtual item, when the remaining space in the backpack of the virtual object is insufficient to accommodate the first virtual item, displaying at least one second virtual item to be replaced in the backpack, first space indication information, and second space indication information; The first space indication information indicates the space occupied by the second virtual item, and the second space indication information indicates the first backpack space required to be vacated to pick up the first virtual item; In response to a replacement operation on a target virtual item in the at least one second virtual item, discarding the target virtual item from the backpack and picking up the first virtual item into the backpack; The sum of the space occupied by the target virtual item and the remaining space is not less than the space occupied by the first virtual item.

2. The method according to claim 1, characterized in that Before the picking-up operation of the first virtual item in response to the virtual object, the method further includes: In response to there being a plurality of virtual items to be picked up, determining a first influencing parameter that affects the picking priority of each of the virtual items, the first influencing parameter comprising at least one of the following: the value of the virtual item, the space occupied by the virtual item, the ratio of the value of the virtual item to the space occupied by the virtual item, and the degree of matching between the virtual item and the virtual object; Predicting the picking priority of each of the virtual items based on the first influencing parameter to obtain the picking priority of each of the virtual items; The plurality of virtual items are sorted in such a manner that the higher the picking priority is, the higher the corresponding virtual item is sorted.

3. The method according to claim 1, characterized in that: Before displaying the at least one second virtual item to be replaced in the backpack, the method further includes: In response to there being a plurality of virtual items in the backpack, taking a virtual item that meets a first replacement condition as a second virtual item to be replaced; Among them, the first replacement condition includes at least one of the following: the value is lower than the value threshold, the occupied space exceeds the space threshold, the ratio of value to occupied space is lower than the ratio threshold, and the degree of matching with the virtual object is lower than the degree threshold.

4. The method according to claim 1, characterized in that: The displaying of at least one second virtual item to be replaced in the backpack includes: In response to the number of the second virtual items being plural, determining a second influencing parameter that influences the replacement priority of each of the second virtual items, the second influencing parameter comprising at least one of the following: the value of the second virtual item, the space occupied by the second virtual item, the ratio of the value of the second virtual item to the space occupied by the second virtual item, and the degree of matching between the second virtual item and the virtual object; Based on the second impact parameter, querying the correspondence between different second impact parameters and replacement priorities, and using the queried replacement priority as the replacement priority of the second virtual item; The plurality of second virtual items are sorted and displayed in a manner that the higher the replacement priority, the higher the ranking of the corresponding second virtual item.

5. The method according to claim 1, characterized in that Before discarding the target virtual item from the backpack, the method further includes: In response to the first space indication information indicating that the space occupied by each of the second virtual items is not less than the first backpack space required to pick up the first virtual item, displaying first replacement indication information, wherein the first replacement indication information is used to indicate that any second virtual item can be replaced with the first virtual item; Alternatively, in response to the first space indication information indicating that the space occupied by each of the second virtual items is smaller than the first backpack space required to pick up the first virtual item, second replacement indication information is displayed, and the second replacement indication information is used to indicate that at least two second virtual items need to be replaced with the first virtual item.

6. The method according to claim 1, characterized in that In response to a replacement operation on a target virtual item in the at least one second virtual item, discarding the target virtual item from the backpack and picking up the first virtual item into the backpack comprises: In response to a trigger operation on a target virtual item in the at least one second virtual item, if the space occupied by the target virtual item is not less than the space in the first backpack, the target virtual item is discarded from the backpack and the first virtual item is picked up into the backpack.

7. The method according to claim 6, characterized in that After discarding the target virtual item from the backpack, the method further includes: updating the display style of the first backpack space indicated by the second space indication information from a first style to a second style; The first style indicates that the first backpack space is a backpack space to be vacated, and the second style indicates that the first backpack space is a backpack space that has been vacated.

8. The method according to claim 1, characterized in that The step of discarding the target virtual item from the backpack in response to a replacement operation on the target virtual item in the at least one second virtual item comprises: In response to a replacement operation on a first target virtual item in the at least one second virtual item, discarding the first target virtual item from the backpack, and updating the first backpack space to be vacated indicated by the second space indication information to a second backpack space; The second backpack space is the difference between the first backpack space and the space occupied by the first target virtual item.

9. The method according to claim 8, characterized in that Picking up the first virtual item into the backpack includes at least one of the following: When the space of the second backpack is zero, picking up the first virtual item into the backpack; When the second backpack space is not zero, the second target virtual item is continuously discarded from the backpack until the second space indication information indicates that the backpack space to be vacated is zero, then the discarding is stopped and the first virtual item is picked up and put into the backpack.

10. The method according to claim 8, characterized in that After updating the first backpack space to be vacated indicated by the second space indication information to the second backpack space, the method further includes: When the second backpack space is not zero, the second backpack space that still needs to be vacated indicated by the second space indication information is displayed in a third style, and the backpack space that has been vacated indicated by the second space indication information is displayed in a fourth style, where the vacated backpack space is the space occupied by the first target virtual item.

11. The method according to claim 1, characterized in that: In response to the replacement operation on the target virtual item in the at least one second virtual item, discarding the target virtual item from the backpack and picking up the first virtual item into the backpack include: In the case where each of the second virtual items is associated with a pre-deletion control, in response to a trigger operation on a target pre-deletion control, marking the second virtual item corresponding to the target pre-deletion control as a pre-deletion state, and updating the first backpack space indicated by the second space indication information to a third backpack space, where the third backpack space is a difference between the first backpack space and the occupied space of the second virtual item corresponding to the target pre-deletion control; When the third backpack space is zero, in response to a deletion confirmation operation, the second virtual item corresponding to the target pre-deletion control is used as the target virtual item, the target virtual item is discarded from the backpack, and the first virtual item is picked up into the backpack.

12. The method according to claim 11, characterized in that The step of discarding the target virtual item from the backpack and picking up the first virtual item into the backpack includes: When the third backpack space is not zero, continuously marking other second virtual items as pre-deletion states until the second space indication information indicates that the backpack space to be vacated is zero and then stops marking; In response to a deletion determination operation, all second virtual items in a pre-deletion state are used as the target virtual items, the target virtual items are discarded from the backpack, and the first virtual items are picked up into the backpack.

13. The method according to claim 11, characterized in that After the first backpack space indicated by the second space indication information is updated to a third backpack space, the method further includes: When the third backpack space is not zero, the third backpack space that still needs to be vacated as indicated by the second space indication information is displayed in the fifth style, and the pre-vacated backpack space indicated by the second space indication information is displayed in the sixth style, where the pre-vacated backpack space is the space occupied by the second virtual item corresponding to the target pre-deletion control.

14. The method according to any one of claims 11 or 12, characterized in that: The method further comprises: In response to a trigger operation on the first virtual item, the deletion confirmation operation is received; or, In response to a trigger operation on a delete confirmation control, the delete confirmation operation is received; or, In response to a determination operation on deletion indication information, the deletion determination operation is received, the deletion indication information being used to indicate that the pre-vacated backpack space is sufficient to accommodate the first virtual item.

15. The method according to claim 1, characterized in that The step of discarding the target virtual item from the backpack in response to a replacement operation on the target virtual item in the at least one second virtual item comprises: In response to a replacement operation for a target virtual item in the at least one second virtual item, if there are multiple target virtual items, displaying replacement prompt information, the replacement prompt information indicating that a sum of the values ​​of the target virtual items is greater than a value of the first virtual item, and that a type of the target virtual items is the same as a type of the first virtual item; In response to a determination operation on the replacement prompt information, each of the target virtual items is discarded from the backpack.

16. The method according to claim 1, characterized in that The step of discarding the target virtual item from the backpack in response to a replacement operation on the target virtual item in the at least one second virtual item comprises: In response to a replacement operation for a target virtual item in the at least one second virtual item, if there are multiple target virtual items and a second replacement condition is satisfied, discarding each of the target virtual items from the backpack; The second replacement condition includes at least one of the following: the sum of the values ​​of the target virtual items is less than the value of the first virtual item, the sum of the values ​​of the target virtual items is not less than the value of the first virtual item, and there is a target virtual item of a type different from that of the first virtual item among the target virtual items.

17. The method according to claim 1, characterized in that The displaying of the first space indication information and the second space indication information includes at least one of the following: The first space indication information and the second space indication information are displayed in a grid style, wherein the number of grids indicated by the first space indication information is proportional to the size of the occupied space indicated by the first space indication information, and the number of grids indicated by the second space indication information is proportional to the size of the first backpack space; Displaying the first space indication information and the second space indication information in digital format; Displaying the first space indication information and the second space indication information in a text style; The first space indication information and the second space indication information are displayed in a measuring cup style; The first space indication information and the second space indication information are displayed in a progress bar style. The progress bar of the first space indication information is used to represent the ratio of the space occupied by the second virtual item to the total space of the backpack, and the progress bar of the second space indication information is used to represent the ratio of the first backpack space to the total space of the backpack.

18. A device for picking up virtual items, characterized in that: The device comprises: A display module, configured to, in response to a virtual object picking up a first virtual item, display at least one second virtual item to be replaced in the backpack, first space indication information, and second space indication information when the remaining space in the backpack of the virtual object is insufficient to accommodate the first virtual item; The first space indication information indicates the space occupied by the second virtual item, and the second space indication information indicates the first backpack space required to be vacated to pick up the first virtual item; a replacement module, configured to, in response to a replacement operation on a target virtual item in the at least one second virtual item, discard the target virtual item from the backpack and pick up the first virtual item into the backpack; The sum of the space occupied by the target virtual item and the remaining space is not less than the space occupied by the first virtual item.

19. An electronic device, characterized in that: include: A memory for storing computer executable instructions or computer programs; A processor, configured to implement the method for picking up virtual items as described in any one of claims 1 to 17 when executing the computer executable instructions or computer programs stored in the memory.

20. A computer-readable storage medium, characterized in that: Computer executable instructions or computer programs are stored, and when the computer executable instructions or computer programs are executed by a processor, the method for picking up virtual items according to any one of claims 1 to 17 is implemented.

21. A computer program product comprising a computer program or computer executable instructions, characterized in that: When the computer program or computer executable instructions are executed by a processor, the method for picking up virtual items described in any one of claims 1 to 17 is implemented.