CN108568110A - The method, apparatus and medium that control virtual objects are picked up virtual objects - Google Patents

The method, apparatus and medium that control virtual objects are picked up virtual objects Download PDF

Info

Publication number
CN108568110A
CN108568110A CN201810400434.9A CN201810400434A CN108568110A CN 108568110 A CN108568110 A CN 108568110A CN 201810400434 A CN201810400434 A CN 201810400434A CN 108568110 A CN108568110 A CN 108568110A
Authority
CN
China
Prior art keywords
virtual objects
eigenvalue
numerical value
virtual
summation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810400434.9A
Other languages
Chinese (zh)
Other versions
CN108568110B (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 CN201810400434.9A priority Critical patent/CN108568110B/en
Publication of CN108568110A publication Critical patent/CN108568110A/en
Application granted granted Critical
Publication of CN108568110B publication Critical patent/CN108568110B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • 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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • 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/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games

Landscapes

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

Abstract

This application discloses a kind of method, apparatus, equipment and storage mediums that control virtual objects are picked up virtual objects, belong to computer realm.The method includes:When, there are when the first virtual objects, whether the first virtual objects of detection have recorded the First Eigenvalue summation within the scope of the pre-determined distance of virtual objects;When the first virtual objects do not have the First Eigenvalue summation, whether the first virtual objects of detection are that there are the virtual objects of use demand for virtual objects;When determining that the first virtual objects are virtual objects there are when the virtual objects of use demand, control virtual objects pick up the first virtual objects, and the Second Eigenvalue summation of virtual objects is updated according to the First Eigenvalue of the first virtual objects.The application need not detect whether to need to pick up the virtual objects in preset range, reduce the operand of terminal every time by before detecting whether to need to pick up the first virtual objects, first detecting whether the first virtual objects have recorded the First Eigenvalue summation.

Description

The method, apparatus and medium that control virtual objects are picked up virtual objects
Technical field
This application involves computer realm, more particularly to a kind of side that control virtual objects are picked up virtual objects Method, device, equipment and storage medium.
Background technology
In such as terminal of smart mobile phone, tablet computer etc, exist many with two-dimentional or three-dimensional virtual environment Application program, such as:Virtual reality applications program, three-dimensional map program, Military Simulation program, first person shooting game (First-person shooting game, FPS), online tactics athletic game (the Multiplayer Online of more people Battle Arena Games, MOBA) etc..
In above application program, each user can manipulate a virtual objects, which can be in virtual ring Virtual objects are picked up in border.In the related technology, when the virtual objects of user's operation are appeared near destination virtual article, terminal meeting Whether all virtual objects stored with poll virtual objects are assemblied in and in knapsack, detection destination virtual article are to need to pick up The virtual objects taken control virtual objects pickup destination virtual object if destination virtual article is the virtual objects for needing to pick up Product.
When the virtual objects stored with virtual objects are assemblied in and in knapsack are excessive, virtual objects pass through one every time When destination virtual article, terminal will poll virtual objects be assemblied in and knapsack in all virtual objects for storing, operation Measure it is larger, to leading to application program interim card in some cases.
Invention content
The embodiment of the present application provides a kind of method, apparatus, equipment that control virtual objects are picked up virtual objects And storage medium, to solve in the related technology each virtual objects pass through a destination virtual article when, terminal will poll All virtual objects stored with virtual objects are assemblied in and in knapsack, the larger technical problem of caused operand.Institute It is as follows to state technical solution:
On the one hand, the embodiment of the present application provides a kind of method being picked up to virtual objects, the method includes:
It controls the virtual objects to move in virtual environment, exists in the virtual environment and picked up for the virtual objects At least one virtual objects
When there are when the first virtual objects, detecting first virtual objects within the scope of the pre-determined distance of the virtual objects Whether record has the First Eigenvalue summation;The First Eigenvalue summation is to be not picked up described described virtual objects the last time It is recorded in when one virtual objects on first virtual objects, the First Eigenvalue summation is the virtual objects nearest The weighted sum of the characteristic value of possessed virtual objects when being once not picked up;
When first virtual objects do not have the First Eigenvalue summation, whether first virtual objects are detected For the virtual objects, there are the virtual objects of use demand;
When determining that first virtual objects are the virtual objects there are when the virtual objects of use demand, described in control Virtual objects pick up first virtual objects, and described virtual right according to the update of the First Eigenvalue of first virtual objects The Second Eigenvalue summation of elephant.
On the one hand, the embodiment of the present application provides a kind of device that control virtual objects are picked up virtual objects, institute Stating device includes:
Processing module is moved for controlling the virtual objects in virtual environment, is existed for institute in the virtual environment State at least one virtual objects of virtual objects pickup;
Detection module, for when within the scope of the pre-determined distance of the virtual objects exist when the first virtual objects, detection institute State whether the first virtual objects have recorded the First Eigenvalue summation;The First Eigenvalue summation is the virtual objects nearest one Secondary to be recorded on first virtual objects when being not picked up first virtual objects, the First Eigenvalue summation is described The weighted sum of virtual objects characteristic value of possessed virtual objects when being not picked up the last time;When first virtual objects When without the First Eigenvalue summation, detect whether first virtual objects are that there are use demands for the virtual objects Virtual objects;
Processing module is additionally operable to when determining first virtual objects be that there are the virtual of use demand for the virtual objects When article, controls the virtual objects and pick up first virtual objects, and according to the fisrt feature of first virtual objects Value updates the Second Eigenvalue summation of the virtual objects.
On the one hand, the embodiment of the present application provides a kind of electronic equipment, and the electronic equipment includes processor and memory, It is stored at least one instruction, at least one section of program, code set or instruction set in the memory, at least one instruction, At least one section of program, the code set or the instruction set are loaded by the processor and are executed to realize control as described above The method that virtual objects are picked up virtual objects.
On the one hand, the embodiment of the present application provides a kind of computer readable storage medium, is stored in the storage medium At least one instruction, at least one section of program, code set or instruction set state at least one instruction, at least one section of program, described Code set or instruction set loaded by the processor and executed with realize control virtual objects as described above to virtual objects into The method of row pickup.
The advantageous effect that technical solution provided by the embodiments of the present application is brought is at least:
When within the scope of the pre-determined distance of virtual objects there are when the first virtual objects, by being detecting the first virtual objects No is that there are first need to detect whether the first virtual objects have recorded the first spy before the virtual objects of use demand for virtual objects Value indicative summation needs to pick up the first virtual object when determining that the first virtual objects record has the First Eigenvalue summation just and can detect whether Product will detect whether to need to pick up, reduce the operation of terminal when need not have virtual objects within a preset range every time Amount, improves the operation fluency of virtual environment application program.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the structure diagram for the computer system that one exemplary embodiment of the application provides;
Fig. 2 is the method that the control virtual objects that one exemplary embodiment of the application provides are picked up virtual objects Flow chart;
Fig. 3 is that the assembly position of virtual objects that one exemplary embodiment of the application provides and the display interface of knapsack lattice show It is intended to;
Fig. 4 is the scene graph for the virtual objects pickup virtual objects that one exemplary embodiment of the application provides;
Fig. 5 is the scene graph for the virtual objects pickup virtual objects that one exemplary embodiment of the application provides;
Fig. 6 is the method that the control virtual objects that one exemplary embodiment of the application provides are picked up virtual objects Flow chart;
Fig. 7 is the method that the control virtual objects that one exemplary embodiment of the application provides are picked up virtual objects Flow chart;
Fig. 8 is the composition schematic diagram for the characteristic value summation that one exemplary embodiment of the application provides;
Fig. 9 is the method that the control virtual objects that one exemplary embodiment of the application provides are picked up virtual objects Flow chart;
Figure 10 is showing for the characteristic value corresponding event of readjustment to generating variation that one exemplary embodiment of the application provides It is intended to;
Figure 11 is the side that the control virtual objects that one exemplary embodiment of the application provides are picked up virtual objects Method flow chart;
Whether Figure 12 is the changed Second Eigenvalue of determination that provides of one exemplary embodiment of the application with first The matched schematic diagram of fisrt feature of virtual objects;
Figure 13 is the dress that the control virtual objects that one exemplary embodiment of the application provides are picked up virtual objects Set structure chart;
Figure 14 is the dress that the control virtual objects that one exemplary embodiment of the application provides are picked up virtual objects Set structure chart;
Figure 15 is the structure drawing of device for the electronic equipment that one exemplary embodiment of the application provides.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
First, the noun involved in the embodiment of the present application is introduced:
Virtual environment:It is the virtual environment of application program display (or offer) when being run in terminal.The virtual environment can It can also be the semifictional environment of half emulation to be the simulated environment to real world, can also be pure imaginary environment.Virtually Environment can be any in two-dimensional virtual environment, 2.5 dimension virtual environments and three-dimensional virtual environment, and the application is not added with this To limit.Following embodiments are illustrated so that virtual environment is three-dimensional virtual environment.
Virtual objects:It refer to the movable object in virtual environment.The movable object can be virtual portrait, virtual Animal, cartoon character etc., such as:Personage, animal, plant, oil drum, wall, stone for being shown in three-dimensional virtual environment etc..It can Selection of land, virtual objects are the three-dimensional stereo models created based on animation bone technology.Each virtual objects are in three-dimensional virtual environment In have the shape and volume of itself, occupy a part of space in three-dimensional virtual environment.
Virtual objects:The article for referring to virtual objects assembly or carrying.For example, virtual objects can be virtual objects assembly Knapsack, can also be the weapon of virtual objects assembly, can also be the drug etc. that virtual objects carry.Optionally, virtual In the Application Program Interface of environment there is assembly position and knapsack lattice, user to store virtual objects and are assembled with when assembling in position The virtual objects, knapsack lattice are had when being stored with knapsack on the assembly position of virtual objects, and user can not be assemblied in virtually Virtual objects on object may be stored in knapsack lattice, for example, drug, bandage or the extra weapon that can not be assembled, when When virtual objects are stored in knapsack lattice, virtual objects carry the virtual objects.
Machine learning model:It is a kind of operational model, is constituted by being coupled to each other between a large amount of node (or neuron), Each node corresponds to a strategic function, and the connection between each two node represents one for the weighting by the connection signal Value, referred to as weight.After sample inputs the node of machine learning model, an output is exported as a result, this is defeated by each node Go out input sample of the result as next node, machine learning model is by sample final output to the plan of each node Slightly function and weight are adjusted, which is referred to as training.
Referring to FIG. 1, the structure diagram of the computer system provided it illustrates one exemplary embodiment of the application.It should Computer system 100 includes:First terminal 120, server 140 and second terminal 160.
120 installation and operation of first terminal has the application program for supporting virtual environment.The application program can be virtual existing In real application program, three-dimensional map program, Military Simulation program, FPS game, MOBA game, more people's gunbattle class survival games Any one.First terminal 120 is the terminal that the first user uses, and the first user is located at virtual using the control of first terminal 120 The first virtual objects carry out activity in environment, the activity include but not limited to:Adjustment body posture, creep, walking, run, At least one of ride, jump, drive, pick up, shoot, attack, throw.Schematically, the first virtual objects are the first void Anthropomorphic object, such as artificial figure role or cartoon character role.
First terminal 120 is connected by wireless network or cable network with server 140.
Server 140 includes at least one in a server, multiple servers, cloud computing platform and virtualization center Kind.Server 140 is used to that the application program of three-dimensional virtual environment to be supported to provide background service.Optionally, server 140 undertakes Main evaluation work, first terminal 120 and second terminal 160 undertake secondary calculation work;Alternatively, server 140 undertake it is secondary Evaluation work, first terminal 120 and second terminal 160 undertake main evaluation work;Alternatively, server 140, first terminal 120 Cooperated computing is carried out using distributed computing architecture between 160 three of second terminal.
160 installation and operation of second terminal has the application program for supporting virtual environment.The application program can be virtual existing In real application program, three-dimensional map program, Military Simulation program, FPS game, MOBA game, more people's gunbattle class survival games Any one.Second terminal 160 is the terminal that second user uses, and second user is located at virtual using the control of second terminal 160 The second virtual objects carry out activity in environment, the activity include but not limited to:Adjustment body posture, creep, walking, run, At least one of ride, jump, drive, pick up, shoot, attack, throw.Schematically, the second virtual objects are the second void Anthropomorphic object, such as artificial figure role or cartoon character role.
Optionally, the first virtual portrait and the second virtual portrait are in same virtual environment.Optionally, the first visual human Object and the second virtual portrait may belong to the same troop, the same tissue, with friend relation or with provisional communication Permission.
Optionally, the application program installed in first terminal 120 and second terminal 160 be identical or two terminals on The application program of installation is the same type application program of different control system platforms.First terminal 120 can refer to multiple ends One in end, second terminal 160 can refer to one in multiple terminals, and the present embodiment is only with first terminal 120 and second Terminal 160 illustrates.The device type of first terminal 120 and second terminal 160 is identical or different, the device type packet It includes:Smart mobile phone, tablet computer, E-book reader, MP3 player, MP4 players, pocket computer on knee and desk-top At least one of computer.Following embodiment is illustrated so that terminal includes smart mobile phone.
Those skilled in the art could be aware that the quantity of above-mentioned terminal can be more or less.For example above-mentioned terminal can be with Only one either above-mentioned terminal be tens or hundreds of or greater number.The embodiment of the present application to the quantity of terminal and Device type is not limited.
Referring to FIG. 2, it illustrates one exemplary embodiment offer control virtual objects of the application to virtual objects The method flow diagram being picked up.This method can be applied to the first terminal 110 or the second in computer system as shown in Figure 1 In other terminals in terminal 160 or in the computer system.This method includes:
Step 201, control virtual objects move in virtual environment, exist in virtual environment for virtual objects pickup extremely Few virtual objects.
Terminal control virtual objects are movable in the movable space of virtual environment.Wherein, movable space is virtual ring In border virtual objects can with movable range, movable space includes in aerial, outdoor surfaces, water, interior, building, grove, can The chain of mountains, tunnel of climbing etc..For example, in virtual environment, can set virtual objects can carry out in the circular Plain of the chain of mountains Activity, the Plain are exactly the movable space of virtual objects, and the chain of mountains that cannot be climbed being looped around around the Plain is exactly virtual The stiff region of object, terminal can control virtual objects in mobilizable space by walking, running, climb, drive friendship The modes such as logical tool move.Wherein, at least one virtual in the presence of being picked up for virtual objects in the movable space of virtual objects Article, the virtual objects can be weapon, armour, ammunition, accessory, supply at least one of article and knapsack.
Illustratively, terminal shows control control in the display interface of virtual environment, which can be empty Draft direction rocking bar, user can trigger movable signal by clicking or pressing the virtual direction rocking bar, after terminal receives movable signal Control virtual objects move in movable space;Or, user triggers movable signal by physical button, for example, user clicks Mouse, or the default mobile key mapping of keyboard is pressed, or the entity rocking bar of the handle of pressing terminal triggers movable signal, terminal receives Virtual objects are controlled after movable signal to move in movable space.
Step 202, when there are when the first virtual objects, obtaining the first virtual objects within the scope of the pre-determined distance of virtual objects The first type of items.
Terminal centered on virtual objects, detection pre-determined distance in whether there is the first virtual objects, when preset away from From, there are when the first virtual objects, obtaining the type of items of first virtual objects in range.
Illustratively, terminal can get the first void according to the mark of the first virtual objects in the database of application program First type of items of quasi- article.Wherein, the first type of items includes weapon type, ammunition type, armour type, knapsack class At least one of type, fitting type, replenishment type, ammunition type, carrier type and energy source type.Virtual objects assemble Virtual objects refer to virtual objects that virtual objects can be used directly.For example, being stored with hand on the assembly position of throwing type Thunder, user click the antitank grenade stored on the assembly position for throwing type and the antitank grenade can be used.
The virtual objects that virtual objects carry refer to the virtual objects that virtual objects possess, but cannot directly be used virtual Article.For example, being stored with antitank grenade in the knapsack lattice of the knapsack of virtual objects assembly, user needs the antitank grenade being moved to throwing class It is stored on the assembly position of type, could click and use the antitank grenade.
As shown in figure 3, virtual objects 300 correspond to multiple assembly positions (circular icon in Fig. 3), each position of assembling is corresponding with Type of items.Type of items includes weapon type, ammunition type, armour type, knapsack type, fitting type, replenishment type, throwing Throw species type, carrier type and energy source type etc..Virtual objects are stored in assembly position, and virtual objects 300 are assembled with this Virtual objects, for example, the virtual objects A of weapon type is stored on the assembly position of weapon type 1, by the virtual of weapon type Article B is stored on the assembly position of weapon type 2, and virtual objects 300 are assembled with virtual objects A and virtual objects B.By knapsack The virtual objects of type are stored on the assembly position of knapsack type, and virtual objects 300 have knapsack lattice, can be used for storing not The virtual objects that can be assembled, or the virtual objects that ought do not assemble can be assembled, for example, two weapon classes of virtual objects 300 The assembly position of type is all stored with the virtual objects of weapon type, if virtual objects have picked up the virtual object of third weapon type again The virtual objects can be stored in knapsack lattice by product, and virtual objects carry the virtual objects.Virtual objects are assembled or are carried Weapon, such as pistol or tommy gun, belong to the virtual objects of weapon type, the corresponding ammunition of weapon, such as pistol cartridge or It charges shotgun, belongs to the virtual objects of ammunition type;The armour that virtual objects are assembled or carried, such as flak jackets or the helmet, Belong to the virtual objects of armour type;The knapsack that virtual objects are assembled or carried, belongs to the virtual objects of knapsack type;It is virtual right As the accessory for assembling or carrying, such as gun sight or bullet box, belong to the virtual objects of fitting type;The benefit that virtual objects carry To article, such as drug or bandage, belong to the virtual objects of replenishment type;The throwing type weapon that virtual objects are assembled or carried, Such as antitank grenade or flash bomb, belong to the virtual objects of ammunition type;Virtual objects carry the vehicles, such as bicycle or Motorcycle belongs to the virtual objects of carrier type;The energy that virtual objects are assembled or carried, such as gasoline or battery, belong to energy The virtual objects of Source Type.
Step 203, according to the first type of items, determine whether the first virtual objects are that there are use demands for virtual objects Virtual objects.
For terminal according to the first type of items, whether the first virtual objects of detection are that there are the virtual of use demand for virtual objects Article.
Illustratively, virtual objects are that virtual objects assemble the virtual of position with vacant there are the virtual objects of use demand Article.As shown in figure 4, there are two the corresponding assembly positions 411 and 412 of weapon type for the tool of virtual objects 300, wherein assembly position 411 It is stored with weapon 420, without storage weapon, then the virtual objects of weapon type, which are virtual objects, has vacant dress for assembly position 412 The virtual objects of coordination.When having the first virtual objects 421 within the scope of the pre-determined distance of virtual objects 400, and first is virtual When 421 corresponding type of items of article is weapon type, the first virtual objects 421 are that there are the virtual of use demand for virtual objects Article.
Illustratively, when virtual objects are equipped with the second virtual objects of the first type of items, virtual objects presence makes It is the goods attribute more preferably virtual objects than the second virtual objects with the virtual objects of demand.As shown in figure 5, virtual objects 300 assembly position 511 is stored with flak jackets 520, and the goods attribute of the flak jackets is degree of protection 1, and type of items is armour class Type.There are the first virtual objects 521, which is goods attribute within the scope of the pre-determined distance of virtual objects 300 For degree of protection 2, the first type of items is the flak jackets of armour type.Therefore the first virtual objects 521 are than 520 article of flak jackets Attribute more preferably virtual objects, are that there are the virtual objects of use demand for virtual objects.
Step 204, when the first virtual objects are virtual objects there are when the virtual objects of use demand, virtual objects are controlled Pick up the first virtual objects.
When the first virtual objects of terminal check are virtual objects there are when the virtual objects of use demand, virtual objects are controlled Pick up the first virtual objects.The first virtual objects are picked up by terminal control virtual objects, user oneself is not needed and judges whether to need The first virtual objects are picked up, realizing the automatic Picking in virtual environment, there are the virtual objects of use demand.
Optionally, when the corresponding assembly position of the first type of items have it is vacant when, terminal control virtual objects pickup first After virtual objects, the first virtual objects are stored in the corresponding assembly position of the first type of items.
Optionally, when virtual objects are equipped with the second virtual objects of the first type of items, terminal control virtual objects After picking up the first virtual objects, the first virtual objects are stored in knapsack lattice.
Optionally, when virtual objects are equipped with the second virtual objects of the first type of items, terminal control virtual objects After picking up the first virtual objects, the second virtual objects are removed into assembly position and are stored in knapsack lattice, the first virtual objects are deposited Storage is in assembling position.
In conclusion having the first void in the embodiment of the present application, within the scope of the pre-determined distance by detecting virtual objects When quasi- article, the first type of items of first virtual objects is obtained, determines that the first virtual objects are according to the first type of items No is that there are the virtual objects of use demand for virtual objects, when the first virtual objects are that there are the virtual of use demand for virtual objects When article, control virtual objects pick up the first virtual objects, solve in the related technology by manually picking up virtual objects user The problem of whether virtual objects are adapted to virtual objects can not be accurately judged, since terminal can make according to virtual objects Virtual objects are picked up with demand, to improve the degree convenient for control of virtual environment application program.
Referring to FIG. 6, it illustrates the control virtual objects of one exemplary embodiment of the application offer to virtual objects The method flow diagram being picked up.This method can be applied to the first terminal 110 or the second in computer system as shown in Figure 1 In other terminals in terminal 160 or in the computer system.This method includes:
Step 601, control virtual objects move in virtual environment, exist in virtual environment for virtual objects pickup extremely Few virtual objects.
Terminal control virtual objects are movable in the movable space of virtual environment.Wherein, movable space is virtual ring In border virtual objects can with movable range, movable space includes in aerial, outdoor surfaces, water, interior, building, grove, can The chain of mountains, tunnel of climbing etc..There are at least one virtual objects picked up for virtual objects, the virtual objects in movable space Can be weapon, armour, ammunition, accessory, supply at least one of article and knapsack.
Step 602, it detects and whether there is the first virtual objects within the scope of the pre-determined distance of virtual objects.
Terminal is detected centered on virtual objects and whether there is the first virtual objects within the scope of pre-determined distance.If in the presence of, Enter step 603;If being not present, continue to detect.
Step 603, the first distance detected between virtual objects and the first virtual objects is less than holding for pre-determined distance range Whether the continuous time is more than time threshold.
When there are when the first virtual objects, obtaining the between the first virtual objects and virtual objects within the scope of pre-determined distance One distance, whether the duration that the first distance of detection is less than pre-determined distance is more than time threshold, if the duration is not more than Between threshold value, then continue to detect;If the duration is more than time threshold, 604 are entered step.
Step 604, the first type of items of the first virtual objects is obtained.
Illustratively, terminal can get the first void according to the mark of the first virtual objects in the database of application program First type of items of quasi- article.
Step 605, whether detection virtual objects are equipped with the second virtual objects of the first type of items.
Illustratively, terminal detects whether be stored with the of the first type of items on the corresponding assembly position of the first type of items Two virtual objects.When being stored with the second virtual objects of the first type of items on the corresponding assembly position of the first type of items, into Enter step 606;When not having to store the second virtual objects of the first type of items on the corresponding assembly position of the first type of items, into Enter step 607.
Step 606, whether the first goods attribute of the first virtual objects of detection is better than the second article of the second virtual objects Attribute.
Illustratively, when terminal, which detects, is stored with the second virtual objects on the corresponding assembly position of the first type of items, The second goods attribute for obtaining the second virtual objects in the database of application program according to the mark of the second virtual objects, according to The mark of first virtual objects obtains the first goods attribute of the first virtual objects, detection first in the database of application program Whether goods attribute is better than the second goods attribute.
Goods attribute is used to characterize the property and performance of virtual objects, for example, the goods attribute of weapon includes lethality, attacks Hit distance, hit rate etc.;The goods attribute of flak jackets includes durable value, degree of protection etc.;The goods attribute of knapsack includes capacity.
When the first goods attribute is better than the second goods attribute, 607 are entered step;When the first goods attribute is not better than second When goods attribute, 609b is entered step.
Optionally, when the first type of items is armour type, the first durable value that terminal detects the first virtual objects is No the second durable value for being more than the second virtual objects;When the first durable value is more than the second durable value, the first goods attribute is determined Better than the second goods attribute.
Illustratively, the goods attribute of the virtual objects of armour type includes durable value, wherein durable value characterizes armour class The service life of the virtual objects of type.If the durable value of the first article is 5, the durable value of the second virtual objects is 3, it is determined that the One goods attribute is better than the second goods attribute.
Optionally, when the first type of items is armour type, terminal detects the first degree of protection of the first virtual objects Whether second degree of protection of second virtual objects is higher than;When the first degree of protection is higher than the second degree of protection, first is determined Goods attribute is better than the second goods attribute.
Illustratively, the goods attribute of the virtual objects of armour type includes degree of protection, wherein degree of protection characterization is anti- The virtual objects of tool type can bear the ability of injury.If the first article is degree of protection 2, the second virtual objects are protection etc. Grade 1, it is determined that the first goods attribute is better than the second goods attribute.
Illustratively, if the first goods attribute of the first virtual objects is degree of protection 2, durable value 5, the second virtual objects The second goods attribute be degree of protection be 1, durable value 3, then terminal determine that the first goods attribute is better than the second goods attribute;If First goods attribute is degree of protection 2, and durable value 3, it is 1 that the second goods attribute of the second virtual objects, which is degree of protection, durable Value is 3, then terminal determines that the first goods attribute is better than the second goods attribute;If the first goods attribute is degree of protection 2, durable value 2, it is 1 that the second goods attribute of the second virtual objects, which is degree of protection, and durable value is 3, then terminal is according to preset weight calculation Formula determines that the first goods attribute is better than the second goods attribute.
Optionally, when the first type of items is knapsack type, whether the first capacity of terminal the first virtual objects of detection More than the second capacity of the second virtual objects;When the first capacity is more than the second capacity, determine that the first goods attribute is better than second Goods attribute.
Illustratively, the goods attribute of the virtual objects of knapsack type includes capacity, wherein capacity is the corresponding back of the body of knapsack The number of packet lattice, knapsack lattice number is more, and the virtual objects that knapsack can store are more, and goods attribute is just more excellent.If the The capacity of one virtual objects is 16, and the capacity of the second virtual objects is 12, it is determined that the first goods attribute is better than the second article category Property.
Optionally, when the first type of items is fitting type, if virtual objects are equipped with the corresponding mesh of the fitting type Weapon is marked, then whether the first performance value after terminal detection target weapon the first virtual objects of assembly is more than target weapon and assembles The second performance number after second virtual objects;When first performance value is more than the second performance number, determine that the first goods attribute is excellent In the second goods attribute.
Illustratively, if the fitting type is gun sight subtype, the goods attribute of the virtual weapons of gun sight subtype Including pointing accuracy.If after target weapon assembles the first virtual objects, pointing accuracy 10, target weapon assembles the second virtual object After product, pointing accuracy 8, it is determined that the first goods attribute is better than the second goods attribute.
Step 607, determine that the first virtual objects are that there are the virtual objects of use demand for virtual objects.
Illustratively, when terminal detects that the corresponding assembly position of the first type of items is had vacant position, determine that virtual objects do not have The second virtual objects of the first type of items are assembled, so that it is determined that the first virtual objects are that there are the void of use demand for virtual objects Quasi- article.For example, when virtual objects do not assemble the virtual objects of weapon type, the corresponding assembly position tool of usual weapon type It has vacant position, when the first type of items is weapon type, the first virtual objects are exactly that there are the virtual of use demand for virtual objects Article.
Illustratively, when terminal determines that the first goods attribute is better than the second goods attribute, determine that the first virtual objects are empty There are the virtual objects of use demand for quasi- object.
Step 608, the first virtual objects are highlighted near virtual objects.
When the first virtual objects of terminal check are virtual objects there are when the virtual objects of use demand, by the first virtual object Product are highlighted near virtual objects, are prompted the first virtual objects of automatic Picking i.e..
Optionally, terminal can show the performance information of the first virtual objects near virtual objects, improve the first virtual object The brightness of product, the profile of the first virtual objects of overstriking, at least one of the texture mode that changes the first virtual objects prompt i.e. The first virtual objects will be picked up.
Step 609a, control virtual objects pick up the first virtual objects.
When terminal highlights the first virtual objects near virtual objects, prompt is i.e. by the first virtual objects of automatic Picking Afterwards, control virtual objects pick up the first virtual objects.
Step 609b does not pick up the first virtual objects.
When terminal determines that the first goods attribute is not better than the second goods attribute, it is virtual right to determine the first virtual objects not As there are the virtual objects of use demand, terminal control virtual objects do not pick up the first virtual objects.
Terminal can push away whether the first goods attribute is not better than the second goods attribute by the way that the method in step 606 is counter, herein It does not repeat.
In conclusion having the first void in the embodiment of the present application, within the scope of the pre-determined distance by detecting virtual objects When quasi- article, the first type of items of first virtual objects is obtained, determines that the first virtual objects are according to the first type of items No is that there are the virtual objects of use demand for virtual objects, when the first virtual objects are that there are the virtual of use demand for virtual objects When article, control virtual objects pick up the first virtual objects, solve in the related technology by manually picking up virtual objects user The problem of whether virtual objects are adapted to virtual objects can not be accurately judged, since terminal can make according to virtual objects Virtual objects are picked up with demand, to improve the degree convenient for control of virtual environment application program.
Optionally, in the embodiment of the present application, by determining that virtual objects do not assemble the second virtual objects of the first kind, It determines that the first virtual objects are that there are the virtual objects of use demand for virtual objects, improves whether the first virtual objects of detection need The accuracy to be picked up.
Optionally, in the embodiment of the present application, by determining that the first goods attribute of the first virtual objects is better than virtual objects Second goods attribute of the second virtual objects of the identical items type of assembly, so that it is determined that the first virtual objects are virtual objects There are the virtual objects of use demand, improve whether the first virtual objects of detection need the accuracy picked up.
Optionally, in the embodiment of the present application, by before picking up the first virtual objects, being protruded near virtual objects aobvious Show that the first virtual objects, prompt will pick up the first virtual objects, user can be made clearly to obtain the first virtual objects Relevant information, improve the degree convenient for control of virtual environment application program.
More preferably virtual objects are not necessarily user demand to goods attribute.For example, the attack distance of weapon A, lethality are all Not as good as weapon B, but user is more accustomed to control virtual objects and uses weapon B, it is therefore desirable to be determined according to the use habit of user Whether the first virtual objects are virtual objects there are use demand.
Referring to FIG. 7, it illustrates the control virtual objects of one exemplary embodiment of the application offer to virtual objects The method flow diagram being picked up.This method can be applied to the first terminal 110 or the second in computer system as shown in Figure 1 In other terminals in terminal 160 or the computer system.This method can be that one of step 203 in Fig. 2 embodiments is optional Way of example, this method includes:
Step 203a is called at the information of the first virtual objects of machine learning model pair and the information of virtual objects Reason obtains output result.
Terminal calls machine learning model, by the information of the first virtual objects and the information input of virtual objects to machine In learning model, output result is obtained.
Wherein, the information of the first virtual objects includes at least the first type of items, and machine learning model is according to virtual right What the information of elephant, the information of sample virtual objects and calibration result were trained, calibration result, which includes that virtual objects are practical, to be picked up Sample this virtual objects as a result, or, the result for the virtual objects pickup sample virtual objects manually demarcated.
Illustratively, as soon as user's control virtual objects often pick up time virtual objects, by the information of the virtual objects and The information of virtual objects is recorded as calibration result;Or, mark is arranged in the information of the virtual objects by manually obtaining virtual objects pickup Determine result.Terminal is by the information of the information (such as mark of virtual objects) of virtual objects and sample virtual objects (such as sample Type of items, goods attribute of this virtual objects etc.) it inputs in machine learning model, if being exported as a result, the output result It is different from calibration result, then the strategic function and weight of each node in machine learning model are adjusted, are trained, To obtain trained machine learning model.
Illustratively, terminal calls machine learning model, by the information of the first virtual objects and the information of virtual objects It is input in machine learning model, it is special by the information extraction of the first virtual objects of each node pair in machine learning model Sign, obtains the feature of the first virtual objects of each Node extraction, the grader in machine learning model is carried according to each node The feature of the first virtual objects taken exports result.
Step 203b determines that the first virtual objects are that there are use demands for virtual objects when it is predetermined value to export result Virtual objects.
When the output result of machine learning model is predetermined value, it is void to determine that machine learning model exports the first virtual objects There are the virtual objects of use demand for quasi- object.
In conclusion in the embodiment of the present application, by calling machine mould, determine that the first virtual objects are that virtual objects are deposited In the virtual objects of use demand, it can be ensured that the first virtual objects of control virtual objects pickup are the virtual objects of user demand Product, improve whether the first virtual objects of detection need the accuracy picked up.
User, may be by the virtual objects for the identical items type originally assembled after the first virtual objects of automatic Picking It abandons, or, abandon the first virtual objects of automatic Picking, therefore, in the embodiment of the present application, when user's discarding is virtual right again As after the virtual objects that assemble or carry, terminal within a predetermined period of time, stops automatic pickup function, avoids just being dropped Virtual objects be picked automatically again, improve the degree convenient for control of virtual environment application program.
In the embodiment of the present application, each virtual objects are corresponding with characteristic value, and each virtual objects are corresponding with characteristic value summation, Wherein, characteristic value summation is the weighted sum of the characteristic value of (assembly and/or carrying) virtual objects possessed by virtual objects.Eventually End can determine whether virtual objects are the virtual objects for needing to pick up according to characteristic value summation.
As shown in figure 8, virtual objects 300 are corresponding with characteristic value summation 800, characteristic value summation 800 includes multiple characteristic values 801, each characteristic value 801 corresponds to a virtual objects, and each characteristic value 801 corresponds at least one subcharacter value, for example, as schemed Shown, the corresponding characteristic value 1 of virtual objects of weapon type includes identification value 1, type of items numerical value 1, goods attribute numerical value 1 And numerical priority value 1;The corresponding characteristic value 2 of virtual objects of fitting type includes identification value 2, type of items numerical value 2, object Product attribute value 2 and numerical priority value 2;The corresponding characteristic value n of virtual objects of armour type includes identification value n, article Type Value n, goods attribute numerical value n and numerical priority value n.
By taking the first virtual objects of weapon type as an example, characteristic value includes identification value a1, type of items numerical value a2, object Product attribute value a3 and numerical priority value a4.If the corresponding weighted values of identification value a1 are k1, type of items numerical value a2 is corresponded to Weighted value be k2, the corresponding weighted values of goods attribute numerical value a3 be k3, the corresponding weighted values of numerical priority value a4 be k4, if empty Quasi- object only has the first virtual objects, then the characteristic value summation A of virtual objects is:A=a1*k1+a2*k2+a3*k3+a4* k4。
Referring to FIG. 9, it illustrates the control virtual objects of one exemplary embodiment of the application offer to virtual objects The method flow diagram being picked up.This method can be applied to the first terminal 110 or the second in computer system as shown in Figure 1 In other terminals in terminal 160 or the computer system.This method includes:
Step 901, control virtual objects move in virtual environment, exist in virtual environment for virtual objects pickup extremely Few virtual objects.
Terminal control virtual objects are movable in the movable space of virtual environment.Wherein, movable space is virtual ring In border virtual objects can with movable range, movable space includes in aerial, outdoor surfaces, water, interior, building, grove, can The chain of mountains, tunnel of climbing etc..There are at least one virtual objects picked up for virtual objects, the virtual objects in movable space Can be weapon, armour, ammunition, accessory, supply at least one of article and knapsack.
Step 902, when, there are when the first virtual objects, determining the first virtual objects within the scope of the pre-determined distance of virtual objects Whether record has the First Eigenvalue summation.
Terminal centered on virtual objects, detection pre-determined distance in whether there is the first virtual objects, when preset away from From in range there are when the first virtual objects, detect first virtual objects whether record has the First Eigenvalue summation.
The First Eigenvalue summation is to be recorded in the first virtual object when virtual objects the last time being not picked up the first virtual objects On product, the First Eigenvalue summation is virtual objects when the last time being not picked up the first virtual objects, possessed virtual object The weighted sum of the characteristic value of product.
Illustratively, when virtual objects are within the scope of the pre-determined distance of virtual objects, but virtual objects and it is not picked up the void When quasi- article, itself corresponding characteristic value summation can be recorded on virtual objects;When in the preset range of virtual objects never When in the presence of a certain virtual objects excessively, which will not record the characteristic value summation of virtual objects.
Step 903, when the first virtual objects do not have the First Eigenvalue summation, determine whether the first virtual objects are empty There are the virtual objects of use demand for quasi- object.
When the first virtual objects do not have the First Eigenvalue summation, terminal determines whether the first virtual objects are virtual right As there are the virtual objects of use demand.
Illustratively, when the first virtual objects do not have the First Eigenvalue summation, illustrate virtual objects from being not picked up Whether the first virtual objects, terminal and then the first virtual objects of detection are that there are the virtual objects of use demand for virtual objects.It can Choosing, terminal can detect whether the first virtual objects are that there are use demands for virtual objects by the embodiment of Fig. 2, Fig. 6 and Fig. 7 Virtual objects.
Step 904, when the first virtual objects are virtual objects there are when the virtual objects of use demand, virtual objects are controlled The first virtual objects are picked up, and update the Second Eigenvalue summation of virtual objects according to the First Eigenvalue of the first virtual objects. Wherein, Second Eigenvalue summation is the weighted sum of the characteristic value for the virtual objects that virtual objects currently have.
When the first virtual objects are virtual objects there are when the virtual objects of use demand, the pickup of terminal control virtual objects First virtual objects, and the First Eigenvalue of the first virtual objects is obtained, for example, the first identifier numerical value of the first virtual objects B1, the first type of items numerical value b2, the first goods attribute numerical value b3 and the first numerical priority value b4, if first identifier numerical value b1 Weight be q1, the weight of the first type of items numerical value b2 is q2, the weight of the first goods attribute numerical value b3 is q3, first preferential Value of series b4 is q4, and the corresponding Second Eigenvalue summation of virtual objects is B1 before picking up the first virtual objects, then updated Characteristic value summation B2=B1+b1*q1+b2*q2+b3*q3+b4*q4.
It is total described, in the embodiment of the present application, when within the scope of the pre-determined distance of virtual objects there are when the first virtual objects, By detect the first virtual objects whether be virtual objects there are the virtual objects of use demand before first need detection first Whether virtual objects have recorded the First Eigenvalue summation, when determining that the first virtual objects record has the First Eigenvalue summation just and can examine Whether survey needs to pick up the first virtual objects, will detect whether to need when need not have virtual objects within a preset range every time It picks up, reduces the operand of terminal, improve the operation fluency of virtual environment application program.
1 is please referred to Fig.1, it illustrates the control virtual objects of one exemplary embodiment of the application offer to virtual objects The method flow diagram being picked up.This method can be applied to the first terminal 111 or the second in computer system as shown in Figure 1 In other terminals in terminal 160 or the computer system.This method includes:
Step 1101, control virtual objects move in virtual environment, exist in virtual environment and pick up for virtual objects At least one virtual objects.
Terminal control virtual objects are movable in the movable space of virtual environment.Wherein, movable space is virtual ring In border virtual objects can with movable range, movable space includes in aerial, outdoor surfaces, water, interior, building, grove, can The chain of mountains, tunnel of climbing etc..There are at least one virtual objects picked up for virtual objects, the virtual objects in movable space Can be weapon, armour, ammunition, accessory, supply at least one of article and knapsack.
Step 1102, it detects and whether there is the first virtual objects within the scope of the pre-determined distance of virtual objects.
Terminal is detected centered on virtual objects and whether there is the first virtual objects within the scope of pre-determined distance.If in the presence of, Enter step 1103;If being not present, continue to detect.
Step 1103, whether the first virtual objects of detection have recorded the First Eigenvalue summation.
Terminal centered on virtual objects, detection pre-determined distance in whether there is the first virtual objects, when preset away from From in range there are when the first virtual objects, detect first virtual objects whether record has the First Eigenvalue summation.When When one virtual objects have the First Eigenvalue summation, 1104a is entered step;When the first virtual objects are total without the First Eigenvalue And when, enter step 1104b.
Whether step 1104a, detection the First Eigenvalue summation are identical as the Second Eigenvalue summation of virtual objects.
When the first virtual objects have the First Eigenvalue summation, terminal detect the First Eigenvalue summation whether with it is virtual right The Second Eigenvalue summation of elephant is identical.When the First Eigenvalue summation is identical as Second Eigenvalue summation, 1108b is entered step; When the First Eigenvalue summation and Second Eigenvalue summation differ, 1105 are entered step.
When the First Eigenvalue summation is identical as Second Eigenvalue summation, illustrate that virtual objects are not picked up in the last time After one virtual objects, assembly and the virtual objects carried do not change, since the last virtual objects do not pick up The first virtual objects are taken, therefore the first virtual objects are not that there are the virtual objects of use demand for virtual objects, therefore do not need Pick up the first virtual objects, therefore terminal is after determining that the First Eigenvalue summation is identical as Second Eigenvalue summation, it need not be into One step detects whether the first virtual objects are that there are the virtual objects of use demand for virtual objects, reduces the calculation amount of terminal. Wherein, characteristic value summation is integer variable, since detection the First Eigenvalue summation and Second Eigenvalue summation are simple ratio To two integer variables, therefore calculation amount is smaller.
Step 1104b, whether the first virtual objects of detection are that there are the virtual objects of use demand for virtual objects.
Illustratively, when the first virtual objects do not have the First Eigenvalue summation, illustrate virtual objects from being not picked up Whether the first virtual objects, terminal and then the first virtual objects of detection are that there are the virtual objects of use demand for virtual objects.When Determine that the first virtual objects are virtual objects there are when the virtual objects of use demand, enter step 1108a;When determine first void Quasi- article is not virtual objects there are when the virtual objects of use demand, enters step 1108b.
Optionally, terminal can detect whether the first virtual objects are that virtual objects are deposited by the embodiment of Fig. 2, Fig. 6 and Fig. 7 In the virtual objects of use demand.
Step 1105, readjustment leads to the changed first event of the First Eigenvalue summation.
When the First Eigenvalue summation and Second Eigenvalue summation differ, terminal readjustment causes the First Eigenvalue summation to become Change to the first event during Second Eigenvalue summation.
Illustratively, when characteristic value summation changes, corresponding event can be generated.For example, as shown in figure 11, working as bullet When the ammunition of medicine Class1 consumes, the corresponding characteristic value of ammunition Class1 813 changes, and results in a feature that 813 pairs of value The total characteristic value 801 of the weapon for the weapon type 1 answered changes, and then the characteristic value summation 800 of virtual objects 300 is caused to be sent out Changing generates corresponding event, the event that terminal readjustment generates, which can obtain, leads to spy while characteristic value changes The corresponding characteristic value of the ammunition of 800 changed ammunition Class1 of value indicative summation 813.
Step 1106, according to first event, changed Second Eigenvalue in the First Eigenvalue summation is obtained.
Terminal leads to changed Second Eigenvalue in the First Eigenvalue summation according to first event, acquisition.
Virtual objects correspond to the First Eigenvalue summation and are changed after the last time is not picked up the first virtual objects Become, become Second Eigenvalue summation, terminal readjustment causes the characteristic value summation of virtual objects to change from the First Eigenvalue summation To the first event of Second Eigenvalue summation, changed Second Eigenvalue in the First Eigenvalue summation can be got.Wherein, Second Eigenvalue corresponds to the second virtual objects.
Step 1107, according to the corresponding the First Eigenvalue of the first virtual objects and Second Eigenvalue, the first virtual object is detected Whether product meet the condition of pickup.
Terminal detects the First Eigenvalue and whether Second Eigenvalue matches.When the First Eigenvalue and Second Eigenvalue match When, it determines that the first virtual objects meet the condition of pickup, enters step 1107a;When the First Eigenvalue and Second Eigenvalue not Timing determines that the first virtual objects are unsatisfactory for the condition of pickup, enters step 1107b.
Illustratively, the characteristic value summation of virtual objects is changed the reason is that having picked up new virtual objects, consumption The virtual objects that have possessed have abandoned the virtual objects possessed.When virtual objects in the last time and are not picked up first When virtual objects, it may be possible to because virtual objects assemble or carry virtual objects identical with the first virtual objects, it is also possible to It is user assembled or carries identical with the type of items of the first virtual objects and more higher than the first virtual objects priority level Third virtual objects.Therefore, terminal is needed according to changed Second Eigenvalue and fisrt feature in the First Eigenvalue summation Whether value, the first virtual objects of detection meet the condition of pickup.If virtual objects are due to consuming or abandoning and the first virtual object The First Eigenvalue summation changes caused by the identical virtual objects of product, then the first virtual objects meet the condition of pickup;If Virtual objects be due to having picked up new virtual objects, if new virtual objects are different from the type of items of the first virtual objects, Then the first virtual objects are unsatisfactory for the condition of pickup;If virtual objects are due to having abandoned third virtual objects, having picked up and The type of items of one virtual objects is identical, and the second virtual objects more lower than the first virtual objects priority level, then first is empty Quasi- article meets the condition of pickup.
Optionally, the First Eigenvalue includes the first identifier numerical value of the first virtual objects, the first type of items numerical value, first At least one of quantity, the first goods attribute numerical value and first numerical priority value;Second Eigenvalue includes the second virtual object The second identifier numerical value of product, the second type of items numerical value, the second quantity, the second goods attribute numerical value and the second numerical priority value At least one of, terminal can determine that the first virtual objects meet the condition of pickup at least one of in the following manner:
I, identical with second identifier numerical value when first identifier numerical value, when the first quantity and the second quantity difference, determine first Virtual objects meet the condition of pickup.
Illustratively, identical with second identifier numerical value when first identifier numerical value, illustrate the second virtual objects and first virtually When article is same virtual objects, the first quantity and the second quantity difference, illustrate that the second virtual objects produce consumption, therefore need The first virtual objects identical with the second virtual objects are supplemented, so that it is determined that the first virtual objects meet the condition of pickup.
II, identical with Second Type numerical value when first kind numerical value, the first goods attribute numerical value is higher than the second goods attribute When numerical value, determine that the first virtual objects meet the condition of pickup.
Illustratively, the first virtual objects are the shields that degree of protection is 2, and the second virtual objects are that degree of protection is 1 Shield, third virtual objects be degree of protection be 3 shield, virtual objects when the last time being not picked up the first virtual objects, Due to carrying third virtual objects, the first virtual objects need not be picked up, but due to third in fight later Virtual objects are destroyed, and have to abandon the third virtual objects, have picked up the second low virtual objects of degree of protection, therefore When again passing by the first virtual objects, need to pick up the first virtual objects.
III, identical with Second Type numerical value when first kind numerical value, the first numerical priority value is higher than the second numerical priority value When, determine that the first virtual objects meet the condition of pickup.
Illustratively, identical with Second Type numerical value when first kind numerical value, the first numerical priority value is preferential higher than second When value of series, it may be possible to which user has picked up identical virtual objects after the last time is not picked up the first virtual objects, and makees It is used for usual virtual objects, improves numerical priority value, it is thus determined that the First Eigenvalue and Second Eigenvalue matching.Example Such as, if the first virtual objects are the pistols that lethality is 2, the second virtual objects are the pistol that lethality is 3, and virtual objects are most When being closely once not picked up the first virtual objects, due to carrying higher second virtual objects of attribute value, do not pick up First virtual objects, but in the time later, user's the first virtual objects more accustomed to using, therefore actively picked up first Virtual objects, therefore the priority of the first virtual objects is improved, but since the first virtual objects damage, user has to pick up After taking the second virtual objects, when again passing by the first virtual objects being not picked up, need to pick up the first virtual objects.
Optionally, the First Eigenvalue includes the first identifier numerical value of the first virtual objects, the first type of items numerical value, first At least one of goods attribute numerical value and the first numerical priority value;Second Eigenvalue includes the second mark of the second virtual objects Know at least one of numerical value, the second type of items numerical value, the second goods attribute numerical value and second numerical priority value, terminal can Determine that the first virtual objects are unsatisfactory for the condition of pickup at least one of in the following manner:
I, when first kind numerical value and Second Type numerical value difference, determine that the first virtual objects are unsatisfactory for the item of pickup Part.
Illustratively, when first kind numerical value and Second Type numerical value difference, illustrate that the First Eigenvalue summation is caused to become The second virtual objects and the first virtual objects changed are not related, for example, virtual objects consume ammunition, and first is virtual Article is flak jackets, due to the last virtual objects and is not picked up the first virtual objects, and the variation of the First Eigenvalue summation It is not related with the first virtual objects, it is thus determined that the First Eigenvalue and Second Eigenvalue mismatch.
II, identical with Second Type numerical value when first kind numerical value, the first goods attribute numerical value is less than the second goods attribute When numerical value, determine that the first virtual objects are unsatisfactory for the condition of pickup.
Illustratively, identical with Second Type numerical value when first kind numerical value, the first goods attribute numerical value is less than the second object When product attribute value, illustrate that user is inclined to use virtual objects more better than the first virtual objects attribute, it is thus determined that first is special Value indicative and Second Eigenvalue mismatch.
III, identical with Second Type numerical value when first kind numerical value, the first numerical priority value is less than the second numerical priority value When, determine that the first virtual objects are unsatisfactory for the condition of pickup.
Illustratively, identical with Second Type numerical value when first kind numerical value, the first numerical priority value is preferential less than second When value of series, illustrate that user is inclined to use the second virtual objects, it is thus determined that the First Eigenvalue and Second Eigenvalue mismatch.
Step 1108a, control virtual objects pick up the first virtual objects, and update Second Eigenvalue according to the First Eigenvalue Summation.
Terminal control virtual objects pick up the first virtual objects, and update Second Eigenvalue summation according to the First Eigenvalue.
Step 1108b does not pick up the first virtual objects.
Terminal control virtual objects do not pick up the first virtual objects.If it is total that the first virtual objects do not have the First Eigenvalue With then terminal records Second Eigenvalue summation on the first virtual objects.
In an exemplary embodiment, as shown in figure 12, the changed Second Eigenvalue of total characteristic value is caused to be Corresponding virtual objects are weapons 1 comprising the characteristic values such as assembly position 1, weapon type 1, accessory mark 7, bullet quantity 8, when When assembly 1 corresponding quantative attribute value of position is 0, if being not picked up in the Second Eigenvalue of virtual objects, accessory is identified as 7, assembly Position is 1, then picks up the virtual objects.
In conclusion in the embodiment of the present application, when within the scope of the pre-determined distance of virtual objects there are when the first virtual objects, By detect the first virtual objects whether be virtual objects there are the virtual objects of use demand before first need detection first Whether virtual objects have recorded the First Eigenvalue summation, when determining that the first virtual objects record has the First Eigenvalue summation just and can examine Whether survey needs to pick up the first virtual objects, will detect whether to need when need not have virtual objects within a preset range every time It picks up, reduces the operand of terminal, improve the operation fluency of virtual environment application program.
Optionally, in the embodiment of the present application, when determine the First Eigenvalue summation that the first virtual objects have with it is virtual right When the Second Eigenvalue summation of elephant is identical, do not pick up the first virtual objects, due to determine the First Eigenvalue summation with it is virtual right After the Second Eigenvalue summation of elephant is identical, it need not further detect whether to need to pick up the first virtual objects, reduce terminal Operand, improve the operation fluency of virtual environment application program.
Optionally, in the embodiment of the present application, when determine the First Eigenvalue summation that the first virtual objects have with it is virtual right When the Second Eigenvalue summation of elephant differs, by obtaining changed Second Eigenvalue in the First Eigenvalue summation, detection Whether Second Eigenvalue the First Eigenvalue corresponding with the first virtual objects, which matches, determines whether to pick up the first virtual objects, improves Whether the first virtual objects of detection need the accuracy picked up.
It is the device embodiment of the application below, it, can be in conjunction with ginseng for the details not being described in detail in device embodiment It examines in above method embodiment and records accordingly, repeats no more herein.
3 are please referred to Fig.1, it illustrates the control virtual objects of one exemplary embodiment of the application offer to virtual objects The structure chart for the device being picked up, the device being implemented in combination with as the complete of terminal by software, hardware or both Portion or a part, the device include:Acquisition module 1310, processing module 1320, display module 1330 and receiving module 1340, Wherein, display module 1330 and receiving module 1340 are optional modules.
Processing module 1320 is moved for controlling virtual objects in virtual environment, is existed in virtual environment for virtual right As at least one virtual objects of pickup.
Acquisition module 1310, for when existing when the first virtual objects within the scope of the pre-determined distance of virtual objects, acquisition the First type of items of one virtual objects.
Processing module 1320 is additionally operable to, according to the first type of items, determine whether the first virtual objects are that virtual objects are deposited In the virtual objects of use demand;When the first virtual objects are that virtual objects are empty there are when the virtual objects of use demand, controlling The first virtual objects of quasi- acquiring object.
In an alternative embodiment,
Processing module 1320 is additionally operable to when virtual objects are equipped with the second virtual objects of the first type of items, is determined Whether the first goods attribute of the first virtual objects is better than the second goods attribute of the second virtual objects;When the first goods attribute is excellent When the second goods attribute, determine that the first virtual objects are that there are the virtual objects of use demand for virtual objects.
In an alternative embodiment, the first type of items is armour type;
Processing module 1320, is additionally operable to determine whether the first durable value of the first virtual objects is more than the second virtual objects Second durable value;When the first durable value is more than the second durable value, determine that the first goods attribute is better than the second goods attribute;Or, Determine whether the first degree of protection of the first virtual objects is higher than the second degree of protection of the second virtual objects;When first protection etc. When grade is higher than the second degree of protection, determine that the first goods attribute is better than the second goods attribute.
In an alternative embodiment, the first type of items is knapsack type;
Processing module 1320, is additionally operable to determine whether the first capacity of the first virtual objects is more than the of the second virtual objects Two capacity;When the first capacity is more than the second capacity, determine that the first goods attribute is better than the second goods attribute.
In an alternative embodiment, the first type of items is fitting type, the first virtual objects and the second virtual object Product are the virtual accessories of target weapon, and virtual objects are equipped with target weapon;
Processing module 1320 is additionally operable to determine whether the first performance value after target weapon the first virtual objects of assembly is big The second performance number after target weapon assembles the second virtual objects;When first performance value is more than the second performance number, determine First goods attribute is better than the second goods attribute.
In an alternative embodiment,
Processing module 1320 is additionally operable to call the information and virtual objects of machine learning model pair the first virtual objects Information is handled, and output result is obtained;The information of first virtual objects includes at least the first type of items, machine learning model It is to be trained according to the information of virtual objects, the information of sample virtual objects and calibration result, calibration result includes void The quasi- practical pickup sample virtual objects of object as a result, or, the virtual objects manually demarcated pick up the result of sample virtual objects; When it is predetermined value to export result, determine that the first virtual objects are that there are the virtual objects of use demand for virtual objects.
In an alternative embodiment,
Processing module 1320 is additionally operable to when virtual objects do not have to assemble the second virtual objects of the first type of items, really Whether fixed first virtual objects are that there are the virtual objects of use demand for virtual objects.
In an alternative embodiment,
Processing module 1320, be additionally operable to determine the first distance between virtual objects and the first virtual objects be less than it is default away from Whether the duration from range is more than time threshold.
Acquisition module 1310 is additionally operable to, when the duration being more than time threshold, execute the step for obtaining the first type of items Suddenly.
In an alternative embodiment,
Display module 1330 is highlighted for the first virtual objects to be highlighted near virtual objects including aobvious At least one of show the performance information of the first virtual objects, improve brightness, overstriking profile, change texture.
In an alternative embodiment,
Receiving module 1340 abandons instruction for receiving.
Processing module 1320 is additionally operable to instruct discarding destination virtual article according to discarding;Destination virtual article is virtual right As the virtual objects for assembling or carrying;In the predetermined amount of time after abandoning destination virtual article, stop pickup function.
4 are please referred to Fig.1, it illustrates the control virtual objects of one exemplary embodiment of the application offer to virtual objects The structure chart for the device being picked up, the device being implemented in combination with as the complete of terminal by software, hardware or both Portion or a part, device include:Detection module 1410, processing module 1420 and acquisition module 1430, wherein acquisition module 1430 be optional module.
Processing module 1420 is moved for controlling virtual objects in virtual environment, is existed in virtual environment for virtual right As at least one virtual objects of pickup.
Detection module 1410, for when existing when the first virtual objects within the scope of the pre-determined distance of virtual objects, detecting the Whether one virtual objects have recorded the First Eigenvalue summation;It is to be not picked up virtual objects the last time to state the First Eigenvalue summation It is recorded in when one virtual objects on the first virtual objects, the First Eigenvalue summation is virtual objects when being not picked up the last time The weighted sum of the characteristic value of possessed virtual objects;When the first virtual objects do not have the First Eigenvalue summation, detection the Whether one virtual objects are that there are the virtual objects of use demand for virtual objects.
Processing module 1420 is additionally operable to when determining first virtual objects be that there are the virtual objects of use demand for virtual objects When, control virtual objects pick up the first virtual objects, and update virtual objects according to the First Eigenvalue of the first virtual objects Second Eigenvalue summation.
In an alternative embodiment,
Detection module 1410 is additionally operable to, when the first virtual objects have the First Eigenvalue summation, detect the First Eigenvalue Whether summation is identical as the Second Eigenvalue summation of virtual objects.
Processing module 1420, be additionally operable to when the First Eigenvalue and it is identical as Second Eigenvalue summation when, do not pick up first void Quasi- article.
In an alternative embodiment,
Processing module 1420 is additionally operable to when the characteristic value summation of the First Eigenvalue summation and virtual objects differs, and is returned Adjust the first event caused during the First Eigenvalue sum variation to Second Eigenvalue summation.
Acquisition module 1430, for according to first event, obtaining changed second feature in the First Eigenvalue summation Value.
Processing module 1420 is additionally operable to detect whether the first virtual objects meet according to the First Eigenvalue and Second Eigenvalue The condition of pickup;When the first virtual objects meet the condition of pickup, the first virtual objects are picked up, and more according to the First Eigenvalue New Second Eigenvalue summation.
In an alternative embodiment, the First Eigenvalue includes the first identifier numerical value of the first virtual objects, the first object At least one of product Type Value, the first quantity, the first goods attribute numerical value and first numerical priority value, Second Eigenvalue Corresponding second virtual objects, Second Eigenvalue include the second identifier numerical value of the second virtual objects, the second type of items numerical value, the At least one of two quantity, the second goods attribute numerical value and second numerical priority value;
Processing module 1420 is additionally operable to when first identifier numerical value is identical with second identifier numerical value, and the first quantity and second counts When measuring different, determine that the first virtual objects meet the condition of pickup;Or, when the first type of items numerical value and the second type of items number Be worth it is identical, the first goods attribute numerical value be higher than the second goods attribute numerical value when, determine the first virtual objects meet pickup condition; Or, when the first type of items numerical value and the second type of items numerical value are identical, the first numerical priority value is higher than the second numerical priority value When, determine that the first virtual objects meet the condition of pickup.
In an alternative embodiment,
Processing module 1420 is additionally operable to when the characteristic value summation of the First Eigenvalue summation and virtual objects differs, and is returned Adjust the first event caused during the First Eigenvalue sum variation to Second Eigenvalue summation.
Acquisition module 1430, for according to first event, obtaining changed second feature in the First Eigenvalue summation Value.
Processing module 1420 is additionally operable to detect whether the first virtual objects meet according to the First Eigenvalue and Second Eigenvalue The condition of pickup;When the first virtual objects are unsatisfactory for the condition of pickup, the first virtual objects are not picked up, and by virtual objects Second Eigenvalue summation is recorded on the first virtual objects.
In an alternative embodiment, the First Eigenvalue includes the first identifier numerical value of the first virtual objects, the first object At least one of product Type Value, the first goods attribute numerical value and first numerical priority value, Second Eigenvalue correspond to second Virtual objects, Second Eigenvalue include the second identifier numerical value of the second virtual objects, the second type of items numerical value, the second article category Property at least one of numerical value and the second numerical priority value;
Processing module 1420 is additionally operable to when first identifier numerical value and second identifier numerical value difference, and the first type of items number When value is different with the second type of items numerical value, determine that the first virtual objects are unsatisfactory for the condition of pickup;Or, when the first type of items Numerical value and the second type of items numerical value are identical, when the first goods attribute numerical value is less than the second goods attribute numerical value, determine the first void Quasi- article is unsatisfactory for the condition of pickup;Or, when the first type of items numerical value and the second type of items numerical value are identical, the first priority When numerical value is less than the second numerical priority value, determine that the first virtual objects are unsatisfactory for the condition of pickup.
5 are please referred to Fig.1, it illustrates the structural frames for the electronic equipment 1500 that one exemplary embodiment of the application provides Figure.The electronic equipment 1500 can be portable mobile termianl, such as:Smart mobile phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) is broadcast Put device.Electronic equipment 1500 is also possible to be referred to as other titles such as user equipment, portable terminal.
In general, electronic equipment 1500 includes:Processor 1501 and memory 1502.
Processor 1501 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- may be used in reason device 1501 Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 1501 can also include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state. In some embodiments, processor 1501 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1501 can also wrap AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processors are for handling related machine learning Calculating operation.
Memory 1502 may include one or more computer readable storage mediums, which can To be tangible and non-transient.Memory 1502 may also include high-speed random access memory and nonvolatile memory, Such as one or more disk storage equipments, flash memory device.In some embodiments, non-transient in memory 1502 Computer readable storage medium for storing at least one instruction, at least one instruction for by processor 1501 it is performed with Realize the method that control virtual objects provided herein are picked up virtual objects.
In some embodiments, electronic equipment 1500 is also optional includes:Peripheral device interface 1503 and at least one outer Peripheral equipment.Specifically, peripheral equipment includes:Radio circuit 1504, touch display screen 1505, camera 1506, voicefrequency circuit 1507, at least one of positioning component 1508 and power supply 1509.
Peripheral device interface 1503 can be used for I/O (Input/Output, input/output) is relevant at least one outer Peripheral equipment is connected to processor 1501 and memory 1502.In some embodiments, processor 1501, memory 1502 and periphery Equipment interface 1503 is integrated on same chip or circuit board;In some other embodiments, processor 1501, memory 1502 and peripheral device interface 1503 in any one or two can be realized on individual chip or circuit board, this implementation Example is not limited this.
Radio circuit 1504 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal. Radio circuit 1504 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1504 is by telecommunications Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 1504 include:Antenna system, one or more amplifiers, tuner, oscillator, digital signal processor, compiles solution at RF transceivers Code chipset, user identity module card etc..Radio circuit 1504 can by least one wireless communication protocol come with it is other Terminal is communicated.The wireless communication protocol includes but not limited to:WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some implementations In example, radio circuit 1504 can also include NFC (Near Field Communication, wireless near field communication) related Circuit, the application are not limited this.
Touch display screen 1505 is for showing UI (User Interface, user interface).The UI may include figure, text Sheet, icon, video and its their arbitrary combination.Touch display screen 1505 also has acquisition on the surface of touch display screen 1505 Or the ability of the touch signal of surface.The touch signal can be used as control signal to be input at processor 1501 Reason.Touch display screen 1505 is for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or soft keyboard.In some realities It applies in example, touch display screen 1505 can be one, and the front panel of electronic equipment 1500 is arranged;In further embodiments, it touches It can be at least two to touch display screen 1505, be separately positioned on the different surfaces of electronic equipment 1500 or in foldover design;Again In some embodiments, touch display screen 1505 can be flexible display screen, be arranged on the curved surface of electronic equipment 1500 or On fold plane.Even, touch display screen 1505 can also be arranged to non-rectangle irregular figure, namely abnormity screen.It touches aobvious LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light- may be used in display screen 1505 Emitting Diode, Organic Light Emitting Diode) etc. materials prepare.
CCD camera assembly 1506 is for acquiring image or video.Optionally, CCD camera assembly 1506 includes front camera And rear camera.In general, front camera is for realizing video calling or self-timer, rear camera is for realizing photo or regards The shooting of frequency.In some embodiments, rear camera at least two are that main camera, depth of field camera, wide-angle are taken the photograph respectively As any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide Pan-shot and VR (Virtual Reality, virtual reality) shooting function are realized in angle camera fusion.In some embodiments In, CCD camera assembly 1506 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, can also be double-colored temperature flash of light Lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for the light compensation under different-colour.
Voicefrequency circuit 1507 is used to provide the audio interface between user and electronic equipment 1500.Voicefrequency circuit 1507 can be with Including microphone and loud speaker.Microphone is used to acquire the sound wave of user and environment, and converts sound waves into electric signal and be input to Processor 1501 is handled, or is input to radio circuit 1504 to realize voice communication.For stereo acquisition or noise reduction Purpose, microphone can be it is multiple, be separately positioned on the different parts of electronic equipment 1500.Microphone can also be array wheat Gram wind or omnidirectional's acquisition type microphone.Loud speaker is then used to convert from the electric signal of processor 1501 or radio circuit 1504 For sound wave.Loud speaker can be traditional wafer speaker, can also be piezoelectric ceramic loudspeaker.When loud speaker is piezoelectric ceramics When loud speaker, the audible sound wave of the mankind can be not only converted electrical signals to, the mankind can also be converted electrical signals to and listened not The sound wave seen is to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1507 can also include earphone jack.
Positioning component 1508 is used for the current geographic position of Positioning Electronic Devices 1500, to realize navigation or LBS (Location Based Service, location based service).Positioning component 1508 can be the GPS based on the U.S. The Galileo system of (Global Positioning System, global positioning system), Chinese dipper system or Russia Positioning component.
Power supply 1509 is used to be powered for the various components in electronic equipment 1500.Power supply 1509 can be alternating current, Direct current, disposable battery or rechargeable battery.When power supply 1509 includes rechargeable battery, which can have Line rechargeable battery or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is The battery to be charged by wireless coil.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, electronic equipment 1500 further include there are one or multiple sensors 1510.The one or more Sensor 1510 includes but not limited to:Acceleration transducer 1511, gyro sensor 1512, pressure sensor 1515, fingerprint Sensor 1514, optical sensor 1515 and proximity sensor 1516.
Acceleration transducer 1511 can detect adding in three reference axis of the coordinate system established with electronic equipment 1500 Velocity magnitude.For example, acceleration transducer 1511 can be used for detecting component of the acceleration of gravity in three reference axis.Processing The acceleration of gravity signal that device 1501 can be acquired according to acceleration transducer 1511, control touch display screen 1505 is laterally to regard Figure or longitudinal view carry out the display of user interface.Acceleration transducer 1511 can be also used for game or the movement number of user According to acquisition.
Gyro sensor 1512 can detect body direction and the rotational angle of electronic equipment 1500, gyro sensor 1512 can cooperate with acquisition user to act the 3D of electronic equipment 1500 with acceleration transducer 1511.Processor 1501 is according to top The data that spiral shell instrument sensor 1512 acquires, may be implemented following function:Action induction (for example changed according to the tilt operation of user Become UI), shooting when image stabilization, game control and inertial navigation.
Pressure sensor 1515 can be arranged under the side frame of electronic equipment 1500 and/or touch display screen 1505 Layer.When pressure sensor 1515 is arranged in the side frame of electronic equipment 1500, user can be detected to electronic equipment 1500 Signal is held, right-hand man's identification or prompt operation are carried out according to the gripping signal.When the setting of pressure sensor 1515 is aobvious in touch When the lower layer of display screen 1505, it can be realized to grasping on the interfaces UI according to user to the pressure operation of touch display screen 1505 The property made control is controlled.Operability control include in button control, scroll bar control, icon control, menu control extremely Few one kind.
Fingerprint sensor 1514 is used to acquire the fingerprint of user, with according to the identity of collected fingerprint recognition user. When identifying that the identity of user is trusted identity, the user is authorized to execute relevant sensitive operation, the sensitivity by processor 1501 Operation includes solving lock screen, checking encryption information, download software, payment and change setting etc..Fingerprint sensor 1514 can be by The front, the back side or side of electronic equipment 1500 are set.When being provided with physical button or manufacturer Logo on electronic equipment 1500, Fingerprint sensor 1514 can be integrated with physical button or manufacturer Logo.
Optical sensor 1515 is for acquiring ambient light intensity.In one embodiment, processor 1501 can be according to light The ambient light intensity that sensor 1515 acquires is learned, the display brightness of touch display screen 1505 is controlled.Specifically, work as ambient light intensity When higher, the display brightness of touch display screen 1505 is turned up;When ambient light intensity is relatively low, the aobvious of touch display screen 1505 is turned down Show brightness.In another embodiment, the ambient light intensity that processor 1501 can also be acquired according to optical sensor 1515, is moved State adjusts the acquisition parameters of CCD camera assembly 1506.
Proximity sensor 1516, also referred to as range sensor are generally arranged at the front of electronic equipment 1500.Proximity sensor 1516 the distance between the front for acquiring user and electronic equipment 1500.In one embodiment, work as proximity sensor 1516 when detecting that the distance between the front of user and electronic equipment 1500 tapers into, and is touched by the control of processor 1501 aobvious Display screen 1505 is switched to breath screen state from bright screen state;When proximity sensor 1516 detects user with electronic equipment 1500 just When the distance between face becomes larger, touch display screen 1505 is controlled by processor 1501 and is switched to bright screen shape from breath screen state State.
It will be understood by those skilled in the art that structure shown in Figure 15 does not constitute the restriction to electronic equipment 1500, May include either combining certain components than illustrating more or fewer components or being arranged using different components.
The application also provides a kind of computer readable storage medium, be stored in the storage medium at least one instruction, At least one section of program, code set or instruction set, at least one instruction or refer at least one section of program, the code set Enable collection loaded by the processor and executed with realize above method embodiment provide control virtual objects to virtual objects into The method of row pickup.
Present invention also provides a kind of computer program products, when it runs on an electronic device so that electronic equipment Execute the method that the control virtual objects described in above-mentioned each embodiment of the method are picked up virtual objects.
It should be understood that referenced herein " multiple " refer to two or more."and/or", description association The incidence relation of object indicates may exist three kinds of relationships, for example, A and/or B, can indicate:Individualism A, exists simultaneously A And B, individualism B these three situations.It is a kind of relationship of "or" that character "/", which typicallys represent forward-backward correlation object,.
Above-mentioned the embodiment of the present application serial number is for illustration only, can not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on should be included within the protection domain of the application.

