Virtual item processing method, device, electronic device and storage medium

By setting the entrance to the virtual item list in a virtual scene and displaying the virtual item list in response to user operations, the problem of many steps for virtual item discarding operations in the prior art is solved, and more efficient human-computer interaction and improved user experience are achieved.

CN114404969BActive Publication Date: 2025-03-21TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210073879.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-21
Publication Date
2025-03-21
Estimated Expiration
2042-01-21

AI Technical Summary

Technical Problem

The prior art users need to perform multiple steps when virtual items are discarded, resulting in low human-computer interaction efficiency and poor user experience.

Method used

By setting the entrance to the virtual item list in the virtual scene, displaying the virtual item list in the virtual scene in response to user operations, and allowing the user to directly discard the virtual item through triggering operations.

Benefits of technology

It simplifies the operation process of users controlling virtual objects to discard virtual items, and improves the efficiency of human-computer interaction and the user's gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114404969B_ABST
    Figure CN114404969B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device, computer-readable storage medium and computer program product for processing virtual items; the method includes: displaying a virtual scene, wherein the virtual scene includes a first virtual object and an entry to a first virtual item list; in response to a trigger operation for the entry to the first virtual item list, displaying the first virtual item list in the virtual scene, wherein the first virtual item list includes at least one type of virtual items held by the first virtual object; in response to a first trigger operation for any type of virtual item in the first virtual item list, controlling the first virtual object to discard at least one virtual item of any type. Through the present application, the operation process of the user when controlling the virtual object to discard virtual items can be simplified, thereby improving the efficiency of discarding virtual items in the virtual scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer human-computer interaction technology, and in particular to a method, device, electronic device and computer-readable storage medium for processing virtual items. Background Art

[0002] Display technology based on graphics processing hardware has expanded the channels for perceiving the environment and obtaining information, especially the display technology of virtual scenes. It can realize diversified interactions between virtual objects controlled by users or artificial intelligence according to actual application needs, and has various typical application scenarios. For example, in the virtual scenes of games, it can simulate the real battle process between virtual objects.

[0003] With the popularization of information technology, electronic devices can realize richer and more vivid virtual scenes, such as games. More and more users participate in the interaction of virtual scenes through electronic devices. For example, in a game, a user can control a virtual object to exchange materials with a virtual object controlled by another user, or clean up virtual items in a backpack.

[0004] However, in the solutions provided by the related art, when discarding virtual items, the user first needs to click the backpack button to enter the backpack interface, then select the virtual items to be discarded in the backpack interface, and then select the discard quantity before discarding.

[0005] It can be seen that when discarding virtual items, the solution provided by the related technology requires users to perform more steps, resulting in poor efficiency of human-computer interaction and also affecting the user's gaming experience. Summary of the invention

[0006] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for processing virtual items, which can simplify the operation process of a user when controlling a virtual object to discard virtual items, thereby improving the human-computer interaction efficiency in the process of discarding virtual items.

[0007] The technical solution of the embodiment of the present application is implemented as follows:

[0008] The present application provides a method for processing virtual items, including:

[0009] Displaying a virtual scene, wherein the virtual scene includes an entrance to a first virtual object and a first virtual item list;

[0010] In response to an entry trigger operation for the first virtual item list, displaying the first virtual item list in the virtual scene, wherein the first virtual item list includes at least one type of virtual item held by the first virtual object;

[0011] In response to a first trigger operation on any type of virtual item in the first virtual item list, the first virtual object is controlled to discard at least one virtual item of any type.

[0012] The present application provides a virtual item processing device, including:

[0013] A display module, configured to display a virtual scene, wherein the virtual scene includes an entry to a first virtual object and a first virtual item list;

[0014] The display module is further configured to display the first virtual item list in the virtual scene in response to an entry trigger operation for the first virtual item list, wherein the first virtual item list includes at least one type of virtual item held by the first virtual object;

[0015] The control module is configured to control the first virtual object to discard at least one virtual item of any type in response to a first trigger operation on any type of virtual item in the first virtual item list.

[0016] An embodiment of the present application provides an electronic device, including:

[0017] A memory for storing executable instructions;

[0018] The processor is used to implement the virtual item processing method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0019] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for implementing a method for processing virtual items provided in an embodiment of the present application when executed by a processor.

[0020] An embodiment of the present application provides a computer program product, including a computer program or instructions, which are used to implement the virtual item processing method provided by the embodiment of the present application when executed by a processor.

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

[0022] By setting an entrance to a virtual item list in a virtual scene, and displaying the virtual item list in the virtual scene when a trigger operation for the entrance to the virtual item list is received, and then controlling the first virtual object to discard at least one virtual item of any type when a trigger operation for any type of virtual item in the virtual item list is received, the virtual item can be quickly discarded only in the virtual scene, which greatly simplifies the operation process of the user when controlling the virtual object to discard the virtual item, thereby improving the efficiency of human-computer interaction and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1A It is a schematic diagram of an application mode of a method for processing virtual items provided in an embodiment of the present application;

[0024] Figure 1B It is a schematic diagram of an application mode of a method for processing virtual items provided in an embodiment of the present application;

[0025] Figure 2 is a schematic diagram of the structure of a terminal device 400 provided in an embodiment of the present application;

[0026] Figure 3 is a flowchart of a method for processing virtual items provided in an embodiment of the present application;

[0027] FIG. 4A to FIG. 4D It is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application;

[0028] Figure 5A and Figure 5B is a flowchart of a method for processing virtual items provided in an embodiment of the present application;

[0029] Fig. 6A and Figure 6B It is a schematic diagram of an application scenario of a method for processing virtual items provided by related technologies;

[0030] 7A to 7F It is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application;

[0031] Figure 8 is a flowchart of a method for processing virtual items provided in an embodiment of the present application;

[0032] Fig. 9 is a flowchart of a method for processing virtual items provided in an embodiment of the present application;

[0033] Fig.10 It is a flowchart of a method for processing virtual items provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0035] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0036] In the following description, the terms "first\second\..." involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0037] In the following description, the term "plurality" referred to means at least two.

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

[0039] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0040] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.

[0041] 2) A virtual scene is a scene displayed (or provided) when the game program is running on a terminal device. The scene can be a simulation of the real world, a semi-simulation and semi-fictitious environment, or a purely fictitious virtual environment. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, the virtual scene may include the sky, land, ocean, etc. The land may include environmental elements such as deserts and cities, and users can control virtual objects to move in the virtual scene.

[0042] 3) Virtual objects: images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as characters and animals displayed in a virtual scene. The virtual object can be a virtual image in a virtual scene that represents a user. A virtual scene can include multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.

[0043] 4) Scene data: characteristic data representing a virtual scene, such as the area of ​​the construction area in the virtual scene, the current architectural style of the virtual scene, etc.; it may also include the location of the virtual building in the virtual scene, and the area occupied by the virtual building, etc.

[0044] 5) Virtual items: various types of items that can be used by virtual objects in the virtual scene, such as medicines and drinks used to restore the status parameters of virtual objects (such as health points and physical strength), and weapons used to attack other objects in the virtual scene, such as grenades and firearms.

[0045] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for processing virtual items, which can simplify the operation process of users when controlling virtual objects to discard virtual items, thereby improving the efficiency of discarding virtual items in virtual scenes. In order to facilitate easier understanding of the method for processing virtual items provided by the embodiments of the present application, an exemplary implementation scenario of the method for processing virtual items provided by the embodiments of the present application is first described. The virtual scene in the method for processing virtual items provided by the embodiments of the present application can be completely based on the output of the terminal device, or based on the coordinated output of the terminal device and the server.

[0046] In some embodiments, the virtual scene can be an environment for virtual objects (such as game characters) to interact. For example, it can be an environment for game characters to fight in the virtual scene. By controlling the actions of the game characters, both parties can interact in the virtual scene, allowing users to relieve life stress during the game.

[0047] In one implementation scenario, see Figure 1A , Figure 1A It is a schematic diagram of the application mode of the method for processing virtual items provided in an embodiment of the present application, which is applicable to some application modes that completely rely on the graphics processing hardware computing power of the terminal device 400 to complete the relevant data calculation of the virtual scene 100, such as stand-alone / offline mode games, and the output of virtual scenes is completed through various types of terminal devices 400 such as smart phones, tablet computers and virtual reality / augmented reality devices.

[0048] As an example, types of graphics processing hardware include a central processing unit (CPU) and a graphics processing unit (GPU).

[0049] When forming a visual perception of the virtual scene 100, the terminal device 400 calculates the data required for display through the graphics computing hardware, and completes the loading, parsing and rendering of the display data, and outputs video frames that can form a visual perception of the virtual scene through the graphics output hardware, for example, presenting two-dimensional video frames on the display screen of a smartphone, or projecting video frames to achieve a three-dimensional display effect on the lenses of augmented reality / virtual reality glasses; in addition, in order to enrich the perception effect, the terminal device 400 can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.

[0050] As an example, a client 410 (e.g., a stand-alone game application) is running on the terminal device 400. During the operation of the client 410, a virtual scene including role-playing is output. The virtual scene may be an environment for game characters to interact, such as a plain, street, valley, etc. for game characters to fight against each other. Taking the third-person perspective display of the virtual scene 100 as an example, a first virtual object 101 is displayed in the virtual scene 100, wherein the first virtual object 101 may be a game character controlled by a user, that is, the first virtual object 101 is controlled by a real user and will move in the virtual scene 100 in response to the real user's operation on a controller (e.g., a touch screen, a voice-controlled switch, a keyboard, a mouse, a joystick, etc.). For example, when the real user moves the joystick (including the virtual joystick and the real joystick) to the right, the first virtual object 101 will move to the right in the virtual scene 100, and can also remain still, jump, and control the first virtual object 101 to perform shooting operations, etc.

