CN109731332A - Control method, device, equipment and the storage medium of non-player role - Google Patents

Control method, device, equipment and the storage medium of non-player role Download PDF

Info

Publication number
CN109731332A
CN109731332A CN201811570265.XA CN201811570265A CN109731332A CN 109731332 A CN109731332 A CN 109731332A CN 201811570265 A CN201811570265 A CN 201811570265A CN 109731332 A CN109731332 A CN 109731332A
Authority
CN
China
Prior art keywords
player role
resource points
path
ludic activity
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811570265.XA
Other languages
Chinese (zh)
Other versions
CN109731332B (en
Inventor
曹红阳
耿奕廷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201811570265.XA priority Critical patent/CN109731332B/en
Publication of CN109731332A publication Critical patent/CN109731332A/en
Application granted granted Critical
Publication of CN109731332B publication Critical patent/CN109731332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides control method, device, equipment and the storage medium of a kind of non-player role.This method comprises: determining that non-player role participates in the resource points of ludic activity in scene of game by the current demand information for obtaining non-player role.The resource points for participating in ludic activity in scene of game according to non-player role determine that non-player role goes to the path of resource points.Control non-player role goes to corresponding resource point to participate in ludic activity according to path, to realize class people's decision behavior of non-player role complexity.

Description

Control method, device, equipment and the storage medium of non-player role
Technical field
The present invention relates to manipulation technical field more particularly to a kind of control method of non-player role, device, equipment and deposit Storage media.
Background technique
With the development of game artificial intelligence (Artificial Intelligence, AI) technology, in dummy game world Hundreds of non-player roles (Non-Player Character, NPC), can be as the mankind in reality, activity is got up, Create a more abundant, more life-like virtual role social groups.
Currently, class people's decision behavior in order to realize NPC in dummy game world, usually can using finite state machine or The method of person behaviour decision making tree erects an AI framework.Wherein, the method for finite state machine can by defining multiple states, And the trigger condition switched between state realizes the decision behavior of NPC, while using node diagram tool, adjusts to edit with dynamic Examination.The method of behaviour decision making tree can be by defining a huge decision tree, to select the decision row of NPC under different conditions For, while carrying out editorial decision tree by node edit tool, debug behavior tree.
However, the behavior due to the mankind is complicated and changeable, either by the method for finite state machine still by row For the method for decision tree, it is required to huge workload, and can not accomplish class people's decision behavior of NPC complexity, reduces user's Game experiencing sense.
Summary of the invention
The present invention provides control method, device, equipment and the storage medium of a kind of non-player role, to solve the prior art In the problem of can not accomplishing class people's decision behavior of non-player role complexity.
In a first aspect, the present invention provides a kind of control method of non-player role, comprising:
By obtaining the current demand information of non-player role, determine that the non-player role participates in trip in scene of game It plays movable resource points;
The resource points for participating in ludic activity in scene of game according to the non-player role, determine the non-player role Go to the path of the resource points;
It controls the non-player role and goes to corresponding resource point to participate in ludic activity according to the path.
Optionally, by obtaining the current demand information of non-player role, determine the non-player role in scene of game The middle resource points for participating in ludic activity, comprising:
According to the current demand information of the non-player role, determines and initially meet state and current demand weight;
According to the current demand weight and it is described initially meet state, obtain averagely happy value;
Predict that the participation after the non-player role participates in the corresponding ludic activity of each resource points in scene of game is full Sufficient state;
Determine the position of the non-player role ludic activity distance between the position of each resource points respectively;
According to the ludic activity distance, the current demand weight, it is described initially meet state, it is described participation meet shape State and the current gain coefficient, obtain happy overall gain;
According to the happy overall gain and the average happy value, determine that the non-player role participates in scene of game The resource points of ludic activity.
Optionally, the resource points are to meet the resource points of preset condition, and the preset condition is current time described Within the open hour section of resource points and the resource points are in idle condition.
Optionally, the element of the resource points includes: the content of ludic activity, the region of ludic activity, ludic activity Interaction point, participate in ludic activity gain or consumption, ludic activity open hour section.
Optionally, the resource points for participating in ludic activity in scene of game according to the non-player role determine described non- Player role goes to the path of the resource points, comprising:
Judge whether the ludic activity distance between the position of the non-player role and the position of the resource points is less than Pre-determined distance;
If so, determining that the non-player role goes to the path of the resource points using the first algorithm;
If it is not, then using the first algorithm and the second algorithm, determine that the non-player role goes to the path of the resource points.
Optionally, the ludic activity distance between the position of the non-player role and the position of the resource points is greater than Or when being equal to pre-determined distance, using the first algorithm and the second algorithm, determine that the non-player role goes to the road of the resource points Diameter, comprising:
A nearest first area of the determining position apart from the non-player role and the position apart from the resource points A nearest second area;
According to first algorithm, determine in the position and the first area of the non-player role between any point Route is first path;
According to second algorithm and predetermined deviation, the second path is determined;
According to first algorithm, the route in the position and the second area of the resource points between any point is determined For third path;
According to the first path, second path, the third path and preset condition, the non-player is determined Role goes to the path of the resource points, the preset condition be second path respectively with the first path and described the The angle of the joining place in three paths is obtuse angle.
Optionally it is determined that a nearest first area of position apart from the non-player role and apart from the resource points The nearest second area in position, comprising:
Determine the smallest N number of preset areas in the distance between arbitrary point on the position and each predeterminable area of the non-player role Domain, N are positive integer;
Determine the smallest M predeterminable area in the distance between arbitrary point, M on the position and each predeterminable area of the resource points For positive integer;
The first area is selected from N number of region;
The second area is selected from the M region.
Optionally, according to second algorithm and predetermined deviation, the second path is determined, comprising:
According to second algorithm, the road between the center of the first area and the center of the second area is determined Diameter;
According between the center of the first area and the center of the second area path and the predetermined deviation, really Fixed second path.
Optionally, the method also includes:
When meeting pre-determined distance at a distance from the non-player role is between any non-player role, the non-object for appreciation is controlled Family role executes social operation.
Second aspect, the present invention provide a kind of control device of non-player role, comprising:
First determining module determines the non-player role for the current demand information by obtaining non-player role The resource points of ludic activity are participated in scene of game;
Second determining module, for the resource points of ludic activity to be participated in scene of game according to the non-player role, Determine that the non-player role goes to the path of the resource points;
Control module goes to the participation game of corresponding resource point living for controlling the non-player role according to the path It is dynamic.
Optionally, first determining module is determined specifically for the current demand information according to the non-player role Initially meet state and current demand weight;According to the current demand weight and it is described initially meet state, obtain averagely fast Happy value;Predict that the participation after the non-player role participates in the corresponding ludic activity of each resource points in scene of game meets shape State;Determine the position of the non-player role ludic activity distance between the position of each resource points respectively;According to the trip Play operating range, the current demand weight, it is described initially meet state, it is described participation meet state and the current gain system Number, obtains happy overall gain;According to the happy overall gain and the average happy value, determine the non-player role in game The resource points of ludic activity are participated in scene.
Optionally, the resource points are to meet the resource points of preset condition, and the preset condition is current time described Within the open hour section of resource points and the resource points are in idle condition.
Optionally, the element of the resource points includes: the content of ludic activity, the region of ludic activity, ludic activity Interaction point, participate in ludic activity gain or consumption, ludic activity open hour section.
Optionally, second determining module, specifically for judge the non-player role position and the resource points Position between ludic activity distance whether be less than pre-determined distance;Position and the resource points in the non-player role When ludic activity distance between position is less than pre-determined distance, using the first algorithm, it is described to determine that the non-player role is gone to The path of resource points;Ludic activity distance between the position of the non-player role and the position of the resource points be greater than or When equal to pre-determined distance, using the first algorithm and the second algorithm, determine that the non-player role goes to the path of the resource points.
Optionally, the ludic activity distance between the position of the non-player role and the position of the resource points is greater than Or when being equal to pre-determined distance, second determining module, for determining the position apart from the non-player role recently one The nearest second area in first area and position apart from the resource points;According to first algorithm, determine described non- Route in the position of player role and the first area between any point is first path;According to second algorithm and in advance If deviation, the second path is determined;According to first algorithm, determine the positions of the resource points with it is any in the second area Route between point is third path;According to the first path, second path, the third path and default item Part determines that the non-player role goes to the path of the resource points, the preset condition for second path respectively with institute The angle for stating the joining place in first path and the third path is obtuse angle.
Optionally, second determining module, for determining that the position of the non-player role is taken up an official post with each predeterminable area The distance between meaning point the smallest N number of predeterminable area, N are positive integer;It determines on position and each predeterminable area of the resource points The smallest M predeterminable area in the distance between arbitrary point, M is positive integer;The first area is selected from N number of region; The second area is selected from the M region.
Optionally, second determining module, for according to second algorithm, determine the center of the first area with Path between the center of the second area;According between the center of the first area and the center of the second area Path and the predetermined deviation determine second path.
Optionally, the control module is also used at a distance from the non-player role is between any non-player role When meeting pre-determined distance, controls the non-player role and execute social operation.
The third aspect, the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, the meter The control method of non-player role described in first aspect is realized when calculation machine program is executed by processor.
Fourth aspect, the present invention provide a kind of electronic equipment, comprising: input-output equipment, memory and processor;It is described Input-output equipment, the memory are connected to the processor respectively;
The memory, for storing program instruction;
The processor realizes preview map in game described in first aspect for being performed in program instruction The control method of non-player role.
Control method, device, equipment and the storage medium of non-player role provided by the invention are got by basis The current demand information of non-player role determines that non-player role participates in the resource points of ludic activity, and root in scene of game The resource points for participating in ludic activity in scene of game according to non-player role determine that non-player role goes to the path of resource points, To which control non-player role goes to corresponding resource point to participate in ludic activity according to path.In the present invention, non-player angle is realized Class people's decision of color, allows non-player role to carry out class people's decision behavior in virtual game, solve the prior art without Method accomplishes class people's decision behavior of non-player role complexity, improves the game experiencing sense of user.
Detailed description of the invention
It, below will be to embodiment or the prior art in order to illustrate more clearly of the present invention or technical solution in the prior art Attached drawing needed in description is briefly described, it should be apparent that, the accompanying drawings in the following description is of the invention one A little embodiments for those of ordinary skill in the art without any creative labor, can also be according to this A little attached drawings obtain other attached drawings.
Fig. 1 is the flow chart of the control method of non-player role provided by the invention;
Fig. 2 is the flow chart of the control method of non-player role provided by the invention;
Fig. 3 is the flow chart of the control method of non-player role provided by the invention;
Fig. 4 is the flow chart of the control method of non-player role provided by the invention;
Fig. 5 is the structural schematic diagram of the control device of non-player role provided by the invention;
Fig. 6 is the hardware structural diagram of electronic equipment provided by the invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the attached drawing in the present invention, to this Technical solution in invention is clearly and completely described, it is clear that and described embodiments are some of the embodiments of the present invention, Instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative labor Every other embodiment obtained under the premise of dynamic, shall fall within the protection scope of the present invention.
It should be noted that term " first ", " second " and " third " etc. in the embodiment of the present application each section and attached drawing It is to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that the number used in this way According to being interchangeable under appropriate circumstances, so that embodiments herein described herein can be in addition to illustrating herein or describing Those of other than sequence implement.In addition, term " includes " and " having " and their any deformation, it is intended that covering is not Exclusive includes, for example, the process, method, system, product or equipment for containing a series of steps or units be not necessarily limited to it is clear Step or unit those of is listed on ground, but is not clearly listed or for these process, methods, product or is set Standby intrinsic other step or units.
Method flow diagram involved in the following embodiments of the application is merely illustrative, it is not necessary in all Appearance and step, nor is it necessary that and execute in the described sequence.For example, some steps can also decompose, and some steps can To merge or partially merge, therefore, the sequence actually executed can change according to the actual situation.
Functional module in block diagram involved in the following embodiments of the application is only functional entity, not necessarily must be with Physically separate entity is corresponding.I.e., it is possible to realize these functional entitys using software form, or in one or more hardware It is realized in module or integrated circuit in these functional entitys or heterogeneous networks and/or processor and/or microcontroller and realizes this A little functional entitys.
As follows combine multiple examples to the control method of non-player role provided by the embodiments of the present application, device, equipment and Storage medium is illustrated.
Fig. 1 is the flow chart of the control method of non-player role provided by the invention.The control method of the non-player role Corresponding software code realization can be executed by the processing equipment such as processor for the terminal that Games Software/client is installed, it can also Corresponding software code is executed by the processing equipment of the terminal, and other hardware entities is combined to realize.Wherein, terminal is, for example, platform Formula computer, notebook, personal digital assistant (Personal Digital Assistant, referred to as: PDA), smart phone, plate The equipment such as computer and game machine.The embodiment is illustrated by executing subject of terminal, and the executive mode of server is similar, this reality Example is applied to be not repeated herein.
Scene of game can be generated by executing game application and rendering in the display equipment of terminal on the processor of terminal, It include at least one NPC, resource points and path in the scene of game.Wherein, resource points represent dynamic ring locating for NPC Virtual environment locating for NPC can be abstracted as one or more resource points by border, for example, the social resource point in park, dining room In resource points of having a meal, NPC family and working resource point etc. of sweeping the floor.The path is preset map in virtual game, can also Think the mobile preset path of NPC, NPC is moved on path.
Specifically, user with the web page program of the application program of download games class or browser and can install in terminal, When such as the game application is run at the terminal, it can be rendered in the display equipment of terminal and generate scene of game, the scene of game In include at least one NPC, resource points and path, allow NPC according to self-demand, determination needs to participate in ludic activity Resource points and go to the paths of the resource points, realize that control NPC is moved to resource points and participates in ludic activity, enrich virtual Game.The case where can also showing the need state of each NPC in the scene of game of operation, each resource points simultaneously and virtual trip The path situation of play.
Wherein, the role of the NPC includes but is not limited to that businessman, lawyer, doctor, peasant, child etc. are various types of virtual Role.The demand of the NPC includes but is not limited to such as physical strength and money material requisite and such as entertains spiritual demand, in addition, The demand of the NPC can also include according to role's setting such as the specific demand being addicted to drink, look up to.The resource points include but is not limited to The corresponding place of the various activities such as hotel, shop, square, coffee-house, racing track, park.The path can go to resource points for NPC Optimal path, wherein optimal path refers to fitting well on the path of human judgment's behavior.
The control method of the non-player role, can be applied to include game application electronic equipment, the game application pair In the virtual game answered, any one NPC can go to resource points and participate in ludic activity according to self-demand, realize complicated Class people's decision behavior, so that building one is more abundant and full virtual game.As shown in Figure 1, the non-object for appreciation of the present embodiment Family role control method may include:
S101, the current demand information by obtaining non-player role, determine that non-player role participates in scene of game The resource points of ludic activity.
It is analogous to the reality of human judgment's behavior, the mankind can select participation activity, and joining according to self-demand The demand of itself can be changed later with activity.Such as, people, which go out to do manual work to make money, can realize the money demand of itself.People go Library's reading, the just spiritual demand to meet itself of reading newspaper.Therefore, in the present embodiment, a NPC has multiple demands, should Demand may include such as energy and money material requisite, and such as read and listen to music spiritual demand.
Also, in the present embodiment, multiple resource points are also provided with, the corresponding ludic activity of each resource points makes The dynamic change for obtaining resource points can construct a continually changing virtual environment for NPC, to carry the concrete behavior table of NPC It is existing, thus, the present embodiment can provide different types of ludic activity to NPC by resource points.
Further, since the demand of NPC is varied, and the ludic activity that resource points provide is rich and varied, so that NPC The process of self-demand satisfaction is realized by participating in ludic activity, it can be more close to the real-life of the mankind.Again since NPC has At least one demand, each ludic activity can satisfy one or more demands of NPC, and resource points may include it is multiple, often The corresponding ludic activity of a resource points, therefore, the present embodiment can may participate in trip from NPC according to the current demand information of NPC An optional resource points participate in the resource points of ludic activity as NPC in movable one or more resource points of playing.
Wherein, the present embodiment to the specific implementation forms of resource points without limitation.Optionally, the element of resource points includes: The content of ludic activity, the region of ludic activity, the income or consumption, ludic activity that participate in ludic activity open hour section.
Wherein, which refers to the process of ludic activity, and the region of the ludic activity refers to that game is living The range of dynamic position or ludic activity, the game or interaction point include the maximum number for participating in ludic activity and each The position and orientation of ludic activity are participated in, the gain or consumption of the participation ludic activity refer to that NPC is needed after participating in ludic activity The growth or consumption asked, the direction refer to that regulation NPC screen-oriented is needed to provide when such as NPC is in cinema's resource points The direction of NPC erect-position.
For example, when the current demand information of NPC determines that current demand is hungry demand, NPC can go to restaurant Corresponding resource points of having a meal.Since restaurant can provide canteen to NPC, NPC is at table after the interior feed of resource points, The hungry demand of NPC is just met.When the current demand information of NPC determines that current demand is money demand, NPC can be former Toward the corresponding precious deposits resource points in field.Since field can provide precious deposits to NPC, NPC seeks precious knot in precious deposits resource points The money demand of Shu Hou, NPC are just met.
S102, the resource points for participating in ludic activity in scene of game according to non-player role, before determining non-player role Toward the path of resource points.
S103, control non-player role go to corresponding resource point to participate in ludic activity according to path.
In order to realize that NPC participates in the process of ludic activity, the present embodiment can participate in the resource of ludic activity according to NPC Point determines that NPC goes to the path of resource points, and the path is path more mobile close to the mankind.In turn, the present embodiment can be with It controls NPC and goes to corresponding resource points according to the path, and participate in ludic activity, realize class people's decision behavior of NPC.
For example, when the current demand of NPC is hungry demand, the present embodiment, which can choose, provides the resource of energy Point such as restaurant resource points, and determines that NPC goes to the path of restaurant resource points from current location, so that NPC can in scene of game To go to according to the path to restaurant resource points, NPC can meet hungry demand by feeding.It is in the current demand of NPC When money demand, the present embodiment, which can choose, provides the resource points of money, such as restaurant resource points, and determines NPC from current location The path of restaurant resource points is gone to, so that NPC can be gone to restaurant resource points in scene of game according to the path, NPC is just Service activitys can be waited to meet money demand by participating in washing the dishes.
The control method of non-player role provided in this embodiment passes through the current need according to the non-player role got Information is sought, determines that non-player role participates in the resource points of ludic activity in scene of game, and according to non-player role in game The resource points that ludic activity is participated in scene, determine that non-player role goes to the path of resource points, thus, control non-player role Corresponding resource point is gone to participate in ludic activity according to path.In the present embodiment, class people's decision of non-player role is realized, so that Non-player role can carry out class people's decision behavior in virtual game, and solving the prior art can not accomplish that non-player role is multiple Miscellaneous class people's decision behavior, improves the game experiencing sense of user.
On the basis of above-mentioned Fig. 1 embodiment, in conjunction with Fig. 2 to the current demand by obtaining non-player role in S101 Information determines that non-player role participates in the specific implementation process progress of the resource points of ludic activity specifically in scene of game It is bright.
Fig. 2 is the flow chart of the control method of non-player role provided by the invention, as shown in Fig. 2, the present embodiment is non- The control method of player role may include:
S201, the current demand information according to non-player role are determined and are initially met state and current demand weight.
S202, according to current demand weight and initially meet state, obtain current happy value.
The participation of S203, prediction after non-player role participates in the corresponding ludic activity of each resource points in scene of game is full Sufficient state.
S204, the position of the non-player role ludic activity distance between the position of each resource points respectively is determined.
S205, according to ludic activity distance, current demand weight, initially meet state, participate in meeting state and current increase Beneficial coefficient obtains happy overall gain.
S206, according to happy overall gain and current happy value, determine that non-player role participates in game work in scene of game Dynamic resource points.
Specifically, since resource points include multiple, and each resource points can satisfy one or more demands of NPC, because This, it is understood that there may be multiple resource points can satisfy the demand of NPC.In the present embodiment, the decision behavior of NPC can be built Mould can bring how many demand gains by calculating different ludic activities for NPC, more be bonded human judgment's row to select For corresponding resource points.
Further, the present embodiment can determine according to the current demand information of NPC and initially meet state h and current need Seek weight.It wherein, may include each demand of NPC in current demand information.The demand of going out meets state and can pass through tool Body numerical value is indicated, and usual numerical value is bigger, more meets the needs of NPC.Initially meet state h and represents satisfaction needed for NPC The current state of current one or more demand.The demand weight of any one demand in the current demand weight can represent Significance level of the demand in each demand.Under normal circumstances, demand weight is bigger, and the significance level of corresponding demand is higher.
Further, the present embodiment can meet state h according to current demand weight and initially, obtain averagely happy value T, That is T=∑ demand weight * h, in this way, the average happy value, which can be used as NPC, participates in meet demand after each ludic activity Reference standard.
Specifically, since a ludic activity can satisfy one or more demands of NPC, for example, when NPC goes to restaurant When resource points, NPC can both have been fed to meet energy requirement, can also be by the service such as manual labour to meet money demand.Therefore, It is full that the present embodiment can also predict to participate in the participation after the corresponding ludic activity of resource points in scene of game in non-player role Sufficient state.Wherein, satisfaction is participated in meet state locating for after the corresponding ludic activity of NPC participation resource points.
Further, due to including one or more demands in current demand information, the present embodiment can calculate ginseng Difference with meeting state with initially meeting state, obtains f.Wherein, f can indicate that NPC participates in each demand after ludic activity The situation of change of corresponding happy value.When f is positive value, it can indicate that NPC is willing to participate in ludic activity;When f is negative value, It can indicate that NPC is contradicted very much and participate in ludic activity.
Specifically, in order to more be bonded human judgment's behavior, it will usually which selection is carried out away from the closer ludic activity of NPC as far as possible It participates in, therefore, the position of non-player role can be determined by formula g=3000/ (distance+3000) in the present embodiment It respectively can and then according to the ludic activity distance with the ludic activity distance g between the position of resource points each in scene of game To select from the ludic activity of same type apart from close ludic activity.Wherein, distance is NPC in scene of game away from each The distance of ludic activity corresponding resource point.And the ludic activity distance g of the present embodiment is not limited to obtain using above-mentioned formula.
Further, the present embodiment can sum to current demand weight, f and current gain coefficient, obtain each Total happy value of ludic activity, then total happy value of each ludic activity is multiplied with corresponding ludic activity distance g, it obtains happy Overall gain, i.e. s=g* ∑ [current demand weight * (participation meets state-and initially meets state) * current gain coefficient].
Wherein, which can represent the ability or talent of NPC corresponding angles chromans foot any one demand Just.Under normal circumstances, gain coefficient is bigger, and ability or talent are higher.For example, the corresponding role of NPC is businessman and currently needs When asking as money demand, since usual businessman has the ability made money, the present embodiment can set biggish gain coefficient Reflect that NPC is very fast to the growth of money demand or consumption.
Further, the present embodiment it is living can to obtain decision NPC selection game according to happy overall gain and average happy value Dynamic probability function p=es/T- 1, probability function p are sufficiently and comprehensively to express each ludic activity always fast to NPC bring The distance of happy gain and the corresponding resource points of each ludic activity, i.e., the select probability of each ludic activity, so as to basis Probability function p, assessment NPC participate in the wish of ludic activity, any one ludic activity are randomly choosed, so that the ludic activity More close to the decision of the mankind.
Wherein, since each resource points have the open hour section of itself, at current time, resource points can be located In open state, not open state also may be at.Since the maximum ludic activity number that participates in of each resource points is different and every Current NPC number is all different in a resource points, and therefore, resource points may be at idle state, also may be at busy State.It, can be from will be full when determining that NPC participates in the resource points of ludic activity in Fig. 1 or Fig. 2 embodiment based on foregoing description In portion's resource points, selection meets current time within the open hour section of resource points and the resource that is in idle condition of resource points Point participates in movable resource points as NPC.
The control method of non-player role provided in this embodiment, by each non-player role tool have different needs come The totally different non-player role of a large amount of individual characteies is created, each resource points correspond to a ludic activity to create multiple resource points, so that Virtual game is more life-like, vivid, and each ludic activity can satisfy one or more demands of non-player role, but also Behavior expression in scene of game is more abundant and close to human judgment, so that non-player role can preferably complete complexity Class people's decision behavior improves the game experiencing sense of user.
On the basis of above-mentioned Fig. 1 embodiment, in conjunction with Fig. 3 to being joined in scene of game in S102 according to non-player role With the resource points of ludic activity, determine that non-player role goes to the specific implementation process in the path of resource points to be described in detail.
Fig. 3 is the flow chart of the control method of non-player role provided by the invention, as shown in figure 3, the present embodiment is non- The control method of player role may include:
It is default whether the ludic activity distance between S301, the position for judging non-player role and the position of resource points is less than Distance.If so, executing S3021.If it is not, then executing S3022.
S3021, using the first algorithm, determine that non-player role goes to the path of resource points.
S3022, using the first algorithm and the second algorithm, determine that non-player role goes to the path of resource points.
Specifically, after determining the resource points that NPC participates in ludic activity, NPC is gone to there are many processes of the resource points Path is available, and in order to meet the actual conditions of virtual time, current embodiment require that selection one is more determined close to the mankind The path of plan behavior.
Further, the present embodiment can first judge the ludic activity between the position of NPC and the position of the resource points away from From whether less than pre-determined distance.Wherein, the present embodiment can based on experience value be configured pre-determined distance, and the present embodiment is to this Without limitation.
Further, when ludic activity distance is less than pre-determined distance, the present embodiment can be determined using the first algorithm NPC goes to the path of the resource points out.When ludic activity distance is greater than or equal to pre-determined distance, the present embodiment can be used First algorithm and the second algorithm determine that NPC goes to the path of the resource points jointly.
Wherein, the present embodiment to the specific implementation of the first algorithm and the second algorithm without limitation.For example, the first algorithm It can be heuristic search algorithm (abbreviation Astar algorithm), the second algorithm can be Dijkstra's algorithm (abbreviation Dijkstra Algorithm).
In addition, having preset the pipeline in trunk path in scene of game.And NPC goes to the path of resource points to be based on What the pipeline in trunk path obtained, in this way, optionally, when ludic activity distance is greater than or equal to pre-determined distance, in conjunction with figure 4, to the first algorithm and the second algorithm is used in S3022, determine that non-player role goes to the specific implementation in the path of resource points Journey is described in detail.
Fig. 4 is the flow chart of the control method of non-player role provided by the invention, as shown in figure 4, the present embodiment is non- The control method of player role may include:
S401, determine that the first area of position recently apart from non-player role and the position apart from resource points are nearest A second area.
In the present embodiment, since multiple predeterminable areas can be arranged in scene of game in advance around NPC, wherein this reality Example is applied to the shapes and sizes of predeterminable area without limitation.For example, in existing scene of game, pipeline be by multiple circles and Connection relationship composition between circle.In general, two circles and its between connection form a pipeline, and use Floyd- in advance Warshall algorithm calculates the shortest path between the center of circle of any two circle, therefore each predeterminable area is multiple circles.
Therefore, current embodiment require that selecting the predeterminable area of position recently from NPC from these predeterminable areas, It specifically can be in the smallest N number of predeterminable area of the distance between marginal point on from the position of NPC to any one predeterminable area An optional predeterminable area, N is positive integer.
For example, when predeterminable area is bowlder, it specifically can be using between the center of circle that the position of NPC is justified to any one Distance subtract the radius of the circle, take the smallest circle of difference as the first circle, i.e., the point on from the position of NPC to any one circle The distance between an optional circle in the smallest N number of circle.
Accordingly, multiple predeterminable areas are also equipped with around resource points in advance, need to select from these predeterminable areas The predeterminable area of position recently from resource points, specifically can be on from the position of resource points to any one predeterminable area An optional predeterminable area in the smallest M predeterminable area of the distance between marginal point, M is positive integer.
For example, working as predeterminable area is bowlder, the center of circle that can be specifically justified using the position of resource points to any one The distance between subtract the radius of the circle, take the smallest circle of difference as the second circle, i.e., from the position of resource points to any one An optional circle in the smallest M circle of the distance between point on circle.
In turn, NPC is gone to the path of resource points to be roughly divided into three parts by the present embodiment, and first part is NPC from current The first path of first area is gone in position, and second part is the second path that NPC goes to second area from first area, third Part is the third path for the position that NPC goes to resource points from second area.In order to enable the behavior of NPC is more determined close to the mankind Plan behavior, current embodiment require that guaranteeing that first path, the second path and the sum of the distance in third path are minimum.
Wherein, first path and third path can adopt is set in a like fashion, respectively referring to step S402 and The specific implementation process of S404, the second path can be found in step S403.
S402, according to the first algorithm, determine that the route in the position and first area of non-player role between any point is First path.
Specifically, when the position of NPC and first area straight line up to when, the distance between position and first area of NPC For linear distance, first path is direct route.When the position of NPC and first area straight line are unreachable, the position of NPC and the The distance between one region is set as 2 times of radical sign of linear distance, convenient for efficiently estimating between the position of NPC and first area Actual range, and first path is not direct route.
Further, since the distance between the position of NPC and first area are relatively close, the present embodiment can use First algorithm, such as Astar algorithm, any point searches out corresponding path as the first via out of NPC position to first area Diameter, the i.e. starting point of first path are the position of NPC, and the terminal of first path is any point in first area.
S403, according to the second algorithm and predetermined deviation, determine the second path.
Specifically, due to the ludic activity distance between the position of NPC and the position of resource points be greater than or equal to it is default away from From, and first path is only the sub-fraction that NPC goes to the path of resource points, therefore, between first area and second area Apart from larger, in this way, the present embodiment can use the second algorithm, such as dijkstra's algorithm, determine the center of first area with Path between the center of second area.
Wherein, when the shape of first area is regular shape, the center of first area is its geometric center;When the firstth area When the shape in domain is not regular shape, the center of first area is any one position in it.It is corresponding, when second area When shape is regular shape, the center of second area is its geometric center;When the shape of second area is not regular shape, the The center in two regions is any one position in it.
It is gone in second area from the center of first area each time due to not can guarantee NPC in a practical situation again The heart, therefore, the present embodiment can according between the center of first area and the center of second area path and predetermined deviation, The second path is determined, so that the second path is more close to human judgment's behavior.
Wherein, the present embodiment to predetermined deviation without limitation, predetermined deviation can be definite value, or dynamic change Value.
S404, according to the first algorithm, determine that route in the position and second area of resource points between any point is third Path.
Specifically, when the position of resource points and second area straight line up to when, between the position and second area of resource points Distance be linear distance, third path be direct route.When the position of resource points and second area straight line are unreachable, resource The distance between the position of point and second area are set as 2 times of radical sign of linear distance, convenient for the position of efficient estimating resource point Actual range between second area, and third path is not direct route.
Further, since the distance between the position of resource points and second area are relatively close, the present embodiment can be adopted With the first algorithm, such as Astar algorithm, any point searches out corresponding path as out of resource points position to second area Three paths, the i.e. starting point in third path are the position of resource points, and the terminal in third path is any point in first area.
S405, according to first path, the second path, third path and preset condition, determine that non-player role goes to money The path of source point, preset condition are that the second path is respectively obtuse angle with the angle of first path and the joining place in third path.
Specifically, the case where mankind are usually not in zig zag when moving.In order to avoid the situation, the present embodiment can With according to preset condition, between first path and the second path joining place and the second path and third path be connected Place optimizes, and guarantees that the angle of the joining place between first path and the second path is obtuse angle and the second path and third The angle of the joining place in path is obtuse angle, and NPC is allowed more to go to resource points close to human behavior.
It should be noted that do not have the sequencing in timing between above-mentioned S402 and S404, and S402 and S404 can be with It is performed simultaneously, can also sequentially execute.
Further, in scene of game, each NPC can be according to current demand, the path that sets as procedure described above Corresponding resource point is gone to participate in ludic activity, so that the traveling that each NPC in gaming can be in picturesque disorder.
In addition, NPC successfully participate in ludic activity after, since ludic activity can change the need satisfaction degree of NPC, shadow The decision behavior next time of NPC is rung, therefore, NPC needs to carry out self feed back.Under normal circumstances, the need satisfaction degree of NPC with when Between will be slow decaying.
Further, since idle resource points attract NPC to go to participation ludic activity, resource points are gone to participate in NPC After ludic activity, so that idle resource points become not idle resource points, it is received into the resource points maximum and participates in ludic activity Number after, other NPC just can not select the resource points, and therefore, resource points need to carry out self feed back.
Further, after occupying resource points due to NPC, will lead to other NPC can not select the resource points, therefore, NPC Demand is fed back between NPC.And when the distance between any two NPC meets pre-determined distance, the present embodiment can be controlled NPC processed executes social operation.For example, the social activities such as two NPC can have conversation, trade goods.
Based on the above process, the present embodiment can realize the autonomous intelligence behavior of NPC in scene of game comprehensively and completely, So that the behavior of NPC is more close to human judgment's behavior.
It should be understood that personnel test the above process for ease of operation, the present embodiment can provide offline Visual testing function, can accelerate or the operation of configured virtual world at a slow speed, to support appointing in virtual world The test of one link.And the present embodiment is also provided with the function of the relevant information of statistics virtual world, and operator is facilitated to observe Decision behavior and the service condition of resource points of all NPCs etc..
Fig. 5 is the structural schematic diagram of the control device of non-player role provided by the invention, as shown in figure 5, the present embodiment The control device 10 of non-player role may include:
First determining module 11 determines that non-player role exists for the current demand information by obtaining non-player role The resource points of ludic activity are participated in scene of game;
Second determining module 12, for participating in the resource points of ludic activity in scene of game according to non-player role, really Determine the path that non-player role goes to resource points;
Control module 13 goes to corresponding resource point to participate in ludic activity for controlling non-player role according to path.
Optionally, the first determining module 11 determines initial full specifically for the current demand information according to non-player role Sufficient state and current demand weight;According to current demand weight and initially meet state, obtains averagely happy value;Prediction is in non-object for appreciation Family role participates in the participation after the corresponding ludic activity of each resource points in scene of game and meets state;Determine non-player role The position ludic activity distance between the position of each resource points respectively;According to ludic activity distance, current demand weight, initial Meet state, participate in meeting state and current gain coefficient, obtains happy overall gain;According to happy overall gain and it is averaged happy Value, determines that non-player role participates in the resource points of ludic activity in scene of game.
Optionally, resource points are to meet the resource points of preset condition, and preset condition is opening of the current time in resource points Within period and resource points are in idle condition.
Optionally, the element of resource points includes: the interaction of the content of ludic activity, the region of ludic activity, ludic activity Point, participate in ludic activity gain or consumption, ludic activity open hour section.
Optionally, the second determining module 12, specifically for judging between the position of non-player role and the position of resource points Ludic activity distance whether be less than pre-determined distance;Ludic activity between the position of non-player role and the position of resource points When distance is less than pre-determined distance, using the first algorithm, determine that non-player role goes to the path of resource points;In non-player role When ludic activity distance between position and the position of resource points is greater than or equal to pre-determined distance, calculated using the first algorithm and second Method determines that non-player role goes to the path of resource points.
Optionally, the ludic activity distance between the position of non-player role and the position of resource points is greater than or equal to pre- If apart from when, the second determining module 12, for determining a nearest first area of position apart from non-player role and distance A nearest second area of the position of resource points;According to the first algorithm, determine in the position and first area of non-player role Route between any point is first path;According to the second algorithm and predetermined deviation, the second path is determined;According to the first algorithm, Determine that the route in the position and second area of resource points between any point is third path;According to first path, the second path, Third path and preset condition determine that non-player role goes to the path of resource points, preset condition be the second path respectively with The angle of the joining place in first path and third path is obtuse angle.
Optionally, the second determining module 12, for determine non-player role position and each predeterminable area on arbitrary point it Between the smallest N number of region of distance, N is positive integer;Determine on the position and each predeterminable area of resource points between arbitrary point away from From the smallest M region, M is positive integer;First area is selected from N number of region;Second area is selected from M region.
Optionally, the second determining module 12, for according to the second algorithm, determining center and the second area of first area Path between center;According between the center of first area and the center of second area path and predetermined deviation, determine Two paths.
Optionally, control module 13 are also used to meet at a distance from non-player role is between any non-player role pre- If apart from when, control non-player role executes social operation.
The control device of non-player role provided in this embodiment can be used for executing the non-player angle shown in Fig. 4 above-mentioned Fig. 1- The control method of color, implementation is similar with technical effect, and details are not described herein again for the present embodiment.
It can carry out the division of functional module in the present invention to the control device of non-player role according to above method example, For example, each functional module of each function division can be corresponded to, two or more functions can also be integrated in one In processing module.Above-mentioned integrated module both can take the form of hardware realization, can also use the shape of software function module Formula is realized.It should be noted that being schematical, only a kind of logic function to the division of module in various embodiments of the present invention It divides, there may be another division manner in actual implementation.
Fig. 6 is the hardware structural diagram of electronic equipment provided by the invention.As shown in fig. 6, the electronic equipment 20, is used for Realize the operation for corresponding to terminal in any of the above-described embodiment of the method, the electronic equipment 20 of the present embodiment may include: that input is defeated Equipment 21, memory 22 and processor 23 out.Wherein, input-output equipment 21 and memory 22 pass through bus 24 and processing respectively Device 23 connects.
Memory 22, for storing computer program;
Processor 23, for executing the computer program of the storage of memory 22, to realize the non-player in above-described embodiment The control method of role.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory 22 can also be integrated with processor 23 either independent.
Wherein, input-output equipment 21 can be connect by bus 24 with processor 23.Processor 23 can control input Output equipment 21 realizes the above-mentioned function of sending and receiving of electronic equipment 20.
Electronic equipment provided in this embodiment can be used for executing the control method of above-mentioned non-player role, implementation Similar with technical effect, details are not described herein again for the present embodiment.
The present invention also provides a kind of computer readable storage medium, computer readable storage medium includes computer program, Computer program for realizing the non-player role in embodiment as above control method.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, apparatus embodiments described above are merely indicative, for example, the division of module, only A kind of logical function partition, there may be another division manner in actual implementation, such as multiple modules can combine or can be with It is integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or module, can To be electrically mechanical or other forms.
Module may or may not be physically separated as illustrated by the separation member, show as module Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks On unit.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that modules physically exist alone, can also be integrated in one unit with two or more modules.Above-mentioned module at Unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this Shen Please each embodiment method part steps.
It should be understood that above-mentioned processor can be central processing unit (English: Central Processing Unit, letter Claim: CPU), can also be other general processors, digital signal processor (English: Digital Signal Processor, Referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with hair The step of bright disclosed method, can be embodied directly in hardware processor and execute completion, or with hardware in processor and soft Part block combiner executes completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage can also be USB flash disk, mobile hard disk, read-only memory, disk or CD etc..
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer Portion's apparatus interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control Bus etc..For convenient for indicating, the bus in illustrations does not limit only a bus or a type of bus.
Above-mentioned computer readable storage medium can be by any kind of volatibility or non-volatile memory device or Their combination realizes that, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) can Erasable programmable read-only memory (EPROM) (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, Flash memory, disk or CD.Storage medium can be any usable medium that general or specialized computer can access.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of control method of non-player role characterized by comprising
By obtaining the current demand information of non-player role, it is living to determine that the non-player role participates in game in scene of game Dynamic resource points;
The resource points for participating in ludic activity in scene of game according to the non-player role determine that the non-player role is gone to The path of the resource points;
It controls the non-player role and goes to corresponding resource point to participate in ludic activity according to the path.
2. the method according to claim 1, wherein by the current demand information for obtaining non-player role, really The fixed non-player role participates in the resource points of ludic activity in scene of game, comprising:
According to the current demand information of the non-player role, determines and initially meet state and current demand weight;
According to the current demand weight and it is described initially meet state, obtain averagely happy value;
Predict that the participation after the non-player role participates in the corresponding ludic activity of each resource points in scene of game meets shape State;
Determine the position of the non-player role ludic activity distance between the position of each resource points respectively;
According to the ludic activity distance, the current demand weight, it is described initially meet state, it is described participation meet state and The current gain coefficient obtains happy overall gain;
According to the happy overall gain and the average happy value, determine that the non-player role participates in game in scene of game Movable resource points.
3. the method according to claim 1, wherein the resource points are to meet the resource points of preset condition, institute State preset condition be current time the resource points open hour section within and the resource points be in idle condition.
4. method according to claim 1-3, which is characterized in that the element of the resource points includes: that game is living The region of dynamic content, ludic activity, the interaction point of ludic activity, the gain or consumption, ludic activity that participate in ludic activity Open hour section.
5. the method according to claim 1, wherein trip is participated in scene of game according to the non-player role It plays movable resource points, determines that the non-player role goes to the path of the resource points, comprising:
It is default to judge whether the ludic activity distance between the position of the non-player role and the position of the resource points is less than Distance;
If so, determining that the non-player role goes to the path of the resource points using the first algorithm;
If it is not, then using the first algorithm and the second algorithm, determine that the non-player role goes to the path of the resource points.
6. according to the method described in claim 5, it is characterized in that, position and the resource points in the non-player role When ludic activity distance between position is greater than or equal to pre-determined distance, using the first algorithm and the second algorithm, determine described non- Player role goes to the path of the resource points, comprising:
Determine that the first area of position recently apart from the non-player role and the position apart from the resource points are nearest A second area;
According to first algorithm, the route in the position and the first area of the non-player role between any point is determined For first path;
According to second algorithm and predetermined deviation, the second path is determined;
According to first algorithm, determine that route in the position and the second area of the resource points between any point is the Three paths;
According to the first path, second path, the third path and preset condition, the non-player role is determined Go to the path of the resource points, the preset condition be second path respectively with the first path and the third road The angle of the joining place of diameter is obtuse angle.
7. according to the method described in claim 6, it is characterized in that, determine position apart from the non-player role it is nearest one The nearest second area in a first area and position apart from the resource points, comprising:
Determine the smallest N number of predeterminable area in the distance between arbitrary point, N on the position and each predeterminable area of the non-player role For positive integer;
Determine that the distance between arbitrary point the smallest M predeterminable area, M are positive on the position and each predeterminable area of the resource points Integer;
The first area is selected from N number of predeterminable area;
The second area is selected from the M predeterminable area.
8. according to the method described in claim 6, it is characterized in that, determining second according to second algorithm and predetermined deviation Path, comprising:
According to second algorithm, the path between the center of the first area and the center of the second area is determined;
According between the center of the first area and the center of the second area path and the predetermined deviation, determine institute State the second path.
9. method according to claim 1 or 2, which is characterized in that the method also includes:
When meeting pre-determined distance at a distance from the non-player role is between any non-player role, the non-player angle is controlled Color executes social operation.
10. a kind of control device of non-player role characterized by comprising
First determining module determines that the non-player role is being swum for the current demand information by obtaining non-player role The resource points of ludic activity are participated in scene of playing;
Second determining module is determined for participating in the resource points of ludic activity in scene of game according to the non-player role The non-player role goes to the path of the resource points;
Control module goes to corresponding resource point to participate in ludic activity for controlling the non-player role according to the path.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The control method of the described in any item non-player roles of claim 1-10 is realized when being executed by processor.
12. a kind of electronic equipment characterized by comprising input-output equipment, memory and processor;The input and output Equipment, the memory are connected to the processor respectively;
The memory, for storing program instruction;
The processor realizes preview in the described in any item game of claim 1-10 for being performed in program instruction The control method of the non-player role of map.
CN201811570265.XA 2018-12-21 2018-12-21 Method, device, equipment and storage medium for controlling non-player character Active CN109731332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811570265.XA CN109731332B (en) 2018-12-21 2018-12-21 Method, device, equipment and storage medium for controlling non-player character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811570265.XA CN109731332B (en) 2018-12-21 2018-12-21 Method, device, equipment and storage medium for controlling non-player character

Publications (2)

Publication Number Publication Date
CN109731332A true CN109731332A (en) 2019-05-10
CN109731332B CN109731332B (en) 2023-03-07

Family

ID=66360857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811570265.XA Active CN109731332B (en) 2018-12-21 2018-12-21 Method, device, equipment and storage medium for controlling non-player character

Country Status (1)

Country Link
CN (1) CN109731332B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109999498A (en) * 2019-05-16 2019-07-12 网易(杭州)网络有限公司 A kind of method for searching and device of virtual objects
CN111013139A (en) * 2019-11-12 2020-04-17 北京字节跳动网络技术有限公司 Role interaction method, system, medium and electronic device
CN111083509A (en) * 2019-12-16 2020-04-28 腾讯科技(深圳)有限公司 Interactive task execution method and device, storage medium and computer equipment
CN112337090A (en) * 2020-11-06 2021-02-09 完美世界(重庆)互动科技有限公司 Event message broadcasting method and device, storage medium and electronic device
CN113082713A (en) * 2021-03-01 2021-07-09 上海硬通网络科技有限公司 Game control method and device and electronic equipment
CN113499586A (en) * 2021-07-08 2021-10-15 网易(杭州)网络有限公司 Information prompting method and device in game, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070129126A1 (en) * 2005-10-14 2007-06-07 Leviathan Entertainment, Llc Method and System for Allocating Resources in a Video Game
CN102136025A (en) * 2010-12-31 2011-07-27 北京像素软件科技股份有限公司 Intelligent controlling method of non player characters
CN104102522A (en) * 2014-07-30 2014-10-15 厦门大学 Artificial emotion driving method of intelligent non-player character in interactive game
CN106790224A (en) * 2017-01-13 2017-05-31 腾讯科技(深圳)有限公司 The method and server of a kind of control simulated object pathfinding
CN107744663A (en) * 2017-10-19 2018-03-02 广州爱九游信息技术有限公司 The method for searching and device of artificial intelligence AI units
CN108463273A (en) * 2015-11-04 2018-08-28 Cy游戏公司 Mobile history based on player carries out the games system etc. of the path finding of non-gaming person role
CN109011588A (en) * 2018-10-16 2018-12-18 杭州电魂网络科技股份有限公司 Scene of game exchange method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070129126A1 (en) * 2005-10-14 2007-06-07 Leviathan Entertainment, Llc Method and System for Allocating Resources in a Video Game
CN102136025A (en) * 2010-12-31 2011-07-27 北京像素软件科技股份有限公司 Intelligent controlling method of non player characters
CN104102522A (en) * 2014-07-30 2014-10-15 厦门大学 Artificial emotion driving method of intelligent non-player character in interactive game
CN108463273A (en) * 2015-11-04 2018-08-28 Cy游戏公司 Mobile history based on player carries out the games system etc. of the path finding of non-gaming person role
CN106790224A (en) * 2017-01-13 2017-05-31 腾讯科技(深圳)有限公司 The method and server of a kind of control simulated object pathfinding
CN107744663A (en) * 2017-10-19 2018-03-02 广州爱九游信息技术有限公司 The method for searching and device of artificial intelligence AI units
CN109011588A (en) * 2018-10-16 2018-12-18 杭州电魂网络科技股份有限公司 Scene of game exchange method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109999498A (en) * 2019-05-16 2019-07-12 网易(杭州)网络有限公司 A kind of method for searching and device of virtual objects
CN111013139A (en) * 2019-11-12 2020-04-17 北京字节跳动网络技术有限公司 Role interaction method, system, medium and electronic device
CN111013139B (en) * 2019-11-12 2023-07-25 北京字节跳动网络技术有限公司 Role interaction method, system, medium and electronic equipment
CN111083509A (en) * 2019-12-16 2020-04-28 腾讯科技(深圳)有限公司 Interactive task execution method and device, storage medium and computer equipment
CN111083509B (en) * 2019-12-16 2021-02-09 腾讯科技(深圳)有限公司 Interactive task execution method and device, storage medium and computer equipment
CN112337090A (en) * 2020-11-06 2021-02-09 完美世界(重庆)互动科技有限公司 Event message broadcasting method and device, storage medium and electronic device
CN113082713A (en) * 2021-03-01 2021-07-09 上海硬通网络科技有限公司 Game control method and device and electronic equipment
CN113082713B (en) * 2021-03-01 2022-12-09 上海硬通网络科技有限公司 Game control method and device and electronic equipment
CN113499586A (en) * 2021-07-08 2021-10-15 网易(杭州)网络有限公司 Information prompting method and device in game, electronic equipment and storage medium
CN113499586B (en) * 2021-07-08 2024-04-12 网易(杭州)网络有限公司 Information prompting method and device in game, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109731332B (en) 2023-03-07

Similar Documents

Publication Publication Date Title
CN109731332A (en) Control method, device, equipment and the storage medium of non-player role
US7537523B2 (en) Dynamic player groups for interest management in multi-character virtual environments
Westecott Independent game development as craft
US8990688B2 (en) Proactive user interface including evolving agent
CN103098099B (en) Draw control equipment and control method, rendering server and drawing system
US7725419B2 (en) Proactive user interface including emotional agent
Miller et al. The standing ovation problem
CN103890815B (en) Method and system for being responsible for the transition virtual world that can be created, be responsible for and terminate by remote auto
CN101622647B (en) Character display, character displaying method
US20060258462A1 (en) System and method of seamless game world based on server/client
WO2020143847A2 (en) Determining action selection policies of an execution device
US10880192B1 (en) Interactive agents for user engagement in an interactive environment
CN109876444A (en) Method for exhibiting data and device, storage medium and electronic device
CN110298907A (en) A kind of virtual role method of controlling operation and device calculate equipment and storage medium
US20230048502A1 (en) Method and apparatus for displaying expression in virtual scene
Crittenden et al. Strategic management in emerging economies: A research agenda
CN108769964A (en) A kind of connection method of Bluetooth device, device and equipment
WO2020143848A2 (en) Determining action selection policies of an execution device
CN110292772A (en) The method and device of map is synthesized in game
CN109829578A (en) A kind of sale of electricity quotient and polynary user demand response game method and equipment
CN115228088A (en) Method, equipment and medium for NPC and player role chatting
CN110772794A (en) Intelligent game processing method, device, equipment and storage medium
CN110009749A (en) A kind of virtual objects localization method, calculates equipment and storage medium at device
CN112418349A (en) Distributed multi-agent deterministic strategy control method for large complex system
Vega-Redondo Technological change and market structure: An evolutionary approach

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