Claims (14)

1. a kind of method that control virtual objects are picked up virtual objects, which is characterized in that the method includes:
It controls the virtual objects to move in virtual environment, exist in the virtual environment for virtual objects pickup extremely Few virtual objects;
When, there are when the first virtual objects, whether detection first virtual objects within the scope of the pre-determined distance of the virtual objects Record has the First Eigenvalue summation;The First Eigenvalue summation is to be not picked up first void described virtual objects the last time It is recorded on first virtual objects when quasi- article, the First Eigenvalue summation is the virtual objects in the last time The weighted sum of the characteristic value of possessed virtual objects when being not picked up;
When first virtual objects do not have the First Eigenvalue summation, detect whether first virtual objects are institute State virtual objects of the virtual objects there are use demand;
When determining that it is described virtual there are when the virtual objects of use demand, controlling that first virtual objects are the virtual objects First virtual objects described in acquiring object, and the virtual objects are updated according to the First Eigenvalue of first virtual objects Second Eigenvalue summation.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
When first virtual objects have the First Eigenvalue summation when, detect the First Eigenvalue summation whether with institute The Second Eigenvalue summation for stating virtual objects is identical, and it is virtual that the Second Eigenvalue summation is that the virtual objects currently have The weighted sum of the characteristic value of article;
When the First Eigenvalue summation is identical as the Second Eigenvalue summation, first virtual objects are not picked up.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
When the Second Eigenvalue summation of the First Eigenvalue summation and the virtual objects differs, readjustment leads to described the First event during one characteristic value sum variation to the Second Eigenvalue summation;
According to the first event, changed Second Eigenvalue in the First Eigenvalue summation is obtained;
The condition whether first virtual objects meet pickup is detected according to the First Eigenvalue and the Second Eigenvalue;
When first virtual objects meet the condition of pickup, first virtual objects are picked up, and special according to described first Value indicative updates the Second Eigenvalue summation.
4. according to the method described in claim 3, it is characterized in that, the First Eigenvalue includes first virtual objects In first identifier numerical value, the first type of items numerical value, the first quantity, the first goods attribute numerical value and the first numerical priority value At least one, the Second Eigenvalue correspond to the second virtual objects, and the Second Eigenvalue includes second virtual objects In second identifier numerical value, the second type of items numerical value, the second quantity, the second goods attribute numerical value and the second numerical priority value At least one, it is described that the item whether first virtual objects meet pickup is detected according to the First Eigenvalue and Second Eigenvalue Part, including:
When the first identifier numerical value is identical with the second identifier numerical value, first quantity and second quantity are different When, determine that first virtual objects meet the condition of pickup;
Or,
When the first type of items numerical value is identical with the second type of items numerical value, the first goods attribute numerical value is higher than When the second goods attribute numerical value, determine that first virtual objects meet the condition of pickup;
Or,
When the first type of items numerical value is identical with the second type of items numerical value, first numerical priority value is higher than institute When stating the second numerical priority value, determine that first virtual objects meet the condition of pickup.
5. according to the method described in claim 2, it is characterized in that, the method further includes:
When the Second Eigenvalue summation of the First Eigenvalue summation and the virtual objects differs, readjustment leads to described the First event during one characteristic value sum variation to the Second Eigenvalue summation;
According to the first event, changed Second Eigenvalue in the First Eigenvalue summation is obtained;
The condition whether first virtual objects meet pickup is detected according to the First Eigenvalue and the Second Eigenvalue;
When first virtual objects are unsatisfactory for the condition of pickup, first virtual objects are not picked up, and will be described virtual The Second Eigenvalue summation of object is recorded on first virtual objects.
6. according to the method described in claim 5, it is characterized in that, the First Eigenvalue includes first virtual objects At least one of first identifier numerical value, the first type of items numerical value, the first goods attribute numerical value and first numerical priority value, The Second Eigenvalue corresponds to the second virtual objects, and the Second Eigenvalue includes the second identifier number of second virtual objects At least one of value, the second type of items numerical value, the second goods attribute numerical value and the second numerical priority value, it is described according to One characteristic value and Second Eigenvalue detect the condition whether first virtual objects meet pickup, including:
When the first type of items numerical value and the second type of items numerical value difference, determine that first virtual objects are It is unsatisfactory for the condition of pickup;
Or,
When the first type of items numerical value is identical with the second type of items numerical value, the first goods attribute numerical value is less than When the second goods attribute numerical value, determine that first virtual objects are the conditions for being unsatisfactory for pickup;
Or,
When the first type of items numerical value is identical with the second type of items numerical value, first numerical priority value is less than institute When stating the second numerical priority value, determine that first virtual objects are the conditions for being unsatisfactory for pickup.
7. a kind of device for being picked up to virtual objects of control virtual objects, which is characterized in that described device includes:
Processing module is moved for controlling the virtual objects in virtual environment, is existed in the virtual environment and is supplied the void At least one virtual objects of quasi- acquiring object;
Detection module, for when existing when the first virtual objects within the scope of the pre-determined distance of the virtual objects, detecting described the Whether one virtual objects have recorded the First Eigenvalue summation;The First Eigenvalue summation be described virtual objects the last time not It is recorded in when picking up first virtual objects on first virtual objects, the First Eigenvalue summation is described virtual The weighted sum of object characteristic value of possessed virtual objects when being not picked up the last time;When first virtual objects do not have When having the First Eigenvalue summation, detect whether first virtual objects are that there are the void of use demand for the virtual objects Quasi- article;
The processing module is additionally operable to when determining first virtual objects be that there are the virtual of use demand for the virtual objects When article, controls the virtual objects and pick up first virtual objects, and according to the fisrt feature of first virtual objects Value updates the Second Eigenvalue summation of the virtual objects.
8. device according to claim 7, which is characterized in that
The detection module is additionally operable to when first virtual objects have the First Eigenvalue summation, detection described the Whether one characteristic value summation is identical as the Second Eigenvalue summation of the virtual objects;The Second Eigenvalue summation is the void The weighted sum of the characteristic value for the virtual objects that quasi- object currently has;
The processing module is additionally operable to, when the First Eigenvalue summation is identical as the Second Eigenvalue summation, not pick up First virtual objects.
9. device according to claim 8, which is characterized in that described device further includes acquisition module:
The processing module is additionally operable to the Second Eigenvalue summation not phase when the First Eigenvalue summation and the virtual objects Meanwhile readjustment leads to the first event during the First Eigenvalue sum variation to the Second Eigenvalue summation;
The acquisition module, for according to the first event, obtaining changed second in the First Eigenvalue summation Characteristic value;
The processing module is additionally operable to detect first virtual objects according to the First Eigenvalue and the Second Eigenvalue Whether satisfaction pickup condition;When first virtual objects meet the condition of pickup, first virtual objects are picked up, and The Second Eigenvalue summation is updated according to the First Eigenvalue.
10. device according to claim 9, which is characterized in that the First Eigenvalue includes first virtual objects First identifier numerical value, the first type of items numerical value, the first quantity, in the first goods attribute numerical value and the first numerical priority value At least one, the Second Eigenvalue corresponds to the second virtual objects, and the Second Eigenvalue includes second virtual objects Second identifier numerical value, the second type of items numerical value, the second quantity, in the second goods attribute numerical value and the second numerical priority value At least one;
The processing module, be additionally operable to when the first identifier numerical value it is identical with the second identifier numerical value, first quantity When different with second quantity, determine that first virtual objects meet the condition of pickup;Or, working as first type of items Numerical value is identical with the second type of items numerical value, and the first goods attribute numerical value is higher than the second goods attribute numerical value When, determine that first virtual objects meet the condition of pickup;Or, working as the first type of items numerical value and second article Type Value is identical, when first numerical priority value is higher than second numerical priority value, determines first virtual objects Meet the condition of pickup.
11. device according to claim 8, which is characterized in that described device further includes acquisition module:
The processing module is additionally operable to the Second Eigenvalue summation not phase when the First Eigenvalue summation and the virtual objects Meanwhile readjustment leads to the first event during the First Eigenvalue sum variation to the Second Eigenvalue summation;
The acquisition module, for according to the first event, obtaining changed second in the First Eigenvalue summation Characteristic value;
The processing module is additionally operable to detect first virtual objects according to the First Eigenvalue and the Second Eigenvalue Whether satisfaction pickup condition;When first virtual objects are unsatisfactory for the condition of pickup, first virtual object is not picked up Product, and the Second Eigenvalue summation of the virtual objects is recorded on first virtual objects.
12. according to the devices described in claim 11, which is characterized in that the First Eigenvalue includes first virtual objects First identifier numerical value, the first type of items numerical value, at least one in the first goods attribute numerical value and the first numerical priority value Kind, the Second Eigenvalue corresponds to the second virtual objects, and the Second Eigenvalue includes the second mark of second virtual objects Know at least one of numerical value, the second type of items numerical value, the second goods attribute numerical value and second numerical priority value;
The processing module is additionally operable to when the first type of items numerical value and the second type of items numerical value difference, really Fixed first virtual objects are unsatisfactory for the condition of pickup;Or, working as the first type of items numerical value and the second article class Type numerical value is identical, when the first goods attribute numerical value is less than the second goods attribute numerical value, determines first virtual object Product are unsatisfactory for the condition of pickup;Or, when the first type of items numerical value is identical with the second type of items numerical value, described the When one numerical priority value is less than second numerical priority value, determine that first virtual objects are unsatisfactory for the condition of pickup.
13. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory Contain at least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of journey Sequence, the code set or instruction set are loaded by the processor and are executed to realize the control as described in claim 1 to 6 is any The method that virtual objects are picked up virtual objects.
14. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium Few one section of program, code set or instruction set, state at least one instruction, at least one section of program, the code set or the instruction set Loaded by the processor and executed with realize control virtual objects as described in claim 1 to 6 is any to virtual objects into The method of row pickup.
CN201810400434.9A 2018-04-28 2018-04-28 The method, apparatus and medium that control virtual objects are picked up virtual objects Active CN108568110B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810400434.9A CN108568110B (en) 2018-04-28 2018-04-28 The method, apparatus and medium that control virtual objects are picked up virtual objects

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810400434.9A CN108568110B (en) 2018-04-28 2018-04-28 The method, apparatus and medium that control virtual objects are picked up virtual objects