[0051] For example, a first virtual object 101 and an entrance 102 to a first virtual item list are displayed in a virtual scene 100. When the client 410 receives a trigger operation (such as a click operation) from a user on the entrance 102 to the first virtual item list, a first virtual item list 103 is displayed in the virtual scene 100, wherein the first virtual item list 103 includes at least one type of virtual item held by the first virtual object 101, such as a “bandage” 1031 and a “medical kit” 1032, wherein the number of “bandages” held is 10 and the number of “medical kits” held is 1. Subsequently, when the client 410 receives the user's first trigger operation on the "bandage" 1031 displayed in the first virtual item list 103 (for example, a click operation or a drag operation on the "bandage" 1031), the first virtual object 101 is controlled to discard at least one (for example, 2) "bandages". At this time, the number of "bandages" 1031 displayed in the first virtual item list 103 will also be updated from 10 to 8. In this way, the virtual items can be discarded only in the virtual scene, which greatly simplifies the user's operation process when controlling the virtual object to discard the virtual items, thereby improving the efficiency of discarding virtual items in the virtual scene and the user's gaming experience.

[0052] In another implementation scenario, see Figure 1B , Figure 1B It is a schematic diagram of an application mode of the method for processing virtual items provided in an embodiment of the present application, which is applied to a terminal device 400 and a server 200, and is suitable for an application mode that relies on the computing power of the server 200 to complete virtual scene calculations and output virtual scenes on the terminal device 400.

[0053] Taking the visual perception of the virtual scene 200 as an example, the server 200 calculates the virtual scene related display data (such as scene data) and sends it to the terminal device 400 through the network 300. The terminal device 400 relies on the graphics computing hardware to complete the loading, parsing and rendering of the display data, and relies on the graphics output hardware to output the virtual scene to form a visual perception. For example, a two-dimensional video frame can be presented on the display screen of a smartphone, or a video frame with a three-dimensional display effect can be projected on the lenses of augmented reality / virtual reality glasses. As for the perception of the form of the virtual scene, it can be understood that the corresponding hardware output of the terminal device 400 can be used, such as using a microphone to form auditory perception, using a vibrator to form tactile perception, and so on.

[0054] As an example, a client 410 (e.g., an online version of a game application) is running on the terminal device 400, which interacts with other users in a game by connecting to a server 200 (e.g., a game server). The terminal device 400 outputs a virtual scene 100 of the client 410. Taking the third-person perspective display of the virtual scene 100 as an example, a first virtual object 101 is displayed in the virtual scene 100, wherein the first virtual object 101 may be a game character controlled by a user, that is, the first virtual object 101 is controlled by a real user, and will move in the virtual scene 100 in response to the real user's operation of a controller (e.g., a touch screen, a voice-controlled switch, a keyboard, a mouse, a joystick, etc.). For example, when the real user moves the joystick to the right, the first virtual object 101 will move to the right in the virtual scene 100, and can also remain still, jump, and control the first virtual object 101 to perform shooting operations, etc.

[0055] For example, a first virtual object 101 and an entrance 102 to a first virtual item list are displayed in a virtual scene 100. When the client 410 receives a trigger operation (such as a click operation) from a user on the entrance 102 to the first virtual item list, a first virtual item list 103 is displayed in the virtual scene 100, wherein the first virtual item list 103 includes at least one type of virtual item held by the first virtual object 101, such as a “bandage” 1031 and a “medical kit” 1032, wherein the number of “bandages” held is 10 and the number of “medical kits” held is 1. Subsequently, when the client 410 receives the user's first trigger operation on the "bandage" 1031 displayed in the first virtual item list 103 (for example, a click operation or a drag operation on the "bandage" 1031), the first virtual object 101 is controlled to discard at least one (for example, 2) "bandages". At this time, the number of "bandages" 1031 displayed in the first virtual item list 103 will also be updated from 10 to 8. In this way, the virtual items can be discarded only in the virtual scene, which greatly simplifies the user's operation process when controlling the virtual object to discard the virtual items, thereby improving the efficiency of discarding virtual items in the virtual scene and the user's gaming experience.

[0056] In some embodiments, the terminal device 400 can also implement the processing method of virtual items provided in the embodiments of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP, APPlication), that is, a program that needs to be installed in the operating system to run, such as a shooting game APP (that is, the above-mentioned client 410); it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a game small program that can be embedded in any APP. In short, the above-mentioned computer program can be an application, module or plug-in in any form.

[0057] Taking a computer program as an application program as an example, in actual implementation, the terminal device 400 installs and runs an application program that supports virtual scenes. The application program can be any one of a first-person shooter game (FPS), a third-person shooter game, a virtual reality application program, a three-dimensional map program, or a multiplayer gunfight survival game. The user uses the terminal device 400 to operate a virtual object in the virtual scene to perform an activity, which includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and building virtual buildings. Indicatively, the virtual object can be a virtual character, such as a simulated character or an anime character.

[0058] In other embodiments, the embodiments of the present application can also be implemented with the aid of cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or a local area network to achieve data calculation, storage, processing, and sharing.

[0059] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources.

[0060] For example, Figure 1BThe server 200 shown in the figure can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or 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, CDN, and big data and artificial intelligence platforms. The terminal device 400 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, an intelligent interactive device, a car terminal, etc., but is not limited to this. The terminal device 400 and the server 200 can be directly or indirectly connected by wired or wireless communication, which is not limited in the embodiments of the present application.

[0061] Below Figure 1A The structure of the terminal device 400 shown in FIG. Figure 2 , Figure 2 is a schematic diagram of the structure of a terminal device 400 provided in an embodiment of the present application, Figure 2 The terminal device 400 shown includes: at least one processor 420, a memory 460, at least one network interface 430 and a user interface 440. The various components in the terminal device 400 are coupled together via a bus system 450. It is understood that the bus system 450 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 450 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 450 is not shown in FIG. Figure 2 Various buses are labeled as bus system 450 .

[0062] The processor 420 can 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., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0063] The user interface 440 includes one or more output devices 441 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 440 also includes one or more input devices 442, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0064] The memory 460 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 460 may optionally include one or more storage devices that are physically remote from the processor 420.

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

[0066] In some embodiments, memory 460 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0067] Operating system 461, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0068] A network communication module 462, for reaching other computing devices via one or more (wired or wireless) network interfaces 430, exemplary network interfaces 430 include: Bluetooth, Wireless Compatibility Authentication (WiFi), and Universal Serial Bus (USB);

[0069] a presentation module 463 for enabling presentation of information via one or more output devices 441 (e.g., display screen, speaker, etc.) associated with the user interface 440 (e.g., a user interface for operating peripherals and displaying content and information);

[0070] The input processing module 464 is used to detect one or more user inputs or interactions from one of the one or more input devices 442 and translate the detected inputs or interactions.

[0071] In some embodiments, the virtual item processing device provided in the embodiments of the present application may be implemented in software. Figure 2 The processing device 465 of the virtual item stored in the memory 460 is shown, which can be software in the form of programs and plug-ins, including the following software modules: display module 4651, control module 4652, switching module 4653, determination module 4654, application module 4655 and update module 4656. These modules are logical, so they can be arbitrarily combined or further divided according to the functions implemented. It should be pointed out that in Figure 2For the sake of convenience, all the above modules are shown at once, but it should not be considered that the virtual item processing device 465 excludes the implementation that can only include the display module 4651 and the control module 4652. The functions of each module will be explained below.

[0072] The following will describe in detail the method for processing virtual items provided by the embodiment of the present application in conjunction with the accompanying drawings. The method for processing virtual items provided by the embodiment of the present application can be Figure 1A The terminal device 400 in the embodiment can be executed separately, or it can be executed by Figure 1B The terminal device 400 and the server 200 execute collaboratively.

[0073] Below, by Figure 1A The terminal device 400 in the embodiment of the present application independently executes the method for processing virtual items provided in the embodiment of the present application as an example for explanation. Figure 3 , Figure 3 is a flowchart of a method for processing virtual items provided in an embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0074] It should be noted that Figure 3 The method shown can be executed by various forms of computer programs running on the terminal device 400, and is not limited to the above-mentioned client 410, but can also be the operating system 461, software modules and scripts mentioned above. Therefore, the client should not be regarded as a limitation on the embodiments of the present application.

[0075] In step 101, a virtual scene is displayed.

[0076] Here, the virtual scene includes an entry of a first virtual object and a first virtual item list.

[0077] In some embodiments, a client that supports virtual scenes is installed on the terminal device (for example, when the virtual scene is a game, the corresponding client can be a game APP, such as a shooting game APP or a multiplayer online tactical competitive game APP, etc.). When the user opens the client installed on the terminal device (for example, the user clicks on the icon corresponding to the shooting game APP presented in the user interface of the terminal device) and the terminal device runs the client, the first virtual object (for example, virtual object A controlled by user 1) and the entrance to the first virtual item list can be displayed in the virtual scene presented on the human-computer interaction interface of the client.

[0078] In some embodiments, the virtual scene may be displayed from a first-person perspective in the human-computer interaction interface of the client (for example, the user plays the virtual object in the game from his own perspective); or from a third-person perspective (for example, the user chases the virtual object in the game to play the game); or from a bird's-eye view; wherein the above-mentioned different perspectives may be switched arbitrarily.

[0079] As an example, the first virtual object may be an object controlled by the current user in the game. Of course, the virtual scene may also include other virtual objects, such as virtual objects that may be controlled by other users or by a robot program. Virtual objects may be divided into any one of a plurality of camps. The camps may be in a hostile relationship or a cooperative relationship. The camps in the virtual scene may include one or all of the above relationships.

[0080] Taking the first-person perspective display of a virtual scene as an example, displaying a virtual scene in a human-computer interaction interface may include: determining the field of view area of ​​the first virtual object according to the viewing position and field of view angle of the first virtual object in the complete virtual scene, and presenting a portion of the virtual scene in the field of view area in the complete virtual scene, that is, the displayed virtual scene may be a portion of the virtual scene relative to the panoramic virtual scene. Because the first-person perspective is the most impactful viewing perspective for users, it can achieve immersive perception of users during operation.

