CN103577704A - Event handling method and device through NPC in game system - Google Patents

Event handling method and device through NPC in game system Download PDF

Info

Publication number
CN103577704A
CN103577704A CN201310565661.4A CN201310565661A CN103577704A CN 103577704 A CN103577704 A CN 103577704A CN 201310565661 A CN201310565661 A CN 201310565661A CN 103577704 A CN103577704 A CN 103577704A
Authority
CN
China
Prior art keywords
processing policy
policy result
npc
event
trigger event
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
CN201310565661.4A
Other languages
Chinese (zh)
Other versions
CN103577704B (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.)
Beijing Pixel Software Technology Co Ltd
Original Assignee
Beijing Pixel Software Technology 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 Beijing Pixel Software Technology Co Ltd filed Critical Beijing Pixel Software Technology Co Ltd
Priority to CN201310565661.4A priority Critical patent/CN103577704B/en
Publication of CN103577704A publication Critical patent/CN103577704A/en
Application granted granted Critical
Publication of CN103577704B publication Critical patent/CN103577704B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to online games, in particular to an event handling method and device through an NPC in a game system. The method includes the steps that an NPC trigger event is obtained; a handling strategy result set, composed of at least one handling strategy result, of the NPC trigger event is obtained; whether an update instruction is generated and content of the update instruction are determined according to the state of the NPC trigger event; when the update instruction is generated, the handling strategy result set is updated according to the content of the update instruction; a handling strategy result in the handling strategy result set responds to the NPC trigger event. By the adoption of the technical scheme, NPC handling events in the game system have multiple optional handle strategy results, and therefore intelligence and flexibility of the online games are enhanced and experience effects of players are improved.

Description

