CN113546425B - 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
CN113546425B
CN113546425B CN202110852618.0A CN202110852618A CN113546425B CN 113546425 B CN113546425 B CN 113546425B CN 202110852618 A CN202110852618 A CN 202110852618A CN 113546425 B CN113546425 B CN 113546425B
Authority
CN
China
Prior art keywords
virtual
target
article
game
identification information
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.)
Active
Application number
CN202110852618.0A
Other languages
Chinese (zh)
Other versions
CN113546425A (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

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

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 a virtual knapsack of a virtual object in a target game is met, determining a target virtual object recommended to be discarded in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object; displaying the identification information of the target virtual object on a game interface of the target game; and responding to a triggering 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 knapsack. According to the embodiment of the invention, the recommended target virtual articles in the virtual backpack are displayed, so that the operation complexity of discarding the virtual articles can be reduced, and the discarding convenience and discarding speed of the virtual articles are improved.

Description

Method, device, terminal and storage medium for processing virtual article in game
Technical Field
The present invention relates to the field of game technologies, and in particular, to a method, an apparatus, a terminal, and a computer readable storage medium for processing virtual articles in a game.
Background
Currently, in many games, a player may acquire virtual articles such as articles in a game scene by picking up, fighting, or the like, and may put the acquired virtual articles into a backpack.
However, if the backpack is full, it is not possible to continue loading more virtual items. If the player discards the obtained virtual article, on one hand, the knapsack needs to be opened and then the player discards the virtual article; on the other hand, when the backpack is fully loaded, many virtual articles need to be tiled, and it is difficult to quickly focus on the virtual articles needing to be discarded.
Therefore, the whole operation process of discarding the virtual articles in the game is low in convenience and 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 virtual articles in a game, which can reduce the operation complexity of discarding the virtual articles and improve the discarding convenience and discarding speed of the virtual articles.
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 a virtual knapsack of a virtual object in a target game is met, determining a target virtual object recommended to be discarded in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object;
Displaying the identification information of the target virtual object on a game interface of the target game;
and responding to a triggering 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 knapsack.
In some embodiments of the present application, the determining, based on the item information of the virtual items in the virtual backpack and the current game state of the virtual object, the target virtual item recommended to be discarded in the virtual backpack includes:
determining a matching virtual object of the virtual object based on a current game state of the virtual object in the target game;
acquiring article information of the matched virtual article;
and determining non-matching virtual articles in the virtual knapsack as recommended target virtual articles to be discarded in the virtual knapsack based on the article information of the virtual articles in the virtual knapsack and the article information of the matching virtual articles.
In some embodiments of the present application, the determining, based on the item information of the virtual items in the virtual backpack and the current game state of the virtual object, the target virtual item recommended to be discarded in the virtual backpack includes:
Determining the demand of the virtual object on various virtual objects based on the current game state of the virtual object in the target game;
determining redundancy of various virtual articles in the virtual knapsack based on article information of the virtual articles in the virtual knapsack and the demand of the virtual objects for various virtual articles;
and determining a target virtual article recommended to be discarded in the virtual knapsack based on the redundancy of various virtual articles in the virtual knapsack.
In some embodiments of the present application, the displaying, on a game interface of the target game, identification information of the target virtual article includes:
responding to the picking operation of the object to be picked up in the target game, and displaying the identification information of the target virtual object on a game interface of the target game;
the method further comprises the steps of responding to triggering operation of target identification information in the identification information of the target virtual article, removing the target virtual article corresponding to the target identification information from the virtual knapsack, and then further comprising:
and storing the object to be picked into the virtual knapsack.
In some embodiments of the present application, the removing, in response to a triggering operation on target identification information in the identification information of the target virtual article, the target virtual article corresponding to the target identification information from the virtual backpack further includes:
Controlling the identification information of the object to be picked up to move to the identification information of the target virtual object in response to the dragging operation of the identification information of the object to be picked up in the target game;
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, forming a triggering operation on the target identification information in the identification information of the target virtual object.
In some embodiments of the present application, the displaying, on the game interface of the target game, identification information of the target virtual article further includes:
determining an item demand of the virtual object for the target virtual item based on a current game state of the virtual object in the target game;
acquiring the accumulated amount of the target virtual article in the virtual knapsack;
determining a recommended discard amount of the target virtual item according to the accumulated amount and the item demand;
the displaying the identification information of the target virtual article on the game interface of the target game comprises the following steps:
and displaying the identification information of the target virtual article and the recommended discarding amount of the target virtual article on a game interface of the target game.
In some embodiments of the present application, the target virtual article includes a plurality of target 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 the following steps:
and displaying the identification information of each target virtual object on a game interface of the target game according to the display sequence.
In some embodiments of the present application, the determining, based on the item information of each of the target virtual items, a display order 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.
In some embodiments of the present application, the determining, based on the item information of each of the target virtual items, a display order of each of the target virtual items includes:
determining article redundancy of the virtual object to each target virtual article based on a current game state of the virtual object in the target game and 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 the cleaning triggering condition of the virtual knapsack of the virtual object in the target game is met, determining, based on the item information of the virtual item in the virtual knapsack and the current game state of the virtual object, a target virtual item recommended to be discarded in the virtual knapsack, and before further including:
detecting the remaining storage space of a virtual knapsack 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 knapsack which accords with the virtual object in the target game.
In a second aspect, embodiments of the present application further provide an in-game virtual article processing apparatus, including:
the determining unit is used for determining a target virtual object recommended to be discarded in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object if the cleaning triggering condition of the virtual knapsack of the virtual object in the target game is met;
the display unit is used for displaying the identification information of the target virtual object on a game interface of the target game;
And the processing unit is used for responding to the triggering operation of the 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 knapsack.
In some embodiments of the present application, the determining unit is specifically configured to:
determining a matching virtual object of the virtual object based on a current game state of the virtual object in the target game;
acquiring article information of the matched virtual article;
and determining non-matching virtual articles in the virtual knapsack as recommended target virtual articles to be discarded in the virtual knapsack based on the article information of the virtual articles in the virtual knapsack and the article information of the matching virtual articles.
In some embodiments of the present application, the determining unit is specifically configured to:
determining the demand of the virtual object on various virtual objects based on the current game state of the virtual object in the target game;
determining redundancy of various virtual articles in the virtual knapsack based on article information of the virtual articles in the virtual knapsack and the demand of the virtual objects for various virtual articles;
And determining a target virtual article recommended to be discarded in the virtual knapsack based on the redundancy of various virtual articles in the virtual knapsack.
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 up 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 the target virtual item corresponding to the target identification information from the virtual backpack in response to the triggering operation of the target identification information in the identification information of the target virtual item, the processing unit is specifically configured to:
and storing the object to be picked into the virtual knapsack.
In some embodiments of the present application, the in-game virtual article processing apparatus further includes a detection unit, before the step of removing the target virtual article corresponding to the target identification information from the virtual backpack in response to a triggering operation on the target identification information in the identification information of the target virtual article, the detection unit is specifically configured to:
controlling the identification information of the object to be picked up to move to the identification information of the target virtual object in response to the dragging operation of the identification information of the object to be picked up in the target game;
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, forming a triggering operation on the target identification information in the identification information of the target virtual object.
In some embodiments of the present application, the display unit is specifically configured to:
determining an item demand of the virtual object for the target virtual item based on a current game state of the virtual object in the target game;
acquiring the accumulated amount of the target virtual article in the virtual knapsack;
determining a recommended discard amount of the target virtual item according to the accumulated amount and the item demand;
and displaying the identification information of the target virtual article and the recommended discarding amount of the target virtual article 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 object 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 article redundancy of the virtual object to each target virtual article based on a current game state of the virtual object in the target game and 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 the cleaning triggering condition of the virtual knapsack of the virtual object in the target game is met, before determining the step of recommending the discarded target virtual object in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object, the determining unit is specifically configured to:
detecting the remaining storage space of a virtual knapsack 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 knapsack which accords with the virtual object in the target game.
In a third aspect, embodiments of the present application further provide a terminal, including a memory storing a plurality of instructions; the processor loads instructions from the memory to perform steps in any of the in-game virtual item processing methods provided by the embodiments of the present application.
In a fourth aspect, embodiments of the present application further provide a computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform steps in any of the in-game virtual item processing methods provided by the embodiments of the present application.
According to the method and the device, the object virtual article recommended to be discarded in the virtual knapsack is determined based on the article information of the virtual article in the virtual knapsack and the current game state of the virtual object; displaying the target virtual articles recommended to be discarded in the virtual knapsack; on the one hand, the method and the device for recommending the virtual object to be discarded in the knapsack are based on the current game state of the virtual object, so that the recommended virtual object to be discarded accords with the virtual object which is preferentially considered to be discarded by the user to a certain extent, the problem that more virtual objects in the knapsack are difficult to quickly focus on the virtual object which is virtually discarded is avoided, and the time for searching the virtual object which needs to be discarded by the user 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 knapsack is avoided, the operation complexity of discarding the virtual object is reduced, the discarding speed of the virtual object is improved, and the convenience 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 of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an embodiment of a method for processing virtual articles in a game according to an embodiment of the present application;
FIG. 2 is a schematic view of a scenario in which identification information of a target virtual object is displayed on a game interface of a target game provided in an embodiment of the present application;
FIG. 3 is an illustrative diagram of discarding recommended target virtual articles 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 schematic diagram of a display target virtual article provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a virtual article handling apparatus in a game according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the 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 device can be integrated in electronic equipment, and the electronic equipment can be a terminal, a server and other equipment. The terminal can be a mobile phone, a tablet computer, an intelligent Bluetooth device, a notebook computer, a personal computer (Personal Computer, PC) or 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 in a plurality of electronic devices, for example, the in-game virtual article processing apparatus may be integrated in 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 a server to integrate the in-game virtual object handling device.
For example, the electronic device may be a mobile terminal, and the mobile terminal may determine, when a cleaning trigger condition of a virtual knapsack of a virtual object in a target game is met, a target virtual object recommended to be discarded in the virtual knapsack based on object information of the virtual object in the virtual knapsack and a current game state of the virtual object through a network; displaying the identification information of the target virtual object on a game interface of the target game; and responding to a triggering 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 knapsack.
The following will describe in detail. The numbers of the following examples are not intended to limit the preferred order of the examples.
In this embodiment, a method for processing virtual articles in a game is provided, as shown in fig. 1, and the specific flow of the method for processing virtual articles in a game may be as follows steps 101 to 103:
101. And if the cleaning triggering condition of the virtual knapsack of the virtual object in the target game is met, determining the target virtual object recommended to be discarded in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object.
Wherein the virtual object may be a virtual character in a target game, for example, in a combat game the virtual object may be a virtual character in a game.
In embodiments of the present application, virtual items may include virtual ornaments, virtual weapons, virtual tools, virtual medicines, virtual foods, and the like. Wherein the virtual ornaments may be, for example, clothing, shoes, hats, etc. of the virtual objects, and the virtual weapons may be, for example, firearms, bullets, helmets, etc. Because the virtual articles set in different games are different, the types and the number of the virtual articles are not particularly limited in the embodiment of the present application, and may depend on the virtual articles set in the target game.
The article information of the virtual article may include information such as a name, a purpose, a category, an occupied storage space, and an amount of the virtual article.
In this embodiment, the current game state of the virtual object may include a currently equipped virtual item of the virtual object, a currently not equipped virtual item, a currently in use virtual item, a currently absent virtual item, a preset virtual item available at a current level, and so on.
The cleaning trigger condition may be set according to an actual service scenario requirement, and in an exemplary embodiment, the cleaning trigger condition may be an opening operation of a virtual knapsack of a virtual object in the target game, or a trigger operation of a cleaning control based on the virtual knapsack, or it is detected that a remaining storage space of the virtual knapsack is smaller than a preset space threshold. For example, in some embodiments, prior to step 101, further comprising: detecting the remaining storage space of a virtual knapsack 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 knapsack which accords with the virtual object in the target game; and when the residual storage space accords with the preset storage condition, determining a cleaning triggering condition of the virtual knapsack which does not accord with the virtual object in the target game. The preset storage condition may be that the remaining storage space of the virtual backpack is smaller than a preset space threshold.
In some embodiments, virtual items in the virtual backpack that are not available to the virtual object may be considered as target virtual items in the virtual backpack that are recommended to be discarded. In this case, 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.
Matching virtual items refer to virtual items for which a virtual object is available, and non-matching virtual items refer to virtual items for which a virtual object is not available.
The matching virtual items of the virtual object may be virtual items that are paired with the currently equipped virtual items of the virtual object, currently in use virtual items, currently missing virtual items, preset virtual items available at the current level, and so forth.
There are various ways of determining the matching virtual object of the virtual object in step 1011A, including, for example:
(1) In some embodiments, a virtual item used in pairing with the currently equipped virtual item of the virtual object may be determined as a matching virtual item of the virtual object according to the currently equipped virtual item of the virtual object recorded in the background database.
For example, in the target game, an a1 type virtual bullet and an a2 type virtual bullet need to be used with a type 1 virtual gun, an a3 type virtual bullet and an a4 type virtual bullet need to be used with a type 2 virtual gun, and the virtual object is a virtual gun with a type 1 virtual object currently equipped in the target game, so that the a1 type virtual bullet and the 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 equipped virtual items of the virtual object 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 regarded as the matching virtual items of the virtual object.
(3) In some embodiments, the currently missing 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 missing virtual item of the virtual object in the target game includes a d1 type virtual first-aid kit and an e1 type virtual food, the d1 type virtual first-aid kit and the e1 type virtual food can be used as the matching virtual items of the virtual object.
(4) In some embodiments, a preset virtual item of the virtual object recorded in the background database that is available at the current level may be used as a matching virtual item of the virtual object.
For example, the preset virtual items available for the current level of the virtual object in the target game include: a1 type virtual bullet, b1 type virtual shoe, b2 type virtual shoe, c1 type virtual helmet, c2 type virtual helmet, c3 type virtual helmet, d1 type virtual first-aid kit, d2 type virtual first-aid kit, d3 type virtual first-aid kit, d4 type virtual first-aid kit, e1 type virtual food, e2 type virtual food, then the preset virtual article a1 type virtual bullet, b1 type virtual shoe, b2 type virtual shoe, c1 type virtual helmet, c2 type virtual helmet, c3 type virtual helmet, d1 type virtual first-aid kit, d2 type virtual first-aid kit, d3 type virtual first-aid kit, d4 type virtual first-aid kit, e1 type virtual food, e2 type virtual food available to the current level of the virtual object can be taken as the matching virtual article of the virtual object.
The preset virtual objects may be set according to different virtual objects, which is not limited to the example here, and the types and the number of the preset virtual objects may be set according to the actual service scene requirements.
1012A, acquiring article information of the matched virtual article.
1013A, determining a non-matching virtual item in the virtual knapsack as a target virtual item recommended to be discarded in the virtual knapsack based on item information of the virtual item in the virtual knapsack and item information of the matching virtual item.
Wherein, the non-matching virtual object refers to a virtual object that is not currently available.
Item information of all matching virtual items of the virtual object may be obtained through step 1012A, including but not limited to, information of names, uses, categories, occupied storage space, etc. of the matching virtual items.
Then, each virtual article in the virtual knapsack is traversed, and article information of the currently traversed virtual article in the virtual knapsack is compared with article information of the matched virtual article, so that 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 detected. 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 to be the matching virtual article; and if the item information of the current traversal virtual item is not matched with the item information of the virtual matching virtual item, determining that the current traversal virtual item is determined to be the non-matching virtual item.
After the virtual articles in the virtual knapsack are traversed, all the unmatched virtual articles in the virtual knapsack can be determined, and at the moment, all the unmatched virtual articles in the virtual knapsack can be used as recommended discarding target virtual articles in the virtual knapsack.
The matching rule may be preset, and according to the preset matching rule, 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 detected. For example, if the preset matching rule is that the names of the virtual objects are consistent, whether the object information of the currently traversed virtual object is matched with the object information of the matched virtual object of the virtual object is determined by comparing whether the names of the currently traversed virtual object are consistent with the names of the matched virtual objects. For another example, the preset matching rule is that the names and types of the virtual articles are identical, 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 names of the currently traversed virtual article are identical with the names and types of the matched virtual article. Here, the preset matching rule is merely an example, and may be specifically adjusted according to the actual service scenario requirement, which is not limited herein.
From the above, it can be seen that by determining a matching virtual article of a virtual object according to a current game state of the virtual object in a target game; the matching virtual articles based on the virtual objects find out the unmatched virtual articles of the virtual objects from the virtual knapsack as recommended discarding target virtual articles, so that the unusable articles of the virtual objects are found out from the virtual knapsack as recommended discarding target virtual articles, the recommended discarding virtual articles are guaranteed to be in accordance with the virtual articles which are discarded by the user in priority to a certain extent, the problem that more virtual articles in the knapsack are difficult to focus on the virtual discarding virtual articles is avoided, the time for the user to find out the virtual articles which need 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 the game is improved.
In some embodiments, virtual items in the virtual backpack that are available to the virtual object but redundant may be considered as target virtual items in the virtual backpack that are recommended to be discarded. In this case, step 101 may specifically include the following steps 1011B to 1013B:
1011B, determining the demand of the virtual object on various virtual objects based on the current game state of the virtual object in the target game.
The current game state of the virtual object further comprises the current allocation amount of the virtual object to each category of virtual object and the state attribute of the virtual object.
There are various ways to determine the demand of the virtual object for various types of virtual objects in step 1011B, which illustratively includes:
(1) In some embodiments, the demand of the virtual object for each category of virtual articles may be calculated according to the current allocation of the virtual object recorded in the background database for each category of virtual articles and the preset total amount that each category of virtual articles can be used simultaneously.
For example, if the preset total amount of virtual bullets that can be simultaneously used in the target game is 10 and the current preparation amount of virtual bullets of the virtual object is 8, it may be determined that the virtual object's demand amount for virtual bullets is 2.
(2) In some embodiments, the demand of the virtual object for each category of virtual object may be calculated from the state attributes of the virtual object recorded by the background database.
The state attribute of the virtual object may be combat data (such as blood volume, skill, etc.) of the virtual object.
For example, in a target game of a combat class, a required blood volume of a virtual object is calculated from a remaining blood volume of the virtual object recorded in a background database and a maximum blood volume preset by the virtual object; and determining the required blood volume of the virtual object on the virtual object for replenishing the blood volume according to the required blood volume of the virtual object, the virtual object (such as first-aid kit) for replenishing the blood volume, and a preset relation between the number of the virtual objects for replenishing the blood volume and the blood volume.
In another example, in the target game of the combat class, calculating the liftable skill grade number of the virtual object according to the skill grade of the virtual object recorded in the background database and the highest skill grade preset by the virtual object; and determining the demand of the virtual object on the virtual objects for improving the skill level class according to the number of the skill level classes of the virtual object, the virtual objects (such as virtual medicines) for improving the skill level class and the preset relation between the number of the virtual objects for improving the skill level class and the skill level.
1012B, determining redundancy of various virtual articles in the virtual knapsack based on article information of the virtual articles in the virtual knapsack and the demand of various virtual articles of the virtual object.
The redundancy of each category of virtual articles is used for indicating the storage amount of the category of virtual articles in the virtual knapsack and the demand of the virtual objects for the category of virtual articles. The redundancy of various virtual articles in the virtual backpack is determined in various ways, and the method comprises the following steps:
(1) The difference between the storage amount of each category of virtual items in the virtual backpack and the demand amount of the virtual object for the category of virtual items can be used as the redundancy of the category of virtual items as shown in the following formula (1). Thereby obtaining the redundancy of various virtual articles in the virtual knapsack.
R i =N i -M i Formula (1)
In the formula (1), R i Redundancy representing virtual items of class i, N i Representing the storage of virtual items of class i in a virtual backpack, M i Representing the demand of the virtual object for the virtual item of category i.
(2) The ratio of the difference between the storage amount of each category of virtual articles in the virtual knapsack and the demand of the virtual object for the category of virtual articles can be used as the redundancy of the category of virtual articles after the difference is made between the storage amount of each category of virtual articles in the virtual knapsack and the demand of the virtual object for the category of virtual articles, and the redundancy is shown in the following formula (2). Thereby obtaining the redundancy of various virtual articles in the virtual knapsack.
In the formula (2), R i Redundancy representing virtual items of class i, N i Representing the storage of virtual items of class i in a virtual backpack, M i Representing the demand of the virtual object for the virtual item of category i.
1013B, determining a target virtual article recommended to be discarded in the virtual knapsack based on the redundancy of various virtual articles in the virtual knapsack.
In some embodiments, a type of virtual item with the greatest redundancy among the virtual items of the virtual backpack may be used as the target virtual item recommended to be discarded in the virtual backpack.
In some embodiments, the virtual articles in the virtual knapsack may be ordered according to the redundancy of various virtual articles in the virtual knapsack from high to low, to obtain the order of various virtual articles in the virtual knapsack; and recommending the N types of virtual articles with the sequence of the top N as the target virtual articles to be discarded in the virtual knapsack.
From the above, the demand of the virtual object for various virtual objects 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 knapsack is determined based on the demand of the virtual objects for various virtual articles, so that the redundant virtual articles can be searched from the virtual knapsack to serve as target virtual articles recommended to be discarded, the virtual articles recommended to be discarded are guaranteed to be in accordance with the virtual articles which are discarded by the user in priority to a certain extent, the problem that the virtual articles in the knapsack are more and are difficult to focus on the virtual articles which are discarded in a quick manner is avoided, the time for searching the virtual articles which need to be discarded by the user is shortened, the discarding speed of the virtual articles is improved, and the convenience degree of the whole operation process of discarding the virtual articles in the game is improved.
102. And displaying the identification information of the target virtual object on a game interface of the target game.
The identification information of the target virtual article can have various expression forms, for example, the identification information of the target virtual article can be a prompt icon of the target virtual article, such as an article icon of the target virtual article; the prompt text of the target virtual article can also be used, such as the article name of the target virtual article.
In some examples, item icons of the target virtual items may be displayed at a game interface of the target game. So that the user can quickly view and focus on the virtual articles to be discarded.
In some examples, the item name of the target virtual item may be displayed by text at the game interface of the target game. So that the user can quickly view and focus on the virtual articles 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 article 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 by the expression form of the item icon, and fig. 2 (b) shows a case where the target virtual item is displayed by the expression form of the item name.
103. And responding to a triggering 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 knapsack.
Wherein the target identification information is 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 on the target identification information, where before step 103, further includes: detecting whether a clicking operation of 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 knapsack when the clicking operation of the target identification information in the identification information of the target virtual article is detected. For example, in fig. 2 (b), identification information of a target virtual article is displayed on a game interface of a target game, and after clicking a target identification information "gun", a user removes the target virtual article corresponding to the target identification information "gun" 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 dragging the target identification information to a preset position, and then further includes, before step 103: detecting whether a drag operation of 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 drag operation of the target identification information in the identification information of the target virtual article is detected. For example, in fig. 2 (b), identification information of a target virtual article is displayed at a game interface of a target game, and after a user clicks and drags the target identification information "helmet" to a preset position, the target virtual article 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 long pressing the target identification information for a preset duration, and then further includes, before step 103: detecting whether a long-press operation of 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 long-press operation of the target identification information in the identification information of the target virtual article is detected. For example, in fig. 2 (b), the identification information of the target virtual article is displayed on the game interface of the target game, and after the user presses the target identification information "boot" for 3 seconds, the target virtual article corresponding to the target identification information "boot" is removed from the virtual backpack.
The triggering operation of the target identification information in the identification information of the target virtual article may be various, and the triggering operation of 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 the actual service scene requirement.
From the above, it can be seen that by 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; displaying the target virtual articles recommended to be discarded in the virtual knapsack; on the one hand, the method and the device for recommending the virtual object to be discarded in the knapsack are based on the current game state of the virtual object, so that the recommended virtual object to be discarded accords with the virtual object which is preferentially considered to be discarded by the user to a certain extent, the problem that more virtual objects in the knapsack are difficult to quickly focus on the virtual object which is virtually discarded is avoided, and the time for searching the virtual object which needs to be discarded by the user 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 knapsack is avoided, the operation complexity of discarding the virtual object is reduced, the discarding speed of the virtual object is improved, and the convenience of the whole operation process of discarding the virtual object in the game is improved.
In an alternative embodiment, the trigger condition for cleaning the virtual backpack conforming to the virtual object in the target game means that the virtual object includes a virtual object 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 article, the target virtual article corresponding to the target identification information is removed from the virtual backpack, and the virtual article to be picked up corresponding to the trigger operation is put into the virtual backpack. The triggering operation may be a double click, a sliding, etc. operation for selecting the virtual item to be removed and the virtual item to be picked up.
In an alternative embodiment, the trigger condition for cleaning the virtual knapsack, which accords with the virtual object in the target game, means that the virtual object contains the virtual object to be picked up within the preset range of the virtual object and the remaining storage space of the virtual knapsack is detected to be smaller than the preset space threshold value. In response to a trigger operation on target identification information in the identification information of the target virtual article, the target virtual article corresponding to the target identification information is removed from the virtual backpack, and the virtual article to be picked up corresponding to the trigger operation is put into the virtual backpack. The triggering operation may be a double click, a sliding, 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 a 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.
At this time, step 102 may specifically include: when detecting that the object to be picked exists on 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 in response to the picking operation of the object to be picked up in the target game, displaying the identification information of the target virtual object on a game interface of the target game.
Illustratively, in some embodiments, in step "in response to a pickup operation of an item to be picked up in the target game, before the game interface of the target game displays the identification information of the target virtual item", further comprising: displaying identification information of the object to be picked up on a game interface of the target game; a pickup operation based on identification information of an item to be picked up displayed at 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, in response to the picking operation of the object to be picked in the target game, the identification information of the target virtual object is displayed on a game interface of the target game; a triggering operation of target identification information in the identification information of the target virtual article is detected.
When a triggering operation of 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 triggering 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 discard the virtual items in the virtual backpack based on the identification information of the target virtual item while picking up the items.
The identification information of the article to be picked up can have various expression forms, for example, the identification information of the article to be picked up can be an article icon of the article to be picked up, or can be an article name text of the article to be picked up.
The picking operation based on the identification information of the object to be picked up may have various expressions, for example, clicking the identification information of the object to be picked up.
The triggering operation of the target identification information in the identification information of the target virtual article may have various expression forms, for example, may be clicking the target identification information in the identification information of the target virtual article. For another example, dragging the identification information of the object to be picked up in the target game to the target identification information in the identification information of the target virtual object, where the "detecting the triggering operation on the target identification information in the identification information of the target virtual object" specifically may include: controlling the identification information of the object to be picked up to move to the identification information of the target virtual object in response to the dragging operation of the identification information of the object to be picked up in the target game; 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, a 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 described. Referring to fig. 3, fig. 3 is an explanatory diagram of discarding recommended target virtual articles according to an embodiment of the present application. For example, when an item to be picked up (such as the items 1, 2 to be picked up in fig. 3) appears in the game interface of the target game, a prompt window is popped up in the game interface of the target game for displaying the identification information of the target virtual item. When the user clicks and drags the object 2 to be picked up (i.e. "gun" icon) to the "helmet" in fig. 3, the "helmet" in the virtual backpack is replaced by "gun", i.e.: the "helmet" is removed from the virtual backpack and the "gun" is stored in the virtual backpack.
By dragging the identification information of the object to be picked up in the target game to the target identification information in the identification information of the target virtual object, the picking up of the object to be picked up and the removal of the target virtual object corresponding to the target identification information from the backpack are realized, and the picking up and discarding of the virtual object can be realized more intuitively and rapidly.
Further, in order to meet the cleaning requirement of the user on the virtual articles in the virtual knapsack, when the picking operation based on the identification information of the articles to be picked up is detected, and the remaining storage space of the virtual knapsack is smaller than a preset space threshold value, the identification information of the target virtual articles is displayed on a game interface of the target game in response to the picking operation on the articles to be picked up in the target game. Therefore, when the virtual knapsack is picked up under the condition that the residual storage space of the virtual knapsack is insufficient, the virtual knapsack can be cleaned timely and quickly, and the object to be picked up can be efficiently loaded into the virtual knapsack.
In some embodiments, in order to more intuitively display the recommended discard condition of the target virtual item recommended to be discarded in the virtual backpack, the game interface displaying the target game may display the identification information of the target virtual item, and simultaneously display the current storage amount and the recommended discard amount of the target virtual item recommended to be discarded.
In this case, the step 102 is preceded by the following steps a1 to a3:
a1, determining the article demand of the virtual object on the target virtual article based on the current game state of the virtual object in the target game.
There are various ways of determining the article demand of the virtual object for the target virtual article in the step a1, and for example, in some embodiments, the article demand of the virtual object for the target virtual article may be calculated according to the current allocation amount of the virtual object for the target virtual article recorded in the background database and the preset total amount that the target virtual article 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 preparation amount of virtual bullets of the virtual object is 8, the demand amount of virtual bullets by the virtual object can be determined as 2.
In step a1, the object demand of the virtual object for the target virtual object is similar to the demand of the virtual object for various virtual objects determined in step 1011B, and the description and examples of step 1011B may be referred to for simplicity, and details are not repeated here.
a2, acquiring the accumulated quantity of the target virtual article in the virtual knapsack.
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 article, the recommended discarding amount of the target virtual article and/or the accumulated amount of the target virtual article on a game interface of the target game.
Referring to fig. 4, for example, the target virtual object is determined as an f1 type virtual gun, a c1 type virtual helmet, and a b1 type virtual shoe, if the accumulated amounts of the f1 type virtual gun, the c1 type virtual helmet, and the b1 type virtual shoe in the virtual backpack are 5, 3, and 2, respectively, and the object demands of the virtual object for the f1 type virtual gun, the c1 type virtual helmet, and the b1 type virtual shoe are 2, 1, and 1, respectively, the recommended discarding amounts of the f1 type virtual gun, the c1 type virtual helmet, and the b1 type virtual shoe may be 3, 2, and 1, respectively.
And respectively displaying the identification information of the f1 type virtual gun, the c1 type virtual helmet and the b1 type virtual shoe and the recommended discarding amount 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.
Determining recommended discarding amount of the target virtual object based on the object demand amount of the virtual object on the target virtual object and the accumulated amount of the target virtual object in the virtual knapsack, and displaying identification information of the target virtual object, the recommended discarding amount of the target virtual object and/or the accumulated amount of the target virtual object on a game interface of the target game; the method and the system can display the accumulated quantity and/or the recommended discarding quantity of the target virtual articles recommended to be discarded while displaying the identification information of the target virtual articles on the game interface of the target game, and more intuitively display the recommended discarding condition of the target virtual articles recommended to be discarded in the virtual backpack. The problem that virtual articles in the backpack are more and are difficult to focus on virtual articles which are discarded in a quick mode is avoided, and therefore the time for a user to search for the virtual articles which need to be discarded is shortened, the discarding speed of the virtual articles is improved, and the convenience of the whole operation process of discarding the virtual articles in a game is improved.
In some embodiments, there may be multiple target virtual articles, so that in order to focus on the virtual articles to be discarded more quickly, the target virtual articles may be displayed sequentially according to the discarding habit of the user, for example, the target virtual articles may be displayed sequentially according to the size and redundancy of the occupied space of the target virtual articles.
At this time, 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 object on a game interface of the target game according to the display sequence.
The step of determining the display order of each of the target virtual items based on the item information of each of the target virtual items may be implemented in various ways, and illustratively includes:
(1) In some embodiments, based on item information for each of the target virtual items, acquiring a footprint for each of the target virtual items; 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 expression forms, for example, the occupied space of the target virtual article can be the total amount of the target virtual article in the virtual knapsack, 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, reference may be made to the steps 1011B to 1012B, which are not repeated herein for simplicity of description.
Specifically, after the occupied space of each target virtual article is determined, the target virtual articles can be ordered according to the occupied space of each target virtual article from high to low to obtain the sequence of each target virtual article, so as to serve as the display sequence 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 in the display order of each target virtual article obtained by sorting each target virtual article according to the occupation space from high to low. Therefore, each target virtual article can be displayed sequentially according to the occupied space, and the virtual articles with large occupied space can accord with the virtual articles which are discarded by the user in priority to a certain extent, so that each target virtual article is displayed according to the occupied space, and the virtual articles which need to be discarded can be focused more quickly.
As shown in fig. 5, for example, the target virtual object is determined as an f1 type virtual gun, a c1 type virtual helmet, and a b1 type virtual shoe, where the occupied spaces of the f1 type virtual gun, the c1 type virtual helmet, and the b1 type virtual shoe are 5, 1, 9, and 2, respectively, and then it may be determined that the display order of each target virtual object is sequentially c1 type virtual helmet, b1 type virtual shoe, and f1 type virtual gun, and the c1 type virtual helmet, the b1 type virtual shoe, and the f1 type virtual gun are sequentially displayed.
(2) In some embodiments, determining an item redundancy of the virtual object for each of the target virtual items based on a current game state of the virtual object in the target game and item information for each of the target virtual items; and determining the display sequence of each target virtual article according to the article redundancy of each target virtual article.
The step of determining the article redundancy of the virtual object for 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 foregoing steps 1011B to 1012B, and particularly may be referred to the foregoing steps 1011B to 1012B, which are not repeated herein for simplicity of description.
Specifically, after determining the object redundancy of each target virtual object, the object virtual objects may be ordered according to the object redundancy of each target virtual object from high to low according to the object redundancy, to obtain the order of each target virtual object, so as to be used as the display order of each target virtual object.
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 in the display order of each target virtual article obtained by sorting each target virtual article from high to low according to the article redundancy. Therefore, the virtual articles with larger article redundancy can be displayed sequentially according to the occupied space, and the virtual articles with larger article redundancy can accord with the virtual articles which are discarded by the user preferentially to a certain extent, so that the virtual articles with the targets are displayed according to the article redundancy, and the virtual articles which are required to be discarded can be focused more quickly.
The display reference factors are respectively the occupied space of each target virtual article and the article redundancy to determine the display sequence of each target virtual article, and it can be understood that other display reference factors, such as the number of each target virtual article, can be determined based on the article information of each target virtual article, and the display sequence of each target virtual article can be determined based on other display reference factors. Alternatively, the display order of each target virtual article may be determined in combination with two or more of display reference factors such as space occupation, article redundancy, and the like.
In order to better implement the above method, the 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, where the computer device may be a terminal, a server, or other devices.
The terminal can be a mobile phone, a tablet personal 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, a method according to an embodiment of the present invention will be described in detail by taking a specific integration of an in-game virtual article processing apparatus in a smart phone as an example.
For example, as shown in fig. 6, the in-game virtual article processing apparatus may include a determination unit 601, a display unit 602, and a processing unit 603, as follows:
and (one) a determination unit 601.
The determining unit 601 may be configured to determine, if a cleaning trigger condition of a virtual knapsack of a virtual object in a target game is met, a target virtual object recommended to be discarded in the virtual knapsack based on item information of a virtual object in the virtual knapsack and a current game state of the virtual object.
And (two) a display unit 602.
The display unit 602 may be configured to display identification information of the target virtual article on a game interface of the target game.
And (iii) a processing unit 603.
The processing unit 603 may be configured to remove the target virtual article 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 article.
In some embodiments of the present application, the determining unit 601 is specifically configured to:
determining a matching virtual object of the virtual object based on a current game state of the virtual object in the target game;
acquiring article information of the matched virtual article;
And determining non-matching virtual articles in the virtual knapsack as recommended target virtual articles to be discarded in the virtual knapsack based on the article information of the virtual articles in the virtual knapsack and the article information of the matching virtual articles.
In some embodiments of the present application, the determining unit 601 is specifically configured to:
determining the demand of the virtual object on various virtual objects based on the current game state of the virtual object in the target game;
determining redundancy of various virtual articles in the virtual knapsack based on article information of the virtual articles in the virtual knapsack and the demand of the virtual objects for various virtual articles;
and determining a target virtual article recommended to be discarded in the virtual knapsack based on the redundancy of various virtual articles in the virtual knapsack.
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 up 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 the target virtual item corresponding to the target identification information from the virtual backpack in response to the triggering operation of the target identification information in the identification information of the target virtual item, the processing unit 603 is specifically configured to:
And storing the object to be picked into the virtual knapsack.
In some embodiments of the present application, the in-game virtual article processing apparatus 600 further includes a detection unit (not shown in the figure), and before the step of removing the target virtual article corresponding to the target identification information from the virtual backpack in response to the triggering operation of the target identification information in the identification information of the target virtual article, the detection unit is specifically configured to:
controlling the identification information of the object to be picked up to move to the identification information of the target virtual object in response to the dragging operation of the identification information of the object to be picked up in the target game;
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, forming a triggering operation on the target identification information in the identification information of the target virtual object.
In some embodiments of the present application, the display unit 602 is specifically configured to:
determining an item demand of the virtual object for the target virtual item based on a current game state of the virtual object in the target game;
acquiring the accumulated amount of the target virtual article in the virtual knapsack;
Determining a recommended discard amount of the target virtual item according to the accumulated amount and the item demand;
and displaying the identification information of the target virtual article and the recommended discarding amount of the target virtual article 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 object 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 article redundancy of the virtual object to each target virtual article based on a current game state of the virtual object in the target game and 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 the cleaning triggering condition of the virtual knapsack of the virtual object in the target game is met, before determining the step of recommending the discarded target virtual object in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object, the determining unit 601 is specifically configured to:
detecting the remaining storage space of a virtual knapsack 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 knapsack which accords with the virtual object in the target game.
As can be seen from the above, the in-game virtual article processing apparatus of the present embodiment may determine, by the determining unit 601, when the cleaning trigger condition of the virtual knapsack of the in-game virtual object meets the cleaning trigger condition, a target virtual article recommended to be discarded in the virtual knapsack based on article information of the virtual article in the virtual knapsack and a current game state of the virtual object; displaying, by the display unit 602, identification information of the target virtual article on a game interface of the target game; the target virtual article corresponding to the target identification information is removed from the virtual backpack by the processing unit 603 in response to a trigger operation on the target identification information in the identification information of the target virtual article. On the one hand, the method and the device for recommending the virtual object to be discarded in the knapsack are based on the current game state of the virtual object, so that the recommended virtual object to be discarded accords with the virtual object which is preferentially considered to be discarded by the user to a certain extent, the problem that more virtual objects in the knapsack are difficult to quickly focus on the virtual object which is virtually discarded is avoided, and the time for searching the virtual object which needs to be discarded by the user 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 knapsack is avoided, the operation complexity of discarding the virtual object is reduced, the discarding speed of the virtual object is improved, and the convenience of the whole operation process of discarding the virtual object in the game is improved.
Correspondingly, the embodiment of the application also provides a computer device, which can be a terminal, and the terminal can 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, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and the like. Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application, as shown in fig. 7. The computer device 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. It will be appreciated by those skilled in the art that the computer device structure shown in the figures is not limiting of the computer device and may include more or fewer components than shown, or may combine certain components, 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, and 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 performing overall monitoring of the computer device 700.
In the embodiment of the present application, the processor 701 in the computer device 700 loads the instructions corresponding to the processes of one or more application programs into the memory 702 according to the following steps, and the processor 701 executes the application programs stored in the memory 702, so as to implement various functions:
if the cleaning triggering condition of a virtual knapsack of a virtual object in a target game is met, determining a target virtual object recommended to be discarded in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object;
displaying the identification information of the target virtual object on a game interface of the target game;
and responding to a triggering 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 knapsack.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 7, the computer device 700 further includes: a touch display 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 703, the radio frequency circuit 704, the audio circuit 705, the input unit 706, and the power supply 707, respectively. Those skilled in the art will appreciate that the computer device structure shown in FIG. 7 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components.
The touch display 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. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of a computer device, which may be composed 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, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), 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 azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 701, and can receive and execute commands sent from the processor 701. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is transferred to the processor 701 to determine the type of touch event, and the processor 701 then provides a corresponding visual output on the display panel based on the type of 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 implement the input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch display 703 may also implement an input function as part of the input unit 706.
The radio frequency circuitry 704 may be configured to transceive radio frequency signals to establish wireless communication with a network device or other computer device via wireless communication.
Audio circuitry 705 may be used to provide an audio interface between a user and a computer device through speakers, microphones, and so forth. The audio circuit 705 may transmit the received electrical signal converted from audio data to a speaker, where it is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 705 and converted into audio data, which are processed by the audio data output processor 701 for transmission to, for example, another computer device via the radio frequency circuit 704, or which are output to the memory 702 for further processing. Audio circuitry 705 may also include an ear bud jack to provide communication of a peripheral headset with a 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.), as well as to 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. Alternatively, the power supply 707 may be logically connected to the processor 701 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system. The power supply 707 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, 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 will not be described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, 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 knapsack and the current game state of the virtual object, a target virtual item recommended to be discarded in the virtual knapsack; displaying the target virtual articles recommended to be discarded in the virtual knapsack; on the one hand, the method and the device for recommending the virtual object to be discarded in the knapsack are based on the current game state of the virtual object, so that the recommended virtual object to be discarded accords with the virtual object which is preferentially considered to be discarded by the user to a certain extent, the problem that more virtual objects in the knapsack are difficult to quickly focus on the virtual object which is virtually discarded is avoided, and the time for searching the virtual object which needs to be discarded by the user 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 knapsack is avoided, the operation complexity of discarding the virtual object is reduced, the discarding speed of the virtual object is improved, and the convenience of the whole operation process of discarding the virtual object in the game is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a plurality of computer programs that can be loaded by a processor to perform steps in any of the in-game virtual item processing methods provided by embodiments of the present application. For example, the computer program may perform the steps of:
if the cleaning triggering condition of a virtual knapsack of a virtual object in a target game is met, determining a target virtual object recommended to be discarded in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object;
displaying the identification information of the target virtual object on a game interface of the target game;
and responding to a triggering 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 knapsack.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the computer program stored in the computer readable storage medium may execute the steps in any method for processing virtual articles in a game provided in the embodiments of the present application, the beneficial effects that any method for processing virtual articles in a game provided in the embodiments of the present application may be achieved are described in detail in the previous embodiments, and are not described herein.
The above describes in detail a method, an apparatus, a computer readable storage medium and a computer device for processing virtual articles in a game provided in the embodiments of the present application, and specific examples are applied to illustrate principles and implementations of the present application, where the above description of the embodiments is only for helping to understand the method and core ideas of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (12)

1. A method for processing virtual articles in a game, comprising:
if the cleaning triggering condition of a virtual knapsack of a virtual object in a target game is met, determining a target virtual object recommended to be discarded in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object; the article information of the virtual article comprises at least one of the name, the purpose, the category, the occupied storage space and the quantity of the virtual article; the current game state of the virtual object comprises at least one of a currently equipped virtual object, a currently not equipped virtual object, a currently in-use virtual object, a currently absent virtual object and a preset virtual object with a current grade available;
displaying the identification information of the target virtual object on a game interface of the target game;
removing the target virtual article corresponding to the target identification information from the virtual knapsack in response to a triggering operation of the target identification information in the identification information of the target virtual article;
the determining, based on the item information of the virtual items in the virtual knapsack and the current game state of the virtual object, a target virtual item recommended to be discarded in the virtual knapsack includes:
Determining the demand of the virtual object on various virtual objects based on the current game state of the virtual object in the target game;
determining redundancy of various virtual articles in the virtual knapsack based on article information of the virtual articles in the virtual knapsack and the demand of the virtual objects for various virtual articles;
and determining a target virtual article recommended to be discarded in the virtual knapsack based on the redundancy of various virtual articles in the virtual knapsack.
2. The in-game virtual item processing method of claim 1, wherein the 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 comprises:
determining a matching virtual object of the virtual object based on a current game state of the virtual object in the target game;
acquiring article information of the matched virtual article;
and determining non-matching virtual articles in the virtual knapsack as recommended target virtual articles to be discarded in the virtual knapsack based on the article information of the virtual articles in the virtual knapsack and the article information of the matching virtual articles.
3. The in-game virtual article processing method according to claim 1, wherein the displaying of the identification information of the target virtual article at the game interface of the target game includes:
responding to the picking operation of the object to be picked up in the target game, and displaying the identification information of the target virtual object on a game interface of the target game;
the method further comprises the steps of responding to triggering operation of target identification information in the identification information of the target virtual article, removing the target virtual article corresponding to the target identification information from the virtual knapsack, and then further comprising:
and storing the object to be picked into the virtual knapsack.
4. The in-game virtual item processing method according to claim 3, wherein the removing the target virtual item corresponding to the target identification information from the virtual backpack in response to a trigger operation of the target identification information in the identification information of the target virtual item, further comprises:
controlling the identification information of the object to be picked up to move to the identification information of the target virtual object in response to the dragging operation of the identification information of the object to be picked up in the target game;
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, forming a triggering operation on the target identification information in the identification information of the target virtual object.
5. The in-game virtual article processing method according to claim 1, wherein displaying the identification information of the target virtual article on the game interface of the target game further comprises, before:
determining an item demand of the virtual object for the target virtual item based on a current game state of the virtual object in the target game;
acquiring the accumulated amount of the target virtual article in the virtual knapsack;
determining a recommended discard amount of the target virtual item according to the accumulated amount and the item demand;
the displaying the identification information of the target virtual article on the game interface of the target game comprises the following steps:
and displaying the identification information of the target virtual article and the recommended discarding amount of the target virtual article on a game interface of the target game.
6. The in-game virtual article processing method according to claim 1, wherein the target virtual article includes a plurality of, and the displaying of the identification information of the target virtual article at the game interface of the target game further includes, before:
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 the following steps:
and displaying the identification information of each target virtual object on a game interface of the target game according to the display sequence.
7. The in-game virtual article processing method according to claim 6, wherein the determining a display order of each of the target virtual articles based on 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.
8. The in-game virtual article processing method according to claim 6, wherein the determining a display order of each of the target virtual articles based on article information of each of the target virtual articles includes:
determining article redundancy of the virtual object to each target virtual article based on a current game state of the virtual object in the target game and 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.
9. The method for processing virtual objects in a game according to any one of claims 1 to 8, wherein if the cleaning trigger condition of the virtual knapsack of the virtual object in the target game is met, determining the target virtual object recommended to be discarded in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object, further comprising:
detecting the remaining storage space of a virtual knapsack 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 knapsack which accords with the virtual object in the target game.
10. An in-game virtual article processing apparatus, comprising:
the determining unit is used for determining a target virtual object recommended to be discarded in the virtual knapsack based on the object information of the virtual object in the virtual knapsack and the current game state of the virtual object if the cleaning triggering condition of the virtual knapsack of the virtual object in the target game is met; the article information of the virtual article comprises at least one of the name, the purpose, the category, the occupied storage space and the quantity of the virtual article; the current game state of the virtual object comprises at least one of a currently equipped virtual object, a currently not equipped virtual object, a currently in-use virtual object, a currently absent virtual object and a preset virtual object with a current grade available;
The display unit is used for displaying the identification information of the target virtual object on a game interface of the target game;
a processing unit, configured to remove, from the virtual backpack, a target virtual article corresponding to target identification information in response to a trigger operation on the target identification information in the identification information of the target virtual article;
the determining, based on the item information of the virtual items in the virtual knapsack and the current game state of the virtual object, a target virtual item recommended to be discarded in the virtual knapsack includes:
determining the demand of the virtual object on various virtual objects based on the current game state of the virtual object in the target game;
determining redundancy of various virtual articles in the virtual knapsack based on article information of the virtual articles in the virtual knapsack and the demand of the virtual objects for various virtual articles;
and determining a target virtual article recommended to be discarded in the virtual knapsack based on the redundancy of various virtual articles in the virtual knapsack.
11. A terminal comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps in the method of in-game virtual item handling as claimed in any one of claims 1 to 9.
12. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the method of in-game virtual item processing of any one of claims 1 to 9.
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 CN113546425A (en) 2021-10-26
CN113546425B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114404969A (en) * 2022-01-21 2022-04-29 腾讯科技(深圳)有限公司 Virtual article processing method and device, electronic equipment and storage medium

Citations (7)

* 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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108888956B (en) * 2018-06-27 2022-02-25 腾讯科技(深圳)有限公司 Display method, equipment and storage medium of virtual backpack display interface
CN109126129B (en) * 2018-08-31 2022-03-08 腾讯科技(深圳)有限公司 Method, device and terminal for picking up virtual article in virtual environment
CN110141869A (en) * 2019-04-11 2019-08-20 腾讯科技(深圳)有限公司 Method of controlling operation thereof, device, electronic equipment and storage medium

Patent Citations (7)

* 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
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

Also Published As

Publication number Publication date
CN113546425A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN108494665B (en) Group message display method and mobile terminal
CN108259990A (en) A kind of method and device of video clipping
CN112689201B (en) Barrage information identification method, barrage information display method, server and electronic equipment
CN106909667B (en) Application recommendation method and device based on desktop starter and mobile terminal
CN109508399A (en) A kind of facial expression image processing method, mobile terminal
CN113350783B (en) Game live broadcast method and device, computer equipment and storage medium
CN113101657B (en) Game interface element control method, game interface element control device, computer equipment and storage medium
WO2021120875A1 (en) Search method and apparatus, terminal device and storage medium
CN110162653B (en) Image-text sequencing recommendation method and terminal equipment
CN111325204A (en) Target detection method, target detection device, electronic equipment and storage medium
CN113018864A (en) Virtual object prompting method and device, storage medium and computer equipment
CN108390998A (en) A kind of method and mobile terminal for sharing file
CN113546425B (en) Method, device, terminal and storage medium for processing virtual article in game
CN110502164A (en) A kind of interface display method and electronic equipment
CN107728877B (en) Application recommendation method and mobile terminal
CN111701243A (en) Virtual object configuration method, virtual object display method and device
CN109993234A (en) A kind of unmanned training data classification method, device and electronic equipment
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
CN110489177B (en) Application control method and device, storage medium and terminal 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
CN113332718B (en) Interactive element query method and device, electronic equipment and storage medium
CN112333029B (en) Network architecture configuration information generation method and device, storage medium and electronic equipment
CN113413599A (en) Virtual article management method, device, terminal and storage medium

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