[0081] Taking the display of a virtual scene from a bird's-eye view as an example, displaying the virtual scene in the human-computer interaction interface may include: in response to a zoom operation on the panoramic virtual scene, presenting a portion of the virtual scene corresponding to the zoom operation in the human-computer interaction interface, that is, the displayed virtual scene may be a portion of the virtual scene relative to the panoramic virtual scene. In this way, the operability of the user during the operation can be improved, thereby improving the efficiency of human-computer interaction.

[0082] In step 102, in response to an entry triggering operation for a first virtual item list, a first virtual item list is displayed in a virtual scene.

[0083] Here, the first virtual item list includes at least one type of virtual item held by the first virtual object. For example, all types of virtual items held by the first virtual object can be displayed in the first virtual item list. Of course, virtual items whose usage frequency is greater than a frequency threshold can also be first determined from all types of virtual items held by the first virtual object, and the virtual items whose usage frequency is greater than the frequency threshold can be displayed in the first virtual item list.

[0084] For example, taking the first virtual object as virtual object A controlled by user 1, assuming that virtual object A holds five different types of virtual items, namely "bandage", "medical kit", "energy drink", "grenade" and "scope", the above five different types of virtual items can be displayed simultaneously in the first virtual item list. Of course, only virtual items with a usage frequency greater than a frequency threshold can be displayed in the first virtual item list. For example, assuming that the usage frequency of "bandage" and "medical kit" is greater than the frequency threshold, only "bandage" and "medical kit" can be displayed in the first virtual item list.

[0085] It should be noted that virtual items with the same functions among all types of virtual items held by the first virtual object may also be displayed in the first virtual item list (for example, the types of the first virtual item list may include: a medicine list, a throwing object list, etc.). For example, assuming that the types of virtual items held by the first virtual object include: "bandage", "medical kit", "energy drink", "grenade" and "scope", among which "bandage", "medical kit" and "energy drink" can all be used to restore the health of the first virtual object, then "bandage", "medical kit" and "energy drink" can be displayed in the first virtual item list. The embodiment of the present application does not specifically limit the types of virtual items displayed in the first virtual item list.

[0086] In some embodiments, the first virtual item list may have multiple different states. In response to an entry trigger operation for the first virtual item list, the following processing may be performed: displaying a state control, wherein the state control is used to switch the state of the first virtual item list when triggered (for example, assuming that the current state of the first virtual item list is a discarded state, when a user clicks on the state control, the state of the first virtual item list is switched from the discarded state to the used state; when a user clicks on the state control again, the state of the first virtual item list is switched from the used state back to the discarded state), and representing different states in a differentiated display manner (for example, different colors, sizes, or text prompts (for example, displaying the prompt text "discard" or "use") may be used to distinguish and display different states). The types of states may include: a discarded state and a used state, wherein the discarded state is a state in which any type of virtual item is selected to be discarded, and the used state is a state in which any type of virtual item is selected to be used.

[0087] For example, see Figure 4A , Figure 4A is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Figure 4AAs shown, a first virtual object 401 and an entry 402 of a first virtual item list are displayed in a virtual scene 400. When a user clicks on the entry 402 of the first virtual item list, a first virtual item list 403 and a state control 404 are displayed in the virtual scene 400. In addition, a prompt word "discard" 405 is displayed near the first virtual item list 403 to prompt the user that the first virtual item list 403 is currently in a discarded state. When a user clicks on the state control 404, the state of the first virtual item list 403 is switched from the discarded state to the used state, and a prompt word "use" 406 is displayed near the first virtual item list 403 to prompt the user that the state of the first virtual item list 403 has been switched to the used state. When the user clicks on the state control 404 again, the state of the first virtual item list 403 can be switched from the used state to the discarded state.

[0088] In some other embodiments, the above-mentioned display of the first virtual item list in the virtual scene can also be achieved by the following method: performing one of the following processes: for each type of virtual item held by the first virtual object, displaying the first virtual item list in the virtual scene, wherein the first virtual item list includes one virtual item of each type; for the number of virtual items held by the first virtual object relative to each type, displaying the first virtual item list in the virtual scene, wherein the first virtual item list includes the number of virtual items of each type held.

[0089] For example, taking the first virtual object as virtual object A controlled by user 1, assuming that virtual object A holds three different types of virtual items, namely "bandage", "medical kit" and "energy drink", where the number of "bandages" held is 10, the number of "medical kits" held is 1, and the number of "energy drinks" held is 3, then 1 "bandage", 1 "medical kit" and 1 "energy drink" can be displayed in the first virtual item list; of course, 10 "bandages", 1 "medical kit" and 3 "energy drinks" can also be displayed in the first virtual item list. The embodiment of the present application does not specifically limit the display quantity of each type of virtual item.

[0090] In some embodiments, the above-mentioned display of the first virtual item list in the virtual scene can be implemented in the following manner: displaying the first virtual item list formed by at least one type of virtual items held by the first virtual object in order in the virtual scene, wherein the display order of at least one type of virtual items includes one of the following: order of the number of each type of virtual items held from most to least (for example, the virtual item with the highest number of virtual items held can be displayed at the head of the first virtual item list, and the virtual item with the lowest number of virtual items held can be displayed at the end of the first virtual item list, that is, the virtual items with more numbers of virtual items held have more prominent display positions in the first virtual item list, thereby facilitating the user to select and discard, for example, the user can discard the most virtual items to teammates without scrolling down the first virtual item list to exchange items); order of the frequency of use of each type of virtual items from high to low (for example, the virtual item with the highest frequency of use can be displayed at the head of the first virtual item list, and the virtual item with the lowest frequency of use can be displayed at the end of the first virtual item list, that is, the virtual items with higher frequency of use have more prominent display positions in the first virtual item list, thereby facilitating the user to select and discard, for example The user can discard the virtual items he often uses to teammates without scrolling down the first virtual item list); the order of the difference between the last use time and the current time of each type of virtual items from small to large (for example, the virtual item with the smallest difference between the last use time and the current time can be displayed at the head of the first virtual item list, and the virtual item with the largest difference between the last use time and the current time can be displayed at the end of the first virtual item list, that is, the virtual item with the closest last use time to the current time is displayed more prominently in the first virtual item list, so as to facilitate the user to select and discard, for example, the user can discard the most recently used virtual item to teammates without scrolling down the first virtual item list); the order of the probability of use of each type of virtual items from high to low (for example, the virtual item with the highest probability of use can be displayed at the head of the first virtual item list, and the virtual item with the lowest probability of use can be displayed at the end of the first virtual item list, that is, the virtual item with a higher probability of use is displayed more prominently in the first virtual item list, so as to facilitate the user to select and discard, for example, the user can discard the virtual item with the highest probability of use to teammates without scrolling down the first virtual item list).

[0091] For example, taking the first virtual object as virtual object A controlled by user 1, assuming that virtual object A holds three different types of virtual items, namely "bandage", "medical kit" and "energy drink", where the number of "bandages" held is 10, the number of "medical kits" held is 1, and the number of "energy drinks" held is 3, then the display order of these three types of virtual items in the first virtual item list is: "bandage", "energy drink", "medical kit".

[0092] For example, taking the first virtual object as virtual object A controlled by user 1, assuming that virtual object A holds three different types of virtual items, namely "bandage", "medical kit" and "energy drink", and user 1 has controlled virtual object A to use "bandage" 20 times, "medical kit" 5 times, and "energy drink" 3 times in the past week, then the display order of these three types of virtual items in the first virtual item list is: "bandage", "medical kit", "energy drink".

[0093] For example, taking the first virtual object as virtual object A controlled by user 1, assuming that virtual object A holds three different types of virtual items, namely "bandage", "medical kit" and "energy drink", and user 1 has controlled virtual object A to use "medical kit" in the past 1 minute, controlled virtual object A to use "energy drink" in the past 5 minutes, and controlled virtual object A to use "bandage" in the past 10 minutes, then the display order of these three types of virtual items in the first virtual item list is: "medical kit", "energy drink", "bandage".

[0094] For example, taking the first virtual object as virtual object A controlled by user 1, assuming that virtual object A holds three different types of virtual items, namely "bandage", "medical kit" and "energy drink", and assuming that the probability of using "bandage" is 80%, the probability of using "medical kit" is 90%, and the probability of using "energy drink" is 70%, then the display order of these three types of virtual items in the first virtual item list is: "medical kit", "bandage", "energy drink".

[0095] In other embodiments, continuing from the above, the usage probability of each type of virtual item can be determined in the following manner: feature extraction is performed on the environmental information of the virtual scene (such as the map type and map size of the virtual scene), the state parameters of the first virtual object (such as health points, physical strength points, ammunition amount, medicine amount, etc.), the attribute information of the objects included in the first camp to which the first virtual object belongs (such as the number of objects, location distribution, etc.), the attribute information of the objects included in the second camp, and the functions of each type of virtual item, and a machine learning model is called based on the extracted feature information for prediction processing to obtain the usage probability of each type of virtual item; wherein, the first camp to which the first virtual object belongs and the second camp belong to hostile camps, and the machine learning model is trained based on the environmental information of the sample virtual scene extracted from the historical operation data of the expert account, the state parameters of the sample virtual object controlled by the expert account, the attribute information of other objects included in the camp to which the sample virtual object belongs, the attribute information of objects included in the camp that belongs to the hostile camp to which the sample virtual object belongs, and the labeled data, the level of the expert account is greater than the level threshold, and the labeled data includes the type of virtual item used by the expert account to control the sample virtual object during the interaction.

[0096] It should be noted that the above-mentioned machine learning model can be a neural network model (such as a convolutional neural network, a deep convolutional neural network, or a fully connected neural network, etc.), a decision tree model, a gradient boosting tree, a multilayer perceptron, and a support vector machine, etc. The embodiment of the present application does not specifically limit the type of machine learning model.

[0097] In some embodiments, see Figure 5A , Figure 5A is a flowchart of a method for processing virtual items provided in an embodiment of the present application, such as Figure 5A As shown, when the first virtual item list is displayed in the virtual scene, it is also possible to execute Figure 5A Step 104A shown combines Figure 5A Step 104 is shown for illustration.

