CN108568110B - 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
CN108568110B
CN108568110B CN201810400434.9A CN201810400434A CN108568110B CN 108568110 B CN108568110 B CN 108568110B CN 201810400434 A CN201810400434 A CN 201810400434A CN 108568110 B CN108568110 B CN 108568110B
Authority
CN
China
Prior art keywords
virtual objects
eigenvalue
numerical value
virtual
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810400434.9A
Other languages
Chinese (zh)
Other versions
CN108568110A (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 field.The described 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 does not need to detect whether to need to pick up the virtual objects in preset range every time, reduces the operand of terminal by first detecting whether the first virtual objects have recorded the First Eigenvalue summation before detecting whether to need to pick up the first virtual objects.

Description

The method, apparatus and medium that control virtual objects are picked up virtual objects
Technical field
This application involves computer field, in particular to a kind of side that control virtual objects are picked up virtual objects Method, device, equipment and storage medium.
Background technique
In such as terminal of smart 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 competitive game (the Multiplayer Online of more people Battle Arena Games, MOBA) etc..
In above-mentioned 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 and pick up 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 lead to application program Caton in some cases.
Summary of the invention
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 when solving that each virtual objects are by a destination virtual article in the related technology, 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 the method that a kind of pair of virtual objects are picked up, which comprises
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 moves in virtual environment for controlling the virtual objects, exists in the virtual environment for institute State at least one virtual objects of virtual objects pickup;
Detection module, for when there are when the first virtual objects, detecting institute within the scope of the pre-determined distance of the virtual objects 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 also used 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 a Duan Chengxu, code set or instruction set in the memory, at least one instruction, An at least Duan Chengxu, the code set or 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 An at least one instruction, at least Duan Chengxu, described is stated at least one instruction, at least a Duan Chengxu, code set or instruction set 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 that row picks up.
Technical solution bring beneficial effect provided by the embodiments of the present application is at least are as follows:
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 to virtual objects before the virtual objects of use demand Value indicative summation, when determine the first virtual objects record have the First Eigenvalue summation that can just detect whether to need to pick up the first virtual object Product do not need to detect whether to need to pick up when there are virtual objects within a preset range every time, reduce the operation of terminal Amount, improves the operation fluency of virtual environment application program.
Detailed description of the invention
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 drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the structural block 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 figure that the virtual objects that one exemplary embodiment of the application provides pick up virtual objects;
Fig. 5 is the scene figure that the virtual objects that one exemplary embodiment of the application provides pick up virtual objects;
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 the showing to the characteristic value corresponding event of readjustment for 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 the 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 embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Firstly, noun involved in the embodiment of the present application is introduced:
Virtual environment: being the virtual environment of display when application program is run at the terminal (or offer).The virtual environment can To be the simulated environment to real world, it is also possible to the semifictional environment of half emulation, can also be pure imaginary environment.Virtually Environment can be two-dimensional virtual environment, 2.5 dimension virtual environments and three-dimensional virtual environment in it is any, this is not added in the application To limit.Following embodiments are illustrated so that virtual environment is three-dimensional virtual environment.
Virtual objects: 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 based on the creation of animation bone technology.Each virtual objects are in three-dimensional virtual environment In with itself shape and volume, 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, be also possible to the weapon of virtual objects assembly, be also possible to the drug etc. of virtual objects carrying.Optionally, virtual There are assembly position and knapsack lattice, virtual objects are stored and are assembled with when assembling in position by user in the Application Program Interface of environment 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: being 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 every two node represents a weighting for passing through 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 Input sample of the result as next node out, machine learning model is by sample final output to the plan of each node Slightly function and weight are adjusted, which, which is referred to as, trains.
Referring to FIG. 1, the structural block 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 Real application program, three-dimensional map program, Military Simulation program, FPS game, MOBA game, in 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, which includes but is 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 to calculate work, first terminal 120 and second terminal 160 undertake secondary calculation work;Alternatively, server 140 undertake it is secondary Work is calculated, first terminal 120 and second terminal 160 undertake main calculating 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 Real application program, three-dimensional map program, Military Simulation program, FPS game, MOBA game, in 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, which includes but is 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 phone, tablet computer, E-book reader, MP3 player, MP4 player, pocket computer on knee and desk-top At least one of computer.Following embodiment is illustrated so that terminal includes smart 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 perhaps above-mentioned terminal be tens or several hundred 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 comprises:
Step 201, control virtual objects move in virtual environment, exist in virtual environment and pick up extremely for virtual objects 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, can set virtual objects can carry out in the circular Plain of the chain of mountains in virtual environment 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 are mobile.Wherein, it is virtual to there is at least one 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 void 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 pressing keyboard, or the entity rocking bar triggering movable signal of the handle of terminal is pressed, 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 assembly Virtual objects refer to the virtual objects that virtual objects can be used directly.For example, being stored with hand on the assembly position of throwing type Thunder, user, which clicks the antitank grenade stored on the assembly position for throwing type, can be used the antitank grenade.
The virtual objects that virtual objects carry refer to the virtual objects that virtual objects possess, but cannot directly use 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, the corresponding multiple assembly positions (circular icon in Fig. 3) of virtual objects 300, each assembly position 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 assembly carries 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 they virtual objects assembly or carried, such as flak jackets or the helmet, Belong to the virtual objects of armour type;The knapsack they virtual objects assembly 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 they virtual objects assembly 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 they virtual objects assembly 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.
Terminal detects whether the first virtual objects are that there are the virtual of use demand for virtual objects according to the first type of items Article.
Illustratively, virtual objects are that virtual objects have the virtual of vacant assembly position 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, assembly position 412 does not store weapon, then the virtual objects of weapon type are that virtual objects have vacant dress 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 the corresponding type of items of article 421 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 With the goods attribute more preferably virtual objects that the virtual objects of demand are than the second virtual objects.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 pick up 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 assembly 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 comprises:
Step 601, control virtual objects move in virtual environment, exist in virtual environment and pick up extremely for virtual objects 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 It can be weapon, armour, ammunition, accessory, supply at least one of article and knapsack.
Step 602, it detects within the scope of the pre-determined distance of virtual objects with the presence or absence of the first 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 it exists, then Enter step 603;If it does not exist, then it continues to test.
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 greater 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 detection first distance is less than pre-determined distance is greater than time threshold, if the duration is not more than Between threshold value, then continue to test;If the duration is greater 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 for detecting the first virtual objects 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 greater than the second virtual objects;When the first durable value is greater 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 are able to 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 determines the first goods attribute 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 the first goods attribute 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 the first goods attribute 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 Greater than the second capacity of the second virtual objects;When the first capacity is greater than the second capacity, determine the first goods attribute 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 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 greater than target weapon assembly The second performance number after second virtual objects;When first performance value is greater 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 the first goods attribute 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 for determining 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 them here.
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 the accuracy whether the first virtual objects of detection need to pick up.
Optionally, in the embodiment of the present application, by being protruded near virtual objects aobvious before picking up the first virtual objects Show the first virtual objects, prompt will pick up the first virtual objects, be able to use family and clearly 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 step 203 in Fig. 2 embodiment one is optional Way of example, this method comprises:
Step 203a, call machine learning model to the information of the first virtual objects and the information of virtual objects at 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 training obtained, calibration result, which includes that virtual objects are practical, to be picked up Sample this virtual objects as a result, or, the virtual objects manually demarcated pick up the result of sample virtual objects.
Illustratively, as soon as the every pickup time virtual objects of user's control virtual objects, by the information of the virtual objects and The information of virtual objects is recorded as calibration result;Or, by the information setting mark for the virtual objects for 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, it is exported as a result, if 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 information extraction of each node in machine learning model to the first virtual objects Sign, obtains the feature of the first virtual objects of each Node extraction, the classifier in machine learning model is mentioned 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 exporting result is predetermined value Virtual objects.
When the output result of machine learning model is predetermined value, determine that machine learning model exports the first virtual objects as void There are the virtual objects of use demand for quasi- object.
In conclusion, by calling machine mould, determining that the first virtual objects are that virtual objects are deposited in the embodiment of the present application In the virtual objects of use demand, it can be ensured that the first virtual objects that control virtual objects pick up are the virtual objects of user demand Product improve the accuracy whether the first virtual objects of detection need to pick 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, the corresponding virtual objects of each characteristic value 801, at least one corresponding subcharacter value of each characteristic value 801, for example, as schemed Shown, the corresponding characteristic value 1 of the 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 the 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 the 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 value of identification value a1 is k1, type of items numerical value a2 is corresponding Weighted value be k2, the corresponding weighted value of goods attribute numerical value a3 be k3, the corresponding weighted value 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 are as follows: 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 comprises:
Step 901, control virtual objects move in virtual environment, exist in virtual environment and pick up extremely for virtual objects 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 It 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 not will 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, terminal control virtual objects are picked up 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 to detect 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 It surveys and whether needs to pick up the first virtual objects, do not need to detect whether to need when there are 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.
Figure 11 is please referred to, 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 comprises:
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 It can be weapon, armour, ammunition, accessory, supply at least one of article and knapsack.
Step 1102, it detects within the scope of the pre-determined distance of virtual objects with the presence or absence of the first 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 it exists, then Enter step 1103;If it does not exist, then it continues to test.
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 be not identical, 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, there is no variations for assembly and the virtual objects carried, 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, do not need 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 It determines that the first virtual objects are virtual objects there are when the virtual objects of use demand, enters 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 be not identical, 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 813 of ammunition Class1 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 is available to lead to spy while characteristic value changes The corresponding characteristic value 813 of ammunition of the changed ammunition Class1 of value indicative summation 800.
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.
Whether terminal detection the First Eigenvalue and Second Eigenvalue match.When the First Eigenvalue and Second Eigenvalue match When, it determines that the first virtual objects meet the condition picked up, enters step 1107a;When the First Eigenvalue and Second Eigenvalue not Timing determines that the first virtual objects are unsatisfactory for the condition picked up, 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 Second Eigenvalue changed in the First Eigenvalue summation and fisrt feature 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 caused by the identical virtual objects of product changes, then the first virtual objects meet the condition picked up;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 picked up;If virtual objects have been picked up and due to having abandoned third virtual objects 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 picked up.
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 at least one of in the following manner the first virtual objects meet the condition picked up:
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 picked up.
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 picked up.
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 picked up.
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, do not need to pick up the first virtual objects, 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 picked up.
Illustratively, identical with Second Type numerical value when first kind numerical value, it is preferential that the first numerical priority value is higher than second When value of series, it may be possible to which user has picked up identical virtual objects, and make after the last time is not picked up the first virtual objects 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 picked up 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 picked up 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 lower than the second goods attribute When numerical value, determine that the first virtual objects are unsatisfactory for the condition picked up.
Illustratively, identical with Second Type numerical value when first kind numerical value, the first goods attribute numerical value is lower 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 lower than the second numerical priority value When, determine that the first virtual objects are unsatisfactory for the condition picked up.
Illustratively, identical with Second Type numerical value when first kind numerical value, the first numerical priority value is preferential lower 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 the assembly corresponding quantative attribute value in position 1 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 to detect 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 It surveys and whether needs to pick up the first virtual objects, do not need to detect whether to need when there are 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, does not need further to 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 is not identical, 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 The accuracy whether the first virtual objects of detection need to pick up.
The following are the Installation practices of the application can be in conjunction with ginseng for the details being not described in detail in Installation practice It examines in above method embodiment and records accordingly, repeats no more herein.
Figure 13 is please referred to, 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: to obtain 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 moves in virtual environment for controlling virtual objects, exists in virtual environment for virtual right As at least one virtual objects of pickup.
Module 1310 is obtained, 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 also used to determine whether the first virtual objects are that virtual objects are deposited according to the first type of items In the virtual objects of use demand;When the first virtual objects are virtual objects there are when the virtual objects of use demand, control is empty Quasi- the first virtual objects of acquiring object.
In an alternative embodiment,
Processing module 1320 is also used 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 also used to determine whether the first durable value of the first virtual objects is greater than the second virtual objects Second durable value;When the first durable value is greater than the second durable value, determine the first goods attribute 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 the first goods attribute better than the second goods attribute.
In an alternative embodiment, the first type of items is knapsack type;
Processing module 1320 is also used to determine whether the first capacity of the first virtual objects is greater than the second virtual objects the Two capacity;When the first capacity is greater than the second capacity, determine the first goods attribute 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 also used to determine whether the first performance value after target weapon assembles the first virtual objects is big The second performance number after target weapon assembles the second virtual objects;When first performance value is greater than the second performance number, determine First goods attribute is better than the second goods attribute.
In an alternative embodiment,
Processing module 1320 is also used to call machine learning model to the information of the first virtual objects and 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 obtained according to the training of the information of virtual objects, the information of sample virtual objects and calibration result, calibration result includes void Quasi- object is practical pick up sample virtual objects as a result, or, the result for the virtual objects pickup sample virtual objects manually demarcated; When exporting result is predetermined value, 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 also used to when virtual objects do not 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 also used 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 greater than time threshold.
Module 1310 is obtained, is also used to execute the step for obtaining the first type of items when the duration being greater than time threshold 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 also used to instruct discarding destination virtual article according to discarding;Destination virtual article is virtual right As the virtual objects for assembling or carrying;It is abandoning in the predetermined amount of time after destination virtual article, is stopping picking up function.
Figure 14 is please referred to, 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 obtain module 1430 be optional module.
Processing module 1420 moves in virtual environment for controlling virtual objects, exists in virtual environment for virtual right As at least one virtual objects of pickup.
Detection module 1410, for when within the scope of the pre-determined distance of virtual objects there are when the first virtual objects, detection the Whether one virtual objects have recorded the First Eigenvalue summation;Stating the First Eigenvalue summation is to be not picked up virtual objects the last time 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 also used 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 also used to detect the First Eigenvalue when the first virtual objects have the First Eigenvalue summation Whether summation is identical as the Second Eigenvalue summation of virtual objects.
Processing module 1420, be also used 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 also used to when the characteristic value summation of the First Eigenvalue summation and virtual objects is not identical, is returned Adjust the first event caused during the First Eigenvalue sum variation to Second Eigenvalue summation.
Module 1430 is obtained, for obtaining changed second feature in the First Eigenvalue summation according to first event Value.
Processing module 1420 is also used 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 picked up, 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 also used 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 picked up;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 pick up condition; Or, first numerical priority value is higher than the second numerical priority value when the first type of items numerical value and the second type of items numerical value are identical When, determine that the first virtual objects meet the condition picked up.
In an alternative embodiment,
Processing module 1420 is also used to when the characteristic value summation of the First Eigenvalue summation and virtual objects is not identical, is returned Adjust the first event caused during the First Eigenvalue sum variation to Second Eigenvalue summation.
Module 1430 is obtained, for obtaining changed second feature in the First Eigenvalue summation according to first event Value.
Processing module 1420 is also used 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 picked up, 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 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 second article category Property at least one of numerical value and the second numerical priority value;
Processing module 1420 is also used to when first identifier numerical value and second identifier numerical value difference, and the first type of items number When being worth different with the second type of items numerical value, determine that the first virtual objects are unsatisfactory for the condition picked up;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 lower than the second goods attribute numerical value, determine the first void Quasi- article is unsatisfactory for the condition picked up;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 lower than the second numerical priority value, determine that the first virtual objects are unsatisfactory for the condition picked up.
Figure 15 is please referred to, 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 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 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 Reason device 1501 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- 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 also may 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 be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is 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 performed by processor 1501 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 outside 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 outside at least one 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, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution 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 is 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 that NFC (Near Field Communication, wireless near field communication) is 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 any 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 and 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 Touching display screen 1505 can be at least two, 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 Display screen 1505 can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light- Emitting Diode, Organic Light Emitting Diode) etc. materials preparation.
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 view 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 camera fusion in angle.In some embodiments In, CCD camera assembly 1506 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, be also possible to 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 loudspeaker.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 separately positioned on the different parts of electronic equipment 1500 to be multiple.Microphone can also be array wheat Gram wind or omnidirectional's acquisition type microphone.Loudspeaker is then used to convert from the electric signal of processor 1501 or radio circuit 1504 For sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When loudspeaker is piezoelectric ceramics When loudspeaker, 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 the dipper system or Russia of (Global Positioning System, global positioning system), China 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 be 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 includes having one or more sensors 1510.The one or more Sensor 1510 includes but is 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 detecte 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 controls touch display screen 1505 with lateral view 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 detecte 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 set under the side frame of electronic equipment 1500 and/or touch display screen 1505 Layer.When the side frame of electronic equipment 1500 is arranged in pressure sensor 1515, user can detecte 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 realize according to user to the pressure operation of touch display screen 1505 to grasping on the interface UI The property made control is controlled.Operability control include button control, scroll bar control, icon control, in menu control extremely Few one kind.
Fingerprint sensor 1514 is used to acquire the fingerprint of user, according to the identity of collected fingerprint recognition user.? When the identity for identifying 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, downloading 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 lower, 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 The acquisition parameters of state adjustment 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 for acquiring the distance between the front of user Yu 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 gradually becomes smaller, 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 is detecting user and 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, It may include perhaps 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 a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or refer to Enable collection loaded by the processor and executed with realize above method embodiment provide control virtual objects to virtual objects into The method that row picks up.
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 control virtual objects are picked up virtual objects described in above-mentioned each embodiment of the method.
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.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store 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 be should be included within the scope of protection of this application.