In games system, NPC processes method and the device of event
Technical field
The present invention relates to microcomputer data processing, relate in particular to method and the device of NPC processing event in a kind of games system.
Background technology
Online game is as utilizing computer technology to carry out amusement and a kind of mode of loosening, and present stage is subject to the more and more general acceptance of the network user and approval.Online game (Online Game), claims again " game on line ".Finger be take internet as transmission medium, take game carrier server and subscriber computer is processing terminal, and the game client software of take is information interaction window is intended to realize amusement, leisure, exchange and obtain the individuality MMOG with sustainability just inventing.The major way that non-player role (NPC, Non-Player Character) exchanges with online game as player, is guiding completing of player's task, the carrying out of scene of game, the expansion of game story etc.With this, the improvement of NPC and player exchange mode in online game, NPC processes the ability of the event that player triggers in game, just seems very important strengthening aspect game intelligent.
In prior art, at NPC, process in the processing logic of player triggers event the default particular procedure Policy Result by hard coded to specific external event.When NPC runs into after particular event, for this event, only can produce single handling procedure, and then make single processing policy result, realize the processing to NPC trigger event in game.
What prior art adopted makes single processing policy result to specific NPC trigger event, has to a certain degree realized the processing of NPC to player triggers event in online game, has met game player's demand; But to specific event, only set corresponding event handling mode, limited greatly the dirigibility of online game, and then reduced the intelligent of online game.
Summary of the invention
The method and the device that the object of the invention is to propose NPC processing event in a kind of online game, can make online game have more intelligent and dirigibility.
In first aspect, the embodiment of the present invention provides the method for NPC processing event in a kind of games system, comprising:
Obtain NPC trigger event;
Obtain the processing policy result set of at least one processing policy result composition of described NPC trigger event;
According to the residing state of described NPC trigger event, determine whether to produce the content of update instruction and update instruction;
When producing update instruction, according to processing policy result set described in the content update of described update instruction;
Adopt the processing policy result in described processing policy result set to respond described NPC trigger event.
Further, in described games system, NPC processes the method for event, and the processing policy result in the described processing policy result set of described employing responds described NPC trigger event, comprising:
A processing policy result of the described event that employing is selected in the processing policy result set after renewal based on predetermined manner, responds described NPC trigger event.
Further, in described games system, NPC processes the method for event, adopts based on predetermined manner a processing policy result of selected described event in the processing policy result set after renewal, responds described NPC trigger event, comprising:
According to the pre-conditioned selection probability of determining each processing policy result in described processing policy result set;
The selected Policy Result of processing is concentrated and is selected a processing policy result that probability is the highest as the processing policy result of described event, responds described NPC trigger event.
Further, in described games system, NPC processes the method for event, described according to the pre-conditioned selection probability of determining each processing policy result in described processing policy result set, comprising:
According to the optimal selection probability of statistics player's actual selection probability and/or simulation, determine the selection probability of each processing policy result in processing policy result set.
Further, in described games system, NPC processes the method for event, described in obtain the processing policy result set that at least one processing policy result of described NPC trigger event forms, comprising:
Obtain at least one button.onrelease of described NPC trigger event;
According to button.onrelease described in each, obtain at least one corresponding event handling Policy Result; And
According at least one processing policy result, form processing policy result set.
Further, in described games system, NPC processes the method for event, and the residing state of described NPC trigger event comprises: role state, weapons status, technical ability state and/or scene state; The content of described update instruction comprises processing policy result delete instruction and/or processing policy result interpolation instruction.
In the online game that the embodiment of the present invention provides, NPC processes the method for event, according to a plurality of handling procedures of the type selecting of trigger event, it is processed, and then produce the processing policy result of a plurality of events, and form Policy Result collection according to the processing policy result producing; And then at Policy Result, concentrate the processing policy result of chosen place director part, realize the processing of NPC to the game player's trigger event running into.Technical solution of the present invention provides a plurality of processing policy results to the event triggering, and according to certain mode, select suitable treatments Policy Result therein, for NPC trigger event in game under many factors is considered, the multiple selective method providing, enrich NPC in game and processed the approach of event, and then promoted the intelligent of games system.Further, when triggering by triggering command after update strategy result set, to the Policy Result centralized policy result interpolation forming or deletion etc., the processing policy result set of further optimization event, promote the dirigibility that game events is processed, and realized real-time update and the maintenance to game events processing policy result set.
In second aspect, the embodiment of the present invention also provides the device of NPC processing event in a kind of games system, comprising:
Obtain trigger event module, for obtaining NPC trigger event;
Obtain processing policy result set module, the processing policy result set forming for obtaining at least one processing policy result of described NPC trigger event;
Determine update module, for determine whether to produce the content of update instruction and update instruction according to the residing state of described NPC trigger event;
Update module, for when producing update instruction, according to processing policy result set described in the content update of described update instruction;
Adopt module, for adopting the processing policy result of described processing policy result set to respond described NPC trigger event.
Further, in described games system, NPC processes the device of event, comprise: adopt the processing policy module that bears fruit, for adopting based on predetermined manner a processing policy result of the selected described event of processing policy result set after renewal, respond described NPC trigger event.
Further, in described games system, NPC processes the device of event, adopts the processing policy module that bears fruit to comprise:
Determine probability submodule, for according to the pre-conditioned selection probability of determining described each processing policy result of processing policy result set;
Selected maximum probability submodule, concentrates and selects a processing policy result that probability is the highest as the processing policy result of described event for the selected Policy Result of processing, and responds described NPC trigger event.
Further, in described games system, NPC processes the device of event, and described definite probability submodule is specifically for determining the selection probability of each processing policy result in processing policy result set according to the optimal selection probability of statistics player's actual selection probability and/or simulation.
Further, in described games system, NPC processes the device of event, obtains processing policy result set module and comprises:
Obtain handling procedure submodule, for obtaining at least one button.onrelease of described NPC trigger event;
Corresponding submodule, for obtaining at least one corresponding event handling Policy Result according to button.onrelease described in each; And
Form processing policy result set submodule, for forming processing policy result set according at least one processing policy result.
Further, in described games system, NPC processes the device of event, and the residing state of described NPC trigger event comprises: role state, weapons status, technical ability state and/or scene state; The content of described update instruction comprises processing policy result delete instruction and/or processing policy result interpolation instruction.
In the online game that the embodiment of the present invention provides, NPC processes the device of event, according to a plurality of handling procedures of the type selecting of trigger event, it is processed, and then produce the processing policy result of a plurality of events, and form Policy Result collection according to the processing policy result producing; And then at Policy Result, concentrate the processing policy result of chosen place director part, realize the processing of NPC to the game player's trigger event running into.Technical solution of the present invention provides a plurality of processing policy results to the event triggering, and according to certain mode, select suitable treatments Policy Result therein, for NPC trigger event in game under many factors is considered, the multiple selective method providing, enrich NPC in game and processed the approach of event, and then promoted the intelligent of games system.Further, when triggering by triggering command after update strategy result set, to the Policy Result centralized policy result interpolation forming or deletion etc., the processing policy result set of further optimization event, promote the dirigibility that game events is processed, and realized real-time update and the maintenance to game events processing policy result set.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, does not form limitation of the invention.In the accompanying drawings:
Shown in Fig. 1, be in the embodiment of the present invention one in games system NPC process event methods schematic flow sheet;
Shown in Fig. 2, be in the embodiment of the present invention two in games system NPC process event methods schematic flow sheet;
Shown in Fig. 3, be in the embodiment of the present invention two, to obtain processing policy result set schematic flow sheet;
Shown in Fig. 4, be in the embodiment of the present invention three in games system NPC process event methods schematic flow sheet;
Shown in Fig. 5, be in the embodiment of the present invention four in games system NPC process event device modular structure schematic diagram.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is carried out more in detail and complete explanation.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, in accompanying drawing, only show part related to the present invention but not full content.
Games system refers to the operation platform of the online game being comprised of server end equipment, player's client device and the disposal route of setting each other, control method etc.; Games system moves according to predefined mode at server end and player's client.The major way that non-player role (NPC, Non-Player Character) exchanges with online game as player, is guiding completing of player's task, the carrying out of scene of game, the expansion of game story etc.NPC be in network game system predefined player and game exchange to realize guide finish the work, the carrying out of scene of game, the virtual portrait of the functions such as the expansion of game story.With this, improve the ability of NPC processing event in games system, just very important to improving with improvement of games system, the present invention is the method that has proposed NPC processing event in a kind of games system, by reference to the accompanying drawings following and embodiment illustrates.
Shown in Fig. 1, be in the embodiment of the present invention one in games system NPC process event methods schematic flow sheet.This method can be carried out by the server device of games system, and, as a kind of advantageous applications example this method, can be applied to seek celestial grade in online game.As shown in Figure 1, described method comprises:
Step 101, obtain NPC trigger event.
The server end of network system obtains NPC trigger event.In games system, player is by triggering corresponding event with NPC dialogue, the behaviors such as NPC, control NPC of attacking, as supporting the server end of game running and then obtaining corresponding NPC trigger event according to player's triggering behavior.Trigger event refers to the various events that in games system, player can realize by NPC, such as controlling NPC, attack NPC, carrying out inter-related task etc. by NPC.Concrete, when the role in the present embodiment in player plays by control and NPC carry out corelation behaviour, according to presetting instruction, server end obtains the trigger message of dependent instruction, and then obtains NPC trigger event in games system.
Step 102, obtain the processing policy result set that at least one processing policy result of NPC trigger event forms.
Processing policy result refers to that in games system, NPC processes the result producing to trigger event, for example, when producing player and control NPC and attack other player's event, the processing policy result of this event can be attacked player or NPC refuses absolute player and attacks for NPC, can also select corresponding technical ability to carry out attack of player etc. when NPC presets certain skills.
For specific event, the reason producing according to event and Event triggered person's characteristic can have the processing policy result of varied event.When obtained NPC trigger event in step 101 after, this step that is to say according to the event triggering, and at least one the processing policy result matching with trigger event is formed to a processing policy result set.Concrete, preferred, in the present embodiment when obtaining at least one processing policy result of event after, with a processing policy result of form composition of database.
Step 103, according to the residing state of NPC trigger event, determine whether to produce the content of update instruction and update instruction.
The residing state of trigger event is the self-characteristic that trigger event has, and accordingly diversified trigger event is distinguished and is come; The residing state of trigger event can be varied, wherein any one or a few combinations such as role state, weapons status, technical ability state, scene state.After concrete Event triggered, according to the state of trigger event, for a plurality of processing policy results in the processing policy result set forming in step 102, it not often the state that all meets event, the processing policy result that for example has a women of role to carry out in processing policy result set, but when if now the role state of trigger event state is the male sex, now this processing policy result of this trigger event with regard to inapplicable this trigger event; Or for specific trigger event, in processing policy result set, also there are other processing policy results; Now, just need carry out necessary renewal to processing policy result set.This step event be according to the residing state of NPC trigger event, to determine whether to produce the content of update instruction and update instruction.
Update instruction refers to specifically for upgrading the server end of processing policy result set and can identify, and the command information that can upgrade processing policy result set.Update instruction content refers to the mode that processing policy result set is upgraded, such as thinking wherein any one or a few the combinations such as processing policy result delete instruction and/or processing policy result interpolation instruction.
Step 104, when producing update instruction, according to the content update processing policy result set of update instruction.
According to the residing state of trigger event, when the processing policy result set that trigger event produces need to upgrade, produce update instruction, and according to the content update processing policy result set of update instruction.For example, when producing update instruction, and the content of update instruction is while being processing policy result delete instruction, now according to processing policy result delete instruction, delete corresponding processing policy result in processing policy result set, and then realize the renewal to processing policy result set.
Processing policy result response NPC trigger event in step 105, employing processing policy result set.
The processing policy result set in this step 104, trigger event being obtained has carried out necessary renewal.It in this step, is the processing policy result response NPC trigger event adopting in processing policy result set.
In the online game that the embodiment of the present invention provides, NPC processes the method for event, according to a plurality of handling procedures of the type selecting of trigger event, it is processed, and then produce the processing policy result of a plurality of events, and form Policy Result collection according to the processing policy result producing; And then concentrate state based on trigger event to upgrade the processing policy result of chosen place director part at Policy Result, realize the processing of NPC to the game player's trigger event running into.Technical solution of the present invention provides a plurality of processing policy results to the event triggering, and according to certain mode, select suitable treatments Policy Result therein, for NPC trigger event in game under many factors is considered, the multiple selective method providing, enrich NPC in game and processed the approach of event, and then promoted the intelligent of games system.Further, when triggering by triggering command after update strategy result set, to the Policy Result centralized policy result interpolation forming or deletion etc., the processing policy result set of further optimization event, promote the dirigibility that game events is processed, and realized real-time update and the maintenance to game events processing policy result set.
Shown in Fig. 2, be that in the embodiment of the present invention two, games system NPC processes event schematic flow sheet.This method can be carried out by the server device of games system, and, as a kind of advantageous applications example this method, can be applied to seek celestial grade in online game.As shown in Figure 1, described method comprises:
Step 201, obtain NPC trigger event.
The server end of network system obtains NPC trigger event.In games system, player is by triggering corresponding event with NPC dialogue, the behaviors such as NPC, control NPC of attacking, as supporting the server end of game running and then obtaining corresponding NPC trigger event according to player's triggering behavior.Trigger event refers to the various events that in games system, player can realize by NPC, such as controlling NPC, attack NPC, carrying out inter-related task etc. by NPC.Concrete, when the role in the present embodiment in player plays by control and NPC carry out corelation behaviour, according to presetting instruction, server end obtains the trigger message of dependent instruction, and then obtains NPC trigger event in games system.
Step 202, obtain the processing policy result set that at least one processing policy result of described NPC trigger event forms.
Processing policy result refers to the result in games system, event handling being produced, for example, when producing player and control NPC and attack other player's event, the processing policy result of this event can be attacked player or NPC refuses absolute player and attacks for NPC, can also select corresponding technical ability to carry out attack of player etc. when NPC presets certain skills.
For specific event, the reason producing according to event and Event triggered person's characteristic can have the processing policy result of varied event.When obtained NPC trigger event in step 101 after, this step that is to say according to the event triggering, and at least one the processing policy result matching with trigger event is formed to a processing policy result set.Concrete, in the present embodiment when obtaining at least one processing policy result of event after, with a processing policy result of form composition of database.
Shown in Fig. 3, be in the embodiment of the present invention two, to obtain processing policy result set schematic flow sheet; As shown in Figure 3, shown in, obtaining processing policy result flow process comprises:
Step 2021, obtain at least one button.onrelease of described NPC trigger event.
Button.onrelease refers to disposal route, the flow process to event, and then produces the process of processing policy result, and a button.onrelease is representing the disposal route that consideration event aspect factor has been done.For specific event, according to the residing state of different events, can there is diversified button.onrelease, therefore after obtaining NPC trigger event, obtain at least one button.onrelease relevant to trigger event.
Concrete, in the present embodiment, first at server end definition event and two base class of eventhandler, event presentation of events wherein, eventhandler presentation of events handling procedure.Each event has a Virtual Function of not carrying out to be used for returning the type of this event.NPC institute trigger event is defined to corresponding event class, and according to the corresponding subclass of inheriting of the state characteristic definition of trigger event, for example definition succession subclass is attacked.Simultaneously, definition eventhandler base class, and with the succession subclass of the corresponding a series of eventHandler of state characteristic of trigger event, that is to say that definition process attacker inherits subclass external event is processed, provide the optional Policy Result collection after event handling simultaneously.
Step 2022, according to button.onrelease described in each, obtain at least one corresponding event handling Policy Result.
The corresponding event handling Policy Result of specific button.onrelease, after determining the event that NPC triggers, has also obtained the handling procedure of event, and then has also obtained accordingly event handling Policy Result corresponding to handling procedure.
Concrete, in the present embodiment, the eventhandler handling procedure base class defining in games system server has been quoted after the object of corresponding succession subclass of event event base class, according to event, inherit state and the characteristic of event in subclass, corresponding eventhandler handling procedure is inherited subclass quoted event object is carried out and produced corresponding processing policy result.
Step 2023, according at least one processing policy result, form processing policy result set.
In this step, that is to say at least one processing policy result of obtaining in 2022 is formed to Policy Result collection.
Concrete, in the present embodiment, the processing policy result of obtaining can be formed to Policy Result collection at games system server end with the form of database.
Step 203, according to the residing state of NPC trigger event, determine whether to produce the content of update instruction and update instruction.
The residing state of trigger event is the self-characteristic that trigger event has, and accordingly diversified trigger event is distinguished and is come; The residing state of trigger event can be varied, wherein any one or a few combinations such as role state, weapons status, technical ability state, scene state.After concrete Event triggered, according to the state of trigger event, for the many processing policy results in the processing policy result set forming in step 102, it not often the state that all meets event, the processing policy result that for example has a women of role to carry out in processing policy result set, but when if now the role state of trigger event state is the male sex, now this processing policy result of this trigger event with regard to inapplicable this trigger event; Or for specific trigger event, in processing policy result set, also there are other processing policy results; Now, just need carry out necessary renewal to processing policy result set.This step event be according to the residing state of NPC trigger event, to determine whether to produce the content of update instruction and update instruction.
Update instruction refers to specifically for upgrading the server end of processing policy result set and can identify, and the command information that can upgrade processing policy result set.Update instruction content refers to the mode that processing policy result set is upgraded, such as thinking wherein any one or a few the combinations such as processing policy result delete instruction and/or processing policy result interpolation instruction.
Concrete, in the present embodiment, define an eventmanager processing policy result set is managed, in eventhandler, inherit by reference the corresponding event handling procedure of subclass, and then realize handling procedure generation processing policy result set is carried out to more new management.
Step 204, when producing update instruction, according to the content update processing policy result set of described update instruction.
According to the residing state of trigger event, when the processing policy result set that trigger event produces need to upgrade, produce update instruction, and according to the content update processing policy result set of update instruction.For example, when producing update instruction, and the content of update instruction is while being processing policy result delete instruction, now according to processing policy result delete instruction, delete corresponding processing policy result in processing policy result set, and then realize the renewal to processing policy result set.
A processing policy result of the described event that step 205, employing are selected in the processing policy result set after renewal based on predetermined manner, responds described NPC trigger event.
The processing policy result set in this step 204, trigger event being obtained has carried out necessary renewal.It in this step, is the corresponding NPC trigger event of processing policy result adopting in processing policy result set.
Concrete, in the present embodiment, the eventmanager base class of the definition by reference corresponding succession subclass of eventhandler manages the processing policy result set of corresponding NPC trigger event, dynamically update processing policy collection, and for a priority of event handling strategy maintenance, so that the result of the high event handling strategy of priority is weighted to processing.During generation event, traversal is carried out all event handling strategies of its preservation, finally gathers after the Policy Result collection of gained, selects most suitable Policy Result to carry out.
Further, according to the residing state of NPC trigger event, when processing policy result set does not need to upgrade, games system server end will no longer produce update instruction and update content is upgraded processing policy result set, and a direct event that processing policy result response NPC triggers of selected event in the processing policy result set not upgrading.
In the online game that the embodiment of the present invention provides, NPC processes the method for event, according to a plurality of handling procedures of the type selecting of trigger event, it is processed, and then produce a plurality of to event handling Policy Result, and the Policy Result collection forming according to the processing policy result producing; And then at Policy Result, concentrate the processing policy result of chosen place director part, realize the processing of NPC to the game player's trigger event running into.Technical solution of the present invention provides a plurality of processing policy results to the event triggering, and according to certain mode, select suitable treatments Policy Result therein, for the multiple choices method that in game, the processing of NPC event provides, enrich NPC in game and processed the approach of event, and then promoted the intelligent of games system.Further, when triggering by triggering command after update strategy result set, the Policy Result centralized policy result forming is added or deleted, the processing policy result set of the event of further optimizing, promote the dirigibility that game events is processed, and realized real-time update and the maintenance to game events processing policy result set.
Shown in Fig. 4, be in the embodiment of the present invention three in games system NPC process event schematic flow sheet.The present embodiment method is applied to the server end of games system.The step 301, step 302, step 303, the step 304 that at this, it should be noted that this case method are identical with explanation with the specific explanations of step 201, step 202, step 203 and step 204 in embodiment bis-, do not repeat them here, specifically please refer to embodiment bis-.As shown in Figure 4, described method comprises:
Step 301, obtain NPC trigger event.
Step 302, obtain the processing policy result set that at least one processing policy result of NPC trigger event forms.
Step 303, according to the residing state of NPC trigger event, determine whether to produce the content of update instruction and update instruction.
Step 304, when producing update instruction, according to the content update processing policy result set of update instruction.
Step 305, according to the selection probability of each processing policy result in pre-conditioned definite processing policy result set.
The selection probability of processing policy result refers to the selected probability as event handling Policy Result of processing policy result in processing policy result set.Be understandable that, the event that processing policy probability of outcome is high in processing policy result set is optimum or the highest processing policy result of priority of NPC trigger event.Selection probability for processing policy result in processing policy result set can be determined according to the optimal selection probability of statistics player's actual selection probability and/or simulation the selection probability of each processing policy result in processing policy result set.According to statistics player actual selection probability, refer to that statistics player is in the process of playing games after NPC trigger event, player's selection probability.
Concrete, in the present embodiment, by the optimal selection probability of simulation, determine and that is to say the selection probability of each processing policy result in processing policy result set and determine when button.onrelease after, determine corresponding processing policy result and probability accordingly thereof.
Step 306, the selected Policy Result of processing are concentrated and are selected a processing policy result that probability is the highest as the processing policy result of event, response NPC trigger event.
The processing policy result set in this step 305, trigger event being obtained has carried out necessary renewal.It in this step, is the corresponding NPC trigger event of processing policy result adopting in processing policy result set.
Further, according to the residing state of NPC trigger event, when processing policy result set does not need to upgrade, games system server end will no longer produce update instruction and update content is upgraded processing policy result set, and a direct event that processing policy result response NPC triggers of selected event in the processing policy result set not upgrading.
Concrete, in the present embodiment, select a processing policy result that probability is the highest as the processing policy result of event, response NPC trigger event.
Have more, in the present embodiment can by when eventmanager base class, quote eventhandler relevant inherit adopt after subclass for loop statement realize processing policy result set in maximum probability processing policy result selected.That is to say the probability that repeats to search processing policy result set processing policy result in processing policy result set, and record its probability, when traversal processing Policy Result, concentrate after all processing policy results, select maximum probability processing policy result as NPC trigger event processing policy result.
In the online game that the embodiment of the present invention provides, NPC processes the method for event, according to a plurality of handling procedures of the type selecting of trigger event, it is processed, and then produce a plurality of to event handling Policy Result, and the Policy Result collection forming according to the processing policy result producing; And then at Policy Result, concentrate the processing policy result of chosen place director part, realize the processing of NPC to the game player's trigger event running into.Technical solution of the present invention provides a plurality of processing policy results to the event triggering, and according to certain mode, select suitable treatments Policy Result therein, for the multiple choices method that in game, the processing of NPC event provides, enrich NPC in game and processed the approach of event, and then promoted the intelligent of games system.Further, when triggering by triggering command after update strategy result set, to the Policy Result centralized policy result interpolation forming or deletion etc., the processing policy result set of further optimization event, promote the dirigibility that game events is processed, and realized real-time update and the maintenance to game events processing policy result set.
Shown in Fig. 5, be in the embodiment of the present invention four in games system NPC process event device modular structure schematic diagram.As shown in Figure 5, shown device comprises:
Obtain trigger event module 401, for obtaining NPC trigger event.
Obtain processing policy result set module 402, the processing policy result set forming for obtaining at least one processing policy result of described NPC trigger event.
Determine update module 403, for determine whether to produce the content of update instruction and update instruction according to the residing state of described NPC trigger event.
Update module 404, for when producing update instruction, according to processing policy result set described in the content update of described update instruction.
Adopt module 405, for adopting the processing policy result of described processing policy result set to respond described NPC trigger event.
In such scheme, obtain processing policy result set module 402 and specifically can comprise and obtain handling procedure submodule 4021, for obtaining at least one button.onrelease of described NPC trigger event; Corresponding submodule 4022, for obtaining at least one corresponding event handling Policy Result according to button.onrelease described in each; Form processing policy result set submodule 4023, for forming processing policy result set according at least one processing policy result.
Adopt module 405 specifically can comprise to adopt the processing policy module 4051 that bears fruit, for adopting based on predetermined manner a processing policy result of the selected described event of processing policy result set after renewal, respond described NPC trigger event.
Adopt the processing policy module 4051 that bears fruit to preferably include and determine probability unit 4051a, be used for the selection probability of determining described each processing policy result of processing policy result set according to pre-conditioned, specifically for determine the selection probability of each processing policy result in processing policy result set according to the optimal selection probability of statistics player's actual selection probability and/or simulation; Selected maximum probability unit 4052b, concentrates and selects a processing policy result that probability is the highest as the processing policy result of described event for the selected Policy Result of processing, and responds described NPC trigger event.
Preferably, in the present embodiment, the residing state of NPC trigger event comprises: role state, weapons status, technical ability state and/or scene state; The content of described update instruction comprises processing policy result delete instruction and/or processing policy result interpolation instruction.
In the online game that the embodiment of the present invention provides, NPC processes the device of event, according to a plurality of handling procedures of the type selecting of trigger event, it is processed, and then produce a plurality of to event handling Policy Result, and the Policy Result collection forming according to the processing policy result producing; And then at Policy Result, concentrate the processing policy result of chosen place director part, realize the processing of NPC to the game player's trigger event running into.Technical solution of the present invention provides a plurality of processing policy results to the event triggering, and according to certain mode, select suitable treatments Policy Result therein, for the multiple choices method that in game, the processing of NPC event provides, enrich NPC in game and processed the approach of event, and then promoted the intelligent of games system.Further, when triggering by triggering command after update strategy result set, to the Policy Result centralized policy result interpolation forming or deletion etc., the processing policy result set of further optimization event, promote the dirigibility that game events is processed, and realized real-time update and the maintenance to game events processing policy result set.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can realize with the executable program code of computer installation, thereby they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, to those skilled in the art, the present invention can have various changes and variation.All any modifications of doing, be equal to replacement, improvement etc., within protection scope of the present invention all should be included within spirit of the present invention and principle.