[0098] In step 104A, in response to the second virtual object appearing in the virtual scene, the display mode of the virtual item of the type required by the second virtual object in the first virtual item list is updated.

[0099] Here, the updated display method is significantly different from the display method of other types of virtual items in the first virtual item list (for example, virtual items of the type required by the second virtual object can be highlighted, while other types of virtual items are still displayed using the default display mode, thereby distinguishing them), and the second virtual object is an object in the virtual scene that requires item support from the first virtual object, or an object that needs to exchange items with the first virtual object.

[0100] In some embodiments, when the second virtual object is an object in the virtual scene that requires item support from the first virtual object, the type of virtual item required by the second virtual object in the first virtual item list can be determined in the following manner: based on the state parameters of the second virtual object, the type of virtual item required by the second virtual object in the first virtual item list is determined. For example, assuming that the current health value of the second virtual object is lower than the health threshold, the virtual item for restoring health value (such as a "bandage" or a "medical kit") in the first virtual item list can be determined as the type of virtual item required by the second virtual object.

[0101] In other embodiments, when the second virtual object is an object in the virtual scene that needs to exchange items with the first virtual object, the type of virtual item required by the second virtual object in the first virtual item list can be determined in the following way: the type of virtual item held by the second virtual object in a quantity less than a quantity threshold is determined as the type of virtual item required by the second virtual object. For example, assuming that the number of “energy drinks” held by the second virtual object is less than the quantity threshold, “energy drinks” can be used as the type of virtual item required by the second virtual object.

[0102] In other embodiments, before updating the display mode of the virtual item of the type required by the second virtual object in the first virtual item list, the following processing may also be performed: objects in the virtual scene whose distance to the first virtual object is less than a distance threshold (e.g., 5 meters), whose status parameters are lower than a parameter threshold (e.g., health points are lower than 50 points), and which belong to the same camp as the first virtual object are determined as objects requiring item support from the first virtual object; virtual items of at least one type of virtual item held by the first virtual object whose quantity held is less than a quantity threshold (e.g., the average quantity held by multiple objects included in the first camp to which the first virtual object belongs, or the median of the quantity held, etc.) are determined, and objects in the virtual scene whose quantity held by the virtual item is greater than the quantity threshold and which belong to the same camp as the first virtual object are determined as objects requiring item exchange with the first virtual object.

[0103] For example, taking the first virtual object as virtual object A controlled by user 1, assuming that virtual object A currently holds three different types of virtual items, namely "bandages", "medical kits" and "energy drinks", where the number of "bandages" held is 10, the number of "medical kits" held is 1 (less than the average holding of 3), and the number of "energy drinks" held is 3, then objects in the virtual scene that hold more than 3 "medical kits" (for example, virtual object B in the same camp as virtual object A) can be determined as objects that need to exchange items with virtual object A.

[0104] For example, see Figure 4B , Figure 4B is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Figure 4B As shown, a plurality of different types of virtual items are displayed in the first virtual item list 403, for example, including "bandage" 4031, "medical kit" 4032 and "energy drink" 4033. Then, in response to the appearance of the second virtual object 404 in the virtual scene 400, the display mode of the virtual items of the type required by the second virtual object 404 in the first virtual item list 403 is updated. For example, assuming that the type of virtual item required by the second virtual object 404 is "medical kit", the "medical kit" 4032 included in the first virtual item list 403 can be highlighted to prompt the user to discard the "medical kit" 4032 to the second virtual object 404 for use.

[0105] In other embodiments, see Figure 5B , Figure 5B is a flowchart of a method for processing virtual items provided in an embodiment of the present application, such as Figure 5B As shown, when the first virtual item list is displayed in the virtual scene, it is also possible to execute Figure 5B Steps 104B and 105B shown in FIG. Figure 5B The steps shown are explained.

[0106] In step 104B, in response to the first virtual object currently being unable to reach the required moving speed, the display manner of the virtual items of the recommended discard type in the first virtual item list is updated.

[0107] Here, the required moving speed may be the moving speed that the first virtual object needs to reach in some specific environments (e.g., mountains, jungles) in order to catch up with a virtual object in an enemy camp, or to escape from the pursuit of a virtual object in an enemy camp. The updated display method is significantly different from the display method of other types of virtual items in the first virtual item list, and the recommended discard type is the type of virtual item recommended to be discarded, so as to reduce the weight of the first virtual object so that the first virtual object reaches the required moving speed.

[0108] In some embodiments, the moving speed of the first virtual object is negatively correlated with the weight of the first virtual object, that is, the lighter the weight of the first virtual object, the faster the moving speed of the first virtual object is (but there is an upper limit to the moving speed. After reaching the upper limit of the moving speed, the moving speed of the first virtual object will no longer increase). The virtual items in the first virtual item list that are recommended for discarding can be determined in the following manner: based on the weight and the number of virtual items of each type held by the first virtual object, the virtual items in the first virtual item list that are recommended for discarding are determined. For example, the type of virtual items whose holding number is greater than a quantity threshold can be determined as the recommended discarding type, and the type of virtual items whose weight is greater than a weight threshold can also be determined as the recommended discarding type. Of course, the weight and holding number of each type of virtual items can also be comprehensively considered to determine the recommended discarding type. For example, the type of virtual items whose weight is greater than the weight threshold and whose holding number is greater than the quantity threshold can be determined as the recommended discarding type.

[0109] It should be noted that after determining the recommended discarding type, the number of virtual items of the recommended discarding type that the first virtual object needs to discard when reaching the required moving speed can be further determined based on the functional relationship between the weight and the moving speed of the first virtual object and the weight of the virtual items of the recommended discarding type, and displayed in the first virtual item list. This facilitates the user's selection and discarding and improves the user's gaming experience.

[0110] In step 105B, when controlling the virtual weight of the virtual item that has been discarded by the first virtual object can enable the first virtual object to reach the required moving speed, the second prompt information is displayed.

[0111] Here, the second prompt information is used to prompt that the current moving speed of the first virtual object has reached the required moving speed, and there is no need to discard the virtual object.

[0112] For example, taking the first virtual object as virtual object A controlled by user 1, when the virtual weight of the virtual items (for example, the virtual items of the above-mentioned recommended discarding type, or other types of virtual items) that have been discarded by controlling virtual object A can enable virtual object A to reach the required moving speed, a second prompt message can be displayed in the virtual scene, for example: "The current moving speed of virtual object A has reached the required moving speed, and there is no need to continue discarding virtual items."

[0113] For example, see Figure 4C , Figure 4C is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Figure 4CAs shown, a first virtual object 401 and a first virtual item list 403 are displayed in a virtual scene 400. A plurality of different types of virtual items are displayed in the first virtual item list 403, for example, a "bandage" 4031, a "medical kit" 4032, and an "energy drink" 4033. Then, in response to the first virtual object 401 currently being unable to reach a required moving speed, the display mode of the virtual items of the recommended discard type in the first virtual item list 403 is updated (for example, assuming that the virtual item of the recommended discard type is "energy drink", the "energy drink" 4033 may be highlighted to distinguish it from the display modes of other types of virtual items). Then, when the virtual items that have been discarded by the first virtual object 401 are controlled (for example, assuming that the user controls the first virtual object 401 to discard 5 "bandages" and 2 "energy drinks"), the virtual items of the first virtual object 401 are displayed in a highlighted manner. At this time, the number of “bandages” 4031 held in the first virtual item list 403 is reduced from 10 to 5, the number of “energy drinks” 4033 held is reduced from 3 to 1, and the highlight of “energy drinks” 4033 is cancelled) when the virtual weight can enable the first virtual object 401 to reach the required moving speed, a second prompt message 405 can be displayed in the virtual scene 400, for example: “The current moving speed has reached the required moving speed, and there is no need to continue discarding virtual items”. In this way, by updating the display method of virtual items of the recommended discard type, it is convenient for users to select and discard, and after the moving speed of the first virtual object reaches the required moving speed, a corresponding prompt message will be displayed in the virtual scene to prompt the user that there is no need to discard virtual items, thereby improving the efficiency of human-computer interaction and the user's gaming experience.

[0114] In some embodiments, for the first virtual item list in the discarded state, when no user-triggered operation (such as a click operation, a drag operation, a slide operation) is received within the waiting time (such as 30 seconds), the first virtual item list can be automatically retracted and automatically switched from the discarded state to the used state; of course, the first virtual item list in the discarded state can also be retracted and the state of the first virtual item list can be automatically switched from the discarded state to the used state only when the user triggers the retract button, so that the user can be prevented from exiting by mistake while thinking. In addition, for the first virtual item list in the used state, when no user-triggered operation is received within the waiting time, the first virtual item list can be automatically retracted and the first virtual item list can be kept in the used state.

[0115] In step 103, in response to a first trigger operation on any type of virtual item in the first virtual item list, the first virtual object is controlled to discard at least one virtual item of any type.

[0116] In some embodiments, when the first virtual item list has multiple different states (for example, including a discarded state and a used state), and the current state is a used state, the following processing may be performed before executing step 103: in response to a trigger operation on a state control, the state control is switched to a display mode corresponding to a discarded state to indicate that the state of the first virtual item list is switched from a used state to a discarded state, and the first virtual object is controlled to discard at least one virtual item of any type in response to a first trigger operation on any type of virtual item in the first virtual item list.

[0117] It should be noted that the default state of the first virtual item list may be any one of the following: a discarded state, a used state, a state when the first virtual item list was last folded (for example, assuming that the state of the first virtual item list when it was last folded was a discarded state, when the first virtual item list is expanded again, the default state of the first virtual item list is the discarded state), the state with the highest frequency of use among the discarded state and the used state (for example, assuming that the discarded state is used 10 times and the used state is used 5 times in the historical time period, when the first virtual item list is expanded, the default state of the first virtual item list is the discarded state), and the state with the longest usage time among the discarded state and the used state (for example, assuming that the usage time of the discarded state is 20 minutes and the usage time of the used state is 30 minutes in the historical time period, when the first virtual item list is expanded, the default state of the first virtual item list is the used state).

