CN113546425A - Method, device, terminal and storage medium for processing virtual article in game - Google Patents

Method, device, terminal and storage medium for processing virtual article in game Download PDF

Info

Publication number
CN113546425A
CN113546425A CN202110852618.0A CN202110852618A CN113546425A CN 113546425 A CN113546425 A CN 113546425A CN 202110852618 A CN202110852618 A CN 202110852618A CN 113546425 A CN113546425 A CN 113546425A
Authority
CN
China
Prior art keywords
virtual
target
item
game
article
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110852618.0A
Other languages
Chinese (zh)
Other versions
CN113546425B (en
Inventor
林�智
胡志鹏
程龙
刘勇成
袁思思
罗书翰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110852618.0A priority Critical patent/CN113546425B/en
Publication of CN113546425A publication Critical patent/CN113546425A/en
Application granted granted Critical
Publication of CN113546425B publication Critical patent/CN113546425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/58Controlling game characters or game objects based on the game progress by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method, a device, a terminal and a storage medium for processing virtual articles in a game; the method for processing the virtual article in the game comprises the following steps: if the cleaning triggering condition of the virtual backpack of the virtual object in the target game is met, determining the recommended discarded target virtual object in the virtual backpack based on the item information of the virtual object in the virtual backpack and the current game state of the virtual object; displaying the identification information of the target virtual article on a game interface of the target game; in response to a trigger operation on target identification information in the identification information of the target virtual item, removing the target virtual item corresponding to the target identification information from the virtual backpack. According to the embodiment of the invention, by displaying the recommended target virtual article in the virtual backpack, the operation complexity of discarding the virtual article can be reduced, and the discarding convenience and discarding speed of the virtual article can be improved.

Description

Method, device, terminal and storage medium for processing virtual article in game
Technical Field
The invention relates to the technical field of games, in particular to a method, a device, a terminal and a computer readable storage medium for processing virtual articles in games.
Background
Currently, in many games, a player can acquire virtual items such as items in a game scene in a picking up and fighting manner, and can also place the acquired virtual items in a backpack.
However, if the backpack is fully loaded, it is not possible to continue loading more virtual items. If the player wants to discard the acquired virtual article, on one hand, the player needs to open the backpack and then discard the backpack; on the other hand, when the backpack is fully loaded, a large number of virtual articles need to be displayed in a tiled manner, and the virtual articles need to be discarded and are difficult to focus quickly.
Therefore, the whole operation process of discarding the virtual articles in the game is low in convenience degree and low in discarding speed.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a terminal and a computer readable storage medium for processing a virtual article in a game, which can reduce the operation complexity of discarding the virtual article and improve the discarding convenience and discarding speed of the virtual article.
In a first aspect, an embodiment of the present invention provides a method for processing a virtual article in a game, including:
if the cleaning triggering condition of the virtual backpack of the virtual object in the target game is met, determining the recommended discarded target virtual object in the virtual backpack based on the item information of the virtual object in the virtual backpack and the current game state of the virtual object;
displaying the identification information of the target virtual article on a game interface of the target game;
in response to a trigger operation on target identification information in the identification information of the target virtual item, removing the target virtual item corresponding to the target identification information from the virtual backpack.
In some embodiments of the present application, the determining a target virtual item recommended to be discarded in the virtual backpack based on the item information of the virtual item in the virtual backpack and the current game state of the virtual object includes:
determining a matching virtual item for the virtual object based on a current game state of the virtual object in the target game;
acquiring the article information of the matched virtual article;
determining a non-matching virtual item in the virtual backpack as a target virtual item recommended to be discarded in the virtual backpack based on the item information of the virtual item in the virtual backpack and the item information of the matching virtual item.
In some embodiments of the present application, the determining a target virtual item recommended to be discarded in the virtual backpack based on the item information of the virtual item in the virtual backpack and the current game state of the virtual object includes:
determining the demand of the virtual object for various types of virtual articles based on the current game state of the virtual object in the target game;
determining the redundancy of various virtual articles in the virtual backpack based on the article information of the virtual articles in the virtual backpack and the demand of the virtual object on various virtual articles;
and determining target virtual articles recommended to be discarded in the virtual backpack based on the redundancy of various types of virtual articles in the virtual backpack.
In some embodiments of the present application, the displaying, at a game interface of the target game, identification information of the target virtual item includes:
responding to the picking operation of the object to be picked in the target game, and displaying the identification information of the target virtual object on a game interface of the target game;
the removing the target virtual article corresponding to the target identification information from the virtual backpack in response to the triggering operation on the target identification information in the identification information of the target virtual article further comprises:
and storing the to-be-picked items in the virtual backpack.
In some embodiments of the present application, the removing, in response to a trigger operation on target identification information in the identification information of the target virtual item, the target virtual item corresponding to the target identification information from the virtual backpack further includes:
in response to the dragging operation of the identification information of the object to be picked up in the target game, controlling the identification information of the object to be picked up to move to the identification information of the target virtual object;
and when the identification information of the to-be-picked item moves to the target identification information in the identification information of the target virtual item, forming a trigger operation on the target identification information in the identification information of the target virtual item.
In some embodiments of the present application, the displaying, at a game interface of the target game, identification information of the target virtual item further includes:
determining the item demand of the virtual object for the target virtual item based on the current game state of the virtual object in the target game;
acquiring the accumulated amount of the target virtual article in the virtual backpack;
determining a recommended discard amount of the target virtual item according to the accumulated amount and the item demand amount;
the displaying the identification information of the target virtual article on the game interface of the target game comprises:
and displaying the identification information of the target virtual item and the recommended discarding amount of the target virtual item on a game interface of the target game.
In some embodiments of the present application, the target virtual article includes a plurality of virtual articles, and the displaying the identification information of the target virtual article on the game interface of the target game further includes:
determining a display order of each of the target virtual articles based on article information of each of the target virtual articles;
the displaying the identification information of the target virtual article on the game interface of the target game comprises:
and displaying the identification information of each target virtual article on a game interface of the target game according to the display sequence.
In some embodiments of the present application, the determining the display order of each of the target virtual articles based on the article information of each of the target virtual articles includes:
acquiring the occupied space of each target virtual article based on the article information of each target virtual article;
and determining the display sequence of each target virtual article according to the occupied space of each target virtual article.
In some embodiments of the present application, the determining the display order of each of the target virtual articles based on the article information of each of the target virtual articles includes:
determining the article redundancy of the virtual object to each target virtual article based on the current game state of the virtual object in the target game and the article information of each target virtual article;
and determining the display sequence of each target virtual article according to the article redundancy of each target virtual article.
In some embodiments of the present application, if a condition for triggering to clean a virtual backpack of a virtual object in a target game is met, determining a target virtual item recommended to be discarded in the virtual backpack based on item information of the virtual item in the virtual backpack and a current game state of the virtual object, before further including:
detecting the residual storage space of a virtual backpack of a virtual object in a target game;
and when the residual storage space does not accord with the preset storage condition, determining a cleaning triggering condition of the virtual backpack which accords with the virtual object in the target game.
In a second aspect, an embodiment of the present application further provides an apparatus for processing a virtual object in a game, including:
the determining unit is used for determining a target virtual item recommended to be discarded in the virtual backpack based on the item information of the virtual item in the virtual backpack and the current game state of the virtual object if the cleaning triggering condition of the virtual backpack of the virtual object in the target game is met;
the display unit is used for displaying the identification information of the target virtual article on a game interface of the target game;
the processing unit is used for responding to a trigger operation of target identification information in the identification information of the target virtual article, and removing the target virtual article corresponding to the target identification information from the virtual backpack.
In some embodiments of the present application, the determining unit is specifically configured to:
determining a matching virtual item for the virtual object based on a current game state of the virtual object in the target game;
acquiring the article information of the matched virtual article;
determining a non-matching virtual item in the virtual backpack as a target virtual item recommended to be discarded in the virtual backpack based on the item information of the virtual item in the virtual backpack and the item information of the matching virtual item.
In some embodiments of the present application, the determining unit is specifically configured to:
determining the demand of the virtual object for various types of virtual articles based on the current game state of the virtual object in the target game;
determining the redundancy of various virtual articles in the virtual backpack based on the article information of the virtual articles in the virtual backpack and the demand of the virtual object on various virtual articles;
and determining target virtual articles recommended to be discarded in the virtual backpack based on the redundancy of various types of virtual articles in the virtual backpack.
In some embodiments of the present application, the display unit is specifically configured to:
responding to the picking operation of the object to be picked in the target game, and displaying the identification information of the target virtual object on a game interface of the target game;
in some embodiments of the present application, after the step of removing, in response to a trigger operation on target identification information in the identification information of the target virtual item, the target virtual item corresponding to the target identification information from the virtual backpack, the processing unit is specifically configured to:
and storing the to-be-picked items in the virtual backpack.
In some embodiments of the present application, the in-game virtual item processing apparatus further includes a detection unit, before the step of removing, in response to a trigger operation on target identification information in the identification information of the target virtual item, the target virtual item corresponding to the target identification information from the virtual backpack, the detection unit is specifically configured to:
in response to the dragging operation of the identification information of the object to be picked up in the target game, controlling the identification information of the object to be picked up to move to the identification information of the target virtual object;
and when the identification information of the to-be-picked item moves to the target identification information in the identification information of the target virtual item, forming a trigger operation on the target identification information in the identification information of the target virtual item.
In some embodiments of the present application, the display unit is specifically configured to:
determining the item demand of the virtual object for the target virtual item based on the current game state of the virtual object in the target game;
acquiring the accumulated amount of the target virtual article in the virtual backpack;
determining a recommended discard amount of the target virtual item according to the accumulated amount and the item demand amount;
and displaying the identification information of the target virtual item and the recommended discarding amount of the target virtual item on a game interface of the target game.
In some embodiments of the present application, the display unit is specifically configured to:
determining a display order of each of the target virtual articles based on article information of each of the target virtual articles;
and displaying the identification information of each target virtual article on a game interface of the target game according to the display sequence.
In some embodiments of the present application, the display unit is specifically configured to:
acquiring the occupied space of each target virtual article based on the article information of each target virtual article;
and determining the display sequence of each target virtual article according to the occupied space of each target virtual article.
In some embodiments of the present application, the display unit is specifically configured to:
determining the article redundancy of the virtual object to each target virtual article based on the current game state of the virtual object in the target game and the article information of each target virtual article;
and determining the display sequence of each target virtual article according to the article redundancy of each target virtual article.
In some embodiments of the application, before the step of determining, based on the item information of the virtual item in the virtual backpack and the current game state of the virtual object, a target virtual item recommended to be discarded in the virtual backpack if the cleaning trigger condition of the virtual backpack of the virtual object in the target game is met, the determining unit is specifically configured to:
detecting the residual storage space of a virtual backpack of a virtual object in a target game;
and when the residual storage space does not accord with the preset storage condition, determining a cleaning triggering condition of the virtual backpack which accords with the virtual object in the target game.
In a third aspect, an embodiment of the present application further provides a terminal, including a memory storing a plurality of instructions; the processor loads instructions from the memory to execute the steps in any one of the methods for processing virtual articles in games provided by the embodiments of the present application.
In a fourth aspect, the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform steps in any one of the methods for processing a virtual item in a game provided by the present application.
The method comprises the steps that a target virtual item recommended to be discarded in the virtual backpack is determined based on item information of the virtual item in the virtual backpack and the current game state of the virtual object; displaying the recommended and discarded target virtual articles in the virtual backpack; on one hand, the recommended discarded target virtual article in the backpack is determined based on the current game state of the virtual object, so that the recommended discarded virtual article can be ensured to conform to the discarded virtual article prioritized by the user to a certain extent, the problems that more virtual articles exist in the backpack and the virtual discarded virtual article is difficult to focus on quickly are avoided, and the time for the user to search the virtual article to be discarded is further reduced. On the other hand, the identification information of the target virtual object can be automatically displayed on the game interface of the target game, so that the operation of manually opening the virtual backpack is avoided, the operation complexity of discarding the virtual object is reduced, the discarding speed of the virtual object is increased, and the convenience degree of the whole operation process of discarding the virtual object in the game is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of an embodiment of a method for processing a virtual object in a game according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a scenario in which identification information of a target virtual item is displayed on a game interface of a target game according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating discarding of a recommended target virtual item provided in an embodiment of the present application;
FIG. 4 is an illustrative diagram of a display target virtual article provided in an embodiment of the present application;
FIG. 5 is another illustrative diagram of a display target virtual article provided in an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an in-game virtual article processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method, a device, a terminal and a computer readable storage medium for processing virtual articles in a game.
The in-game virtual article processing apparatus may be specifically integrated in an electronic device, and the electronic device may be a terminal, a server, or other devices. The terminal can be a mobile phone, a tablet Computer, an intelligent bluetooth device, a notebook Computer, or a Personal Computer (PC), and the like; the server may be a single server or a server cluster composed of a plurality of servers.
In some embodiments, the in-game virtual article processing apparatus may also be integrated into a plurality of electronic devices, for example, the in-game virtual article processing apparatus may be integrated into a plurality of servers, and the in-game virtual article processing method of the present invention is implemented by the plurality of servers.
In some embodiments, the server may also be implemented in the form of a terminal, for example, a personal computer may be provided as the server to integrate the in-game virtual article processing device.
For example, the electronic device may be a mobile terminal, and the mobile terminal may determine, through a network, a target virtual item recommended to be discarded in a virtual backpack based on item information of a virtual item in the virtual backpack and a current game state of the virtual object when a cleaning trigger condition of the virtual backpack of the virtual object in a target game is met; displaying the identification information of the target virtual article on a game interface of the target game; in response to a trigger operation on target identification information in the identification information of the target virtual item, removing the target virtual item corresponding to the target identification information from the virtual backpack.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
In this embodiment, a method for processing a virtual item in a game is provided, and as shown in fig. 1, a specific flow of the method for processing a virtual item in a game may be as follows, in steps 101 to 103:
101. and if the condition is in line with the trigger condition for cleaning the virtual backpack of the virtual object in the target game, determining the recommended discarded target virtual object in the virtual backpack based on the item information of the virtual object in the virtual backpack and the current game state of the virtual object.
The virtual object may be a virtual character in a target game, for example, in a battle game, the virtual object may be a virtual character in the game.
In the embodiment of the present application, the virtual article may include a virtual decoration, a virtual weapon, a virtual tool, a virtual medicine, a virtual food, and the like. Wherein the virtual decoration may be, for example, clothes, shoes, hats, etc. of the virtual object, and the virtual weapon may be, for example, a gun, a bullet, a helmet, etc. Since the virtual items set in different games are different, the type and number of the virtual items in the embodiment of the present application are not particularly limited, and the type and number of the virtual items may be determined according to the virtual items set in the target game.
The item information of the virtual item may include information such as name, usage, category, occupied storage space, and quantity of the virtual item.
In this embodiment, the current game state of the virtual object may include a currently equipped virtual item, a currently unassembled virtual item, a currently used virtual item, a currently missing virtual item, a preset virtual item available at a current level, and the like of the virtual object.
The cleaning triggering condition may be set according to actual business scenario requirements, and for example, the cleaning triggering condition may be that an opening operation of a virtual backpack of a virtual object in a target game is detected, or a triggering operation of a cleaning control based on the virtual backpack is detected, or that a remaining storage space of the virtual backpack is smaller than a preset space threshold value is detected. For example, in some embodiments, before step 101, further comprising: detecting the residual storage space of a virtual backpack of a virtual object in a target game; when the residual storage space does not accord with the preset storage condition, determining a cleaning triggering condition of a virtual backpack which accords with a virtual object in a target game; and when the residual storage space meets the preset storage condition, determining that the cleaning triggering condition of the virtual backpack of the virtual object in the target game is not met. The preset storage condition may be that the remaining storage space of the virtual backpack is less than a preset space threshold.
In some embodiments, virtual items in the virtual backpack for which virtual objects are not available may be targeted for recommended discarding in the virtual backpack. At this time, step 101 may specifically include the following steps 1011A to 1013A:
1011A, determining a matching virtual item of the virtual object based on the current game state of the virtual object in the target game.
A matching virtual item refers to a virtual item available to the virtual object and a non-matching virtual item refers to a virtual item not available to the virtual object.
The matching virtual item of the virtual object may be a virtual item paired for use with a currently equipped virtual item of the virtual object, a virtual item currently in use, a currently missing virtual item, a preset virtual item available at a current level, and so on.
There are various ways to determine the matching virtual object of the virtual object in step 1011A, which exemplarily includes:
(1) in some embodiments, a virtual article paired with the currently equipped virtual article of the virtual object may be determined as a matching virtual article of the virtual object according to the currently equipped virtual article of the virtual object recorded by the background database.
For example, in a target game, a1 type virtual bullet and a2 type virtual bullet are used with a type 1 virtual gun, a3 type virtual bullet and a4 type virtual bullet are used with a type 2 virtual gun, and a virtual object in the target game is currently equipped with a virtual object of type 1 virtual gun, so that a1 type virtual bullet and a2 type virtual bullet can be used as matching virtual objects of the virtual object.
(2) In some embodiments, the currently equipped virtual item of the virtual object recorded by the background database may be used as the matching virtual item of the virtual object.
For example, if the currently outfitted virtual items of virtual objects in the target game include b1 type virtual shoes, a1 type virtual bullets, c1 type virtual helmets, then b1 type virtual shoes, a1 type virtual bullets, c1 type virtual helmets may be used as matching virtual items for the virtual objects.
(3) In some embodiments, the currently missing virtual item of the virtual object recorded by the background database may be taken as the matching virtual item of the virtual object.
For example, if the currently missing virtual item of the virtual object in the target game includes a d1 type virtual first aid kit, an e1 type virtual food item, then the d1 type virtual first aid kit, the e1 type virtual food item may be the matching virtual item of the virtual object.
(4) In some embodiments, the preset virtual article available for the current level of the virtual object recorded by the background database may be used as the matching virtual article of the virtual object.
For example, the preset virtual items available at the current level of virtual objects in the target game include: a1 type virtual bullet, a b1 type virtual shoe, a b2 type virtual shoe, a c1 type virtual helmet, a c2 type virtual helmet, a c3 type virtual helmet, a d1 type virtual first aid kit, a d2 type virtual first aid kit, a d3 type virtual first aid kit, a d4 type virtual first aid kit, an e1 type virtual food, and an e2 type virtual food, then preset virtual items available for the current level of virtual objects, a1 type virtual bullet, a b1 type virtual shoe, a b2 type virtual shoe, a c1 type virtual helmet, a c2 type virtual helmet, a c3 type virtual helmet, a d1 type virtual first aid kit, a d2 type virtual first aid kit, a d3 type virtual first aid kit, a d4 type virtual first aid kit, an e1 type virtual food, and an e2 type virtual food, are matched virtual items for the virtual objects.
The preset virtual objects may be set according to different virtual objects, which is only a non-example, and the types and the number of the preset virtual objects may be set according to the requirements of the actual service scene, which is not limited to this.
1012A, acquiring the item information of the matched virtual item.
1013A, determining non-matching virtual items in the virtual backpack as target virtual items recommended to be discarded in the virtual backpack based on the item information of the virtual items in the virtual backpack and the item information of the matching virtual items.
Wherein the non-matching virtual item refers to a virtual item for which the virtual object is not currently available.
The item information of all the matching virtual items of the virtual object, including but not limited to the name, purpose, category, occupied storage space, etc. of the matching virtual items, can be obtained through the above step 1012A.
Then, traversing each virtual article in the virtual backpack, and comparing the article information of the currently traversed virtual article in the virtual backpack with the article information of the matched virtual article to detect whether the article information of the currently traversed virtual article is matched with the article information of the matched virtual article of the virtual object. If the article information of the current traversal virtual article is matched with the article information of the virtual matching virtual article, determining that the current traversal virtual article is determined as the matching virtual article; and if the article information of the current traversal virtual article is not matched with the article information of the virtual matching virtual article, determining that the current traversal virtual article is determined to be a non-matching virtual article.
After the virtual articles in the virtual backpack are traversed, all the non-matching virtual articles in the virtual backpack can be determined, and at this time, all the non-matching virtual articles in the virtual backpack can be used as the recommended discarded target virtual articles in the virtual backpack.
The matching rule can be preset, and whether the article information of the currently traversed virtual article is matched with the article information of the matched virtual article of the virtual object or not is detected according to the preset matching rule. For example, if the preset matching rule is that the names of the virtual articles are consistent, it is determined whether the article information of the currently traversed virtual article is matched with the article information of the matched virtual article of the virtual object by comparing whether the name of the currently traversed virtual article is consistent with the name of the matched virtual article. For another example, the preset matching rule is that the name and the type of the virtual article are consistent, and whether the article information of the currently traversed virtual article is matched with the article information of the matched virtual article of the virtual object is determined by comparing whether the name of the currently traversed virtual article is completely consistent with the name and the type of the matched virtual article. Here, the preset matching rule is only an example, and may be specifically adjusted according to the actual service scenario requirement, and is not limited herein.
As can be seen from the above, a matching virtual item of the virtual object is determined according to the current game state of the virtual object in the target game; the matching virtual object based on the virtual object is used for finding out the non-matching virtual object of the virtual object from the virtual backpack as the recommended discarded target virtual object, so that the unavailable object of the virtual object is found out from the virtual backpack as the recommended discarded target virtual object, the recommended discarded virtual object is guaranteed to conform to the discarded virtual object which is preferred by a user to a certain extent, the problems that the number of virtual objects in the backpack is large and the virtual objects which need to be discarded are solved, the time for the user to search the virtual objects which need to be discarded is shortened, the discarding speed of the virtual objects is increased, and the convenience degree of the whole operation process of discarding the virtual objects in a game is increased.
In some embodiments, virtual items available but redundant to the virtual object in the virtual backpack may be targeted virtual items recommended for discarding in the virtual backpack. In this case, step 101 may specifically include the following steps 1011B to 1013B:
1011B, determining the demand of the virtual object for various types of virtual articles based on the current game state of the virtual object in the target game.
The current game state of the virtual object also comprises the current allocation amount of the virtual object to each category of virtual articles and the state attribute of the virtual object.
In step 1011B, there are various ways to determine the demand of the virtual object for each type of virtual item, which exemplarily includes:
(1) in some embodiments, the required amount of the virtual object for each category of virtual items may be calculated according to the current allocation amount of the virtual object for each category of virtual items recorded by the background database and the preset total amount of the virtual object for each category of virtual items that can be used simultaneously.
For example, the preset total amount of virtual bullets that can be used simultaneously in the target game is 10, and if the current allocation amount of virtual bullets of the virtual object is 8, it may be determined that the required amount of virtual bullets by the virtual object is 2.
(2) In some embodiments, the demand of the virtual object for each category of virtual item may be calculated according to the state attribute of the virtual object recorded by the background database.
Wherein the status attribute of the virtual object may be combat data (such as blood volume, skill, etc.) of the virtual object.
For example, in a battle type target game, the required blood volume of the virtual object is calculated according to the residual blood volume of the virtual object recorded by the background database and the preset maximum blood volume of the virtual object; and determining the required amount of the virtual object for the virtual goods of the blood replenishing class according to the required blood amount of the virtual object, the virtual goods (such as an emergency kit) for the blood replenishing class and the preset relation between the number of the virtual goods of the blood replenishing class and the blood amount.
For another example, in a battle-type target game, calculating the skill grade number capable of being improved of the virtual object according to the skill grade of the virtual object recorded by the background database and the preset highest skill grade of the virtual object; and determining the demand of the virtual object for the virtual articles of the skill level class according to the skill level number capable of being improved of the virtual object, the virtual articles (such as virtual medicines) for improving the skill level class and the preset relationship between the number of the virtual articles for improving the skill level class and the skill level.
1012B, based on the item information of the virtual items in the virtual backpack and the demand of various types of virtual items of the virtual object, determining the redundancy of various types of virtual items in the virtual backpack.
Wherein the redundancy of each category of virtual goods is used for indicating the storage amount of the category of virtual goods in the virtual backpack and the demand of the virtual object for the category of virtual goods. The redundancy of the various virtual items in the virtual backpack can be determined in a variety of ways, including, for example:
(1) the difference between the storage amount of each category of virtual goods in the virtual backpack and the demand amount of the virtual object for the category of virtual goods can be used as the redundancy of the category of virtual goods, as shown in the following formula (1). Thereby obtaining the redundancy of various virtual articles in the virtual backpack.
Ri=Ni-MiFormula (1)
Formula (1)In, RiRedundancy of virtual articles representing class i, NiAmount of storage in a virtual backpack, M, of virtual items representing class iiRepresenting the amount of demand of the virtual object for the virtual item of category i.
(2) The storage amount of each category of virtual article in the virtual backpack and the demand amount of the virtual object for the category of virtual article may be differentiated, and then the ratio between the difference and the demand amount of the virtual object for the category of virtual article is used as the redundancy of the category of virtual article, as shown in the following formula (2). Thereby obtaining the redundancy of various virtual articles in the virtual backpack.
Figure BDA0003183023720000131
In the formula (2), RiRedundancy of virtual articles representing class i, NiAmount of storage in a virtual backpack, M, of virtual items representing class iiRepresenting the amount of demand of the virtual object for the virtual item of category i.
1013B, based on the redundancy of the various virtual articles in the virtual backpack, determining the target virtual articles recommended to be discarded in the virtual backpack.
In some embodiments, the virtual item of the virtual backpack with the highest redundancy may be the target virtual item recommended for discarding in the virtual backpack.
In some embodiments, the virtual articles in the virtual backpack may be sorted from high to low according to the redundancy of the various virtual articles in the virtual backpack, so as to obtain the order of the various virtual articles in the virtual backpack; and taking the N types of virtual articles with the first N names as the recommended and discarded target virtual articles in the virtual backpack.
According to the content, the demand of the virtual object for various virtual articles is determined according to the current game state of the virtual object in the target game; the redundancy of various virtual articles in the virtual backpack is determined based on the demand of the virtual object for various virtual articles, so that the redundant virtual articles can be searched from the virtual backpack and used as the recommended discarded target virtual articles, and the recommended discarded virtual articles are guaranteed to conform to the discarded virtual articles prioritized by the user to a certain extent, thereby avoiding the problems that the number of virtual articles in the backpack is large and the virtual discarded virtual articles are difficult to focus on quickly, further reducing the time for the user to search the virtual articles needing to be discarded, improving the discarding speed of the virtual articles, and improving the convenience degree of the whole operation process of discarding the virtual articles in the game.
102. And displaying the identification information of the target virtual article on a game interface of the target game.
The identification information of the target virtual article may have various expression forms, for example, the identification information of the target virtual article may be a prompt icon of the target virtual article, such as an article icon of the target virtual article; or a prompt word of the target virtual article, such as an article name of the target virtual article.
In some examples, an item icon for the target virtual item may be displayed at a game interface of the target game. So that the user can quickly view and focus on the virtual item that needs to be discarded.
In some examples, the item name of the target virtual item may be displayed in text on the game interface of the target game. So that the user can quickly view and focus on the virtual item that needs to be discarded.
As shown in fig. 2, fig. 2 is a schematic view of a scenario in which identification information of a target virtual item is displayed on a game interface of a target game provided in an embodiment of the present application. Fig. 2 (a) shows a case where the target virtual item is displayed in the representation form of the item icon, and fig. 2 (b) shows a case where the target virtual item is displayed in the representation form of the item name.
103. In response to a trigger operation on target identification information in the identification information of the target virtual item, removing the target virtual item corresponding to the target identification information from the virtual backpack.
And the target identification information is the identification information of the selected target virtual article.
In some embodiments, the triggering operation on the target identification information in the identification information of the target virtual article may be clicking the target identification information, where before step 103, the method further includes: and detecting whether a click operation on the identification information of the target virtual article exists or not, and removing the target virtual article corresponding to the target identification information from the virtual backpack when the click operation on the target identification information in the identification information of the target virtual article is detected. For example, in (b) of fig. 2, identification information of the target virtual item is displayed on the game interface of the target game, and after the user clicks the target identification information "gun", the target virtual item corresponding to the target identification information "gun" is removed from the virtual backpack.
In some embodiments, the triggering operation on the target identification information in the identification information of the target virtual article may be to drag the target identification information to a preset position, where before step 103, the method further includes: and detecting whether a dragging operation of the identification information of the target virtual article exists, and removing the target virtual article corresponding to the target identification information from the virtual backpack when the dragging operation of the target identification information in the identification information of the target virtual article is detected. For example, in (b) of fig. 2, identification information of the target virtual item is displayed on the game interface of the target game, and after the user clicks and drags the target identification information "helmet" to a preset position, the target virtual item corresponding to the target identification information "helmet" is removed from the virtual backpack.
In some embodiments, the triggering operation on the target identification information in the identification information of the target virtual article may be to press the target identification information for a preset time period, where before step 103, the method further includes: and detecting whether a long-press operation on the identification information of the target virtual article exists, and removing the target virtual article corresponding to the target identification information from the virtual backpack when the long-press operation on the target identification information in the identification information of the target virtual article is detected. For example, in fig. 2 (b), identification information of the target virtual item is displayed on the game interface of the target game, and the user removes the target virtual item corresponding to the target identification information "boot" from the virtual backpack after pressing the target identification information "boot" for 3 seconds.
The triggering operation on the target identification information in the identification information of the target virtual article may be multiple, where the triggering operation on the target identification information in the identification information of the target virtual article is only an example, and a specific implementation manner of the triggering operation may be specifically set according to an actual service scenario requirement.
As can be seen from the above, the target virtual item recommended to be discarded in the virtual backpack is determined based on the item information of the virtual item in the virtual backpack and the current game state of the virtual object; displaying the recommended and discarded target virtual articles in the virtual backpack; on one hand, the recommended discarded target virtual article in the backpack is determined based on the current game state of the virtual object, so that the recommended discarded virtual article can be ensured to conform to the discarded virtual article prioritized by the user to a certain extent, the problems that more virtual articles exist in the backpack and the virtual discarded virtual article is difficult to focus on quickly are avoided, and the time for the user to search the virtual article to be discarded is further reduced. On the other hand, the identification information of the target virtual object can be automatically displayed on the game interface of the target game, so that the operation of manually opening the virtual backpack is avoided, the operation complexity of discarding the virtual object is reduced, the discarding speed of the virtual object is increased, and the convenience degree of the whole operation process of discarding the virtual object in the game is improved.
In an alternative embodiment, the condition for triggering the cleaning of the virtual backpack corresponding to the virtual object in the target game means that the virtual object contains the virtual item to be picked up within a preset range. In response to a trigger operation on target identification information in the identification information of the target virtual item, the target virtual item corresponding to the target identification information is removed from the virtual backpack, and a virtual item to be picked up corresponding to the trigger operation is put into the virtual backpack. The trigger operation may be a double click, swipe, etc. operation for selecting the virtual item to be removed and the virtual item to be picked up.
In an alternative embodiment, the condition for triggering to clean the virtual backpack of the virtual object in the target game is that the virtual object contains a virtual item to be picked up within a preset range and the remaining storage space of the virtual backpack is detected to be smaller than a preset space threshold. In response to a trigger operation on target identification information in the identification information of the target virtual item, the target virtual item corresponding to the target identification information is removed from the virtual backpack, and a virtual item to be picked up corresponding to the trigger operation is put into the virtual backpack. The trigger operation may be a double click, swipe, etc. operation for selecting the virtual item to be removed and the virtual item to be picked up. In some game scenes, when the object needs to be picked up, the identification information of the target virtual object can be displayed on the game interface of the target game, so that the user can discard the virtual object in the virtual backpack based on the identification information of the target virtual object while picking up the object.
In this case, step 102 may specifically include: when detecting that the object to be picked up exists in the game interface of the target game, displaying the identification information of the target virtual object on the game interface of the target game.
Alternatively, step 102 may specifically include: and responding to the picking operation of the item to be picked in the target game, and displaying the identification information of the target virtual item on a game interface of the target game.
Illustratively, in some embodiments, before the step "in response to the picking operation of the item to be picked up in the target game, displaying the identification information of the target virtual item on the game interface of the target game" further includes: displaying identification information of an article to be picked up on a game interface of a target game; a pickup operation based on identification information of an item to be picked up displayed on a game interface of a target game is detected.
When a picking operation based on the identification information of the object to be picked is detected, responding to the picking operation of the object to be picked in the target game, and displaying the identification information of the target virtual object on a game interface of the target game; and detecting a trigger operation on the target identification information in the identification information of the target virtual article.
When the trigger operation of the target identification information in the identification information of the target virtual article is detected, the target virtual article corresponding to the target identification information is removed from the virtual backpack in response to the trigger operation of the target identification information in the identification information of the target virtual article, and the article to be picked up is stored in the virtual backpack. So that the user can pick up the item and discard the virtual item in the virtual backpack based on the identification information of the target virtual item.
The identification information of the item to be picked up may have various expression forms, for example, the identification information of the item to be picked up may be an item icon of the item to be picked up or an item name text of the item to be picked up.
The picking operation based on the identification information of the item to be picked may have various expressions, for example, the identification information of the item to be picked may be clicked.
The trigger operation on the target identification information in the identification information of the target virtual article may have various expression forms, for example, the trigger operation may be a click on the target identification information in the identification information of the target virtual article. For another example, the identification information of the to-be-picked up item in the target game may be dragged to the target identification information in the identification information of the target virtual item, and at this time, "detecting the trigger operation on the target identification information in the identification information of the target virtual item" may specifically include: in response to the dragging operation of the identification information of the object to be picked up in the target game, controlling the identification information of the object to be picked up to move to the identification information of the target virtual object; and when the identification information of the object to be picked up moves to the target identification information in the identification information of the target virtual object, triggering operation on the target identification information in the identification information of the target virtual object is formed.
For ease of understanding, a specific example is illustrated. Referring to fig. 3, fig. 3 is a schematic diagram illustrating discarding of a recommended target virtual article according to an embodiment of the present application. For example, when an item to be picked up (such as items 1 and 2 to be picked up in fig. 3) appears in the game interface of the target game, a prompt window pops up in the game interface of the target game to display the identification information of the target virtual item. When the user clicks and drags the item to be picked up 2 in the figure (i.e., the "gun" icon) to the "helmet" in fig. 3, the "helmet" in the virtual backpack is replaced with a "gun", i.e.: the "helmet" is removed from the virtual backpack and a "gun" is stored in the virtual backpack.
The identification information of the object to be picked in the target game is dragged to the target identification information in the identification information of the target virtual object, so that the object to be picked is picked up, the target virtual object corresponding to the target identification information is removed from the backpack, and the virtual object can be picked up and discarded more intuitively and quickly.
Further, in order to better meet the cleaning requirement of the user on the virtual articles in the virtual backpack, when the picking operation based on the identification information of the articles to be picked is detected and the remaining storage space of the virtual backpack is smaller than the preset space threshold, the identification information of the target virtual articles is displayed on the game interface of the target game in response to the picking operation on the articles to be picked in the target game. Therefore, when the virtual objects are picked up under the condition that the residual storage space of the virtual backpack is insufficient, the virtual backpack can be timely and quickly cleaned, and the object to be picked up can be efficiently loaded into the virtual backpack.
In some embodiments, in order to more intuitively display the recommended discarding condition of the target virtual item recommended to be discarded in the virtual backpack, the current storage amount and the recommended discarding amount of the target virtual item recommended to be discarded may be displayed while the game interface displaying the target game displays the identification information of the target virtual item.
At this time, the method further includes the following steps a1 to a3 before the step 102:
a1, determining the item demand of the virtual object to the target virtual item based on the current game state of the virtual object in the target game.
There are various ways to determine the item demand amount of the virtual object for the target virtual item in step a1, for example, in some embodiments, the item demand amount of the virtual object for the target virtual item may be calculated according to the current allocation amount of the virtual object for the target virtual item recorded by the background database and the preset total amount that the target virtual item can be used simultaneously.
For example, the target virtual article is determined as a virtual bullet, the preset total amount of virtual bullets that can be used simultaneously in the target game is 10, and if the current allocated amount of virtual bullets of the virtual object is 8, the required amount of virtual bullets by the virtual object may be determined as 2.
The determination of the article demand of the virtual object for the target virtual article in step a1 is similar to the determination of the article demand of the virtual object for each type of virtual article in step 1011B, and specific reference may be made to the description and examples of step 1011B, and details are not repeated here for simplifying the description.
a2, acquiring the accumulated amount of the target virtual article in the virtual backpack.
a3, determining the recommended discarding amount of the target virtual article according to the accumulated amount and the article demand.
Step 102 may specifically include: and displaying the identification information of the target virtual item, the recommended discarding amount of the target virtual item and/or the accumulated amount of the target virtual item on a game interface of the target game.
Referring to fig. 4, for example, the target virtual article is determined as an f1 type virtual gun, a c1 type virtual helmet, and a b1 type virtual shoe, if the accumulated amount of the f1 type virtual gun, the c1 type virtual helmet, and the b1 type virtual shoe in the virtual backpack is 5, 3, and 2, respectively, and the article demand of the f1 type virtual gun, the c1 type virtual helmet, and the b1 type virtual shoe is 2, 1, and 1, respectively, the recommended discard amount of the f1 type virtual gun, the c1 type virtual helmet, and the b1 type virtual shoe is 3, 2, and 1, respectively, can be determined.
And displaying identification information of the f1 type virtual gun, the c1 type virtual helmet and the b1 type virtual shoe on a game interface of the target game, and recommended discarding amount of the f1 type virtual gun, the c1 type virtual helmet and the b1 type virtual shoe.
Determining a recommended discarding amount of the target virtual item based on the item demand amount of the virtual object for the target virtual item and the accumulated amount of the target virtual item in the virtual backpack, and displaying identification information of the target virtual item, the recommended discarding amount of the target virtual item and/or the accumulated amount of the target virtual item on a game interface of the target game; the accumulated amount and/or the recommended discarding amount of the recommended discarded target virtual item can be displayed while the identification information of the target virtual item is displayed on the game interface of the target game, and the recommended discarding condition of the recommended discarded target virtual item in the virtual backpack is displayed more intuitively. The problem that virtual articles in the backpack are more and are difficult to quickly focus on the virtual articles to be discarded is avoided, so that the time for a user to search the virtual articles to be discarded is reduced, the discarding speed of the virtual articles is increased, and the convenience degree of the whole operation process of discarding the virtual articles in a game is improved.
In some embodiments, there may be a plurality of target virtual articles, and in order to more quickly focus on a virtual article to be discarded, the target virtual articles may also be sequentially displayed according to the discarding habit of the user, for example, the target virtual articles may be sequentially displayed according to the size and redundancy of the occupied space of the target virtual article.
In this case, before step 102, the method further includes: and determining the display sequence of each target virtual article based on the article information of each target virtual article.
Step 102 may specifically include: and displaying the identification information of each target virtual article on a game interface of the target game according to the display sequence.
The step "determining the display order of each target virtual article based on the article information of each target virtual article" may be implemented in various ways, and exemplarily includes:
(1) in some embodiments, based on the article information of each target virtual article, acquiring an occupied space of each target virtual article; and determining the display sequence of each target virtual article according to the occupied space of each target virtual article.
The occupied space of the target virtual article can have various expressions, for example, the occupied space of the target virtual article can be the total amount of the target virtual article in the virtual backpack, and can also be the redundancy of the target virtual article. The redundancy of the target virtual article may be determined according to the steps 1011B to 1012B, and specifically refer to the steps 1011B to 1012B, which are not described herein again for simplicity.
Specifically, after the occupied space of each target virtual article is determined, the target virtual articles may be sorted from high to low according to the occupied space of each target virtual article, and the order of each target virtual article is obtained to serve as the display order of each target virtual article.
At this time, in step 102, the identification information of each target virtual article may be displayed on the game interface of the target game according to the display order of each target virtual article obtained by sorting each target virtual article according to the occupied space from high to low. Therefore, the target virtual articles can be displayed according to the occupied space in sequence, and the virtual articles with large occupied space can accord with the virtual articles discarded by the user in priority to a certain extent, so that the target virtual articles can be displayed according to the occupied space, and the target virtual articles can be focused on the virtual articles to be discarded more quickly.
As shown in fig. 5, for example, the target virtual articles are determined as f1 type virtual guns, c1 type virtual helmets, and b1 type virtual shoes, wherein the occupied spaces of the f1 type virtual guns, the c1 type virtual helmets, and the b1 type virtual shoes are respectively 5, 1, 9, and 2, it may be determined that the display order of the target virtual articles is c1 type virtual helmets, b1 type virtual shoes, and f1 type virtual guns, and the c1 type virtual helmets, b1 type virtual shoes, and f1 type virtual guns are sequentially displayed.
(2) In some embodiments, the item redundancy of the virtual object to each target virtual item is determined based on the current game state of the virtual object in the target game and the item information of each target virtual item; and determining the display sequence of each target virtual article according to the article redundancy of each target virtual article.
The step "determining the article redundancy of the virtual object to each target virtual article based on the current game state of the virtual object in the target game and the article information of each target virtual article" may be determined by referring to the above steps 1011B to 1012B, and specifically may refer to the above steps 1011B to 1012B, and for simplifying the description, details are not repeated here.
Specifically, after the article redundancy of each target virtual article is determined, the target virtual articles may be sorted from high to low according to the article redundancy of each target virtual article, so as to obtain the order of each target virtual article, which is used as the display order of each target virtual article.
In this case, in step 102, the identification information of each target virtual item may be displayed on the game interface of the target game in the display order of each target virtual item obtained by sorting each target virtual item from high to low according to the item redundancy. Therefore, the target virtual articles can be displayed in sequence according to the occupied space, and the virtual articles with high article redundancy can accord with the discarded virtual articles prioritized by users to a certain extent, so that the target virtual articles can be displayed according to the article redundancy, and the virtual articles to be discarded can be focused more quickly.
In the above, the display reference factors are the occupied space of each target virtual article and the article redundancy, respectively, to determine the display order of each target virtual article, it can be understood that other display reference factors, such as the number of each target virtual article, may also be determined based on the article information of each target virtual article, and the display order of each target virtual article may also be determined based on other display reference factors. Alternatively, the display order of the target virtual articles can be determined by combining two or more display reference factors such as occupied space, article redundancy and the like.
In order to better implement the method, an embodiment of the present invention further provides an in-game virtual article processing apparatus, where the in-game virtual article processing apparatus may be specifically integrated in an electronic device, for example, a computer device, and the computer device may be a terminal, a server, or the like.
The terminal can be a mobile phone, a tablet computer, an intelligent Bluetooth device, a notebook computer, a personal computer and other devices; the server may be a single server or a server cluster composed of a plurality of servers.
For example, in the present embodiment, the method according to the embodiment of the present invention will be described in detail by taking an example in which the in-game virtual article processing apparatus is specifically integrated in a smart phone.
For example, as shown in fig. 6, the in-game virtual item processing apparatus may include a determination unit 601, a display unit 602, and a processing unit 603, as follows:
a determination unit 601.
The determining unit 601 may be configured to determine, based on the item information of the virtual item in the virtual backpack and the current game state of the virtual object, a target virtual item recommended to be discarded in the virtual backpack if a cleaning trigger condition of the virtual backpack of the virtual object in the target game is met.
And (ii) a display unit 602.
The display unit 602 may be configured to display the identification information of the target virtual item on a game interface of the target game.
(iii) a processing unit 603.
The processing unit 603 may be configured to remove the target virtual item corresponding to the target identification information from the virtual backpack in response to a trigger operation on the target identification information in the identification information of the target virtual item.
In some embodiments of the present application, the determining unit 601 is specifically configured to:
determining a matching virtual item for the virtual object based on a current game state of the virtual object in the target game;
acquiring the article information of the matched virtual article;
determining a non-matching virtual item in the virtual backpack as a target virtual item recommended to be discarded in the virtual backpack based on the item information of the virtual item in the virtual backpack and the item information of the matching virtual item.
In some embodiments of the present application, the determining unit 601 is specifically configured to:
determining the demand of the virtual object for various types of virtual articles based on the current game state of the virtual object in the target game;
determining the redundancy of various virtual articles in the virtual backpack based on the article information of the virtual articles in the virtual backpack and the demand of the virtual object on various virtual articles;
and determining target virtual articles recommended to be discarded in the virtual backpack based on the redundancy of various types of virtual articles in the virtual backpack.
In some embodiments of the present application, the display unit 602 is specifically configured to:
responding to the picking operation of the object to be picked in the target game, and displaying the identification information of the target virtual object on a game interface of the target game;
in some embodiments of the present application, after the step of removing, in response to a trigger operation on target identification information in the identification information of the target virtual item, the target virtual item corresponding to the target identification information from the virtual backpack, the processing unit 603 is specifically configured to:
and storing the to-be-picked items in the virtual backpack.
In some embodiments of the present application, the in-game virtual item processing apparatus 600 further includes a detection unit (not shown in the figure), before the step of removing the target virtual item corresponding to the target identification information from the virtual backpack in response to a trigger operation on the target identification information in the identification information of the target virtual item, the detection unit is specifically configured to:
in response to the dragging operation of the identification information of the object to be picked up in the target game, controlling the identification information of the object to be picked up to move to the identification information of the target virtual object;
and when the identification information of the to-be-picked item moves to the target identification information in the identification information of the target virtual item, forming a trigger operation on the target identification information in the identification information of the target virtual item.
In some embodiments of the present application, the display unit 602 is specifically configured to:
determining the item demand of the virtual object for the target virtual item based on the current game state of the virtual object in the target game;
acquiring the accumulated amount of the target virtual article in the virtual backpack;
determining a recommended discard amount of the target virtual item according to the accumulated amount and the item demand amount;
and displaying the identification information of the target virtual item and the recommended discarding amount of the target virtual item on a game interface of the target game.
In some embodiments of the present application, the display unit 602 is specifically configured to:
determining a display order of each of the target virtual articles based on article information of each of the target virtual articles;
and displaying the identification information of each target virtual article on a game interface of the target game according to the display sequence.
In some embodiments of the present application, the display unit 602 is specifically configured to:
acquiring the occupied space of each target virtual article based on the article information of each target virtual article;
and determining the display sequence of each target virtual article according to the occupied space of each target virtual article.
In some embodiments of the present application, the display unit 602 is specifically configured to:
determining the article redundancy of the virtual object to each target virtual article based on the current game state of the virtual object in the target game and the article information of each target virtual article;
and determining the display sequence of each target virtual article according to the article redundancy of each target virtual article.
In some embodiments of the application, before the step of determining, based on the item information of the virtual item in the virtual backpack and the current game state of the virtual object, a target virtual item recommended to be discarded in the virtual backpack if the cleaning trigger condition of the virtual backpack of the virtual object in the target game is met, the determining unit 601 is specifically configured to:
detecting the residual storage space of a virtual backpack of a virtual object in a target game;
and when the residual storage space does not accord with the preset storage condition, determining a cleaning triggering condition of the virtual backpack which accords with the virtual object in the target game.
As can be seen from the above, the in-game virtual item processing apparatus of this embodiment may determine, by the determination unit 601, when a condition for triggering to clean a virtual backpack of a target in-game virtual object is met, a target virtual item recommended to be discarded in the virtual backpack based on item information of the virtual item in the virtual backpack and a current game state of the virtual object; displaying, by the display unit 602, identification information of the target virtual item on a game interface of the target game; removing, by the processing unit 603, the target virtual item corresponding to the target identification information from the virtual backpack in response to a trigger operation on target identification information of the target virtual item. On one hand, the recommended discarded target virtual article in the backpack is determined based on the current game state of the virtual object, so that the recommended discarded virtual article can be ensured to conform to the discarded virtual article prioritized by the user to a certain extent, the problems that more virtual articles exist in the backpack and the virtual discarded virtual article is difficult to focus on quickly are avoided, and the time for the user to search the virtual article to be discarded is further reduced. On the other hand, the identification information of the target virtual object can be automatically displayed on the game interface of the target game, so that the operation of manually opening the virtual backpack is avoided, the operation complexity of discarding the virtual object is reduced, the discarding speed of the virtual object is increased, and the convenience degree of the whole operation process of discarding the virtual object in the game is improved.
Correspondingly, the embodiment of the present application further provides a Computer device, where the Computer device may be a terminal, and the terminal may be a terminal device such as a smart phone, a tablet Computer, a notebook Computer, a touch screen, a game machine, a Personal Computer (PC), a Personal Digital Assistant (PDA), and the like. As shown in fig. 7, fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer apparatus 700 includes a processor 701 having one or more processing cores, a memory 702 having one or more computer-readable storage media, and a computer program stored on the memory 702 and executable on the processor. The processor 701 is electrically connected to the memory 702. Those skilled in the art will appreciate that the computer device configurations illustrated in the figures are not meant to be limiting of computer devices and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The processor 701 is a control center of the computer device 700, connects various parts of the entire computer device 700 using various interfaces and lines, performs various functions of the computer device 700 and processes data by running or loading software programs and/or modules stored in the memory 702, and calling data stored in the memory 702, thereby monitoring the computer device 700 as a whole.
In the embodiment of the present application, the processor 701 in the computer device 700 loads instructions corresponding to processes of one or more application programs into the memory 702, and the processor 701 executes the application program stored in the memory 702, so as to implement various functions as follows:
if the cleaning triggering condition of the virtual backpack of the virtual object in the target game is met, determining the recommended discarded target virtual object in the virtual backpack based on the item information of the virtual object in the virtual backpack and the current game state of the virtual object;
displaying the identification information of the target virtual article on a game interface of the target game;
in response to a trigger operation on target identification information in the identification information of the target virtual item, removing the target virtual item corresponding to the target identification information from the virtual backpack.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Optionally, as shown in fig. 7, the computer device 700 further includes: a touch display screen 703, a radio frequency circuit 704, an audio circuit 705, an input unit 706, and a power supply 707. The processor 701 is electrically connected to the touch display screen 703, the radio frequency circuit 704, the audio circuit 705, the input unit 706, and the power source 707. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 7 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The touch display screen 703 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 703 may include a display panel and a touch panel. The display panel may be used, among other things, to display information entered by or provided to a user and various graphical user interfaces of the computer device, which may be made up of graphics, text, icons, video, and any combination thereof. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel using any suitable object or accessory such as a finger, a stylus pen, and the like), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 701, and can receive and execute commands sent by the processor 701. The touch panel may cover the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 701 to determine the type of the touch event, and then the processor 701 provides a corresponding visual output on the display panel according to the type of the touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 703 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two separate components to perform the input and output functions. That is, the touch display screen 703 can also be used as a part of the input unit 706 to implement an input function.
The radio frequency circuit 704 may be used for transceiving radio frequency signals to establish wireless communication with a network device or other computer device through wireless communication, and for transceiving signals with the network device or other computer device.
Audio circuitry 705 may be used to provide an audio interface between a user and a computer device through speakers and microphones. The audio circuit 705 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 705 and converted into audio data, which is then processed by the output processor 701 and transmitted to, for example, another computer device via the radio frequency circuit 704, or output to the memory 702 for further processing. The audio circuit 705 may also include an earbud jack to provide communication of a peripheral headset with the computer device.
The input unit 706 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 707 is used to power the various components of the computer device 700. Optionally, the power supply 707 may be logically connected to the processor 701 through a power management system, so as to implement functions of managing charging, discharging, power consumption management, and the like through the power management system. The power supply 707 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown in fig. 7, the computer device 700 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described in detail herein.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the computer device provided in this embodiment may determine, based on the item information of the virtual item in the virtual backpack and the current game state of the virtual object, a target virtual item recommended to be discarded in the virtual backpack; displaying the recommended and discarded target virtual articles in the virtual backpack; on one hand, the recommended discarded target virtual article in the backpack is determined based on the current game state of the virtual object, so that the recommended discarded virtual article can be ensured to conform to the discarded virtual article prioritized by the user to a certain extent, the problems that more virtual articles exist in the backpack and the virtual discarded virtual article is difficult to focus on quickly are avoided, and the time for the user to search the virtual article to be discarded is further reduced. On the other hand, the identification information of the target virtual object can be automatically displayed on the game interface of the target game, so that the operation of manually opening the virtual backpack is avoided, the operation complexity of discarding the virtual object is reduced, the discarding speed of the virtual object is increased, and the convenience degree of the whole operation process of discarding the virtual object in the game is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, where the computer programs can be loaded by a processor to execute the steps in any one of the methods for processing a virtual object in a game provided by the embodiments of the present application. For example, the computer program may perform the steps of:
if the cleaning triggering condition of the virtual backpack of the virtual object in the target game is met, determining the recommended discarded target virtual object in the virtual backpack based on the item information of the virtual object in the virtual backpack and the current game state of the virtual object;
displaying the identification information of the target virtual article on a game interface of the target game;
in response to a trigger operation on target identification information in the identification information of the target virtual item, removing the target virtual item corresponding to the target identification information from the virtual backpack.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the computer-readable storage medium can execute the steps in any method for processing a virtual item in a game provided in the embodiment of the present application, the beneficial effects that can be achieved by any method for processing a virtual item in a game provided in the embodiment of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The foregoing describes in detail a method, an apparatus, a computer-readable storage medium, and a computer device for processing a virtual object in a game provided in an embodiment of the present application, where a specific example is applied to explain principles and embodiments of the present application, and the description of the foregoing embodiment is only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. An in-game virtual item processing method, comprising:
if the cleaning triggering condition of the virtual backpack of the virtual object in the target game is met, determining the recommended discarded target virtual object in the virtual backpack based on the item information of the virtual object in the virtual backpack and the current game state of the virtual object;
displaying the identification information of the target virtual article on a game interface of the target game;
in response to a trigger operation on target identification information in the identification information of the target virtual item, removing the target virtual item corresponding to the target identification information from the virtual backpack.
2. The in-game virtual item processing method of claim 1, wherein the determining a target virtual item recommended for discarding in the virtual backpack based on item information of virtual items in the virtual backpack and a current game state of the virtual object comprises:
determining a matching virtual item for the virtual object based on a current game state of the virtual object in the target game;
acquiring the article information of the matched virtual article;
determining a non-matching virtual item in the virtual backpack as a target virtual item recommended to be discarded in the virtual backpack based on the item information of the virtual item in the virtual backpack and the item information of the matching virtual item.
3. The in-game virtual item processing method of claim 1, wherein the determining a target virtual item recommended for discarding in the virtual backpack based on item information of virtual items in the virtual backpack and a current game state of the virtual object comprises:
determining the demand of the virtual object for various types of virtual articles based on the current game state of the virtual object in the target game;
determining the redundancy of various virtual articles in the virtual backpack based on the article information of the virtual articles in the virtual backpack and the demand of the virtual object on various virtual articles;
and determining target virtual articles recommended to be discarded in the virtual backpack based on the redundancy of various types of virtual articles in the virtual backpack.
4. The in-game virtual item processing method of claim 1, wherein the displaying the identification information of the target virtual item on the game interface of the target game comprises:
responding to the picking operation of the object to be picked in the target game, and displaying the identification information of the target virtual object on a game interface of the target game;
the removing the target virtual article corresponding to the target identification information from the virtual backpack in response to the triggering operation on the target identification information in the identification information of the target virtual article further comprises:
and storing the to-be-picked items in the virtual backpack.
5. The in-game virtual item processing method according to claim 4, wherein the removing of the target virtual item corresponding to the target identification information from the virtual backpack in response to a trigger operation on target identification information among the identification information of the target virtual item further comprises:
in response to the dragging operation of the identification information of the object to be picked up in the target game, controlling the identification information of the object to be picked up to move to the identification information of the target virtual object;
and when the identification information of the to-be-picked item moves to the target identification information in the identification information of the target virtual item, forming a trigger operation on the target identification information in the identification information of the target virtual item.
6. The in-game virtual item processing method of claim 1, wherein the displaying the identification information of the target virtual item at a game interface of the target game further comprises:
determining the item demand of the virtual object for the target virtual item based on the current game state of the virtual object in the target game;
acquiring the accumulated amount of the target virtual article in the virtual backpack;
determining a recommended discard amount of the target virtual item according to the accumulated amount and the item demand amount;
the displaying the identification information of the target virtual article on the game interface of the target game comprises:
and displaying the identification information of the target virtual item and the recommended discarding amount of the target virtual item on a game interface of the target game.
7. The in-game virtual item processing method according to claim 1, wherein the target virtual item includes a plurality of items, and the displaying the identification information of the target virtual item on the game interface of the target game further includes:
determining a display order of each of the target virtual articles based on article information of each of the target virtual articles;
the displaying the identification information of the target virtual article on the game interface of the target game comprises:
and displaying the identification information of each target virtual article on a game interface of the target game according to the display sequence.
8. The in-game virtual item processing method according to claim 7, wherein the determining of the display order of each of the target virtual items based on the item information of each of the target virtual items includes:
acquiring the occupied space of each target virtual article based on the article information of each target virtual article;
and determining the display sequence of each target virtual article according to the occupied space of each target virtual article.
9. The in-game virtual item processing method according to claim 7, wherein the determining of the display order of each of the target virtual items based on the item information of each of the target virtual items includes:
determining the article redundancy of the virtual object to each target virtual article based on the current game state of the virtual object in the target game and the article information of each target virtual article;
and determining the display sequence of each target virtual article according to the article redundancy of each target virtual article.
10. The in-game virtual item processing method according to any one of claims 1 to 9, wherein if a condition for triggering cleaning of a virtual backpack of a target in-game virtual object is met, determining a target virtual item recommended to be discarded in the virtual backpack based on item information of the virtual item in the virtual backpack and a current game state of the virtual object, further comprises:
detecting the residual storage space of a virtual backpack of a virtual object in a target game;
and when the residual storage space does not accord with the preset storage condition, determining a cleaning triggering condition of the virtual backpack which accords with the virtual object in the target game.
11. An in-game virtual item processing apparatus, comprising:
the determining unit is used for determining a target virtual item recommended to be discarded in the virtual backpack based on the item information of the virtual item in the virtual backpack and the current game state of the virtual object if the cleaning triggering condition of the virtual backpack of the virtual object in the target game is met;
the display unit is used for displaying the identification information of the target virtual article on a game interface of the target game;
the processing unit is used for responding to a trigger operation of target identification information in the identification information of the target virtual article, and removing the target virtual article corresponding to the target identification information from the virtual backpack.
12. A terminal comprising a processor and a memory, said memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps of the in-game virtual item processing method according to any one of claims 1 to 10.
13. A computer readable storage medium storing instructions adapted to be loaded by a processor to perform the steps of the method for processing a virtual object in a game according to any one of claims 1 to 10.
CN202110852618.0A 2021-07-27 2021-07-27 Method, device, terminal and storage medium for processing virtual article in game Active CN113546425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110852618.0A CN113546425B (en) 2021-07-27 2021-07-27 Method, device, terminal and storage medium for processing virtual article in game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110852618.0A CN113546425B (en) 2021-07-27 2021-07-27 Method, device, terminal and storage medium for processing virtual article in game

