Method, device, terminal and storage medium for requesting and discarding virtual consumable

By displaying a consumables option bar and receiving trigger actions, the system controls virtual objects to perform various interactive operations, solving the problem of cumbersome steps in requesting and discarding virtual ammunition and improving operational efficiency.

CN117618902BActive Publication Date: 2026-07-21TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2022-08-18
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

In existing technologies, the steps for virtual objects to request and discard virtual ammunition are cumbersome, requiring multiple triggers and resulting in a complex process.

Method used

A method and apparatus for requesting and discarding virtual consumables are provided. By displaying a consumables option bar, receiving a trigger operation, and controlling the virtual object to perform discard, discard mark, and request operations, the interaction path is simplified.

Benefits of technology

It implements a unified entry point using the consumables option bar, which simplifies the interaction with virtual objects and improves operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117618902B_ABST
    Figure CN117618902B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a virtual consumable demanding and discarding method and device, a terminal and a storage medium, and belongs to the technical field of human-computer interaction. The method comprises the following steps: displaying a consumable option bar, wherein the consumable option bar comprises at least one consumable option corresponding to a virtual consumable, and the virtual consumable is consumed in a virtual prop use process; receiving a triggering operation on a first consumable option in the consumable option bar, wherein the first consumable option corresponds to a first virtual consumable; and controlling a first virtual object to perform an interactive operation on the first virtual consumable, wherein the interactive operation comprises at least one of a discarding operation, a discarding marking operation and a demanding operation. According to the scheme provided by the embodiment of the application, the consumable option bar can be used as a unified entrance, a first virtual object can be controlled to perform a plurality of interactive operations on a first virtual consumable, the path of the interactive operation is simplified, and the execution efficiency of the interactive operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of human-computer interaction technology, and in particular to a method, apparatus, terminal and storage medium for requesting and discarding virtual consumables. Background Technology

[0002] First-person shooter (FPS) games are applications based on a three-dimensional virtual environment. Users can control virtual objects in the virtual environment to perform actions such as walking, running, climbing, and shooting. Multiple users can team up online to cooperate in the same virtual environment to complete a task.

[0003] In related technologies, when a virtual object needs to request virtual ammunition, it is necessary to first hold the corresponding virtual item and then send the request information through the quick message in the wheel; when a virtual object needs to discard virtual ammunition, it is necessary to first open the backpack interface, drag and drop the corresponding virtual ammunition, and then aim at the virtual ammunition in the virtual environment and click the mark button to obtain the information corresponding to the virtual ammunition and send it.

[0004] It is evident that in related technologies, when a virtual object requests or discards virtual ammunition, there are many pre-operation steps that need to be triggered, and the process is quite complex. Summary of the Invention

[0005] This application provides a method, apparatus, terminal, and storage medium for requesting and discarding virtual consumables, which simplifies the path for controlling the first virtual object to perform interactive operations. The technical solution is as follows:

[0006] On one hand, embodiments of this application provide a method for requesting and discarding virtual consumables, the method comprising:

[0007] Display a consumables option bar, which contains consumables options corresponding to at least one virtual consumable, which is consumed during the use of virtual items;

[0008] Receive a trigger operation on the first consumable option in the consumable option bar, where the first consumable option corresponds to the first virtual consumable;

[0009] Control the first virtual object to perform an interactive operation on the first virtual consumable, the interactive operation including at least one of a discard operation, a discard mark operation, and a request operation;

[0010] The discard operation is used to discard the first virtual consumable in the virtual environment, the discard mark operation is used to discard the first virtual consumable in the virtual environment and mark the position of the first virtual consumable in the virtual environment, and the request operation is used to request the first virtual consumable from the second virtual object.

[0011] On the other hand, embodiments of this application provide a device for requesting and discarding virtual consumables, the device comprising:

[0012] The display module is used to display a consumables option bar, which contains consumables options corresponding to at least one virtual consumable, which is consumed during the use of virtual items;

[0013] The receiving module is used to receive a trigger operation on the first consumable option in the consumable option bar, wherein the first consumable option corresponds to the first virtual consumable.

[0014] A control module is used to control the first virtual object to perform interactive operations on the first virtual consumable, the interactive operations including at least one of a discard operation, a discard mark operation, and a request operation;

[0015] The discard operation is used to discard the first virtual consumable in the virtual environment, the discard mark operation is used to discard the first virtual consumable in the virtual environment and mark the position of the first virtual consumable in the virtual environment, and the request operation is used to request the first virtual consumable from the second virtual object.

[0016] On the other hand, embodiments of this application provide a terminal, the terminal including a processor and a memory, the memory storing at least one instruction, the at least one instruction being loaded and executed by the processor to implement the virtual consumables request and discard method as described above.

[0017] On the other hand, embodiments of this application provide a computer-readable storage medium storing at least one instruction, which is loaded and executed by a processor to implement the virtual consumables request and discard method as described above.

[0018] On the other hand, embodiments of this application provide a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the virtual consumable request / disposal method provided in the above aspects.

[0019] In this embodiment, the terminal uses the consumables option bar as the entry point for controlling the first virtual object to perform interactive operations. While displaying the consumables option bar, it also displays consumable options corresponding to at least one virtual consumable. Based on the received trigger operation on the first consumable option in the consumables option bar, the terminal controls the first virtual object to perform interactive operations on the first virtual consumable. These interactive operations include at least one of the following: a discard operation, a discard mark operation, and a request operation. This allows the terminal to use the consumables option bar as a unified entry point to control the first virtual object to perform multiple interactive operations on the first virtual consumable, simplifying the path for controlling the first virtual object to perform interactive operations and improving the efficiency of interactive operations. Attached Figure Description

[0020] Figure 1 A schematic diagram of an implementation environment provided by one embodiment of this application is shown;

[0021] Figure 2 A flowchart illustrating a method for requesting and discarding virtual consumables provided in an exemplary embodiment of this application is shown;

[0022] Figure 3 This is an exemplary embodiment of the present application illustrating an interface diagram of receiving a trigger operation on a first consumable option and controlling a first virtual object to perform an interactive operation;

[0023] Figure 4 A flowchart illustrating a method for requesting and discarding virtual consumables provided in another exemplary embodiment of this application is shown;

[0024] Figure 5 This is an exemplary embodiment of the present application illustrating a drag operation where the first triggering operation and the second triggering operation are drag operations with different drag endpoint positions;

[0025] Figure 6 A flowchart illustrating a method for requesting and discarding virtual consumables provided in another exemplary embodiment of this application is shown;

[0026] Figure 7 This is a schematic diagram of an interface for displaying a consumables option bar, as shown in an exemplary embodiment of this application;

[0027] Figure 8 This is a schematic diagram of an interface for controlling a first virtual object to perform a discard mark operation, as illustrated in an exemplary embodiment of this application.

[0028] Figure 9 This is a schematic diagram of an interface for displaying a discard confirmation control, as shown in an exemplary embodiment of this application.

[0029] Figure 10 This is a schematic diagram of the interface of the display quantity setting control shown in an exemplary embodiment of this application;

[0030] Figure 11 This is a schematic diagram of an interface for controlling a first virtual object to perform a discard operation, as shown in an exemplary embodiment of this application;

[0031] Figure 12 This is a schematic diagram of an interface for controlling a first virtual object to perform a request operation, as illustrated in an exemplary embodiment of this application.

[0032] Figure 13 A flowchart illustrating a method for requesting and discarding virtual consumables provided in another exemplary embodiment of this application is shown;

[0033] Figure 14 This is a schematic diagram of the interface of the display quantity setting control, as shown in another exemplary embodiment of this application;

[0034] Figure 15 This is a schematic diagram of an interface for controlling a first virtual object to perform a discard mark operation, as shown in another exemplary embodiment of this application;

[0035] Figure 16 This is a schematic diagram of an interface for controlling a first virtual object to perform a request operation, as shown in another exemplary embodiment of this application;

[0036] Figure 17 This is a schematic diagram of the interface for updating the consumables option bar, as shown in an exemplary embodiment of this application.

[0037] Figure 18 This is a schematic diagram of the interface illustrating the option to remove the first consumable, as shown in an exemplary embodiment of this application.

[0038] Figure 19 A flowchart illustrating a display interaction recognition area provided in an exemplary embodiment of this application is shown;

[0039] Figure 20 A flowchart illustrating a further exemplary embodiment of this application is shown, showing a process for controlling a first virtual object to perform a discard tag operation.

[0040] Figure 21 A flowchart illustrating the control of a first virtual object to perform a discard operation, provided by another exemplary embodiment of this application, is shown.

