Virtual article exchange scheme display method and apparatus, and device and storage medium
By displaying exchange application controls and displaying virtual item exchange solutions in the backpack interface of virtual objects in first-person shooting games, the problem of low communication efficiency of virtual item exchange is solved, and a more efficient virtual item exchange process is achieved.
Patent Information
- Application Number
- PCT/CN2024/104386
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-12
- Filing Date
- 2024-07-09
- Publication Date
- 2025-03-20
AI Technical Summary
In first-person shooting games, members of the same virtual camp communicate inefficiently and cumbersomely during the virtual item exchange process.
A method for displaying a virtual item exchange plan is provided. By displaying the exchange application control in the backpack interface of the virtual object, the virtual object enters the item exchange state, and the virtual item exchange plan is displayed, and the expected change of the virtual item quantity is displayed.
It improves the efficiency of virtual item exchange between virtual objects in the virtual camp, omits text or voice communication, and reduces learning costs.
Smart Images

Figure CN2024104386_20032025_PF_FP_ABST
Abstract
Description
Method, device, equipment and storage medium for displaying virtual item exchange scheme
[0001] This application claims priority to Chinese patent application number 202311178113.6, filed on September 12, 2023, entitled “Display method, device, equipment and storage medium for virtual item exchange scheme”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of human-computer interaction technology, and more particularly to a method, apparatus, device, and storage medium for displaying a virtual item exchange solution. Background Art
[0003] A first-person shooter (FPS) game is an application based on a three-dimensional virtual environment. Users can manipulate virtual objects in the virtual environment to perform actions such as walking, running, climbing, and shooting. Multiple users can team up online to collaboratively complete a task in the same virtual environment.
[0004] In related technologies, during a game, members of the same virtual camp often need to exchange virtual items due to a lack of virtual items or the need to allocate virtual items. During the exchange of virtual items, members need to communicate in advance through text or voice to understand the virtual items required by both parties and the excess virtual items. Only then can the item provider open the backpack, choose to exchange virtual items, discard and mark virtual items, and the item recipient must pick up the virtual items at the designated place.
[0005] Obviously, in the related art, the communication efficiency of exchanging virtual items between members of the same virtual camp during a game is low and the process is cumbersome.
[0006] Summary of the Invention
[0007] The embodiments of the present application provide a method, apparatus, device, and storage medium for displaying a virtual item exchange solution, which can improve the efficiency of virtual item exchange between virtual objects in a virtual camp. The technical solution is as follows:
[0008] In one aspect, an embodiment of the present application provides a method for displaying a virtual item exchange solution, the method being executed by a terminal and comprising:
[0009] Displaying an exchange application control in the backpack interface of the first virtual object, wherein the exchange application control is used to trigger the first virtual object to initiate a virtual item exchange application within the virtual camp;
[0010] In response to a triggering operation on the exchange application control, controlling the first virtual object to enter an item exchange state;
[0011] A first virtual item exchange plan is displayed in the backpack interface, where the first virtual item exchange plan is used to indicate a result of a change in the number of virtual items that is expected to occur when the first virtual object executes the virtual item exchange.
[0012] On the other hand, an embodiment of the present application provides a display device for a virtual item exchange solution, the device comprising:
[0013] A first display module, configured to display an exchange application control in a backpack interface of a first virtual object, wherein the exchange application control is configured to trigger the first virtual object to initiate a virtual item exchange application within a virtual camp;
[0014] a second display module, configured to control the first virtual object to enter an item exchange state in response to a triggering operation on the exchange application control;
[0015] The third display module is configured to display a first virtual item exchange plan in the backpack interface, where the first virtual item exchange plan is configured to indicate a predicted result of a change in the number of virtual items that will occur when the first virtual object executes the virtual item exchange.
[0016] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for displaying the virtual item exchange solution as described in the above aspect.
[0017] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores at least one program, and the at least one program is loaded and executed by a processor to implement the display method of the virtual item exchange solution as described in the above aspects.
[0018] In another aspect, embodiments of the present application provide a computer program product comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method for displaying a virtual item exchange solution described in the above aspects.
[0019] The beneficial effects of the technical solution provided by this application include at least:
[0020] By adding an exchange application display control to the backpack interface of the first virtual object, when a trigger operation is received on the exchange application control, the first virtual object can be controlled to enter the item exchange state and the first virtual item exchange plan can be displayed. In this way, the first virtual object can understand the expected change in the number of virtual items that will occur by executing the virtual item exchange without communicating through text or voice, omitting the communication process for virtual item exchange between virtual objects, improving the efficiency of virtual item exchange between virtual objects in the virtual camp, and eliminating the need for the player who controls the first virtual object to perform complex exchange operations and understand the specific exchange method, thereby reducing the learning cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] FIG1 is a schematic diagram of a computer system provided by an embodiment of the present application;
[0022] FIG2 shows a flow chart of a method for displaying a virtual item exchange solution provided by an exemplary embodiment of the present application;
[0023] FIG3 shows a schematic diagram of an interface for displaying a virtual item exchange solution provided by an exemplary embodiment of the present application;
[0024] FIG4 shows a flow chart of a method for displaying a virtual item exchange solution provided by another exemplary embodiment of the present application;
[0025] FIG5 shows a schematic diagram of an interface for displaying a location control provided by an exemplary embodiment of the present application;
[0026] FIG6 shows a schematic diagram of an interface displaying a first virtual item exchange solution provided by an exemplary embodiment of the present application;
[0027] FIG7 shows a schematic diagram of an interface for controlling a first virtual object to synchronize with a first virtual item exchange solution provided by an exemplary embodiment of the present application;
[0028] FIG8 is a schematic diagram showing an interface for controlling a first virtual object to discard redundant first virtual items, provided by an exemplary embodiment of the present application;
[0029] FIG9 shows an interface diagram of updating an exchange application control to a cancel application control provided by an exemplary embodiment of the present application;
[0030] FIG10 is a schematic diagram showing an interface for controlling a first virtual object and a second virtual object to exchange virtual items, provided by an exemplary embodiment of the present application;
[0031] FIG11 shows a flowchart of displaying first virtual item value difference information provided by an exemplary embodiment of the present application;
[0032] FIG12 shows a flowchart of synchronizing first virtual item value difference information provided by an exemplary embodiment of the present application;
[0033] FIG13 shows a flowchart of virtual item exchange within a virtual camp provided by an exemplary embodiment of the present application;
[0034] FIG14 shows a flowchart of discarding excess virtual items provided by an exemplary embodiment of the present application;
[0035] FIG15 shows a structural block diagram of a display device for a virtual item exchange solution provided by an exemplary embodiment of the present application;
[0036] FIG16 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0037] Please refer to Figure 1, which shows a schematic diagram of a computer system provided by an embodiment of the present application. The computer system 100 may include: a first terminal 110, a server 120 and a second terminal 130.
[0038] An application 111 supporting a virtual environment is running on the first terminal 110. When the first terminal 110 runs application 111, the user interface of application 111 is displayed on the screen of the first terminal 110. Application 111 can be a multiplayer online battle program, specifically any of a Multiplayer Online Battle Arena (MOBA) game, a Simulation Game (SLG), a Massive Multiplayer Online Role-Playing Game (MMORPG), or a First-Person Shooter (FPS) game. In this embodiment, an FPS game is used as an example. First terminal 110 is used by a first user 112. First user 112 uses first terminal 110 to control a first virtual object in the virtual environment to perform activities. The first virtual object can be referred to as the first user 112's primary virtual 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 performing skills. Illustratively, the first virtual object is a first virtual character, such as a simulated character or a cartoon character.
[0039] An application 131 supporting a virtual environment is running on the second terminal 130. When the second terminal 130 runs application 131, the user interface of application 131 is displayed on the screen of the second terminal 130. Application 131 can be a multiplayer online battle program, specifically any of a MOBA, SLG, MMORPG, or FPS game. In this embodiment, an FPS game is used as an example. Second terminal 130 is used by a second user 132. Second user 132 uses second terminal 130 to control a second virtual object in the virtual environment to perform activities. This second virtual object can be referred to as the second user's 132 primary virtual character. Illustratively, the second virtual object is a second virtual person, such as a realistic or animated character.
[0040] Optionally, the first virtual object and the second virtual object are in the same virtual environment. Optionally, the first virtual object and the second virtual object may belong to the same virtual camp, the same virtual team, the same virtual organization, have a friendship relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object may belong to different virtual camps, different virtual teams, different virtual organizations, or have a hostile relationship.
[0041] Optionally, the applications installed on the first terminal 110 and the second terminal 130 are the same, or the applications installed on the two terminals are the same type of applications on different operating system platforms (Android or iOS). The first terminal 110 can generally refer to one of multiple terminals, and the second terminal 130 can generally refer to another of the multiple terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as an example. The first terminal 110 and the second terminal 130 can be of the same or different device types, including at least one of a smartphone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop computer, and a desktop computer.
[0042] FIG1 shows only two terminals, but in different embodiments, multiple other terminals can access the server 120. Optionally, one or more terminals are terminals corresponding to developers, and a development and editing platform for applications supporting virtual environments is installed on these terminals. Developers can edit and update applications on these terminals and transmit the updated application installation packages to the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 can download the application installation packages from the server 120 to update the applications.
[0043] The first terminal 110 , the second terminal 130 and other terminals are connected to the server 120 via a wireless network or a wired network.
[0044] Server 120 includes at least one of a single server, a server cluster consisting of multiple servers, a cloud computing platform, and a virtualization center. Server 120 provides backend services for applications that support 3D virtual environments. Optionally, server 120 performs primary computing tasks, while terminals perform secondary computing tasks; alternatively, server 120 performs secondary computing tasks, while terminals perform primary computing tasks; alternatively, server 120 and terminals utilize a distributed computing architecture to perform collaborative computing.
[0045] In an illustrative example, 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 (I / O interface) 125. The processor 122 is configured to load instructions stored in the server 120 and process data in the user account database 123 and the battle service module 124. The user account database 123 is configured to store user account data used by the first terminal 110, the second terminal 130, and other terminals, such as user account avatars, user account nicknames, user account combat power indexes, and the service areas where the user accounts are located. The battle service module 124 is configured to provide multiple battle rooms for users to battle, such as 1v1 battles, 3v3 battles, 5v5 battles, 1v5 battles, etc. The user-oriented I / O interface 125 is configured to establish communication and exchange data with the first terminal 110 and / or the second terminal 130 via a wireless network or a wired network.
[0046] In combination with the above introduction, the display method of the virtual item exchange solution provided by this application is explained. The method can be executed by the server or the terminal, or by the server and the terminal together.
[0047] In some embodiments, for example, a first terminal 110 is used to control a first virtual object, a second terminal 130, and another terminal are respectively used to control other virtual objects within a virtual camp, wherein the other virtual objects may be in an item exchange state, and collaborative computing is performed among the first terminal 110, the second terminal 130, and the other terminals. The first terminal 110 then displays an exchange request control in the backpack interface of the first virtual object, which is used to trigger the first virtual object to initiate a virtual item exchange request within the virtual camp; in response to the triggering operation of the exchange request control, the first virtual object is controlled to enter an item exchange state; and a first virtual item exchange plan is displayed in the backpack interface, which is used to indicate the expected change in the number of virtual items that will occur as a result of the first virtual object performing the virtual item exchange. The first terminal 110 obtains virtual item value difference information of other virtual objects in the item exchange state from the second terminal 130 and other terminals, and the first terminal 110 obtains virtual item value difference information of the first virtual object. The first terminal 110 determines a virtual item exchange plan applicable to the first virtual object and the other virtual objects in the item exchange state based on the virtual item value difference information, and then determines and displays the first virtual item exchange plan. The first virtual item exchange plan is used to indicate the expected change in the number of virtual items of the first virtual object after the other virtual objects in the item exchange state have executed the virtual item exchange plan.
[0048] In some embodiments, for example, a first terminal 110 is used to control a first virtual object, a second terminal 130, and other terminals are respectively used to control other virtual objects within a virtual camp, wherein the other virtual objects may be in an item exchange state, and collaborative computing is performed among the first terminal 110, the second terminal 130, the other terminals, and the server 120. The first terminal 110 then displays an exchange request control in the backpack interface of the first virtual object, which is used to trigger the first virtual object to initiate a virtual item exchange request within the virtual camp; in response to the triggering operation of the exchange request control, the first virtual object is controlled to enter an item exchange state; and a first virtual item exchange plan is displayed in the backpack interface, which is used to indicate the expected change in the number of virtual items that will occur as a result of the first virtual object performing the virtual item exchange. The server 120 obtains virtual item difference information of the first virtual object and other virtual objects in the item exchange state from the first terminal 110, the second terminal 130 and other terminals respectively, and the server 120 determines a virtual item exchange plan applicable to the first virtual object and other virtual objects in the item exchange state based on the virtual item difference information, and then determines a first virtual item exchange plan. The server 120 sends the first virtual item exchange plan to the first terminal 110 to display the first virtual item exchange plan. The first virtual item exchange plan is used to indicate the expected change in the number of virtual items of the first virtual object after the other virtual objects in the item exchange state have executed the virtual item exchange plan.
[0049] In the embodiments of this application, the method is described using a terminal as an example. Please refer to Figure 2, which shows a flow chart of a method for displaying a virtual item exchange solution provided by an exemplary embodiment of this application. This embodiment describes 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. The method includes at least some of steps 201, 202, and 203:
[0050] Step 201: Display an exchange application control in the backpack interface of the first virtual object. The exchange application control is used to trigger the first virtual object to initiate a virtual item exchange application within the virtual camp.
[0051] Optionally, a virtual object refers to an movable object in a virtual environment. This movable object can be a virtual chess piece, a virtual person, a virtual animal, an animated character, or the like, for example, a person, animal, plant, oil drum, wall, stone, etc. displayed in a virtual environment. Optionally, a virtual object is a three-dimensional model created using animation skeletal technology. Each virtual object has its own shape and volume in the virtual environment and occupies a portion of the space within the virtual environment.
[0052] Optionally, a virtual game refers to an activity in which multiple virtual objects interact in a virtual environment by using virtual props, releasing skills, etc. Optionally, the form of a virtual game may include a 1v1 game, a 5v5 game, or a 1v5 dungeon mode, which is not limited in this embodiment of the application.
[0053] Optionally, a virtual camp refers to a camp team composed of multiple virtual objects that have a teammate relationship in a virtual game.
[0054] Optionally, the backpack interface is used to display to the player the virtual item information owned by the virtual object in the current virtual game, which may specifically include at least one of the virtual item type, virtual item name, and virtual item quantity owned by the virtual object. The virtual items may include at least one of virtual ammunition, virtual accessories, and virtual medicines, which is not limited in this embodiment of the present application.
[0055] In some embodiments, in order to facilitate the first virtual object to perform virtual item exchange within the virtual camp, the terminal can display an exchange application control in the backpack interface of the first virtual object, which is used to trigger the first virtual object to initiate a virtual item exchange application within the virtual camp.
[0056] Exemplarily, a virtual item exchange application is triggered by an exchange application control and is used to apply to exchange at least one virtual item with at least one other virtual object in the virtual camp. The exchange can be to obtain virtual items from other virtual objects, or to send one's own virtual items to other virtual objects. Optionally, the exchange application control is displayed in the surrounding area of the virtual items owned by the first virtual object, for example, in the upper area or lower area of the virtual items owned by the first virtual object. It is understandable that the exchange application control can also be named other names, for example, named as the first control or the application control, which can be used to trigger the first virtual object to initiate a virtual item exchange application in the virtual camp.
[0057] Schematically, as shown in FIG3 , the terminal displays an exchange application control 303 in the backpack interface 302 of the first virtual object 301 . The exchange application control 303 is displayed in the area below the virtual items owned by the first virtual object 301 .
[0058] Step 202: In response to a triggering operation on the exchange application control, the first virtual object is controlled to enter an item exchange state.
[0059] In some embodiments, upon receiving a trigger operation on an exchange application control by a player, the terminal may control the first virtual object to enter an item exchange state.
[0060] Optionally, the item exchange state refers to the state in which the first virtual object initiates a virtual item exchange with other virtual objects within the virtual camp. When the first virtual object enters the item exchange state, other virtual objects in the virtual camp that are also in the item exchange state can directly view and understand that the first virtual object currently has a virtual item exchange demand.
[0061] In a possible implementation, in order to let other virtual objects in the virtual camp know that the first virtual object has an item exchange demand, when the first virtual object enters the item exchange state, the terminal can also control the first virtual object to send a state entry notification to other virtual objects in the virtual camp.
[0062] In some embodiments, in order to improve the efficiency of virtual item exchange between multiple virtual objects in the item exchange state, while controlling the first virtual object to enter the item exchange state, the terminal can also display an exchange details control in the backpack interface, wherein the exchange details control is used to view the first virtual item exchange plan of the first virtual object.
[0063] Optionally, the exchange details control is displayed in an area surrounding the virtual items owned by the first virtual object, for example, in an area above or below the virtual items owned by the first virtual object. A virtual item exchange plan refers to a possible exchange plan applicable to each virtual object in an item exchange state in a virtual camp, for the virtual items that are in excess, missing, or insufficient for the aforementioned virtual objects. The first virtual item exchange plan of the first virtual object is used to indicate the change in the number of virtual items that the first virtual object is expected to send through the execution of a virtual item exchange.
[0064] For example, if the first virtual object has two extra virtual items, the virtual item exchange plan could be to give both medical kits to the second virtual object, or to give one medical kit each to the second and third virtual objects. For the first virtual object, the displayed first virtual item exchange plan is: expected to discard two medical kits and expected to receive zero other medicines. It is understood that the exchange details control can also be named something else, such as the second control or the details control, so long as it can be used to display the first virtual item exchange plan.
[0065] In some embodiments, the terminal further displays an exchange details control in the backpack interface, where the exchange details control is used to view the first virtual item exchange plan for the first virtual object; in response to a triggering operation on the exchange details control, the first virtual item exchange plan is displayed in the backpack interface.
[0066] Optionally, the player's triggering operation on the exchange request control may be a click operation, a long press operation, or other possible operation methods.
[0067] Optionally, in order to save the control display space of the backpack interface, the terminal may also directly update the exchange application control to the exchange details control after receiving the player's trigger operation on the exchange application control.
[0068] It should be noted that the embodiments of the present application do not specifically limit the display and triggering methods of each control.
[0069] 3 , upon receiving a click operation on the exchange application control 303 by the player, the terminal controls the first virtual object 301 to enter the item exchange state, and updates the exchange application control 303 to the exchange details control 304 in the backpack interface 302 to display the exchange details control 304 .
[0070] Step 203: Display a first virtual item exchange plan in the backpack interface. The first virtual item exchange plan is used to indicate the expected change in the number of virtual items that will occur when the first virtual object executes the virtual item exchange.
[0071] In some embodiments, upon receiving a player's trigger operation on the exchange details control, the terminal displays the first virtual item exchange plan corresponding to the first virtual object to the player in the backpack interface, so that the player can promptly understand through the first virtual item exchange plan: if each virtual object in the item exchange state in the current virtual game executes the virtual item exchange, the expected change in the number of virtual items of the first virtual object.
[0072] Optionally, in order to allow players to understand the virtual objects in the virtual camp that have entered the item exchange state, the first virtual item exchange plan may also include object information of other virtual objects in the virtual camp that are in the item exchange state, such as at least one of the object number, identification, avatar, and location information of the virtual objects.
[0073] Optionally, in order to enable the player to understand which virtual items the first virtual object can obtain and which virtual items need to be discarded if the virtual item exchange is performed, the first virtual item exchange plan is used to indicate the expected change in the number of virtual items that will occur when the first virtual object performs the virtual item exchange, such as: the item identifier and item quantity of the virtual items that may be obtained, the item identifier and item quantity of the virtual items that may be discarded, etc.
[0074] 3 , upon receiving a click operation on the exchange details control 304 by the player, the terminal displays a first virtual item exchange plan 305 corresponding to the first virtual object 301 in the backpack interface 302 , wherein the first virtual item exchange plan 305 includes object information of other virtual objects in the virtual camp that are in the item exchange state, specifically object number 13, and the expected change in the number of virtual items that will occur as a result of the first virtual object executing the virtual item exchange is that it may obtain 2 virtual items of a certain type and may discard 1 virtual item of another type.
[0075] In summary, by adding a display exchange request control to the backpack interface of the first virtual object, upon receiving a trigger operation for the exchange request control, the first virtual object can be controlled to enter an item exchange state, and the first virtual item exchange plan can be displayed in the backpack interface. This allows the first virtual object to understand the expected change in the number of virtual items that will occur after the first virtual object executes the virtual item exchange without communicating through text or voice, thereby omitting the virtual item communication process between virtual objects and improving the efficiency of virtual item exchange between virtual objects in the virtual camp. In some embodiments, in order to improve the accuracy of the first virtual item exchange plan and provide the first virtual object with a relatively accurate virtual item exchange plan within the virtual camp, the terminal also needs to determine the virtual item exchange plan applicable to each virtual object based on the virtual item ownership status of each virtual object in the virtual camp.
[0076] Please refer to Figure 4, which shows a flowchart of a method for displaying a virtual item exchange solution provided by another exemplary embodiment of the present application. This embodiment is described using the method as an example of the first terminal 110 or the second terminal 130 in the implementation environment shown in Figure 1, or other terminals in the implementation environment. The method includes at least some of steps 401, 402, 403, 404, and 405:
[0077] Step 401: Display an exchange application control in the backpack interface of the first virtual object. The exchange application control is used to trigger the first virtual object to initiate a virtual item exchange application within the virtual camp.
[0078] Step 402: In response to the triggering operation of the exchange application control, the first virtual object is controlled to enter the item exchange state, and the exchange details control is displayed in the backpack interface. The exchange details control is used to view the virtual item exchange plan applicable to the first virtual object.
[0079] The specific implementation of steps 401 to 402 may refer to steps 201 to 202, which will not be described in detail in this embodiment.
[0080] Step 403, in response to the triggering operation of the exchange details control, obtain the virtual item difference information corresponding to each virtual object currently in the item exchange state in the virtual camp, the virtual item difference information is used to represent the difference between the actual number of virtual items corresponding to the virtual objects and the upper limit of the number.
[0081] In some embodiments, upon receiving a player's triggering operation on the exchange details control, the terminal may first determine each virtual object in the virtual camp currently in an item exchange state and obtain virtual item value difference information corresponding to each virtual object. The virtual objects in the virtual camp currently in an item exchange state also include the first virtual object.
[0082] Optionally, the virtual item difference information is used to represent the difference between the actual owned quantity and the upper limit of the quantity of virtual items corresponding to the virtual objects.
[0083] Optionally, the upper limit of the number of virtual items refers to the optimal number of virtual items that a virtual object can own in a virtual game. It can be specific to the optimal number of virtual items owned separately, and the optimal number of virtual items owned can be the same or different. In other embodiments, it can also be the optimal number of all virtual items owned.
[0084] For example, the maximum number of virtual items for a virtual object means that the optimal number of all virtual items owned by the virtual object is 100. For another example, the maximum number of virtual items for a virtual object means that the optimal number of each type of virtual item owned by the virtual object is 30. For another example, the maximum number of virtual items for a virtual object means that the optimal number of each type of virtual item owned by the virtual object is 15. In the embodiments of the present application, the maximum number of virtual items is described using the optimal number of each type of virtual item as an example.
[0085] Optionally, the upper limit of the number of virtual items of the virtual object can be a value set by the player before the virtual game, or a value preset by the terminal, or a value adjusted in real time based on the current game situation of the virtual object. The current game situation includes at least one of the current level, health points, number of kills, and win rate. This embodiment of the present application does not limit this.
[0086] Optionally, the actual number of virtual items owned by the virtual object refers to the actual number of virtual items currently owned by the virtual object in the virtual game, and the actual number of virtual items owned will change in real time according to the virtual object's picking up, discarding and using of virtual items in the virtual game.
[0087] In an illustrative example, the upper limit of the quantity of the virtual item corresponding to the first virtual object is 10. If the actual number of virtual items corresponding to the first virtual object is 15, the virtual item difference of the first virtual item is 5 more; if the actual number of virtual items corresponding to the first virtual object is 5, the virtual item difference of the first virtual item is 5 less.
[0088] In one possible implementation, upon receiving a player's trigger operation on an exchange details control, the terminal first determines object information of each virtual object currently in an item exchange state in the virtual camp, such as at least one of the object number, identifier, and avatar of the virtual object, and then obtains the actual number and quantity upper limit of the virtual items corresponding to each virtual object in the item exchange state. By subtracting the quantity upper limit from the actual number of virtual items, the virtual item difference information corresponding to the virtual item can be obtained, thereby calculating the virtual item difference information corresponding to each virtual object currently in an item exchange state in the virtual camp.
[0089] Step 404 : Determine a virtual item exchange plan applicable to each virtual object in the item exchange state based on the virtual item value difference information corresponding to each virtual object in the item exchange state.
[0090] In some embodiments, after obtaining the virtual item value difference information corresponding to each virtual object in the item exchange state, the terminal needs to determine a virtual item exchange plan applicable to each virtual object in the item exchange state based on the actual number of virtual items owned by each virtual object and the upper limit of the number.
[0091] In some embodiments, the terminal can first count the virtual items to be exchanged in the current virtual camp based on the virtual item difference information corresponding to each virtual object in the item exchange state, including the type of virtual items to be exchanged and the exchange quantity, wherein the virtual items to be exchanged are the virtual items owned by each virtual object in the item exchange state, the actual number of which is greater than the upper limit. The exchange quantity of the virtual items to be exchanged is the difference between the actual number and the upper limit. For example, the virtual items are medical kits and bandages. The first virtual object currently owns 5 medical kits, and the upper limit of the number of medical kits is 3. It currently owns 3 bandages, and the upper limit of the number of bandages is 5. Then the first virtual object has 2 more medical kits, and the virtual items to be exchanged of the first virtual object are medical kits, and the quantity is 2.
[0092] Furthermore, the terminal can determine the item distribution quantity of the virtual items to be exchanged between the virtual objects in the item exchange state based on the virtual item difference information corresponding to each virtual object, as well as the type and exchange quantity of the virtual items to be exchanged, thereby generating a virtual item exchange plan applicable to each virtual object in the item exchange state.
[0093] In a possible implementation, when there are at least two virtual objects in an item exchange state within a virtual camp, the terminal may first determine the lack and ownership status of each virtual object in the item exchange state with respect to the virtual item to be exchanged based on the type of the virtual item to be exchanged, and then determine the virtual item distribution quantity of the virtual item to be exchanged between each virtual object in the item exchange state based on the exchange quantity of the virtual item to be exchanged and the lack and ownership status of each virtual object in the item exchange state with respect to the virtual item to be exchanged.
[0094] In an illustrative example, virtual objects in an item exchange state within a virtual camp include a first virtual object and a second virtual object, wherein the first virtual item difference information of the first virtual object is that one first virtual item is missing and three second virtual items are in excess, and the second virtual item difference information of the second virtual object is that two second virtual items are missing. Thus, the terminal can determine that the virtual item to be exchanged is the second virtual item, and the exchangeable quantity of the second virtual item is three. Then, based on the second virtual item difference information, the terminal can determine to allocate two second virtual items to the second virtual object.
[0095] In an illustrative example, virtual objects in an item exchange state within a virtual camp include a first virtual object, a second virtual object, and a third virtual object. The first virtual item difference information of the first virtual object indicates that it lacks one first virtual item and has an excess of three second virtual items. The second virtual item difference information of the second virtual object indicates that it lacks two second virtual items and has an excess of two third virtual items. The third virtual item difference information of the third virtual object indicates that it lacks one second virtual item. Therefore, the terminal can determine that the virtual items to be exchanged are the second virtual item and the third virtual item. Based on the virtual items to be exchanged and the difference information of the first virtual item, it can be seen that the number of virtual items allocated to the first virtual object is 0. Based on the difference information of the virtual items to be exchanged and the second virtual item, it can be seen that the number of virtual items allocated to the second virtual object is two second virtual items. Based on the difference information of the virtual items to be exchanged and the third virtual item, it can be seen that the number of virtual items allocated to the third virtual object is one second virtual item. Since neither the first virtual object nor the third virtual object lacks the third virtual item, the terminal can randomly allocate the third virtual item to the first virtual object and the third virtual object, or it can not allocate the third virtual item.
[0096] In some embodiments, considering that the number of virtual items to be exchanged may be small, it may not always be possible to meet the item exchange needs of each virtual object in the item exchange state. Therefore, in order to improve the exchange efficiency of virtual items to be exchanged, the terminal can also determine the priority of allocating virtual items to be exchanged to each virtual object based on the actual number of virtual items owned and / or missing by each virtual object, so as to ensure that the number of virtual items of each virtual object after exchange can meet the needs of the virtual game as much as possible.
[0097] In another implementation, the priority may be determined based on the current game status of each virtual object, with the worse the current game status, the higher the priority. The current game status includes at least one of the current level, health, kill count, and win rate. For example, if the second virtual object has the lowest current health, the second virtual object will be assigned the highest priority, and virtual items will be exchanged with the second virtual object first.
[0098] In one possible implementation, after determining the virtual items to be exchanged within the virtual camp, the terminal may analyze the virtual item difference information corresponding to each virtual object in the item exchange state to determine the actual number of virtual items to be exchanged owned by each virtual object in the item exchange state. Furthermore, if the actual number of virtual items to be exchanged owned by a first target virtual object is less than the actual number of virtual items to be exchanged owned by other virtual objects, the terminal may prioritize determining the target virtual item allocation quantity for the virtual items to be exchanged corresponding to the first target virtual object. The first target virtual object is any one of the virtual objects in the item exchange state. The target virtual item allocation quantity is the missing number of virtual items to be exchanged owned by the first target virtual object.
[0099] In an illustrative example, virtual objects in an item exchange state within a virtual camp include a first virtual object, a second virtual object, and a third virtual object, wherein the first virtual item difference information of the first virtual object is that it lacks 1 first virtual item and has 3 extra second virtual items, the second virtual item difference information of the second virtual object is that it has 4 second virtual items, lacks 2 second virtual items, but has 2 extra third virtual items, and the third virtual item difference information of the third virtual object is that it has 1 second virtual item and lacks 1 second virtual item, so that the terminal can determine that the virtual items to be exchanged are the second virtual item and the third virtual item, and since Both the second virtual object and the third virtual object lack the second virtual item. Specifically, with respect to the second virtual item, although the second virtual object still lacks 2 second virtual items compared to the quantity upper limit, it already owns 4 second virtual items. Although the third virtual object only lacks 1 second virtual item compared to the quantity upper limit, it only owns 1 second virtual item. It can be seen that the actual number of second virtual items owned by the second virtual object is greater than the actual number of second virtual items owned by the third virtual object. Therefore, with respect to the second virtual item, the terminal can prioritize determining the target virtual item allocation quantity for the third virtual object, and then determine the target virtual item allocation quantity corresponding to the second virtual object.
[0100] In one possible implementation, in addition to considering the actual number of virtual items to be exchanged owned by each virtual object, the missing number of virtual items to be exchanged by each virtual object also needs to be considered. Thus, after determining the actual number of virtual items to be exchanged owned by each virtual object in the item exchange state and the missing number of virtual items to be exchanged, the terminal can first compare the actual number of virtual items to be exchanged owned by each virtual object, and then compare the missing number of virtual items to be exchanged by each virtual object. Optionally, if the actual number of virtual items to be exchanged owned by the first target virtual object is equal to the actual number of virtual items to be exchanged owned by other virtual objects, and the missing number of virtual items to be exchanged by the first target virtual object is greater than the missing number of virtual items to be exchanged by other virtual objects, the terminal can prioritize determining the target virtual item allocation quantity for the virtual items to be exchanged corresponding to the first target virtual object.
[0101] In an illustrative example, virtual objects in an item exchange state within a virtual camp include a first virtual object, a second virtual object, and a third virtual object, wherein the first virtual item difference information of the first virtual object is that it lacks 1 first virtual item and has 3 extra second virtual items, the second virtual item difference information of the second virtual object is that it has 4 second virtual items, lacks 2 second virtual items, but has 2 extra third virtual items, and the third virtual item difference information of the third virtual object is that it has 4 second virtual items and lacks 1 second virtual item, so that the terminal can determine that the virtual items to be exchanged are the second virtual item and the third virtual item, and since both the second virtual object and the third virtual object lack the second virtual item, virtual items, among which, for the second virtual item, although the second virtual object is still short of 2 second virtual items compared to the quantity upper limit, it already owns 4 second virtual items; although the third virtual object is still short of 1 second virtual item compared to the quantity upper limit, it already owns 4 second virtual items. It can be seen that the actual number of second virtual items owned by the second virtual object is equal to the actual number of second virtual items owned by the third virtual object, but the missing number of second virtual items of the second virtual object is greater than the missing number of second virtual items of the third virtual object. Therefore, for the second virtual item, the terminal can prioritize determining the target virtual item allocation quantity of the second virtual object, and then determine the target virtual item allocation quantity corresponding to the third virtual object.
[0102] Optionally, the missing condition of the virtual items to be exchanged includes the missing quantity, and the possession condition of the virtual items to be exchanged includes the actual possessed quantity. In conjunction with the above embodiment, the terminal determines the detailed steps of the virtual item exchange scheme applicable to each virtual object in the item exchange state as follows:
[0103] 1) Count the virtual objects in the virtual camp that are in the item exchange state;
[0104] 2) Counting the types and quantities of virtual items to be exchanged for each of the aforementioned virtual objects;
[0105] 3) Summarize the types and quantities of all virtual items to be exchanged;
[0106] 4) reading the difference between the actual number of virtual items owned by the aforementioned virtual object and the upper limit of the number for each virtual item to be exchanged;
[0107] 5) For each virtual object with excess virtual items to be exchanged, determine whether other virtual objects are missing, how many other virtual objects are missing, and the actual number of virtual items to be exchanged owned by each of these other virtual objects;
[0108] 6) Determine a virtual item exchange plan applicable to the aforementioned virtual objects; for a virtual object having excess virtual items to be exchanged, there are other virtual objects that lack the virtual items to be exchanged; wherein, if there is one other virtual object, the virtual items are allocated to the other virtual object, and the allocated amount of the virtual items is the amount of the virtual items to be exchanged that the other virtual object lacks; if there are multiple other virtual objects, priority is given to the other virtual objects that actually have less of the virtual items to be exchanged, and the allocated amount of the virtual items is the amount of the virtual items to be exchanged that the other virtual objects lack; if multiple other virtual objects actually have the same amount of the virtual items to be exchanged, priority is given to the other virtual objects that have a larger difference between the actual amount and the upper limit, and the allocated amount of the virtual items is the amount of the virtual items to be exchanged that the other virtual objects lack; if the difference between the actual amount and the upper limit is the same for multiple other virtual objects, the virtual items are randomly allocated to any other virtual object, and the allocated amount of the virtual items is the amount of the virtual items to be exchanged that the other virtual object lacks; it is understood that when the amount of the virtual items to be exchanged that is missing is much greater than the exchange amount of the virtual items to be exchanged, the maximum allocated amount of the virtual items is the exchange amount;
[0109] 7) Determine whether there are still excess virtual items to be exchanged that have not been exchanged. If there are still excess virtual items to be exchanged, determine the actual number of virtual items owned by all virtual objects for the virtual items to be exchanged, and give priority to allocating them to other virtual objects with smaller actual numbers; if the actual numbers owned by multiple other virtual objects are also the same, randomly allocate them to any other virtual object.
[0110] Step 405: Display the first virtual item exchange plan in the backpack interface.
[0111] In some embodiments, after determining the virtual item exchange plan applicable to each virtual object in the item exchange state, the terminal can display the first virtual item exchange plan in the backpack interface. Specifically, the first virtual item exchange plan includes the object information corresponding to each virtual object in the item exchange state, and the expected change in the number of virtual items of the first virtual object when each virtual object in the item exchange state executes the virtual item exchange indicated by the virtual item exchange plan. Optionally, the object information includes at least one of the object number, identification, avatar, and location information of the virtual object. It should also be noted that the terminal in this embodiment does not need to display the specific content of the virtual item exchange plan applicable to each virtual object in the item exchange state, and only needs to display the first virtual item exchange plan.
[0112] However, considering that the virtual environment is constantly changing, the virtual objects in the same virtual camp that are in the item exchange state may be far apart, resulting in that it is not necessarily possible to execute virtual item exchanges at the same time. For example, when the first virtual object, the second virtual object and the third virtual object are all in the item exchange state, the first virtual object is close to the second virtual object, and the third virtual object is far away from the first virtual object and the second virtual object. Therefore, it is more convenient to execute virtual item exchanges between the first virtual object and the second virtual object. However, if only the backpack interface shows that the first virtual object, the second virtual object and the third virtual object are all participating in the virtual item exchange, the first virtual item exchange plan corresponding to the first virtual object will result in the player being unable to fully understand the changes in the number of virtual items of the first virtual object under different virtual item exchange situations.
[0113] In one possible implementation, when there are at least two virtual objects in an item exchange state other than the first virtual object in the virtual camp, in order to facilitate the player to understand the result of the change in the number of virtual items of the first virtual object under different virtual item exchange situations, the terminal can display the target virtual item exchange plan in the backpack interface in response to the player's triggering operation on the target object information. The target object information is the selected one of the object information of the at least two virtual objects in the item exchange state mentioned above. The target virtual exchange plan is used to predict the result of the change in the number of virtual items that will occur by executing the virtual item exchange between the first virtual object and the virtual object corresponding to the target object information. Optionally, the target virtual exchange plan also includes the target object information.
[0114] In an illustrative example, when the first virtual object, the second virtual object, and the third virtual object are all in an item exchange state, upon receiving a player's trigger operation on an exchange details control, the terminal first displays a first virtual item exchange plan, which includes the object information of the first virtual object, the second virtual object, and the third virtual object, as well as a result of a change in the number of virtual items of the first virtual object when the first virtual object, the second virtual object, and the third virtual object all participate in the virtual item exchange. Then, upon receiving a player's trigger operation on the object information of the second virtual object, the terminal displays a target virtual item exchange plan between the first virtual object and the second virtual object in a backpack interface. The target virtual item exchange plan is the expected result of a change in the number of virtual items of the first virtual object when the third virtual object does not participate in the virtual item exchange and only the first virtual object and the second virtual object perform virtual item exchange.
[0115] In the above embodiment, by determining the virtual item value difference information of each virtual object in the item exchange state within the virtual camp, and counting and allocating the exchange quantity of virtual items to be exchanged based on the virtual item value difference information of each virtual object, the accuracy of the first virtual item exchange plan is improved, and the efficiency of virtual item exchange between virtual objects is optimized.
[0116] In some embodiments, in order to increase the speed of virtual item exchange between virtual objects in the virtual environment, in addition to displaying the first virtual item exchange plan in the backpack interface, the terminal can also add a location setting control in the backpack interface, which is used to trigger the first virtual object to initiate a location collection in the virtual camp.
[0117] In a possible implementation, the terminal can obtain the location information of each virtual object in the item exchange state in the virtual environment, and determine the target moving location based on the location information of each virtual object in the item exchange state, so that the terminal displays a location control in the backpack interface, and the location control is used to trigger the first virtual object to initiate a location collection in the virtual camp to move to the target moving location. At the same time, in order to enable each player to find the target moving location more intuitively, upon receiving a trigger operation on the location control, the terminal can also display the location information of the target moving location in the virtual map, and the location information is used to instruct at least one other virtual object in the item exchange state to go to the target moving location to perform virtual item exchange.
[0118] Optionally, the target moving location is a fixed location, or any one of the locations where the virtual objects in the item exchange state are respectively located, or a preset location, and the distance between the preset location and the locations where the virtual objects in the item exchange state are respectively located is the same or the distance difference is less than a threshold.
[0119] In one possible implementation, taking into account the different urgency of virtual item exchange among virtual objects in an item exchange state, there may be virtual objects with currently low health values that urgently need to exchange virtual items to increase their health values. If the target moving location is determined only based on the position information of each virtual object, the virtual object with currently low health values may be unable to move to the target moving location, thereby causing the virtual item exchange to fail. Therefore, in order to improve the rationality of determining the target moving location, in addition to using the position information of each virtual object, the terminal can also determine the target moving location between virtual objects in an item exchange state based on the attribute values of each virtual object.
[0120] Optionally, the attribute value of the virtual object can be health value, attack value, or other values that affect the game status of the virtual object, which is not limited in the embodiments of the present application.
[0121] In an illustrative example, a first virtual object, a second virtual object, and a third virtual object are in an item exchange state in a virtual camp, wherein the third virtual object currently has a lower health value, so that when determining the target moving location, the terminal can consider determining the target moving location in a location in the virtual environment that is less than a distance threshold from the third virtual object.
[0122] Schematically, as shown in FIG5 , after determining the target moving location between the virtual objects in the item exchange state, the terminal displays a location control 503 in the backpack interface 502 of the first virtual object 501. The location control 503 is used to trigger the display of the specific location of the target moving location after being clicked. Then, when the player triggers the location control 503, the terminal displays the location information 504 of the target moving location in the virtual map.
[0123] In the above embodiment, by adding a display location control in the backpack interface, the virtual object that needs to perform virtual item exchange initiates a location collection within the virtual camp, and determines the target moving location based on the location information and attribute value of the virtual object, so that the virtual object in the item exchange state can quickly complete the location collection and perform virtual item exchange, thereby improving the efficiency of virtual item exchange between virtual objects in the virtual camp.
[0124] In some embodiments, in order to more intuitively understand the number of virtual items currently owned by the first virtual object before the player controls the first virtual object to initiate a virtual item exchange application, the terminal may also first display the first virtual item difference information of the first virtual object to the player in the backpack interface. The first virtual item difference information is used to represent the difference between the actual number of virtual items owned by the first virtual object and the upper limit.
[0125] In one possible implementation, upon receiving a viewing operation on the backpack interface by the player, the terminal first obtains the actual number of virtual items owned and the upper limit of the number corresponding to the first virtual object, and then determines the first virtual item difference information corresponding to the first virtual object based on the actual number of virtual items owned and the upper limit of the number, and displays the first virtual item difference information in the backpack interface.
[0126] Optionally, the first virtual item value difference information may include the actual owned quantity of each virtual item corresponding to the first virtual object, and the quantity difference between the actual owned quantity and the quantity upper limit.
[0127] Optionally, the quantity upper limit may be the upper limit value of each virtual item that the player sets in advance for the first virtual object before the virtual game, or it may be preset by the system, and this embodiment of the present application does not limit this.
[0128] In a possible implementation, in order to optimize the spatial display effect within the backpack interface, and taking into account that a virtual object generally needs to perform virtual item exchange only when it is missing virtual items, the terminal may display an exchange application control in the backpack interface when the actual number of virtual items owned by the first virtual object is less than the upper limit; and when the actual number of virtual items owned by the first virtual object is less than the upper limit, the exchange application control is not displayed.
[0129] In some embodiments, in order to enable the player to understand the first virtual item value difference information of the first virtual object more intuitively and specifically, the terminal may further display the first virtual item value difference information in different states using different display effects.
[0130] In one possible implementation, if the actual number of virtual items corresponding to the first virtual object is less than the upper limit, the terminal may display the first virtual item difference information in the backpack interface using a first display effect; if the actual number of virtual items corresponding to the first virtual object is greater than the upper limit, the terminal may display the first virtual item difference information in the backpack interface using a second display effect; if the actual number of virtual items corresponding to the first virtual object is equal to the upper limit, the terminal may display the first virtual item difference information in the backpack interface using a third display effect. Optionally, the first display effect, the second display effect, and the third display effect may be different, and may be different display colors or different display fonts, which is not limited in this embodiment of the present application.
[0131] 6 , the terminal displays first virtual item difference information 603 corresponding to the first virtual object 601 in the backpack interface 602, wherein the first actual owned quantity of the first virtual item 604 is 5, which is 2 more than the first quantity upper limit of the first virtual item 604, so the terminal displays the first virtual item difference information corresponding to the first virtual item 604 in the first display effect (bold font); the first actual owned quantity of the first virtual item 605 is 0, which is 2 less than the first quantity upper limit of the first virtual item 605, so the terminal displays the first virtual item difference information corresponding to the first virtual item 605 in the second display effect (italic and underlined); the first actual owned quantity of the first virtual item 606 is 10, which is equal to the first quantity upper limit of the first virtual item 606, so the terminal displays the first virtual item difference information corresponding to the first virtual item 606 in the third display effect (no bold, no italics, no underline).
[0132] In the above embodiment, by displaying the first virtual item difference information in the backpack interface and displaying the first virtual item difference information with different display effects according to the actual owned quantity and the upper limit of each virtual item corresponding to the first virtual object, the player can more intuitively understand the current virtual item ownership status of the first virtual object, thereby optimizing the display effect of the virtual item information.
[0133] In some embodiments, considering that only individual virtual objects in the virtual camp may be missing virtual items, that is, the only virtual object that may be in the item exchange state is the first virtual object, even if the first virtual object is controlled to enter the item exchange state, the virtual item exchange cannot be performed in time. Therefore, in order to enable other virtual objects in the virtual camp to quickly know that there is a virtual item exchange demand for the first virtual object, the terminal can also set an information synchronization control in the backpack interface, and the information synchronization control is used to synchronize the first virtual item difference information of the first virtual object to other virtual objects in the virtual camp. The first virtual item difference information is used to represent the difference between the actual number of virtual items corresponding to the first virtual object and the upper limit.
[0134] In a possible implementation, in response to the player triggering the information synchronization control, the terminal obtains the first virtual item difference information corresponding to the first virtual object, and controls the first virtual object to send the first virtual item difference information to other virtual objects in the virtual camp.
[0135] In a possible implementation, in order to facilitate other players to intuitively understand the current virtual item missing status of the first virtual object after receiving the first virtual item difference information, the terminal can also set the display effect of the first virtual item difference information when controlling the first virtual object to send the first virtual item difference information. For example, when the actual number of virtual items owned is less than the upper limit, the first virtual item difference information is displayed through the first display effect; when the actual number of virtual items owned is greater than the upper limit, the first virtual item difference information is displayed through the second display effect; when the actual number of virtual items owned is equal to the upper limit, the first virtual item difference information is displayed through the third display effect.
[0136] Schematically, as shown in FIG7 , the terminal displays an information synchronization control 703 in the backpack interface 702 of the first virtual object 701, so that when the player clicks on the information synchronization control 703, the terminal controls the first virtual object 701 to send the first virtual item difference information 704 to other virtual objects in the virtual camp.
[0137] In the above embodiment, by setting an information synchronization control in the backpack interface, it is possible to directly control the first virtual object that has an item exchange demand to send the first virtual item difference information to other virtual objects in the virtual camp, thereby improving the communication efficiency between virtual objects in the virtual camp regarding virtual items and improving the efficiency of virtual item exchange between virtual objects.
[0138] In some embodiments, considering that the virtual object continuously obtains virtual items in the virtual environment, it is often the case that the actual number of virtual items owned exceeds the upper limit, thereby creating a need to discard virtual items. Therefore, the terminal may further add a discard control in the backpack interface, which is used to trigger the first virtual object to discard excess first virtual items with one click, without the need to discard each first virtual item one by one.
[0139] In one possible implementation, upon receiving a trigger operation on a discard control by the player, the terminal first determines virtual items to be discarded of the first virtual object and a discard quantity of the virtual items to be discarded, wherein the virtual items to be discarded are virtual items corresponding to the first virtual object whose actual owned quantity is greater than an upper limit, and then the terminal controls the first virtual object to discard the same number of virtual items to be discarded as the discard quantity.
[0140] In a possible implementation, in order to enable other virtual objects in the virtual camp to know that the first virtual object has discarded the first virtual item and to pick up the first virtual item in a timely manner, the terminal may also control the first virtual object to perform location marking on the virtual item to be discarded, thereby controlling the first virtual object to send an item discard message to at least one other virtual object in the virtual camp. The item discard message may include at least one of the type of virtual item to be discarded, the discarded quantity, and location marking information. The location marking information may specifically be coordinate information.
[0141] In some embodiments, in order to optimize the control layout effect in the backpack interface, the terminal can also set the display conditions of the discard control, that is, the terminal will only display the discard control in the backpack interface if there is no missing virtual item in the first virtual object and the actual number of virtual items is greater than the upper limit.
[0142] In one possible implementation, the terminal first obtains the actual number of virtual items and the upper limit of the number corresponding to the first virtual object, and compares the actual number of each virtual item with the upper limit. If the actual number of at least one virtual item of the first virtual object exceeds the upper limit, a discard control is displayed on the backpack interface. In another possible implementation, if the actual number of all virtual items of the first virtual object exceeds the upper limit, a discard control is displayed on the backpack interface.
[0143] Schematically, as shown in FIG8 , when there is no missing virtual item in the first virtual object 801, the terminal displays a discard control 803 in the backpack interface 802 of the first virtual object 801, and upon receiving a click operation on the discard control 803 by the player, controls the first virtual object 801 to discard the excess first virtual item, marks the discarded virtual item, and sends an item discard message 804 to other virtual objects in the virtual camp.
[0144] In the above embodiment, by setting a discard control in the backpack interface, it is possible to control the first virtual object to discard the excess virtual items with one click when the actual number of at least one virtual item owned by the first virtual object exceeds the upper limit, thereby improving the efficiency of the virtual object in discarding virtual items and facilitating the management of virtual items.
[0145] In some embodiments, considering that virtual objects in a virtual game do not necessarily always need to exchange virtual items, for example, the first virtual object no longer needs to exchange virtual items after executing a single virtual item exchange, or the first virtual object no longer needs to exchange virtual items by picking up virtual items in the virtual environment after entering the item exchange state, in order to improve the control efficiency of the state of the first virtual object, the terminal can also add a cancel application control, so that when the player triggers the cancel application control, the first virtual object can be controlled to exit the item exchange state.
[0146] In one possible implementation, in order to optimize the control display effect, the terminal may also directly update the exchange application control to a cancel application control after receiving a trigger operation on the exchange application control, and then when the first virtual object is in the item exchange state, in response to the trigger operation on the cancel application control, the terminal controls the first virtual object to exit the item exchange state.
[0147] Schematically, as shown in Figure 9, in order to optimize the control display effect in the backpack interface 902 of the first virtual object 901, the terminal first displays the exchange application control 903 and the information synchronization control 904 in the backpack interface 902, and when a click operation is received on the exchange application control 903, the terminal controls the first virtual object 901 to enter the item exchange state, and at the same time updates the exchange application control 903 to the cancel application control 905, and updates the information synchronization control 904 to the exchange details control 906, so that when a click operation is received on the cancel application control 905, the terminal can control the first virtual object 901 to exit the item exchange state.
[0148] In the above embodiment, by setting a cancel application control, the first virtual object in the item exchange state can exit the item exchange state at any time, thereby improving the control efficiency of the virtual object in the virtual game.
[0149] In some embodiments, when a first virtual object is in an item exchange state, in order to enable the first virtual object to timely understand and view the virtual item value difference information of other virtual objects in the virtual camp that are in the item exchange state, when other virtual objects in the virtual camp that are in the item exchange state enter the line of sight of the first virtual object, the terminal can display the virtual item value difference information corresponding to the other virtual objects to the first virtual object.
[0150] In a possible implementation, when there is a second virtual object belonging to a virtual camp in the game interface and the second virtual object is in an item exchange state, the terminal can obtain the actual number of virtual items owned and the upper limit of the number corresponding to the second virtual object, and determine the second virtual item difference information corresponding to the second virtual object based on the actual number of virtual items owned and the upper limit of the number, thereby updating and displaying the second virtual item difference information around the second virtual object.
[0151] Optionally, the second virtual item difference information is used to represent the difference between the actual owned quantity and the upper limit of the quantity of the virtual item corresponding to the second virtual object.
[0152] In some embodiments, in order to facilitate the exchange of virtual items between virtual objects in the item exchange state, the terminal may further provide an item exchange control, which may enable fast exchange of virtual items between virtual objects in the item exchange state.
[0153] In one possible implementation, when the distance between a second virtual object in an item exchange state and a first virtual object in a virtual environment is less than a distance threshold, the terminal can display an item exchange control in the game interface, thereby responding to the player's triggering operation of the item exchange control, that is, controlling the first virtual object and the second virtual object to perform virtual item exchange.
[0154] In some embodiments, considering that there may be multiple second virtual objects in the item exchange state whose object distance with the first virtual object is less than a distance threshold, in order to improve the efficiency of virtual item exchange between multiple virtual objects, the terminal can also control the first virtual object to perform virtual item exchange with multiple second virtual objects at the same time when receiving a trigger operation of the item exchange control.
[0155] In one possible embodiment, when the distance between a first virtual object and at least one second virtual object is less than a distance threshold, the terminal may display an item exchange control. Upon receiving a player's triggering operation on the item exchange control, the player may also determine a second target virtual object whose distance from the first virtual object is less than the distance threshold, thereby controlling the first virtual object to exchange virtual items with the second target virtual object based on the first virtual item value difference information of the first virtual object and the second virtual item value difference information of the second target virtual object. The second target virtual object may be any one of the multiple second virtual objects, a selected one, or the one with the smallest distance from the first virtual object.
[0156] 10 , after controlling the first virtual object 1001 to enter the item exchange state, and when there is a second virtual object 1002 in the virtual camp that is also in the item exchange state within the line of sight of the first virtual object 1001, the terminal displays the second virtual item difference information 1003 corresponding to the second virtual object 1002 above the head of the second virtual object 1002, and displays the item exchange control 1004 when the object distance between the first virtual object 1001 and the second virtual object 1002 is less than the distance threshold. When the player clicks on the item exchange control 1004, the terminal controls the first virtual object 1001 and the second virtual object 1002 to perform the virtual item exchange.
[0157] In the above embodiment, when a second virtual object in the virtual camp is also in an item exchange state and is within the line of sight of the first virtual object, by displaying the second virtual item value difference information corresponding to the second virtual object around the second virtual object in the game interface, players can quickly understand the current virtual item value difference of the second virtual object, thereby improving the efficiency of communication between virtual objects regarding virtual items. Furthermore, by displaying an item exchange control when the object distance between the first and second virtual objects is less than a distance threshold, and upon receiving a trigger operation on the item exchange control, the first and second virtual objects can be directly controlled to execute a virtual item exchange, thereby improving the efficiency of virtual item exchange between virtual objects in the item exchange state.
[0158] Please refer to Figure 11, which shows a flowchart of displaying the first virtual item value difference information provided by an exemplary embodiment of the present application. The steps of displaying the first virtual item value difference information by the terminal are as follows:
[0159] Step 1101: Receive a viewing operation on the backpack interface.
[0160] Step 1102: Obtain the actual number of virtual items corresponding to the first virtual object.
[0161] When receiving the player's viewing operation on the backpack interface, the terminal can obtain the actual owned quantity of each virtual item corresponding to the first virtual object.
[0162] Step 1103: Display the actual number of virtual items corresponding to the first virtual object in the backpack interface.
[0163] In order to let the player know the actual number of virtual items currently owned by the first virtual object, the terminal displays the actual number of virtual items corresponding to the first virtual object in the backpack interface. For example, the terminal displays the actual number of each virtual item corresponding to the first virtual object in white font in the backpack interface.
[0164] Step 1104: Obtain an upper limit on the number of virtual items corresponding to the first virtual object.
[0165] In order to determine the quantity difference of each virtual item of the first virtual object, the terminal also needs to obtain the upper limit of the quantity of each virtual item corresponding to the first virtual object.
[0166] Step 1105 : Determine first virtual item value difference information based on the actual number of virtual items and the upper limit of the number of virtual items corresponding to the first virtual object.
[0167] After obtaining the actual owned quantity and the upper limit of each virtual item of the first virtual object, the terminal subtracts the upper limit from the actual owned quantity to calculate the first virtual item difference information corresponding to each virtual item.
[0168] Step 1106 : Compare the actual number of virtual items corresponding to the first virtual object with the upper limit of the number.
[0169] In order to distinguish different difference situations, the terminal may display the difference information of the first virtual item with different display effects. Therefore, the terminal needs to compare the actual owned quantity and the upper limit of the virtual item corresponding to the first virtual object.
[0170] Step 1107 : When the actual number of virtual items corresponding to the first virtual object is less than the upper limit, display the first virtual item difference information using the first display effect.
[0171] When the actual owned quantity of the virtual item corresponding to the first virtual object is less than the first quantity upper limit, the terminal may display the first virtual item difference information in a first display effect, such as displaying “(-4)” in red font.
[0172] Step 1108 : When the actual number of virtual items corresponding to the first virtual object is greater than the upper limit, the difference information of the first virtual item is displayed using the second display effect.
[0173] When the actual owned quantity of the virtual item corresponding to the first virtual object is greater than the upper limit, the terminal may display the difference information of the first virtual item in a second display effect, such as displaying “(+2)” in green font.
[0174] Step 1109 : When the actual number of virtual items corresponding to the first virtual object is equal to the upper limit, the first virtual item difference information is displayed using a third display effect.
[0175] When the actual owned quantity of the virtual item corresponding to the first virtual object is equal to the upper limit, the terminal may display the first virtual item difference information in a third display effect, such as displaying only the actual owned quantity without displaying the quantity difference.
[0176] Please refer to Figure 12, which shows a flowchart of synchronizing the first virtual item value difference information provided by an exemplary embodiment of the present application. The steps of synchronizing the first virtual item value difference information by the terminal are as follows:
[0177] Step 1201: Determine whether the player clicks the information synchronization control.
[0178] In the case of receiving a trigger operation of the player on the information synchronization control, proceed to step 1202, otherwise proceed to step 1209.
[0179] Step 1202: Obtain the actual number and upper limit of virtual items corresponding to the first virtual object.
[0180] When receiving the trigger operation of the information synchronization control by the player, the terminal obtains the actual owned quantity and the upper limit of the quantity of the virtual items corresponding to the first virtual object.
[0181] Step 1203 : Determine first virtual item value difference information based on the actual number of virtual items and the upper limit of the number of virtual items corresponding to the first virtual object.
[0182] After obtaining the actual owned quantity and the quantity upper limit of the virtual item corresponding to the first virtual object, the terminal may determine the first virtual item difference information by calculating the difference.
[0183] Step 1204 : Compare the actual number of virtual items corresponding to the first virtual object with the upper limit of the number.
[0184] In order to distinguish different difference situations, the terminal may send the first virtual item difference information with different display effects. Therefore, the terminal needs to compare the actual owned quantity and the quantity upper limit of the virtual item corresponding to the first virtual object.
[0185] Step 1205 : When the actual number of virtual items corresponding to the first virtual object is less than the upper limit, display the first virtual item difference information using the first display effect.
[0186] When the actual owned quantity of the virtual item corresponding to the first virtual object is less than the upper limit, the terminal may display the first virtual item difference information in a first display effect, such as displaying “(-4)” in red font.
[0187] Step 1206 : When the actual number of virtual items corresponding to the first virtual object is greater than the upper limit, display the difference information of the first virtual item using the second display effect.
[0188] When the actual owned quantity of the virtual item corresponding to the first virtual object is greater than the upper limit, the terminal may display the difference information of the first virtual item in a second display effect, such as displaying “(+2)” in green font.
[0189] Step 1207 : When the actual number of virtual items corresponding to the first virtual object is equal to the upper limit, the first virtual item difference information is displayed using a third display effect.
[0190] When the actual owned quantity of the virtual item corresponding to the first virtual object is equal to the upper limit, the terminal may display the first virtual item difference information in a third display effect, such as displaying only the actual owned quantity without displaying the quantity difference.
[0191] Step 1208: Control the first virtual object to send the first virtual item difference information to other virtual objects in the virtual camp.
[0192] After determining the first virtual item value difference information, the terminal may control the first virtual object to send the first virtual item value difference information to other virtual objects in the virtual camp.
[0193] Step 1209, end.
[0194] Please refer to Figure 13, which shows a flowchart of virtual item exchange within a virtual camp provided by an exemplary embodiment of the present application. The steps for the terminal to execute virtual item exchange within the virtual camp are as follows:
[0195] Step 1301, determine whether the player clicks the exchange application control.
[0196] When a player triggers the exchange application control, the process proceeds to step 1302 ; otherwise, the process proceeds to step 1318 .
[0197] Step 1302: Control the first virtual object to enter an item exchange state.
[0198] When receiving the player's triggering operation on the exchange application control, the terminal controls the first virtual object to enter the item exchange state.
[0199] Step 1303: Update the control for displaying exchange details and the control for canceling the application.
[0200] In order to reduce the interface area occupied by the control display, the terminal can update the information synchronization control to the exchange details control and update the exchange application control to the cancel application control.
[0201] Step 1304: Determine whether the player clicks on the exchange details control.
[0202] When a trigger operation on the exchange details control is received from the player, step 1305 is entered.
[0203] Step 1305: Obtain object information of virtual objects in the virtual camp that are in the item exchange state.
[0204] When receiving the player's trigger operation on the exchange details control, the terminal obtains the object information of the virtual object in the item exchange state in the virtual camp, which may include object number, identification, avatar, location information, etc.
[0205] Step 1306: Determine whether there are other virtual objects in the item exchange state.
[0206] If there are other virtual objects in the item exchange state, proceed to step 1307.
[0207] Step 1307: Display object information of virtual objects in the virtual camp that are in the item exchange state.
[0208] The exchange details information display area in the backpack interface displays object information of virtual objects in the item exchange state within the virtual camp.
[0209] Step 1308: Obtain virtual item value difference information of virtual objects in the item exchange state.
[0210] The terminal obtains virtual item value difference information corresponding to each virtual object in an item exchange state in the virtual camp.
[0211] Step 1309: Determine and display a virtual item exchange plan based on the virtual item value difference information.
[0212] The terminal determines a virtual item exchange plan applicable to each virtual object in the item exchange state based on the virtual item value difference information corresponding to each virtual object in the item exchange state, and displays a first virtual item exchange plan corresponding to the first virtual object in the backpack interface. The first virtual item exchange plan includes object information corresponding to other virtual objects in the item exchange state, and a result of the change in the number of virtual items of the first virtual object that is expected to occur when each virtual object in the item exchange state executes the virtual item exchange indicated by the virtual item exchange plan.
[0213] Specifically, the detailed steps of determining the virtual item exchange plan include the following steps 1) to 7):
[0214] 1) Count the virtual objects in the virtual camp that are in the item exchange state;
[0215] 2) Counting the types and quantities of virtual items to be exchanged for each of the aforementioned virtual objects;
[0216] 3) Summarize the types and quantities of all virtual items to be exchanged;
[0217] 4) reading the difference between the actual number of virtual items owned by the aforementioned virtual object and the upper limit of the number for each virtual item to be exchanged;
[0218] 5) For each virtual object with excess virtual items to be exchanged, determine whether other virtual objects are missing, how many other virtual objects are missing, and the actual number of virtual items to be exchanged owned by each of these other virtual objects;
[0219] 6) Determine a virtual item exchange plan applicable to the aforementioned virtual objects; for a virtual object with a surplus of a type of virtual item to be exchanged, there are other virtual objects that lack the virtual item to be exchanged; wherein, if there is one other virtual object, the virtual item is allocated to the other virtual object, and the amount of the virtual item allocated is the amount of the virtual item to be exchanged that the other virtual object lacks; if there are multiple other virtual objects, priority is given to allocating the virtual item to the other virtual object that actually owns less of the virtual item to be exchanged, and the amount of the virtual item allocated is the amount of the virtual item to be exchanged that the other virtual object lacks; if multiple other virtual objects actually own the same amount of the virtual item to be exchanged, priority is given to allocating the virtual item to the other virtual object that has a larger difference between its actual owned amount and the upper limit, and the amount of the virtual item allocated is the amount of the virtual item to be exchanged that the other virtual object lacks; if the difference between the actual owned amount and the upper limit is the same for multiple other virtual objects, the virtual item is randomly allocated to any other virtual object, and the amount of the virtual item allocated is the amount of the virtual item to be exchanged that the other virtual object lacks;
[0220] 7) Determine whether there are still excess virtual items to be exchanged that have not been exchanged. If there are still excess virtual items to be exchanged, determine the actual number of virtual items owned by all virtual objects for the virtual items to be exchanged, and give priority to allocating them to other virtual objects with smaller actual numbers; if the actual numbers owned by multiple other virtual objects are also the same, randomly allocate them to any other virtual object.
[0221] In an illustrative example, the virtual objects in the virtual camp that are in the item exchange state include a first virtual object, a second virtual object, and a third virtual object. Among them, the first virtual object has 2 extra medical kits and 3 bandages, the second virtual object has 1 extra painkiller and 2 adrenaline, and the third virtual character does not have any extra medicines. Therefore, the terminal can determine that the virtual items to be exchanged of the first virtual object are 2 medical kits and 3 bandages, and the virtual items to be exchanged of the second virtual object are 1 painkiller and 2 adrenaline. It is calculated that the total number of virtual items to be exchanged includes 2 medical kits, 3 bandages, 1 painkiller, and 2 adrenaline.
[0222] Furthermore, the terminal determines the difference information of virtual items of each virtual object, among which the first virtual object has 2 extra medical boxes and 3 bandages, and lacks 5 painkillers and 1 adrenaline; the second virtual object has 1 extra painkiller and 2 adrenaline, and the third virtual object lacks 1 medical box and 2 painkillers, thereby determining that for the 2 extra medical boxes of the first virtual object, only the third virtual object lacks them, and the third virtual object needs 1 medical box; for the 1 extra painkiller of the second virtual object, both the first and third virtual objects lack them, the first virtual object needs 5 painkillers, and the third virtual object needs 2 painkillers; for the 2 extra adrenaline of the second virtual object, only the first virtual object lacks them, and the first virtual object needs 1 adrenaline, so the terminal can directly allocate the 1 extra medical box of the first virtual object to the third virtual object, and allocate the 1 extra adrenaline of the second virtual object to the first virtual object.
[0223] For painkillers needed by both the first and third virtual objects, the terminal can first compare the number of painkillers currently held by the first and third virtual objects. If the first virtual object has no painkillers, but the third virtual object has one, the painkiller can be allocated to the first virtual object first. If both the first and third virtual objects have one painkiller, since the first virtual object is short of five and the third virtual object is short of two, the first virtual object is short of more painkillers, so the painkiller can be allocated to the first virtual object first. For any remaining virtual items to be exchanged, the terminal can randomly allocate them to the various virtual objects.
[0224] Step 1310: Determine whether the player clicks the cancel application control.
[0225] When a player triggers an operation to cancel the application control, the process proceeds to step 1311 .
[0226] Step 1311: Control the first virtual object to exit the item exchange state.
[0227] When receiving the player's triggering operation on the cancel application control, the terminal controls the first virtual object to exit the item exchange state.
[0228] Step 1312: Send a state entry notification to other virtual objects.
[0229] When receiving the player's trigger operation on the exchange application control, the terminal controls the first virtual object to enter the item exchange state and sends a state entry notification to other virtual objects.
[0230] Step 1313: Determine whether there is a second virtual object in an item exchange state within the distance threshold range.
[0231] The terminal checks whether there is a second virtual object in the virtual environment that is in an item exchange state and whose object distance with the first virtual object is within a distance threshold range. If there is a second virtual object in the item exchange state, the terminal proceeds to step 1314.
[0232] Step 1314: Obtain second virtual item difference information corresponding to the second virtual object.
[0233] In order to enable other virtual objects in the item exchange state to understand the current virtual item ownership of the virtual object, the terminal obtains the second virtual item difference information corresponding to the second virtual object.
[0234] Step 1315: Display the second virtual item difference information around the second virtual object and display an item exchange control.
[0235] Furthermore, the terminal displays the second virtual item difference information around the second virtual object and displays an item exchange control.
[0236] Step 1316, determine whether the player clicks the item exchange control.
[0237] When the player triggers the item exchange control, step 1317 is entered.
[0238] Step 1317: Control the first virtual object and the second virtual object to exchange virtual items.
[0239] When receiving a trigger operation on the item exchange control by the player, the terminal controls the first virtual object and the second virtual object to perform virtual item exchange.
[0240] Step 1318, end.
[0241] Please refer to Figure 14, which shows a flowchart of discarding excess virtual items provided by an exemplary embodiment of the present application. The steps of discarding excess virtual items executed by the terminal are as follows:
[0242] Step 1401 : Compare whether the actual number of virtual items owned by the first virtual object is greater than the upper limit.
[0243] In order to reduce the interface area occupied by the control display, the terminal may first compare the actual number of virtual items of the first virtual object with the upper limit.
[0244] Step 1402: Display a discard control in the backpack interface.
[0245] When the actual owned quantity of the virtual items of the first virtual object is greater than the upper limit, the terminal displays a discard control in the backpack interface.
[0246] Step 1403: Determine whether the player clicks the discard control.
[0247] When a trigger operation of the discard control is received from the player, step 1404 is entered.
[0248] Step 1404: Control the first virtual object to discard excess virtual items.
[0249] When receiving the player's triggering operation on the discard control, the terminal controls the first virtual object to discard the redundant virtual items.
[0250] Step 1405, end.
[0251] Please refer to FIG15 , which shows a structural block diagram of a display device for a virtual item exchange solution provided by an exemplary embodiment of the present application. The device includes at least part of a first display module 1501 , a second display module 1502 , and a third display module 1503 :
[0252] A first display module 1501 is configured to display an exchange request control in the backpack interface of the first virtual object, wherein the exchange request control is configured to trigger the first virtual object to initiate a virtual item exchange request within the virtual camp;
[0253] The second display module 1502 is configured to control the first virtual object to enter an item exchange state in response to a triggering operation on the exchange application control;
[0254] The third display module 1503 is configured to display a first virtual item exchange plan in the backpack interface, where the first virtual item exchange plan indicates a predicted result of a change in the number of virtual items of the first virtual object after executing the virtual item exchange.
[0255] Optionally, the second display module 1502 is further used to display an exchange details control in the backpack interface, and the exchange details control is used to view the first virtual item exchange plan; the third display module 1503 is further used to display the first virtual item exchange plan in the backpack interface in response to a triggering operation on the exchange details control.
[0256] Optionally, the third display module 1503 includes:
[0257] a first acquiring unit configured to acquire, in response to a triggering operation on the exchange details control, virtual item value difference information corresponding to each virtual object currently in the item exchange state within the virtual camp, the virtual item value difference information being used to represent the difference between the actual owned quantity and the upper limit of the virtual item corresponding to each virtual object;
[0258] a first determining unit configured to determine a virtual item exchange scheme applicable to each virtual object in the item exchange state based on virtual item value difference information corresponding to each virtual object in the item exchange state;
[0259] a first display unit, configured to display the first virtual item exchange plan in the backpack interface, the first virtual item exchange plan including object information corresponding to other virtual objects in the item exchange state, and a predicted change in the quantity of virtual items of the first virtual object when each virtual object in the item exchange state executes the virtual item exchange indicated by the virtual item exchange plan.
[0260] Optionally, the first determining unit is configured to:
[0261] Based on the virtual item value difference information corresponding to each virtual object in the item exchange state, counting the types and exchange quantities of the virtual items to be exchanged in the virtual camp, the virtual items to be exchanged being the virtual items corresponding to each virtual object in the item exchange state, the actual number of which is greater than the upper limit;
[0262] Determining the virtual item distribution quantity of the virtual item to be exchanged between the virtual objects in the item exchange state;
[0263] The virtual item exchange scheme applicable to each virtual object in the item exchange state is generated.
[0264] Optionally, when there are at least two virtual objects in the item exchange state within the virtual camp,
[0265] The first determining unit is configured to:
[0266] Based on the type of the virtual item to be exchanged, determining whether each virtual object in the item exchange state has or does not have the virtual item to be exchanged;
[0267] Based on the exchange quantity of the virtual items to be exchanged and the lack and possession of the virtual items to be exchanged by the virtual objects in the item exchange state, the virtual item distribution quantity of the virtual items to be exchanged between the virtual objects in the item exchange state is determined.
[0268] Optionally, the first determining unit is further configured to:
[0269] In the case where the actual quantity of the virtual item to be exchanged owned by the first target virtual object is less than the actual quantity of the virtual item to be exchanged owned by other virtual objects, preferentially determining the target virtual item allocation quantity of the virtual item to be exchanged corresponding to the first target virtual object;
[0270] In a case where the actual quantity of the virtual items to be exchanged owned by the first target virtual object is equal to the actual quantity of the virtual items to be exchanged owned by the other virtual objects, and the missing quantity of the virtual items to be exchanged by the first target virtual object is greater than the missing quantity of the virtual items to be exchanged by the other virtual objects, the target virtual item allocation quantity for the virtual items to be exchanged corresponding to the first target virtual object is preferentially determined.
[0271] Optionally, when there are at least two virtual objects other than the first virtual object in the virtual camp that are in the item exchange state, the apparatus further includes:
[0272] a fourth display module, configured to display a target virtual item exchange plan in the backpack interface in response to a triggering operation on the target object information, wherein the target virtual item exchange plan is configured to indicate a result of a change in the number of virtual items that is expected to occur by executing a virtual item exchange between the first virtual object and the virtual object corresponding to the target object information.
[0273] Optionally, the device further includes:
[0274] A first acquisition module is used to obtain position information of each virtual object in the item exchange state in the virtual environment;
[0275] a first determining module, configured to determine a target moving location based on the location information and attribute values of each virtual object in the item exchange state;
[0276] a fifth display module, configured to display a location control in the backpack interface, wherein the location control is configured to trigger the first virtual object to initiate a location collection within the virtual camp;
[0277] A sixth display module is used to display the location information of the target moving location in the virtual map in response to the triggering operation of the location control, wherein the location information is used to instruct at least one other virtual object in the item exchange state to go to the target moving location to perform the virtual item exchange.
[0278] Optionally, the first display module 1501 is configured to:
[0279] In response to a viewing operation on the backpack interface, obtaining an actual number and an upper limit of the number of virtual items corresponding to the first virtual object;
[0280] determining, based on the actual number of virtual items owned and the upper limit of the number of virtual items corresponding to the first virtual object, first virtual item difference information of the virtual item corresponding to the first virtual object, the first virtual item difference information being used to represent the difference between the actual number of virtual items owned and the upper limit of the number of virtual items corresponding to the first virtual object;
[0281] Displaying the first virtual item value difference information in the backpack interface;
[0282] When the actual number of at least one virtual item owned by the first virtual object is less than an upper limit, the exchange application control is displayed in the backpack interface.
[0283] Optionally, the first display module 1501 is further configured to:
[0284] When the actual number of virtual items corresponding to the first virtual object is less than the upper limit, displaying the difference information of the first virtual item in the backpack interface using a first display effect;
[0285] When the actual number of virtual items corresponding to the first virtual object is greater than the upper limit, displaying the difference information of the first virtual item in the backpack interface using a second display effect;
[0286] When the actual owned quantity of the virtual items corresponding to the first virtual object is equal to the quantity upper limit, the first virtual item difference information is displayed in the backpack interface using a third display effect.
[0287] Optionally, the backpack interface further includes an information synchronization control, the information synchronization control being used to synchronize first virtual item value difference information of the first virtual object with other virtual objects in the virtual camp, the first virtual item value difference information being used to represent the difference between the actual number of virtual items corresponding to the first virtual object and the upper limit of the number;
[0288] The device further comprises:
[0289] The first control module is configured to control the first virtual object to send the first virtual item difference information to other virtual objects in the virtual camp in response to a triggering operation on the information synchronization control.
[0290] Optionally, the backpack interface further includes a discard control, and the discard control is used to trigger the first virtual object to discard excess first virtual items;
[0291] The device further comprises:
[0292] a second determining module configured to determine, in response to a triggering operation on the discard control, a to-be-discarded virtual item of the first virtual object and a discard quantity of the to-be-discarded virtual item, wherein the to-be-discarded virtual item is a virtual item corresponding to the first virtual object and the actual owned quantity of the virtual item is greater than an upper limit;
[0293] a second control module, configured to control the first virtual object to discard the virtual item to be discarded based on the discarded quantity, and to perform location marking on the virtual item to be discarded;
[0294] The third control module is used to control the first virtual object to send an item discard message to at least one other virtual object in the virtual camp, where the item discard message includes at least one of the type, discard quantity and location mark information of the virtual item to be discarded.
[0295] Optionally, the device further includes:
[0296] A second acquisition module, configured to acquire the actual number and upper limit of virtual items corresponding to the first virtual object;
[0297] The seventh display module is configured to display the discard control in the backpack interface when the actual number of at least one virtual item owned by the first virtual object is greater than an upper limit.
[0298] Optionally, the second display module 1502 is further configured to:
[0299] In response to a triggering operation on the exchange application control, updating the exchange application control to a cancel application control;
[0300] The device further comprises:
[0301] A fourth control module is configured to control the first virtual object to exit the item exchange state in response to a triggering operation on the cancel application control.
[0302] Optionally, the device further includes:
[0303] A third acquisition module is configured to, when a second virtual object belonging to the virtual camp exists in the game interface and the second virtual object is in the item exchange state, acquire the actual number and the upper limit of the number of virtual items corresponding to the second virtual object;
[0304] an eighth display module, configured to update and display second virtual item difference information of the virtual item corresponding to the second virtual object around the second virtual object based on the actual number of virtual items owned and the upper limit of the number, wherein the second virtual item difference information is used to represent the difference between the actual number of virtual items corresponding to the second virtual object and the upper limit of the number.
[0305] Optionally, the device further includes:
[0306] a ninth display module, configured to display an item exchange control when the object distance between the first virtual object and at least one of the second virtual objects is less than a distance threshold;
[0307] a third determining module, configured to determine, in response to a triggering operation on the item exchange control, a second target virtual object whose object distance from the first virtual object is less than the distance threshold;
[0308] The fifth control module is configured to control the first virtual object and the second target virtual object to exchange virtual items based on the first virtual item value difference information of the first virtual object and the second virtual item value difference information of the second target virtual object.
[0309] To sum up, in the embodiment of the present application, by adding an exchange application control to the backpack interface of the first virtual object, when a trigger operation is received on the exchange application control, the first virtual object can be controlled to execute the item exchange state and the exchange details control can be displayed in the backpack interface. By receiving the trigger operation on the exchange details control, the first virtual item exchange plan can be displayed in the backpack interface, so that the first virtual object can understand the object information of other virtual objects in the current virtual camp that have virtual item exchange needs and the expected change in the number of virtual items through the item exchange without communicating through text or voice, thereby omitting the virtual item communication process between virtual objects and improving the efficiency of virtual item exchange between virtual objects in the virtual camp.
[0310] It should be noted that the apparatus provided in the above embodiments is merely exemplified by the division of the above functional modules. In actual applications, the above functions can be distributed among different functional modules as needed, that is, the internal structure of the apparatus can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments are based on the same concept. The implementation process is detailed in the method embodiments and will not be repeated here.
[0311] Please refer to Figure 16, which shows a block diagram of a terminal 1600 according to an exemplary embodiment of the present application. Terminal 1600 may be a portable mobile terminal, such as a smartphone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, or a Moving Picture Experts Group Audio Layer IV (MP4) player. Terminal 1600 may also be referred to as user equipment, a portable terminal, or other similar names.
[0312] Typically, terminal 1600 includes: a processor 1601 and a memory 1602. Processor 1601 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1601 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). Processor 1601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, processor 1601 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, processor 1601 may also include an artificial intelligence (AI) processor, which is used to handle computing operations related to machine learning. Memory 1602 may include one or more computer-readable storage media, which may be tangible and non-transitory. Memory 1602 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1602 is used to store at least one instruction, which is executed by processor 1601 to implement the display method of the virtual item exchange solution provided in the embodiment of the present application.
[0313] In some embodiments, terminal 1600 may optionally further include a peripheral device interface 1603 and at least one peripheral device. Peripheral device interface 1603 may be used to connect at least one input / output (I / O)-related peripheral device to processor 1601 and memory 1602. Processor 1601, memory 1602, and peripheral device interface 1603 are integrated on the same chip or circuit board. In some other embodiments, any one or two of processor 1601, memory 1602, and peripheral device interface 1603 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0314] Those skilled in the art will understand that the structure shown in FIG16 does not constitute a limitation on the terminal 1600 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0315] An embodiment of the present application further provides a computer-readable storage medium storing at least one program, which is loaded and executed by a processor to implement the method for displaying the virtual item exchange solution as described in the above embodiments.
[0316] The present application also provides a computer program product comprising computer instructions stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the method for displaying a virtual item exchange solution provided in various optional implementations of the aforementioned aspects.
[0317] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication media includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that can be accessed by a general or special-purpose computer. The foregoing is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for displaying a virtual item exchange scheme, the method being executed by a terminal, the method comprising: Displaying an exchange application control in the backpack interface of the first virtual object, wherein the exchange application control is used to trigger the first virtual object to initiate an exchange application for virtual items in the virtual camp; In response to a triggering operation on the exchange application control, controlling the first virtual object to enter an item exchange state; A first virtual item exchange scheme is displayed in the backpack interface, where the first virtual item exchange scheme is used to indicate a result of a change in the number of virtual items that is expected to occur when the first virtual object executes the virtual item exchange.
2. The method according to claim 1, wherein: The displaying of the first virtual item exchange scheme in the backpack interface includes: Displaying an exchange detail control in the backpack interface, wherein the exchange detail control is used to view the first virtual item exchange plan; In response to a triggering operation on the exchange details control, the first virtual item exchange plan is displayed in the backpack interface.
3. The method according to claim 1 or 2, wherein: The step of displaying the first virtual item exchange plan in the backpack interface in response to the triggering operation on the exchange details control includes: In response to a triggering operation on the exchange details control, obtaining virtual item value difference information corresponding to each virtual object currently in the item exchange state in the virtual camp, the virtual item value difference information being used to represent the difference between the actual owned quantity and the upper limit of the quantity of the virtual items corresponding to the virtual objects; Determining a virtual item exchange scheme applicable to each virtual object in the item exchange state based on virtual item difference information corresponding to each virtual object in the item exchange state; The first virtual item exchange plan is displayed in the backpack interface, wherein the first virtual item exchange plan includes object information corresponding to other virtual objects in the item exchange state, and a result of the change in the number of virtual items that is expected to occur in the first virtual object when each virtual object in the item exchange state executes the virtual item exchange indicated by the virtual item exchange plan.
4. The method according to any one of claims 1 to 3, wherein: The determining, based on virtual item value difference information corresponding to each virtual object in the item exchange state, a virtual item exchange scheme applicable to each virtual object in the item exchange state comprises: Based on the virtual item difference information corresponding to each virtual object in the item exchange state, counting the types and exchange quantities of the virtual items to be exchanged in the virtual camp, wherein the virtual items to be exchanged are virtual items whose actual quantity is greater than the quantity upper limit among the virtual items corresponding to each virtual object in the item exchange state; Determining the virtual item distribution quantity of the virtual item to be exchanged between the virtual objects in the item exchange state; The virtual item exchange scheme applicable to each virtual object in the item exchange state is generated.
5. The method according to any one of claims 1 to 4, wherein: In the case where there are at least two virtual objects in the item exchange state in the virtual camp, The step of determining the virtual item distribution quantity of the virtual item to be exchanged between the virtual objects in the item exchange state includes: Based on the type of the virtual item to be exchanged, determining the lack and possession of the virtual item to be exchanged by each virtual object in the item exchange state; Based on the exchange quantity of the virtual items to be exchanged and the lack and possession of the virtual items to be exchanged by the virtual objects in the item exchange state, the virtual item distribution quantity of the virtual items to be exchanged between the virtual objects in the item exchange state is determined.
6. The method according to any one of claims 1 to 5, wherein: The determining, based on the number of the virtual items to be exchanged and the lack and possession of the virtual items to be exchanged by the virtual objects in the item exchange state, the number of virtual items to be exchanged between the virtual objects in the item exchange state includes: In the case where the actual number of virtual items to be exchanged owned by the first target virtual object is less than the actual number of virtual items to be exchanged owned by other virtual objects, the target virtual item allocation number of the virtual items to be exchanged corresponding to the first target virtual object is preferentially determined; In the event that the actual quantity of the virtual items to be exchanged owned by the first target virtual object is equal to the actual quantity of the virtual items to be exchanged owned by the other virtual objects, and the missing quantity of the virtual items to be exchanged by the first target virtual object is greater than the missing quantity of the virtual items to be exchanged by the other virtual objects, the target virtual item allocation quantity of the virtual items to be exchanged corresponding to the first target virtual object is preferentially determined.
7. The method according to any one of claims 1 to 6, wherein: In the case that there are at least two virtual objects in the item exchange state other than the first virtual object in the virtual camp, the method further includes: In response to a triggering operation on the target object information, a target virtual item exchange plan is displayed in the backpack interface, wherein the target virtual item exchange plan is used to indicate a result of a change in the number of virtual items that is expected to occur by performing a virtual item exchange between the first virtual object and the virtual object corresponding to the target object information.
8. The method according to any one of claims 1 to 7, wherein: The method further comprises: Acquiring position information of each virtual object in the item exchange state in the virtual environment; Determine a target moving location based on the location information and the attribute values of each virtual object in the item exchange state; Displaying a location control in the backpack interface, the location control being used to trigger the first virtual object to initiate a location collection in the virtual camp; In response to a triggering operation on the location control, location information of the target moving location is displayed in a virtual map, wherein the location information is used to instruct at least one other virtual object in the item exchange state to go to the target moving location to perform virtual item exchange.
9. The method according to any one of claims 1 to 8, wherein: The displaying of the exchange application control in the backpack interface of the first virtual object includes: In response to a viewing operation on the backpack interface, obtaining the actual number and the upper limit of the number of virtual items corresponding to the first virtual object; Determining first virtual item difference information of the virtual item corresponding to the first virtual object based on the actual number of virtual items owned and the upper limit of the number respectively corresponding to the first virtual object, wherein the first virtual item difference information is used to represent the difference between the actual number of virtual items owned and the upper limit of the number corresponding to the first virtual object; Displaying the first virtual item value difference information in the backpack interface; When the actual number of at least one virtual item owned by the first virtual object is less than the upper limit, the exchange application control is displayed in the backpack interface.
10. The method according to any one of claims 1 to 9, wherein: The displaying of the first virtual item value difference information in the backpack interface includes at least one of the following: When the actual number of virtual items corresponding to the first virtual object is less than the upper limit, displaying the difference information of the first virtual item in the backpack interface with a first display effect; When the actual number of virtual items corresponding to the first virtual object is greater than the upper limit, displaying the difference information of the first virtual item in the backpack interface with a second display effect; When the actual owned quantity of the virtual items corresponding to the first virtual object is equal to the upper limit, the first virtual item difference information is displayed in the backpack interface with a third display effect.
11. The method according to any one of claims 1 to 10, wherein: The backpack interface also includes an information synchronization control, which is used to synchronize first virtual item difference information of the first virtual object with other virtual objects in the virtual camp, where the first virtual item difference information is used to represent the difference between the actual number of virtual items corresponding to the first virtual object and the upper limit of the number; The method further comprises: In response to a triggering operation on the information synchronization control, the first virtual object is controlled to send the first virtual item difference information to other virtual objects in the virtual camp.
12. The method according to any one of claims 1 to 11, wherein: The backpack interface also includes a discard control, and the discard control is used to trigger the first virtual object to discard excess virtual items; The method further comprises: In response to a triggering operation on the discard control, determining a to-be-discarded virtual item of the first virtual object and a discard quantity of the to-be-discarded virtual item, wherein the to-be-discarded virtual item is a virtual item whose actual owned quantity is greater than an upper quantity limit among virtual items corresponding to the first virtual object; Based on the discarded quantity, controlling the first virtual object to discard the virtual item to be discarded, and performing location marking on the virtual item to be discarded; The first virtual object is controlled to send an item discard message to at least one other virtual object in the virtual camp, wherein the item discard message includes at least one of the type, discard quantity and location mark information of the virtual item to be discarded.
13. The method according to any one of claims 1 to 12, wherein: The method further comprises: Obtaining the actual number and upper limit of the number of virtual items corresponding to the first virtual object; When the actual number of at least one virtual item owned by the first virtual object is greater than the upper limit, the discard control is displayed in the backpack interface.
14. The method according to any one of claims 1 to 13, wherein: In response to the triggering operation of the exchange application control, controlling the first virtual object to enter an item exchange state further includes: In response to a triggering operation on the exchange application control, updating the exchange application control to a cancel application control; The method further comprises: In response to a triggering operation on the cancel application control, the first virtual object is controlled to exit the item exchange state.
15. The method according to any one of claims 1 to 14, wherein: The method further comprises: When there is a second virtual object belonging to the virtual camp in the game interface and the second virtual object is in the item exchange state, obtaining the actual number of virtual items and the upper limit of the number corresponding to the second virtual object; Based on the actual number of virtual items owned and the upper limit of the number of virtual items corresponding to the second virtual object, second virtual item difference information of the virtual items corresponding to the second virtual object is updated and displayed around the second virtual object, where the second virtual item difference information is used to represent the difference between the actual number of virtual items corresponding to the second virtual object and the upper limit of the number.
16. The method according to any one of claims 1 to 15, wherein: The method further comprises: displaying an item exchange control when the object distance between the first virtual object and at least one of the second virtual objects is less than a distance threshold; In response to a triggering operation on the item exchange control, determining a second target virtual object whose object distance to the first virtual object is less than the distance threshold; Based on the first virtual item difference information of the first virtual object and the second virtual item difference information of the second target virtual object, the first virtual object and the second target virtual object are controlled to perform virtual item exchange.
17. A display device for a virtual item exchange scheme, the device comprising: A first display module, used to display an exchange application control in a backpack interface of the first virtual object, wherein the exchange application control is used to trigger the first virtual object to initiate a virtual item exchange application in the virtual camp; A second display module, configured to control the first virtual object to enter an item exchange state in response to a triggering operation on the exchange application control; The third display module is used to display the first virtual item exchange plan in the backpack interface, wherein the first virtual item exchange plan is used to indicate the expected change in the number of virtual items that will occur when the first virtual object executes the virtual item exchange. fruit.
18. A computer device, comprising a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the display method of the virtual item exchange solution as described in any one of claims 1 to 16.
19. A computer-readable storage medium, wherein at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the display method of the virtual item exchange solution as described in any one of claims 1 to 16.
20. A computer program product, comprising computer instructions, wherein when the computer instructions are executed by a processor, the method for displaying a virtual item exchange solution according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Information sending and resource transferring method and device in game, medium and equipment
CN112494943A
Operation control method and device of virtual article and electronic equipment
CN113262484A
Virtual item pickup processing method and device, equipment, medium and program product
CN114210057A
Virtual item use method and device, terminal, storage medium and program product
CN114225415A
Virtual weapon exchange method and device in game, storage medium and electronic equipment
CN115040875A