[0118] In some embodiments, the types of the first trigger operation may include: a click operation and a drag operation, and the above-mentioned step 103 may be implemented in the following manner: in response to a click operation on any type of virtual item in the first virtual item list, controlling the first virtual object to discard a set number of virtual items of any type (i.e., in response to a click operation, when multiple click operations on any type of virtual item are received from the user, the first virtual object will be controlled to discard a set number of virtual items of any type multiple times); in response to a drag operation of dragging any type of virtual item in the first virtual item list to a ground area (i.e., a discard response area) in the virtual scene, controlling the first virtual object to discard all quantities of virtual items of any type.

[0119] It should be noted that, for the drag operation, if any type of virtual item does not fall on the ground area in the virtual scene when the user lets go (i.e., the user does not accurately drag any type of virtual item to the discard response area in the virtual scene), the first virtual object will not be controlled to discard all virtual items of any type (i.e., no virtual item is discarded). At this time, prompt information can also be displayed in the virtual scene, such as highlighting the ground area of ​​the virtual scene to prompt the user where to drag the virtual item to discard it.

[0120] In other embodiments, continuing from the above, for each click operation, the set number of virtual items of any type discarded by the first virtual object can be determined in one of the following ways: in response to the quantity setting operation, the set number is determined as the set number of virtual items of any type discarded by the first virtual object; the number of virtual items of any type held in the first virtual item list is obtained, and the product of the number of virtual items held and the discard coefficient is determined as the set number of virtual items of any type discarded by the first virtual object.

[0121] For example, after controlling the first virtual object to discard any type of virtual item, a quantity setting interface may be displayed in the virtual scene. In response to a quantity setting operation triggered in the quantity setting interface (for example, assuming that the user sets a quantity of 2), the set quantity is determined as the set quantity of any type of virtual items discarded by the first virtual object (i.e., each time the user clicks on any type of virtual item in the first virtual item list, the first virtual object will be controlled to discard 2 virtual items of that type). Of course, the current number of virtual items of any type in the first virtual item list may also be obtained, and the product of the current number of virtual items and the discard coefficient may be determined as the set number of virtual items of any type discarded by the first virtual object. For example, taking "bandages" as an example, assuming that the number of "bandages" currently held by the first virtual object is 100 and the discard coefficient is 0.2, when the user clicks on the "bandages" displayed in the first virtual item list, the first virtual object will be controlled to discard 20 (100*0.2) "bandages". At this time, the number of "bandages" held by the first virtual object is reduced to 80. Then, when the user clicks on the "bandages" displayed in the first virtual item list again, the first virtual object will be controlled to discard 16 (80*0.2) "bandages". In this way, the number discarded each time is positively correlated with the total number of virtual items, thereby improving the discard efficiency when the number of virtual items is large.

[0122] In some embodiments, after executing step 103, at least one of the following processes may also be performed: updating the number of virtual items of any type in the first virtual item list to the number of virtual items held after subtracting the number of discarded items (for example, taking "bandages" as an example, assuming that the number of "bandages" held is 10 before being discarded, and assuming that the number of "bandages" discarded is 2, the number of "bandages" held can be updated from 10 to 8); displaying any type of virtual items in the ground area of ​​the virtual scene; displaying a first prompt message in the virtual scene, wherein the first prompt message is used to prompt that any type of discarded virtual items will no longer be automatically picked up; displaying a pickup list in the virtual scene (for example, in the vicinity of the discarded virtual items), and displaying any type of discarded virtual items in the pickup list (for example, one virtual item of each type discarded can be displayed, or the number of discarded virtual items of each type can be displayed).

[0123] It should be noted that the number of virtual items of any type in the first virtual item list may be updated each time the user clicks, or may be updated only when the user stops clicking after clicking for multiple consecutive times, and this embodiment of the present application does not specifically limit this.

[0124] In some other embodiments, the following processing may be performed on any type of virtual item in the first virtual item list: when the number of virtual items of any type held is not zero, a color mode is applied to the virtual items of any type (i.e., the virtual items are displayed in color); when the number of virtual items of any type held is reduced to zero, a grayscale mode is applied to the virtual items of any type (i.e., the virtual items are displayed in grayscale and may also be set to a non-interactive state, i.e., the user cannot respond when clicking or dragging); wherein the grayscale mode indicates that all virtual items of any type have been discarded and can no longer be discarded.

[0125] It should be noted that different display sizes or different transparencies may be used to distinguish between the cases where the number of virtual items held is not zero and is zero, and this embodiment of the present application does not specifically limit this.

[0126] In some embodiments, the discarding and use of any type of virtual item in the first virtual item list may be achieved through different operation modes, that is, the first trigger operation may be an operation of selecting any type of virtual item to discard, and the operation modes of the first trigger operation include: a sliding operation along a first direction (e.g., sliding to the left), and a first click operation on any type of virtual item; the following processing may also be performed: in response to a second trigger operation on any type of virtual item in the first virtual item list, controlling the first virtual object to use at least one virtual item of any type; wherein the second trigger operation is an operation of selecting any type of virtual item to use, and the operation modes of the second trigger operation include: a sliding operation along a second direction different from the first direction (e.g., sliding to the left may be set as an operation mode of discarding an item, and sliding to the right may be set as an operation mode of using an item; of course, sliding to the left may also be set as an operation mode of using an item, and sliding to the right may be set as an operation mode of discarding an item), and a first click operation on any type of virtual item A second click operation is performed, wherein the click area or the number of clicks corresponding to the second click operation is different from the first click operation (for example, the click area corresponding to the first click operation can be set to the upper half of the virtual item, and the click area corresponding to the second click operation can be set to the lower half of the virtual item, that is, when the user clicks on the upper half of any type of virtual item, the first virtual object is controlled to discard at least one virtual item of any type, and when the user clicks on the lower half of any type of virtual item, the first virtual object is controlled to use at least one virtual item of any type; for example, the number of clicks corresponding to the first click operation can be set to 1, and the number of clicks corresponding to the second click operation can be set to 2, that is, when the user single-clicks on any type of virtual item, the first virtual object is controlled to discard at least one virtual item of any type, and when the user double-clicks on any type of virtual item, the first virtual object is controlled to use at least one virtual item of any type). In this way, the discarding and using of virtual items are realized by setting different operation modes, thereby improving the efficiency of human-computer interaction.

[0127] In some embodiments, the first virtual item list may be a list dedicated to selecting and discarding any type of virtual item, and the following processing may also be performed: in response to an entry trigger operation for a second virtual item list, the second virtual item list is displayed in a virtual scene, wherein the second virtual item list includes at least one type of virtual item held by the first virtual object, and the second virtual item list is a list dedicated to selecting and using any type of virtual item; in response to a third trigger operation (e.g., a click operation) for any type of virtual item in the second virtual item list, the first virtual object is controlled to use at least one virtual item of any type.

[0128] It should be noted that the types and quantities of virtual props included in the first virtual props list may be the same as or different from those in the second virtual props list. For example, assuming that the first virtual props list includes: "bandages", "medical kits" and "energy drinks", and the second virtual props list only includes: "medical kits" and "energy drinks", the embodiment of the present application does not make specific limitations on this.

[0129] For example, see Figure 4D , Figure 4D is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Figure 4D As shown, an entrance 402 of a first virtual item list and an entrance 406 of a second virtual item list are displayed in a virtual scene 400, and a prompt word "discard" 407 is displayed near the entrance 402 of the first virtual item list to inform the user that the first virtual item list is a list dedicated to selecting and discarding any type of virtual item; a prompt word "use" 408 is displayed near the entrance 406 of the second virtual item list to inform the user that the second virtual item list is a list dedicated to selecting and using any type of virtual item. When a trigger operation (e.g., a click operation) is received from the user for the entry 406 of the second virtual item list, a second virtual item list 409 is displayed in the virtual scene 400. A plurality of different types of virtual items are displayed in the second virtual item list 409, including, for example, “bandage” 4091, “medical kit” 4092, and “energy drink” 4093. When the user clicks on the “medical kit” 4092 displayed in the second virtual item list 409, the first virtual object 401 is controlled to use the “medical kit”, thereby increasing the health value of the first virtual object 401. In this way, by setting two virtual item lists with different functions, the efficiency of the user in using and discarding virtual items is improved, thereby improving the user's gaming experience.

[0130] The method for processing virtual props provided in the embodiment of the present application sets an entry for a first virtual item list in a virtual scene, and displays the first virtual item list in the virtual scene upon receiving an entry trigger operation for the first virtual item list, and then controls the first virtual object to discard at least one virtual item of any type upon receiving a first trigger operation for any type of virtual item in the first virtual item list. In this way, the virtual items can be discarded only in the virtual scene, which greatly simplifies the operation steps of the user when controlling the virtual object to discard the virtual items, thereby improving the efficiency of human-computer interaction and user experience.

[0131] Below, taking a shooting game as an example, an exemplary application of an embodiment of the present application in an actual application scenario is explained.

[0132] In a first-person shooting (FPS) game, the method of discarding virtual items (such as medicines, throwing objects, etc.) provided by the relevant technology is: click the backpack button to enter the backpack interface, select the virtual items to be discarded in the backpack interface, and then discard them after selecting the discard quantity.

[0133] For example, see Fig. 6A , Fig. 6A It is a schematic diagram of an application scenario of a method for processing virtual items provided by related technologies, such as Fig. 6A As shown, a backpack button 601 is displayed in the battle interface 600. When a user (also called a player) clicks the backpack button 601, a backpack interface 602 is displayed. At this time, the user can slide the list displayed in the backpack interface 602 to find the virtual item to be discarded from the backpack. For example, assuming that the virtual item that the user needs to discard is a "blast bomb" 6021, the "blast bomb" 6021 can be directly dragged to the sidebar 6022 to discard all quantities of the item.