[0041] Figure 22 This is a structural block diagram of a virtual consumable request and disposal device provided in an exemplary embodiment of this application;

[0042] Figure 23 A structural block diagram of a terminal provided in an exemplary embodiment of this application is shown. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0044] Please refer to Figure 1 The diagram illustrates an implementation environment provided in one embodiment of this application. This implementation environment may include: a first terminal 110, a server 120, and a second terminal 130.

[0045] The first terminal 110 runs an application 111 that supports a virtual environment. This application 111 can be a multiplayer online battle arena (MOBA) game or a simulation game (SLG). In this embodiment, the application 111 is used as an example of a first-person shooter (FPS) game. The first terminal 110 is the terminal used by the first user 112. The first user 112 uses the first terminal 110 to control a first virtual object located in the virtual environment. The first virtual object can be referred to as the master virtual object controlled by the first user 112. The activities of the first virtual object include, but are not limited to, adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, throwing, and releasing skills. Schematic, the first virtual object is a first virtual character, such as a realistic character or an anime character.

[0046] The second terminal 130 runs an application 131 that supports a virtual environment. This application 131 can be a multiplayer online battle arena (MOBA) program. When the second terminal 130 runs the application 131, the user interface of the application 131 is displayed on the screen of the second terminal 130. This client can be any type of MOBA game or SLG game; in this embodiment, the application 131 is an FPS game as an example. The second terminal 130 is the terminal used by the second user 132. The second user 132 uses the second terminal 130 to control a second virtual object located in the virtual environment. The second virtual object can be referred to as the main virtual character controlled by the second user 132. Illustratively, the second virtual object is a second virtual character, such as a lifelike character or an anime character.

[0047] Optionally, the first virtual object and the second virtual object reside in the same virtual world. Optionally, the first virtual object and the second virtual object may belong to the same faction, the same team, the same organization, have a friend relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object may belong to different factions, different teams, different organizations, or have an adversarial relationship.

[0048] Optionally, the applications installed on the first terminal 110 and the second terminal 130 are the same, or the applications installed on the two terminals are the same type of application on different operating system platforms (Android or iOS). The first terminal 110 can refer to one of a plurality of terminals, and the second terminal 130 can refer to another of a plurality of terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 may be the same or different. The device types include at least one of the following: smartphones, tablets, e-book readers, Moving Picture Experts Group Audio Layer III (MP3) players, Moving Picture Experts Group Audio Layer IV (MP4) players, laptops, and desktop computers.

[0049] Figure 1 Only two terminals are shown in the diagram, but in different embodiments, multiple other terminals can access the server 120. Optionally, one or more terminals may also be terminals corresponding to developers, on which a development and editing platform for applications supporting virtual environments is installed. Developers can edit and update applications on these terminals and transmit the updated application installation packages to the server 120 via wired or wireless networks. The first terminal 110 and the second terminal 130 can download the application installation packages from the server 120 to update the applications.

[0050] The first terminal 110, the second terminal 130, and other terminals are connected to the server 120 via a wireless network or a wired network.

[0051] Server 120 includes at least one of the following: a single server, a server cluster consisting of multiple servers, a cloud computing platform, and a virtualization center. Server 120 is used to provide background services for applications that support a 3D virtual environment. Optionally, server 120 undertakes the primary computing task, and the terminal undertakes the secondary computing task; or, server 120 undertakes the secondary computing task, and the terminal undertakes the primary computing task; or, server 120 and the terminal use a distributed computing architecture for collaborative computing.

[0052] In an illustrative example, server 120 includes memory 121, processor 122, user account database 123, battle service module 124, and user-facing input / output interface (I / O interface) 125. The processor 122 loads instructions stored in server 120 and processes data in user account database 123 and battle service module 124. User account database 123 stores data about user accounts used by the first terminal 110, second terminal 130, and other terminals, such as user account avatars, nicknames, combat power indices, and the service area where the user account is located. Battle service module 124 provides multiple battle rooms for users to play, such as 1v1, 3v3, and 5v5 battles. User-facing I / O interface 125 establishes communication and exchanges data with the first terminal 110 and / or second terminal 130 via wireless or wired network.

[0053] Please refer to Figure 2 This document illustrates a flowchart of a method for requesting and discarding virtual consumables provided in an exemplary embodiment of this application. This embodiment uses this method for... Figure 1 Taking the first terminal 110 or the second terminal 130, or other terminals in the implementation environment shown, as an example, the method includes the following steps:

[0054] Step 201: Display the consumables option bar, which contains consumables options corresponding to at least one virtual consumable. Virtual consumables are consumed during the use of virtual items.

[0055] Optionally, virtual objects may consume virtual consumables when using virtual items. Virtual consumables may include virtual bullets, virtual medicines, etc.

[0056] A virtual object refers to a user's main controlled object in a three-dimensional virtual environment. For example, a virtual object can be at least one of a virtual character, a virtual animal, an anime character, a virtual vehicle, and a virtual animal.

[0057] A virtual environment is a three-dimensional environment in which virtual objects reside during the operation of an application on a terminal. Optionally, in this embodiment, the virtual environment is observed using a camera model.

[0058] Optionally, the camera model automatically follows the virtual character in the virtual world. That is, when the position of the virtual object changes in the virtual world, the camera model changes its position accordingly, and the camera model always remains within a preset distance range of the virtual object. Optionally, during automatic following, the relative positions of the camera model and the virtual object do not change.

[0059] A camera model refers to a 3D model located around a virtual object in the virtual world. When using a first-person perspective, the camera model is located near or at the head of the virtual object. When using a third-person perspective, the camera model can be located behind the virtual object and bound to it, or it can be located at any position at a preset distance from the virtual object. The camera model allows observation of the virtual object from different angles. Optionally, when the third-person perspective is a first-person over-the-shoulder view, the camera model is located behind the virtual object (e.g., the head and shoulders of the virtual object). Optionally, in addition to first-person and third-person perspectives, other perspectives are also possible, such as a top-down perspective. When using a top-down perspective, the camera model can be located above the head of the virtual object; the top-down perspective is an aerial view of the virtual world. Optionally, the camera model is not actually displayed in the virtual world; that is, it is not displayed in the virtual world shown in the user interface.

[0060] In one possible implementation, the terminal displays consumable options corresponding to at least one virtual consumable held by the virtual object in the consumable options bar.

[0061] Optionally, the consumables option can be displayed with the icon of the corresponding virtual consumable, and may also include the name and quantity of the corresponding virtual consumable.

[0062] Optionally, the terminal can arrange and display the consumable options corresponding to at least one virtual consumable in the consumable option bar according to the quantity of virtual consumables.

[0063] Optionally, the terminal can arrange and display at least one virtual consumable option in the consumable option bar according to the name of the virtual consumable.

[0064] Indicative, such as Figure 3 As shown, the terminal displays a consumables option bar 301, in which at least one virtual consumable is consumed by the first virtual object 302 during the use of virtual items.

[0065] Step 202: Receive a trigger operation on the first consumable option in the consumable option bar. The first consumable option corresponds to the first virtual consumable.

[0066] In one possible implementation, the terminal receives a user's trigger operation on the first consumable option in the consumable option bar, thereby determining the first virtual consumable corresponding to the first consumable option.

[0067] In one possible implementation, in order to distinguish the first consumable option in the consumable option bar from other consumable options, the terminal can perform a box selection process on the first consumable option after receiving a user's trigger operation on the first consumable option in the consumable option bar.

[0068] Indicative, such as Figure 3 As shown, the terminal receives a trigger operation on the first consumable option 303 in the consumable option bar 301, and performs a box selection process on the first consumable option 303.

[0069] Step 203: Control the first virtual object to perform an interactive operation on the first virtual consumable, the interactive operation including at least one of a discard operation, a discard mark operation, and a request operation.

[0070] In one possible implementation, the terminal controls the first virtual object to perform an interactive operation on the first virtual consumable based on the received trigger operation for the first consumable option.

[0071] Optionally, the interactive operation includes at least one of a discard operation, a discard mark operation, and a request operation, wherein the discard operation is used to discard the first virtual consumable in the virtual environment, the discard mark operation is used to discard the first virtual consumable in the virtual environment and mark the position of the first virtual consumable in the virtual environment, and the request operation is used to request the first virtual consumable from the second virtual object.

[0072] In one possible implementation, the quantity of the first virtual consumable corresponding to the first consumable option in the consumables option bar is greater than zero. After the terminal controls the first virtual object to perform a discard operation or a discard mark operation on the first virtual consumable, the quantity of the first virtual consumable corresponding to the first consumable option in the consumables option bar is reduced accordingly.

