WO2024037156A1 - 虚拟消耗品的索要丢弃方法、装置、终端及存储介质 - Google Patents

虚拟消耗品的索要丢弃方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2024037156A1
WO2024037156A1 PCT/CN2023/099736 CN2023099736W WO2024037156A1 WO 2024037156 A1 WO2024037156 A1 WO 2024037156A1 CN 2023099736 W CN2023099736 W CN 2023099736W WO 2024037156 A1 WO2024037156 A1 WO 2024037156A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
consumable
consumables
option
discard
Prior art date
Application number
PCT/CN2023/099736
Other languages
English (en)
French (fr)
Other versions
WO2024037156A9 (zh
Inventor
崔维健
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2024037156A1 publication Critical patent/WO2024037156A1/zh
Publication of WO2024037156A9 publication Critical patent/WO2024037156A9/zh

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Definitions

  • Embodiments of the present application relate to the field of human-computer interaction technology, and in particular to a method, device, terminal and storage medium for requesting and discarding virtual consumables.
  • First-Person Shooting game is an application based on a three-dimensional virtual environment. Users can control virtual objects in the virtual environment to perform actions such as walking, running, climbing, shooting, etc., and multiple users Teams can be formed online to complete a task together in the same virtual environment.
  • Embodiments of the present application provide a method, device, terminal and storage medium for requesting and discarding virtual consumables.
  • the technical solutions are as follows:
  • embodiments of the present application provide a method for requesting and discarding virtual consumables.
  • the method is executed by a terminal.
  • the method includes:
  • the consumables option bar includes at least one consumables option corresponding to the virtual consumable
  • control the first virtual object to perform an interactive operation for the first virtual consumable, the interactive operation including at least one of a discard operation, a discard mark operation and a request operation;
  • the discard operation is used to discard the first virtual consumable in the virtual environment
  • the discard marking operation is used to discard the first virtual consumable in the virtual environment and mark the first virtual consumable.
  • the location of the consumable in the virtual environment, and the request operation is used to request the first virtual consumable from the second virtual object.
  • embodiments of the present application provide a device for requesting and discarding virtual consumables, and the device includes:
  • a display module configured to display a consumables option bar, where the consumables option bar contains at least one consumables option corresponding to a virtual consumable;
  • a receiving module configured to receive a triggering operation on the first consumable option in the consumable option column, where the first consumable option corresponds to the first virtual consumable;
  • a control module configured to control the first virtual object to perform an interactive operation for the first virtual consumable based on the trigger operation, where the interactive operation includes at least one of a discard operation, a discard mark operation, and a request operation;
  • the discard operation is used to discard the first virtual consumable in the virtual environment
  • the discard marking operation is used to discard the first virtual consumable in the virtual environment and mark the first virtual consumable.
  • the location of the consumable in the virtual environment, and the request operation is used to request the first virtual consumable from the second virtual object.
  • inventions of the present application provide a terminal.
  • the terminal includes a processor and a memory. At least one instruction is stored in the memory. The at least one instruction is loaded and executed by the processor to implement the above. The method of requesting and discarding virtual consumables as described in this aspect.
  • embodiments of the present application provide a computer-readable storage medium, the readable storage medium stores At least one instruction is loaded and executed by the processor to implement the method for requesting and discarding virtual consumables as described in the above aspect.
  • embodiments of the present application provide a computer program product, and the computer program product and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for requesting and discarding virtual consumables provided in the above aspect.
  • the terminal uses the consumables option bar as an entrance to control the first virtual object to perform interactive operations, displays consumable options corresponding to at least one virtual consumable in the consumables option bar, and based on the received consumption information
  • the triggering operation of the first consumable item in the item option column controls the first virtual object to perform an interactive operation for the first virtual consumable.
  • the interactive operation includes at least one of a discard operation, a discard mark operation and a request operation, thereby achieving Using the consumables option bar as a unified entrance, the first virtual object is controlled to perform a variety of interactive operations on the first virtual consumables, which simplifies the path for controlling the first virtual object to perform interactive operations and improves the execution efficiency of the interactive operations.
  • Figure 1 shows a schematic diagram of an implementation environment provided by an embodiment of the present application
  • Figure 2 shows a flow chart of a method for requesting and discarding virtual consumables provided by an exemplary embodiment of the present application
  • Figure 3 is a schematic diagram of an interface for receiving a triggering operation on a first consumable option and controlling a first virtual object to perform an interactive operation, according to an exemplary embodiment of the present application;
  • Figure 4 shows a flow chart of a method for requesting and discarding virtual consumables provided by another exemplary embodiment of the present application
  • Figure 5 is a schematic interface diagram of an exemplary embodiment of the present application showing that the first trigger operation and the second trigger operation are drag operations with different drag end positions;
  • Figure 6 shows a flow chart of a method for requesting and discarding virtual consumables provided by another exemplary embodiment of the present application
  • Figure 7 is a schematic diagram of an interface displaying a consumables option bar according to an exemplary embodiment of the present application.
  • Figure 8 is a schematic diagram of an interface for controlling a first virtual object to perform a discard mark operation according to an exemplary embodiment of the present application
  • Figure 9 is a schematic diagram of an interface showing a discard confirmation control according to an exemplary embodiment of the present application.
  • Figure 10 is a schematic interface diagram of a display quantity setting control according to an exemplary embodiment of the present application.
  • Figure 11 is a schematic diagram of an interface for controlling a first virtual object to perform a discarding operation according to an exemplary embodiment of the present application
  • Figure 12 is a schematic diagram of an interface for controlling a first virtual object to perform a request operation according to an exemplary embodiment of the present application
  • Figure 13 shows a flow chart of a method for requesting and discarding virtual consumables provided by another exemplary embodiment of the present application
  • Figure 14 is a schematic interface diagram of a display quantity setting control shown in another exemplary embodiment of the present application.
  • Figure 15 is a schematic diagram of an interface for controlling a first virtual object to perform a discard mark operation according to another exemplary embodiment of the present application
  • Figure 16 is a schematic diagram of an interface for controlling a first virtual object to perform a request operation according to another exemplary embodiment of the present application
  • Figure 17 is a schematic interface diagram for updating the consumables option bar according to an exemplary embodiment of the present application.
  • Figure 18 is a schematic interface diagram of removing the first consumable option according to an exemplary embodiment of the present application.
  • Figure 19 shows a flow chart of an interactive recognition area display process provided by an exemplary embodiment of the present application.
  • Figure 20 shows a flow chart of a process of controlling a first virtual object to perform a discard mark operation provided by another exemplary embodiment of the present application
  • Figure 21 shows a flow chart of a process of controlling a first virtual object to perform a discarding operation provided by another exemplary embodiment of the present application
  • Figure 22 is a structural block diagram of a device for requesting and discarding virtual consumables provided by an exemplary embodiment of the present application
  • Figure 23 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • FIG. 1 shows a schematic diagram of an implementation environment provided by an embodiment of the present application.
  • the implementation environment may include: a first terminal 110, a server 120 and a second terminal 130.
  • the first terminal 110 runs an application program 111 that supports a virtual environment.
  • the application program 111 may be a multi-player online battle program.
  • the application 111 may be any one of a Multiplayer Online Battle Arena (MOBA) game and a simulation game (Simulation Game, SLG).
  • the application 111 is a first-person shooting game (First-Person Shooting game, FPS) as an example.
  • the first terminal 110 is a terminal used by the first user 112.
  • the first user 112 uses the first terminal 110 to control the first virtual object located in the virtual environment to perform activities.
  • the first virtual object may be called the master virtual object of the first user 112. object.
  • the activities of the first virtual object include, but are not limited to: at least one of adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, throwing, and releasing skills.
  • the first virtual object is a first virtual character, such as a simulation character or an animation character.
  • the second terminal 130 runs an application program 131 that supports a virtual environment.
  • the application program 131 may be a multi-player online battle program.
  • the user interface of the application program 131 is displayed on the screen of the second terminal 130.
  • the client can be any one of MOBA games and SLG games.
  • the application 131 is an FPS game.
  • the second terminal 130 is a 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 to perform activities.
  • the second virtual object may be called the master virtual object of the second user 132. Role.
  • the second virtual object is a second virtual character, such as a simulation character or an animation character.
  • first virtual object and the second virtual object are in the same virtual world.
  • first virtual object and the second virtual object may belong to the same camp, the same team, the same organization, have a friend relationship, or have temporary communication permissions.
  • first virtual object and the second virtual object may belong to different camps, different teams, different organizations or have a hostile relationship.
  • the application programs installed on the first terminal 110 and the second terminal 130 are the same, or the application programs installed on the two terminals are the same type of application programs on different operating system platforms (Android or IOS).
  • the first terminal 110 may generally refer to one of the plurality of terminals
  • the second terminal 130 may generally refer to another of the plurality of terminals.
  • This embodiment only takes the first terminal 110 and the second terminal 130 as an example.
  • the device types of the first terminal 110 and the second terminal 130 are the same or different, and the device types include: smart phones, tablet computers, e-book readers, Moving Picture Experts Group Audio Layer III, MP3 ) player, at least one of a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer, and a desktop computer.
  • MP4 Moving Picture Experts Group Audio Layer IV
  • terminals Only two terminals are shown in FIG. 1 , but there are multiple other terminals that can access the server 120 in different embodiments.
  • terminals there are one or more terminals corresponding to developers.
  • a development and editing platform for applications that support virtual environments is installed on this terminal. Developers can edit and update applications on this terminal. and transmit the updated application installation package to the server 120 through a wired or wireless network.
  • the first terminal 110 and the second terminal 130 can download the application installation package from the server 120 to update the application.
  • the first terminal 110, the second terminal 130 and other terminals are connected to the server 120 through a wireless network or a wired network.
  • the server 120 includes at least one of a server, a server cluster composed of multiple servers, a cloud computing platform, and a virtualization center.
  • the server 120 is used to provide background services for applications supporting three-dimensional virtual environments.
  • the server 120 undertakes the main calculation work and the terminal undertakes the secondary calculation work; or the server 120 undertakes the secondary calculation work and the terminal undertakes the main calculation work; or the server 120 and the terminal adopt a distributed computing architecture for collaborative computing. .
  • the server 120 includes a memory 121, a processor 122, a user account database 123, a battle service module 124, and a user-oriented input/output interface (Input/Output Interface, I/O interface) 125.
  • the processor 122 is used to load instructions stored in the server 120 and process the user account database 123 and the battle service module.
  • the data in 124; the user account database 123 is used to store data of user accounts used by the first terminal 110, the second terminal 130 and other terminals, such as the avatar of the user account, the nickname of the user account, the combat effectiveness index of the user account, the user
  • the service area where the account is located; the battle service module 124 is used to provide multiple battle rooms for users to compete, such as 1V1 battles, 3V3 battles, 5V5 battles, etc.;
  • the user-oriented I/O interface 125 is used to communicate with users through wireless networks or wired networks.
  • the first terminal 110 and/or the second terminal 130 establish communication to exchange data.
  • FIG. 2 shows a flow chart of a method for requesting and discarding virtual consumables provided by an exemplary embodiment of the present application.
  • This embodiment illustrates the method using the first terminal 110 or the second terminal 130 in the implementation environment shown in Figure 1 or other terminals in the implementation environment as an example.
  • the method includes the following steps:
  • Step 201 Display a consumables option bar, which contains at least one consumables option corresponding to the virtual consumable.
  • virtual consumables are used by virtual objects, or by virtual props owned by virtual objects.
  • the virtual consumables may be virtual energy supplement drinks, virtual first aid kits, and other virtual supplies for use by virtual objects; in other embodiments, the virtual consumables may be virtual bullets, virtual arrows, etc. for virtual objects.
  • the embodiments of this application do not limit the specific types of virtual consumables.
  • the consumable options bar is specifically used to display virtual consumables.
  • the consumables option bar is independent of the backpack bar, that is, the consumables option bar can be called out through operations without calling out the backpack bar.
  • Virtual objects refer to the user's main control objects in the three-dimensional virtual environment.
  • the virtual object may be at least one of a virtual character, a virtual animal, an animated character, a virtual vehicle, and a virtual animal.
  • the virtual environment is the three-dimensional environment where virtual objects are located in the virtual world when the application in the terminal is running.
  • the virtual environment is observed through a camera model.
  • the camera model automatically follows the virtual character in the virtual world, that is, when the position of the virtual object in the virtual world changes, the camera model follows the position of the virtual object in the virtual world and changes simultaneously, and the camera The model is always within a preset distance of the virtual object in the virtual world.
  • the relative positions of the camera model and the virtual object do not change.
  • the camera model refers to the three-dimensional model located around the virtual object in the virtual world.
  • the camera model is located near or on the head of the virtual object;
  • the camera model can be located behind the virtual object and bound to the virtual object, or it can be located at any position at a preset distance from the virtual object.
  • the virtual object in the virtual world can be observed from different angles through the camera model.
  • the camera model is located behind the virtual object (such as the head and shoulders of the virtual object).
  • the perspective also includes other perspectives, such as a top-down perspective; when the top-down perspective is used, the camera model can be located above the head of the virtual object, and the top-down perspective is from the air.
  • the camera model is not actually displayed in the virtual world, that is, the camera model is not displayed in the virtual world displayed by the user interface.
  • the terminal displays consumable options corresponding to at least one virtual consumable held by the virtual object in the consumable option column.
  • the consumable option is displayed with an icon corresponding to the virtual consumable, and may also include the name and quantity of the corresponding virtual consumable.
  • the terminal arranges and displays consumable options corresponding to at least one virtual consumable in the consumable option column according to the number of virtual consumables.
  • the terminal arranges and displays consumable options corresponding to at least one virtual consumable in the consumable option column according to the name of the virtual consumable.
  • the terminal displays a consumables option bar 301, and at least one virtual consumable displayed in the consumables option bar 301 is consumed by the first virtual object 302 in the process of using the virtual props.
  • Step 202 Receive a triggering operation on the first consumable option in the consumable option column.
  • the first consumable option corresponds to the first consumable option.
  • the terminal receives the user's triggering operation on the first consumable option in the consumable option column, thereby determining the first virtual consumable corresponding to the first consumable option.
  • the terminal may Perform frame selection processing on the first consumable option.
  • the terminal receives a triggering operation on the first consumable option 303 in the consumable option bar 301, and performs frame selection processing on the first consumable option 303.
  • Step 203 Based on the trigger operation, control the first virtual object to perform an interactive operation for the first virtual consumable.
  • the interactive operation includes at least one of a discard operation, a discard mark operation, and a request operation.
  • the terminal controls the first virtual object to perform an interactive operation for the first virtual consumable based on the received trigger operation for the first consumable option.
  • different trigger operations are used to trigger the execution of different types of interactive operations.
  • different trigger operations can be different types of trigger operations, such as click operations, drag operations, long press operations, press operations, etc.
  • different trigger operations can be trigger operations of the same type but with different parameters, such as Drag operations with different drag end points, long press operations with different durations, or press operations with different strengths, etc.
  • 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, and the discard mark operation is used to remove the first virtual consumable.
  • the item is dropped into the virtual environment, and the location of the first virtual consumable item in the virtual environment is marked.
  • the request operation is used to request the first virtual consumable item from the second virtual object.
  • the number of first virtual consumables corresponding to the first consumable option in the consumable option column is greater than zero, and the terminal controls the first virtual object to perform a discard operation or discard mark for the first virtual consumable. After the operation, the number of the first virtual consumable corresponding to the first consumable option in the consumable option column will be reduced accordingly.
  • the process of the terminal controlling the first virtual object to perform the request operation for the first virtual consumable can be performed by the terminal: after the terminal receives the trigger operation for the first consumable option, it can obtain the first virtual consumable.
  • the name corresponds to sending a request message containing the name of the first virtual consumable through the server to the terminal controlling the second virtual object.
  • the terminal controls the first virtual object 302 to perform a request operation for the first virtual consumable.
  • the terminal uses the consumables option bar as an entrance to control the first virtual object to perform interactive operations, displays at least one consumable option corresponding to the virtual consumable in the consumables option bar, and based on The received triggering operation on the first consumable option in the consumable option bar controls the first virtual object to perform an interactive operation on the first virtual consumable.
  • the interactive operation includes at least one of a discard operation, a discard mark operation, and a request operation.
  • the terminal can set different trigger operations to correspond to different interactive operations, thereby distinguishing between different trigger operations. Control different interactive operations performed by the first virtual object.
  • FIG. 4 shows a flow chart of a method for requesting and discarding virtual consumables provided by another exemplary embodiment of the present application.
  • This embodiment illustrates the method using the first terminal 110 or the second terminal 130 in the implementation environment shown in Figure 1 or other terminals in the implementation environment as an example.
  • the method includes the following steps:
  • Step 401 Display the consumables option bar, which contains at least one consumables option corresponding to the virtual consumable.
  • step 201 For the specific implementation of this step, reference can be made to step 201, which will not be described again in this embodiment.
  • Step 402 Receive a triggering operation on the first consumable option in the consumable option column, where the first consumable option corresponds to the first virtual consumable.
  • the terminal is configured with corresponding trigger operations for different interactive operations, which are respectively the first The 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.
  • the first trigger operation, the second trigger operation and the third trigger operation may be different types of trigger operations, which may be a drag operation, a long press operation, a click operation, etc.
  • the first trigger operation, the second trigger operation and the third trigger operation may be three different forms corresponding to the same type of trigger operation.
  • the first trigger operation, the second trigger operation and the third trigger operation are three trigger operations respectively.
  • the first trigger operation corresponds to the discard mark operation
  • the second trigger operation corresponds to the discard operation
  • the first trigger operation and the second trigger operation are drag operations with different drag end positions
  • the terminal receives the consumption of
  • the process of triggering the first consumable item option in the item option column may include the following sub-steps.
  • the terminal When receiving the user's drag operation on the first consumable item, the terminal displays a first interaction identification area and a second interaction identification area, wherein the first interaction identification area is used to identify the discarding of the first virtual consumable item. Mark operation, the second interaction identification area is used to identify the discard operation performed on the first virtual consumable product.
  • the terminal when a drag operation on the first consumable option 501 is received, the terminal displays a first interaction identification area 502 and a second interaction identification area 503 .
  • the first interaction recognition area cannot recognize that the discard marking operation is performed on the first virtual consumable, and the second interaction recognition area cannot recognize Perform a discard operation on the first virtual consumable product.
  • the terminal in order to improve the execution efficiency of the discard mark operation and the discard operation and reduce unnecessary steps, after receiving the drag operation on the first consumable option and the remaining quantity of the first virtual consumable If it is greater than zero, the terminal displays the first interaction identification area and the second interaction identification area; if a drag operation on the first consumable option is received and the remaining quantity of the first virtual consumable is zero, the terminal The first interaction recognition area and the second interaction recognition area are not displayed.
  • the drag end position is the real-time drag position when the drag operation ends.
  • the terminal determines that the first trigger operation is received.
  • the terminal can highlight the first interaction recognition area to prompt the user that the first virtual consumable has been dragged to to the first interactive recognition area.
  • the terminal determines that the first trigger operation is received.
  • the terminal determines that the second trigger operation is received.
  • the terminal can highlight the second interaction recognition area to prompt the user that the first virtual consumable has been dragged to to the second interactive recognition area.
  • the terminal determines that the second trigger operation is received.
  • Step 403 Upon receiving the first trigger operation, control the first virtual object to perform a discard marking operation for the first virtual consumable.
  • the terminal upon receiving the first trigger operation, controls the first virtual object to perform a discard marking operation for the first virtual consumable, and discards the first virtual consumable in the virtual environment, and mark 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 the user to manually mark it, and in response to the discard marking operation, the terminal can generate the first virtual consumable
  • the marking message notification corresponding to the item may include the discarded quantity of the first virtual consumable, the discarded location, the distance between the discarded location and other virtual objects, etc. This is not limited in the embodiment of the present application.
  • the terminal controls the first virtual object to discard and mark all the first virtual consumables it owns, or the terminal controls the first virtual object to discard and mark some of the first virtual consumables it owns.
  • Step 404 When receiving the second trigger operation, control the first virtual object to perform a discard operation for the first virtual consumable.
  • the terminal upon receiving the second triggering operation, controls the first virtual object to perform a discarding operation on the first virtual consumable, and discards the first virtual consumable in the virtual environment.
  • the terminal controls the first virtual object to discard all the first virtual consumables it owns, or the terminal controls the first virtual object to discard part of the first virtual consumables it owns.
  • Step 405 When the third trigger operation is received, control the first virtual object to perform a request operation for the first virtual consumable.
  • the terminal upon receiving the third trigger operation, 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. Virtual consumables.
  • the third trigger operation is a click operation.
  • the terminal determines that the third trigger operation is received.
  • the terminal in order to keep the request operation consistent with the triggering logic of the discard and discard mark operations, the terminal also displays a third interaction identification area when a drag operation on the first consumable option is received.
  • the drag end position of the drag operation is located in the third interaction recognition area, it is determined that the third trigger operation is received.
  • the embodiment of the present application does not limit the specific type of the third triggering operation.
  • the terminal can also control the first virtual object to send a request message to the second virtual object.
  • the request message can include the requested quantity for the first virtual consumable, the current location information of the first virtual object, etc.
  • the first trigger operation to correspond to the discard mark operation
  • the second trigger operation to correspond to the discard operation
  • the third trigger operation to correspond to the request operation
  • the consumable option bar is not directly displayed in the user interface.
  • the specific operation process is also different.
  • FIG. 6 shows a flow chart of a method for requesting and discarding virtual consumables provided by another exemplary embodiment of the present application.
  • This embodiment illustrates the method using the first terminal 110 or the second terminal 130 in the implementation environment shown in Figure 1 or other terminals in the implementation environment as an example.
  • the method includes the following steps:
  • Step 601 Display the consumables option bar, which contains at least one consumables option corresponding to the virtual consumable.
  • the consumables option bar is hidden in the user interface in abbreviated form, and in response to the fourth triggering operation on the consumables filling control, the terminal displays the consumables
  • the option bar is to trigger the display of the consumable option bar by reusing the consumable fill control.
  • the consumable filling control is used to trigger filling of virtual consumables for the virtual props carried.
  • the terminal fills virtual consumables for the virtual props currently carried by the first virtual object. Therefore, in order To distinguish different trigger operations for the consumable filling control, the fourth trigger operation is a trigger operation different from the fifth trigger operation.
  • the fourth triggering operation is a double-click operation on the consumables filling control
  • the fifth triggering operation is a clicking operation on the consumables filling control.
  • the terminal displays the consumables option bar.
  • the terminal fills virtual consumables for the virtual props currently carried by the first virtual object.
  • the terminal in order to prevent the user from misoperation on the consumables filling control, sets a consumables display control associated with the consumables filling control on the user interface, in response to the sixth trigger operation on the consumables display control , the terminal displays the consumables option bar.
  • the terminal can display the consumables display control around the consumables filling control.
  • the sixth trigger operation may be a click operation on the consumables display control.
  • the terminal in response to a click operation on the consumables display control 702 associated with the consumables filling control 701, the terminal displays the consumables option bar 703.
  • displaying all consumable options in the consumable option bar may result in too many consumable options.
  • the user's selection is time-consuming and other issues, so the terminal only displays the consumable options corresponding to the second virtual consumable in the consumable option column, where the second virtual consumable refers to the virtual consumption consumed by the virtual props owned by the first virtual object. Taste.
  • virtual props A and B correspond to virtual consumable 1
  • virtual props C and D correspond to virtual consumable 2
  • virtual props E correspond to virtual consumable 3
  • virtual props F and G correspond to virtual consumable 4.
  • consumable options corresponding to virtual consumables 1 and 3 are displayed in the consumable options column.
  • the terminal displays consumable options corresponding to all types of virtual consumables in the consumable option column, and in order to improve the user's choice of consumables For the efficiency of selecting consumable options in the option bar, the terminal displays the consumable options corresponding to the second virtual consumable in a centralized manner in the consumable option bar.
  • the terminal can collectively display the consumable options corresponding to the second virtual consumable product in the first half of the consumable option bar, and display the consumable options corresponding to other virtual consumables in the second half of the consumable option bar.
  • virtual props A and B correspond to virtual consumable 1
  • virtual props C and D correspond to virtual consumable 2
  • virtual props E correspond to virtual consumable 3
  • virtual props F and G correspond to virtual consumable 4.
  • the consumable options corresponding to virtual consumables 1 and 3 are concentrated in the first half of the consumable option column, and the consumable options corresponding to virtual consumables 2 and 4 are concentrated in the The second half of the consumable options bar.
  • Step 602 Receive a triggering operation on the first consumable option in the consumable option column, where the first consumable option corresponds to the first virtual consumable.
  • step 402 For the specific implementation of this step, reference can be made to step 402, which will not be described again in this embodiment.
  • Step 603 When the interaction operation is a discard mark operation, control the first virtual object to discard the first virtual consumable it owns; and based on the location of the first virtual consumable, send a discard mark message to the second virtual object.
  • the terminal controls the first virtual object to discard the first virtual consumable it owns, and based on the first virtual The position of the consumable in the virtual environment is obtained, the position information corresponding to the first virtual consumable is obtained, and a discard mark message containing the position information is sent to the second virtual object.
  • the discard mark message may include the name of the first virtual consumable, the discarded quantity of the first virtual consumable, and the location information of the first virtual consumable in the virtual environment.
  • the terminal upon receiving a drag operation of dragging the first consumable option 801 to the first interaction identification area 802, the terminal controls the first virtual object 803 to discard the first virtual consumable. 804, and sends a discard mark message 805 to the second virtual object according to the position of the first virtual consumable 804 in the virtual environment, where the discard mark message 805 contains the position information of the first virtual consumable 804 in the virtual environment and the third The name of a virtual consumable 804.
  • the terminal marks and displays the location of the first virtual consumable in the virtual environment in the thumbnail map.
  • the terminal may determine the virtual props owned by the first virtual object, and determine based on the virtual consumables consumed by the virtual props. Whether a confirmation operation is required when discarding the marked first virtual consumable.
  • the terminal controls the first virtual object to discard all the first virtual consumables it owns.
  • the terminal displays a discard confirmation control and waits for further confirmation of the discard mark operation by the user.
  • the terminal controls the first virtual object to discard all the first virtual consumables it owns; in response to the cancellation operation of the discard confirmation control, the terminal cancels the control of the first virtual object to discard all the first virtual consumables it owns. Consumables.
  • the first virtual consumables corresponding to the first consumables option 901 belong to the virtual consumables consumed by the virtual props owned by the first virtual object 903.
  • the terminal displays the discard confirmation control 904.
  • the terminal controls the first The virtual object 903 performs a discard marking operation for the first virtual consumable product.
  • the discard quantity may be adjusted before discarding the first virtual consumables.
  • the terminal in response to the setting operation of the discard confirmation control, displays a quantity setting control, the quantity setting control being used to set the quantity of the discarded first virtual consumable. Based on the setting operation of the quantity setting control, the terminal determines to discard the first quantity of the first virtual consumables, and controls the first virtual object to discard the first quantity of the first virtual consumables.
  • the terminal in response to the user's setting operation on the discard confirmation control 1001 (clicking the setting button), the terminal displays the quantity setting control 1002, and based on the user's setting operation on the quantity setting control 1002, determines to discard the first The first number of virtual consumables is 5, thereby controlling the first virtual object 1003 to discard and mark 5 first virtual consumables.
  • Step 604 When the interaction operation is a discard operation, control the first virtual object to discard the first virtual consumables it owns.
  • the terminal upon receiving a drag operation of dragging the first consumable option to the second interaction identification area, controls the first virtual object to discard the owned first virtual consumable.
  • the terminal upon receiving a drag operation of dragging the first consumable option 1101 to the second interaction identification area 1102, the terminal controls the first virtual object 1103 to discard the owned first virtual object. Consumables 1104.
  • the discard confirmation control and quantity can also be set.
  • Set the control For the specific implementation of this process, please refer to the description of controlling the first virtual object to perform the discard mark operation in step 603, which will not be described again here.
  • Step 605 When the interactive operation is a request operation, control the first virtual object to send a first request message to the second virtual object, where the first request message includes the name of the first virtual consumable.
  • the terminal controls the first virtual object to send the first request message to the second virtual object, wherein: A request message includes the name of the first virtual consumable product.
  • 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.
  • the first request message may include the current location information of the first virtual object.
  • the consumables option bar can be triggered to be displayed in the user interface, thus shortening the consumption time.
  • the outgoing path of the product option bar can reduce the probability of misoperation.
  • 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.
  • FIG. 13 shows a flow chart of a method for requesting and discarding virtual consumables provided by another exemplary embodiment of the present application.
  • This embodiment illustrates the method using the first terminal 110 or the second terminal 130 in the implementation environment shown in Figure 1 or other terminals in the implementation environment as an example.
  • the method includes the following steps:
  • Step 1301 Display the consumables option bar, which contains at least one consumables option corresponding to the virtual consumable.
  • Step 1302 Receive a triggering operation on the first consumable option in the consumable option column, where the first consumable option corresponds to the first virtual consumable.
  • step 1301 and step 1302 For the specific implementation of step 1301 and step 1302, reference can be made to step 601 and step 602, which will not be described in detail here in this embodiment.
  • Step 1303 Display the quantity setting control, which is used to set the quantity of requesting or discarding the first virtual consumable.
  • the first virtual consumable in order to improve the user's flexibility in requesting or discarding the quantity of the first virtual consumable, after receiving the user's triggering operation on the first consumable option in the consumable option bar, the first virtual consumable is controlled. Before the object performs an interactive operation on the first virtual consumable, the terminal displays a quantity setting control, which is used to set the interactive quantity of the first virtual consumable, that is, the quantity of the first virtual consumable requested or discarded.
  • the initially displayed quantity in the quantity setting control may be 0, or may be the entire quantity of the first virtual consumables owned by the first virtual object.
  • the terminal after receiving the user's triggering operation on the first consumable option 1401, the terminal displays the quantity setting control 1402.
  • the terminal when receiving the second request message for the first virtual consumable, the terminal obtains the second quantity contained in the second request message, where , the second request message is a request message for the first virtual consumable sent by other virtual objects in the same camp.
  • the terminal displays the quantity setting control.
  • the quantity initially displayed by the quantity setting control can be the second quantity that meets the requirements of other virtual objects; when the third quantity is less than the second quantity, the quantity setting control
  • the initially displayed quantity of the control may be a third quantity that meets the requirements of other virtual objects as much as possible.
  • the second virtual object in the same camp sends a request message for the first virtual consumable, and the request message indicates 10 first virtual consumables are needed.
  • the initial display quantity of the terminal display quantity setting control is 10; when the first virtual object has 5 first virtual consumables In the case of product, the initial display quantity of the terminal display quantity setting control is 5.
  • the user in order to increase the user's choice of whether to display the quantity setting control, the user can The operation duration corresponding to the user's triggering operation on the first consumable option in the consumable option column determines whether to display the quantity setting control.
  • the terminal displays a quantity setting control.
  • the terminal When the operation duration of the triggering operation for the first consumable option in the consumable option bar is less than the duration threshold, the terminal does not display the quantity setting control.
  • the terminal controls the third When a virtual object performs a request operation for the first virtual consumable, it does not include the requested quantity for the first virtual consumable; when the terminal controls the first virtual object to perform a discard operation or a discard mark operation for the first virtual consumable, Then directly discard all the first virtual consumables.
  • the terminal when the interactive operation is a discard mark operation, the terminal stays in the first interaction identification area based on the drag operation of the first consumable option, and the stay duration is greater than the duration threshold. , the quantity setting control is displayed.
  • the terminal when the interactive operation is a discard operation, the terminal stays in the second interaction identification area based on the drag operation of the first consumable option.
  • the stay duration is greater than the duration threshold, In this case, the quantity setting control is displayed.
  • the terminal displays the quantity setting control based on the dwell time of the click operation on the first consumable option, and when the dwell time is greater than the duration threshold.
  • the terminal sets the duration threshold to 0.2 seconds.
  • the terminal displays the quantity setting control; when the interactive operation is a request operation and the user's click operation on the first consumable option lasts longer than 0.2 seconds, the terminal displays the quantity setting control.
  • the terminal controls the first virtual object to discard all the first virtual consumables. product; when the interactive operation is a request operation and the user's click operation on the first consumable item stays for less than 0.2 seconds, the terminal controls the first virtual object to perform a quick request operation.
  • Step 1304 Determine the first quantity based on the setting operation of the quantity setting control.
  • the terminal adjusts the interactive quantity for the first virtual consumable based on the user's setting operation on the quantity setting control, thereby determining the first quantity.
  • the terminal in response to the setting operation on the quantity setting control 1501, the terminal determines that the interactive quantity for the first virtual consumable is 5.
  • Step 1305 When the interaction operation is a discard mark operation, control the first virtual object to discard the first number of first virtual consumables; send a discard mark message to the second virtual object based on the location of the first virtual consumables. .
  • the terminal controls the first virtual object Discarding a first quantity of first virtual consumables, and sending a discard mark message to the second virtual object based on the location of the first virtual consumables in the virtual environment.
  • the discard mark message may also include the discarded quantity of the first virtual consumable.
  • the terminal controls the first virtual object 1502 to discard five first virtual consumables 1503, and sends a discard mark message 1504 to the second virtual object, where the discard mark message 1504 contains the first virtual consumables 1503.
  • Step 1306 If the interactive operation is a discard operation, control the first virtual object to discard the first number of first virtual consumables.
  • the terminal controls the first virtual object to discard the first quantity of the first virtual consumables.
  • Virtual consumables In the process of controlling the first virtual object to perform a discarding operation for the first virtual consumables, based on the determined first quantity of the first virtual consumables, the terminal controls the first virtual object to discard the first quantity of the first virtual consumables. Virtual consumables.
  • Step 1307 When the interactive operation is a request operation, control the first virtual object to send the The first request message includes the name and the first quantity of the first virtual consumable.
  • the terminal controls the first virtual object to The second virtual object sends a first request message, where the first request message includes the name and the first quantity of the first virtual consumable.
  • the terminal controls the first virtual object 1601 to send a first request message 1603 to the second virtual object, where the A request message 1603 indicates that 5 first virtual consumables are required.
  • the terminal can determine the second quantity contained in the second request message and the first virtual object owned by the first virtual object.
  • the initial display quantity is reasonably determined when displaying the quantity setting control, which improves the efficiency of setting the discard quantity of the first virtual consumable.
  • the terminal needs to update and display the consumables option bar accordingly.
  • This process can include the following three situations:
  • the method of updating the first consumable option includes at least one of display status update, display content update, and display location update.
  • the display status may include display transparency, display size, display color, etc., which is not limited in this embodiment.
  • the terminal updates the first consumable option in the consumable option column, and the first consumable option contains In the case of the first virtual consumable quantity owned by the first virtual object, the first virtual consumable quantity in the first consumable option is updated.
  • the terminal sorts each consumable option in the consumable option column according to the number of each virtual consumable owned by the first virtual object, and the remaining number of the first virtual consumable after discarding is greater than zero. In the case of , the terminal sorts and updates each consumable option in the consumable option column based on the remaining quantity of the first virtual consumable.
  • the terminal when the remaining quantity of the first virtual consumable after discarding is equal to zero, and the first virtual object possesses virtual props that consume the first virtual consumable, in order to facilitate subsequent triggering of the first consumable option to perform the request operation, and the terminal continues to display the first consumable option in the consumable option column.
  • the terminal updates and displays the first consumable option in the consumable option column, and sets the first virtual consumable quantity in the first consumable option to zero.
  • the terminal displays the first consumable option with increased transparency.
  • the terminal changes the consumable option column 1702
  • the number of the first virtual consumables included in the first consumables option 1703 is set to zero, and the transparency display process of the first consumables option 1703 is performed.
  • the terminal removes the first consumables option from the consumables options bar.
  • the terminal removes the first consumable Option 1803 is removed from consumable options bar 1802.
  • the consumable option bar is updated and displayed based on the number of first virtual consumables owned by the first virtual object after discarding, thereby increasing the display effect of the consumable option bar. , improving the efficiency of selecting consumable options based on the consumable option bar.
  • FIG. 19 shows a flow chart of an interactive identification area process provided by an exemplary embodiment of the present application.
  • Step 1901 Receive a drag operation on the first consumable option.
  • the terminal receives the user's drag operation on the first consumable option in the consumable option bar.
  • Step 1902 Perform frame selection and display of the first consumable option.
  • the terminal In response to the user's drag operation on the first consumable option, the terminal performs frame selection and display on the first consumable option.
  • Step 1903 Determine whether the remaining quantity of the first virtual consumable is not zero.
  • step 1910 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.
  • Step 1904 Display the first interactive identification area.
  • the terminal displays a first interaction identification area, and the first interaction identification area is used to identify the execution of a discard mark operation on the first virtual consumable.
  • Step 1905 Display the second interactive identification area.
  • the terminal displays a second interaction identification area, and the second interaction identification area is used to identify the discarding operation of the first virtual consumable.
  • Step 1906 Determine whether to cancel the drag operation on the first consumable option.
  • Step 1907 Cancel the box selection display of the first consumable option.
  • the terminal cancels the box selection display on the first consumable option.
  • Step 1908 Hide the first interaction identification area.
  • the terminal hides the first interaction recognition area.
  • Step 1909 Hide the second interaction recognition area.
  • the terminal hides the second interaction recognition area.
  • Step 1910 Determine whether to cancel the drag operation on the first consumable option.
  • step 1911 is entered; if the drag operation on the first consumable option is not canceled, step 1902 is returned.
  • Step 1911 Cancel the box selection display of the first consumable option.
  • the terminal cancels the box selection display on the first consumable option.
  • FIG. 20 shows a flow chart of a process of controlling a first virtual object to perform a discard mark operation provided by an exemplary embodiment of the present application.
  • Step 2001 Receive an operation of dragging the first consumable item to the first interactive identification area.
  • the terminal receives the user's operation of dragging the first consumable item to the first interactive identification area.
  • Step 2002 Highlight the first interaction recognition area.
  • the terminal In response to the first consumable item being dragged to the first interactive recognition area, the terminal highlights the first interactive recognition area.
  • Step 2003 Determine whether the dragging end position is the first interaction recognition area.
  • step 2004 If the drag end position is the first interaction recognition area, proceed to step 2004; if the drag end position is not the first interaction recognition area, return to step 2002.
  • Step 2004 Determine whether the first virtual object possesses virtual props that consume the first virtual consumables.
  • first virtual object owns a virtual prop that consumes the first virtual consumable, proceed to steps 2005-2008; if the first virtual object does not own a virtual prop that consumes the first virtual consumable, proceed to steps 2009-2012. .
  • Step 2005 Control the first virtual object to discard the first virtual consumables it owns.
  • the terminal controls the first virtual object to discard the first virtual consumables it owns into the virtual environment.
  • Step 2006 Obtain the location of the first virtual consumable in the virtual environment.
  • the terminal obtains the location of the first virtual consumable in the virtual environment.
  • Step 2007 Send a discard mark message to the second virtual object.
  • the terminal controls the first virtual object to send a discard mark message to the second virtual object.
  • Step 2008 Update the first consumable option in the consumable option column.
  • the terminal updates and displays the first consumable option in the consumable option column, sets the first virtual consumable quantity in the first consumable option to zero, and increases the transparency of the first consumable option.
  • Step 2009 Control the first virtual object to discard the first virtual consumables it owns.
  • the terminal controls the first virtual object to discard the owned first virtual consumables to the virtual environment.
  • Step 2010 Obtain the location of the first virtual consumable in the virtual environment.
  • the terminal obtains the location of the first virtual consumable in the virtual environment.
  • Step 2011 Send a discard mark message to the second virtual object.
  • the terminal controls the first virtual object to send a discard mark message to the second virtual object.
  • Step 2012 Remove the first consumable option from the consumable option column.
  • the terminal simplifies the consumable options bar by removing the first consumable option from the consumable options bar.
  • Figure 21 shows a flow chart of a process of controlling a first virtual object to perform a discarding operation provided by an exemplary embodiment of the present application.
  • Step 2101 Receive an operation of dragging the first consumable item to the second interactive identification area.
  • the terminal receives the user's operation of dragging the first consumable item to the second interactive identification area.
  • Step 2102 Highlight the second interaction recognition area.
  • the terminal In response to the first consumable item being dragged to the second interactive recognition area, the terminal highlights the second interactive recognition area.
  • Step 2103 Determine whether the dragging end position is the second interaction recognition area.
  • step 2104 If the drag end position is the second interaction recognition area, proceed to step 2104; if the drag end position is not the second interaction recognition area, return to step 2102.
  • Step 2104 Determine whether the first virtual object owns virtual props that consume the first virtual consumables.
  • first virtual object owns a virtual prop that consumes the first virtual consumable, proceed to steps 2105-2106; if the first virtual object does not own a virtual prop that consumes the first virtual consumable, proceed to steps 2107-2108. .
  • Step 2105 Control the first virtual object to discard the first virtual consumables it owns.
  • the terminal controls the first virtual object to discard the first virtual consumables it owns into the virtual environment.
  • Step 2106 Update the first consumable option in the consumable option column.
  • the terminal updates and displays the first consumable option in the consumable option column, sets the first virtual consumable quantity in the first consumable option to zero, and displays the first consumable option with increased transparency.
  • Step 2107 Control the first virtual object to discard the first virtual consumables it owns.
  • the terminal controls the first virtual object to discard the first virtual consumables it owns into the virtual environment.
  • Step 2108 Remove the first consumable option from the consumable option column.
  • the terminal simplifies the consumable options bar by removing the first consumable option from the consumable options bar.
  • FIG. 22 shows a structural block diagram of a device for requesting and discarding virtual consumables provided by an exemplary embodiment of the present application.
  • the device includes:
  • the display module 2201 is used to display a consumables option bar, where the consumables option bar contains at least one consumables option corresponding to a virtual consumable;
  • the receiving module 2202 is configured to receive a triggering operation on the first consumable option in the consumable option column, where the first consumable option corresponds to the first virtual consumable;
  • the control module 2203 is configured to control the first virtual object to perform an interactive operation for the first virtual consumable based on the trigger operation, where the interactive operation includes at least one of a discard operation, a discard mark operation, and a request operation;
  • the discard operation is used to discard the first virtual consumable in the virtual environment
  • the discard marking operation is used to discard the first virtual consumable in the virtual environment and mark the first virtual consumable.
  • the location of the consumable in the virtual environment, and the request operation is used to request the first virtual consumable from the second virtual object.
  • control module 2203 includes:
  • a first control unit configured to control the first virtual object to perform the discard marking operation for the first virtual consumable when a first trigger operation is received;
  • a second control unit configured to control the first virtual object to perform the discard operation for the first virtual consumable when receiving a second trigger operation
  • a third control unit configured to control the first virtual object to perform the request operation for the first virtual consumable when receiving a third trigger operation
  • the first triggering operation, the second triggering operation and the third triggering operation are different from each other.
  • the first trigger operation and the second trigger operation are drag operations with different drag end positions
  • the receiving module 2202 includes:
  • a display unit configured to display the first interactive recognition area and the second interactive recognition area when a drag operation on the first consumable option is received
  • a first receiving unit configured to determine that the first trigger operation is received when the drag end position of the drag operation is located in the first interaction recognition area
  • the second receiving unit is configured to determine that the second trigger operation is received when the drag end position of the drag operation is located in the second interaction recognition area.
  • the display unit is used for:
  • the first interaction identification area and the second interaction identification area are displayed.
  • the receiving module 2202 includes:
  • a third receiving unit configured to determine that the third triggering operation is received when a click operation on the first consumable option is received.
  • the first control unit is also configured to control the first virtual object to discard the first virtual consumable owned by the first virtual object when the interactive operation is the discard mark operation; based on the first virtual consumption According to the location of the item, send a discard mark message to the second virtual object; or,
  • the second control unit is also configured to control the first virtual object to discard the first virtual consumable owned by the first virtual object when the interactive operation is the discard operation; or,
  • the third control unit is also configured to control the first virtual object to send a first request message to the second virtual object when the interactive operation is the request operation.
  • the first request message contains the name of the first virtual consumable.
  • the virtual consumables are consumed during the use of virtual props
  • the first control unit and the second control unit are used for:
  • the first virtual object is controlled to discard the first virtual consumable owned by the first virtual consumable, and the target virtual consumable is owned by the first virtual object.
  • the first control unit and the second control unit are also used for:
  • the target virtual consumable is a virtual consumable consumed by a virtual prop owned by the first virtual object
  • the first virtual object In response to a confirmation operation on the discard confirmation control, the first virtual object is controlled to discard the first virtual consumable owned by the first virtual object.
  • the device before controlling the first virtual object to perform an interactive operation on the first virtual consumable, the device further includes:
  • a control display module used to display a quantity setting control, which is used to set the interactive quantity of the first virtual consumable
  • a quantity determination module configured to determine the first quantity based on the setting operation of the quantity setting control
  • the control module 2203 is used for:
  • control the first virtual object to discard the first number of the first virtual consumables; based on the location of the first virtual consumables, Send a discard mark message to the second virtual object; or,
  • the interactive operation is the discard operation, control the first virtual object to discard the first number of the first virtual consumables; or,
  • the first virtual object is controlled to send a first request message to the second virtual object, where the first request message contains the information of the first virtual consumable. name and the first quantity.
  • the interactive operation is the discard mark operation
  • the control display module is used for:
  • the quantity initially displayed by the quantity setting control is the second quantity; in the case where the third quantity is less than the second quantity, the quantity initially displayed by the quantity setting control is the third quantity. quantity.
  • control display module is used for:
  • the quantity setting control is displayed.
  • the device when the interactive operation is the discard operation or the discard mark operation, after controlling the first virtual object to perform the interactive operation for the first virtual consumable, the device further includes :
  • An option update module configured to update the first consumable option in the consumable option column when the remaining quantity of the first virtual consumable after discarding is greater than zero;
  • the option update module is also configured to update the first virtual consumable when the remaining quantity after discarding is equal to zero and the first virtual object owns a virtual prop that consumes the first virtual consumable. the first consumable option in the consumable option column;
  • An option removal module configured to remove the consumption from the first virtual consumable when the remaining quantity of the first virtual consumable after discarding is equal to zero and the first virtual object does not own a virtual prop that consumes the first virtual consumable. Remove the first consumable option from the item options column.
  • the display module 2201 is used for:
  • the consumables option bar is displayed in response to a fourth triggering operation on the consumables filling control, the consumables filling control is used to trigger filling of virtual consumables for the carried virtual props, and the fourth triggering operation is different from that of the consumables filling control.
  • the fifth trigger operation of filling virtual consumables is triggered;
  • the consumable option bar is displayed.
  • the consumables option column includes consumables options corresponding to second virtual consumables, where the second virtual consumables refer to virtual consumables consumed by virtual props owned by the first virtual object;
  • the consumables option column contains consumables options corresponding to all types of virtual consumables, and the consumables options corresponding to the second virtual consumables are collectively displayed in the consumables option column.
  • the terminal uses the consumables option bar as an entrance to control the first virtual object to perform interactive operations. While displaying the consumables option bar, it displays at least one consumables option corresponding to the virtual consumable. , and based on the received trigger operation for the first consumable option in the consumable option bar, control the first virtual object to perform an interactive operation for the first virtual consumable, which interactive operation includes a discard operation, a discard mark operation, and a request operation. At least one of the consumables option bar is used as a unified entrance to control the first virtual object to perform a variety of interactive operations for the first virtual consumables, simplifying the path for controlling the first virtual object to perform interactive operations, and improving the efficiency of the first virtual object. The execution efficiency of interactive operations.
  • the device provided in the above embodiments is only exemplified by the division of the above functional modules.
  • the above function allocation can be completed by different functional modules as needed, that is, the internal structure of the device is divided into Different functional modules to complete all or part of the functions described above.
  • the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the implementation process can be found in the method embodiments, which will not be described again here.
  • the terminal 2300 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player, or an MP4 player.
  • the terminal 2300 may also be called user equipment, portable terminal, or other names.
  • the terminal 2300 includes: a processor 2301, a memory 2302, and a display screen 2303.
  • the processor 2301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
  • the processor 2301 can adopt at least one hardware form among digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA field-programmable gate array
  • PLA programmable logic array
  • the processor 2301 can also include a main processor and a co-processor.
  • the main processor is a processor used to process data in the wake-up state, also called a central processing unit (Central Processing Unit, CPU); the co-processor is A low-power processor used to process data in standby mode.
  • CPU Central Processing Unit
  • the processor 2301 may be integrated with a graphics processor (Graphics Processing Unit, GPU), and the GPU is responsible for rendering and drawing content that needs to be displayed on the display screen.
  • the processor 2301 may also include an artificial intelligence (Artificial Intelligence, AI) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence
  • Memory 2302 may include one or more computer-readable storage media, which may be tangible and non-transitory. Memory 2302 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 2302 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 2301 to implement the virtual consumables provided by the embodiments of the present application. Ask for disposal instructions.
  • the display screen 2303 is a component for displaying a screen.
  • the display screen 2303 also has a touch function, and the user can control the displayed content by performing touch operations on the display screen 2303 .
  • the display screen 2303 is a touch display screen of a smart phone, or the display screen 2303 is a non-touch display screen of a television terminal.
  • FIG. 23 does not constitute a limitation on the terminal 2300, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
  • Embodiments of the present application also provide a computer-readable storage medium that stores at least one program.
  • the at least one program is loaded and executed by a processor to implement the virtual consumables described in the above embodiments.
  • the request discard method is provided.
  • a computer program product or computer program includes computer instructions stored in a computer-readable storage medium.
  • the processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal performs the method for requesting and discarding virtual consumables provided in various optional implementations of the above aspect.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