Publications (2)

Publication Number Publication Date
CN108568110A true CN108568110A (en) 2018-09-25
CN108568110B CN108568110B (en) 2019-07-09

Family

ID=63575496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810400434.9A Active CN108568110B (en) 2018-04-28 2018-04-28 The method, apparatus and medium that control virtual objects are picked up virtual objects

Country Status (1)

Country Link
CN (1) CN108568110B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113262475A (en) * 2021-06-07 2021-08-17 网易(杭州)网络有限公司 Method, device, equipment and storage medium for using virtual props in game
CN114225389A (en) * 2021-10-11 2022-03-25 腾讯科技(深圳)有限公司 Virtual article collection method, device, terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106512405A (en) * 2016-12-06 2017-03-22 腾讯科技(深圳)有限公司 Method and device for acquiring plug-in resource of virtual object
CN106779933A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 A kind of virtual item recommends method and client

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106512405A (en) * 2016-12-06 2017-03-22 腾讯科技(深圳)有限公司 Method and device for acquiring plug-in resource of virtual object
CN106779933A (en) * 2016-12-06 2017-05-31 腾讯科技(深圳)有限公司 A kind of virtual item recommends method and client

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
无: "自动拾取Auto Pickup Mod", 《HTTP://WWW.MINECRAFTXZ.COM/AUTO-PICK-MOD》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113262475A (en) * 2021-06-07 2021-08-17 网易(杭州)网络有限公司 Method, device, equipment and storage medium for using virtual props in game
CN114225389A (en) * 2021-10-11 2022-03-25 腾讯科技(深圳)有限公司 Virtual article collection method, device, terminal and storage medium
CN114225389B (en) * 2021-10-11 2023-07-14 腾讯科技(深圳)有限公司 Virtual article collection method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN108568110B (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN108579088A (en) The method, apparatus and medium that control virtual objects are picked up virtual objects
CN108888956B (en) Display method, equipment and storage medium of virtual backpack display interface
CN108815851B (en) Interface display method, equipment and storage medium for shooting in virtual environment
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
CN109126129A (en) The method, apparatus and terminal that virtual objects are picked up in virtual environment
CN108671544A (en) Firearms assembly method, equipment and storage medium in virtual environment
CN109350964A (en) Control method, apparatus, equipment and the storage medium of virtual role
CN108434736A (en) Equipment display methods, device, equipment and storage medium in virtual environment battle
CN108509039B (en) Method, device, equipment and storage medium for picking up items in virtual environment
CN110413171A (en) Control method, apparatus, equipment and medium that virtual objects carry out prompt operation
CN110465098A (en) Control method, apparatus, equipment and medium that virtual objects use virtual item
CN111744186A (en) Virtual object control method, device, equipment and storage medium
CN112138383A (en) Virtual item display method, device, equipment and storage medium
CN108568110B (en) The method, apparatus and medium that control virtual objects are picked up virtual objects
CN110448907A (en) The display methods of virtual element, device and readable storage medium storing program for executing in virtual environment
CN111035929B (en) Elimination information feedback method, device, equipment and medium based on virtual environment
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
CN109806594B (en) Trajectory display method, device and equipment in virtual environment
CN112295215B (en) Virtual prop display method, device, equipment and storage medium
CN113713385B (en) Virtual prop control method, device, equipment, medium and computer program product
CN113599804A (en) Control method, device, equipment and medium of virtual prop
CN112221138A (en) Sound effect playing method, device, equipment and storage medium in virtual scene

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