[0073] Optionally, the process of the terminal controlling the first virtual object to perform a request operation for the first virtual consumable can be executed by the terminal: when the terminal receives a trigger operation for the first consumable option, it can obtain the name of the first virtual consumable associated with the first virtual object, and send a request message for the first virtual consumable to the terminal controlling the second virtual object through the server.

[0074] Indicative, such as Figure 3 As shown, the terminal controls the first virtual object 302 to perform a request operation for the first virtual consumable.

[0075] In summary, in this embodiment, the terminal uses the consumables option bar as the entry point for controlling the first virtual object to perform interactive operations. While displaying the consumables option bar, it also displays consumable options corresponding to at least one virtual consumable. Based on the received trigger operation on the first consumable option in the consumables option bar, the terminal controls the first virtual object to perform interactive operations on the first virtual consumable. These interactive operations include at least one of the following: a discard operation, a discard mark operation, and a request operation. This achieves the goal of using the consumables option bar as a unified entry point to control the first virtual object to perform multiple interactive operations on the first virtual consumable, simplifying the path for controlling the first virtual object to perform interactive operations and improving the execution efficiency of interactive operations.

[0076] In one possible implementation, since there are multiple interactive operations, in order to control the first virtual object to perform the corresponding interactive operation, the terminal can set different trigger operations to correspond to different interactive operations, thereby distinguishing and controlling the first virtual object to perform different interactive operations based on different trigger operations.

[0077] Please refer to Figure 4 This illustrates a flowchart of a method for requesting and discarding virtual consumables provided in another exemplary embodiment of this application. This embodiment uses this method for... Figure 1 Taking the first terminal 110 or the second terminal 130, or other terminals in the implementation environment shown, as an example, the method includes the following steps:

[0078] Step 401: Display the consumables option bar, which contains consumables options corresponding to at least one virtual consumable. Virtual consumables are consumed during the use of virtual items.

[0079] For a detailed implementation of this step, please refer to step 201. This embodiment will not elaborate further here.

[0080] Step 402: Receive a trigger operation on the first consumable option in the consumable option bar. The first consumable option corresponds to the first virtual consumable.

[0081] In one possible implementation, the terminal is configured with corresponding trigger operations for different interactive operations, namely, the first trigger operation corresponds to the discard mark operation, the second trigger operation corresponds to the discard operation, and the third trigger operation corresponds to the request operation, and the first trigger operation, the second trigger operation, and the third trigger operation are different from each other.

[0082] Optionally, the first, second, and third trigger operations can be different types of trigger operations, such as drag operations, long press operations, click operations, etc.

[0083] Optionally, the first, second, and third trigger operations can be three different forms of the same type of trigger operation. For example, the first, second, and third trigger operations can be a triple-click operation, a double-click operation, and a single-click operation, respectively, or a long press operation for 1 second, a long press operation for 3 seconds, and a long press operation for 5 seconds, etc.

[0084] In one possible implementation, the first trigger operation corresponds to the discard mark operation, the second trigger operation corresponds to the discard operation, and the first trigger operation and the second trigger operation are drag operations with different drag endpoint positions. The process of the terminal receiving the trigger operation on the first consumable option in the consumable option bar may include the following sub-steps.

[0085] 1. Upon receiving a drag operation on the first consumable option, display the first interaction recognition area and the second interaction recognition area.

[0086] Upon receiving a user's drag operation on the first consumable option, the terminal displays a first interaction recognition area and a second interaction recognition area. The first interaction recognition area is used to identify the execution of a discard mark operation on the first virtual consumable, and the second interaction recognition area is used to identify the execution of a discard operation on the first virtual consumable.

[0087] Indicative, such as Figure 5 As shown, when a drag operation is received on the first consumable option 501, the terminal displays the first interaction recognition area 502 and the second interaction recognition area 503.

[0088] In one possible implementation, when the remaining quantity of the first virtual consumable is zero, the first interactive identification area cannot identify the execution of a discard mark operation on the first virtual consumable, and the second interactive identification area cannot identify the execution of a discard operation on the first virtual consumable.

[0089] In one possible implementation, in order to improve the efficiency of the discard mark operation and the discard operation and reduce unnecessary steps, when a drag operation on the first consumable option is received and the remaining quantity of the first virtual consumable is greater than zero, the terminal displays the first interactive identification area and the second interactive identification area; when a drag operation on the first consumable option is received and the remaining quantity of the first virtual consumable is zero, the terminal does not display the first interactive identification area and the second interactive identification area.

[0090] 2. If the endpoint of the drag operation is located in the first interactive recognition area, it is determined that the first trigger operation has been received.

[0091] In one possible implementation, if the endpoint of the drag operation is located in the first interactive recognition area and the remaining quantity of the first virtual consumable is greater than zero, the terminal determines that it has received the first trigger operation.

[0092] Optionally, the terminal can highlight the first interactive recognition area to indicate to the user that the first virtual consumable has been dragged to the first interactive recognition area.

[0093] Indicative, such as Figure 5 As shown, when the endpoint of the drag operation is located in the first interactive recognition area 502, the terminal determines that it has received the first trigger operation.

[0094] 3. If the endpoint of the drag operation is located in the second interactive recognition area, it is determined that the second trigger operation has been received.

[0095] In one possible implementation, if the endpoint of the drag operation is located in the second interactive recognition area and the remaining quantity of the first virtual consumable is greater than zero, the terminal determines that it has received the second trigger operation.

[0096] Optionally, the terminal can highlight the second interactive recognition area to indicate to the user that the first virtual consumable has been dragged to the second interactive recognition area.

[0097] Indicative, such as Figure 5 As shown, when the endpoint of the drag operation is located in the second interactive recognition area 503, the terminal determines that it has received the second trigger operation.

[0098] In one possible implementation, the third trigger operation corresponds to a request operation, which is a click operation. Upon receiving a click operation on the first consumable option, the terminal determines that it has received the third trigger operation.

[0099] Step 403: Upon receiving the first trigger operation, control the first virtual object to perform a discard mark operation for the first virtual consumable.

[0100] In one possible implementation, upon receiving a first trigger operation, the terminal controls the first virtual object to perform a discard marking operation on the first virtual consumable, discarding the first virtual consumable in the virtual environment and marking the location of the first virtual consumable in the virtual environment.

[0101] Optionally, based on the location of the first virtual consumable in the virtual environment, the terminal can control the first virtual object to automatically perform marking without requiring manual marking by the user. In response to the discard marking operation, the terminal can generate a marking message notification corresponding to the first virtual consumable. The marking message notification may include the number of first virtual consumables discarded, the discard location, and the distance of the discard location from other virtual objects, etc. This application embodiment does not limit this.

[0102] Step 404: Upon receiving the second trigger operation, control the first virtual object to perform a discard operation on the first virtual consumable.

[0103] In one possible implementation, upon receiving a second trigger operation, the terminal controls the first virtual object to perform a discard operation on the first virtual consumable, discarding the first virtual consumable in the virtual environment.

[0104] Step 405: Upon receiving the third trigger operation, control the first virtual object to perform a request operation for the first virtual consumable.

[0105] In one possible implementation, upon receiving a third trigger operation, the terminal controls the first virtual object to perform a request operation for the first virtual consumable, and controls the first virtual object to request the first virtual consumable from the second virtual object.

[0106] Optionally, the terminal can also control the first virtual object to send a request message to the second virtual object. The request message may include the quantity of the first virtual consumable requested, the current location information of the first virtual object, etc. This application embodiment does not limit this.

[0107] In the above embodiments, by setting the first trigger operation to correspond to the discard mark operation, the second trigger operation to correspond to the discard operation, and the third trigger operation to correspond to the request operation, it is possible to determine and control the first virtual object to perform different interactive operations through different trigger operations, avoid misoperation between interactive operations, and improve the efficiency of controlling the first virtual object to perform interactive operations.

[0108] In one possible implementation, in order to improve the simplicity of the user interface and avoid misoperation during the process of controlling the first virtual object, the consumables option bar is not directly displayed in the user interface. In addition, for different interactive operations, the specific operation process is also different when controlling the first virtual object to perform the corresponding interactive operation.

[0109] Please refer to Figure 6 This illustrates a flowchart of a method for requesting and discarding virtual consumables provided in another exemplary embodiment of this application. This embodiment uses this method for... Figure 1Taking the first terminal 110 or the second terminal 130, or other terminals in the implementation environment shown, as an example, the method includes the following steps:

[0110] Step 601: Display the consumables option bar, which contains consumables options corresponding to at least one virtual consumable. Virtual consumables are consumed during the use of virtual items.