Claims (12)

1. a method for NPC processing event in games system, is characterized in that, comprising:
Obtain NPC trigger event;
Obtain the processing policy result set of at least one processing policy result composition of described NPC trigger event;
According to the residing state of described NPC trigger event, determine whether to produce the content of update instruction and update instruction;
When producing update instruction, according to processing policy result set described in the content update of described update instruction;
Adopt the processing policy result in described processing policy result set to respond described NPC trigger event.
2. the method for NPC processing event in games system as claimed in claim 1, is characterized in that, the processing policy result in the described processing policy result set of described employing responds described NPC trigger event, comprising:
A processing policy result of the described event that employing is selected in the processing policy result set after renewal based on predetermined manner, responds described NPC trigger event.
3. the method for NPC processing event in games system as claimed in claim 2, is characterized in that, adopts based on predetermined manner a processing policy result of selected described event in the processing policy result set after renewal, responds described NPC trigger event, comprising:
According to the pre-conditioned selection probability of determining each processing policy result in described processing policy result set;
The selected Policy Result of processing is concentrated and is selected a processing policy result that probability is the highest as the processing policy result of described event, responds described NPC trigger event.
4. the method for NPC processing event in games system as claimed in claim 3, is characterized in that, described according to the pre-conditioned selection probability of determining each processing policy result in described processing policy result set, comprising:
According to the optimal selection probability of statistics player's actual selection probability and/or simulation, determine the selection probability of each processing policy result in processing policy result set.
5. in games system as claimed in claim 1, NPC processes the method for event, it is characterized in that, described in obtain the processing policy result set that at least one processing policy result of described NPC trigger event forms, comprising:
Obtain at least one button.onrelease of described NPC trigger event;
According to button.onrelease described in each, obtain at least one corresponding event handling Policy Result; And
According at least one processing policy result, form processing policy result set.
6. the method for NPC processing event in games system as claimed in claim 1, is characterized in that, the residing state of described NPC trigger event comprises: role state, weapons status, technical ability state and/or scene state; The content of described update instruction comprises processing policy result delete instruction and/or processing policy result interpolation instruction.
7. a device for NPC processing event in games system, is characterized in that, comprising:
Obtain trigger event module, for obtaining NPC trigger event;
Obtain processing policy result set module, the processing policy result set forming for obtaining at least one processing policy result of described NPC trigger event;
Determine update module, for determine whether to produce the content of update instruction and update instruction according to the residing state of described NPC trigger event;
Update module, for when producing update instruction, according to processing policy result set described in the content update of described update instruction;
Adopt module, for adopting the processing policy result of described processing policy result set to respond described NPC trigger event.
8. in games system as claimed in claim 7, NPC processes the device of event, it is characterized in that, employing module comprises: adopt the processing policy module that bears fruit, a processing policy result of the described event of selecting for the processing policy result set adopting based on predetermined manner after renewal, responds described NPC trigger event.
9. in games system as claimed in claim 8, NPC processes the device of event, it is characterized in that, adopts the processing policy module that bears fruit to comprise:
Determine probability unit, for according to the pre-conditioned selection probability of determining described each processing policy result of processing policy result set;
Selected maximum probability unit, concentrates and selects a processing policy result that probability is the highest as the processing policy result of described event for the selected Policy Result of processing, and responds described NPC trigger event.
10. in games system as claimed in claim 9, NPC processes the device of event, it is characterized in that, described definite probability submodule is specifically for determining the selection probability of each processing policy result in processing policy result set according to the optimal selection probability of statistics player's actual selection probability and/or simulation.
In 11. games systems as claimed in claim 7, NPC processes the device of event, it is characterized in that, obtains processing policy result set module and comprises:
Obtain handling procedure submodule, for obtaining at least one button.onrelease of described NPC trigger event;
Corresponding submodule, for obtaining at least one corresponding event handling Policy Result according to button.onrelease described in each; And
Form processing policy result set submodule, for forming processing policy result set according at least one processing policy result.
In 12. games systems as claimed in claim 7, NPC processes the device of event, it is characterized in that, the residing state of described NPC trigger event comprises: role state, weapons status, technical ability state and/or scene state; The content of described update instruction comprises processing policy result delete instruction and/or processing policy result interpolation instruction.
CN201310565661.4A 2013-11-13 2013-11-13 NPC processes the method and device of event in games system Active CN103577704B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310565661.4A CN103577704B (en) 2013-11-13 2013-11-13 NPC processes the method and device of event in games system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310565661.4A CN103577704B (en) 2013-11-13 2013-11-13 NPC processes the method and device of event in games system