Publications (2)

Publication Number Publication Date
CN113546425A true CN113546425A (en) 2021-10-26
CN113546425B CN113546425B (en) 2024-03-01

Family

ID=78104634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110852618.0A Active CN113546425B (en) 2021-07-27 2021-07-27 Method, device, terminal and storage medium for processing virtual article in game

Country Status (1)

Country Link
CN (1) CN113546425B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023138141A1 (en) * 2022-01-21 2023-07-27 腾讯科技(深圳)有限公司 Virtual article processing method and apparatus, electronic device, computer readable storage medium and computer program product

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787862A (en) * 2003-04-24 2006-06-14 大红蛙有限公司 Game
CN108509039A (en) * 2018-03-27 2018-09-07 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the storage medium of article are picked up in virtual environment
CN110201403A (en) * 2019-06-05 2019-09-06 腾讯科技(深圳)有限公司 The method, apparatus and medium that control virtual objects abandon virtual objects
US20200346113A1 (en) * 2018-06-27 2020-11-05 Tencent Technology (Shenzhen) Company Limited Virtual backpack interface
CN112023392A (en) * 2020-09-17 2020-12-04 网易(杭州)网络有限公司 Virtual article processing method and device
US20200393953A1 (en) * 2018-08-31 2020-12-17 Tencent Technology (Shenzhen) Company Limited Method and apparatus, computer device, and storage medium for picking up a virtual item in a virtual environment
CN112516583A (en) * 2020-12-11 2021-03-19 网易(杭州)网络有限公司 Data processing method and device in game and electronic terminal
CN112791390A (en) * 2021-01-26 2021-05-14 网易(杭州)网络有限公司 Property pickup method, terminal, electronic device and readable storage medium
CN112807679A (en) * 2021-02-01 2021-05-18 网易(杭州)网络有限公司 Method, device and equipment for using game props and storage medium
SG11202104911TA (en) * 2019-04-11 2021-06-29 Tencent Tech Shenzhen Co Ltd Operation control method and apparatus, and electronic device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787862A (en) * 2003-04-24 2006-06-14 大红蛙有限公司 Game
CN108509039A (en) * 2018-03-27 2018-09-07 腾讯科技(深圳)有限公司 Method, apparatus, equipment and the storage medium of article are picked up in virtual environment
US20200346113A1 (en) * 2018-06-27 2020-11-05 Tencent Technology (Shenzhen) Company Limited Virtual backpack interface
US20200393953A1 (en) * 2018-08-31 2020-12-17 Tencent Technology (Shenzhen) Company Limited Method and apparatus, computer device, and storage medium for picking up a virtual item in a virtual environment
SG11202104911TA (en) * 2019-04-11 2021-06-29 Tencent Tech Shenzhen Co Ltd Operation control method and apparatus, and electronic device and storage medium
CN110201403A (en) * 2019-06-05 2019-09-06 腾讯科技(深圳)有限公司 The method, apparatus and medium that control virtual objects abandon virtual objects
CN112023392A (en) * 2020-09-17 2020-12-04 网易(杭州)网络有限公司 Virtual article processing method and device
CN112516583A (en) * 2020-12-11 2021-03-19 网易(杭州)网络有限公司 Data processing method and device in game and electronic terminal
CN112791390A (en) * 2021-01-26 2021-05-14 网易(杭州)网络有限公司 Property pickup method, terminal, electronic device and readable storage medium
CN112807679A (en) * 2021-02-01 2021-05-18 网易(杭州)网络有限公司 Method, device and equipment for using game props and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023138141A1 (en) * 2022-01-21 2023-07-27 腾讯科技(深圳)有限公司 Virtual article processing method and apparatus, electronic device, computer readable storage medium and computer program product