Claims (12)

1. a kind of method that control virtual objects are picked up virtual objects, which is characterized in that the described method includes:
It controls the virtual objects to move in virtual environment, exists in the virtual environment and picked up extremely for the virtual objects 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 determine first virtual objects be the virtual objects exist use When the virtual objects of demand, controls the virtual objects and pick up first virtual objects, and according to first virtual objects The First Eigenvalue update the Second Eigenvalue summations of the virtual objects;
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 not identical as the Second Eigenvalue summation of the virtual objects When, readjustment leads to the first event during the First Eigenvalue sum variation to the Second Eigenvalue summation;According to institute First event is stated, changed Second Eigenvalue in the First Eigenvalue summation is obtained;According to the First Eigenvalue and The Second Eigenvalue detects the condition whether first virtual objects meet pickup;When first virtual objects satisfaction is picked up When the condition taken, first virtual objects are picked up, and the Second Eigenvalue summation is updated according to the First Eigenvalue.
2. the method according to claim 1, wherein the method also includes:
When the First Eigenvalue summation is identical as the Second Eigenvalue summation, first virtual objects are not picked up.
3. the method according to claim 1, wherein 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, corresponding second virtual objects of the Second Eigenvalue, 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, comprising:
When the first identifier numerical value is identical with the second identifier numerical value, first quantity is different with second quantity When, determine that first virtual objects meet the condition picked up;
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 picked up;
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 picked up.
4. the method according to claim 1, wherein the method also includes:
When first virtual objects are unsatisfactory for the condition picked up, first virtual objects are not picked up, and will be described virtual The Second Eigenvalue summation of object is recorded on first virtual objects.
5. according to the method described in claim 4, 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, Corresponding second virtual objects of the Second Eigenvalue, 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, comprising:
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 picked up;
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 lower than When the second goods attribute numerical value, determine that first virtual objects are the conditions for being unsatisfactory for picking up;
Or,
When the first type of items numerical value is identical with the second type of items numerical value, first numerical priority value is lower than institute When stating the second numerical priority value, determine that first virtual objects are the conditions for being unsatisfactory for picking up.
6. 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 moves in virtual environment for controlling the virtual objects, exists in the virtual environment and supplies the void At least one virtual objects of quasi- acquiring object;
Detection module, for when there are when the first virtual objects, detecting described the within the scope of the pre-determined distance of the virtual objects 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 also used to when determining first virtual objects be that there are use demands for the virtual objects When virtual objects, controls the virtual objects and pick up first virtual objects, and according to the first of first virtual objects Characteristic value updates the Second Eigenvalue summation of the virtual objects;
The detection module is also used to detect described the when first virtual objects have the First Eigenvalue summation 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 also used to when the First Eigenvalue When summation and the not identical Second Eigenvalue summation of the virtual objects, readjustment causes the First Eigenvalue sum variation to institute State the first event during Second Eigenvalue summation;Module is obtained, for it is special to obtain described first according to the first event Changed Second Eigenvalue in value indicative summation;The processing module is also used to according to the First Eigenvalue and described Two characteristic values detect the condition whether first virtual objects meet pickup;When first virtual objects meet the item picked up When part, first virtual objects are picked up, and the Second Eigenvalue summation is updated according to the First Eigenvalue.
7. device according to claim 6, which is characterized in that
The processing module is also used to not pick up when the First Eigenvalue summation is identical as the Second Eigenvalue summation First virtual objects.
8. device according to claim 6, which 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, corresponding second virtual objects of the Second Eigenvalue, 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 It is at least one;
The processing module, be also used 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 picked up;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 picked up;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 picked up.
9. device according to claim 6, which is characterized in that
The processing module is also used to that it is empty not pick up described first when first virtual objects are unsatisfactory for the condition picked up Quasi- article, and the Second Eigenvalue summation of the virtual objects is recorded on first virtual objects.
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, at least one in the first goods attribute numerical value and the first numerical priority value Kind, corresponding second virtual objects of the Second Eigenvalue, 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 also used 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 picked up;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 lower than the second goods attribute numerical value, determines first virtual object Product are unsatisfactory for the condition picked up;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 lower than second numerical priority value, determine that first virtual objects are unsatisfactory for the condition picked up.
11. 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 a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Cheng Sequence, the code set or instruction set are loaded by the processor and are executed to realize control as claimed in claim 1 to 5 The method that virtual objects are picked up virtual objects.
12. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction Collection is loaded by processor and is executed to realize that control virtual objects as claimed in claim 1 to 5 carry out virtual objects The method of 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 CN108568110A (en) 2018-09-25
CN108568110B true 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)