Publications (2)

Publication Number Publication Date
CN103577704A true CN103577704A (en) 2014-02-12
CN103577704B CN103577704B (en) 2017-06-20

Family

ID=50049468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310565661.4A Active CN103577704B (en) 2013-11-13 2013-11-13 NPC processes the method and device of event in games system

Country Status (1)

Country Link
CN (1) CN103577704B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106621334A (en) * 2016-09-27 2017-05-10 网易(杭州)网络有限公司 Control method and device of non-player-controlled character
CN107096229A (en) * 2017-05-10 2017-08-29 王东 Information processing method and correlation technique, system, equipment
CN107308639A (en) * 2017-06-16 2017-11-03 苏州蜗牛数字科技股份有限公司 Method interactive between player and intelligent carrier is realized in a kind of VR game
CN107537156A (en) * 2017-08-28 2018-01-05 深圳市乐易网络股份有限公司 Non-player role method for refreshing, device and server
CN108228251A (en) * 2017-11-23 2018-06-29 腾讯科技(上海)有限公司 The method and apparatus of control targe object in game application
CN108549486A (en) * 2018-04-11 2018-09-18 腾讯科技(深圳)有限公司 The method and device of explanation is realized in virtual scene
CN109646959A (en) * 2018-12-05 2019-04-19 深圳市迷你玩科技有限公司 Method and relevant device based on state machine management non-player role NPC
CN111714894A (en) * 2020-06-08 2020-09-29 咪咕互动娱乐有限公司 Game data acquisition method and device, electronic equipment and storage medium
CN113440839A (en) * 2021-07-19 2021-09-28 网易(杭州)网络有限公司 Method, device, equipment and storage medium for controlling non-player game role

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1462963A (en) * 2002-05-29 2003-12-24 明日工作室股份有限公司 Method and system for creating contents of computer games
US7461382B2 (en) * 2002-09-30 2008-12-02 Sap Ag Event handling with action instances for event-driven software application
CN102736940A (en) * 2012-06-21 2012-10-17 北京像素软件科技股份有限公司 Resource loading method
CN102985142A (en) * 2010-07-26 2013-03-20 史克威尔·艾尼克斯股份有限公司 Server, game device, and program executed by said server
CN103116685A (en) * 2011-11-17 2013-05-22 苏州蜗牛数字科技股份有限公司 Interaction method of game player and non-player character (NPC) in network games

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1462963A (en) * 2002-05-29 2003-12-24 明日工作室股份有限公司 Method and system for creating contents of computer games
US7461382B2 (en) * 2002-09-30 2008-12-02 Sap Ag Event handling with action instances for event-driven software application
CN102985142A (en) * 2010-07-26 2013-03-20 史克威尔·艾尼克斯股份有限公司 Server, game device, and program executed by said server
CN103116685A (en) * 2011-11-17 2013-05-22 苏州蜗牛数字科技股份有限公司 Interaction method of game player and non-player character (NPC) in network games
CN102736940A (en) * 2012-06-21 2012-10-17 北京像素软件科技股份有限公司 Resource loading method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106621334A (en) * 2016-09-27 2017-05-10 网易(杭州)网络有限公司 Control method and device of non-player-controlled character
CN106621334B (en) * 2016-09-27 2020-03-20 网易(杭州)网络有限公司 Method and device for controlling non-player control role
CN107096229B (en) * 2017-05-10 2021-02-19 王东 Information processing method and related method, system and equipment
CN107096229A (en) * 2017-05-10 2017-08-29 王东 Information processing method and correlation technique, system, equipment
CN107308639A (en) * 2017-06-16 2017-11-03 苏州蜗牛数字科技股份有限公司 Method interactive between player and intelligent carrier is realized in a kind of VR game
CN107537156A (en) * 2017-08-28 2018-01-05 深圳市乐易网络股份有限公司 Non-player role method for refreshing, device and server
CN107537156B (en) * 2017-08-28 2020-07-14 深圳市乐易网络股份有限公司 Non-player character refreshing method and device and server
CN108228251A (en) * 2017-11-23 2018-06-29 腾讯科技(上海)有限公司 The method and apparatus of control targe object in game application
CN108228251B (en) * 2017-11-23 2021-08-27 腾讯科技(上海)有限公司 Method and device for controlling target object in game application
CN108549486A (en) * 2018-04-11 2018-09-18 腾讯科技(深圳)有限公司 The method and device of explanation is realized in virtual scene
CN109646959A (en) * 2018-12-05 2019-04-19 深圳市迷你玩科技有限公司 Method and relevant device based on state machine management non-player role NPC
CN109646959B (en) * 2018-12-05 2022-03-08 深圳市迷你玩科技有限公司 Method for managing NPC (non-player character) based on state machine and related equipment
CN111714894A (en) * 2020-06-08 2020-09-29 咪咕互动娱乐有限公司 Game data acquisition method and device, electronic equipment and storage medium
CN113440839A (en) * 2021-07-19 2021-09-28 网易(杭州)网络有限公司 Method, device, equipment and storage medium for controlling non-player game role