[0111] In one possible implementation, to keep the display of user interface controls simple, the consumables option bar is hidden in the user interface in a thumbnail form, and the terminal displays the consumables option bar in response to a fourth trigger operation on the consumables filling control.

[0112] Among them, the consumable filling control is used to trigger the filling of virtual consumables for the carried virtual items. In response to the fifth trigger operation of the consumable filling control, the terminal fills the virtual items currently carried by the first virtual object with virtual consumables. Therefore, in order to distinguish the different trigger operations for the consumable filling control, the fourth trigger operation is a trigger operation different from the fifth trigger operation.

[0113] For example, the fourth triggering operation is a double-click operation on the consumable filling control, and the fifth triggering operation is a single-click operation on the consumable filling control. In response to the double-click operation on the consumable filling control, the terminal displays the consumable option bar; in response to the single-click operation on the consumable filling control, the terminal fills the virtual consumables for the virtual props currently carried by the first virtual object.

[0114] In one possible implementation, to prevent users from accidentally operating the consumable filling control, the terminal sets a consumable display control associated with the consumable filling control in the user interface. In response to a sixth trigger operation on the consumable display control, the terminal displays a consumable option bar.

[0115] Optionally, in order to indicate to the user that the consumable display control is associated with the consumable filling control, and that the user can perform operations on the virtual consumable by triggering the consumable display control, the terminal can display the consumable display control around the consumable filling control.

[0116] For example, the sixth triggering action could be a click on the consumable display control.

[0117] Indicative, such as Figure 7 As shown, in response to a click operation on the consumable display control 702 associated with the consumable fill control 701, the terminal displays the consumable option bar 703.

[0118] In one possible implementation, since there are many types of virtual consumables and different virtual consumables may correspond to different game scenarios, displaying all consumable options in the consumable option bar may lead to problems such as too many consumable options and time-consuming selection for users. Therefore, the terminal only displays the consumable option corresponding to the second virtual consumable in the consumable option bar. The second virtual consumable refers to the virtual consumable consumed by the virtual items owned by the first virtual object.

[0119] In one possible implementation, in order to satisfy users' selection and use of virtual consumables as much as possible, the terminal displays consumable options corresponding to all types of virtual consumables in the consumable option bar. In order to improve the efficiency of users selecting consumable options in the consumable option bar, the terminal displays the consumable options corresponding to the second virtual consumable in the consumable option bar.

[0120] Optionally, the terminal may display the consumable options corresponding to the second virtual consumable in the first half of the consumable options bar, and display the consumable options corresponding to other virtual consumables in the second half of the consumable options bar.

[0121] Step 602: Receive a trigger operation on the first consumable option in the consumable option bar. The first consumable option corresponds to the first virtual consumable.

[0122] For a detailed implementation of this step, please refer to step 402. This embodiment will not elaborate further here.

[0123] Step 603: Control the first virtual object to discard the first virtual consumable; based on the location of the first virtual consumable, send a discard marker message to the second virtual object.

[0124] In one possible implementation, after receiving a first trigger operation on the first consumable option in the consumable option bar, the terminal controls the first virtual object to discard the first virtual consumable it owns, and based on the location of the first virtual consumable in the virtual environment, obtains the location information corresponding to the first virtual consumable and sends a discard mark message to the second virtual object.

[0125] Optionally, the discard tag message may include the name of the first virtual consumable, the quantity of the first virtual consumable discarded, and the location information of the first virtual consumable in the virtual environment.

[0126] Indicative, such as Figure 8As shown, upon receiving a drag operation that drags the first consumable option 801 to the first interactive recognition area 802, the terminal controls the first virtual object 803 to discard the first virtual consumable 804, and sends a discard marker message 805 to the second virtual object based on the position of the first virtual consumable 804 in the virtual environment. The discard marker message 805 contains the position information of the first virtual consumable 804 in the virtual environment and the name of the first virtual consumable 804.

[0127] In one possible implementation, in order to improve the speed at which the second virtual object finds the discarded first virtual consumable, the terminal marks and displays the location of the first virtual consumable in the virtual environment on a thumbnail map.

[0128] In one possible implementation, if the first virtual consumable is not a virtual consumable consumed by the virtual items owned by the first virtual object, after receiving a first trigger operation on the first consumable option in the consumable option bar, the terminal controls the first virtual object to discard all the first virtual consumables it owns.

[0129] In one possible implementation, to avoid accidental discarding of the first virtual consumable, if the first virtual consumable is a virtual consumable consumed by virtual items owned by the first virtual object, after receiving a first trigger operation on the first consumable option in the consumable option bar, the terminal displays a discard confirmation control, waiting for further confirmation from the user. In response to the confirmation operation of the discard confirmation control, the terminal controls the first virtual object to discard all of its first virtual consumables; in response to the cancellation operation of the discard confirmation control, the terminal cancels the control of the first virtual object to discard all of its first virtual consumables.

[0130] Indicative, such as Figure 9 As shown, the first consumable option 901 corresponds to the first virtual consumable, which is a virtual consumable consumed by the virtual props owned by the first virtual object 903. After receiving the drag operation of dragging the first consumable option 901 to the first interactive recognition area 902, before controlling the first virtual object 903 to perform the discard mark operation, the terminal displays the discard confirmation control 904. In response to the user's confirmation operation of the discard confirmation control 904, the terminal controls the first virtual object 903 to perform the discard mark operation.

[0131] In one possible implementation, to prevent the first virtual object from needing the first virtual consumables again after discarding all of them, the quantity to be discarded can be adjusted before discarding the first virtual consumables. In response to a setting operation on the discard confirmation control, the terminal displays a quantity setting control for setting the quantity of the first virtual consumables to be discarded. Based on the setting operation on the quantity setting control, the terminal determines a first quantity of the first virtual consumables to be discarded and controls the first virtual object to discard the first quantity of the first virtual consumables.

[0132] Indicative, such as Figure 10 As shown, in response to the user's setting operation on the discard confirmation control 1001, the terminal displays the quantity setting control 1002, and based on the user's setting operation on the quantity setting control 1002, determines the first quantity of the first virtual consumable to be discarded to be 5, thereby controlling the first virtual object 1003 to discard 5 first virtual consumables.

[0133] Step 604: Control the first virtual object to discard the first virtual consumable it owns.

[0134] In one possible implementation, upon receiving a drag operation that drags the first consumable option to the second interactive recognition area, the terminal controls the first virtual object to discard the first virtual consumable it possesses.

[0135] Indicative, such as Figure 11 As shown, when a drag operation is received to drag the first consumable option 1101 to the second interactive recognition area 1102, the terminal controls the first virtual object 1103 to discard the first virtual consumable 1104 it owns.

[0136] Optionally, in order to avoid accidental discarding of the first virtual consumable and to improve the flexibility of discarding the quantity of the first virtual consumable, a discard confirmation control and a quantity setting control can also be set during the process of the terminal controlling the first virtual object to perform the discard operation. For the specific implementation of this process, please refer to the description of controlling the first virtual object to perform the discard marking operation in step 703, which will not be repeated here.

[0137] Step 605: Control the first virtual object to send a first request message to the second virtual object. The first request message contains the name of the first virtual consumable.

[0138] In one possible implementation, after receiving a third trigger operation on the first consumable option in the consumables option bar, the terminal controls the first virtual object to send a first request message to the second virtual object, wherein the first request message contains the name of the first virtual consumable.

[0139] Indicative, such as Figure 12As shown, after receiving a click operation on the first consumable option 1201, the terminal controls the first virtual object 1202 to send a first request message 1203 to the second virtual object, and the first request message 1203 contains the name of the first virtual consumable.

[0140] In one possible implementation, in order to improve the efficiency of the first virtual object in obtaining the first virtual consumable by requesting it, the first request message may include the current location information of the first virtual object.

[0141] In the above embodiments, the consumables option bar can be displayed on the user interface based on the fourth trigger operation of the consumables filling control or the sixth trigger operation of the consumables display control associated with the consumables filling control. This improves the simplicity of the user interface when controlling the first virtual object to perform operations and avoids user misoperation when controlling the first virtual object.

[0142] Furthermore, by setting a discard confirmation control and a quantity setting control before controlling the first virtual object to perform a discard mark operation or a discard operation, the possibility of misoperation during the process of controlling the first virtual object to perform a discard operation or a discard mark operation is reduced, and the flexibility and agility of setting the discard quantity of the first virtual consumable are improved.

[0143] In one possible implementation, in order to further improve the flexibility and agility of setting the quantity of the first virtual consumable during the process of controlling the first virtual object to perform interactive operations, after receiving a trigger operation on the first consumable option in the consumable option bar, the terminal displays a quantity setting control, and controls the first virtual object to perform corresponding interactive operations based on the user's setting of the quantity of the first virtual consumable.