Families Citing this family (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
CN113813600A (en) * 2021-10-11 2021-12-21 腾讯科技(深圳)有限公司 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》;20170216;第2-6页

Also Published As

Publication number Publication date
CN108568110A (en) 2018-09-25

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
JP7419382B2 (en) Method and apparatus and computer program for controlling a virtual object to mark a virtual item
US11656755B2 (en) Method and apparatus for controlling virtual object to drop virtual item and medium
JP7143007B2 (en) Virtual item transfer method, apparatus, electronic device and computer program
CN109126129A (en) The method, apparatus and terminal that virtual objects are picked up in virtual environment
CN110755841B (en) Method, device and equipment for switching props in virtual environment and readable storage medium
CN109876438A (en) Method for displaying user interface, device, equipment and storage medium
CN110413171A (en) Control method, apparatus, equipment and medium that virtual objects carry out prompt operation
CN108671544A (en) Firearms assembly method, equipment and storage medium in virtual environment
CN108509039A (en) Method, apparatus, equipment and the storage medium of article are picked up in virtual environment
CN110465098A (en) Control method, apparatus, equipment and medium that virtual objects use virtual item
CN112295215B (en) Virtual prop display method, device, equipment and storage medium
CN111744186A (en) Virtual object control method, device, equipment and storage medium
CN112138383A (en) Virtual item display method, device, equipment and storage medium
CN110448908A (en) The application method of gun sight, device, equipment and storage medium in virtual environment
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
CN111659122A (en) Virtual resource display method and device, electronic equipment and storage medium
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
CN113713385B (en) Virtual prop control method, device, equipment, medium and computer program product

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