[0134] For example, see Figure 6B , Figure 6B It is a schematic diagram of an application scenario of a method for processing virtual items provided by related technologies, such as Figure 6B As shown, when the user wants to discard the "stun bombs" in the backpack, he can also click on the "stun bombs" 6021 displayed in the backpack interface 602, and a "partial discard" button 60211 and a "complete discard" button 60212 will be displayed. When the user clicks the "partial discard" button 60211, a quantity selection pop-up window 60213 will be displayed. The user can drag the sliding bar displayed in the quantity selection pop-up window 60213, or click the plus or minus button to select the discard quantity, and then click the discard button displayed in the quantity selection pop-up window 60213 to discard the selected quantity of "stun bombs" 6021; when the user clicks the "complete discard" button 60212, all quantities of "stun bombs" 6021 will be discarded. In addition, after the user controls the virtual object to discard the "stun bomb" 6021, the virtual item discarded by the user (such as the "stun bomb" 6021) will be displayed in the pickup list 603 displayed in the battle interface 600. At the same time, a prompt message 604 can also be displayed, such as "the discarded items of the same type will not be automatically picked up within 30 seconds."

[0135] It can be seen that in the solutions provided by the related art, users need to perform many steps when discarding virtual items, such as dragging, sliding lists and other precise operations. When a user wants to control the partial discarding of virtual items, at least 6 steps are required. Among them, in the list displayed on the backpack interface, when partially discarding virtual items, more click operations are required to select the discard quantity (or select the discard quantity by accurately dragging the slider). In addition, when a user discards a virtual item, the various types of virtual items displayed in the backpack interface are mixed together. The user first needs to find the position of the virtual item he wants to discard in the list, which further reduces the operation efficiency.

[0136] In view of this, the embodiment of the present application provides a method for processing virtual items, which can facilitate users to quickly find and discard virtual items they want to discard in the first-level battle interface (also known as the main interface, corresponding to the above-mentioned virtual scene), reduce the operation steps, and thus reduce the time cost of users searching in backpacks when looking for virtual items (including medicines and throwing objects, etc.). In this way, in the process of interacting with other users (for example, controlling a virtual object to engage in a firefight with a virtual object controlled by another user in the battle interface), it is possible to quickly throw medicine to a teammate with low health (i.e., a virtual object controlled by another user in the same camp), or quickly throw a mine to a teammate, etc., thereby reducing the probability of the virtual object controlled by the current user being injured due to operations such as material exchange and backpack cleaning during the battle, and increasing the possibility of winning the battle.

[0137] The following uses the virtual item being medicine as an example to specifically illustrate the method for processing the virtual item provided in the embodiment of the present application.

[0138] For example, see Fig. 7A , Fig. 7A is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Fig. 7A As shown, an expand button 701 is displayed in the first-level combat interface 700. When the virtual object controlled by the user holds only one type of medicine, upon receiving a click operation on the expand button 701 by the user, a medicine (such as a "medical kit") held by the virtual object will be displayed in the medicine list 702, and a discard button 703, wherein the discard button 703 is used to control the medicine list 702 from the use state (in the use state, clicking on the medicine in the medicine list 702 is the use of the medicine) to the discard state (in the discard state, clicking on the medicine in the medicine list 702 is the discarded medicine).

[0139] For example, see Figure 7B , Figure 7B is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Figure 7BAs shown, an expand button 701 is displayed in the first-level combat interface 700. When the virtual object controlled by the user holds multiple different types of medicines, when the user clicks on the expand button 701, all types of medicines held by the virtual object (for example, including "bandages" and "medical kits") and a discard button 703 will be displayed in the medicine list 702, wherein the discard button 703 is used to control the medicine list 702 to enter a discard state from a use state.

[0140] It should be noted that the display mode of the drug list 702 can be not only a rectangle, but also a disk, a sector, a nine-square grid, etc., and the embodiment of the present application does not specifically limit this.

[0141] In some embodiments, when the drug list is in a discard state, a set number (eg, 1 or more) of drugs of a certain type in the drug list can be discarded by clicking on that type of drug.

[0142] For example, see Figure 7C , Figure 7C is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Figure 7C As shown, when a user clicks on the discard button 703, the drug list 702 will be controlled to enter the discard state, and the discard button 703 will be hidden in the first-level battle interface, and a cancel button 704 will be displayed, wherein the cancel button 704 is used to switch the state of the drug list 702 from the discard state back to the use state (also known as the normal state) when clicked. When the user clicks on any type of drug (such as "bandage" 7021) in the drug list 702 in the discard state, the virtual object will be controlled to discard a set number (such as 1 or more) of "bandages", for example, each time the user clicks on the "bandage" 7021, the virtual object controlled by the user will discard a "bandage". At this time, the number of "bandages" 7021 displayed in the medicine list 702 will be reduced by 1 (for example, from 10 to 9), and a model 705 of the discarded "bandage" will appear on the ground of the battle interface, and the "bandage" 7021 that the user has just discarded will be displayed in the pickup list 706, with a quantity of 1, and a prompt message 707 can also be displayed in the first-level battle interface, such as a floating text prompt as follows: "Discarded medicines of the same type will no longer be automatically picked up within 30 seconds."

[0143] It should be noted that when the user continuously clicks on a certain type of medicine (for example, "bandages") in the discarded medicine list 702, the number of medicines of this type displayed in the medicine list 702 will decrease by 1 each time the click occurs (for example, the number of "bandages" decreases from 10 to 9 at the first click, decreases from 9 to 8 at the second click, and decreases from 8 to 7 at the third click), and the number of medicines of this type displayed in the pick-up list will increase by 1 each time (for example, the number of "bandages" increases from 0 to 1 at the first click, increases from 1 to 2 at the second click, and increases from 2 to 3 at the third click).

[0144] For example, see Fig.7D , Fig.7D is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Fig.7D As shown, when a certain type of medicine (such as "bandage" 7021) in the discarded medicine list 702 has been discarded to a quantity of 0, the quantity of this type of medicine is displayed as 0, and the status is grayed out. At this time, there is no feedback when clicking or dragging the medicine.

[0145] It should be noted that, unlike using medicines, in the use state, when a certain medicine is used up, that is, when the quantity is 0, the corresponding icon will disappear directly. In the discard state, when a certain medicine is discarded and the quantity is 0, the icon of the medicine still exists, so that users can avoid accidentally discarding another medicine after quickly clicking to discard a certain medicine and the icon disappears.

[0146] In some embodiments, when the drug list is in a discarded state, all drugs of a certain type can be discarded by dragging the drug of that type.

[0147] For example, see Fig. 7E , Fig. 7E is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Fig. 7E As shown, for the medicine list 702 in the discarded state, when the user wants to discard all the medicines of a certain type (e.g., "bandages" 7021) in the medicine list 702, the user can drag the "bandages" 7021 to the discard response area (e.g., Fig. 7EIn addition, after letting go of the medicine, the number of medicines of the same type will be reduced to 0 in the medicine list 702, and the status will be grayed out. At the same time, the model of the discarded medicine can be displayed in the first-level combat interface 700, and prompt information can be displayed, such as a floating prompt: "The discarded medicines of the same type will not be automatically picked up within 30 seconds". In addition, the information of the medicines just discarded will appear in the pick-up list, where the number of medicines is the total number discarded by the user.

[0148] For example, see Figure 7F , Figure 7F is a schematic diagram of an application scenario of the method for processing virtual items provided in an embodiment of the present application, such as Figure 7F As shown, when the user clicks the cancel button 704, the drug list 702 will switch from the discarded state to the used state. When the drug list 702 is in the used state, when a click operation is received for a certain type of drug in the drug list 702, the virtual object will be controlled to use the drug of that type. In addition, when the drug list 702 is in the discarded state and receives a click operation for the retract button 708 from the user, the drug list 702 will be retracted, and the drug list 702 will be controlled to switch from the discarded state to the used state. When the user opens the drug list 702 again by opening the expand button 701, the drug list is in the used state 702, and the user needs to click the discard button to make the drug list 702 re-enter the discarded state.

[0149] It should be noted that in the related art, when the user does not operate (including clicking, dragging, or sliding the interactive control) the medicine list or the throwing object list, the medicine list or the throwing object list will be automatically retracted after a set time (for example, 3 seconds). In the embodiment of the present application, for the medicine list in the discarded state, if the user does not operate within the set time, the medicine list will not be automatically retracted, thus avoiding the user from being accidentally exited when in the operation thinking state, and improving the user's gaming experience.

[0150] For example, see Figure 8 , Figure 8 is a flowchart of a method for processing virtual items provided in an embodiment of the present application, such as Figure 8As shown, when the client receives a user's click operation on the expand button displayed on the first-level combat interface, the medicine list will be expanded. Then, after receiving the user's click operation on the discard button, it is determined whether the player is currently drinking medicine (i.e., whether the virtual object controlled by the player is currently using medicine). When the player is drinking medicine, the medicine list is controlled to enter the discard state and interrupt the player's drinking action. At this time, the blood volume of the virtual object controlled by the player will be restored to the state before the medicine is used; when the player is not drinking medicine, the medicine list is controlled to enter the discard state. Subsequently, when the player receives a click operation on a certain type of medicine in the medicine list in the discard state, the virtual object is controlled to discard a medicine of the same type (i.e., each click operation of the player can be regarded as discarding a medicine on the ground, and the player can click continuously until the number of medicines of the same type is reduced to 0); of course, the player can also discard all medicines of the same type at one time by dragging a certain type of medicine (for example, when the player drags a certain type of medicine in the medicine list in the discard state to the discard response area in the first-level combat interface, all medicines of the same type can be discarded, and the remaining number of medicines of the same type in the medicine list is directly reduced to 0). When the number of drugs of this type in the drug list is 0, the drug control of this type can be grayed out and thus be in a non-interactive state.

[0151] The following is a description of the process of determining the drag operation.

[0152] For example, see Fig. 9 , Fig. 9 is a flowchart of a method for processing virtual items provided in an embodiment of the present application, such as Fig. 9 As shown, when a user's dragging operation is received for a certain type of medicine in the list of medicines in a discarded state, it is determined whether the medicine falls into the discard response area when the user releases the medicine. When the medicine does not fall into the discard response area, the dragging operation is canceled, and no medicine is discarded at this time; when the medicine falls into the discard response area, the virtual object is controlled to discard all medicines of this type.

[0153] It should be noted that when dragging medicines, the user can also simultaneously operate some combat controls displayed in the first-level combat interface (such as the fire button, jump button, etc.). For example, the user can simultaneously click the joystick to control the movement of the virtual object.

[0154] The following will continue to explain the status determination process when the drug list is folded.

[0155] For example, see Fig.10 , Fig.10 is a flowchart of a method for processing virtual items provided in an embodiment of the present application, such as Fig.10As shown, when a user clicks on a collapse button, it is determined whether the drug list is currently in a discarded state. When the drug list is not in a discarded state, the drug list is directly collapsed; when the drug list is in a discarded state, the drug list is collapsed, and the drug list is controlled to switch from a discarded state to a used state (that is, when the user clicks the collapse button, the drug list will automatically return to the used state. In the used state, clicking on a drug in the drug list is the used drug).

[0156] In summary, the method for processing virtual items provided in the embodiments of the present application has the following beneficial effects:

[0157] 1) Portability: It reduces the number of steps for users to discard virtual items during combat, reduces the time cost of searching in backpacks when looking for medicines or throwing objects, and improves operational efficiency;