[0144] Please refer to Figure 13 This illustrates a flowchart of a method for requesting and discarding virtual consumables provided in another exemplary embodiment of this application. This embodiment uses this method for... Figure 1 Taking the first terminal 110 or the second terminal 130, or other terminals in the implementation environment shown, as an example, the method includes the following steps:

[0145] Step 1301: Display the consumables option bar, which contains consumables options corresponding to at least one virtual consumable. Virtual consumables are consumed during the use of virtual items.

[0146] Step 1302: Receive a trigger operation on the first consumable option in the consumable option bar. The first consumable option corresponds to the first virtual consumable.

[0147] The specific implementation of steps 1301 and 1302 can be found in steps 601 and 602, which will not be repeated here.

[0148] Step 1303: Display the quantity setting control, which is used to set the quantity of the first virtual consumable to request or discard.

[0149] In one possible implementation, to improve the user's flexibility in setting the quantity of the first virtual consumable, after receiving the user's trigger operation on the first consumable option in the consumable option bar, and before controlling the first virtual object to perform an interactive operation on the first virtual consumable, the terminal displays a quantity setting control, which is used to set the quantity of the first virtual consumable to request or discard.

[0150] Optionally, the initial displayed quantity in the quantity setting control can be 0, or it can be the total quantity of the first virtual consumables owned by the first virtual object.

[0151] Indicative, such as Figure 14 As shown, after receiving the user's trigger operation on the first consumable option 1401, the terminal displays the quantity setting control 1402.

[0152] In one possible implementation, when the interaction operation is a discard mark operation, upon receiving a second request message for the first virtual consumable, the terminal obtains a second quantity contained in the second request message, wherein the second request message is a request message for the first virtual consumable sent by other virtual objects of the same faction.

[0153] Furthermore, in order to improve the efficiency of setting the quantity of the first virtual consumable and to respond promptly to the second request messages sent by other virtual objects in the same camp, the terminal displays a quantity setting control based on the second quantity contained in the second request message and the third quantity of the first virtual consumable owned by the first virtual object.

[0154] Specifically, when the third quantity is greater than or equal to the second quantity, the quantity initially displayed by the quantity setting control can be the second quantity that meets the needs of other virtual objects; when the third quantity is less than the second quantity, the quantity initially displayed by the quantity setting control can be the third quantity that meets the needs of other virtual objects as much as possible.

[0155] For example, 30 seconds before the terminal controls the first virtual object to perform a discard mark operation for the first virtual consumable, a second virtual object of the same faction sends a request operation for the first virtual consumable, which includes a need for 10 first virtual consumables. If the first virtual object has 20 first virtual consumables, the initial display quantity of the terminal display quantity setting control is 10; if the first virtual object has 5 first virtual consumables, the initial display quantity of the terminal display quantity setting control is 5.

[0156] In one possible implementation, to increase user choice regarding whether to display the quantity setting control, the display of the quantity setting control can be determined based on the duration of the user's trigger operation on the first consumable option in the consumable option bar. If the duration of the trigger operation on the first consumable option in the consumable option bar exceeds a duration threshold, the terminal displays the quantity setting control.

[0157] If the operation duration of triggering the first consumable option in the consumables option bar is less than the duration threshold, the terminal will not display the quantity setting control. Optionally, if the quantity setting control is not displayed, when the terminal controls the first virtual object to perform a request operation for the first virtual consumable, the request quantity for the first virtual consumable will not be included; when the terminal controls the first virtual object to perform a discard operation or a discard mark operation for the first virtual consumable, all first virtual consumables will be discarded directly.

[0158] In one possible implementation, when the interaction is a discard mark operation, the terminal displays a quantity setting control if the duration of the drag operation on the first consumable option in the first interaction recognition area exceeds a duration threshold.

[0159] In one possible implementation, when the interaction is a discard operation, the terminal displays a quantity setting control if the duration of the user's drag operation on the first consumable option in the second interaction recognition area exceeds a duration threshold.

[0160] In one possible implementation, when the interaction is a request operation, the terminal displays a quantity setting control based on the duration of the user's click on the first consumable option. If the duration exceeds a duration threshold, the terminal displays the quantity setting control.

[0161] For example, if the terminal sets the duration threshold to 0.2 seconds, and the user drags the first consumable option in the first interaction recognition area for more than 0.2 seconds, the terminal displays the quantity setting control; if the user clicks the first consumable option for more than 0.2 seconds, the terminal displays the quantity setting control.

[0162] When the interaction is a discard mark operation, and the user drags the first consumable option in the first interaction recognition area for less than 0.2 seconds, the terminal controls the first virtual object to discard all first virtual consumables; when the interaction is a request operation, and the user clicks the first consumable option for less than 0.2 seconds, the terminal controls the first virtual object to perform a quick request operation.

[0163] Step 1304: Determine the first quantity based on the setting operation of the quantity setting control.

[0164] In one possible implementation, the terminal adjusts the interaction quantity for the first virtual consumable based on the user's setting operation on the quantity setting control, thereby determining the first quantity.

[0165] Indicative, such as Figure 15 As shown, in response to the setting operation of the quantity setting control 1501, the terminal determines that the interaction quantity for the first virtual consumable is 5.

[0166] Step 1305: Control the first virtual object to discard a first quantity of the first virtual consumables; based on the location of the first virtual consumables, send a discard marker message to the second virtual object.

[0167] In one possible implementation, during the process of controlling the first virtual object to perform a discard marking operation for the first virtual consumable, based on a determined first quantity of the first virtual consumable, the terminal controls the first virtual object to discard the first quantity of the first virtual consumable, and sends a discard marking message to the second virtual object based on the location of the first virtual consumable in the virtual environment.

[0168] Optionally, in addition to the name and location information of the first virtual consumable, the discard tag message may also include the quantity of the first virtual consumable discarded.

[0169] Indicative, such as Figure 15 As shown, the terminal controls the first virtual object 1502 to discard 5 first virtual consumables 1503 and sends a discard marker message 1504 to the second virtual object, wherein the discard marker message 1504 contains the number of first virtual consumables 1503.

[0170] Step 1306: Control the first virtual object to discard the first quantity of the first virtual consumables.

[0171] Similarly, during the process of controlling the first virtual object to perform a discard operation on the first virtual consumable, based on a determined first quantity of the first virtual consumable, the terminal controls the first virtual object to discard a first quantity of the first virtual consumable.

[0172] Step 1307: Control the first virtual object to send a first request message to the second virtual object. The first request message contains the name and quantity of the first virtual consumable.

[0173] In one possible implementation, during the process of controlling the first virtual object to perform a request operation for the first virtual consumable, based on a determined first quantity of the first virtual consumable, the terminal controls the first virtual object to send a first request message to the second virtual object, wherein the first request message contains the name of the first virtual consumable and the first quantity.

[0174] Indicative, such as Figure 16 As shown, after the user confirms the first quantity "5" in the quantity setting control 1602, the terminal controls the first virtual object 1601 to send a first request message 1603 to the second virtual object, wherein the first request message 1603 contains the content that 5 first virtual consumables are needed.

[0175] In the above embodiments, by adding a quantity setting control after receiving the user's trigger operation on the first consumable option in the consumable option bar and before controlling the first virtual object to perform an interactive operation on the first virtual consumable, the flexibility and agility of setting the quantity of the first virtual consumable during the process of controlling the first virtual object to perform an interactive operation can be improved.

[0176] Furthermore, during the process of controlling the first virtual object to perform a discard mark operation based on the second request message of the second virtual object, the terminal can reasonably determine the initial display quantity when displaying the quantity setting control according to the second quantity contained in the second request message and the third quantity of the first virtual consumables owned by the first virtual object, thereby improving the efficiency of setting the discard quantity of the first virtual consumables.

[0177] In one possible implementation, when the interaction is a discard operation or a discard flag operation, after controlling the first virtual object to perform an interaction operation on the first virtual consumable, the terminal needs to update the consumable option bar accordingly based on the change in the quantity of the first virtual consumable. This process may include the following three cases:

[0178] 1. If the remaining quantity of the first virtual consumable is greater than zero after being discarded, update the first consumable option in the consumable option bar.

[0179] In one possible implementation, if the remaining quantity of the first virtual consumable after discarding is greater than zero, the terminal updates the first consumable option in the consumable option bar. If the first consumable option includes the quantity of the first virtual consumable owned by the first virtual object, the terminal updates the quantity of the first virtual consumable in the first consumable option.