一种虚拟消耗品的索要丢弃方法,方法包括:显示消耗品选项栏(301、703、1702),消耗品选项栏(301、703、1702)中包含至少一种虚拟消耗品(1、2、3、4)对应的消耗品选项;接收对消耗品选项栏(301、703)中第一消耗品选项(303、501、802、901、1101、1201、1401、1703)的触发操作,第一消耗品选项(303、501、802、901、1101、1201、1401、1703)对应第一虚拟消耗品(804、1104、1503);基于触发操作,控制第一虚拟对象(302、803、903、1003、1103、1202、1502、1601、1701)执行针对第一虚拟消耗品(804、1104、1503)的交互操作,交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种。还提供了一种虚拟消耗品的索要丢弃装置、终端、计算机可读存储介质及计算机程序产品。能够实现以消耗品选项栏为统一入口,控制第一虚拟对象执行多种针对第一虚拟消耗品的交互操作,简化了交互操作的路径,提高了交互操作的执行效率。

Description

虚拟消耗品的索要丢弃方法、装置、终端及存储介质
本申请要求于2022年08月18日提交,申请号为202210992626.X、发明名称为“虚拟消耗品的索要丢弃方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及人机交互技术领域,特别涉及一种虚拟消耗品的索要丢弃方法、装置、终端及存储介质。
背景技术
第一人称射击类游戏(First-Person Shooting game,FPS)是一种基于三维虚拟环境的应用程序,用户可以操控虚拟环境中的虚拟对象进行行走、奔跑、攀爬、射击等动作,并且多个用户可以在线组队在同一个虚拟环境中协同完成某项任务。
相关技术中,在虚拟对象存在索要虚拟弹药需求的情况下,需要先手持对应虚拟道具,再通过轮盘中的快捷消息发出索要信息;在虚拟对象存在丢弃虚拟弹药需求的情况下,需要首先打开背包界面,拖拽并丢弃对应虚拟弹药,并通过瞄准虚拟环境中的虚拟弹药,点击标记按钮,才能获得虚拟弹药对应的信息并发送。
可见,相关技术中,虚拟对象进行索要和丢弃虚拟弹药时,需要触发的前置操作步骤较多,过程较复杂。
发明内容
本申请实施例提供了一种虚拟消耗品的索要丢弃方法、装置、终端及存储介质。所述技术方案如下:
一方面,本申请实施例提供了一种虚拟消耗品的索要丢弃方法,所述方法由终端执行,所述方法包括:
显示消耗品选项栏,所述消耗品选项栏中包含至少一种虚拟消耗品对应的消耗品选项;
接收对所述消耗品选项栏中第一消耗品选项的触发操作,所述第一消耗品选项对应第一虚拟消耗品;
基于所述触发操作,控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作,所述交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种;
其中,所述丢弃操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,所述丢弃标记操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,并标记所述第一虚拟消耗品在所述虚拟环境中的位置,所述索要操作用于向第二虚拟对象索要所述第一虚拟消耗品。
另一方面,本申请实施例提供了一种虚拟消耗品的索要丢弃装置,所述装置包括:
显示模块,用于显示消耗品选项栏,所述消耗品选项栏中包含至少一种虚拟消耗品对应的消耗品选项;
接收模块,用于接收对所述消耗品选项栏中第一消耗品选项的触发操作,所述第一消耗品选项对应第一虚拟消耗品;
控制模块,用于基于所述触发操作控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作,所述交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种;
其中,所述丢弃操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,所述丢弃标记操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,并标记所述第一虚拟消耗品在所述虚拟环境中的位置,所述索要操作用于向第二虚拟对象索要所述第一虚拟消耗品。
另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上述方面所述的虚拟消耗品的索要丢弃方法。
另一方面,本申请实施例提供了一种计算机可读存储介质,所述可读存储介质中存储有 至少一条指令,所述至少一条指令由处理器加载并执行以实现如上述方面所述的虚拟消耗品的索要丢弃方法。
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面提供的虚拟消耗品的索要丢弃方法。
本申请实施例中,终端以消耗品选项栏作为控制第一虚拟对象执行交互操作的入口,在消耗品选项栏中显示至少一种虚拟消耗品对应的消耗品选项,并基于接收到的对消耗品选项栏中第一消耗品选项的触发操作,控制第一虚拟对象执行针对第一虚拟消耗品的交互操作,该交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种,从而实现以消耗品选项栏为统一入口,控制第一虚拟对象执行多种针对第一虚拟消耗品的交互操作,简化了控制第一虚拟对象执行交互操作的路径,提高了交互操作的执行效率。
附图说明
图1示出了本申请一个实施例提供的实施环境的示意图;
图2示出了本申请一个示例性实施例提供的虚拟消耗品的索要丢弃方法的流程图;
图3是本申请一个示例性实施例示出的接收对第一消耗品选项的触发操作并控制第一虚拟对象执行交互操作的界面示意图;
图4示出了本申请另一个示例性实施例提供的虚拟消耗品的索要丢弃方法的流程图;
图5是本申请一个示例性实施例示出的第一触发操作和第二触发操作为拖动终点位置不同的拖动操作的界面示意图;
图6示出了本申请另一个示例性实施例提供的虚拟消耗品的索要丢弃方法的流程图;
图7是本申请一个示例性实施例示出的显示消耗品选项栏的界面示意图;
图8是本申请一个示例性实施例示出的控制第一虚拟对象执行丢弃标记操作的界面示意图;
图9是本申请一个示例性实施例示出的显示丢弃确认控件的界面示意图;
图10是本申请一个示例性实施例示出的显示数量设置控件的界面示意图;
图11是本申请一个示例性实施例示出的控制第一虚拟对象执行丢弃操作的界面示意图;
图12是本申请一个示例性实施例示出的控制第一虚拟对象执行索要操作的界面示意图;
图13示出了本申请另一个示例性实施例提供的虚拟消耗品的索要丢弃方法的流程图;
图14是本申请另一个示例性实施例示出的显示数量设置控件的界面示意图;
图15是本申请另一个示例性实施例示出的控制第一虚拟对象执行丢弃标记操作的界面示意图;
图16是本申请另一个示例性实施例示出的控制第一虚拟对象执行索要操作的界面示意图;
图17是本申请一个示例性实施例示出的更新消耗品选项栏的界面示意图;
图18是本申请一个示例性实施例示出的移除第一消耗品选项的界面示意图;
图19示出了本申请一个示例性实施例提供的交互识别区域显示过程的流程图;
图20示出了本申请另一个示例性实施例提供的控制第一虚拟对象执行丢弃标记操作过程的流程图;
图21示出了本申请另一个示例性实施例提供的控制第一虚拟对象执行丢弃操作过程的流程图;
图22是本申请一个示例性实施例提供的虚拟消耗品的索要丢弃装置的结构框图;
图23示出了本申请一个示例性实施例提供的终端的结构框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
请参考图1,其示出了本申请一个实施例提供的实施环境的示意图。该实施环境可以包括:第一终端110、服务器120和第二终端130。
第一终端110中运行有支持虚拟环境的应用程序111,该应用程序111可以是多人在线对战程序。当第一终端运行应用程序111时,第一终端110的屏幕上显示应用程序111的用户界面。该应用程序111可以是多人在线战术竞技(Multiplayer Online Battle Arena,MOBA)游戏、模拟游戏(Simulation Game,SLG)的任意一种。在本实施例中,以该应用程序111是第一人称射击类游戏(First-Person Shooting game,FPS)来举例说明。第一终端110是第一用户112使用的终端,第一用户112使用第一终端110控制位于虚拟环境中的第一虚拟对象进行活动,第一虚拟对象可以称为第一用户112的主控虚拟对象。第一虚拟对象的活动包括但不限于:调整身体姿态、爬行、步行、奔跑、骑行、飞行、跳跃、驾驶、拾取、射击、攻击、投掷、释放技能中的至少一种。示意性的,第一虚拟对象是第一虚拟人物,比如仿真人物或动漫人物。
第二终端130中运行有支持虚拟环境的应用程序131,该应用程序131可以是多人在线对战程序。当第二终端130运行应用程序131时,第二终端130的屏幕上显示应用程序131的用户界面。该客户端可以是MOBA游戏、SLG游戏中的任意一种,在本实施例中,以该应用程序131是FPS游戏来举例说明。第二终端130是第二用户132使用的终端,第二用户132使用第二终端130控制位于虚拟环境中的第二虚拟对象进行活动,第二虚拟对象可以称为第二用户132的主控虚拟角色。示意性的,第二虚拟对象是第二虚拟人物,比如仿真人物或动漫人物。
可选地,第一虚拟对象和第二虚拟对象处于同一虚拟世界中。可选地,第一虚拟对象和第二虚拟对象可以属于同一个阵营、同一个队伍、同一个组织、具有好友关系或具有临时性的通讯权限。可选的,第一虚拟对象和第二虚拟对象可以属于不同的阵营、不同的队伍、不同的组织或具有敌对关系。
可选地,第一终端110和第二终端130上安装的应用程序是相同的,或两个终端上安装的应用程序是不同操作系统平台(安卓或IOS)上的同一类型应用程序。第一终端110可以泛指多个终端中的一个,第二终端130可以泛指多个终端中的另一个,本实施例仅以第一终端110和第二终端130来举例说明。第一终端110和第二终端130的设备类型相同或不同,该设备类型包括:智能手机、平板电脑、电子书阅读器、动态影像专家压缩标准音频层面3(Moving Picture Experts Group Audio Layer III,MP3)播放器、动态影像专家压缩标准音频层面4(Moving Picture Experts Group Audio Layer IV,MP4)播放器、膝上型便携计算机和台式计算机中的至少一种。
图1中仅示出了两个终端,但在不同实施例中存在多个其它终端可以接入服务器120。可选地,还存在一个或多个终端是开发者对应的终端,在该终端上安装有支持虚拟环境的应用程序的开发和编辑平台,开发者可在该终端上对应用程序进行编辑和更新,并将更新后的应用程序安装包通过有线或无线网络传输至服务器120,第一终端110和第二终端130可从服务器120下载应用程序安装包实现对应用程序的更新。
第一终端110、第二终端130以及其它终端通过无线网络或有线网络与服务器120相连。
服务器120包括一台服务器、多台服务器组成的服务器集群、云计算平台和虚拟化中心中的至少一种。服务器120用于为支持三维虚拟环境的应用程序提供后台服务。可选地,服务器120承担主要计算工作,终端承担次要计算工作;或者,服务器120承担次要计算工作,终端承担主要计算工作;或者,服务器120和终端之间采用分布式计算架构进行协同计算。
在一个示意性的例子中,服务器120包括存储器121、处理器122、用户账号数据库123、对战服务模块124、面向用户的输入/输出接口(Input/Output Interface,I/O接口)125。其中,处理器122用于加载服务器120中存储的指令,处理用户账号数据库123和对战服务模块 124中的数据;用户账号数据库123用于存储第一终端110、第二终端130以及其它终端所使用的用户账号的数据,比如用户账号的头像、用户账号的昵称、用户账号的战斗力指数,用户账号所在的服务区;对战服务模块124用于提供多个对战房间供用户进行对战,比如1V1对战、3V3对战、5V5对战等;面向用户的I/O接口125用于通过无线网络或有线网络和第一终端110和/或第二终端130建立通信交换数据。
请参考图2,其示出了本申请一个示例性实施例提供的虚拟消耗品的索要丢弃方法的流程图。本实施例以该方法用于图1所示实施环境中的第一终端110或第二终端130或该实施环境中的其它终端为例进行说明,该方法包括如下步骤:
步骤201,显示消耗品选项栏,消耗品选项栏中包含至少一种虚拟消耗品对应的消耗品选项。
可选的,虚拟消耗品供虚拟对象使用,或者,供虚拟对象所拥有的虚拟道具使用。在一些实施例中,该虚拟消耗品可以为虚拟能量补充饮料、虚拟急救包等供虚拟对象使用的虚拟补给品;在另一些实施例中,该虚拟消耗品可以为虚拟子弹、虚拟箭等供虚拟道具使用的虚拟发射物,本申请实施例对虚拟消耗品的具体类型不作限定。
可选的,不同于用于显示虚拟对象所拥有的所有虚拟装备的背包栏,该消耗品选项栏专门用于显示虚拟消耗品。
在一种可能的设计中,该消耗品选项栏独立于背包栏,即在不呼出背包栏的情况下也能够通过操作呼出消耗品选项栏。
虚拟对象是指用户在三维虚拟环境中的主控对象。示例性的,虚拟对象可以是虚拟人物、虚拟动物、动漫人物、虚拟载具、虚拟动物中的至少一种。
虚拟环境是终端中的应用程序在运行的过程中,虚拟对象在虚拟世界中所处的三维环境。可选的,本申请实施例中,通过摄像机模型对虚拟环境进行观察。
可选的,摄像机模型在虚拟世界中对虚拟角色进行自动跟随,即,当虚拟对象在虚拟世界中的位置发生改变时,摄像机模型跟随虚拟对象在虚拟世界中的位置同时发生改变,且该摄像机模型在虚拟世界中始终处于虚拟对象的预设距离范围内。可选的,在自动跟随过程中,摄像头模型和虚拟对象的相对位置不发生变化。
摄像机模型是指在虚拟世界中位于虚拟对象周围的三维模型,当采用第一人称视角时,该摄像机模型位于虚拟对象的头部附近或者位于虚拟对象的头部;当采用第三人称视角时,该摄像机模型可以位于虚拟对象的后方并与虚拟对象进行绑定,也可以位于与虚拟对象相距预设距离的任意位置,通过该摄像机模型可以从不同角度对位于虚拟世界中的虚拟对象进行观察,可选地,该第三人称视角为第一人称的过肩视角时,摄像机模型位于虚拟对象(比如虚拟对象的头肩部)的后方。可选地,除第一人称视角和第三人称视角外,视角还包括其他视角,比如俯视视角;当采用俯视视角时,该摄像机模型可以位于虚拟对象头部的上空,俯视视角是以从空中俯视的角度进行观察虚拟世界的视角。可选地,该摄像机模型在虚拟世界中不会进行实际显示,即,在用户界面显示的虚拟世界中不显示该摄像机模型。
在一种可能的实施方式中,终端在消耗品选项栏中显示虚拟对象持有的至少一种虚拟消耗品对应的消耗品选项。
可选的,消耗品选项以对应虚拟消耗品的图标进行显示,还可以包括对应的虚拟消耗品的名称和数量。
可选的,终端根据虚拟消耗品的数量在消耗品选项栏中对至少一种虚拟消耗品对应的消耗品选项进行排列显示。
可选的,终端根据虚拟消耗品的名称在消耗品选项栏中对至少一种虚拟消耗品对应的消耗品选项进行排列显示。
示意性的,如图3所示,终端显示消耗品选项栏301,该消耗品选项栏301中显示的至少一种虚拟消耗品由第一虚拟对象302在使用虚拟道具的过程中被消耗。
步骤202,接收对消耗品选项栏中第一消耗品选项的触发操作,第一消耗品选项对应第 一虚拟消耗品。
在一种可能的实施方式中,终端接收用户对消耗品选项栏中第一消耗品选项的触发操作,从而确定第一消耗品选项对应的第一虚拟消耗品。
在一种可能的实施方式中,为了区别消耗品选项栏中的第一消耗品选项和其他消耗品选项,终端在接收到用户对消耗品选项栏中第一消耗品选项的触发操作之后,可以对第一消耗品选项进行框选处理。
示意性的,如图3所示,终端接收对消耗品选项栏301中第一消耗品选项303的触发操作,并对第一消耗品选项303进行框选处理。
步骤203,基于触发操作,控制第一虚拟对象执行针对第一虚拟消耗品的交互操作,交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种。
在一种可能的实施方式中,终端基于接收到的对第一消耗品选项的触发操作,控制第一虚拟对象执行针对第一虚拟消耗品的交互操作。其中,不同触发操作用于触发执行不同类型的交互操作。
可选的,不同触发操作可以是不同类型的触发操作,比如点击操作、拖动操作、长按操作、按压操作等等,或者,不同触发操作可以是同类型但具有不同参数的触发操作,比如不同拖动终点的拖动操作、不同时长的长按操作或者不同力度的按压操作等等。
可选的,交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种,其中,丢弃操作用于将第一虚拟消耗品丢弃在虚拟环境中,丢弃标记操作用于将第一虚拟消耗品丢弃在虚拟环境中,并标记第一虚拟消耗品在虚拟环境中的位置,索要操作用于向第二虚拟对象索要第一虚拟消耗品。
在一种可能的实施方式中,消耗品选项栏中第一消耗品选项对应的第一虚拟消耗品数量大于零,在终端控制第一虚拟对象执行针对第一虚拟消耗品的丢弃操作或者丢弃标记操作后,消耗品选项栏中第一消耗品选项对应的第一虚拟消耗品数量相应减少。
可选的,终端控制第一虚拟对象执行针对第一虚拟消耗品的索要操作的过程可以由终端执行:当终端接收到对第一消耗品选项的触发操作后,可以获取第一虚拟消耗品的名称,对应通过服务器向控制第二虚拟对象的终端发送包含第一虚拟消耗品的名称的索要消息。
示意性的,如图3所示,终端控制第一虚拟对象302执行针对第一虚拟消耗品的索要操作。
综上所述,本申请实施例中,终端以消耗品选项栏作为控制第一虚拟对象执行交互操作的入口,在消耗品选项栏中显示至少一种虚拟消耗品对应的消耗品选项,并基于接收到的对消耗品选项栏中第一消耗品选项的触发操作,控制第一虚拟对象执行针对第一虚拟消耗品的交互操作,该交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种,从而实现以消耗品选项栏为统一入口,控制第一虚拟对象执行多种针对第一虚拟消耗品的交互操作,简化了控制第一虚拟对象执行交互操作的路径,提高了交互操作的执行效率。
在一种可能的实施方式中,由于存在多种交互操作,因此为了控制第一虚拟对象执行对应的交互操作,终端可以通过设置不同的触发操作对应不同的交互操作,从而根据不同的触发操作区分控制第一虚拟对象执行的不同交互操作。
请参考图4,其示出了本申请另一个示例性实施例提供的虚拟消耗品的索要丢弃方法的流程图。本实施例以该方法用于图1所示实施环境中的第一终端110或第二终端130或该实施环境中的其它终端为例进行说明,该方法包括如下步骤:
步骤401,显示消耗品选项栏,消耗品选项栏中包含至少一种虚拟消耗品对应的消耗品选项。
本步骤的具体实施方式可以参考步骤201,本实施例在此不作赘述。
步骤402,接收对消耗品选项栏中第一消耗品选项的触发操作,第一消耗品选项对应第一虚拟消耗品。
在一种可能的实施方式中,终端为不同的交互操作设置有对应的触发操作,分别为第一 触发操作对应丢弃标记操作、第二触发操作对应丢弃操作以及第三触发操作对应索要操作,并且第一触发操作、第二触发操作以及第三触发操作互不相同。
可选的,第一触发操作、第二触发操作以及第三触发操作可以是不同类型的触发操作,可以是拖动操作、长按操作、点击操作等等。
可选的,第一触发操作、第二触发操作以及第三触发操作可以是同一类型的触发操作对应的三种不同形式,比如第一触发操作、第二触发操作以及第三触发操作分别为三连击操作、双击操作以及单击操作,或者为长按1秒操作、长按3秒操作以及长按5秒操作等等。
在一种可能的实施方式中,第一触发操作对应丢弃标记操作,第二触发操作对应丢弃操作,第一触发操作和第二触发操作为拖动终点位置不同的拖动操作,终端接收对消耗品选项栏中第一消耗品选项的触发操作的过程可以包括以下子步骤。
1、在接收到对第一消耗品选项的拖动操作的情况下,显示第一交互识别区域和第二交互识别区域。
在接收到用户对第一消耗品选项的拖动操作的情况下,终端显示第一交互识别区域和第二交互识别区域,其中,第一交互识别区域用于识别对第一虚拟消耗品执行丢弃标记操作,第二交互识别区域用于识别对第一虚拟消耗品执行丢弃操作。
示意性的,如图5所示,在接收到对第一消耗品选项501的拖动操作的情况下,终端显示第一交互识别区域502和第二交互识别区域503。
在一种可能的实施方式中,在第一虚拟消耗品的剩余数量为零的情况下,第一交互识别区域不能识别对第一虚拟消耗品执行丢弃标记操作,并且第二交互识别区域不能识别对第一虚拟消耗品执行丢弃操作。
在一种可能的实施方式中,为了提高丢弃标记操作和丢弃操作的执行效率,减少不必要的步骤,在接收到对第一消耗品选项的拖动操作,且第一虚拟消耗品的剩余数量大于零的情况下,终端显示第一交互识别区域和第二交互识别区域;在接收到对第一消耗品选项的拖动操作,且第一虚拟消耗品的剩余数量为零的情况下,终端不显示第一交互识别区域和第二交互识别区域。
2、在拖动操作的拖动终点位置位于第一交互识别区域的情况下,确定接收到第一触发操作。
其中,拖动终点位置为拖动操作结束时的实时拖动位置。
在一种可能的实施方式中,在拖动操作的拖动终点位置位于第一交互识别区域,且第一虚拟消耗品的剩余数量大于零的情况下,终端确定接收到第一触发操作。
可选的,拖动过程中,当拖动操作的实时拖动位置位于第一交互识别区域时,终端可以对第一交互识别区域进行高亮显示,提示用户第一虚拟消耗品已经被拖到至第一交互识别区域。
示意性的,如图5所示,在拖动操作的拖动终点位置位于第一交互识别区域502的情况下,终端确定接收到第一触发操作。
3、在拖动操作的拖动终点位置位于第二交互识别区域的情况下,确定接收到第二触发操作。
在一种可能的实施方式中,在拖动操作的拖动终点位置位于第二交互识别区域,且第一虚拟消耗品的剩余数量大于零的情况下,终端确定接收到第二触发操作。
可选的,拖动过程中,当拖动操作的实时拖动位置位于第二交互识别区域时,终端可以对第二交互识别区域进行高亮显示,提示用户第一虚拟消耗品已经被拖到至第二交互识别区域。
示意性的,如图5所示,在拖动操作的拖动终点位置位于第二交互识别区域503的情况下,终端确定接收到第二触发操作。
步骤403,在接收到第一触发操作的情况下,控制第一虚拟对象执行针对第一虚拟消耗品的丢弃标记操作。
在一种可能的实施方式中,在接收到第一触发操作的情况下,终端控制第一虚拟对象执行针对第一虚拟消耗品的丢弃标记操作,将第一虚拟消耗品丢弃在虚拟环境中,并标记第一虚拟消耗品在虚拟环境中的位置。
可选的,基于第一虚拟消耗品在虚拟环境中的位置,终端能够控制第一虚拟对象自动执行标记,而不需要用户手动标记,并且响应于该丢弃标记操作,终端能够生成第一虚拟消耗品对应的标记消息通知,该标记消息通知中可以包含第一虚拟消耗品的丢弃数量、丢弃位置以及丢弃位置距离其他虚拟对象的位置等等,本申请实施例对此不作限定。
可选的,终端控制第一虚拟对象丢弃并标记拥有的全部第一虚拟消耗品,或者,终端控制第一虚拟对象丢弃并标记拥有的部分第一虚拟消耗品。
步骤404,在接收到第二触发操作的情况下,控制第一虚拟对象执行针对第一虚拟消耗品的丢弃操作。
在一种可能的实施方式中,在接收到第二触发操作的情况下,终端控制第一虚拟对象执行针对第一虚拟消耗品的丢弃操作,将第一虚拟消耗品丢弃在虚拟环境中。
可选的,终端控制第一虚拟对象丢弃拥有的全部第一虚拟消耗品,或者,终端控制第一虚拟对象丢弃拥有的部分第一虚拟消耗品。
步骤405,在接收到第三触发操作的情况下,控制第一虚拟对象执行针对第一虚拟消耗品的索要操作。在一种可能的实施方式中,在接收到第三触发操作的情况下,终端控制第一虚拟对象执行针对第一虚拟消耗品的索要操作,控制第一虚拟对象向第二虚拟对象索要第一虚拟消耗品。
在一种可能的实施方式中,第三触发操作为点击操作,在接收到对第一消耗品选项的点击操作的情况下,终端确定接收到第三触发操作。
在其他可能的实施方式中,为了使索要操作与丢弃以及丢弃标记操作的触发逻辑保持一致,在接收到对第一消耗品选项的拖动操作的情况下,终端还显示第三交互识别区域。当拖动操作的拖动终点位置位于第三交互识别区域的情况下,确定接收到第三触发操作。本申请实施例并不对第三触发操作的具体类型进行限定。
可选的,终端还可以控制第一虚拟对象向第二虚拟对象发送索要消息,该索要消息中可以包括针对第一虚拟消耗品的索要数量、第一虚拟对象当前的位置信息等,本申请实施例对此不作限定。
上述实施例中,通过设置第一触发操作对应丢弃标记操作、第二触发操作对应丢弃操作以及第三触发操作对应索要操作,能够实现通过不同触发操作确定控制第一虚拟对象执行不同的交互操作,避免交互操作之间的误操作,提高了控制第一虚拟对象执行交互操作的效率。
在一种可能的实施方式中,为了提高用户界面的简洁性,避免控制第一虚拟对象过程中的误操作,消耗品选项栏不直接显示在用户界面中,此外,对于不同的交互操作,在控制第一虚拟对象执行对应的交互操作的过程中,具体的操作过程也不同。
请参考图6,其示出了本申请另一个示例性实施例提供的虚拟消耗品的索要丢弃方法的流程图。本实施例以该方法用于图1所示实施环境中的第一终端110或第二终端130或该实施环境中的其它终端为例进行说明,该方法包括如下步骤:
步骤601,显示消耗品选项栏,消耗品选项栏中包含至少一种虚拟消耗品对应的消耗品选项。
在一种可能的实施方式中,为了保持用户界面控件显示的简洁,消耗品选项栏以缩略的形式隐藏在用户界面中,响应于对消耗品填充控件的第四触发操作,终端显示消耗品选项栏,即通过复用消耗品填充控件以触发显示消耗品选项栏。
其中,消耗品填充控件用于触发为携带的虚拟道具填充虚拟消耗品,响应于对消耗品填充控件的第五触发操作,终端为第一虚拟对象当前携带的虚拟道具填充虚拟消耗品,因此为了区分针对消耗品填充控件的不同的触发操作,第四触发操作为不同于第五触发操作的触发操作。
示例性的,第四触发操作是对消耗品填充控件的双击操作,第五触发操作是对消耗品填充控件的单击操作,响应于对消耗品填充控件的双击操作,终端显示消耗品选项栏;响应于对消耗品填充控件的单击操作,终端为第一虚拟对象当前携带的虚拟道具填充虚拟消耗品。
在另一种可能的实施方式中,为了防止用户对消耗品填充控件的误操作,终端在用户界面设置消耗品填充控件关联的消耗品展示控件,响应于对消耗品展示控件的第六触发操作,终端显示消耗品选项栏。
可选的,为了能够提示用户消耗品展示控件与消耗品填充控件关联,且通过触发该消耗品展示控件能够对虚拟消耗品执行操作,终端可以将消耗品展示控件显示在消耗品填充控件周围。
示例性的,第六触发操作可以是对消耗品展示控件的点击操作。
示意性的,如图7所示,响应于对消耗品填充控件701关联的消耗品展示控件702的点击操作,终端显示消耗品选项栏703。
在一种可能的实施方式中,由于虚拟消耗品种类较多,且不同对局场景中可能对应不同的虚拟消耗品,消耗品选项栏中显示全部消耗品选项可能会导致消耗品选项过多、用户选择耗时等问题,因此终端在消耗品选项栏中只展示第二虚拟消耗品对应的消耗品选项,其中,第二虚拟消耗品是指第一虚拟对象所拥有虚拟道具所消耗的虚拟消耗品。
比如,虚拟对局中,虚拟道具A和B对应虚拟消耗品1,虚拟道具C和D对应虚拟消耗品2,虚拟道具E对应虚拟消耗品3,虚拟道具F和G对应虚拟消耗品4。当第一虚拟对象拥有虚拟道具A和E时,消耗品选项栏中显示虚拟消耗品1和3对应的消耗品选项。
在另一种可能的实施方式中,为了尽可能满足用户对虚拟消耗品的选择和使用,终端在消耗品选项栏中展示全部类型虚拟消耗品对应的消耗品选项,并且为了提高用户在消耗品选项栏中选择消耗品选项的效率,终端将第二虚拟消耗品对应的消耗品选项在消耗品选项栏中集中显示。
可选的,终端可以将第二虚拟消耗品对应的消耗品选项集中显示在消耗品选项栏中的前半部分,其他虚拟消耗品对应的消耗品选项集中显示在消耗品选项栏中的后半部分。
比如,虚拟对局中,虚拟道具A和B对应虚拟消耗品1,虚拟道具C和D对应虚拟消耗品2,虚拟道具E对应虚拟消耗品3,虚拟道具F和G对应虚拟消耗品4。当第一虚拟对象拥有虚拟道具A和E时,虚拟消耗品1和3对应的消耗品选项集中显示在消耗品选项栏中的前半部分,虚拟消耗品2和4对应的消耗品选项集中显示在消耗品选项栏中的后半部分。
步骤602,接收对消耗品选项栏中第一消耗品选项的触发操作,第一消耗品选项对应第一虚拟消耗品。
本步骤的具体实施方式可以参考步骤402,本实施例在此不作赘述。
步骤603,在交互操作为丢弃标记操作的情况下,控制第一虚拟对象丢弃拥有的第一虚拟消耗品;基于第一虚拟消耗品所处的位置,向第二虚拟对象发送丢弃标记消息。
在一种可能的实施方式中,在接收到对消耗品选项栏中第一消耗品选项的第一触发操作后,终端控制第一虚拟对象丢弃拥有的第一虚拟消耗品,并基于第一虚拟消耗品在虚拟环境中所处的位置,获取第一虚拟消耗品对应的位置信息,向第二虚拟对象发送包含该位置信息的丢弃标记消息。
可选的,丢弃标记消息中可以包括第一虚拟消耗品的名称、第一虚拟消耗品的丢弃数量以及第一虚拟消耗品在虚拟环境中的位置信息。
示意性的,如图8所示,在接收到将第一消耗品选项801拖动到第一交互识别区域802的拖动操作的情况下,终端控制第一虚拟对象803丢弃第一虚拟消耗品804,并根据第一虚拟消耗品804在虚拟环境中的位置,向第二虚拟对象发送丢弃标记消息805,其中丢弃标记消息805中包含第一虚拟消耗品804在虚拟环境中的位置信息以及第一虚拟消耗品804的名称。
在一种可能的实施方式中,为了提高第二虚拟对象寻找丢弃的第一虚拟消耗品的速度, 终端在缩略地图中标记并显示第一虚拟消耗品在虚拟环境中的位置。
在丢弃标记第一虚拟消耗品时,为了避免丢弃所需的虚拟消耗品,可选的,终端可以确定第一虚拟对象所拥有的虚拟道具,并基于该虚拟道具所消耗的虚拟消耗品,确定在丢弃标记第一虚拟消耗品时是否需要进行确认操作。
在一种可能的实施方式中,在第一虚拟消耗品不属于第一虚拟对象所拥有虚拟道具所消耗的虚拟消耗品(即第一虚拟消耗品不属于目标虚拟消耗品)的情况下,在接收到对消耗品选项栏中第一消耗品选项的第一触发操作后,终端控制第一虚拟对象丢弃拥有的全部第一虚拟消耗品。
在一种可能的实施方式中,为了避免对第一虚拟消耗品的误丢弃,在第一虚拟消耗品属于第一虚拟对象所拥有虚拟道具所消耗的虚拟消耗品(即第一虚拟消耗品属于目标虚拟消耗品)的情况下,在接收到对消耗品选项栏中第一消耗品选项的第一触发操作后,终端显示丢弃确认控件,等待用户对丢弃标记操作的进一步确认。
响应于对丢弃确认控件的确认操作,终端控制第一虚拟对象丢弃拥有的全部第一虚拟消耗品;响应于对丢弃确认控件的取消操作,终端取消控制第一虚拟对象丢弃拥有的全部第一虚拟消耗品。
示意性的,如图9所示,第一消耗品选项901对应的第一虚拟消耗品属于第一虚拟对象903所拥有虚拟道具所消耗的虚拟消耗品,在接收到将第一消耗品选项901拖动到第一交互识别区域902的拖动操作之后,控制第一虚拟对象903执行丢弃标记操作之前,终端显示丢弃确认控件904,响应于用户对丢弃确认控件904的确认操作,终端控制第一虚拟对象903执行针对第一虚拟消耗品的丢弃标记操作。
在一种可能的实施方式中,为了防止第一虚拟对象在丢弃全部第一虚拟消耗品之后再次需要第一虚拟消耗品,可以在丢弃第一虚拟消耗品之前对丢弃数量进行调整。
在一些实施例中,响应于对丢弃确认控件的设置操作,终端显示数量设置控件,该数量设置控件用于设置丢弃第一虚拟消耗品的数量。基于对数量设置控件的设置操作,终端确定丢弃第一虚拟消耗品的第一数量,并控制第一虚拟对象丢弃第一数量的第一虚拟消耗品。
示意性的,如图10所示,响应于用户对丢弃确认控件1001的设置操作(点击设置按钮),终端显示数量设置控件1002,并基于用户对数量设置控件1002的设置操作,确定丢弃第一虚拟消耗品的第一数量为5,从而控制第一虚拟对象1003丢弃并标记5个第一虚拟消耗品。
步骤604,在交互操作为丢弃操作的情况下,控制第一虚拟对象丢弃拥有的第一虚拟消耗品。
在一种可能的实施方式中,在接收到将第一消耗品选项拖动到第二交互识别区域的拖动操作的情况下,终端控制第一虚拟对象丢弃拥有的第一虚拟消耗品。
示意性的,如图11所示,在接收到将第一消耗品选项1101拖动到第二交互识别区域1102的拖动操作的情况下,终端控制第一虚拟对象1103丢弃拥有的第一虚拟消耗品1104。
可选的,为了避免对第一虚拟消耗品的误丢弃,并提高设置第一虚拟消耗品丢弃数量的效率,终端控制第一虚拟对象执行丢弃操作的过程中,同样可以设置丢弃确认控件和数量设置控件,该过程的具体实施方式可以参考步骤603中关于控制第一虚拟对象执行丢弃标记操作的说明,在此不作赘述。
步骤605,在交互操作为索要操作的情况下,控制第一虚拟对象向第二虚拟对象发送第一索要消息,第一索要消息中包含第一虚拟消耗品的名称。
在一种可能的实施方式中,在接收到对消耗品选项栏中第一消耗品选项的第三触发操作后,终端控制第一虚拟对象向第二虚拟对象发送第一索要消息,其中,第一索要消息中包含第一虚拟消耗品的名称。
示意性的,如图12所示,在接收到对第一消耗品选项1201的点击操作后,终端控制第一虚拟对象1202向第二虚拟对象发送第一索要消息1203,并且第一索要消息1203中包含第一虚拟消耗品的名称。
在一种可能的实施方式中,为了提高第一虚拟对象通过索要获取第一虚拟消耗品的效率,第一索要消息中可以包括第一虚拟对象当前的位置信息。
上述实施例中,通过对消耗品填充控件的第四触发操作或者对消耗品填充控件关联的消耗品展示控件的第六触发操作,即可触发在用户界面中显示消耗品选项栏,缩短了消耗品选项栏的呼出路径,并能够降低误操作的概率。
此外,在控制第一虚拟对象执行丢弃标记操作或者丢弃操作之前,通过设置丢弃确认控件和数量设置控件,减少了控制第一虚拟对象执行丢弃操作或者丢弃标记操作过程中的误操作,提高了对第一虚拟消耗品丢弃数量设置的灵活性。
在一种可能的实施方式中,为了进一步提高控制第一虚拟对象执行交互操作过程中,对第一虚拟消耗品数量设置的灵活性,在接收到对消耗品选项栏中第一消耗品选项的触发操作之后,终端显示数量设置控件,基于用户对第一虚拟消耗品数量的设置,控制第一虚拟对象执行相应的交互操作。
请参考图13,其示出了本申请另一个示例性实施例提供的虚拟消耗品的索要丢弃方法的流程图。本实施例以该方法用于图1所示实施环境中的第一终端110或第二终端130或该实施环境中的其它终端为例进行说明,该方法包括如下步骤:
步骤1301,显示消耗品选项栏,消耗品选项栏中包含至少一种虚拟消耗品对应的消耗品选项。
步骤1302,接收对消耗品选项栏中第一消耗品选项的触发操作,第一消耗品选项对应第一虚拟消耗品。
步骤1301和步骤1302的具体实施方式可以参考步骤601和步骤602,本实施例在此不作赘述。
步骤1303,显示数量设置控件,数量设置控件用于设置索要或丢弃第一虚拟消耗品的数量。
在一种可能的实施方式中,为了提高用户对索要或者丢弃第一虚拟消耗品数量的灵活性,在接收到用户对消耗品选项栏中第一消耗品选项的触发操作之后,控制第一虚拟对象执行针对第一虚拟消耗品的交互操作之前,终端显示数量设置控件,该数量设置控件用于设置第一虚拟消耗品的交互数量,即索要或丢弃的第一虚拟消耗品的数量。
可选的,数量设置控件中的初始显示的数量可以为0,也可以为第一虚拟对象拥有的第一虚拟消耗品的全部数量。
示意性的,如图14所示,在接收到用户对第一消耗品选项1401的触发操作之后,终端显示数量设置控件1402。
在一种可能的实施方式中,在交互操作为丢弃标记操作的情况下,在接收到针对第一虚拟消耗品的第二索要消息时,终端获取第二索要消息中包含的第二数量,其中,第二索要消息为同一阵营的其他虚拟对象发送的针对第一虚拟消耗品的索要消息。
进一步的,为了提高对第一虚拟消耗品数量设置的效率,及时响应同一阵营的其他虚拟对象发送的第二索要消息,基于第二索要消息中包含的第二数量以及第一虚拟对象拥有的第一虚拟消耗品的第三数量,终端显示数量设置控件。
其中,在第三数量大于或者等于第二数量的情况下,数量设置控件初始显示的数量可以为满足其他虚拟对象索要需求的第二数量;在第三数量小于第二数量的情况下,数量设置控件初始显示的数量可以为尽可能满足其他虚拟对象索要需求的第三数量。
示例性的,在终端控制第一虚拟对象执行针对第一虚拟消耗品的丢弃标记操作的30秒前,同一阵营的第二虚拟对象发送了针对第一虚拟消耗品的索要消息,该索要消息指示需要10个第一虚拟消耗品,在第一虚拟对象拥有20个第一虚拟消耗品的情况下,终端显示数量设置控件的初始显示数量为10;在第一虚拟对象拥有5个第一虚拟消耗品的情况下,终端显示数量设置控件的初始显示数量则为5。
在一种可能的实施方式中,为了增加用户对是否显示数量设置控件的选择,可以根据用 户对消耗品选项栏中的第一消耗品选项的触发操作对应的操作时长确定是否显示数量设置控件。在对消耗品选项栏中第一消耗品选项的触发操作的操作时长大于时长阈值的情况下,终端显示数量设置控件。
在对消耗品选项栏中第一消耗品选项的触发操作的操作时长小于时长阈值的情况下,终端则不显示数量设置控件,可选的,在不显示数量设置控件的情况下,终端控制第一虚拟对象执行针对第一虚拟消耗品的索要操作时,则不包含针对第一虚拟消耗品的索要数量;终端控制第一虚拟对象执行针对第一虚拟消耗品的丢弃操作或者丢弃标记操作时,则直接丢弃全部第一虚拟消耗品。
在一种可能的实施方式中,在交互操作为丢弃标记操作的情况下,终端基于对第一消耗品选项的拖动操作在第一交互识别区域的拖动停留时长,在停留时长大于时长阈值的情况下,显示数量设置控件。
在一种可能的实施方式中,在交互操作为丢弃操作的情况下,终端基于对第一消耗品选项的拖动操作在第二交互识别区域的拖动停留时长,在停留时长大于时长阈值的情况下,显示数量设置控件。
在一种可能的实施方式中,在交互操作为索要操作的情况下,终端基于对第一消耗品选项的点击操作的停留时长,在停留时长大于时长阈值的情况下,显示数量设置控件。
示例性的,终端设置时长阈值为0.2秒,在交互操作为丢弃标记操作,且用户对第一消耗品选项的拖动操作在第一交互识别区域的拖动停留时长大于0.2秒的情况下,终端显示数量设置控件;在交互操作为索要操作,且用户对第一消耗品选项的点击操作的停留时长大于0.2秒的情况下,终端显示数量设置控件。
在交互操作为丢弃标记操作,且用户对第一消耗品选项的拖动操作在第一交互识别区域的拖动停留时长小于0.2秒的情况下,终端控制第一虚拟对象丢弃全部第一虚拟消耗品;在交互操作为索要操作,且用户对第一消耗品选项的点击操作的停留时长小于0.2秒的情况下,终端控制第一虚拟对象执行快速索要操作。
步骤1304,基于对数量设置控件的设置操作,确定第一数量。
在一种可能的实施方式中,终端基于用户对数量设置控件的设置操作,调整针对第一虚拟消耗品的交互数量,从而确定第一数量。
示意性的,如图15所示,响应于对数量设置控件1501的设置操作,终端确定针对第一虚拟消耗品的交互数量为5。
步骤1305,在交互操作为丢弃标记操作的情况下,控制第一虚拟对象丢弃第一数量的第一虚拟消耗品;基于第一虚拟消耗品所处的位置,向第二虚拟对象发送丢弃标记消息。
在一种可能的实施方式中,在控制第一虚拟对象执行针对第一虚拟消耗品的丢弃标记操作的过程中,基于确定的针对第一虚拟消耗品的第一数量,终端控制第一虚拟对象丢弃第一数量的第一虚拟消耗品,并基于第一虚拟消耗品在虚拟环境中所处的位置,向第二虚拟对象发送丢弃标记消息。
可选的,丢弃标记消息中除了包含第一虚拟消耗品的名称以及位置信息,还可以包括第一虚拟消耗品的丢弃数量。
示意性的,如图15所示,终端控制第一虚拟对象1502丢弃5个第一虚拟消耗品1503,并向第二虚拟对象发送丢弃标记消息1504,其中,丢弃标记消息1504中包含第一虚拟消耗品1503的数量。
步骤1306,在交互操作为丢弃操作的情况下,控制第一虚拟对象丢弃第一数量的第一虚拟消耗品。
同样地,在控制第一虚拟对象执行针对第一虚拟消耗品的丢弃操作的过程中,基于确定的针对第一虚拟消耗品的第一数量,终端控制第一虚拟对象丢弃第一数量的第一虚拟消耗品。
步骤1307,在交互操作为索要操作的情况下,控制第一虚拟对象向第二虚拟对象发送 第一索要消息,第一索要消息中包含第一虚拟消耗品的名称以及第一数量。
在一种可能的实施方式中,在控制第一虚拟对象执行针对第一虚拟消耗品的索要操作的过程中,基于确定的针对第一虚拟消耗品的第一数量,终端控制第一虚拟对象向第二虚拟对象发送第一索要消息,其中,第一索要消息中包含第一虚拟消耗品的名称以及第一数量。
示意性的,如图16所示,在用户对数量设置控件1602中的第一数量“5”确认之后,终端控制第一虚拟对象1601向第二虚拟对象发送第一索要消息1603,其中,第一索要消息1603指示需要5个第一虚拟消耗品。
上述实施例中,通过在接收到用户对消耗品选项栏中第一消耗品选项的触发操作之后,控制第一虚拟对象执行针对第一虚拟消耗品的交互操作之前,增加显示数量设置控件,能够提高控制第一虚拟对象执行交互操作过程中,对第一虚拟消耗品数量设置的灵活性。
此外,在基于第二虚拟对象的第二索要消息,控制第一虚拟对象执行丢弃标记操作的过程中,终端能够根据第二索要消息中包含的第二数量以及第一虚拟对象拥有的第一虚拟消耗品的第三数量,在显示数量设置控件时合理确定初始显示数量,提高了设置第一虚拟消耗品丢弃数量的效率。
在一种可能的实施方式中,在交互操作为丢弃操作或丢弃标记操作的情况下,控制第一虚拟对象执行针对第一虚拟消耗品的交互操作之后,基于第一虚拟消耗品数量的变化,终端需要对消耗品选项栏进行相应的更新显示,该过程可以包括以下三种情况:
1、在丢弃后第一虚拟消耗品的剩余数量大于零的情况下,更新消耗品选项栏中的第一消耗品选项。
可选的,第一消耗品选项的更新方式包括显示状态更新、显示内容更新以及显示位置更新中的至少一种。其中,显示状态可以包括显示透明度、显示尺寸、显示颜色等等,本实施例对此不作限定。
在一种可能的实施方式中,在丢弃后第一虚拟消耗品的剩余数量大于零的情况下,终端对消耗品选项栏中的第一消耗品选项进行更新,在第一消耗品选项中包含第一虚拟对象拥有的第一虚拟消耗品数量的情况下,对第一消耗品选项中的第一虚拟消耗品数量进行更新。
在一种可能的实施方式中,终端在消耗品选项栏中按照第一虚拟对象拥有的各个虚拟消耗品的数量对各个消耗品选项进行排序,在丢弃后第一虚拟消耗品的剩余数量大于零的情况下,终端基于第一虚拟消耗品的剩余数量,对消耗品选项栏中各个消耗品选项进行排序更新。
2、在丢弃后第一虚拟消耗品的剩余数量等于零,且第一虚拟对象拥有消耗第一虚拟消耗品的虚拟道具的情况下,更新消耗品选项栏中的第一消耗品选项。
在一种可能的实施方式中,在丢弃后第一虚拟消耗品的剩余数量等于零,且第一虚拟对象拥有消耗第一虚拟消耗品的虚拟道具的情况下,为了便于后续通过触发第一消耗品选项进行索要操作,终端继续在消耗品选项栏中显示第一消耗品选项。可选的,终端对消耗品选项栏中的第一消耗品选项进行更新显示,将第一消耗品选项中的第一虚拟消耗品数量设置为零。
在一种可能的实施方式中,为了更明显的区别于其他虚拟消耗品数量大于零的消耗品选项,终端对第一消耗品选项进行提高透明度显示。
示意性的,如图17所示,在丢弃后第一虚拟消耗品的剩余数量等于零,且第一虚拟对象1701拥有消耗第一虚拟消耗品的虚拟道具的情况下,终端将消耗品选项栏1702中的第一消耗品选项1703中包含的第一虚拟消耗品数量设置为零,并对第一消耗品选项1703进行提高透明度显示处理。
3、在丢弃后第一虚拟消耗品的剩余数量等于零,且第一虚拟对象未拥有消耗第一虚拟消耗品的虚拟道具的情况下,从消耗品选项栏中移除第一消耗品选项。
在一种可能的实施方式中,在丢弃后第一虚拟消耗品的剩余数量等于零,且第一虚拟对象未拥有消耗第一虚拟消耗品的虚拟道具的情况下,为了减少不必要的显示,简化消耗品选项栏,终端将第一消耗品选项从消耗品选项栏中移除。
示意性的,如图18所示,在丢弃后第一虚拟消耗品的剩余数量等于零,且第一虚拟对象1801未拥有消耗第一虚拟消耗品的虚拟道具的情况下,终端将第一消耗品选项1803从消耗品选项栏1802中移除。
上述实施例中,通过在控制第一虚拟对象执行丢弃操作之后,基于丢弃后第一虚拟对象拥有的第一虚拟消耗品数量对消耗品选项栏进行更新显示,增加了消耗品选项栏的显示效果,提高了基于消耗品选项栏选择消耗品选项的效率。
请参考图19,其示出了本申请一个示例性实施例提供的交互识别区域过程的流程图。
步骤1901,接收对第一消耗品选项的拖动操作。
终端接收用户对消耗品选项栏中第一消耗品选项的拖动操作。
步骤1902,对第一消耗品选项进行框选显示。
响应于用户对第一消耗品选项的拖动操作,终端对第一消耗品选项进行框选显示。
步骤1903,判断第一虚拟消耗品的剩余数量是否不为零。
在第一虚拟消耗品的剩余数量为零的情况下,进入步骤1910;在第一虚拟消耗品的剩余数量不为零的情况下,进入步骤1904和步骤1905。
步骤1904,显示第一交互识别区域。
终端显示第一交互识别区域,第一交互识别区域用于识别对第一虚拟消耗品执行丢弃标记操作。
步骤1905,显示第二交互识别区域。
终端显示第二交互识别区域,第二交互识别区域用于识别对第一虚拟消耗品执行丢弃操作。
步骤1906,判断是否取消对第一消耗品选项的拖动操作。
在取消对第一消耗品选项的拖动操作的情况下,进入步骤1907、步骤1908和步骤1909;在没有取消对第一消耗品选项的拖动操作的情况下,返回步骤1904和步骤1905。
步骤1907,取消对第一消耗品选项的框选显示。
在取消对第一消耗品选项的拖动操作的情况下,终端取消对第一消耗品选项的框选显示。
步骤1908,隐藏第一交互识别区域。
在取消对第一消耗品选项的拖动操作的情况下,终端隐藏第一交互识别区域。
步骤1909,隐藏第二交互识别区域。
在取消对第一消耗品选项的拖动操作的情况下,终端隐藏第二交互识别区域。
步骤1910,判断是否取消对第一消耗品选项的拖动操作。
在取消对第一消耗品选项的拖动操作的情况下,进入步骤1911;在没有取消对第一消耗品选项的拖动操作的情况下,返回步骤1902。
步骤1911,取消对第一消耗品选项的框选显示。
在取消对第一消耗品选项的拖动操作的情况下,终端取消对第一消耗品选项的框选显示。
请参考图20,其示出了本申请一个示例性实施例提供的控制第一虚拟对象执行丢弃标记操作过程的流程图。
步骤2001,接收拖动第一消耗品选项至第一交互识别区域的操作。
终端接收用户拖动第一消耗品选项至第一交互识别区域的操作。
步骤2002,对第一交互识别区域高亮显示。
响应于第一消耗品选项被拖动至第一交互识别区域,终端对第一交互识别区域高亮显示。
步骤2003,判断拖动终点位置是否为第一交互识别区域。
在拖动终点位置为第一交互识别区域的情况下,进入步骤2004;在拖动终点位置不为第一交互识别区域的情况下,返回步骤2002。
步骤2004,判断第一虚拟对象是否拥有消耗第一虚拟消耗品的虚拟道具。
在第一虚拟对象拥有消耗第一虚拟消耗品的虚拟道具的情况下,进入步骤2005~2008;在第一虚拟对象未拥有消耗第一虚拟消耗品的虚拟道具的情况下,进入步骤2009~2012。
步骤2005,控制第一虚拟对象丢弃拥有的第一虚拟消耗品。
终端控制第一虚拟对象丢弃拥有的第一虚拟消耗品至虚拟环境中。
步骤2006,获取第一虚拟消耗品在虚拟环境中所处的位置。
终端获取第一虚拟消耗品在虚拟环境中所处的位置。
步骤2007,向第二虚拟对象发送丢弃标记消息。
基于第一虚拟消耗品在虚拟环境中的位置信息和第一虚拟消耗品的丢弃数量,终端控制第一虚拟对象向第二虚拟对象发送丢弃标记消息。
步骤2008,更新消耗品选项栏中的第一消耗品选项。
终端对消耗品选项栏中的第一消耗品选项进行更新显示,将第一消耗品选项中的第一虚拟消耗品数量设置为零,并对第一消耗品选项进行提高透明度显示。
步骤2009,控制第一虚拟对象丢弃拥有的第一虚拟消耗品。
终端控制第一虚拟对象丢弃拥有的第一虚拟消耗品至虚拟环境中。
步骤2010,获取第一虚拟消耗品在虚拟环境中所处的位置。
终端获取第一虚拟消耗品在虚拟环境中所处的位置。
步骤2011,向第二虚拟对象发送丢弃标记消息。
基于第一虚拟消耗品在虚拟环境中的位置信息和第一虚拟消耗品的丢弃数量,终端控制第一虚拟对象向第二虚拟对象发送丢弃标记消息。
步骤2012,从消耗品选项栏中移除第一消耗品选项。
终端将第一消耗品选项从消耗品选项栏中移除,从而简化消耗品选项栏。
请参考图21,其示出了本申请一个示例性实施例提供的控制第一虚拟对象执行丢弃操作过程的流程图。
步骤2101,接收拖动第一消耗品选项至第二交互识别区域的操作。
终端接收用户拖动第一消耗品选项至第二交互识别区域的操作。
步骤2102,对第二交互识别区域高亮显示。
响应于第一消耗品选项被拖动至第二交互识别区域,终端对第二交互识别区域高亮显示。
步骤2103,判断拖动终点位置是否为第二交互识别区域。
在拖动终点位置为第二交互识别区域的情况下,进入步骤2104;在拖动终点位置不为第二交互识别区域的情况下,返回步骤2102。
步骤2104,判断第一虚拟对象是否拥有消耗第一虚拟消耗品的虚拟道具。
在第一虚拟对象拥有消耗第一虚拟消耗品的虚拟道具的情况下,进入步骤2105~2106;在第一虚拟对象未拥有消耗第一虚拟消耗品的虚拟道具的情况下,进入步骤2107~2108。
步骤2105,控制第一虚拟对象丢弃拥有的第一虚拟消耗品。
终端控制第一虚拟对象丢弃拥有的第一虚拟消耗品至虚拟环境中。
步骤2106,更新消耗品选项栏中的第一消耗品选项。
终端对消耗品选项栏中的第一消耗品选项进行更新显示,将第一消耗品选项中的第一虚拟消耗品数量设置为零,并对第一消耗品选项进行提高透明度显示。
步骤2107,控制第一虚拟对象丢弃拥有的第一虚拟消耗品。
终端控制第一虚拟对象丢弃拥有的第一虚拟消耗品至虚拟环境中。
步骤2108,从消耗品选项栏中移除第一消耗品选项。
终端将第一消耗品选项从消耗品选项栏中移除,从而简化消耗品选项栏。
请参考图22,其示出了本申请一个示例性实施例提供的虚拟消耗品的索要丢弃装置的结构框图,该装置包括:
显示模块2201,用于显示消耗品选项栏,所述消耗品选项栏中包含至少一种虚拟消耗品对应的消耗品选项;
接收模块2202,用于接收对所述消耗品选项栏中第一消耗品选项的触发操作,所述第一消耗品选项对应第一虚拟消耗品;
控制模块2203,用于基于所述触发操作,控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作,所述交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种;
其中,所述丢弃操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,所述丢弃标记操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,并标记所述第一虚拟消耗品在所述虚拟环境中的位置,所述索要操作用于向第二虚拟对象索要所述第一虚拟消耗品。
可选的,所述控制模块2203,包括:
第一控制单元,用于在接收到第一触发操作的情况下,控制所述第一虚拟对象执行针对所述第一虚拟消耗品的所述丢弃标记操作;或,
第二控制单元,用于在接收到第二触发操作的情况下,控制所述第一虚拟对象执行针对所述第一虚拟消耗品的所述丢弃操作;或,
第三控制单元,用于在接收到第三触发操作的情况下,控制所述第一虚拟对象执行针对所述第一虚拟消耗品的所述索要操作;
其中,所述第一触发操作、所述第二触发操作以及所述第三触发操作互不相同。
可选的,所述第一触发操作和所述第二触发操作为拖动终点位置不同的拖动操作;
所述接收模块2202,包括:
显示单元,用于在接收到对所述第一消耗品选项的拖动操作的情况下,显示第一交互识别区域和第二交互识别区域;
第一接收单元,用于在拖动操作的拖动终点位置位于所述第一交互识别区域的情况下,确定接收到所述第一触发操作;
第二接收单元,用于在拖动操作的拖动终点位置位于所述第二交互识别区域的情况下,确定接收到所述第二触发操作。
可选的,所述显示单元,用于:
在接收到对所述第一消耗品选项的拖动操作,且所述第一虚拟消耗品的剩余数量大于零的情况下,显示所述第一交互识别区域和所述第二交互识别区域。
可选的,所述接收模块2202,包括:
第三接收单元,用于在接收到对所述第一消耗品选项的点击操作的情况下,确定接收到所述第三触发操作。
可选的,
所述第一控制单元,还用于在所述交互操作为所述丢弃标记操作的情况下,控制所述第一虚拟对象丢弃拥有的所述第一虚拟消耗品;基于所述第一虚拟消耗品所处的位置,向所述第二虚拟对象发送丢弃标记消息;或,
所述第二控制单元,还用于在所述交互操作为所述丢弃操作的情况下,控制所述第一虚拟对象丢弃拥有的所述第一虚拟消耗品;或,
所述第三控制单元,还用于在所述交互操作为所述索要操作的情况下,控制所述第一虚拟对象向所述第二虚拟对象发送第一索要消息,所述第一索要消息中包含所述第一虚拟消耗品的名称。
可选的,所述虚拟消耗品在虚拟道具使用过程中被消耗;
所述第一控制单元和所述第二控制单元,用于:
在所述第一虚拟消耗品不属于目标虚拟消耗品的情况下,控制所述第一虚拟对象丢弃拥有的所述第一虚拟消耗品,所述目标虚拟消耗品为所述第一虚拟对象所拥有虚拟道具所消耗的虚拟消耗品。
可选的,所述第一控制单元和所述第二控制单元,还用于:
在所述第一虚拟消耗品属于目标虚拟消耗品的情况下,显示丢弃确认控件,所述目标虚拟消耗品为所述第一虚拟对象所拥有虚拟道具所消耗的虚拟消耗品;
响应于对所述丢弃确认控件的确认操作,控制所述第一虚拟对象丢弃拥有的所述第一虚拟消耗品。
可选的,所述控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作之前,所述装置还包括:
控件显示模块,用于显示数量设置控件,所述数量设置控件用于设置所述第一虚拟消耗品的交互数量;
数量确定模块,用于基于对所述数量设置控件的设置操作,确定第一数量;
所述控制模块2203,用于:
在所述交互操作为所述丢弃标记操作的情况下,控制所述第一虚拟对象丢弃所述第一数量的所述第一虚拟消耗品;基于所述第一虚拟消耗品所处的位置,向所述第二虚拟对象发送丢弃标记消息;或,
在所述交互操作为所述丢弃操作的情况下,控制所述第一虚拟对象丢弃所述第一数量的所述第一虚拟消耗品;或,
在所述交互操作为所述索要操作的情况下,控制所述第一虚拟对象向所述第二虚拟对象发送第一索要消息,所述第一索要消息中包含所述第一虚拟消耗品的名称以及所述第一数量。
可选的,所述交互操作为所述丢弃标记操作;
所述控件显示模块,用于:
在接收到针对所述第一虚拟消耗品的第二索要消息的情况下,获取所述第二索要消息中包含的第二数量;
基于所述第二数量以及所述第一虚拟对象拥有的所述第一虚拟消耗品的第三数量,显示所述数量设置控件,其中,在所述第三数量大于或等于所述第二数量的情况下,所述数量设置控件初始显示的数量为所述第二数量;在所述第三数量小于所述第二数量的情况下,所述数量设置控件初始显示的数量为所述第三数量。
可选的,所述控件显示模块,用于:
在对所述消耗品选项栏中所述第一消耗品选项的所述触发操作的操作时长大于时长阈值的情况下,显示所述数量设置控件。
可选的,在所述交互操作为所述丢弃操作或所述丢弃标记操作的情况下,所述控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作之后,所述装置还包括:
选项更新模块,用于在丢弃后所述第一虚拟消耗品的剩余数量大于零的情况下,更新所述消耗品选项栏中的所述第一消耗品选项;
所述选项更新模块,还用于在丢弃后所述第一虚拟消耗品的剩余数量等于零,且所述第一虚拟对象拥有消耗所述第一虚拟消耗品的虚拟道具的情况下,更新所述消耗品选项栏中的所述第一消耗品选项;
选项移除模块,用于在丢弃后所述第一虚拟消耗品的剩余数量等于零,且所述第一虚拟对象未拥有消耗所述第一虚拟消耗品的虚拟道具的情况下,从所述消耗品选项栏中移除所述第一消耗品选项。
可选的,所述显示模块2201,用于:
响应于对消耗品填充控件的第四触发操作,显示所述消耗品选项栏,所述消耗品填充控件用于触发为携带的虚拟道具填充虚拟消耗品,且所述第四触发操作不同于用于触发进行虚拟消耗品填充的第五触发操作;
或,
响应于对消耗品填充控件关联的消耗品展示控件的第六触发操作,显示所述消耗品选项栏。
可选的,
所述消耗品选项栏中包含第二虚拟消耗品对应的消耗品选项,所述第二虚拟消耗品指所述第一虚拟对象所拥有虚拟道具所消耗的虚拟消耗品;
或者,
所述消耗品选项栏中包含全部类型虚拟消耗品对应的消耗品选项,且所述消耗品选项栏中所述第二虚拟消耗品对应的消耗品选项集中显示。
综上所述,本申请实施例中,终端以消耗品选项栏作为控制第一虚拟对象执行交互操作的入口,在显示消耗品选项栏的同时,显示至少一种虚拟消耗品对应的消耗品选项,并基于接收到的对消耗品选项栏中第一消耗品选项的触发操作,控制第一虚拟对象执行针对第一虚拟消耗品的交互操作,该交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种,从而实现以消耗品选项栏为统一入口,控制第一虚拟对象执行多种针对第一虚拟消耗品的交互操作,简化了控制第一虚拟对象执行交互操作的路径,提高了交互操作的执行效率。
需要说明的是:上述实施例提供的装置,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其实现过程详见方法实施例,这里不再赘述。
请参考图23,其示出了本申请一个示例性实施例提供的终端2300的结构框图。该终端2300可以是便携式移动终端,比如:智能手机、平板电脑、MP3播放器、MP4播放器。终端2300还可能被称为用户设备、便携式终端等其他名称。
通常,终端2300包括有:处理器2301、存储器2302和显示屏2303。
处理器2301可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器2301可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器2301也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(Central Processing Unit,CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器2301可以在集成有图像处理器(Graphics Processing Unit,GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器2301还可以包括人工智能(Artificial Intelligence,AI)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器2302可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是有形的和非暂态的。存储器2302还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器2302中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器2301所执行以实现本申请实施例提供的虚拟消耗品的索要丢弃方法。
显示屏2303是用于进行画面显示的组件。可选的,该显示屏2303还具有触控功能,用户可以通过在显示屏2303上进行触控操作,实现对显示内容的控制。比如,该显示屏2303为智能手机的触摸式显示屏,或者,显示屏2303为电视终端的非触摸式显示屏。
本领域技术人员可以理解,图23中示出的结构并不构成对终端2300的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如上各个实施例所述的虚拟消耗品的索要丢弃方法。
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。终端的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该终端执行上述方面的各种可选实现方式中提供的虚拟消耗品的索要丢弃方法。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (18)

  1. 一种虚拟消耗品的索要丢弃方法,所述方法由终端执行,所述方法包括:
    显示消耗品选项栏,所述消耗品选项栏中包含至少一种虚拟消耗品对应的消耗品选项;
    接收对所述消耗品选项栏中第一消耗品选项的触发操作,所述第一消耗品选项对应第一虚拟消耗品;
    基于所述触发操作,控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作,所述交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种;
    其中,所述丢弃操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,所述丢弃标记操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,并标记所述第一虚拟消耗品在所述虚拟环境中的位置,所述索要操作用于向第二虚拟对象索要所述第一虚拟消耗品。
  2. 根据权利要求1所述的方法,其中,所述基于所述触发操作,控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作,包括:
    在接收到第一触发操作的情况下,控制所述第一虚拟对象执行针对所述第一虚拟消耗品的所述丢弃标记操作;或,
    在接收到第二触发操作的情况下,控制所述第一虚拟对象执行针对所述第一虚拟消耗品的所述丢弃操作;或,
    在接收到第三触发操作的情况下,控制所述第一虚拟对象执行针对所述第一虚拟消耗品的所述索要操作;
    其中,所述第一触发操作、所述第二触发操作以及所述第三触发操作互不相同。
  3. 根据权利要求2所述的方法,其中,所述第一触发操作和所述第二触发操作为拖动终点位置不同的拖动操作;
    所述接收对所述消耗品选项栏中第一消耗品选项的触发操作,包括:
    在接收到对所述第一消耗品选项的拖动操作的情况下,显示第一交互识别区域和第二交互识别区域;
    在拖动操作的拖动终点位置位于所述第一交互识别区域的情况下,确定接收到所述第一触发操作;
    在拖动操作的拖动终点位置位于所述第二交互识别区域的情况下,确定接收到所述第二触发操作。
  4. 根据权利要求3所述的方法,其中,所述在接收到对所述第一消耗品选项的拖动操作的情况下,显示第一交互识别区域和第二交互识别区域,包括:
    在接收到对所述第一消耗品选项的拖动操作,且所述第一虚拟消耗品的剩余数量大于零的情况下,显示所述第一交互识别区域和所述第二交互识别区域。
  5. 根据权利要求2至4任一所述的方法,其中,所述接收对所述消耗品选项栏中第一消耗品选项的触发操作,包括:
    在接收到对所述第一消耗品选项的点击操作的情况下,确定接收到所述第三触发操作。
  6. 根据权利要求1至5任一所述的方法,其中,所述控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作,包括:
    在所述交互操作为所述丢弃标记操作的情况下,控制所述第一虚拟对象丢弃拥有的所述第一虚拟消耗品;基于所述第一虚拟消耗品所处的位置,向所述第二虚拟对象发送丢弃标记消息;或,
    在所述交互操作为所述丢弃操作的情况下,控制所述第一虚拟对象丢弃拥有的所述第一 虚拟消耗品;或,
    在所述交互操作为所述索要操作的情况下,控制所述第一虚拟对象向所述第二虚拟对象发送第一索要消息,所述第一索要消息中包含所述第一虚拟消耗品的名称。
  7. 根据权利要求6所述的方法,其中,所述虚拟消耗品在虚拟道具使用过程中被消耗;
    所述控制所述第一虚拟对象丢弃拥有的所述第一虚拟消耗品,包括:
    在所述第一虚拟消耗品不属于目标虚拟消耗品的情况下,控制所述第一虚拟对象丢弃拥有的所述第一虚拟消耗品,所述目标虚拟消耗品为所述第一虚拟对象所拥有虚拟道具所消耗的虚拟消耗品。
  8. 根据权利要求6或7所述的方法,其中,所述控制所述第一虚拟对象丢弃拥有的所述第一虚拟消耗品,还包括:
    在所述第一虚拟消耗品属于目标虚拟消耗品的情况下,显示丢弃确认控件,所述目标虚拟消耗品为所述第一虚拟对象所拥有虚拟道具所消耗的虚拟消耗品;
    响应于对所述丢弃确认控件的确认操作,控制所述第一虚拟对象丢弃拥有的所述第一虚拟消耗品。
  9. 根据权利要求1至5任一所述的方法,其中,所述控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作之前,所述方法还包括:
    显示数量设置控件,所述数量设置控件用于设置所述第一虚拟消耗品的交互数量;
    基于对所述数量设置控件的设置操作,确定第一数量;
    所述控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作,包括:
    在所述交互操作为所述丢弃标记操作的情况下,控制所述第一虚拟对象丢弃所述第一数量的所述第一虚拟消耗品;基于所述第一虚拟消耗品所处的位置,向所述第二虚拟对象发送丢弃标记消息;或,
    在所述交互操作为所述丢弃操作的情况下,控制所述第一虚拟对象丢弃所述第一数量的所述第一虚拟消耗品;或,
    在所述交互操作为所述索要操作的情况下,控制所述第一虚拟对象向所述第二虚拟对象发送第一索要消息,所述第一索要消息中包含所述第一虚拟消耗品的名称以及所述第一数量。
  10. 根据权利要求9所述的方法,其中,所述交互操作为所述丢弃标记操作;
    所述显示数量设置控件,包括:
    在接收到针对所述第一虚拟消耗品的第二索要消息的情况下,获取所述第二索要消息中包含的第二数量;
    基于所述第二数量以及所述第一虚拟对象拥有的所述第一虚拟消耗品的第三数量,显示所述数量设置控件,其中,在所述第三数量大于或等于所述第二数量的情况下,所述数量设置控件初始显示的数量为所述第二数量;在所述第三数量小于所述第二数量的情况下,所述数量设置控件初始显示的数量为所述第三数量。
  11. 根据权利要求9或10所述的方法,其中,所述显示数量设置控件,包括:
    在对所述消耗品选项栏中所述第一消耗品选项的所述触发操作的操作时长大于时长阈值的情况下,显示所述数量设置控件。
  12. 根据权利要求1至5任一所述的方法,其中,在所述交互操作为所述丢弃操作或所述丢弃标记操作的情况下,所述控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作之后,所述方法还包括:
    在丢弃后所述第一虚拟消耗品的剩余数量大于零的情况下,更新所述消耗品选项栏中的所述第一消耗品选项;
    在丢弃后所述第一虚拟消耗品的剩余数量等于零,且所述第一虚拟对象拥有消耗所述第一虚拟消耗品的虚拟道具的情况下,更新所述消耗品选项栏中的所述第一消耗品选项;
    在丢弃后所述第一虚拟消耗品的剩余数量等于零,且所述第一虚拟对象未拥有消耗所述第一虚拟消耗品的虚拟道具的情况下,从所述消耗品选项栏中移除所述第一消耗品选项。
  13. 根据权利要求1至5任一所述的方法,其中,所述显示消耗品选项栏,包括:
    响应于对消耗品填充控件的第四触发操作,显示所述消耗品选项栏,所述消耗品填充控件用于触发为携带的虚拟道具填充虚拟消耗品,且所述第四触发操作不同于用于触发进行虚拟消耗品填充的第五触发操作;
    或,
    响应于对消耗品填充控件关联的消耗品展示控件的第六触发操作,显示所述消耗品选项栏。
  14. 根据权利要求1所述的方法,其中,
    所述消耗品选项栏中包含第二虚拟消耗品对应的消耗品选项,所述第二虚拟消耗品指所述第一虚拟对象所拥有虚拟道具所消耗的虚拟消耗品;
    或者,
    所述消耗品选项栏中包含全部类型虚拟消耗品对应的消耗品选项,且所述消耗品选项栏中所述第二虚拟消耗品对应的消耗品选项集中显示。
  15. 一种虚拟消耗品的索要丢弃装置,所述装置包括:
    显示模块,用于显示消耗品选项栏,所述消耗品选项栏中包含至少一种虚拟消耗品对应的消耗品选项,所述虚拟消耗品在虚拟道具使用过程中被消耗;
    接收模块,用于接收对所述消耗品选项栏中第一消耗品选项的触发操作,所述第一消耗品选项对应第一虚拟消耗品;
    控制模块,用于控制第一虚拟对象执行针对所述第一虚拟消耗品的交互操作,所述交互操作包括丢弃操作、丢弃标记操作以及索要操作中的至少一种;
    其中,所述丢弃操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,所述丢弃标记操作用于将所述第一虚拟消耗品丢弃在虚拟环境中,并标记所述第一虚拟消耗品在所述虚拟环境中的位置,所述索要操作用于向第二虚拟对象索要所述第一虚拟消耗品。
  16. 一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如权利要求1至14任一所述的虚拟消耗品的索要丢弃方法。
  17. 一种计算机可读存储介质,所述可读存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如权利要求1至14任一所述的虚拟消耗品的索要丢弃方法。
  18. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述计算机设备执行如权利要求1至14任一所述的虚拟消耗品的索要丢弃方法。
PCT/CN2023/099736 2022-08-18 2023-06-12 虚拟消耗品的索要丢弃方法、装置、终端及存储介质 WO2024037156A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210992626.X 2022-08-18
CN202210992626.XA CN117618902A (zh) 2022-08-18 2022-08-18 虚拟消耗品的索要丢弃方法、装置、终端及存储介质

Publications (2)

Publication Number Publication Date
WO2024037156A1 true WO2024037156A1 (zh) 2024-02-22
WO2024037156A9 WO2024037156A9 (zh) 2024-04-11

Family

ID=89940603

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/099736 WO2024037156A1 (zh) 2022-08-18 2023-06-12 虚拟消耗品的索要丢弃方法、装置、终端及存储介质

Country Status (2)

Country Link
CN (1) CN117618902A (zh)
WO (1) WO2024037156A1 (zh)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110265041A1 (en) * 2010-04-23 2011-10-27 Ganz Radial user interface and system for a virtual world game
US20130290884A1 (en) * 2012-04-26 2013-10-31 Nintendo Co., Ltd. Computer-readable non-transitory storage medium having stored therein information processing program, information processing apparatus, information processing system, and information processing control method
CN110201403A (zh) * 2019-06-05 2019-09-06 腾讯科技(深圳)有限公司 控制虚拟对象对虚拟物品进行丢弃的方法、装置及介质
CN112516583A (zh) * 2020-12-11 2021-03-19 网易(杭州)网络有限公司 游戏中的数据处理方法、装置以及电子终端
CN113289331A (zh) * 2021-06-09 2021-08-24 腾讯科技(深圳)有限公司 虚拟道具的显示方法、装置、电子设备及存储介质
CN113398571A (zh) * 2021-05-26 2021-09-17 腾讯科技(深圳)有限公司 虚拟道具的切换方法、装置、终端及存储介质
CN114159785A (zh) * 2021-12-10 2022-03-11 网易(杭州)网络有限公司 虚拟道具丢弃方法、装置、电子设备和存储介质
CN114344903A (zh) * 2022-01-24 2022-04-15 腾讯科技(深圳)有限公司 控制虚拟对象拾取虚拟道具的方法、终端及存储介质
CN114404969A (zh) * 2022-01-21 2022-04-29 腾讯科技(深圳)有限公司 虚拟物品的处理方法、装置、电子设备及存储介质

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110265041A1 (en) * 2010-04-23 2011-10-27 Ganz Radial user interface and system for a virtual world game
US20130290884A1 (en) * 2012-04-26 2013-10-31 Nintendo Co., Ltd. Computer-readable non-transitory storage medium having stored therein information processing program, information processing apparatus, information processing system, and information processing control method
CN110201403A (zh) * 2019-06-05 2019-09-06 腾讯科技(深圳)有限公司 控制虚拟对象对虚拟物品进行丢弃的方法、装置及介质
CN112516583A (zh) * 2020-12-11 2021-03-19 网易(杭州)网络有限公司 游戏中的数据处理方法、装置以及电子终端
CN113398571A (zh) * 2021-05-26 2021-09-17 腾讯科技(深圳)有限公司 虚拟道具的切换方法、装置、终端及存储介质
CN113289331A (zh) * 2021-06-09 2021-08-24 腾讯科技(深圳)有限公司 虚拟道具的显示方法、装置、电子设备及存储介质
CN114159785A (zh) * 2021-12-10 2022-03-11 网易(杭州)网络有限公司 虚拟道具丢弃方法、装置、电子设备和存储介质
CN114404969A (zh) * 2022-01-21 2022-04-29 腾讯科技(深圳)有限公司 虚拟物品的处理方法、装置、电子设备及存储介质
CN114344903A (zh) * 2022-01-24 2022-04-15 腾讯科技(深圳)有限公司 控制虚拟对象拾取虚拟道具的方法、终端及存储介质

Also Published As

Publication number Publication date
CN117618902A (zh) 2024-03-01
WO2024037156A9 (zh) 2024-04-11

Similar Documents

Publication Publication Date Title
AU2021250929B2 (en) Virtual object control method and apparatus, device, and storage medium
US11931653B2 (en) Virtual object control method and apparatus, terminal, and storage medium
US20230044770A1 (en) Method and apparatus for using virtual item, device, and storage medium
WO2022247592A1 (zh) 虚拟道具的切换方法、装置、终端及存储介质
US20220043562A1 (en) Virtual object selection method and apparatus, device, and storage medium
WO2023138192A1 (zh) 控制虚拟对象拾取虚拟道具的方法、终端及存储介质
CN112691384B (zh) 虚拟物品信息的发送方法、显示方法、装置及终端
CN113144596B (zh) 棋盘画面的显示方法、装置、终端设备及存储介质
US20230321537A1 (en) Virtual object control method and apparatus, terminal, storage medium, and program product
WO2024037156A1 (zh) 虚拟消耗品的索要丢弃方法、装置、终端及存储介质
WO2024109377A1 (zh) 虚拟道具的丢弃方法、装置、终端及存储介质
US20220288491A1 (en) Virtual item information transmission method and apparatus, virtual item information display method and apparatus, and terminal
US20240009566A1 (en) Virtual prop transfer method and apparatus, terminal, storage medium, and program product
WO2024021847A1 (zh) 虚拟对象的标记方法、装置、终端及存储介质
KR20240090797A (ko) 가상 아이템 전송 방법 및 장치, 단말기, 저장 매체, 그리고 프로그램 제품
CN117861210A (zh) 游戏中的信息处理方法、装置、电子设备及可读存储介质
CN118236705A (zh) 虚拟对局中历史消息的显示方法、装置、终端及存储介质
CN117764758A (zh) 用于虚拟场景的群组建立方法、装置、设备及存储介质
CN117861209A (zh) 虚拟对象标记方法、装置和计算机可读存储介质
CN115364493A (zh) 游戏中的消息发送方法、装置、计算机设备和存储介质
CN116966544A (zh) 区域提示方法、装置、存储介质及计算机设备
CN116492671A (zh) 虚拟资源处理方法、装置、计算机设备及存储介质
CN116328315A (zh) 基于区块链的虚拟模型处理方法、装置、终端及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23854061

Country of ref document: EP

Kind code of ref document: A1