[0158] 2) Intuitive: Users can directly discard virtual items in the first-level battle interface. During the exchange of fire, they can quickly throw medicine or grenades to teammates with low health, thereby reducing the probability of injury in battle and increasing the possibility of winning the battle. That is, by simplifying the user's operation steps as much as possible, the possibility of winning the battle is increased, thereby improving the user's gaming experience.

[0159] The following is a description of an exemplary structure of a virtual item processing device 465 provided in an embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the virtual item processing device 465 of the memory 460 may include: a display module 4651 and a control module 4652 .

[0160] Display module 4651 is used to display a virtual scene, wherein the virtual scene includes an entrance to a first virtual object and a first virtual item list; display module 4651 is also used to display the first virtual item list in the virtual scene in response to a trigger operation on the entrance to the first virtual item list, wherein the first virtual item list includes at least one type of virtual item held by the first virtual object; control module 4652 is used to control the first virtual object to discard at least one virtual item of any type in response to a first trigger operation on any type of virtual item in the first virtual item list.

[0161] In some embodiments, the display module 4651 is also used to display a status control, wherein the status control is used to switch the state of the first virtual item list when triggered, and to represent different states in a differentiated display manner, and the types of states include: a discard state and a use state, the discard state is a state in which any type of virtual item is selected to be discarded, and the use state is a state in which any type of virtual item is selected to be used.

[0162] In some embodiments, the virtual item processing device 465 also includes a switching module 4653, which is used to switch the state control to a display mode corresponding to the discarded state in response to a trigger operation on the state control, so as to represent that the state of the first virtual item list is switched from the used state to the discarded state, and to execute the processing of controlling the first virtual object to discard at least one virtual item of any type in response to a trigger operation on any type of virtual item in the first virtual item list.

[0163] In some embodiments, the default state of the first virtual item list is one of the following: a discarded state, a used state, a state when the first virtual item list was last folded, a state with the highest frequency of use between the discarded state and the used state, and a state with the longest use time between the discarded state and the used state.

[0164] In some embodiments, the display module 4651 is further used to perform one of the following processes: for each type of virtual item held by the first virtual object, displaying a first virtual item list in the virtual scene, wherein the first virtual item list includes one virtual item of each type; for the number of virtual items held by the first virtual object relative to each type, displaying the first virtual item list in the virtual scene, wherein the first virtual item list includes the number of virtual items of each type held.

[0165] In some embodiments, the types of the first trigger operation include: a click operation and a drag operation; the control module 4652 is further used to control the first virtual object to discard a set number of virtual items of any type in response to a click operation on any type of virtual item in the first virtual item list; and to control the first virtual object to discard all quantities of virtual items of any type in response to a drag operation of dragging any type of virtual item in the first virtual item list to the ground area in the virtual scene.

[0166] In some embodiments, the virtual item processing device 465 also includes a determination module 4654, which is used to determine, for each click operation, a set number of virtual items of any type discarded by the first virtual object in one of the following ways: in response to a quantity setting operation, determining the set number as the set number of virtual items of any type discarded by the first virtual object; obtaining the number of virtual items of any type held in the first virtual item list, and determining the product of the number of virtual items held and the discard coefficient as the set number of virtual items of any type discarded by the first virtual object.

[0167] In some embodiments, the display module 4651 is further used to perform at least one of the following processes: updating the number of virtual items of any type in the first virtual item list to the number of virtual items held after subtracting the discarded number; displaying any type of virtual items in the ground area of ​​the virtual scene; displaying a first prompt message in the virtual scene, wherein the first prompt message is used to prompt that any type of virtual items will no longer be automatically picked up; displaying a pickup list in the virtual scene, and displaying any type of discarded virtual items in the pickup list.

[0168] In some embodiments, the virtual item processing device 465 also includes an application module 4655, which is used to perform the following processing on any type of virtual items in the first virtual item list: when the number of virtual items of any type held is not zero, a color mode is applied to the virtual items of any type; when the number of virtual items of any type held is reduced to zero, a grayscale mode is applied to the virtual items of any type; wherein the grayscale mode indicates that all virtual items of any type have been discarded and can no longer be discarded.

[0169] In some embodiments, the first trigger operation is an operation of selecting any type of virtual item to discard, and the operation methods of the first trigger operation include: a sliding operation along a first direction, and a first click operation on any type of virtual item; the control module 4652 is also used to control the first virtual object to use at least one virtual item of any type in response to a second trigger operation on any type of virtual item in the first virtual item list; wherein the second trigger operation is an operation of selecting any type of virtual item to use, and the operation methods of the second trigger operation include: a sliding operation along a second direction, and a second click operation on any type of virtual item, wherein the click area or number corresponding to the second click operation is different from that of the first click operation.

[0170] In some embodiments, the display module 4651 is further used to display a first virtual item list formed by at least one type of virtual items held by the first virtual object in sequence in the virtual scene, wherein the display order of at least one type of virtual items includes one of the following: the order of the number of virtual items of each type held from most to least; the order of the frequency of use of each type of virtual items from high to low; the order of the difference between the last use time and the current time of each type of virtual items from small to large; the order of the probability of use of each type of virtual items from high to low.

[0171] In some embodiments, the determination module 4654 is also used to determine the usage probability of each type of virtual item in the following manner: perform feature extraction processing on the environmental information of the virtual scene, the state parameters of the first virtual object, the attribute information of the virtual objects included in the first camp to which the first virtual object belongs, the attribute information of the virtual objects included in the second camp, and the functions of each type of virtual item, and call the machine learning model for prediction processing based on the extracted feature information to obtain the usage probability of each type of virtual item; wherein, the first camp to which the first virtual object belongs and the second camp belong to hostile camps, and the machine learning model is trained based on the environmental information of the sample virtual scene extracted from the historical operation data of the expert account, the state parameters of the sample virtual object controlled by the expert account, the attribute information of other objects included in the camp to which the sample virtual object belongs, the attribute information of objects included in the hostile camp to which the sample virtual object belongs, and the labeled data, the level of the expert account is greater than the level threshold, and the labeled data includes the type of virtual item used by the expert account to control the sample virtual object during the interaction.

[0172] In some embodiments, the virtual item processing device 465 also includes an updating module 4656, which is used to update the display method of the virtual item of the type required by the second virtual object in the first virtual item list in response to the appearance of the second virtual object in the virtual scene, and the updated display method is significantly different from the display method of other types of virtual items in the first virtual item list, wherein the second virtual object is a virtual object that needs the first virtual object for item support, or a virtual object that needs to exchange items with the first virtual object.

[0173] In some embodiments, the determination module 4654 is further used to determine a virtual object in the virtual scene whose distance from the first virtual object is less than a distance threshold and whose state parameter is lower than a parameter threshold as a virtual object that needs item support from the first virtual object; and to determine that among at least one type of virtual items held by the first virtual object, the number of virtual items held is less than a number threshold, and to determine a virtual object in the virtual scene whose number of virtual items held is greater than the number threshold as a virtual object that needs to exchange items with the first virtual object.

[0174] In some embodiments, the update module 4656 is further used to update the display mode of the virtual items of the recommended discard type in the first virtual item list in response to the first virtual object currently being unable to reach the required movement speed, wherein the updated display mode is significantly different from the display mode of other types of virtual items in the first virtual item list, and the recommended discard type is the type of virtual item recommended to be discarded, so as to reduce the weight of the first virtual object to achieve the required movement speed; the display module 4651 is further used to display a second prompt message when controlling the virtual weight of the virtual items that have been discarded by the first virtual object can enable the first virtual object to reach the required movement speed, wherein the second prompt message is used to prompt that the current movement speed of the first virtual object has reached the required movement speed and there is no need to discard the virtual items.

[0175] In some embodiments, the first virtual item list is a list dedicated to selecting and discarding any type of virtual items; the display module 4651 is further used to display the second virtual item list in the virtual scene in response to an entry trigger operation for the second virtual item list, wherein the second virtual item list includes at least one type of virtual items held by the first virtual object, and the second virtual item list is a list dedicated to selecting and using any type of virtual items; the control module 4652 is further used to control the first virtual object to use at least one virtual item of any type in response to a third trigger operation for any type of virtual items in the second virtual item list.

[0176] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, so it will not be repeated. Figure 3 , Figure 5A ,or Figure 5B The present invention should be understood by referring to the description of any one of the accompanying drawings.

[0177] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions (i.e., executable instructions) stored in a computer-readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the virtual item processing method described in the embodiment of the present application.

[0178] The present application embodiment provides a computer-readable storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the virtual item processing method provided by the present application embodiment, for example, Figure 3 , Figure 5A ,or Figure 5B A method for handling virtual items is shown.

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