[0180] In one possible implementation, the terminal sorts the consumable options in the consumable option bar according to the quantity of each virtual consumable owned by the first virtual object. If the remaining quantity of the first virtual consumable is greater than zero after being discarded, the terminal updates the sorting of the consumable options in the consumable option bar based on the remaining quantity of the first virtual consumable.

[0181] 2. If the remaining quantity of the first virtual consumable is zero after being discarded, and the first virtual object has a virtual item that consumes the first virtual consumable, update the first consumable option in the consumable option bar.

[0182] In one possible implementation, if the remaining quantity of the first virtual consumable is zero after being discarded, and the first virtual object possesses a virtual item that consumes the first virtual consumable, in order to facilitate control over the first virtual object to acquire the first virtual consumable again, the terminal updates the display of the first consumable option in the consumable option bar and sets the quantity of the first virtual consumable in the first consumable option to zero.

[0183] In one possible implementation, to more clearly distinguish the first consumable option from other consumable options with a quantity greater than zero, the terminal displays the first consumable option with increased transparency.

[0184] Indicative, such as Figure 17 As shown, when the remaining quantity of the first virtual consumable is zero after being discarded, and the first virtual object 1701 has a virtual item that consumes the first virtual consumable, the terminal sets the quantity of the first virtual consumable in the first consumable option 1703 in the consumable option bar 1702 to zero, and increases the transparency of the first consumable option 1703.

[0185] 3. If the remaining quantity of the first virtual consumable is zero after being discarded, and the first virtual object does not possess any virtual items that consume the first virtual consumable, remove the first consumable option from the consumable option bar.

[0186] In one possible implementation, if the remaining quantity of the first virtual consumable is zero after being discarded, and the first virtual object does not possess any virtual items that consume the first virtual consumable, the terminal removes the first consumable option from the consumable option bar in order to reduce unnecessary display and simplify the consumable option bar.

[0187] Indicative, such as Figure 18 As shown, if the remaining quantity of the first virtual consumable is zero after being discarded, and the first virtual object 1801 does not possess any virtual items that consume the first virtual consumable, the terminal will remove the first consumable option 1803 from the consumable option bar 1802.

[0188] In the above embodiments, by updating the display of the consumables option bar based on the number of first virtual consumables possessed by the first virtual object after the first virtual object performs the discard operation, the display effect of the consumables option bar is improved, and the efficiency of selecting consumables options based on the consumables option bar is increased.

[0189] Please refer to Figure 19 The diagram illustrates a flowchart of a display interaction recognition area provided in an exemplary embodiment of this application.

[0190] Step 1901: Receive a drag operation on the first consumable option.

[0191] The terminal receives the user's drag operation on the first consumable option in the consumables option bar.

[0192] Step 1902: Select and display the first consumable option.

[0193] In response to the user's drag operation on the first consumable option, the terminal displays the first consumable option by selecting it.

[0194] Step 1903: Determine whether the remaining quantity of the first virtual consumable is not zero.

[0195] If the remaining quantity of the first virtual consumable is zero, proceed to step 1910; if the remaining quantity of the first virtual consumable is not zero, proceed to steps 1904 and 1905.

[0196] Step 1904: Display the first interactive recognition area.

[0197] The terminal displays a first interactive recognition area, which is used to identify the execution of a discard mark operation on the first virtual consumable.

[0198] Step 1905: Display the second interactive recognition area.

[0199] The terminal displays a second interactive recognition area, which is used to identify when a discard operation is performed on the first virtual consumable.

[0200] Step 1906: Determine whether to cancel the drag operation on the first consumable option.

[0201] If the drag operation on the first consumable option is canceled, proceed to steps 1907, 1908, and 1909; if the drag operation on the first consumable option is not canceled, return to steps 1904 and 1905.

[0202] Step 1907: Uncheck the box display for the first consumable option.

[0203] If the drag operation on the first consumable option is canceled, the terminal will remove the selection display of the first consumable option.

[0204] Step 1908: Hide the first interactive recognition area.

[0205] When the drag operation for the first consumable option is canceled, the terminal hides the first interaction recognition area.

[0206] Step 1909: Hide the second interactive recognition area.

[0207] When the drag operation for the first consumable option is canceled, the terminal hides the second interaction recognition area.

[0208] Step 1910: Determine whether to cancel the drag operation on the first consumable option.

[0209] If the drag operation on the first consumable option is canceled, proceed to step 1911; if the drag operation on the first consumable option is not canceled, return to step 1902.

[0210] Step 1911: Uncheck the box display for the first consumable option.

[0211] If the drag operation on the first consumable option is canceled, the terminal will remove the selection display of the first consumable option.

[0212] Please refer to Figure 20 The diagram illustrates a flowchart of a first virtual object performing a discard tag operation, provided by an exemplary embodiment of this application.

[0213] Step 2001: Receive the operation of dragging the first consumable option to the first interactive recognition area.

[0214] The terminal receives the user's action of dragging the first consumable option to the first interactive recognition area.

[0215] Step 2002: Highlight the first interactive recognition area.

[0216] In response to the first consumable option being dragged to the first interactive recognition area, the terminal highlights the first interactive recognition area.

[0217] Step 2003: Determine whether the drag endpoint is within the first interactive recognition area.

[0218] If the dragged endpoint is within the first interactive recognition area, proceed to step 2004; if the dragged endpoint is not within the first interactive recognition area, return to step 2002.

[0219] Step 2004: Determine whether the first virtual object possesses virtual items that consume the first virtual consumable.

[0220] If the first virtual object possesses a virtual item that consumes the first virtual consumable, proceed to steps 2005-2008; if the first virtual object does not possess a virtual item that consumes the first virtual consumable, proceed to steps 2009-2012.

[0221] Step 2005: Control the first virtual object to discard the first virtual consumable it owns.

[0222] The terminal controls the first virtual object to discard its first virtual consumable to the virtual environment.

[0223] Step 2006: Obtain the location of the first virtual consumable in the virtual environment.

[0224] The terminal obtains the location of the first virtual consumable in the virtual environment.

[0225] Step 2007: Send a discard flag message to the second virtual object.

[0226] Based on the location information of the first virtual consumable in the virtual environment and the number of first virtual consumables discarded, the terminal controls the first virtual object to send a discard marker message to the second virtual object.

[0227] Step 2008: Update the first consumable option in the consumables option bar.

[0228] The terminal updates the display of the first consumable option in the consumable option bar, sets the quantity of the first virtual consumable in the first consumable option to zero, and increases the transparency of the first consumable option.

[0229] Step 2009: Control the first virtual object to discard the first virtual consumable it owns.

[0230] The terminal controls the first virtual object to discard its first virtual consumable to the virtual environment.

[0231] Step 2010: Obtain the location of the first virtual consumable in the virtual environment.

[0232] The terminal obtains the location of the first virtual consumable in the virtual environment.

[0233] Step 2011: Send a discard flag message to the second virtual object.

[0234] Based on the location information of the first virtual consumable in the virtual environment and the number of first virtual consumables discarded, the terminal controls the first virtual object to send a discard marker message to the second virtual object.

[0235] Step 2012: Remove the first consumable option from the consumables option bar.

[0236] The terminal removes the first consumable option from the consumable option bar, thus simplifying the consumable option bar.

[0237] Please refer to Figure 21 The diagram illustrates a flowchart of a first virtual object performing a discard operation, provided by an exemplary embodiment of this application.

[0238] Step 2101: Receive the operation of dragging the first consumable option to the second interactive recognition area.

[0239] The terminal receives the user's action of dragging the first consumable option to the second interactive recognition area.

[0240] Step 2102: Highlight the second interactive recognition area.

[0241] In response to the first consumable option being dragged to the second interactive recognition area, the terminal highlights the second interactive recognition area.

[0242] Step 2103: Determine whether the drag endpoint is within the second interactive recognition area.

[0243] If the dragged endpoint is within the second interactive recognition area, proceed to step 2104; if the dragged endpoint is not within the second interactive recognition area, return to step 2102.

[0244] Step 2104: Determine whether the first virtual object possesses virtual items that consume the first virtual consumable.

[0245] If the first virtual object possesses a virtual item that consumes the first virtual consumable, proceed to steps 2105-2106; if the first virtual object does not possess a virtual item that consumes the first virtual consumable, proceed to steps 2107-2108.

[0246] Step 2105: Control the first virtual object to discard the first virtual consumable it owns.

[0247] The terminal controls the first virtual object to discard its first virtual consumable to the virtual environment.

[0248] Step 2106: Update the first consumable option in the consumables option bar.

[0249] The terminal updates the display of the first consumable option in the consumable option bar, sets the quantity of the first virtual consumable in the first consumable option to zero, and increases the transparency of the first consumable option.

