Human-computer interaction method, device and equipment of virtual article, medium and program product
By displaying the function button on the virtual item interface, in response to the selected operation, the user can accurately realize the directive role of the virtual item, solving the problem of misidentification in the virtual item operation and improving the user experience.
Patent Information
- Application Number
- CN202510561198.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2021-10-20
- Filing Date
- 2021-12-28
- Publication Date
- 2025-08-15
AI Technical Summary
In the backpack interface of virtual items, the up and down sliding function and automatic assembly function of virtual items are prone to misidentification, resulting in inaccurate user operations.
By displaying the function button on the user interface, in response to the selection operation of the virtual item, the button is displayed when a specific function relationship is satisfied. The user realizes the directive effect of the virtual item by triggering the button to avoid misidentification.
It realizes fast and accurate operation between virtual items, improves user experience, and avoids the occurrence of misidentification.
Smart Images

Figure CN120478966A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the parent application is 202111628789.1, the application date is December 28, 2021, and the name of the invention is "Human-computer interaction methods, devices, equipment, media and program products for virtual objects." Technical Field
[0002] The embodiments of the present application relate to the field of human-computer interaction, and in particular to a method, apparatus, device, medium, and program product for human-computer interaction of virtual items. Background Art
[0003] When users operate virtual characters to move around in the virtual world, they can interact with virtual objects displayed in the user interface.
[0004] In related art, a user opens a backpack interface that includes a virtual gun and a virtual magazine. The virtual gun occupies a portion of the backpack's grid, while the virtual magazine occupies another portion. The user drags the virtual magazine over the virtual gun and releases it, and the virtual magazine automatically attaches to the gun.
[0005] Since the backpack interface has an up and down sliding function, it is easy for the user to misidentify between the up and down sliding function and the automatic assembly function when the user drags the virtual magazine. Summary of the Invention
[0006] This application provides a method, device, equipment, medium, and program product for human-computer interaction of virtual items, which can avoid misidentification between the up and down sliding function and the automatic assembly function. The technical solution is as follows:
[0007] According to one aspect of the present application, a human-computer interaction method for a virtual item is provided, the method comprising:
[0008] displaying a user interface, wherein the user interface includes a first virtual item, a second virtual item, and a fourth virtual item owned by the virtual character;
[0009] In response to a first selection operation on the first virtual item, displaying the first virtual item in a selected state;
[0010] In response to a second selection operation on the second virtual item, displaying the second virtual item in a selected state;
[0011] displaying a multi-level function button when the first virtual item and the fourth virtual item satisfy a first interaction relationship, and the fourth virtual item and the second virtual item satisfy a second interaction relationship;
[0012] In response to the triggering operation of the multi-level function button, multi-level effect results of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item are displayed.
[0013] According to one aspect of the present application, a human-computer interaction device for a virtual item is provided, the device comprising:
[0014] A display module, configured to display a user interface, wherein the user interface includes a first virtual item, a second virtual item, and a fourth virtual item owned by the virtual character;
[0015] a human-computer interaction module, configured to display the first virtual item in a selected state in response to a first selection operation on the first virtual item;
[0016] The human-computer interaction module is further configured to display the second virtual item in a selected state in response to a second selection operation on the second virtual item;
[0017] The display module is further configured to display a multi-level function button when the first virtual item and the fourth virtual item satisfy a first interaction relationship, and the fourth virtual item and the second virtual item satisfy a second interaction relationship;
[0018] The human-computer interaction module is further configured to display, in response to a triggering operation on the multi-level function button, multi-level action results of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item.
[0019] According to another aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the human-computer interaction method of virtual items as described above.
[0020] According to another aspect of the present application, a computer storage medium is provided, wherein the computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to implement the human-computer interaction method of virtual items as described above.
[0021] According to another aspect of the present application, a computer program product is provided, which includes computer instructions stored in a computer-readable storage medium; the computer instructions are read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the human-computer interaction method for virtual items as described above.
[0022] The beneficial effects of the technical solution provided by this application include at least:
[0023] By displaying a user interface, in response to a selection operation on a first virtual item and a second virtual item, a function button is displayed if an action relationship is satisfied between the first virtual item and the second virtual item; and in response to a triggering operation on the function button, the result of the action of the first virtual item on the second virtual item is displayed. This application utilizes the action relationship between the first virtual item and the second virtual item to add a function button to the user interface. By triggering the function button, the user can quickly and accurately cause the first virtual item to act on the second virtual item, thereby avoiding the occurrence of misidentification. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0025] Figure 1 is a schematic diagram of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0026] Figure 2 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;
[0027] Figure 3 is a flow chart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0028] Figure 4 is a flow chart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0029] Figure 5 is a flow chart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0030] Figure 6 is a schematic diagram of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0031] Figure 7 is a flow chart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0032] Figure 8 is a schematic diagram of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0033] Figure 9 is a schematic diagram of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0034] Figure 10 is a schematic diagram of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0035] Figure 11 is a flow chart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application;
[0036] Figure 12 is a block diagram of a human-computer interaction device for virtual items provided by an exemplary embodiment of the present application;
[0037] Figure 13 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0039] The embodiment of the present application provides a technical solution for a human-computer interaction method of a virtual item. Figure 1 As shown, the user interface displays an equipment area 10 and a warehouse area 20. The user interface includes a first virtual item 30 and a second virtual item 40 owned by the virtual character. For example, the virtual items include at least one of virtual bullets, virtual magazines, virtual shells, virtual light machine guns, virtual heavy machine guns, and virtual grenades, although this embodiment of the present application is not limited thereto.
[0040] Exemplarily, the equipped area 10 and the warehouse area 20 in the user interface present at least one of a two-dimensional storage space and a three-dimensional storage space. In the embodiment of the present application, the two-dimensional storage space is used as an example. The two-dimensional storage space can be divided into at least two two-dimensional grids, with different virtual items occupying different two-dimensional grids, or different virtual items occupying different numbers of two-dimensional grids. Stackable virtual items can repeatedly occupy the same two-dimensional grid after stacking; non-stackable virtual items each occupy a different two-dimensional grid. Once all two-dimensional grids in the two-dimensional storage space are filled with virtual items, no new virtual items can be placed in the two-dimensional storage space.
[0041] When the user selects first virtual item 30, first virtual item 30 is selected. When the user selects second virtual item 40, second virtual item 40 is also selected, and the first virtual item 30 is deselected. If a directional action relationship is established between first virtual item 30 and second virtual item 40, a function button 50 is displayed on the user interface. By triggering this function button 50, the user can cause the first virtual item 30 to act on the second virtual item 40.
[0042] Exemplarily, a directional action relationship is used to represent a directional action relationship between virtual item A and virtual item B, including an action direction and an action relationship. For example, a virtual bullet can be assembled in a virtual magazine. The virtual bullet to the virtual magazine is the action direction, and the assembly is the action relationship.
[0043] When the user clicks the first virtual item 30 and the second virtual item 40 in sequence, and the directional action relationship between the first virtual item 30 and the second virtual item 40 is not satisfied, no function button is displayed on the user interface, and the user can perform other operations on the second virtual item 40 .
[0044] For example, if a user wants to assemble a virtual magazine into a virtual gun, the user clicks on the virtual magazine and then on the virtual gun. When the virtual magazine and the virtual gun have a directional relationship, a function button is displayed on the user interface. The user completes the assembly of the virtual magazine into the virtual gun by triggering the function button 50, thereby obtaining a virtual gun with a virtual magazine.
[0045] If the virtual magazine and the virtual gun have no directional relationship, no additional display will appear on the user interface after the user clicks both the virtual magazine and the virtual gun. Once the user switches from selecting the virtual magazine to selecting the virtual gun on the user interface, the user can perform other operations on the virtual gun without deselecting the virtual magazine. Exemplarily, these other operations include at least one of unloading the firearm and switching between primary and standby modes, which is not limited in this application.
[0046] This application utilizes the directional interaction relationship between virtual items to display function buttons on the user interface. Users can quickly and accurately realize the directional interaction between virtual items by triggering the function buttons, thereby avoiding the occurrence of misidentification and improving the user experience.
[0047] Figure 2 The following is a block diagram of a computer system according to an exemplary embodiment of the present application: The computer system 100 includes a first terminal 110 , a server 120 , and a second terminal 130 .
[0048] The first terminal 110 has a client 111 installed and running that supports a virtual environment. This client 111 can be a multiplayer online battle program. When the first terminal runs client 111, the user interface of client 111 is displayed on the screen of the first terminal 110. Client 111 can be any of a simulation program, a battle royale shooting game, a virtual reality (VR) application, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooter (FPS), a third-person shooter (TPS), a multiplayer online tactical competitive game (MOBA), or a simulation game (SLG). In this embodiment, a MOBA game is used as an example for explanation. First terminal 110 is used by first user 112. First user 112 uses first terminal 110 to control a first virtual character in a virtual environment to perform activities, or to manipulate virtual items owned by a second virtual character. The first virtual character may be referred to as the virtual character of first user 112. First user 112 may assemble, disassemble, and uninstall virtual items owned by the first virtual character, although this application does not limit this. Illustratively, the first virtual character is a first virtual character, such as a simulated human character or an animated character.
[0049] The second terminal 130 has a client 131 installed and running that supports a virtual environment. This client 131 can be a multiplayer online battle program. When the second terminal 130 runs the client 131, the user interface of the client 131 is displayed on the screen of the second terminal 130. The client can be any of a simulation program, a battle royale shooting game, a VR application, an AR program, a 3D map program, a virtual reality game, an augmented reality game, an FPS, a TPS, a MOBA, and a SLG. In this embodiment, the client is a MOBA game as an example. The second terminal 130 is the terminal used by the second user 113. The second user 113 uses the second terminal 130 to control a second virtual character in the virtual environment to perform activities and operate the virtual items owned by the second virtual character. The second virtual character can be referred to as the virtual character of the second user 113. In an illustrative embodiment, the second virtual character is a second virtual character, such as a simulated human character or an anime character.
[0050] Optionally, the first virtual character and the second virtual character are in the same virtual environment. Optionally, the first virtual character and the second virtual character may belong to the same camp, the same team, the same organization, have a friendship relationship, or have temporary communication permissions. Optionally, the first virtual character and the second virtual character may belong to different camps, different teams, different organizations, or have a hostile relationship.
[0051] Optionally, the client installed on the first terminal 110 and the second terminal 130 is the same, or the client installed on the two terminals is the same type of client 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, an MP3 player, an MP4 player, a laptop computer, and a desktop computer.
[0052] Figure 2 Only two terminals are shown, but in different embodiments, multiple other terminals 140 can access the server 120. Optionally, one or more terminals 140 are terminals corresponding to developers. A development and editing platform for a client that supports a virtual environment is installed on the terminal 140. The developer can edit and update the client on the terminal 140 and transmit the updated client installation package to the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 can download the client installation package from the server 120 to update the client.
[0053] The first terminal 110 , the second terminal 130 , and the other terminals 140 are connected to the server 120 via a wireless network or a wired network.
[0054] Server 120 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 120 provides backend services for clients supporting a 3D virtual environment. Optionally, server 120 performs primary computing tasks, while the client performs secondary computing tasks; alternatively, server 120 performs secondary computing tasks, while the client performs primary computing tasks; alternatively, server 120 and the client utilize a distributed computing architecture for collaborative computing.
[0055] In an illustrative example, the server 120 includes a processor 122, a user account database 123, a battle service module 124, and a user-facing input / output interface (I / O interface) 125. The processor 122 is configured to load instructions stored in the server 121 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 140, 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 engage in battles, such as 1v1 battles, 3v3 battles, 5v5 battles, etc. The user-facing 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.
[0056] Figure 3 This is a flowchart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application. Figure 2 The method is executed by a terminal in the system shown or by a client on the terminal. The method includes:
[0057] Step 302: Display a user interface, where the user interface includes a first virtual item and a second virtual item owned by the virtual character.
[0058] A virtual environment is a virtual activity space provided by an application running on a terminal, allowing virtual characters to perform various activities within the virtual activity space. Virtual items are items owned by virtual characters in the virtual world. Virtual items can be obtained through at least one of picking up, looting, and purchasing, which is not limited in this application.
[0059] Exemplarily, the virtual items include at least one of virtual bullets, virtual magazines, virtual shells, virtual light machine guns, virtual heavy machine guns, and virtual grenades, which is not limited in this embodiment of the present application.
[0060] Exemplarily, the user interface is at least one of a two-dimensional storage space and a three-dimensional storage space presented by the terminal. In the embodiments of the present application, the two-dimensional storage space is used as an example. The two-dimensional storage space can be divided into at least two two-dimensional grids, with different virtual items occupying different two-dimensional grids, or different virtual items occupying different numbers of two-dimensional grids. Stackable virtual items can repeatedly occupy the same two-dimensional grid after stacking; non-stackable virtual items each occupy a different two-dimensional grid. Once all two-dimensional grids in the two-dimensional storage space are filled with virtual items, no new virtual items can be placed in the two-dimensional storage space.
[0061] Superimposable virtual items are used to represent virtual items that have an interactive relationship, such as: bullets and magazines, magazines and firearms, scopes and rails, but not limited thereto.
[0062] Step 304: In response to a first selection operation on the first virtual item, display the first virtual item in a selected state.
[0063] The terminal displays the first virtual item in a selected state on the user interface in response to a first selection operation of the user on the first virtual item.
[0064] For example, the user performs a first selection operation on the first virtual item on the touch screen, or the user performs a first selection operation on the first virtual item using a mouse on a computer, and the first virtual item is displayed in a selected state on the user interface.
[0065] Exemplarily, the first selection operation includes at least one of a long press, a single click, a double click, a sliding operation, and a circle operation, which is not limited in this embodiment of the present application.
[0066] For example, the first virtual item being displayed in a selected state may be represented by at least one of the following: the first virtual item being highlighted, and a selected label being displayed on the first virtual item, which is not limited in this embodiment of the present application.
[0067] Step 306: In response to the second selection operation on the second virtual item, display the second virtual item in a selected state and the first virtual item in a deselected state.
[0068] In response to the second selection operation of the user on the second virtual item, the terminal displays the second virtual item in a selected state on the user interface, and displays the first virtual item in a deselected state on the user interface.
[0069] For example, when the user performs a second selection operation on the second virtual item on the touch screen, or when the user performs a second selection operation on the second virtual item using a mouse on a computer, the second virtual item in a selected state and the first virtual item in a deselected state are displayed on the user interface.
[0070] Exemplarily, the second selection operation includes at least one of a long press, a single click, a double click, a sliding operation, and a circle operation, which is not limited in this embodiment of the present application.
[0071] For example, the second virtual item displaying the selected state may be represented by at least one of the following: the second virtual item being highlighted, and a selected label being displayed on the second virtual item, which is not limited in this embodiment of the present application.
[0072] Step 308: Displaying a function button when the first virtual item and the second virtual item satisfy the functional relationship.
[0073] When the functional relationship is satisfied between the first virtual item and the second virtual item, a function button is displayed on the user interface.
[0074] Illustratively, the action relationship is used to represent the interaction relationship between the first virtual item and the second virtual item, and can be at least one of a master-slave relationship, a containment relationship, a parent-child relationship, a subordinate relationship, an inclusion relationship, and a parallel relationship, which is not limited in this embodiment of the present application.
[0075] The interaction relationship between the first virtual item and the second virtual item can be applied to at least one of the following scenarios: visor equipped to a helmet, items placed in a backpack, items placed in a magazine, bullets loaded into a magazine, a scope equipped to a bolt, and a muzzle equipped to a bolt. This embodiment of the present application does not limit this.
[0076] Exemplarily, the function button is displayed in a floating manner on the user interface. The floating display position of the function button can be displayed on any position of the left side, right side, top side, bottom side, or center of the user interface, or a prompt animation can be provided when the function button is displayed. The prompt animation is used to prompt the user to display the position of the function button. The embodiment of the present application does not limit this. In the embodiment of the present application, in order to make the left and right hands cooperate more properly, the function button is displayed on the left side of the user interface.
[0077] Step 310: In response to the triggering operation of the function button, display the result of the first virtual item acting on the second virtual item.
[0078] The user triggers the function button to display the result of the first virtual item acting on the second virtual item on the user interface.
[0079] For example, the user may trigger the function button by long pressing the function button, clicking the function button, double-clicking the function button, and / or sliding the function button to generate a signal.
[0080] For example, the result of the first virtual item acting on the second virtual item may be at least one of the following: the first virtual item being placed on top of the second virtual item, the first virtual item being placed inside the second virtual item, the first virtual item being mounted on top of the second virtual item, the first virtual item being included in the second virtual item, and the first virtual item being attached to the second virtual item. This embodiment of the present application is not limited to this.
[0081] In summary, the method provided in this embodiment displays a user interface, selects a first virtual item through a first selection operation, and selects a second virtual item through a second selection operation. The interaction relationship between the first virtual item and the second virtual item is utilized to add a display function button to the user interface. By triggering the function button, the result of the interaction between the first virtual item and the second virtual item is displayed on the user interface. This embodiment of the present application can quickly and accurately achieve directional interaction between virtual items by triggering the function button, thereby avoiding misidentification and improving the user experience.
[0082] Figure 4 This is a flowchart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application. Figure 2 The method is executed by a terminal in the system shown or by a client on the terminal. The method includes:
[0083] Step 402: Display a user interface, where the user interface includes a first virtual item and a second virtual item owned by the virtual character.
[0084] The terminal displays a user interface having an equipped area and a warehouse area, wherein the second virtual item is displayed in the equipped area and the first virtual item is displayed in the warehouse area.
[0085] In one possible implementation, the user interface can display at least one of the virtual character's equipment interface, physical health interface, digital asset interface, wardrobe interface, inheritance box interface, and store interface. This application does not limit this. In the embodiment of this application, the equipment interface is taken as an example.
[0086] The equipment interface displayed in the user interface includes virtual items owned by the virtual character, and the user interface includes an equipped area 10 and a warehouse area 20, such as Figure 1 As shown, virtual items can be placed in either the equipped area 10 or the warehouse area 20. In this embodiment, the equipped area 10 contains the second virtual item, while the warehouse area 20 contains the first virtual item. The equipped area 10 is used to store virtual props that the avatar has equipped; the warehouse area 20 is used to store virtual props that the avatar owns but has not equipped.
[0087] Exemplarily, the terminal displays a user interface having an equipped area 10 and a warehouse area 20. The equipped area 10 can be divided into at least two two-dimensional grids, and the second virtual item occupies at least one two-dimensional grid in the equipped area 10. The warehouse area 20 can be divided into at least two two-dimensional grids, and the first virtual item occupies at least one two-dimensional grid in the warehouse area 20. Different virtual items occupy different two-dimensional grids, or different virtual items occupy different numbers of two-dimensional grids. Stackable virtual items can repeatedly occupy the same two-dimensional grid after stacking; non-stackable virtual items each occupy a different two-dimensional grid. Once all two-dimensional grids in a two-dimensional storage space are filled with virtual items, no new virtual items can be placed in that two-dimensional storage space.
[0088] The warehouse area 20 is used to store unequipped virtual items owned by the virtual character; the equipped area 10 is used to store virtual items equipped by the virtual character; and the two-dimensional grid is used to represent the minimum storage space for the virtual items.
[0089] Exemplarily, the terminal updates and displays the virtual items displayed in the warehouse area in response to a sliding operation on the warehouse area. The terminal updates and displays the virtual items displayed in the warehouse area in the user interface in response to a user sliding operation on the warehouse area in the user interface.
[0090] For example, the sliding operation on the warehouse area can be performed by sliding from top to bottom, sliding from left to right, sliding from bottom to top, and sliding from right to left, which is not limited in this embodiment of the present application.
[0091] Step 404: In response to a first selection operation on the first virtual item, display the first virtual item in a selected state.
[0092] Illustratively, after the user performs a first selection operation on the first virtual item on the touch screen, or after the user performs a first selection operation on the first virtual item using a mouse on a computer, the first virtual item is displayed in a selected state on the user interface.
[0093] Exemplarily, the first selection operation includes at least one of a long press, a single click, a double click, a sliding operation, and a circle operation, which is not limited in this embodiment of the present application.
[0094] For example, the first virtual item being displayed in a selected state may be represented by at least one of the following: the first virtual item being highlighted, and a selected label being displayed on the first virtual item, which is not limited in this embodiment of the present application.
[0095] Step 406: In response to a second selection operation on the second virtual item, display the second virtual item in a selected state and the first virtual item in a deselected state.
[0096] In response to the second selection operation of the user on the second virtual item, the terminal displays the second virtual item in a selected state on the user interface, and displays the first virtual item in a deselected state on the user interface.
[0097] For example, when the user performs a second selection operation on the second virtual item on the touch screen, or when the user performs a second selection operation on the second virtual item using a mouse on a computer, the second virtual item in a selected state and the first virtual item in a deselected state are displayed on the user interface.
[0098] Exemplarily, the second selection operation includes at least one of a long press, a single click, a double click, a sliding operation, and a circle operation, which is not limited in this embodiment of the present application.
[0099] For example, the second virtual item displaying the selected state may be represented by at least one of the following: the second virtual item being highlighted, and a selected label being displayed on the second virtual item, which is not limited in this embodiment of the present application.
[0100] Step 408a: When the first virtual item is a slave item, the second virtual item is a master item, and the slave item and the master item have a master-slave assembly relationship, display a function button.
[0101] In one possible implementation, when the first virtual item is a slave item and the second virtual item is a master item, and the slave item and the master item have a master-slave assembly relationship, the first virtual item and the second virtual item are sequentially selected, and a function button is displayed on the user interface to indicate to the user that the first virtual item can be assembled with the second virtual item.
[0102] For example, the first virtual item is a virtual bullet, which is a slave item; the second virtual item is a virtual magazine, which is a master item; there is a master-slave assembly relationship between the virtual bullet and the virtual magazine; when the virtual bullet and the virtual magazine are selected in sequence, a function button is displayed on the user interface, and the function button is used to indicate to the user that the virtual bullet can be assembled on the virtual magazine.
[0103] In one possible implementation, when the first virtual item is a master item and the second virtual item is a slave item, and the master item and the slave item have a master-slave assembly relationship, the first virtual item and the second virtual item are sequentially selected, and a function button is displayed on the user interface, where the function button is used to indicate to the user that the second virtual item can be assembled with the first virtual item.
[0104] For example, the first virtual item is a virtual sniper rifle, which is the main item; the second virtual item is a virtual scope, which is the subordinate item; the virtual sniper rifle and the virtual scope have a master-slave assembly relationship; when the virtual sniper rifle and the virtual scope are selected in sequence, a function button is displayed on the user interface, and the function button is used to indicate to the user that the virtual scope can be assembled on the virtual sniper rifle.
[0105] Step 408b: When the first virtual item is a contained item, the second virtual item is a container item, and the contained item and the container item have a size-containment relationship, display a function button.
[0106] In one possible implementation, when the first virtual item is a contained item and the second virtual item is a container item, and the contained item and the container item have a size-capacity relationship, the first virtual item and the second virtual item are sequentially selected, and a function button is displayed on the user interface, where the function button is used to indicate to the user that the first virtual item can be contained in the second virtual item.
[0107] For example, the first virtual item is a virtual grenade, which is a contained item; the second virtual item is a virtual backpack, which is a container item; the virtual grenade and the virtual backpack have a size-containment relationship; when the virtual grenade and the virtual backpack are selected in sequence, a function button is displayed on the user interface, which is used to indicate to the user that the virtual grenade can be contained in the virtual backpack.
[0108] In one possible implementation, when the first virtual item is a container item and the second virtual item is a contained item, and the contained item and the container item have a size capacity relationship, the first virtual item and the second virtual item are selected in sequence, and a function button is displayed on the user interface, where the function button is used to indicate to the user that the first virtual item can contain the second virtual item.
[0109] For example, the first virtual item is a virtual backpack, which is a container item; the second virtual item is a virtual grenade, which is a contained item; the virtual grenade and the virtual backpack have a size capacity relationship; when the virtual grenade and the virtual backpack are selected in sequence, a function button is displayed on the user interface, which is used to indicate to the user that the virtual grenade can be contained in the virtual backpack.
[0110] Step 410a: In response to a triggering operation on a function button and in response to a master-slave assembly relationship being satisfied, displaying a second virtual item assembled with the first virtual item.
[0111] In one possible implementation, when the first virtual item is a slave item and the second virtual item is a master item, and the slave item and the master item have a master-slave assembly relationship, a function button is displayed on the user interface. When the user triggers the function button, the first virtual item acts on the second virtual item, and the result of the assembly of the first virtual item to the second virtual item is displayed on the user interface, resulting in the second virtual item being assembled with the first virtual item.
[0112] For example, the first virtual item is a virtual bullet, and the second virtual item is a virtual magazine. There is a master-slave assembly relationship between the virtual bullet and the virtual magazine. A function button is displayed on the user interface. The user triggers the function button by long pressing, clicking, double-clicking, and / or sliding the function button to generate a signal, and the virtual magazine equipped with the virtual bullet is displayed on the user interface.
[0113] Step 410b: In response to the triggering operation of the function button and the satisfaction of the size accommodation relationship, displaying the second virtual item that accommodates the first virtual item.
[0114] In one possible implementation, when the first virtual item is a contained item and the second virtual item is a container item, and the contained item and the container item have a size-capacity relationship, a function button is displayed on the user interface. When the user triggers the function button, the first virtual item acts on the second virtual item, and the result of the first virtual item being contained in the second virtual item is displayed on the user interface, resulting in the second virtual item containing the first virtual item.
[0115] For example, the first virtual item is a virtual grenade, and the second virtual item is a virtual backpack. There is a size capacity relationship between the virtual grenade and the virtual backpack, so a function button is displayed on the user interface. The user triggers the function button by long pressing the function button, clicking the function button, double-clicking the function button and / or sliding the function button to generate a signal, and the virtual backpack containing the virtual grenade is displayed on the user interface.
[0116] In summary, the method provided in this embodiment displays a user interface, selects a first virtual item through a first selection operation, and selects a second virtual item through a second selection operation. Utilizing the master-slave assembly relationship and size-containment relationship between the first virtual item and the second virtual item, a display function button is added to the user interface. By triggering the function button, the second virtual item assembled with the first virtual item or the second virtual item containing the first virtual item is displayed on the user interface.
[0117] The method provided in this embodiment selects a first unequipped virtual item in a warehouse area through a first selection operation, and selects a second virtual item in an equipped area through a second selection operation. Utilizing the directional interaction relationship between the first virtual item and the second virtual item, the first unequipped virtual item in the warehouse area is equipped to the second virtual item in the equipped area, and the unequipped attribute of the first virtual item is changed to the equipped attribute, thereby achieving directional interaction between virtual items having a directional interaction relationship.
[0118] The embodiment of the present application can quickly and accurately achieve directional effects between virtual objects by triggering function buttons, thereby avoiding the occurrence of misidentification and improving user experience.
[0119] The above embodiment describes the case where the first virtual item and the second virtual item have a single directional interaction relationship. Next, the case where the first virtual item and the second virtual item have multiple directional interaction relationships will be described in detail.
[0120] Figure 5 This is a flowchart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application. Figure 2 The method is executed by a terminal in the system shown or by a client on the terminal. The method includes:
[0121] Step 502: Display a user interface, where the user interface includes a first virtual item and a second virtual item owned by the virtual character.
[0122] In a possible implementation, the equipment interface displayed in the user interface includes virtual items owned by the virtual character, and the user interface includes an equipped area 10 and a warehouse area 20, such as Figure 1 As shown, virtual items can be placed in either the equipped area 10 or the warehouse area 20. In this embodiment, the equipped area 10 contains the second virtual item, while the warehouse area 20 contains the first virtual item. The equipped area 10 is used to store virtual props that the avatar has equipped; the warehouse area 20 is used to store virtual props that the avatar owns but has not equipped.
[0123] Step 504: In response to a first selection operation on the first virtual item, display the first virtual item in a selected state.
[0124] Illustratively, after the user performs a first selection operation on the first virtual item on the touch screen, or after the user performs a first selection operation on the first virtual item using a mouse on a computer, the first virtual item is displayed in a selected state on the user interface.
[0125] Exemplarily, the first selection operation includes at least one of a long press, a single click, a double click, a sliding operation, and a circle operation, which is not limited in this embodiment of the present application.
[0126] For example, the first virtual item being displayed in a selected state may be represented by at least one of the following: the first virtual item being highlighted, and a selected label being displayed on the first virtual item, which is not limited in this embodiment of the present application.
[0127] Step 506: In response to a second selection operation on the second virtual item, display the second virtual item in a selected state and the first virtual item in a deselected state.
[0128] In response to the second selection operation of the user on the second virtual item, the terminal displays the second virtual item in a selected state on the user interface, and displays the first virtual item in a deselected state on the user interface.
[0129] For example, when the user performs a second selection operation on the second virtual item on the touch screen, or when the user performs a second selection operation on the second virtual item using a mouse on a computer, the second virtual item in a selected state and the first virtual item in a deselected state are displayed on the user interface.
[0130] Exemplarily, the second selection operation includes at least one of a long press, a single click, a double click, a sliding operation, and a circle operation, which is not limited in this embodiment of the present application.
[0131] For example, the second virtual item displaying the selected state may be represented by at least one of the following: the second virtual item being highlighted, and a selected label being displayed on the second virtual item, which is not limited in this embodiment of the present application.
[0132] Step 508: When n types of directional action relationships are satisfied between the first virtual item and the second virtual item, n function buttons corresponding to the n types of directional action relationships are displayed.
[0133] When a directional action relationship is satisfied between the first virtual item and the second virtual item, and there are n types of directional action relationships, n function buttons corresponding to the n types of directional action relationships are displayed on the user interface, where n is an integer greater than 1.
[0134] For example, Figure 6As shown, taking the example of a first virtual item and a second virtual item having two directional action relationships, the user interface displays an equipped area 601 and a warehouse area 602. Virtual items can be placed in either the equipped area 601 or the warehouse area 602. In this embodiment, the equipped area 601 is used to place the second virtual item, and the warehouse area 602 is used to place the first virtual item. The user selects the first virtual item (virtual magazine 603) in the warehouse area 602 through a first selection operation, and the virtual magazine 603 appears selected. Then, the user selects the second virtual item (virtual gun 604) in the equipped area 601 through a second selection operation, and the virtual gun 604 appears selected, and the virtual magazine 603 is deselected. In the case where there are two directional action relationships between the virtual magazine 603 and the virtual gun 604, that is, when there are two action relationships between the virtual magazine 603 and the virtual gun 604, namely, the assemble and replace action relationships, two function buttons are displayed on the user interface, namely, the function button 605 and the replace function button 606.
[0135] Exemplarily, the function button 605 and the replacement function button 606 can be displayed separately in floating mode, for example, the function button 605 and the replacement function button 606 are respectively displayed in floating mode on the left and right sides of the user interface, or the function button 605 and the replacement function button 606 are respectively displayed in floating mode on the upper and lower sides of the user interface, but are not limited to this, and the embodiments of the present application are not limited to this.
[0136] Exemplarily, the function button 605 and the replacement function button 606 can be displayed in parallel and suspended, for example: the function button 605 and the replacement function button 606 are displayed in parallel and suspended horizontally, or the function button 605 and the replacement function button 606 are displayed in parallel and suspended vertically; or the function button 605 and the replacement function button 606 are displayed in parallel and suspended position at least one of the upper side, lower side, left side, right side, and center of the user interface, but not limited thereto; or the function button 605 and the replacement function button 606 are displayed according to the priority of the two action relationships of assembly and replacement, for example: when the replacement action relationship is superior to the assembly action relationship, the replacement function button 606 is displayed on the upper side of the function button 605, or the replacement function button 606 is displayed on the outer side of the function button 605, but not limited thereto, and the embodiment of the present application is not limited thereto. In the embodiment of the present application, the function button 605 and the replacement function button 606 are displayed in parallel and suspended vertically on the left side of the user interface, with the function button 605 located at the lower side and the replacement function button 606 located at the upper side, so as to facilitate the user's left hand to operate.
[0137] In one possible implementation, in response to a third selection operation on a third virtual item, the function button is removed from display; or in response to a time period during which the function button has not been triggered reaching a threshold, the function button is removed from display. The third virtual item is a virtual item owned by the virtual character.
[0138] For example, if a first virtual item and a second virtual item have a directional interaction relationship, a function button is displayed on the user interface. If the user selects the third virtual item through a third selection operation, the function button and the second virtual item are removed from the user interface, and the user can perform further operations on the third virtual item. Alternatively, if the function button remains untriggered for a period of time after being displayed that reaches a threshold, the function button is removed from the user interface.
[0139] Step 510: In response to a triggering operation on the i-th function button among the n function buttons, displaying an action result of the first virtual object acting on the second virtual object based on the i-th directional action relationship.
[0140] The user triggers the i-th function button among the n function buttons, and the result of the first virtual item acting on the second virtual item based on the i-th directional action relationship on the user interface is displayed, where i is an integer not greater than n.
[0141] For example, Figure 6 As shown, the first virtual item and the second virtual item have two directional interaction relationships, including an assemble relationship and a replace relationship. The user can select and trigger the assemble function button 605 to assemble the virtual magazine 603 to the virtual gun 604; or the user can select and trigger the replace function button 606 to replace the original magazine on the virtual gun 604 with the virtual magazine 603.
[0142] In one possible implementation, a virtual gun is equipped with a virtual first rail, a virtual second rail, and a virtual third rail, and a virtual first sight is mounted on the virtual first rail. After a user clicks on the virtual second sight in the user interface, the virtual second sight is selected. Then, the user clicks on the virtual gun in the user interface, the virtual gun is selected, and the virtual second sight is deselected. At this point, the virtual second sight and the virtual gun have two directional functional relationships. The user interface simultaneously displays a first assembly function button, a second assembly function button, and a replacement function button. The user can trigger the first assembly function button to mount the virtual second sight on the virtual second rail of the virtual gun; or, trigger the second assembly function button to mount the virtual second sight on the virtual third rail of the virtual gun; or, trigger the replacement function button to replace the virtual first sight with the virtual second sight and mount it on the virtual first rail.
[0143] In summary, the method provided in this embodiment displays a user interface, selects a first virtual item through a first selection operation, and selects a second virtual item through a second selection operation. When n types of directional interaction relationships are satisfied between the first virtual item and the second virtual item, n function buttons corresponding to the n directional interaction relationships are added and displayed on the user interface. By triggering the i-th function button among the n function buttons, the result of the first virtual item acting on the second virtual item based on the i-th directional interaction relationship is displayed on the user interface. This embodiment of the present application can quickly and accurately implement directional interactions between virtual items by triggering the function buttons, thereby avoiding misidentification and improving the user experience.
[0144] In the above embodiments, the cases where the first virtual item and the second virtual item have one or more directional interaction relationships are described respectively. Next, the case where the first virtual item and the second virtual item have a multi-level interaction relationship will be described in detail.
[0145] Figure 7 This is a flowchart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application. Figure 2 The method is executed by a terminal in the system shown or by a client on the terminal. The method includes:
[0146] Step 702: Display a user interface, where the user interface includes a first virtual item, a second virtual item, and a fourth virtual item owned by the virtual character.
[0147] Virtual items are items owned by the virtual character in the virtual world, and the user interface includes a first virtual item, a second virtual item, and a fourth virtual item owned by the virtual character.
[0148] The user interface includes virtual items owned by the virtual character, and the user interface includes an equipment area 10 and a warehouse area 20. Figure 1 As shown, virtual items can be placed in either the equipped area 10 or the warehouse area 20. In this embodiment, the equipped area 10 contains the second virtual item, while the warehouse area 20 contains the first virtual item and the fourth virtual item. The equipped area 10 is used to store virtual props that the avatar has equipped; the warehouse area 20 is used to store virtual props that the avatar owns but has not equipped.
[0149] Step 704: In response to a first selection operation on the first virtual item, display the first virtual item in a selected state.
[0150] Illustratively, after the user performs a first selection operation on the first virtual item on the touch screen, or after the user performs a first selection operation on the first virtual item using a mouse on a computer, the first virtual item is displayed in a selected state on the user interface.
[0151] Exemplarily, the first selection operation includes at least one of a long press, a single click, a double click, a sliding operation, and a circle operation, which is not limited in this embodiment of the present application.
[0152] For example, the first virtual item being displayed in a selected state may be represented by at least one of the following: the first virtual item being highlighted, and a selected label being displayed on the first virtual item, which is not limited in this embodiment of the present application.
[0153] Step 706: In response to a second selection operation on the second virtual item, display the second virtual item in a selected state and the first virtual item in a deselected state.
[0154] In response to the second selection operation of the user on the second virtual item, the terminal displays the second virtual item in a selected state on the user interface, and displays the first virtual item in a deselected state on the user interface.
[0155] For example, when the user performs a second selection operation on the second virtual item on the touch screen, or when the user performs a second selection operation on the second virtual item using a mouse on a computer, the second virtual item in a selected state and the first virtual item in a deselected state are displayed on the user interface.
[0156] Exemplarily, the second selection operation includes at least one of a long press, a single click, a double click, a sliding operation, and a circle operation, which is not limited in this embodiment of the present application.
[0157] For example, the second virtual item displaying the selected state may be represented by at least one of the following: the second virtual item being highlighted, and a selected label being displayed on the second virtual item, which is not limited in this embodiment of the present application.
[0158] Step 708: Displaying a multi-level function button when the first virtual item and the fourth virtual item satisfy a first action relationship and the fourth virtual item and the second virtual item satisfy a second action relationship.
[0159] When a first interaction relationship is satisfied between the first virtual item and the fourth virtual item, and a second interaction relationship is satisfied between the fourth virtual item and the second virtual item, a multi-level function button is displayed on the user interface. The first interaction relationship is a directional interaction relationship between the first virtual item and the fourth virtual item; the second interaction relationship is a directional interaction relationship between the fourth virtual item and the second virtual item.
[0160] For example, Figure 8 As shown. The user interface displays an equipped area 801 and a warehouse area 802. Virtual items can be placed in the equipped area 801 or the warehouse area 802. In this embodiment of the present application, the equipped area 801 is used to place the second virtual item (virtual gun 804), and the warehouse area 802 is used to place the first virtual item (virtual magazine 803) and the fourth virtual item (virtual adapter 806). The user selects the virtual magazine 803 in the warehouse area 802 through a first selection operation, and the virtual magazine 803 becomes selected; then, the user selects the virtual gun 804 in the equipped area 801 through a second selection operation, and the virtual gun 804 becomes selected, and the virtual magazine 803 is deselected; when the first action relationship is satisfied between the virtual magazine 803 and the virtual adapter 806, and the second action relationship is satisfied between the virtual adapter 806 and the virtual gun 804, a multi-level function button 805 is displayed on the user interface.
[0161] For example, the user clicks on the virtual magazine 803, and then clicks on the virtual gun 804. When there is an assembly relationship between the virtual magazine 803 and the virtual adapter 806, and there is also an assembly relationship between the virtual adapter 806 and the virtual gun 804, a multi-level function button 805 is displayed on the user interface.
[0162] Step 710: In response to the triggering operation of the multi-level function button, display the multi-level effect results of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item.
[0163] In one possible implementation, in response to a triggering operation on a multi-level function button, the terminal purchases the fourth virtual item if the virtual character does not own the fourth virtual item, and after the purchase is successful, displays the multi-level effect results of the first virtual item acting on the fourth virtual item, and the fourth virtual item acting on the second virtual item.
[0164] For example, the user selects the first virtual item through the first selection operation, selects the second virtual item through the second selection operation, and when the virtual character does not own the fourth virtual item, the other props button and the multi-level function button are displayed. The user triggers the other props button, and the purchase interface is displayed on the user interface, such as Figure 9 As shown, after successfully purchasing the fourth virtual item, the user triggers the multi-level function button, and the user interface displays the multi-level effect results of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item.
[0165] For example, the user selects the first virtual item through the first selection operation, selects the second virtual item through the second selection operation, and if the virtual character does not own the fourth virtual item, a prompt information label and a multi-level function button are displayed. The user triggers the multi-level function button, and the user interface displays a purchase interface, such as Figure 10 As shown, after successfully purchasing the fourth virtual item, the user interface displays the multi-level effect of the first virtual item on the fourth virtual item and the effect of the fourth virtual item on the second virtual item. The prompt information label is used to prompt that the virtual character does not own the fourth virtual item.
[0166] In one possible implementation, in response to a triggering operation on a multi-level function button, when the virtual character possesses a fourth virtual item, multi-level action results of the first virtual item acting on the fourth virtual item, and then the fourth virtual item acting on the second virtual item, are displayed.
[0167] For example, a user selects a first virtual item through a first selection operation and a second virtual item through a second selection operation. If the avatar already possesses a fourth virtual item, an item label and a multi-level function button are displayed. The user triggers the multi-level function button, and the user interface displays the multi-level effects of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item. The item label indicates that the avatar possesses the fourth virtual item.
[0168] For example, Figure 8 As shown, a first functional relationship exists between the virtual magazine 803 and the virtual adapter 806, and a second functional relationship exists between the virtual adapter 806 and the virtual gun 804. By triggering the multi-level function button 805, the user can simultaneously attach the virtual magazine 803 to the virtual adapter 806 and the virtual gun 804.
[0169] For example, there is a three-level association relationship between the virtual magazine and the virtual gun, that is, there is an assembly relationship between the virtual magazine and the virtual adapter, and there is an assembly relationship between the virtual adapter and the virtual gun. After the user clicks on the virtual magazine in the user interface, and then clicks on the virtual gun in the user interface, multi-level function buttons and prop labels are displayed on the user interface. By triggering the multi-level function buttons, the user can assemble the virtual magazine to the virtual adapter and assemble the virtual adapter to the virtual gun at the same time.
[0170] In summary, the method provided in this embodiment displays a user interface, selects a first virtual item through a first selection operation, and selects a second virtual item through a second selection operation. When a multi-level interaction relationship is satisfied between the first virtual item and the second virtual item, that is, when a first interaction relationship is satisfied between the first virtual item and the fourth virtual item, and a second interaction relationship is satisfied between the fourth virtual item and the second virtual item, a multi-level function button is added to the user interface. By triggering the multi-level function button, the user displays the multi-level interaction results of the first virtual item acting on the fourth virtual item, and then the fourth virtual item acting on the second virtual item, on the user interface. This embodiment of the present application can quickly and accurately implement directional interactions between multiple virtual items by triggering the function buttons, thereby improving the user experience.
[0171] Figure 11 This is a flowchart of a human-computer interaction method for virtual items provided by an exemplary embodiment of the present application. Figure 2 The method is executed by a terminal in the system shown or by a client on the terminal. The method includes:
[0172] Step 1101: Start.
[0173] Step 1102: Select a first virtual item.
[0174] The virtual environment is the environment in which a virtual character exists in the virtual world while an application is running on a terminal. Virtual items are items owned by the virtual character in the virtual world. In response to a user's first selection operation on a first virtual item, the terminal displays the first virtual item in a selected state on a user interface.
[0175] Step 1103: Select a second virtual item.
[0176] The second virtual item is an item owned by the virtual character in the virtual world. In response to the user's second selection operation on the second virtual item, the terminal displays the second virtual item in a selected state on the user interface and displays the first virtual item in a deselected state on the user interface.
[0177] Step 1104: Determine whether the first virtual item and the second virtual item satisfy an action relationship.
[0178] Exemplarily, it is determined whether the first virtual item and the second virtual item satisfy an action relationship, that is, whether the first virtual item and the second virtual item satisfy a directional action relationship. If the first virtual item and the second virtual item satisfy the directional action relationship, step 1105 is executed; if the first virtual item and the second virtual item do not satisfy the directional action relationship, step 1108 is executed.
[0179] Step 1105: Display function buttons.
[0180] Exemplarily, when the action relationship is satisfied between the first virtual item and the second virtual item, a function button is displayed on the user interface.
[0181] Step 1106: Whether to trigger the function button.
[0182] Exemplarily, it is determined whether the user triggers the function button. If the user triggers the function button, step 1107 is executed; if the user does not trigger the function button, step 1108 is executed.
[0183] Step 1107: The first virtual item acts on the second virtual item.
[0184] For example, if the user triggers the function button, the result of the first virtual item acting on the second virtual item is displayed on the user interface.
[0185] Step 1108: Whether to operate the second virtual item.
[0186] For example, after the function button is displayed on the user interface, if the user chooses not to trigger the function button, it is further determined whether the user performs other operations on the second virtual item. If the user performs other operations on the second virtual item, step 1109 is executed; if the user does not perform other operations on the second virtual item, step 1110 is executed.
[0187] Step 1109: Execute the operation.
[0188] For example, if the user chooses not to trigger the function button, the terminal can further perform other operations on the second virtual item, and the other operations include at least one of unloading the firearm and switching between the primary and standby modes, which are not limited in this application.
[0189] Step 1110: Waiting for operation.
[0190] Exemplarily, when the user chooses not to trigger the multi-level function button and does not perform other operations on the second virtual item, the operation is waited for.
[0191] Step 1111: End.
[0192] Figure 12 A schematic diagram of a human-computer interaction device for virtual items provided by an exemplary embodiment of the present application is shown. The device can be implemented as all or part of a computer device through software, hardware, or a combination of both. The device includes:
[0193] The display module 1201 is configured to display a user interface, wherein the user interface includes a first virtual item and a second virtual item owned by the virtual character;
[0194] The human-computer interaction module 1202 is configured to display the first virtual item in a selected state in response to a first selection operation on the first virtual item;
[0195] The human-computer interaction module 1202 is further configured to, in response to a second selection operation on the second virtual item, display the second virtual item in a selected state and the first virtual item in a deselected state;
[0196] The display module 1201 is further configured to display a function button when the first virtual item and the second virtual item satisfy an action relationship;
[0197] The human-computer interaction module 1202 is further configured to display the result of the first virtual item acting on the second virtual item in response to a triggering operation on the function button.
[0198] The display module 1201 is further configured to display the function button when a directional action relationship is satisfied between the first virtual item and the second virtual item;
[0199] The directional interaction relationship refers to a directional interaction relationship between the first virtual item and the second virtual item.
[0200] The directional action relationship includes at least one of the following relationships:
[0201] The first virtual item is a slave item, the second virtual item is a master item, and the slave item and the master item have a master-slave assembly relationship;
[0202] The first virtual item is a contained item, and the second virtual item is a container item. The contained item and the container item have a size-containment relationship.
[0203] The display module 1201 is further configured to display n function buttons corresponding to n directional action relationships when n directional action relationships are satisfied between the first virtual item and the second virtual item, where n is an integer greater than 1.
[0204] The human-computer interaction module 1202 is further configured to, in response to a triggering operation on an i-th function button among the n function buttons, display an action result of the first virtual item acting on the second virtual item based on the i-th directional action relationship, where i is an integer not greater than n.
[0205] The human-computer interaction module 1202 is further configured to cancel display of the function button in response to a third selection operation on the third virtual item;
[0206] Or, in response to the time period during which the function button is not triggered reaching a threshold, the function button is canceled from being displayed.
[0207] The display module 1201 is further configured to display a multi-level function button when the first virtual item and the fourth virtual item satisfy a first interaction relationship, and the fourth virtual item and the second virtual item satisfy a second interaction relationship;
[0208] The human-computer interaction module 1202 is further configured to display, in response to a triggering operation on the multi-level function button, multi-level effect results of the first virtual item acting on the second virtual item and the fourth virtual item acting on the second virtual item.
[0209] The human-computer interaction module 1202 is further configured to, in response to a triggering operation on the multi-level function button and if the virtual character does not own the fourth virtual item, purchase the fourth virtual item, and, after the purchase is successful, display the multi-level effects of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item.
[0210] The human-computer interaction module 1202 is further configured to, in response to a triggering operation on the multi-level function button and when the virtual character possesses the fourth virtual item, display a multi-level effect of the first virtual item acting on the fourth virtual item, and then of the fourth virtual item acting on the second virtual item.
[0211] The display module 1201 is configured to display a user interface having an equipment area and a warehouse area, wherein the equipment area displays the second virtual item, and the warehouse area displays the first virtual item.
[0212] Display module 1201, configured to display a user interface having the equipped area and the warehouse area, wherein the equipped area can be divided into at least two two-dimensional grids, the second virtual item occupies at least one two-dimensional grid in the equipped area, and the warehouse area can be divided into at least two two-dimensional grids, the first virtual item occupies at least one two-dimensional grid in the warehouse area;
[0213] The warehouse area is used to store unequipped virtual items owned by the virtual character; the equipped area is used to store the virtual items equipped by the virtual character; and the two-dimensional grid is used to represent the minimum storage space for the virtual items.
[0214] The human-computer interaction module 1202 is further configured to update and display the virtual items displayed in the warehouse area in response to a sliding operation on the warehouse area.
[0215] The human-computer interaction module 1202 is configured to display the second virtual item assembled with the first virtual item in response to a triggering operation on the function button and in response to the master-slave assembly relationship being satisfied.
[0216] The human-computer interaction module 1202 is configured to display the second virtual item containing the first virtual item in response to a triggering operation on the function button and in response to the size-accommodation relationship being satisfied.
[0217] Figure 13 The following is a block diagram of a computer device 1300 according to an exemplary embodiment of the present application. Computer device 1300 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), or MP4 player (Moving Picture Experts Group Audio Layer IV). Computer device 1300 may also be referred to as user equipment, portable terminal, or other similar names.
[0218] Typically, the computer device 1300 includes a processor 1301 and a memory 1302 .
[0219] The processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1301 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 CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1301 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0220] The memory 1302 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1302 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 the memory 1302 is used to store at least one instruction, which is executed by the processor 1301 to implement the display method of the virtual environment screen provided in the embodiment of the present application.
[0221] In some embodiments, the computer device 1300 may further include a peripheral device interface 1303 and at least one peripheral device. Specifically, the peripheral device may include at least one of a radio frequency circuit 1304 , a touch screen display 1305 , a camera 1306 , an audio circuit 1307 , a positioning component 1308 , and a power supply 1309 .
[0222] The peripheral device interface 1303 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1301 and the memory 1302. In some embodiments, the processor 1301, the memory 1302, and the peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0223] The RF circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1304 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the RF circuit 1304 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1304 can communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1304 may also include circuitry related to Near Field Communication (NFC), which is not limited in this application.
[0224] The touchscreen display 1305 is used to display a user interface (UI). This UI can include graphics, text, icons, videos, or any combination thereof. The touchscreen display 1305 is also capable of collecting touch signals on or above the surface of the touchscreen display 1305. These touch signals can be input as control signals to the processor 1301 for processing. The touchscreen display 1305 is used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there can be a single touchscreen display 1305, located on the front panel of the computer device 1300. In other embodiments, there can be at least two touchscreen displays 1305, located on different surfaces of the computer device 1300 or in a foldable design. In some embodiments, the touchscreen display 1305 can be a flexible display, located on a curved or foldable surface of the computer device 1300. Furthermore, the touchscreen display 1305 can be configured as a non-rectangular, irregular shape, also known as a special-shaped screen. The touchscreen display 1305 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0225] The camera assembly 1306 is used to capture images or videos. Optionally, the camera assembly 1306 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize photo or video shooting. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function. In some embodiments, the camera assembly 1306 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0226] The audio circuit 1307 is used to provide an audio interface between the user and the computer device 1300. The audio circuit 1307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1301 for processing, or input into the radio frequency circuit 1304 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, multiple microphones may be provided, respectively, located in different parts of the computer device 1300. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuit 1304 into sound waves. The speaker may be a traditional thin-film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1307 may also include a headphone jack.
[0227] The positioning component 1308 is used to locate the current geographic location of the computer device 1300 to implement navigation or LBS (Location Based Service). The positioning component 1308 can be a positioning component of the GPS (Global Positioning System), Beidou system or Galileo system.
[0228] Power supply 1309 is used to power various components in computer device 1300. Power supply 1309 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1309 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired line, while a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0229] In some embodiments, the computer device 1300 further includes one or more sensors 1310 , including but not limited to an acceleration sensor 1311 , a gyroscope sensor 1312 , a pressure sensor 1313 , a fingerprint sensor 1314 , an optical sensor 1315 , and a proximity sensor 1316 .
[0230] The accelerometer 1311 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the computer device 1300. For example, the accelerometer 1311 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 1301 can control the touch screen display 1305 to display the user interface in a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 1311. The accelerometer 1311 can also be used to collect game or user motion data.
[0231] The gyroscope sensor 1312 can detect the orientation and rotation angle of the computer device 1300. It can also work with the accelerometer 1311 to collect 3D motions of the user on the computer device 1300. Based on the data collected by the gyroscope sensor 1312, the processor 1301 can implement the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0232] The pressure sensor 1313 can be installed on the side frame of the computer device 1300 and / or below the touch screen display 1305. When the pressure sensor 1313 is installed on the side frame of the computer device 1300, it can detect the user's grip signal of the computer device 1300 and perform left-hand recognition or shortcut operations based on the grip signal. When the pressure sensor 1313 is installed below the touch screen display 1305, it can control the operational controls on the UI interface based on the user's pressure operation on the touch screen display 1305. The operational controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0233] Fingerprint sensor 1314 is used to collect the user's fingerprint and identify the user based on the collected fingerprint. When the user's identity is recognized as a trusted identity, processor 1301 authorizes the user to perform relevant sensitive operations, such as unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. Fingerprint sensor 1314 can be located on the front, back, or side of computer device 1300. If physical buttons or manufacturer logos are provided on computer device 1300, fingerprint sensor 1314 can be integrated with the physical buttons or manufacturer logos.
[0234] Optical sensor 1315 is used to detect ambient light intensity. In one embodiment, processor 1301 can control the display brightness of touchscreen display 1305 based on the ambient light intensity detected by optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of touchscreen display 1305 is increased; when the ambient light intensity is low, the display brightness of touchscreen display 1305 is decreased. In another embodiment, processor 1301 can also dynamically adjust the shooting parameters of camera assembly 1306 based on the ambient light intensity detected by optical sensor 1315.
[0235] Proximity sensor 1316, also known as a distance sensor, is typically located on the front of computer device 1300. Proximity sensor 1316 is used to detect the distance between the user and the front of computer device 1300. In one embodiment, when proximity sensor 1316 detects that the distance between the user and the front of computer device 1300 is gradually decreasing, processor 1301 controls touchscreen display 1305 to switch from the screen-on state to the screen-off state. When proximity sensor 1316 detects that the distance between the user and the front of computer device 1300 is gradually increasing, processor 1301 controls touchscreen display 1305 to switch from the screen-off state to the screen-on state.
[0236] Those skilled in the art will understand that Figure 13 The structure shown in the figure does not constitute a limitation on the computer device 1300, and the computer device 1300 may include more or fewer components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0237] An embodiment of the present application also provides a computer device, which includes: a processor and a memory, wherein the memory stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the human-computer interaction method for virtual items provided by the above-mentioned method embodiments.
[0238] An embodiment of the present application further provides a computer storage medium, wherein the computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to implement the human-computer interaction method for virtual items provided by the above-mentioned method embodiments.
[0239] An embodiment of the present application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium; the computer instructions are read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the human-computer interaction method for virtual items provided by the above-mentioned method embodiments.
[0240] It should be understood that the term "plurality" used herein refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.
[0241] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0242] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switches, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A human-computer interaction method for virtual items, characterized in that: The method comprises: displaying a user interface, wherein the user interface includes a first virtual item, a second virtual item, and a fourth virtual item owned by the virtual character; In response to a first selection operation on the first virtual item, displaying the first virtual item in a selected state; In response to a second selection operation on the second virtual item, displaying the second virtual item in a selected state; displaying a multi-level function button when the first virtual item and the fourth virtual item satisfy a first interaction relationship, and the fourth virtual item and the second virtual item satisfy a second interaction relationship; In response to the triggering operation of the multi-level function button, multi-level effect results of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item are displayed.
2. The method according to claim 1, characterized in that The displaying, in response to the triggering operation of the multi-level function button, of the multi-level effect of the first virtual item on the fourth virtual item and the multi-level effect of the fourth virtual item on the second virtual item comprises: In response to a triggering operation on the multi-level function button, if the virtual character does not own the fourth virtual item, the fourth virtual item is purchased, and after the purchase is successful, multi-level effect results of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item are displayed.
3. The method according to claim 2, characterized in that The method purchases the fourth virtual item in response to a triggering operation on the multi-level function button and, if the virtual character does not own the fourth virtual item, displays multi-level effects of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item after the purchase is successful, including: In response to a triggering operation on the multi-level function button, if the virtual character does not possess the fourth virtual item, displaying other item buttons and the multi-level function button; In response to a triggering operation on the other item button, displaying a purchase interface superimposed on the user interface, wherein the purchase interface is used to purchase the fourth virtual item; After the purchase is successful, the multi-level effect results of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item are displayed.
4. The method according to claim 1, wherein The displaying, in response to the triggering operation of the multi-level function button, of the multi-level effect of the first virtual item on the fourth virtual item and the multi-level effect of the fourth virtual item on the second virtual item comprises: In response to a triggering operation on the multi-level function button, and when the virtual character possesses the fourth virtual item, multi-level effect results of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item are displayed.
5. The method according to any one of claims 1 to 4, characterized in that: The display user interface includes: A user interface having an equipped area and a warehouse area is displayed, wherein the equipped area displays the second virtual item and the warehouse area displays the first virtual item.
6. The method according to claim 5, characterized in that The user interface having an equipped area and a warehouse area, wherein the equipped area displays the second virtual item and the warehouse area displays the first virtual item, includes: Displaying a user interface having the equipped area and the warehouse area, wherein the equipped area can be divided into at least two two-dimensional grids, the second virtual item occupies at least one two-dimensional grid in the equipped area, and the warehouse area can be divided into at least two two-dimensional grids, the first virtual item occupies at least one two-dimensional grid in the warehouse area; The warehouse area is used to store unequipped virtual items owned by the virtual character; the equipped area is used to store the virtual items equipped by the virtual character; and the two-dimensional grid is used to represent the minimum storage space for the virtual items.
7. The method according to claim 6, characterized in that The method further comprises: In response to a sliding operation on the warehouse area, the virtual items displayed in the warehouse area are updated and displayed.
8. A human-computer interaction method for virtual items, characterized in that: The method comprises: Displaying a user interface, the user interface including a first virtual item and a second virtual item owned by the virtual character, the first virtual item being a contained item and the second virtual item being a contained item; In response to a first selection operation on the first virtual item, displaying the first virtual item in a selected state; In response to a second selection operation on the second virtual item, displaying the second virtual item in a selected state; When the first virtual item and the second virtual item have a size accommodation relationship, displaying a function button; In response to the triggering operation of the function button and the satisfaction of the size accommodation relationship, the second virtual item accommodating the first virtual item is obtained.
9. The method according to claim 8, characterized in that The displaying of a function button when the first virtual item and the second virtual item have a size accommodation relationship includes: In a case where the first virtual item and the second virtual item have the size accommodation relationship, sequentially selecting the first virtual item and the second virtual item to display the function button; The function button is used to indicate that the first virtual item can be accommodated in the second virtual item.
10. The method according to claim 9, characterized in that The first virtual item is a virtual grenade, which is the contained item; the second virtual item is the virtual backpack, which is the contained item; When the first virtual item and the second virtual item have the size accommodation relationship, sequentially selecting the first virtual item and the second virtual item and displaying the function button includes: In the case where the virtual grenade and the virtual backpack have the size accommodation relationship, the virtual grenade and the virtual backpack are selected in sequence to display the function button.
11. A human-computer interaction device for virtual items, characterized in that: The device comprises: A display module, configured to display a user interface, wherein the user interface includes a first virtual item, a second virtual item, and a fourth virtual item owned by the virtual character; a human-computer interaction module, configured to display the first virtual item in a selected state in response to a first selection operation on the first virtual item; The human-computer interaction module is further configured to display the second virtual item in a selected state in response to a second selection operation on the second virtual item; The display module is further configured to display a multi-level function button when the first virtual item and the fourth virtual item satisfy a first interaction relationship, and the fourth virtual item and the second virtual item satisfy a second interaction relationship; The human-computer interaction module is further configured to display, in response to a triggering operation on the multi-level function button, multi-level action results of the first virtual item acting on the fourth virtual item and the fourth virtual item acting on the second virtual item.
12. A human-computer interaction device for virtual items, characterized in that: The method comprises: A display module, configured to display a user interface, wherein the user interface includes a first virtual item and a second virtual item owned by the virtual character, wherein the first virtual item is a contained item and the second virtual item is a containing item; a human-computer interaction module, configured to display the first virtual item in a selected state in response to a first selection operation on the first virtual item; The human-computer interaction module is further configured to display the second virtual item in a selected state in response to a second selection operation on the second virtual item; The display module is further configured to display a function button when the first virtual item and the second virtual item have a size accommodation relationship; The human-computer interaction module is further configured to obtain the second virtual item that accommodates the first virtual item in response to a triggering operation on the function button and satisfying the size accommodation relationship.
13. A computer device, characterized in that: The computer device includes: a processor and a memory, wherein at least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the human-computer interaction method for virtual items according to any one of claims 1 to 7, or the human-computer interaction method for virtual items according to any one of claims 8 to 10.
14. A computer storage medium, characterized in that The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is loaded and executed by the processor to implement the human-computer interaction method for virtual items according to any one of claims 1 to 7, or the human-computer interaction method for virtual items according to any one of claims 8 to 10.
15. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; the computer instructions are read and executed by a processor of a computer device from the computer-readable storage medium, so that the computer device executes the human-computer interaction method for virtual items according to any one of claims 1 to 7, or the human-computer interaction method for virtual items according to any one of claims 8 to 10.