Also Published As

Publication number Publication date
CN103577704B (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN103577704A (en) Event handling method and device through NPC in game system
KR102360420B1 (en) Customized models for imitating player gameplay in a video game
CN108463273B (en) Game system for performing path finding of non-player character based on movement history of player
KR101495757B1 (en) Method and apparatus for controlling automatic play of game
CN110782004B (en) Model training method, model calling equipment and readable storage medium
CN107526682B (en) Method, device and equipment for generating AI (Artificial Intelligence) behavior tree of test robot
CN111589166A (en) Interactive task control, intelligent decision model training methods, apparatus, and media
CN112016704A (en) AI model training method, model using method, computer device and storage medium
CN110215710B (en) In-game event determination method and device, electronic equipment and storage medium
KR102244777B1 (en) Method and system for promoting player character of sports game using dualized space
CN108479064A (en) A kind of control method and device of game
CN109731338B (en) Artificial intelligence training method and device in game, storage medium and electronic device
CN113509726B (en) Interaction model training method, device, computer equipment and storage medium
CN109925712A (en) A kind of virtual objects controlled system
CN114404975A (en) Method, device, equipment, storage medium and program product for training decision model
US20230311002A1 (en) Decision model training method and apparatus
US11117059B2 (en) Non-transitory computer readable media, information processing device, and control method
CN114669055A (en) Control method and device based on game running environment, electronic equipment and computer program product
KR20150017016A (en) Method and server for implementing game skill
CN113946604A (en) Staged go teaching method and device, electronic equipment and storage medium
CN111265871A (en) Virtual object control method and device, equipment and storage medium
CN112169339B (en) Customized model for simulating player play in video games
JP2019126714A (en) System, method, and program for providing game
CN117046111B (en) Game skill processing method and related device
JP7146884B2 (en) Video game processing program and video game processing system

Legal Events

Date Code Title Description
C06 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