[0250] Step 2107: Control the first virtual object to discard the first virtual consumable it owns.

[0251] The terminal controls the first virtual object to discard its first virtual consumable to the virtual environment.

[0252] Step 2108: Remove the first consumable option from the consumables option bar.

[0253] The terminal removes the first consumable option from the consumable option bar, thus simplifying the consumable option bar.

[0254] Please refer to Figure 22 The diagram illustrates a structural block diagram of a virtual consumable request and disposal device provided in an exemplary embodiment of this application, the device comprising:

[0255] Display module 2201 is used to display a consumables option bar, which includes consumables options corresponding to at least one virtual consumable, which is consumed during the use of virtual items;

[0256] The receiving module 2202 is used to receive a trigger operation on the first consumable option in the consumable option bar, wherein the first consumable option corresponds to the first virtual consumable.

[0257] The control module 2203 is used to control the first virtual object to perform interactive operations on the first virtual consumable, the interactive operations including at least one of a discard operation, a discard mark operation, and a request operation;

[0258] The discard operation is used to discard the first virtual consumable in the virtual environment, the discard mark operation is used to discard the first virtual consumable in the virtual environment and mark the position of the first virtual consumable in the virtual environment, and the request operation is used to request the first virtual consumable from the second virtual object.

[0259] Optionally, the control module 2203 includes:

[0260] A first control unit is configured to, upon receiving a first trigger operation, control the first virtual object to perform the discard marking operation for the first virtual consumable; or,

[0261] The second control unit is configured to, upon receiving a second trigger operation, control the first virtual object to perform the discard operation on the first virtual consumable; or,

[0262] A third control unit is configured to, upon receiving a third trigger operation, control the first virtual object to perform the request operation for the first virtual consumable;

[0263] The first triggering operation, the second triggering operation, and the third triggering operation are all different from each other.

[0264] Optionally, the first trigger operation and the second trigger operation are drag operations with different endpoint positions;

[0265] The receiving module 2202 includes:

[0266] The display unit is configured to display a first interactive recognition area and a second interactive recognition area when a drag operation is received on the first consumable option.

[0267] The first receiving unit is configured to determine that the first trigger operation has been received when the drag endpoint of the drag operation is located in the first interactive recognition area.

[0268] The second receiving unit is used to determine that the second trigger operation has been received when the drag endpoint of the drag operation is located in the second interactive recognition area.

[0269] Optionally, the display unit is used for:

[0270] When a drag operation is received on the first consumable option and the remaining quantity of the first virtual consumable is greater than zero, the first interaction recognition area and the second interaction recognition area are displayed.

[0271] Optionally, the receiving module 2202 includes:

[0272] The third receiving unit is used to determine that the third trigger operation has been received when a click operation on the first consumable option is received.

[0273] Optional,

[0274] The first control unit is further configured to control the first virtual object to discard the first virtual consumable it owns; and to send a discard marker message to the second virtual object based on the location of the first virtual consumable; or,

[0275] The second control unit is further configured to control the first virtual object to discard the first virtual consumable; or,

[0276] The third control unit is further configured to control the first virtual object to send a first request message to the second virtual object, wherein the first request message contains the name of the first virtual consumable.

[0277] Optionally, the interactive operation is the discard mark operation or the discard operation;

[0278] The first control unit is used for:

[0279] If the first virtual consumable is not a virtual consumable consumed by the virtual items owned by the first virtual object, control the first virtual object to discard the first virtual consumable.

[0280] Optionally, the first control unit is further configured to:

[0281] If the first virtual consumable is a virtual consumable consumed by the virtual items owned by the first virtual object, a discard confirmation control is displayed;

[0282] In response to the confirmation operation of the discard confirmation control, the first virtual object is controlled to discard the first virtual consumable it owns.

[0283] Optionally, before controlling the first virtual object to perform an interactive operation on the first virtual consumable, the device further includes:

[0284] A control display module is used to display a quantity setting control, which is used to set the quantity of the first virtual consumable to be requested or discarded.

[0285] A quantity determination module is used to determine a first quantity based on the setting operation of the quantity setting control;

[0286] The control module 2203 is used for:

[0287] Control the first virtual object to discard the first quantity of the first virtual consumables; based on the location of the first virtual consumables, send a discard marker message to the second virtual object; or,

[0288] Control the first virtual object to discard the first quantity of the first virtual consumables; or,

[0289] The first virtual object is controlled to send a first request message to the second virtual object. The first request message contains the name of the first virtual consumable and the first quantity.

[0290] Optionally, the interactive operation is the discard tag operation;

[0291] The control display module is used for:

[0292] Upon receiving a second request message for the first virtual consumable, obtain the second quantity contained in the second request message;

[0293] Based on the second quantity and the third quantity of the first virtual consumables owned by the first virtual object, the quantity setting control is displayed, wherein when the third quantity is greater than or equal to the second quantity, the quantity setting control initially displays the second quantity; when the third quantity is less than the second quantity, the quantity setting control initially displays the third quantity.

[0294] Optionally, the control display module is used for:

[0295] If the duration of the trigger operation for the first consumable option in the consumable option bar exceeds a duration threshold, the quantity setting control is displayed.

[0296] Optionally, when the interaction operation is the discard operation or the discard mark operation, after controlling the first virtual object to perform the interaction operation for the first virtual consumable, the device further includes:

[0297] The option update module is used to update the first consumable option in the consumable option bar when the remaining quantity of the first virtual consumable after being discarded is greater than zero.

[0298] The option update module is further configured to update the first consumable option in the consumable option bar when the remaining quantity of the first virtual consumable after discarding is equal to zero and the first virtual object has a virtual item that consumes the first virtual consumable.

[0299] The option removal module is used to remove the first consumable option from the consumable option bar when the remaining quantity of the first virtual consumable is equal to zero after being discarded, and the first virtual object does not have any virtual items that consume the first virtual consumable.

[0300] Optionally, the display module 2201 is used for:

[0301] In response to a fourth trigger operation on the consumable filling control, the consumable option bar is displayed. The consumable filling control is used to trigger the filling of virtual consumables for carried virtual items, and the fourth trigger operation is different from the fifth trigger operation used to trigger the filling of virtual consumables.

[0302] or,

[0303] In response to the sixth trigger operation of the consumable display control associated with the consumable fill control, the consumable option bar is displayed.

[0304] Optional,

[0305] The consumables option bar includes consumables options corresponding to the second virtual consumables, where the second virtual consumables refer to the virtual consumables consumed by the virtual items owned by the first virtual object.

[0306] or,

[0307] The consumables option bar contains consumables options corresponding to all types of virtual consumables, and the consumables options corresponding to the second virtual consumable are displayed together in the consumables option bar.

[0308] In summary, in this embodiment, the terminal uses the consumables option bar as the entry point for controlling the first virtual object to perform interactive operations. While displaying the consumables option bar, it also displays consumable options corresponding to at least one virtual consumable. Based on the received trigger operation on the first consumable option in the consumables option bar, the terminal controls the first virtual object to perform interactive operations on the first virtual consumable. These interactive operations include at least one of the following: a discard operation, a discard mark operation, and a request operation. This achieves the goal of using the consumables option bar as a unified entry point to control the first virtual object to perform multiple interactive operations on the first virtual consumable, simplifying the path for controlling the first virtual object to perform interactive operations and improving the execution efficiency of interactive operations.

[0309] It should be noted that the apparatus provided in the above embodiments is only an example of the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their implementation process can be found in the method embodiments, which will not be repeated here.

[0310] Please refer to Figure 23 This diagram illustrates a structural block diagram of a terminal 2300 provided in an exemplary embodiment of this application. The terminal 2300 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player, or MP4 player. The terminal 2300 may also be referred to as a user equipment, portable terminal, or other names.

[0311] Typically, terminal 2300 includes: processor 2301, memory 2302 and display screen 2303.

[0312] Processor 2301 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 2301 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 2301 may also include a main processor and a coprocessor. The main processor, also known as a Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 2301 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 2301 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0313] The memory 2302 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 2302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 2302 are used to store at least one instruction, which is executed by the processor 2301 to implement the virtual consumable request / discard method provided in the embodiments of this application.

[0314] Display screen 2303 is a component used for displaying images. Optionally, display screen 2303 also has touch functionality, allowing users to control the displayed content by performing touch operations on the display screen 2303. For example, display screen 2303 can be a touch screen display of a smartphone, or display screen 2303 can be a non-touch screen display of a television terminal.

[0315] Those skilled in the art will understand that Figure 23 The structure shown does not constitute a limitation on terminal 2300 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0316] This application also provides a computer-readable storage medium storing at least one program that is loaded and executed by a processor to implement the virtual consumables request and discard method described in the above embodiments.

[0317] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A terminal's processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the virtual consumable request / discard method provided in various alternative implementations of the above aspect.

[0318] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or code on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein communication media include any medium that facilitates the transmission of a computer program from one place to another. Storage media can be any available medium accessible to a general-purpose or special-purpose computer.

[0319] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for requesting and discarding virtual consumables, characterized in that, The method includes: Display a consumables option bar, which contains consumables options corresponding to at least one virtual consumable, which is consumed during the use of virtual items; Upon receiving a drag operation on the first consumable option in the consumable option bar, a first interactive recognition area and a second interactive recognition area are displayed. The first consumable option corresponds to a first virtual consumable. The first interactive recognition area is used to recognize that a discard mark operation is performed on the first virtual consumable, and the second interactive recognition area is used to recognize that a discard operation is performed on the first virtual consumable. If the endpoint of the drag operation is located in the first interaction recognition area, it is determined that a first trigger operation has been received; if the endpoint of the drag operation is located in the second interaction recognition area, it is determined that a second trigger operation has been received, wherein the first trigger operation and the second trigger operation are drag operations with different endpoint positions. If a click operation is received on the first consumable option, it is determined that a third trigger operation has been received; Upon receiving a first trigger operation, the first virtual object is controlled to perform a discard mark operation for the first virtual consumable; or, upon receiving a second trigger operation, the first virtual object is controlled to perform a discard operation for the first virtual consumable; or, upon receiving a third trigger operation, the first virtual object is controlled to perform a request operation for the first virtual consumable. The discard operation is used to discard the first virtual consumable in the virtual environment, the discard mark operation is used to discard the first virtual consumable in the virtual environment and mark the position of the first virtual consumable in the virtual environment, and the request operation is used to request the first virtual consumable from the second virtual object.

2. The method according to claim 1, characterized in that, The step of displaying a first interaction recognition area and a second interaction recognition area upon receiving a drag operation on the first consumable option includes: When a drag operation is received on the first consumable option and the remaining quantity of the first virtual consumable is greater than zero, the first interaction recognition area and the second interaction recognition area are displayed.

3. The method according to claim 1, characterized in that, The method further includes: Control the first virtual object to discard the first virtual consumable it owns; based on the location of the first virtual consumable, send a discard marker message to the second virtual object; or, Control the first virtual object to discard the first virtual consumable it owns; or, The first virtual object is controlled to send a first request message to the second virtual object, the first request message containing the name of the first virtual consumable.

4. The method according to claim 3, characterized in that, The interactive operation is either the discard mark operation or the discard operation; The control of the first virtual object to discard the first virtual consumable includes: If the first virtual consumable is not a virtual consumable consumed by the virtual items owned by the first virtual object, control the first virtual object to discard the first virtual consumable.

5. The method according to claim 4, characterized in that, The method of controlling the first virtual object to discard the first virtual consumable also includes: If the first virtual consumable is a virtual consumable consumed by the virtual items owned by the first virtual object, a discard confirmation control is displayed; In response to the confirmation operation of the discard confirmation control, the first virtual object is controlled to discard the first virtual consumable it owns.

6. The method according to claim 1, characterized in that, The method further includes: Display quantity setting control, the quantity setting control is used to set the quantity of the first virtual consumable to request or discard; Based on the setting operation of the quantity setting control, a first quantity is determined; The method further includes: Control the first virtual object to discard the first quantity of the first virtual consumables; based on the location of the first virtual consumables, send a discard marker message to the second virtual object; or, Control the first virtual object to discard the first quantity of the first virtual consumables; or, The first virtual object is controlled to send a first request message to the second virtual object. The first request message contains the name of the first virtual consumable and the first quantity.

7. The method according to claim 6, characterized in that, The interactive operation is the discard tag operation; The display quantity setting control includes: Upon receiving a second request message for the first virtual consumable, obtain the second quantity contained in the second request message; Based on the second quantity and the third quantity of the first virtual consumables owned by the first virtual object, the quantity setting control is displayed, wherein when the third quantity is greater than or equal to the second quantity, the quantity setting control initially displays the second quantity; when the third quantity is less than the second quantity, the quantity setting control initially displays the third quantity.

8. The method according to claim 6, characterized in that, The display quantity setting control includes: If the duration of the trigger operation for the first consumable option in the consumable option bar exceeds a duration threshold, the quantity setting control is displayed.

9. The method according to claim 1, characterized in that, The method further includes: If the remaining quantity of the first virtual consumable is greater than zero after being discarded, update the first consumable option in the consumable option bar; If the remaining quantity of the first virtual consumable is zero after being discarded, and the first virtual object has a virtual item that consumes the first virtual consumable, then update the first consumable option in the consumable option bar. If the remaining quantity of the first virtual consumable is zero after being discarded, and the first virtual object does not possess any virtual items that consume the first virtual consumable, then the first consumable option is removed from the consumable option bar.

10. The method according to claim 1, characterized in that, The consumables display options bar includes: In response to a fourth trigger operation on the consumable filling control, the consumable option bar is displayed. The consumable filling control is used to trigger the filling of virtual consumables for carried virtual items, and the fourth trigger operation is different from the fifth trigger operation used to trigger the filling of virtual consumables. or, In response to the sixth trigger operation of the consumable display control associated with the consumable fill control, the consumable option bar is displayed.

11. The method according to claim 1, characterized in that, The consumables option bar includes consumables options corresponding to the second virtual consumables, where the second virtual consumables refer to the virtual consumables consumed by the virtual items owned by the first virtual object. or, The consumables option bar contains consumables options corresponding to all types of virtual consumables, and the consumables options corresponding to the second virtual consumable are displayed together in the consumables option bar.

12. A device for requesting and discarding virtual consumables, characterized in that, The device includes: The display module is used to display a consumables option bar, which contains consumables options corresponding to at least one virtual consumable, which is consumed during the use of virtual items; The receiving module is configured to display a first interactive recognition area and a second interactive recognition area when a drag operation is received on a first consumable option in the consumable option bar. The first consumable option corresponds to a first virtual consumable. The first interactive recognition area is used to identify a discard mark operation performed on the first virtual consumable. The second interactive recognition area is used to identify a discard operation performed on the first virtual consumable. The receiving module is configured to determine that a first trigger operation has been received when the drag endpoint of the drag operation is located in the first interactive recognition area; and to determine that a second trigger operation has been received when the drag endpoint of the drag operation is located in the second interactive recognition area, wherein the first trigger operation and the second trigger operation are drag operations with different drag endpoint positions. The receiving module is used to determine that a third trigger operation has been received when a click operation on the first consumable option is received. The control module is configured to, upon receiving a first trigger operation, control the first virtual object to perform a discard mark operation on the first virtual consumable; or, upon receiving a second trigger operation, control the first virtual object to perform a discard operation on the first virtual consumable; or, upon receiving a third trigger operation, control the first virtual object to perform a request operation on the first virtual consumable. The discard operation is used to discard the first virtual consumable in the virtual environment, the discard mark operation is used to discard the first virtual consumable in the virtual environment and mark the position of the first virtual consumable in the virtual environment, and the request operation is used to request the first virtual consumable from the second virtual object.

13. The apparatus according to claim 12, characterized in that, The control module is also used for: Control the first virtual object to discard the first virtual consumable it owns; based on the location of the first virtual consumable, send a discard marker message to the second virtual object; or, Control the first virtual object to discard the first virtual consumable it owns; or, The first virtual object is controlled to send a first request message to the second virtual object, the first request message containing the name of the first virtual consumable.

14. The apparatus according to claim 13, characterized in that, The interactive operation is either the discard mark operation or the discard operation; The control module is also used for: If the first virtual consumable is not a virtual consumable consumed by the virtual items owned by the first virtual object, control the first virtual object to discard the first virtual consumable.

15. The apparatus according to claim 14, characterized in that, The control module is also used for: If the first virtual consumable is a virtual consumable consumed by the virtual items owned by the first virtual object, a discard confirmation control is displayed; In response to the confirmation operation of the discard confirmation control, the first virtual object is controlled to discard the first virtual consumable it owns.

16. A terminal, characterized in that, The terminal includes a processor and a memory, the memory storing at least one instruction, which is loaded and executed by the processor to implement the virtual consumable request and discard method as described in any one of claims 1 to 11.

17. A computer-readable storage medium, characterized in that, The readable storage medium stores at least one instruction, which is loaded and executed by a processor to implement the virtual consumable request and discard method as described in any one of claims 1 to 11.

18. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform a method for requesting and discarding virtual consumables as described in any one of claims 1 to 11.