Also Published As

Publication number Publication date
CN113546425B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN109213732B (en) Method for improving photo album classification, mobile terminal and computer readable storage medium
CN108200289A (en) A kind of unread message processing method and mobile terminal
CN105960626A (en) Grip detection
CN109508399A (en) A kind of facial expression image processing method, mobile terminal
WO2021120875A1 (en) Search method and apparatus, terminal device and storage medium
CN109189953A (en) A kind of selection method and device of multimedia file
WO2021057301A1 (en) File control method and electronic device
CN113101657B (en) Game interface element control method, game interface element control device, computer equipment and storage medium
CN113350793B (en) Interface element setting method and device, electronic equipment and storage medium
CN112689201A (en) Barrage information identification method, barrage information display method, server and electronic equipment
CN108932057A (en) Method of controlling operation thereof, device, storage medium and electronic equipment
CN110502164A (en) A kind of interface display method and electronic equipment
CN113018864A (en) Virtual object prompting method and device, storage medium and computer equipment
CN111143596A (en) Article searching method and electronic equipment
CN113546425B (en) Method, device, terminal and storage medium for processing virtual article in game
CN113633963A (en) Game control method, device, terminal and storage medium
CN108600544A (en) A kind of Single-hand control method and terminal
CN109993234A (en) A kind of unmanned training data classification method, device and electronic equipment
CN108200228B (en) Terminal fingerprint identification module management method, terminal and computer readable storage medium
CN113332726A (en) Virtual character processing method and device, electronic equipment and storage medium
CN113413597A (en) Virtual item assembling method and device, computer equipment and storage medium
CN112843719A (en) Skill processing method, skill processing device, storage medium and computer equipment
WO2024007606A1 (en) Virtual article display method and apparatus, computer device, and storage medium
CN116542740A (en) Live broadcasting room commodity recommendation method and device, electronic equipment and readable storage medium
CN109510897B (en) Expression picture management method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant