CN108579088B - Method, apparatus and medium for controlling virtual object to pick up virtual article - Google Patents

Method, apparatus and medium for controlling virtual object to pick up virtual article Download PDF

Info

Publication number
CN108579088B
CN108579088B CN201810402929.5A CN201810402929A CN108579088B CN 108579088 B CN108579088 B CN 108579088B CN 201810402929 A CN201810402929 A CN 201810402929A CN 108579088 B CN108579088 B CN 108579088B
Authority
CN
China
Prior art keywords
virtual
item
article
value
virtual object
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
CN201810402929.5A
Other languages
Chinese (zh)
Other versions
CN108579088A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810402929.5A priority Critical patent/CN108579088B/en
Publication of CN108579088A publication Critical patent/CN108579088A/en
Application granted granted Critical
Publication of CN108579088B publication Critical patent/CN108579088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • 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/60Methods for processing data by generating or executing the game program
    • 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/60Methods for processing data by generating or executing the game program
    • A63F2300/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for controlling a virtual object to pick up a virtual article, and belongs to the field of computers. The method comprises the following steps: controlling a virtual object to move in a virtual environment; when a first virtual article exists in a preset distance range of the virtual object, acquiring a first article type of the first virtual article; determining whether the first virtual article is a virtual article with a use requirement on the virtual object according to the type of the first article; and when the first virtual item is a virtual item for which the virtual object has a use demand, controlling the virtual object to pick up the first virtual item. According to the method and the device, the first virtual article in the preset distance range of the virtual object is determined to be the virtual article of the virtual object with the use requirement, so that the first virtual article is picked up, and the terminal can automatically pick up the virtual article according to the use requirement of the virtual object, so that the control convenience of the virtual environment application program is improved.

Description

Method, apparatus and medium for controlling virtual object to pick up virtual article
Technical Field
The present application relates to the field of computers, and in particular, to a method, an apparatus, a device, and a storage medium for controlling a virtual object to pick up a virtual item.
Background
On terminals such as smartphones, tablets, etc., there are many applications with two-dimensional or three-dimensional virtual environments, such as: virtual reality applications, three-dimensional map programs, military simulation programs, First-person shooter Games (FPS), Multiplayer online battle sports Games (MOBA), and the like.
In the above application, each user may manipulate a virtual object that is capable of picking up a virtual item in the virtual environment. In the related art, a user is required to manually select to pick up a virtual item, for example, the user controls a virtual object to be close to the virtual item and then selects whether to pick up or discard the virtual item in a user interface.
When the virtual objects related to the virtual environment are various in types and various in performance, a user cannot accurately judge whether the virtual objects are matched with the virtual objects or not by manually picking up the virtual objects, and the control convenience of the virtual environment application program is reduced.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for controlling a virtual object to pick up a virtual article, which are used for solving the problem that a user cannot accurately judge whether the virtual article is matched with the virtual object by manually picking up the virtual article in the related art. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a method for controlling a virtual object to pick up a virtual item, where the method includes:
controlling the virtual object to move in a virtual environment in which at least one virtual item exists for the virtual object to pick up;
when a first virtual article exists in a preset distance range of the virtual object, acquiring a first article type of the first virtual article;
determining whether the first virtual article is a virtual article with use requirements on the virtual object according to the type of the first article;
when the first virtual item is a virtual item with a use demand of the virtual object, controlling the virtual object to pick up the first virtual item.
In one aspect, an embodiment of the present application provides an apparatus for controlling a virtual object to pick up a virtual item, where the apparatus includes:
a processing module for controlling the virtual object to move in a virtual environment in which at least one virtual item exists for the virtual object to pick up;
the acquisition module is used for acquiring a first article type of a first virtual article when the first virtual article exists in a preset distance range of the virtual object;
the processing module is further used for determining whether the first virtual article is a virtual article with a use requirement on the virtual object according to the first article type; when the first virtual item is a virtual item with a use demand of the virtual object, controlling the virtual object to pick up the first virtual item.
In one aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the method for controlling a virtual object to pick up a virtual article as described above.
In one aspect, the present application provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for controlling a virtual object to pick up a virtual article as described above.
The technical scheme provided by the embodiment of the application has the following beneficial effects that:
the method comprises the steps of obtaining a first article type of a first virtual article when the first virtual article is detected to be in a preset distance range of a virtual object, determining whether the first virtual article is a virtual article of the virtual object with a use requirement according to the first article type, and controlling the virtual object to pick up the first virtual article when the first virtual article is a virtual article of the virtual object with a use requirement.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block diagram of a computer system provided in an exemplary embodiment of the present application;
FIG. 2 is a flowchart of a method for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application;
FIG. 3 is a schematic illustration of a display interface for a virtual object's mounting grid and back-pack grid as provided by an exemplary embodiment of the present application;
FIG. 4 is a diagram of a virtual object picking up a virtual item according to an exemplary embodiment of the present application;
FIG. 5 is a diagram of a virtual object picking up a virtual item according to an exemplary embodiment of the present application;
FIG. 6 is a flowchart of a method for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application;
FIG. 7 is a flowchart of a method for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application;
FIG. 8 is a schematic diagram of the sum of feature values provided by an exemplary embodiment of the present application;
FIG. 9 is a flowchart of a method for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application;
FIG. 10 is a diagram illustrating a callback corresponding event to a feature value that generates a change according to an exemplary embodiment of the present application;
FIG. 11 is a flowchart of a method for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application;
FIG. 12 is a schematic illustration of a determination of whether a changed second characteristic value matches a first characteristic of a first virtual article as provided by an exemplary embodiment of the present application;
fig. 13 is a block diagram of an apparatus for controlling a virtual object to pick up a virtual object according to an exemplary embodiment of the present application;
fig. 14 is a block diagram of an apparatus for controlling a virtual object to pick up a virtual object according to an exemplary embodiment of the present application;
fig. 15 is a device structure diagram of an electronic apparatus according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms referred to in the embodiments of the present application are described:
virtual environment: is a virtual environment that is displayed (or provided) when an application is run on the terminal. The virtual environment may be a simulation environment of a real world, a semi-simulation semi-fictional environment, or a pure fictional environment. The virtual environment may be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, which is not limited in this application. The following embodiments are illustrated with the virtual environment being a three-dimensional virtual environment.
Virtual object: refers to a movable object in a virtual environment. The movable object can be a virtual character, a virtual animal, an animation character, etc., such as: characters, animals, plants, oil drums, walls, stones, etc. displayed in a three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional volumetric model created based on animated skeletal techniques. Each virtual object has its own shape and volume in the three-dimensional virtual environment, occupying a portion of the space in the three-dimensional virtual environment.
Virtual article: refers to the item that the virtual object is assembled or carried. For example, the virtual object may be a backpack attached to the virtual object, a weapon attached to the virtual object, a medicine carried by the virtual object, or the like. Optionally, an application program interface of the virtual environment has an assembly position and a knapsack case, the virtual object is assembled when the user stores the virtual object in the assembly position, the knapsack case is owned when the virtual object stores the knapsack in the assembly position, all virtual objects that the user cannot assemble on the virtual object can be stored in the knapsack case, for example, drugs, bandages or redundant weapons that cannot be assembled, and the virtual object carries the virtual object when the virtual object is stored in the knapsack case.
A machine learning model: the method is an operation model and is formed by connecting a plurality of nodes (or neurons) with each other, each node corresponds to a strategy function, and the connection between every two nodes represents a weighted value for a signal passing through the connection, which is called as a weight. After the samples are input into the nodes of the machine learning model, an output result is output through each node, the output result is used as an input sample of the next node, the machine learning model adjusts the strategy function and the weight of each node through the final output result of the samples, and the process is called training.
Referring to fig. 1, a block diagram of a computer system according to an exemplary embodiment of the present application is shown. The computer system 100 includes: a first terminal 120, a server 140, and a second terminal 160.
The first terminal 120 is installed and operated with an application program supporting a virtual environment. The application program can be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, an FPS game, an MOBA game and a multi-player gun battle type survival game. The first terminal 120 is a terminal used by a first user who uses the first terminal 120 to control a first virtual object located in a virtual environment to perform activities including, but not limited to: adjusting at least one of body posture, crawling, walking, running, riding, jumping, driving, picking, shooting, attacking, throwing. Illustratively, the first virtual object is a first virtual character, such as a simulated persona or an animated persona.
The first terminal 120 is connected to the server 140 through a wireless network or a wired network.
The server 140 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. The server 140 is used to provide background services for applications that support a three-dimensional virtual environment. Alternatively, the server 140 undertakes primary computational work and the first and second terminals 120, 160 undertake secondary computational work; alternatively, the server 140 undertakes the secondary computing work and the first terminal 120 and the second terminal 160 undertakes the primary computing work; alternatively, the server 140, the first terminal 120, and the second terminal 160 perform cooperative computing by using a distributed computing architecture.
The second terminal 160 is installed and operated with an application program supporting a virtual environment. The application program can be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, an FPS game, an MOBA game and a multi-player gun battle type survival game. The second terminal 160 is a terminal used by a second user who uses the second terminal 160 to control a second virtual object located in the virtual environment to perform activities including, but not limited to: adjusting at least one of body posture, crawling, walking, running, riding, jumping, driving, picking, shooting, attacking, throwing. Illustratively, the second virtual object is a second virtual character, such as a simulated persona or an animated persona.
Optionally, the first virtual character and the second virtual character are in the same virtual environment. Alternatively, the first avatar and the second avatar may belong to the same team, the same organization, have a friend relationship, or have temporary communication rights.
Alternatively, the applications installed on the first terminal 120 and the second terminal 160 are the same, or the applications installed on the two terminals are the same type of application of different control system platforms. The first terminal 120 may generally refer to one of a plurality of terminals, and the second terminal 160 may generally refer to one of a plurality of terminals, and this embodiment is only illustrated by the first terminal 120 and the second terminal 160. The device types of the first terminal 120 and the second terminal 160 are the same or different, and include: at least one of a smartphone, a tablet, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, and a desktop computer. The following embodiments are illustrated with the terminal comprising a smartphone.
Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be only one, or several tens or hundreds of the terminals, or more. The number of terminals and the type of the device are not limited in the embodiments of the present application.
Referring to fig. 2, a flowchart of a method for controlling virtual object pick-up for a virtual item according to an exemplary embodiment of the present application is shown. The method may be applied in the first terminal 110 or the second terminal 160 in a computer system as shown in fig. 1 or in other terminals in the computer system. The method comprises the following steps:
step 201, controlling the virtual object to move in the virtual environment, wherein at least one virtual item for the virtual object to pick up exists in the virtual environment.
The terminal controls the virtual object to move in the movable space of the virtual environment. The movable space is the range in which the virtual object can move in the virtual environment, and comprises the air, the outdoor ground, the water, the indoor, the building, the tree cluster, the mountains and the land which can climb, and the like. For example, in the virtual environment, it may be set that the virtual object can move in a plain surrounded by mountains, the plain is a movable space of the virtual object, mountains which cannot climb around the plain are areas where the virtual object cannot move, and the terminal may control the virtual object to move in the movable space by walking, running, climbing, driving a vehicle, and the like. Wherein at least one virtual item for the virtual object to pick up exists in the movable space of the virtual object, and the virtual item can be at least one of a weapon, a piece of armour, ammunition, an accessory, a supply item and a backpack.
Illustratively, a control is displayed in a display interface of the virtual environment, the control may be a virtual direction rocker, a user may trigger a movement signal by clicking or pressing the virtual direction rocker, and the terminal controls the virtual object to move in the movable space after receiving the movement signal; or, the user triggers the movement signal through a physical key, for example, the user clicks a mouse, or presses a preset movement key of a keyboard, or presses an entity rocker of a handle of the terminal to trigger the movement signal, and the terminal controls the virtual object to move in the movable space after receiving the movement signal.
Step 202, when a first virtual article exists in the preset distance range of the virtual object, a first article type of the first virtual article is obtained.
The terminal detects whether a first virtual article exists in a preset distance range by taking the virtual object as a center, and acquires the article type of the first virtual article when the first virtual article exists in the preset distance range.
For example, the terminal may obtain the first item type of the first virtual item in a database of the application according to the identifier of the first virtual item. Wherein the first article type comprises at least one of a weapon type, a ammunition type, a armour type, a backpack type, an accessory type, a refill type, a projectile type, a vehicle type, and an energy source type. The virtual article assembled by the virtual object refers to a virtual article that can be directly used by the virtual object. For example, a grenade is stored in the fitting set of the throw type, and the grenade can be used by a user by clicking the grenade stored in the fitting set of the throw type.
The virtual item carried by the virtual object is a virtual item owned by the virtual object but cannot be used directly. For example, a virtual object equipped backpack has a grenade stored in its back grid, which the user needs to move to a throwing-type fitting location for storage before clicking on use of the grenade.
As shown in FIG. 3, the virtual object 300 corresponds to a plurality of assembly positions (circular icons in FIG. 3), each assembly position corresponding to an item type. The article types include weapon type, ammunition type, armour type, backpack type, accessory type, supply type, projectile type, vehicle type, and energy type, among others. The virtual object 300 is stored in the assembly station, and the virtual object 300 is assembled with the virtual object, for example, the virtual object a of the weapon type is stored in the assembly station of the weapon type 1, the virtual object B of the weapon type is stored in the assembly station of the weapon type 2, and the virtual object 300 is assembled with the virtual object a and the virtual object B. The virtual object 300 may have a knapsack-type item stored in a knapsack-type assembly location, and may be configured to store a virtual item that cannot be assembled, or may be configured to store a virtual item that is not assembled, for example, when the virtual item is not assembled, the virtual item of weapon type is stored in both weapon-type assembly locations of the virtual object 300, and if the virtual object picks up a virtual item of a third weapon type, the virtual item may be stored in the knapsack-type compartment, and the virtual object carries the virtual item. A weapon assembled or carried by the virtual object, such as a pistol or a submachine gun, a virtual article belonging to the weapon type, a corresponding cartridge of the weapon, such as a pistol cartridge or a submachine gun cartridge, a virtual article belonging to the ammunition type; armour, such as body armor or helmets, fitted or carried by virtual objects, virtual articles belonging to the armour type; a backpack that the virtual object fits or carries, a virtual item belonging to the backpack type; accessories, such as sighting telescope or bullet magazine, assembled or carried by the virtual object, virtual objects belonging to the accessory type; a replenishment item carried by the virtual object, such as a medicine or bandage, belonging to a replenishment type of virtual item; throwing weapons, such as grenades or flares, assembled or carried by virtual objects, belong to the virtual objects of the type of thrower; a vehicle carried by the virtual object, such as a bicycle or a motorcycle, a virtual item belonging to the vehicle type; the energy source, such as gasoline or battery, that the virtual object is equipped with or carries is a virtual item of the energy type.
Step 203, determining whether the first virtual article is a virtual article with a use requirement on the virtual object according to the type of the first article.
The terminal detects whether the first virtual article is a virtual article with a use requirement on the virtual object according to the type of the first article.
For example, the virtual object having the use requirement is a virtual object having a free installation position. As shown in fig. 4, the virtual object 300 has two assembly positions 411 and 412 corresponding to weapon types, wherein the assembly position 411 stores a weapon 420, the assembly position 412 does not store a weapon, and the virtual object of the weapon type is a virtual object with an empty assembly position. When the virtual object 400 has the first virtual item 421 within the preset distance range, and the item type corresponding to the first virtual item 421 is a weapon type, the first virtual item 421 is a virtual item for which the virtual object has a use requirement.
For example, when the virtual object is equipped with a second virtual item of the first item type, the virtual item for which the use requirement of the virtual object exists is a virtual item having a better item property than the second virtual item. As shown in fig. 5, the assembly site 511 of the virtual object 300 stores body armor 520, the article attribute of which is protection level 1, and the article type is a type of armour. Within the preset distance range of the virtual object 300, there is a first virtual article 521, and the first virtual article 521 is body armor with an article attribute of protection class 2 and a first article type of protection class. Therefore, the first virtual article 521 is a virtual article having better properties than the body armor 520 article, and is a virtual article for which the use requirement of the virtual object exists.
And 204, controlling the virtual object to pick up the first virtual item when the first virtual item is a virtual item with a use requirement of the virtual object.
And when the terminal confirms that the first virtual article is a virtual article for which the virtual object has a use demand, controlling the virtual object to pick up the first virtual article. The terminal controls the virtual object to pick up the first virtual article, and the user does not need to judge whether the first virtual article needs to be picked up, so that the virtual article with the use requirement can be automatically picked up in the virtual environment.
Optionally, when the assembly position corresponding to the first article type is empty, the terminal controls the virtual object to pick up the first virtual article, and then stores the first virtual article in the assembly position corresponding to the first article type.
Optionally, when the virtual object is equipped with a second virtual item of the first item type, the terminal controls the virtual object to pick up the first virtual item, and then stores the first virtual item in the backpack lattice.
Optionally, when the virtual object is equipped with a second virtual object of the first object type, after the terminal controls the virtual object to pick up the first virtual object, the second virtual object is removed from the assembly position and stored in the backpack grid, and the first virtual object is stored in the assembly position.
To sum up, in the embodiment of the present application, when a first virtual article is detected within a preset distance range of a virtual object, a first article type of the first virtual article is obtained, whether the first virtual article is a virtual article for which the virtual object has a use requirement is determined according to the first article type, and when the first virtual article is a virtual article for which the virtual object has a use requirement, the virtual object is controlled to pick up the first virtual article, so that a problem that a user cannot accurately judge whether the virtual article is adapted to the virtual object by manually picking up the virtual article in the related art is solved, and since the terminal can pick up the virtual article according to the use requirement of the virtual object, the control convenience of the virtual environment application program is improved.
Referring to fig. 6, a flowchart of a method for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application is shown. The method may be applied in the first terminal 110 or the second terminal 160 in a computer system as shown in fig. 1 or in other terminals in the computer system. The method comprises the following steps:
step 601, controlling the virtual object to move in the virtual environment, wherein at least one virtual item for the virtual object to pick up exists in the virtual environment.
The terminal controls the virtual object to move in the movable space of the virtual environment. The movable space is the range in which the virtual object can move in the virtual environment, and comprises the air, the outdoor ground, the water, the indoor, the building, the tree cluster, the mountains and the land which can climb, and the like. At least one virtual item for picking up by a virtual object exists in the movable space, and the virtual item can be at least one of a weapon, a piece of armour, ammunition, an accessory, a supply item and a backpack.
Step 602, detecting whether a first virtual article exists within a preset distance range of the virtual object.
The terminal detects whether a first virtual article exists in a preset distance range by taking the virtual object as a center. If yes, go to step 603; if not, continuing the detection.
Step 603, detecting whether the duration that the first distance between the virtual object and the first virtual article is smaller than the preset distance range is larger than a time threshold.
When a first virtual article exists in a preset distance range, acquiring a first distance between the first virtual article and a virtual object, detecting whether the duration time of the first distance smaller than the preset distance is greater than a time threshold, and if the duration time is not greater than the time threshold, continuing detection; if the duration is greater than the time threshold, step 604 is entered.
Step 604, a first item type of the first virtual item is obtained.
For example, the terminal may obtain the first item type of the first virtual item in a database of the application according to the identifier of the first virtual item.
Step 605 detects whether the virtual object is equipped with a second virtual item of the first item type.
For example, the terminal detects whether a second virtual article of the first article type is stored in the assembly position corresponding to the first article type. When the assembly position corresponding to the first article type stores the second virtual article of the first article type, step 606 is entered; when the assembly location corresponding to the first item type does not store the second virtual item of the first item type, step 607 is entered.
Step 606, it is detected whether a first item attribute of the first virtual item is better than a second item attribute of the second virtual item.
For example, when the terminal detects that the assembly position corresponding to the first article type stores the second virtual article, the terminal obtains a second article attribute of the second virtual article in the database of the application program according to the identifier of the second virtual article, obtains a first article attribute of the first virtual article in the database of the application program according to the identifier of the first virtual article, and detects whether the first article attribute is better than the second article attribute.
The article attributes are used for characterizing the properties and performance of the virtual article, for example, the article attributes of the weapon include lethality, attack distance, hit rate, etc.; the article properties of the body armor include durability value, protection level, etc.; the item attributes of the backpack include capacity.
When the first item attribute is better than the second item attribute, go to step 607; when the first item attribute is not better than the second item attribute, step 609b is entered.
Optionally, when the first article type is a defense type, the terminal detects whether a first endurance value of the first virtual article is greater than a second endurance value of the second virtual article; when the first endurance value is greater than the second endurance value, determining that the first article attribute is better than the second article attribute.
Illustratively, the article property of the virtual article of the armour type comprises a durability value, wherein the durability value characterizes a useful life of the virtual article of the armour type. If the first article has a durability value of 5 and the second virtual article has a durability value of 3, then the first article attribute is determined to be better than the second article attribute.
Optionally, when the first article type is an armour type, the terminal detects whether a first protection level of the first virtual article is higher than a second protection level of the second virtual article; when the first protection level is higher than the second protection level, determining that the first item attribute is better than the second item attribute.
Illustratively, the item attributes of the virtual item of armour type comprise a protection rating, wherein the protection rating characterizes an ability of the virtual item of armour type to withstand injury. And if the first article is in a protection level 2 and the second virtual article is in a protection level 1, determining that the first article attribute is better than the second article attribute.
For example, if the first article attribute of the first virtual article is the protection level 2 and the endurance value is 5, and the second article attribute of the second virtual article is the protection level 1 and the endurance value is 3, the terminal determines that the first article attribute is better than the second article attribute; if the first article attribute is the protection grade 2 and the endurance value is 3, the second article attribute of the second virtual article is the protection grade 1 and the endurance value is 3, the terminal determines that the first article attribute is superior to the second article attribute; and if the first article attribute is the protection grade 2 and the endurance value is 2, and the second article attribute of the second virtual article is the protection grade 1 and the endurance value is 3, the terminal determines that the first article attribute is superior to the second article attribute according to a preset weight calculation formula.
Optionally, when the first item type is a backpack type, the terminal detects whether a first capacity of the first virtual item is greater than a second capacity of the second virtual item; when the first capacity is greater than the second capacity, the first item attribute is determined to be better than the second item attribute.
Illustratively, the item attribute of the virtual item of the backpack type includes capacity, where the capacity is the number of backpack grids corresponding to the backpack, and the more backpack grids, the more virtual items that the backpack can store, and the better the item attribute. If the capacity of the first virtual item is 16 and the capacity of the second virtual item is 12, then the first item attribute is determined to be better than the second item attribute.
Optionally, when the first article type is an accessory type, if the virtual object is equipped with a target weapon corresponding to the accessory type, the terminal detects whether a first performance value after the target weapon is equipped with the first virtual article is greater than a second performance value after the target weapon is equipped with the second virtual article; determining that the first article attribute is better than the second article attribute when the first performance value is greater than the second performance value.
Illustratively, if the accessory type is a sighting mirror type, the item attributes of the sighting mirror type virtual weapon include sighting accuracy. And if the aiming precision is 10 after the target weapon is assembled with the first virtual object and the aiming precision is 8 after the target weapon is assembled with the second virtual object, determining that the attribute of the first object is better than the attribute of the second object.
Step 607, determining that the first virtual article is a virtual article for which the virtual object has a usage requirement.
For example, when the terminal detects that the assembly position corresponding to the first article type has a vacancy, it is determined that the virtual object does not assemble the second virtual article of the first article type, so that it is determined that the first virtual article is a virtual article for which the virtual object has a use requirement. For example, when the virtual object is not equipped with a virtual article of a weapon type, usually the assembly position corresponding to the weapon type has a vacant position, and when the first article type is the weapon type, the first virtual article is the virtual article for which the virtual object has a use requirement.
For example, when the terminal determines that the first item attribute is better than the second item attribute, it determines that the first virtual item is a virtual item for which the virtual object has a use requirement.
Step 608, highlighting the first virtual item in proximity to the virtual object.
When the terminal confirms that the first virtual article is a virtual article for which the virtual object has a use demand, the first virtual article is highlighted near the virtual object, and the terminal prompts that the first virtual article is to be automatically picked up.
Optionally, the terminal may display the performance information of the first virtual article near the virtual object, increase the brightness of the first virtual article, thicken the outline of the first virtual article, and change at least one of the textures of the first virtual article to prompt that the first virtual article is to be picked up.
Step 609a, the virtual object is controlled to pick up the first virtual item.
And when the terminal highlights the first virtual object near the virtual object and prompts that the first virtual object is to be automatically picked up, controlling the virtual object to pick up the first virtual object.
Step 609b, the first virtual item is not picked.
When the terminal determines that the first article attribute is not better than the second article attribute, the terminal determines that the first virtual article is not a virtual article for which the virtual object has a use demand, and the terminal controls the virtual object not to pick up the first virtual article.
The terminal may deduce whether the first item attribute is not better than the second item attribute by the method in step 606, which is not described herein again.
To sum up, in the embodiment of the present application, when a first virtual article is detected within a preset distance range of a virtual object, a first article type of the first virtual article is obtained, whether the first virtual article is a virtual article for which the virtual object has a use requirement is determined according to the first article type, and when the first virtual article is a virtual article for which the virtual object has a use requirement, the virtual object is controlled to pick up the first virtual article, so that a problem that a user cannot accurately judge whether the virtual article is adapted to the virtual object by manually picking up the virtual article in the related art is solved, and since the terminal can pick up the virtual article according to the use requirement of the virtual object, the control convenience of the virtual environment application program is improved.
Optionally, in this embodiment of the application, it is determined that the virtual object is not equipped with the second virtual item of the first type, and it is determined that the first virtual item is a virtual item for which a use requirement of the virtual object exists, so that accuracy of detecting whether the first virtual item needs to be picked up is improved.
Optionally, in this embodiment of the application, it is determined that the first item attribute of the first virtual item is better than the second item attribute of the second virtual item of the same item type assembled by the virtual object, so as to determine that the first virtual item is a virtual item for which the virtual object has a use requirement, and accuracy of detecting whether the first virtual item needs to be picked up is improved.
Optionally, in this embodiment of the application, before the first virtual object is picked up, the first virtual object is highlighted near the virtual object to prompt that the first virtual object is to be picked up, so that a user can more clearly obtain related information of the first virtual object, and the control convenience of the virtual environment application program is improved.
Virtual items with better item attributes are not necessarily desired by the user. For example, weapon a has a smaller attack distance and a smaller lethality than weapon B, but the user is more accustomed to controlling virtual object to use weapon B, and therefore, it is necessary to determine whether the first virtual item is a virtual item for which a usage demand exists, according to the usage habit of the user.
Referring to fig. 7, a flowchart of a method for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application is shown. The method can be applied to the first terminal 110 or the second terminal 160 in the computer system shown in fig. 1 or other terminals in the computer system. The method may be an alternative embodiment mode of step 203 in the embodiment of fig. 2, and the method includes:
step 203a, calling a machine learning model to process the information of the first virtual article and the information of the virtual object, and obtaining an output result.
And calling the machine learning model by the terminal, inputting the information of the first virtual article and the information of the virtual object into the machine learning model, and obtaining an output result.
The information of the first virtual object at least comprises a first object type, the machine learning model is obtained by training according to the information of the virtual object, the information of the sample virtual object and the calibration result, and the calibration result comprises a result that the virtual object actually picks up the sample virtual object or a result that the sample virtual object is picked up by the artificially calibrated virtual object.
Illustratively, each time the user controls the virtual object to pick up the virtual object, the information of the virtual object and the information of the virtual object are recorded as the calibration result; or, the calibration result is set by manually acquiring the information of the virtual object picked up by the virtual object. And the terminal inputs the information of the virtual object (such as the identification of the virtual object) and the information of the sample virtual article (such as the article type, the article attribute and the like of the sample virtual article) into the machine learning model to obtain an output result, and if the output result is different from the calibration result, the strategy function and the weight of each node in the machine learning model are adjusted and trained to obtain the trained machine learning model.
Illustratively, the terminal calls a machine learning model, information of the first virtual article and information of the virtual object are input into the machine learning model, characteristics of the information of the first virtual article are extracted through each node in the machine learning model, the characteristics of the first virtual article extracted through each node are obtained, and a classifier in the machine learning model outputs a result according to the characteristics of the first virtual article extracted through each node.
And step 203b, when the output result is a preset value, determining that the first virtual article is a virtual article of which the virtual object has a use requirement.
And when the output result of the machine learning model is a preset value, determining that the first virtual article output by the machine learning model is a virtual article with the use requirement of the virtual object.
In summary, in the embodiment of the application, the machine model is called to determine that the first virtual article is a virtual article for which the virtual object has a use requirement, so that it can be ensured that the first virtual article picked up by the virtual object is a virtual article required by a user, and the accuracy of detecting whether the first virtual article needs to be picked up is improved.
Therefore, in the embodiment of the application, after the user discards the virtual item assembled or carried by the virtual object, the terminal stops the automatic picking function within a predetermined time period, so that the virtual item which is just discarded is prevented from being automatically picked again, and the control convenience of the virtual environment application program is improved.
In the embodiment of the present application, each virtual article corresponds to a feature value, and each virtual object corresponds to a feature value sum, where the feature value sum is a weighted sum of the feature values of the virtual articles (assembled and/or carried) that the virtual object has. The terminal can determine whether the virtual item is a virtual item needing to be picked up according to the sum of the characteristic values.
As shown in fig. 8, the virtual object 300 corresponds to a feature value sum 800, the feature value sum 800 includes a plurality of feature values 801, each feature value 801 corresponds to a virtual article, and each feature value 801 corresponds to at least one sub-feature value, for example, as shown in the figure, a virtual article of a weapon type corresponds to a feature value 1 including an identification value 1, an article type value 1, an article attribute value 1, and a priority value 1; the characteristic value 2 corresponding to the virtual article of the accessory type comprises an identification numerical value 2, an article type numerical value 2, an article attribute numerical value 2 and a priority numerical value 2; the characteristic value n corresponding to the virtual article of the defense type comprises an identification numerical value n, an article type numerical value n, an article attribute numerical value n and a priority numerical value n.
Taking the first virtual article of the weapon type as an example, the characteristic values include an identification value a1, an article type value a2, an article attribute value a3, and a priority value a 4. If the weight value corresponding to the identifier value a1 is k1, the weight value corresponding to the item type value a2 is k2, the weight value corresponding to the item attribute value a3 is k3, and the weight value corresponding to the priority value a4 is k4, if the virtual object only has the first virtual item, the sum a of the feature values of the virtual object is: a-a 1 × k1+ a2 × k2+ a3 × k3+ a4 × k 4.
Referring to fig. 9, a flowchart of a method for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application is shown. The method can be applied to the first terminal 110 or the second terminal 160 in the computer system shown in fig. 1 or other terminals in the computer system. The method comprises the following steps:
step 901, controlling the virtual object to move in the virtual environment, wherein at least one virtual article for the virtual object to pick up exists in the virtual environment.
The terminal controls the virtual object to move in the movable space of the virtual environment. The movable space is the range in which the virtual object can move in the virtual environment, and comprises the air, the outdoor ground, the water, the indoor, the building, the tree cluster, the mountains and the land which can climb, and the like. At least one virtual item for picking up by a virtual object exists in the movable space, and the virtual item can be at least one of a weapon, a piece of armour, ammunition, an accessory, a supply item and a backpack.
Step 902, when a first virtual object exists within a preset distance range of the virtual object, determining whether the first virtual object records a first feature value sum.
The terminal detects whether a first virtual article exists in a preset distance range by taking the virtual object as a center, and detects whether the first virtual article has a first characteristic value sum when the first virtual article exists in the preset distance range.
The first sum of feature values is recorded on the first virtual item when the first virtual item was not picked up by the virtual object the last time, and the first sum of feature values is a weighted sum of feature values of the virtual items that the virtual object has when the first virtual item was not picked up the last time.
For example, when the virtual article is within the preset distance range of the virtual object, but the virtual object does not pick up the virtual article, the sum of the feature values corresponding to the virtual article is recorded on the virtual article; when a certain virtual object never exists in the preset range of the virtual object, the virtual object does not record the sum of the characteristic values of the virtual object.
Step 903, when the first virtual article does not have the first characteristic value sum, determining whether the first virtual article is a virtual article for which the virtual object has a use requirement.
When the first virtual article does not have the first characteristic value sum, the terminal determines whether the first virtual article is a virtual article with a use requirement on the virtual object.
For example, when the first virtual item does not have the first feature value sum, it indicates that the virtual object never picks up the first virtual item, and the terminal further detects whether the first virtual item is a virtual item for which the virtual object has a use requirement. Optionally, the terminal may detect whether the first virtual item is a virtual item for which the virtual object has a usage requirement through the embodiments of fig. 2, fig. 6, and fig. 7.
And 904, when the first virtual object is a virtual object with a use requirement, controlling the virtual object to pick up the first virtual object, and updating the second characteristic value sum of the virtual object according to the first characteristic value of the first virtual object. Wherein the second sum of feature values is a weighted sum of feature values of virtual articles currently possessed by the virtual object.
When the first virtual item is a virtual item for which the virtual object has a use demand, the terminal controls the virtual object to pick up the first virtual item, and obtains a first feature value of the first virtual item, for example, a first identification value B1, a first item type value B2, a first item attribute value B3, and a first priority value B4 of the first virtual item, if the first identification value B1 is weighted q1, the first item type value B2 is weighted q2, the first item attribute value B3 is weighted q3, and the first priority value B4 is q4, and if a second feature value sum corresponding to the virtual object before the first virtual item is picked up is B1, an updated feature value sum B2 ═ 57345 + B1 ± q 5 + B2 ═ q2+ B3 × q 6342 + q 4.
In summary, in the embodiment of the present application, when a first virtual article exists in a preset distance range of a virtual object, it is first required to detect whether the first virtual article has a first feature value sum before detecting whether the first virtual article is a virtual article for which a virtual object has a use requirement, and it is determined whether the first virtual article needs to be picked up only when the first virtual article has the first feature value sum, and it is not required to detect whether the first virtual article needs to be picked up every time when a virtual article exists in the preset distance range, so that the computation load of the terminal is reduced, and the running smoothness of the virtual environment application program is improved.
Referring to fig. 11, a flowchart of a method for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application is shown. The method can be applied to the first terminal 111 or the second terminal 160 in the computer system as shown in fig. 1 or other terminals in the computer system. The method comprises the following steps:
step 1101, controlling the virtual object to move in the virtual environment, wherein at least one virtual article for the virtual object to pick up exists in the virtual environment.
The terminal controls the virtual object to move in the movable space of the virtual environment. The movable space is the range in which the virtual object can move in the virtual environment, and comprises the air, the outdoor ground, the water, the indoor, the building, the tree cluster, the mountains and the land which can climb, and the like. At least one virtual item for picking up by a virtual object exists in the movable space, and the virtual item can be at least one of a weapon, a piece of armour, ammunition, an accessory, a supply item and a backpack.
Step 1102, detecting whether a first virtual object exists within a preset distance range of the virtual object.
The terminal detects whether a first virtual article exists in a preset distance range by taking the virtual object as a center. If yes, go to step 1103; if not, continuing the detection.
Step 1103, detecting whether the first virtual article records the sum of the first characteristic values.
The terminal detects whether a first virtual article exists in a preset distance range by taking the virtual object as a center, and detects whether the first virtual article has a first characteristic value sum when the first virtual article exists in the preset distance range. When the first virtual object has the first feature value sum, go to step 1104 a; when the first virtual item does not have the first feature value sum, step 1104b is entered.
In step 1104a, it is detected whether the first sum of eigenvalues is the same as the second sum of eigenvalues of the virtual object.
When the first virtual article has the first sum of characteristic values, the terminal detects whether the first sum of characteristic values is the same as the second sum of characteristic values of the virtual object. When the first eigenvalue summation is the same as the second eigenvalue summation, go to step 1108 b; when the first eigenvalue summation is not the same as the second eigenvalue summation, step 1105 is entered.
When the first characteristic value sum is the same as the second characteristic value sum, it is indicated that the assembled and carried virtual article of the virtual object has not changed after the virtual object has not picked up the first virtual article last time, and since the first virtual article has not been picked up by the virtual object last time, the first virtual article is not a virtual article for which the virtual object has a use requirement, and therefore the first virtual article does not need to be picked up. The sum of the characteristic values is an integer variable, and the calculation amount is small because the detection of the first sum of the characteristic values and the second sum of the characteristic values is only to simply compare two integer variables.
In step 1104b, it is detected whether the first virtual item is a virtual item for which a usage requirement exists in the virtual object.
For example, when the first virtual item does not have the first feature value sum, it indicates that the virtual object never picks up the first virtual item, and the terminal further detects whether the first virtual item is a virtual item for which the virtual object has a use requirement. When the first virtual item is determined to be a virtual item for which the virtual object has a usage requirement, step 1108a is entered; when it is determined that the first virtual item is not a virtual item for which a usage requirement exists for the virtual object, step 1108b is entered.
Optionally, the terminal may detect whether the first virtual item is a virtual item for which the virtual object has a usage requirement through the embodiments of fig. 2, fig. 6, and fig. 7.
At step 1105, a first event is called back that causes a change in the first feature value sum.
When the first eigenvalue sum is not the same as the second eigenvalue sum, the terminal recalls a first event in the process of causing the first eigenvalue sum to change to the second eigenvalue sum.
Illustratively, when the sum of the feature values changes, a corresponding event is generated. For example, as shown in fig. 11, when ammunition of ammunition type 1 is consumed, the feature value 813 corresponding to ammunition type 1 changes, so that the total feature value 801 of the weapon of weapon type 1 corresponding to the feature value 813 changes, and further the feature value total sum 800 of the virtual object 300 changes, and a corresponding event is generated while the feature value changes, and the event generated by the terminal callback may acquire the feature value 813 corresponding to the ammunition of ammunition type 1 that causes the feature value total sum 800 to change.
Step 1106, obtaining a second feature value with a change in the sum of the first feature values according to the first event.
And the terminal acquires a second characteristic value which causes the change in the sum of the first characteristic values according to the first event.
After the virtual object has not picked up the first virtual article for the last time, the corresponding first feature value sum is changed into a second feature value sum, the terminal callback causes a first event that the feature value sum of the virtual object is changed from the first feature value sum to the second feature value sum, and the second feature value changed in the first feature value sum can be acquired. Wherein the second characteristic value corresponds to the second virtual item.
Step 1107, detecting whether the first virtual item meets the pickup condition according to the first characteristic value and the second characteristic value corresponding to the first virtual item.
The terminal detects whether the first characteristic value and the second characteristic value are matched. When the first characteristic value and the second characteristic value are matched, determining that the first virtual item meets the pickup condition, and entering step 1107 a; when the first characteristic value and the second characteristic value do not match, it is determined that the first virtual item does not satisfy the pickup condition, and the process proceeds to step 1107 b.
For example, the reason why the sum of the feature values of the virtual objects is changed is that a new virtual item is picked up, an already owned virtual item is consumed, or an already owned virtual item is discarded. When the virtual object has not picked up the first virtual item last time, it may be because the virtual object is equipped with or carries the same virtual item as the first virtual item, or it may be that the user is equipped with or carries a third virtual item of the same type as the first virtual item and higher priority than the first virtual item. Therefore, the terminal needs to detect whether the first virtual item satisfies the pickup condition according to the second characteristic value and the first characteristic value that change in the sum of the first characteristic values. If the virtual object is a change of the sum of the first characteristic values caused by consumption or discarding of a virtual article which is the same as the first virtual article, the first virtual article meets the pickup condition; if the virtual object is due to the fact that a new virtual article is picked up, if the article type of the new virtual article is different from that of the first virtual article, the first virtual article does not meet the picking condition; if the virtual object is a second virtual object which is the same as the first virtual object in item type and has a lower priority level than the first virtual object because the third virtual object is discarded, the first virtual object meets the pickup condition.
Optionally, the first characteristic value includes at least one of a first identification value, a first item type value, a first quantity, a first item attribute value, and a first priority value of the first virtual item; the second characteristic value comprises at least one of a second identification value, a second item type value, a second quantity, a second item attribute value and a second priority value of the second virtual item, and the terminal can determine that the first virtual item meets the picking condition by at least one of the following methods:
and I, when the first identification value and the second identification value are the same and the first quantity and the second quantity are different, determining that the first virtual article meets the pickup condition.
For example, when the first identification value and the second identification value are the same, the second virtual item and the first virtual item are the same virtual item, and the first quantity and the second quantity are different, the second virtual item is consumed, and therefore the first virtual item which is the same as the second virtual item needs to be supplemented, so as to determine that the first virtual item meets the pickup condition.
And II, when the first type value and the second type value are the same, and the first article attribute value is higher than the second article attribute value, determining that the first virtual article meets the picking condition.
Illustratively, the first virtual item is a shield with a protection level of 2, the second virtual item is a shield with a protection level of 1, the third virtual item is a shield with a protection level of 3, and when the virtual object does not pick up the first virtual item last time, the virtual object carries the third virtual item, so the first virtual item does not need to be picked up, but in the following battle, the third virtual item is destroyed, the third virtual item is just discarded, the second virtual item with a low protection level is picked up, and therefore the first virtual item needs to be picked up when the first virtual item passes through again.
And III, when the first type value and the second type value are the same, and the first priority value is higher than the second priority value, determining that the first virtual article meets the picking condition.
For example, when the first type value and the second type value are the same and the first priority value is higher than the second priority value, it may be that the user has picked up the same virtual article after the first virtual article was not picked up last time and used as a familiar virtual article, and the priority value is increased, so that it is determined that the first characteristic value and the second characteristic value match. For example, if the first virtual item is a pistol with a lethality of 2, the second virtual item is a pistol with a lethality of 3, and the virtual object does not pick up the first virtual item last time, because the virtual object carries the second virtual item with a higher attribute value, the first virtual item is not picked up, but in the later time, the user is more used to the first virtual item, and therefore the first virtual item is actively picked up, so that the priority of the first virtual item is increased, but because the first virtual item is damaged, the user has to pick up the second virtual item, and then needs to pick up the first virtual item when passing through the first virtual item which is not picked up again.
Optionally, the first characteristic value includes at least one of a first identification value, a first item type value, a first item attribute value, and a first priority value of the first virtual item; the second characteristic value comprises at least one of a second identification value, a second item type value, a second item attribute value and a second priority value of the second virtual item, and the terminal can determine that the first virtual item does not meet the picking condition by at least one of the following methods:
and I, when the first type value and the second type value are different, determining that the first virtual article does not meet the picking condition.
Illustratively, when the first type value and the second type value are different, it is stated that the second virtual object and the first virtual object causing the change of the sum of the first characteristic values are unrelated, for example, the virtual object consumes ammunition, while the first virtual object is body armor, and it is determined that the first characteristic values and the second characteristic values are not matched because the first virtual object was not picked up by the last virtual object and the change of the sum of the first characteristic values is unrelated to the first virtual object.
And II, when the first type value and the second type value are the same, and the first article attribute value is lower than the second article attribute value, determining that the first virtual article does not meet the picking condition.
Illustratively, when the first type value and the second type value are the same and the first item attribute value is lower than the second item attribute value, it is indicated that the user tends to use a virtual item having a better attribute than the first virtual item, and thus it is determined that the first characteristic value and the second characteristic value do not match.
And III, when the first type value and the second type value are the same, and the first priority value is lower than the second priority value, determining that the first virtual article does not meet the picking condition.
Illustratively, when the first type value and the second type value are the same and the first priority value is lower than the second priority value, it is indicated that the user tends to use the second virtual article, and thus it is determined that the first characteristic value and the second characteristic value do not match.
Step 1108a, the virtual object is controlled to pick up the first virtual item, and the second feature value summation is updated according to the first feature value.
And the terminal controls the virtual object to pick up the first virtual article and updates the second characteristic value sum according to the first characteristic value.
Step 1108b, the first virtual item is not picked.
The terminal controls the virtual object not to pick up the first virtual item. And if the first virtual article does not have the first characteristic value sum, the terminal records a second characteristic value sum on the first virtual article.
In an exemplary embodiment, as shown in fig. 12, the second characteristic value causing the change of the total characteristic value is that the corresponding virtual article is a weapon 1, which includes characteristic values of a fitting bit 1, a weapon type 1, a part identifier 7, a bullet number 8, and the like, and when the quantity characteristic value corresponding to the fitting bit 1 is 0, if the part identifier is 7 and the fitting bit is 1 in the second characteristic values of the non-picked virtual articles, the virtual article is picked up.
To sum up, in the embodiment of the present application, when a first virtual article exists in a preset distance range of a virtual object, it is first required to detect whether the first virtual article has a first feature value sum before detecting whether the first virtual article is a virtual article for which the virtual object has a use requirement, and it is determined whether the first virtual article needs to be picked up only when the first virtual article has the first feature value sum.
Optionally, in this embodiment of the application, when it is determined that the first feature value sum of the first virtual article is the same as the second feature value sum of the virtual object, the first virtual article is not picked up, and after it is determined that the first feature value sum is the same as the second feature value sum of the virtual object, it is not necessary to further detect whether the first virtual article needs to be picked up, so that the computation amount of the terminal is reduced, and the operation fluency of the virtual environment application program is improved.
Optionally, in this embodiment of the application, when it is determined that the first feature value sum of the first virtual article is different from the second feature value sum of the virtual object, by obtaining the second feature value that changes in the first feature value sum, it is detected whether the second feature value matches the first feature value corresponding to the first virtual article to determine whether the first virtual article is to be picked up, so as to improve accuracy of detecting whether the first virtual article needs to be picked up.
The following are embodiments of the apparatus of the present application, and for details that are not described in detail in the embodiments of the apparatus, reference may be made to corresponding descriptions in the above method embodiments, and details are not described herein again.
Referring to fig. 13, a block diagram of an apparatus for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application is shown, where the apparatus may be implemented as all or part of a terminal through software, hardware, or a combination of the two, and the apparatus includes: an acquisition module 1310, a processing module 1320, a display module 1330, and a receiving module 1340, wherein the display module 1330 and the receiving module 1340 are optional modules.
A processing module 1320 for controlling the virtual object to move in the virtual environment, wherein at least one virtual item for the virtual object to pick up exists in the virtual environment.
The obtaining module 1310 is configured to obtain a first item type of a first virtual item when the first virtual item exists within a preset distance range of the virtual object.
The processing module 1320 is further configured to determine, according to the first item type, whether the first virtual item is a virtual item for which a use requirement exists in the virtual object; and when the first virtual item is a virtual item for which the virtual object has a use demand, controlling the virtual object to pick up the first virtual item.
In an alternative embodiment of the method according to the invention,
a processing module 1320, further configured to determine whether a first item attribute of the first virtual item is better than a second item attribute of the second virtual item when the virtual object is equipped with the second virtual item of the first item type; and when the first item attribute is better than the second item attribute, determining that the first virtual item is a virtual item with the use requirement of the virtual object.
In an alternative embodiment, the first article type is a defensive type;
a processing module 1320 further configured to determine whether the first endurance value of the first virtual article is greater than the second endurance value of the second virtual article; determining that the first article attribute is better than the second article attribute when the first endurance value is greater than the second endurance value; or, determining whether a first protection level of the first virtual item is higher than a second protection level of the second virtual item; when the first protection level is higher than the second protection level, determining that the first item attribute is better than the second item attribute.
In an alternative embodiment, the first item type is a backpack type;
a processing module 1320 further configured to determine whether the first capacity of the first virtual item is greater than the second capacity of the second virtual item; when the first capacity is greater than the second capacity, the first item attribute is determined to be better than the second item attribute.
In an alternative embodiment, the first item type is an accessory type, the first virtual item and the second virtual item are virtual accessories of a target weapon, the virtual object is equipped with the target weapon;
a processing module 1320, further configured to determine whether a first performance value after the target weapon is equipped with the first virtual article is greater than a second performance value after the target weapon is equipped with the second virtual article; determining that the first article attribute is better than the second article attribute when the first performance value is greater than the second performance value.
In an alternative embodiment of the method according to the invention,
the processing module 1320 is further configured to invoke the machine learning model to process the information of the first virtual object and the information of the virtual object, so as to obtain an output result; the information of the first virtual object at least comprises a first object type, the machine learning model is obtained by training according to the information of the virtual object, the information of the sample virtual object and a calibration result, and the calibration result comprises a result that the virtual object actually picks up the sample virtual object or a result that the sample virtual object is picked up by the artificially calibrated virtual object; and when the output result is a preset value, determining that the first virtual article is a virtual article with a use requirement on the virtual object.
In an alternative embodiment of the method according to the invention,
the processing module 1320 is further configured to determine whether the first virtual item is a virtual item for which a usage requirement exists when the virtual object is not equipped with the second virtual item of the first item type.
In an alternative embodiment of the method according to the invention,
the processing module 1320 is further configured to determine whether a duration of the first distance between the virtual object and the first virtual item being less than the preset distance range is greater than a time threshold.
The obtaining module 1310 is further configured to perform the step of obtaining the first item type when the duration is greater than the time threshold.
In an alternative embodiment of the method according to the invention,
the display module 1330 is configured to highlight the first virtual item near the virtual object, the highlighting including at least one of displaying performance information of the first virtual item, increasing brightness, thickening an outline, and changing a texture.
In an alternative embodiment of the method according to the invention,
the receiving module 1340 is configured to receive a discard instruction.
A processing module 1320, further configured to discard the target virtual item according to the discarding instruction; the target virtual article is a virtual article assembled or carried by the virtual object; the pick-up function is stopped for a predetermined period of time after the target virtual item is discarded.
Referring to fig. 14, a block diagram of an apparatus for controlling a virtual object to pick up a virtual item according to an exemplary embodiment of the present application is shown, where the apparatus may be implemented as all or part of a terminal through software, hardware, or a combination of the two, and the apparatus includes: a detection module 1410, a processing module 1420, and an acquisition module 1430, wherein the acquisition module 1430 is an optional module.
A processing module 1420 configured to control the virtual object to move in the virtual environment, where at least one virtual item exists for the virtual object to pick up.
The detecting module 1410 is configured to detect whether a first feature value sum is recorded in the first virtual object when the first virtual object exists within a preset distance range of the virtual object; the first feature value sum is recorded on the first virtual item when the virtual object does not pick up the first virtual item last time, and the first feature value sum is a weighted sum of feature values of the virtual item which the virtual object has when the virtual object does not pick up the first virtual item last time; when the first virtual article does not have the first characteristic value sum, whether the first virtual article is a virtual article with a use requirement on the virtual object is detected.
The processing module 1420 is further configured to, when it is determined that the first virtual item is a virtual item for which a usage demand of the virtual object exists, control the virtual object to pick up the first virtual item, and update the second sum of the feature values of the virtual object according to the first feature value of the first virtual item.
In an alternative embodiment of the method according to the invention,
the detecting module 1410 is further configured to detect whether the first sum of feature values is the same as the second sum of feature values of the virtual object when the first virtual article has the first sum of feature values.
The processing module 1420 is further configured to not pick the first virtual item when the first characteristic value and the sum of the second characteristic values are the same.
In an alternative embodiment of the method according to the invention,
the processing module 1420 is further configured to, when the first eigenvalue sum is not the same as the eigenvalue sum of the virtual object, call back a first event in the process of causing the first eigenvalue sum to change to the second eigenvalue sum.
The obtaining module 1430 is configured to obtain a second feature value that changes in the first feature value sum according to the first event.
The processing module 1420 is further configured to detect whether the first virtual item satisfies a pickup condition according to the first characteristic value and the second characteristic value; and when the first virtual article meets the picking condition, picking the first virtual article, and updating the second characteristic value sum according to the first characteristic value.
In an alternative embodiment, the first characteristic value includes at least one of a first identification value, a first item type value, a first quantity, a first item attribute value, and a first priority value of the first virtual item, the second characteristic value corresponds to the second virtual item, and the second characteristic value includes at least one of a second identification value, a second item type value, a second quantity, a second item attribute value, and a second priority value of the second virtual item;
the processing module 1420 is further configured to determine that the first virtual item satisfies the pickup condition when the first identification value is the same as the second identification value and the first quantity is different from the second quantity; or when the first item type value and the second item type value are the same and the first item attribute value is higher than the second item attribute value, determining that the first virtual item meets the picking condition; or, when the first item type value and the second item type value are the same, and the first priority value is higher than the second priority value, determining that the first virtual item meets the picking condition.
In an alternative embodiment of the method according to the invention,
the processing module 1420 is further configured to, when the first eigenvalue sum is not the same as the eigenvalue sum of the virtual object, call back a first event in the process of causing the first eigenvalue sum to change to the second eigenvalue sum.
The obtaining module 1430 is configured to obtain a second feature value that changes in the first feature value sum according to the first event.
The processing module 1420 is further configured to detect whether the first virtual item satisfies a pickup condition according to the first characteristic value and the second characteristic value; when the first virtual item does not satisfy the pickup condition, the first virtual item is not picked up, and the sum of the second characteristic values of the virtual objects is recorded on the first virtual item.
In an alternative embodiment, the first characteristic value includes at least one of a first identification value, a first item type value, a first item attribute value, and a first priority value of the first virtual item, the second characteristic value corresponds to the second virtual item, and the second characteristic value includes at least one of a second identification value, a second item type value, a second item attribute value, and a second priority value of the second virtual item;
the processing module 1420 is further configured to determine that the first virtual item does not satisfy the pickup condition when the first identification value and the second identification value are different and the first item type value and the second item type value are different; or when the first item type value and the second item type value are the same and the first item attribute value is lower than the second item attribute value, determining that the first virtual item does not meet the pickup condition; or, when the first item type value and the second item type value are the same and the first priority value is lower than the second priority value, determining that the first virtual item does not satisfy the pickup condition.
Referring to fig. 15, a block diagram of an electronic device 1500 provided in an exemplary embodiment of the present application is shown. The electronic device 1500 may be a portable mobile terminal, such as: smart phones, tablet computers, MP3 players (Moving Picture Experts Group Audio Layer III, mpeg Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, mpeg Audio Layer 4). The electronic device 1500 may also be referred to by other names such as user equipment, portable terminal, etc.
In general, electronic device 1500 includes: a processor 1501 and memory 1502.
Processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1501 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 1501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 1502 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1502 is used to store at least one instruction for execution by processor 1501 to implement the methods provided herein for controlling the pick-up of a virtual object by a virtual object.
In some embodiments, the electronic device 1500 may further include: a peripheral interface 1503 and at least one peripheral. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1504, touch screen display 1505, camera 1506, audio circuitry 1507, positioning assembly 1508, and power supply 1509.
The peripheral interface 1503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, memory 1502, and peripheral interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral interface 1503 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 1504 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1504 can communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1504 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The touch display 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. Touch display 1505 also has the ability to capture touch signals on or over the surface of touch display 1505. The touch signal may be input to the processor 1501 as a control signal for processing. The touch screen display 1505 is used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the touch display 1505 may be one, providing the front panel of the electronic device 1500; in other embodiments, the touch screen display 1505 may be at least two, each disposed on a different surface of the electronic device 1500 or in a folded design; in still other embodiments, the touch display 1505 may be a flexible display disposed on a curved surface or a folded surface of the electronic device 1500. Even more, the touch screen display 1505 may be configured in a non-rectangular irregular pattern, i.e., a shaped screen. The touch screen 1505 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 1506 is used to capture images or video. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Generally, a front camera is used for realizing video call or self-shooting, and a rear camera is used for realizing shooting of pictures or videos. In some embodiments, the number of the rear cameras is at least two, and each of the rear cameras is any one of a main camera, a depth-of-field camera and a wide-angle camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting function and a VR (Virtual Reality) shooting function. In some embodiments, camera assembly 1506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1507 is used to provide an audio interface between a user and the electronic device 1500. The audio circuitry 1507 may include a microphone and speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1501 for processing or inputting the electric signals to the radio frequency circuit 1504 to realize voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of the electronic device 1500. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1507 may also include a headphone jack.
The positioning component 1508 is configured to locate a current geographic Location of the electronic device 1500 to implement navigation or LBS (Location Based Service). The Positioning component 1508 may be a Positioning component based on the united states GPS (Global Positioning System), the chinese beidou System, or the russian galileo System.
The power supply 1509 is used to supply power to the various components in the electronic device 1500. The power supply 1509 may be alternating current, direct current, disposable or rechargeable. When the power supply 1509 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 1500 also includes one or more sensors 1510. The one or more sensors 1510 include, but are not limited to: acceleration sensor 1511, gyro sensor 1512, pressure sensor 1515, fingerprint sensor 1514, optical sensor 1515, and proximity sensor 1516.
The acceleration sensor 1511 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the electronic apparatus 1500. For example, the acceleration sensor 1511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1501 may control the touch screen display 1505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1511. The acceleration sensor 1511 may also be used for acquisition of motion data of a game or a user.
The gyroscope sensor 1512 may detect a body direction and a rotation angle of the electronic device 1500, and the gyroscope sensor 1512 and the acceleration sensor 1511 may cooperate to collect a 3D motion of the user on the electronic device 1500. The processor 1501 may implement the following functions according to the data collected by the gyro sensor 1512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 1515 may be disposed on a side bezel of the electronic device 1500 and/or underneath the touch screen display 1505. When the pressure sensor 1515 is disposed on the side frame of the electronic device 1500, a holding signal of the user to the electronic device 1500 may be detected, and left-right hand recognition or shortcut operation may be performed according to the holding signal. When the pressure sensor 1515 is disposed at a lower layer of the touch display 1505, it is possible to control the operability control on the UI interface according to the pressure operation of the user on the touch display 1505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1514 is configured to capture a fingerprint of the user to identify the identity of the user based on the captured fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 1501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 1514 may be disposed on the front, back, or side of the electronic device 1500. When a physical key or vendor Logo is provided on the electronic device 1500, the fingerprint sensor 1514 may be integrated with the physical key or vendor Logo.
The optical sensor 1515 is used to collect ambient light intensity. In one embodiment, processor 1501 may control the brightness of the display on touch screen 1505 based on the intensity of ambient light collected by optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1505 is turned down. In another embodiment, the processor 1501 may also dynamically adjust the shooting parameters of the camera assembly 1506 based on the ambient light intensity collected by the optical sensor 1515.
A proximity sensor 1516, also known as a distance sensor, is typically disposed on the front side of the electronic device 1500. The proximity sensor 1516 is used to capture the distance between the user and the front of the electronic device 1500. In one embodiment, the processor 1501 controls the touch display 1505 to switch from a bright screen state to a dark screen state when the proximity sensor 1516 detects that the distance between the user and the front of the electronic device 1500 is gradually decreased; when the proximity sensor 1516 detects that the distance between the user and the front of the electronic device 1500 gradually becomes larger, the processor 1501 controls the touch display 1505 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in FIG. 15 is not intended to be limiting of electronic device 1500, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The present application further provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the method for controlling a virtual object to pick up a virtual article provided in the above method embodiment.
The present application further provides a computer program product, which when run on an electronic device, causes the electronic device to execute the method for controlling a virtual object to pick up a virtual item according to the above method embodiments.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (18)

1. A method of controlling a virtual object to pick up a virtual item, the method comprising:
controlling the virtual object to move in a virtual environment in which at least one virtual item exists for the virtual object to pick up;
when a first virtual article exists in a preset distance range of the virtual object, determining whether the duration of a first distance between the virtual object and the first virtual article, which is smaller than the preset distance range, is larger than a time threshold;
when the duration is greater than the time threshold, acquiring a first item type of the first virtual item;
determining whether a first item attribute of the first virtual item is better than a second item attribute of the second virtual item when the virtual object is equipped with a second virtual item of the first item type;
when the first item attribute is better than the second item attribute, determining that the first virtual item is a virtual item of which the virtual object has a use demand;
controlling the virtual object to pick up the first virtual item;
wherein the first virtual article corresponds to a first characteristic value, and the first characteristic value comprises a first type value, a first article attribute value and a first priority value of the first virtual article; the second virtual article corresponds to a second characteristic value, and the second characteristic value comprises a second type value, a second article attribute value and a second priority value of the second virtual article;
the determining whether a first item attribute of the first virtual item is better than a second item attribute of the second virtual item comprises:
when the first virtual article records a first characteristic value sum and the first characteristic value sum is different from a second characteristic value sum, calling back a first event which causes the first characteristic value sum to be different from the second characteristic value sum;
acquiring the second characteristic value according to the first event;
when the first type value and the second type value are the same, determining that the first item attribute is better than the second item attribute according to the first item attribute value being higher than the second item attribute value or according to the first priority value being higher than the second priority value;
wherein the first sum of characteristic values is a weighted sum of characteristic values of virtual items that the virtual object has when the first virtual item was not picked up the last time, the first sum of characteristic values is recorded on the first virtual item, and the non-picking up of the first virtual item the last time means that the first virtual item was not picked up last time in a case where the virtual object passes the non-picked first virtual item again; the second sum of feature values is a weighted sum of feature values of virtual items that the virtual object currently has.
2. The method of claim 1, wherein the first item type is a defensive type, the determining whether a first item attribute of the first virtual item is better than a second item attribute of the second virtual item comprising:
determining whether a first endurance value of the first virtual article is greater than a second endurance value of the second virtual article; determining that the first article attribute is better than the second article attribute when the first endurance value is greater than the second endurance value;
or the like, or, alternatively,
determining whether a first level of protection of the first virtual item is higher than a second level of protection of the second virtual item; determining that the first item attribute is better than the second item attribute when the first protection rating is higher than the second protection rating.
3. The method of claim 1, wherein the first item type is a backpack type, and the determining whether a first item attribute of the first virtual item is better than a second item attribute of the second virtual item comprises:
determining whether a first capacity of the first virtual item is greater than a second capacity of the second virtual item;
determining that the first item attribute is better than the second item attribute when the first capacity is greater than the second capacity.
4. The method of claim 1, wherein the first item type is an accessory type, the first virtual item and the second virtual item are virtual accessories of a target weapon, the virtual object is equipped with the target weapon, and the determining whether a first item attribute of the first virtual item is better than a second item attribute of the second virtual item comprises:
determining whether a first performance value after the target weapon is assembled with the first virtual item is greater than a second performance value after the target weapon is assembled with the second virtual item;
determining that the first item attribute is better than the second item attribute when the first performance value is greater than the second performance value.
5. The method of claim 1, further comprising:
calling a machine learning model to process the information of the first virtual article and the information of the virtual object to obtain an output result; the information of the first virtual object at least comprises a first object type, the machine learning model is obtained by training according to the information of the virtual object, the information of a sample virtual object and a calibration result, and the calibration result comprises a result that the virtual object actually picks up the sample virtual object or a result that the virtual object manually calibrated picks up the sample virtual object;
and when the output result is a preset value, determining that the first virtual article is a virtual article of which the virtual object has a use requirement.
6. The method of claim 1, further comprising:
when the virtual object is not provided with a second virtual article of the first article type, determining that the first virtual article is a virtual article with use requirements for the virtual object.
7. The method of any one of claims 1 to 6, wherein before the virtual object picks up the first virtual item, further comprising:
highlighting the first virtual item in proximity to the virtual object, the highlighting including at least one of displaying performance information of the first virtual item, increasing brightness, thickening a contour, changing a texture.
8. The method according to any one of claims 1 to 6, further comprising:
receiving a discarding instruction;
discarding the target virtual article according to the discarding instruction; the target virtual article is a virtual article assembled or carried by the virtual object;
stopping controlling the virtual object to pick up the virtual item within a predetermined period of time after discarding the target virtual item.
9. An apparatus for controlling a virtual object to pick up a virtual item, the apparatus comprising:
a processing module for controlling the virtual object to move in a virtual environment in which at least one virtual item exists for the virtual object to pick up;
the acquisition module is used for determining whether the duration time that the first distance between the virtual object and the first virtual article is smaller than the preset distance range is larger than a time threshold value or not when the first virtual article exists in the preset distance range of the virtual object; when the duration is greater than the time threshold, acquiring a first item type of the first virtual item;
the processing module is further configured to determine whether a first item attribute of the first virtual item is better than a second item attribute of the second virtual item when the virtual object is equipped with the second virtual item of the first item type; when the first item attribute is better than the second item attribute, determining that the first virtual item is a virtual item of which the virtual object has a use demand; controlling the virtual object to pick up the first virtual item;
wherein the first virtual article corresponds to a first characteristic value, and the first characteristic value comprises a first type value, a first article attribute value and a first priority value of the first virtual article; the second virtual article corresponds to a second characteristic value, and the second characteristic value comprises a second type value, a second article attribute value and a second priority value of the second virtual article;
the processing module is further configured to, when the first virtual article records a first feature value sum and the first feature value sum is different from a second feature value sum, call back a first event that causes the first feature value sum to be different from the second feature value sum; acquiring the second characteristic value according to the first event; when the first type value and the second type value are the same, determining that the first item attribute is better than the second item attribute according to the first item attribute value being higher than the second item attribute value or according to the first priority value being higher than the second priority value;
wherein the first sum of characteristic values is a weighted sum of characteristic values of virtual items that the virtual object has when the first virtual item was not picked up the last time, the first sum of characteristic values is recorded on the first virtual item, and the non-picking up of the first virtual item the last time means that the first virtual item was not picked up last time in a case where the virtual object passes the non-picked first virtual item again; the second sum of feature values is a weighted sum of feature values of virtual items that the virtual object currently has.
10. The apparatus of claim 9, wherein the first article type is a defensive type;
the processing module is further configured to determine whether a first endurance value of the first virtual article is greater than a second endurance value of the second virtual article; determining that the first article attribute is better than the second article attribute when the first endurance value is greater than the second endurance value; or, determining whether a first protection level of the first virtual article is higher than a second protection level of the second virtual article; determining that the first item attribute is better than the second item attribute when the first protection rating is higher than the second protection rating.
11. The apparatus of claim 9, wherein the first item type is a backpack type;
the processing module is further configured to determine whether a first capacity of the first virtual item is greater than a second capacity of the second virtual item; determining that the first item attribute is better than the second item attribute when the first capacity is greater than the second capacity.
12. The apparatus of claim 9, wherein the first item type is an accessory type, the first virtual item and the second virtual item are virtual accessories of a target weapon, the virtual object is equipped with the target weapon;
the processing module is further configured to determine whether a first performance value after the target weapon is assembled with the first virtual item is greater than a second performance value after the target weapon is assembled with the second virtual item; determining that the first item attribute is better than the second item attribute when the first performance value is greater than the second performance value.
13. The apparatus of claim 9,
the processing module is further configured to invoke a machine learning model to process the information of the first virtual article and the information of the virtual object, so as to obtain an output result; the information of the first virtual object at least comprises a first object type, the machine learning model is obtained by training according to the information of the virtual object, the information of a sample virtual object and a calibration result, and the calibration result comprises a result that the virtual object actually picks up the sample virtual object or a result that the virtual object manually calibrated picks up the sample virtual object; and when the output result is a preset value, determining that the first virtual article is a virtual article of which the virtual object has a use requirement.
14. The apparatus of claim 9,
the processing module is further configured to determine whether the first virtual item is a virtual item for which a use requirement exists in the virtual object when the virtual object is not equipped with a second virtual item of the first item type.
15. The apparatus of any one of claims 9 to 14, further comprising a display module;
the display module is used for highlighting the first virtual object near the virtual object, and the highlighting comprises at least one of displaying performance information of the first virtual object, improving brightness, thickening an outline and changing texture.
16. The apparatus according to any one of claims 9 to 14, wherein the apparatus further comprises a receiving module;
the receiving module is used for receiving a discarding instruction;
the processing module is further used for discarding the target virtual article according to the discarding instruction; the target virtual article is a virtual article assembled or carried by the virtual object; stopping controlling the virtual object to pick up the virtual item within a predetermined period of time after discarding the target virtual item.
17. An electronic device, comprising a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded by the processor and executed to implement the method for controlling virtual object to pick up a virtual item according to any one of claims 1 to 8.
18. A computer-readable storage medium, in which at least one instruction or at least one program is stored, which is loaded and executed by a processor to implement the method for controlling virtual object to pick up a virtual item according to any one of claims 1 to 8.
CN201810402929.5A 2018-04-28 2018-04-28 Method, apparatus and medium for controlling virtual object to pick up virtual article Active CN108579088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810402929.5A CN108579088B (en) 2018-04-28 2018-04-28 Method, apparatus and medium for controlling virtual object to pick up virtual article

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810402929.5A CN108579088B (en) 2018-04-28 2018-04-28 Method, apparatus and medium for controlling virtual object to pick up virtual article

Publications (2)

Publication Number Publication Date
CN108579088A CN108579088A (en) 2018-09-28
CN108579088B true CN108579088B (en) 2020-04-24

Family

ID=63619349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810402929.5A Active CN108579088B (en) 2018-04-28 2018-04-28 Method, apparatus and medium for controlling virtual object to pick up virtual article

Country Status (1)

Country Link
CN (1) CN108579088B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110812837B (en) * 2019-11-12 2021-03-26 腾讯科技(深圳)有限公司 Virtual item placing method and device, storage medium and electronic device
CN110888671B (en) * 2019-11-26 2021-05-11 腾讯科技(深圳)有限公司 Configuration method and device of virtual prop, storage medium and electronic device
CN112023392A (en) * 2020-09-17 2020-12-04 网易(杭州)网络有限公司 Virtual article processing method and device
CN112774203B (en) * 2021-01-22 2023-04-28 北京字跳网络技术有限公司 Pose control method and device of virtual object and computer storage medium
US11988565B2 (en) * 2021-05-06 2024-05-21 Apple Inc. Process-insensitive sensor circuit
CN113101661A (en) * 2021-05-10 2021-07-13 网易(杭州)网络有限公司 Accessory assembling method and device, storage medium and computer equipment
CN113413599A (en) * 2021-07-01 2021-09-21 网易(杭州)网络有限公司 Virtual article management method, device, terminal and storage medium
CN113413598A (en) * 2021-07-01 2021-09-21 网易(杭州)网络有限公司 Virtual article acquisition method and device, computer equipment and storage medium
CN115623254A (en) * 2021-07-15 2023-01-17 北京字跳网络技术有限公司 Video effect adding method, device, equipment and storage medium
CN113694513A (en) * 2021-08-16 2021-11-26 网易(杭州)网络有限公司 Method and device for picking up objects in game, storage medium and electronic equipment
CN114344903A (en) * 2022-01-24 2022-04-15 腾讯科技(深圳)有限公司 Method, terminal and storage medium for controlling virtual object to pick up virtual item

Also Published As

Publication number Publication date
CN108579088A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108579088B (en) Method, apparatus and medium for controlling virtual object to pick up virtual article
CN108815851B (en) Interface display method, equipment and storage medium for shooting in virtual environment
CN108888956B (en) Display method, equipment and storage medium of virtual backpack display interface
CN110201403B (en) Method, device and medium for controlling virtual object to discard virtual article
JP7419382B2 (en) Method and apparatus and computer program for controlling a virtual object to mark a virtual item
CN110755841B (en) Method, device and equipment for switching props in virtual environment and readable storage medium
CN108509039B (en) Method, device, equipment and storage medium for picking up items in virtual environment
CN110507993B (en) Method, apparatus, device and medium for controlling virtual object
CN108671544B (en) Firearm assembly method, device and storage medium in virtual environment
CN110585710B (en) Interactive property control method, device, terminal and storage medium
CN113398571B (en) Virtual item switching method, device, terminal and storage medium
CN110721469B (en) Method, terminal and medium for shielding virtual object in virtual environment
CN110694273A (en) Method, device, terminal and storage medium for controlling virtual object to use prop
CN110465098B (en) Method, device, equipment and medium for controlling virtual object to use virtual prop
CN112138383B (en) Virtual item display method, device, equipment and storage medium
CN111659117A (en) Virtual object display method and device, computer equipment and storage medium
CN111744186A (en) Virtual object control method, device, equipment and storage medium
CN112138384A (en) Using method, device, terminal and storage medium of virtual throwing prop
CN112316421A (en) Equipment method, device, terminal and storage medium of virtual prop
CN110639205B (en) Operation response method, device, storage medium and terminal
CN111921190A (en) Method, device, terminal and storage medium for equipping props of virtual objects
CN108568110B (en) The method, apparatus and medium that control virtual objects are picked up virtual objects
CN112402969B (en) Virtual object control method, device, equipment and storage medium in virtual scene
CN111450532B (en) Control method, device, terminal and storage medium for tracking property
CN113680058A (en) Using method, device, equipment and storage medium for recovering life value prop

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