[0180] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, 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 as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0181] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0182] As an example, the executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0183] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions 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 processing virtual items, characterized in that: The method comprises: Displaying a virtual scene, wherein the virtual scene includes an entrance to a first virtual object and a first virtual item list; In response to an entry trigger operation for the first virtual item list, displaying the first virtual item list in the virtual scene, wherein the first virtual item list includes at least one type of virtual item held by the first virtual object; In response to a first trigger operation on any type of virtual item in the first virtual item list, controlling the first virtual object to discard at least one virtual item of any type, wherein the type of the first trigger operation includes: a click operation and a drag operation; In response to a first trigger operation on any type of virtual item in the first virtual item list, controlling the first virtual object to discard at least one virtual item of any type includes: In response to a click operation on any type of virtual item in the first virtual item list, controlling the first virtual object to discard a set number of virtual items of any type; In response to a dragging operation of dragging any type of virtual item in the first virtual item list to a ground area in the virtual scene, controlling the first virtual object to discard all quantities of the virtual items of any type; For each click operation, the set number of virtual items of any type discarded by the first virtual object is determined by one of the following methods: In response to a quantity setting operation, determining the set quantity as the set quantity of the virtual items of any type discarded by the first virtual object; The number of virtual items of any type in the first virtual item list is obtained, and the product of the number of virtual items and a discard coefficient is multiplied to determine the set number of virtual items of any type discarded by the first virtual object.

2. The method according to claim 1, characterized in that In response to an entry triggering operation for the first virtual item list, the method further includes: A display status control is provided, wherein the status control is used to switch the status of the first virtual item list when triggered, and to represent different statuses in differentiated display modes, wherein the types of statuses include: a discarded status and a used status, wherein the discarded status is a status in which any type of virtual item is selected to be discarded, and the used status is a status in which any type of virtual item is selected to be used.

3. The method according to claim 2, characterized in that When the current state of the first virtual item list is the use state, before controlling the first virtual object to discard at least one virtual item of any type in response to a first trigger operation on any type of virtual item in the first virtual item list, the method further includes: In response to a trigger operation on the state control, the state control is switched to a display mode corresponding to the discard state to indicate that the state of the first virtual item list is switched from the use state to the discard state, and the processing of controlling the first virtual object to discard at least one virtual item of any type in response to a first trigger operation on any type of virtual item in the first virtual item list is executed.

4. The method according to claim 2, characterized in that: The default state of the first virtual item list is one of the following: the discarded state, the used state, the state when the first virtual item list was last folded, the most frequently used state between the discarded state and the used state, and the state with the longest used time between the discarded state and the used state.

5. The method according to claim 1, characterized in that The displaying the first virtual item list in the virtual scene includes: Perform one of the following actions: For each type of virtual item held by the first virtual object, displaying a first virtual item list in the virtual scene, wherein the first virtual item list includes one virtual item of each type; With respect to the holding quantity of each type of virtual items of the first virtual object, a first virtual item list is displayed in the virtual scene, wherein the first virtual item list includes the holding quantity of each type of virtual items.

6. The method according to claim 1, characterized in that The method further comprises: Perform at least one of the following: updating the number of virtual items of any type in the first virtual item list to the number of virtual items minus the discarded number; Displaying any type of virtual item in a ground area of ​​the virtual scene; Displaying a first prompt message in the virtual scene, wherein the first prompt message is used to prompt not to automatically pick up any type of virtual item; A pickup list is displayed in the virtual scene, and any type of discarded virtual items are displayed in the pickup list.

7. The method according to claim 6, characterized in that The method further comprises: The following process is performed for any type of virtual item in the first virtual item list: When the holding quantity of any type of virtual item is not zero, applying a color mode to any type of virtual item; When the number of virtual items of any type held is reduced to zero, a grayscale mode is applied to the virtual items of any type; The grayscale mode indicates that all virtual items of any type have been discarded and cannot be discarded any more.

8. The method according to claim 1, characterized in that The first trigger operation is an operation of selecting any type of virtual item to discard, and the operation mode of the first trigger operation includes: a sliding operation along a first direction, a first clicking operation on any type of virtual item; The method further comprises: In response to a second trigger operation on any type of virtual item in the first virtual item list, controlling the first virtual object to use at least one virtual item of any type; The second trigger operation is an operation of selecting any type of virtual item for use, and the operation methods of the second trigger operation include: a sliding operation along a second direction, a second click operation on any type of virtual item, wherein the click area or number of times corresponding to the second click operation is different from that of the first click operation.

9. The method according to claim 1, characterized in that: The displaying the first virtual item list in the virtual scene includes: A first virtual item list formed by at least one type of virtual items held by the first virtual object is displayed in sequence in the virtual scene, wherein the display sequence of the at least one type of virtual items includes one of the following: The order of the number of virtual items of each type held from most to least; The frequency of use of each type of virtual item is ranked from highest to lowest; The difference between the last time each type of virtual item was used and the current time is in ascending order; The probability of using each type of virtual item is ranked from high to low.

10. The method according to claim 9, characterized in that The method further comprises: The probability of use of each type of virtual item is determined in the following way: Performing feature extraction processing on environmental information of the virtual scene, state parameters of the first virtual object, attribute information of virtual objects included in a first camp to which the first virtual object belongs, attribute information of virtual objects included in a second camp, and functions of each type of virtual item, and calling a machine learning model for prediction processing based on the extracted feature information to obtain a usage probability of each type of virtual item; The first camp to which the first virtual object belongs and the second camp belong to hostile camps, and the machine learning model is trained based on environmental information of sample virtual scenes extracted from historical operation data of the expert account, state parameters of the sample virtual object controlled by the expert account, attribute information of other objects included in the camp to which the sample virtual object belongs, attribute information of objects included in the hostile camp to which the sample virtual object belongs, and labeled data, the level of the expert account is greater than the level threshold, and the labeled data includes the type of virtual items used by the expert account to control the sample virtual object during the interaction process.

11. The method according to claim 1, characterized in that: When displaying the first virtual item list in the virtual scene, the method further includes: In response to the appearance of a second virtual object in the virtual scene, a display mode of a virtual item of a type required by the second virtual object in the first virtual item list is updated, and the updated display mode is significantly different from the display modes of other types of virtual items in the first virtual item list, wherein the second virtual object is a virtual object that requires the first virtual object for item support, or a virtual object that needs to exchange items with the first virtual object.

12. The method according to claim 11, characterized in that Before updating the display mode of the virtual item of the type required by the second virtual object in the first virtual item list, the method further includes: Determine an object in the virtual scene whose distance from the first virtual object is less than a distance threshold and whose state parameter is lower than a parameter threshold as the virtual object requiring item support from the first virtual object; Determine that the first virtual object holds virtual items of at least one type of virtual items whose quantity is less than a quantity threshold, and determine an object in the virtual scene that holds the virtual items in a quantity greater than the quantity threshold as the virtual object that needs to exchange items with the first virtual object.

13. The method according to claim 1, characterized in that When displaying the first virtual item list in the virtual scene, the method further includes: In response to the first virtual object currently being unable to achieve the required movement speed, updating a display method of a virtual item of a recommended discard type in the first virtual item list, wherein the updated display method is significantly different from a display method of other types of virtual items in the first virtual item list, the recommended discard type being a type of the virtual item recommended to be discarded, so as to reduce the weight of the first virtual object to achieve the required movement speed; When controlling the virtual weight of the virtual item that has been discarded by the first virtual object can enable the first virtual object to reach the required moving speed, a second prompt message is displayed, wherein the second prompt message is used to prompt that the current moving speed of the first virtual object has reached the required moving speed and there is no need to discard the virtual item.

14. The method according to claim 1, characterized in that The first virtual item list is a list dedicated to selecting and discarding any type of virtual item; The method further comprises: In response to an entry trigger operation for a second virtual item list, displaying the second virtual item list in the virtual scene, wherein the second virtual item list includes at least one type of virtual item held by the first virtual object, and the second virtual item list is a list dedicated to selecting and using any type of virtual item; In response to a third trigger operation for any type of virtual item in the second virtual item list, the first virtual object is controlled to use at least one virtual item of any type.

15. A virtual item processing device, characterized in that: The device comprises: A display module, configured to display a virtual scene, wherein the virtual scene includes an entry to a first virtual object and a first virtual item list; The display module is further configured to display the first virtual item list in the virtual scene in response to an entry trigger operation for the first virtual item list, wherein the first virtual item list includes at least one type of virtual item held by the first virtual object; A control module, configured to control the first virtual object to discard at least one virtual item of any type in response to a first trigger operation on any type of virtual item in the first virtual item list, wherein the type of the first trigger operation includes: a click operation and a drag operation; In response to a first trigger operation on any type of virtual item in the first virtual item list, controlling the first virtual object to discard at least one virtual item of any type includes: In response to a click operation on any type of virtual item in the first virtual item list, controlling the first virtual object to discard a set number of virtual items of any type; In response to a dragging operation of dragging any type of virtual item in the first virtual item list to a ground area in the virtual scene, controlling the first virtual object to discard all quantities of the virtual items of any type; For each click operation, the set number of virtual items of any type discarded by the first virtual object is determined by one of the following methods: In response to a quantity setting operation, determining the set quantity as the set quantity of the virtual items of any type discarded by the first virtual object; The number of virtual items of any type in the first virtual item list is obtained, and the product of the number of virtual items and a discard coefficient is multiplied to determine the set number of virtual items of any type discarded by the first virtual object.

16. An electronic device, characterized in that: The electronic device comprises: A memory for storing executable instructions; A processor, configured to implement the method for processing virtual items according to any one of claims 1 to 14 when executing the executable instructions stored in the memory.

17. A computer-readable storage medium, characterized in that: Executable instructions are stored, and when executed by a processor, the method for processing virtual items according to any one of claims 1 to 14 is implemented.

18. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the method for processing virtual items according to any one of claims 1 to 14 is implemented.

Citation Information

Patent Citations

  • Prop movement treatment method and device in VR scene

    CN106730811A

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

    CN108355347A