CN103116685B - Player and NPC interactive approach in online game - Google Patents

Player and NPC interactive approach in online game Download PDF

Info

Publication number
CN103116685B
CN103116685B CN201110364302.3A CN201110364302A CN103116685B CN 103116685 B CN103116685 B CN 103116685B CN 201110364302 A CN201110364302 A CN 201110364302A CN 103116685 B CN103116685 B CN 103116685B
Authority
CN
China
Prior art keywords
npc
player
behavior
data
message code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110364302.3A
Other languages
Chinese (zh)
Other versions
CN103116685A (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.)
Suzhou Snail Digital Technology Co Ltd
Original Assignee
Suzhou Snail Digital 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 Suzhou Snail Digital Technology Co Ltd filed Critical Suzhou Snail Digital Technology Co Ltd
Priority to CN201110364302.3A priority Critical patent/CN103116685B/en
Publication of CN103116685A publication Critical patent/CN103116685A/en
Application granted granted Critical
Publication of CN103116685B publication Critical patent/CN103116685B/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 relates to player and NPC interactive approach in a kind of online game, its special feature is to comprise the following steps: first, and identify the behavior of player, special message code is translated in the behavior of system registry being crossed.Afterwards, message code is sent to NPC respond module.Then, make NPC receive the message code sended over, resolve according to rule module, produce data response.Then, storage and management is carried out to the data produced after the response of NPC data, data is decayed and deletes.Finally, by NPC behavior feedback module, NPC is made to make different reactions.By player constantly and NPC carry out interaction, can in the world outlook of game a formation resentment system, the moment is affected NPC and judges the interaction of player by the behavior of player.Thus, improve the interactive degree of game, all life-giving to the NPC in online game, make it in gaming world, have more issue handling and adaptability to changes.

Description

Player and NPC interactive approach in online game
Technical field
The present invention relates to a kind of NPC exchange method, particularly relate to player and NPC interactive approach in a kind of online game.
Background technology
The object of online game builds a virtual world, allows player institute role live inside.In this virtual world except player institute role, also has NPC(non-player figure miscellaneous), these NPC exist in gaming world, mainly contain two objects: one, for game function provides window, comprise shop, task, repairing, manufacture etc.; Two, the setting off by contrast of gaming world atmosphere.
Traditional network game is because the reason of technology and user's request, and the function of NPC only can meet the demand, the feature that these NPC have some common: the scope of activities of NPC is smaller, can not move freely walking.Further, the logic of NPC is very simple, can not change according to the identity of player or behavior.The function of NPC is very single, can only realize the limited function of prearranging.
Summary of the invention
Object of the present invention is exactly to solve the above-mentioned problems in the prior art, provides player and NPC interactive approach in a kind of online game.
Object of the present invention is achieved through the following technical solutions:
Player and NPC interactive approach in online game, it comprises the following steps: 1. step, adopts Activity recognition and translation module, and identify the behavior of player, special message code is translated in the behavior of system registry being crossed; 2. step, adopts information sending module, after the message code produced filters, message code is sent to NPC respond module according to the behavior of established rule to player; 3. step, by NPC respond module, makes NPC receive the message code sended over, resolves according to rule module, produces data response; 4. step, by NPC data processing module, is carried out storage and management to the data produced after the response of NPC data, is decayed and delete data; 5. step, by NPC behavior feedback module, makes NPC make different reactions to player.
Player and NPC interactive approach in above-mentioned online game, wherein: the step behavior that 1. described system registry is crossed comprises language, the action that player controls personage.
Further, player and NPC interactive approach in above-mentioned online game, wherein: the 2. described established rule of step is, game design is served as master and is first provided which behavior code and can be sent to respond module, these rules are stored with the form of configuration file, after program file reading, according to the instruction of configuration, message code is filtered.The object of this step is extendability and the configurability of increase system.
Further, player and NPC interactive approach in above-mentioned online game, wherein: the 3. described rule module of step is, after NPC receives message code, according to the exclusive configuration of self, message code can be responded, the configuration of different N PC is different, and response mode also can be different.Such as to " fight " this behavior, the operation of some NPC is " fear ", and what have is then " detest ".
Further, player and NPC interactive approach in above-mentioned online game, wherein: the decay that step is 4. described and deletion, for being realized by mathsort method, the data that player and NPC interaction produce, can be recorded in the memory space of NPC, exist with the form of integer, absolute value means that more greatly map is more deep; Often through after a while, games system can allow data in the memory space of NPC all divided by 2, and amnesia is simulated on the basis not changing sequence, as time goes by, these data finally can fail to 1, now trigger deleting mechanism, reach the object removing memory.This memory character " is forgotten " in this functional simulation.
Again further, player and NPC interactive approach in above-mentioned online game, wherein: step 5. NPC make different reactions comprise verbal feedback, action feedback.
The advantage of technical solution of the present invention is mainly reflected in: by player constantly and NPC carry out interaction, can in the world outlook of game a formation resentment system, the moment is affected NPC and judges the interaction of player by the behavior of player.NPC changes in the past set active rule, can move freely walking, change according to the identity of player or behavior, improve the interactive degree of game, all life-giving to the NPC in online game, make it in gaming world, have more issue handling and adaptability to changes.
Object of the present invention, advantage and disadvantage, make an explanation the non-limitative illustration by preferred embodiment below.These embodiments are only the prominent examples of application technical solution of the present invention, allly take equivalent replacement or equivalent transformation and the technical scheme that formed, all drop within the scope of protection of present invention.
Embodiment
Player and NPC interactive approach in online game, its special feature is to comprise the following steps: first, adopts Activity recognition and translation module, and identify the behavior of player, special message code is translated in the behavior of system registry being crossed.Afterwards, adopt information sending module, after the message code produced filters, message code is sent to NPC respond module according to the behavior of established rule to player.Then, by NPC respond module, make NPC receive the message code sended over, resolve according to rule module, produce data response.Then, by NPC data processing module, storage and management is carried out to the data produced after the response of NPC data, data is decayed and deletes.In other words, the interaction feedback of memory to player, adjusts relevant feedback according to the behavior of player simultaneously in time.Finally, by NPC behavior feedback module, NPC is made to make different reactions for the personage that player controls.
With regard to the present invention one preferably embodiment, consider the effective collection to players overall manipulation information, be convenient to follow-up NPC and make the correct mutual-action behavior coincide, the behavior that system registry is crossed comprises language, the action that player controls personage.
Established rule is that game design is served as master and first provided those behavior codes and can be sent to respond module specifically, these rules is stored with the form of configuration file, after program file reading, filters according to the instruction of configuration to message code.The object of this step is extendability and the configurability of increase system.Specific rules be exactly " define in configuration file, which behavior code will be sent out, and send probability ".
Bodily form formula following (configuration is in table form by procedure identification):
" behavior code ",
" whether permit to be passed " (represent license with 1,0 expression disapproves),
" transmission probability " (permitting to come into force when transmitting, filling in number percent),
Above 3 data form 1 row of allocation list, and several rows data form the configuration file of whole rule.
Further, rule module is after NPC receives message code, according to the exclusive configuration of self, can respond message code, and the configuration of different N PC is different, and response mode also can be different.Such as to " fight " this behavior, the operation of some NPC is " fear ", and what have is then " detest ".
When practical application, the respond module rule of NPC is also realized by a configuration file, concrete form following (configuration is in table form by procedure identification):
" behavior code ",
" NPC responds license " (1 represents license, and 0 expression disapproves),
" NPC response mode " (filling in NPC behavior code herein, the action of control NPC),
" NPC numerical value increase and decrease configuration " (filling in the variable value of NPC map parameter herein),
Above 4 data form 1 row of allocation list, and several rows data form the configuration file of whole rule.
Consider the memory character that can realize NPC smoothly, the decay adopted and deletion are specially: realized by mathsort method, the data that player and NPC interaction produce, and can be recorded in the memory space of NPC, exist with the form of integer, absolute value means that more greatly map is more deep.Often through after a while, games system can allow data in the memory space of NPC all divided by 2, and amnesia is simulated on the basis not changing sequence, as time goes by, these data finally can fail to 1, now trigger deleting mechanism, reach the object removing memory.This memory character " is forgotten " in this functional simulation.
Again further, in order to improve game performance, promote interactive link, NPC makes different reactions and comprises verbal feedback, action feedback.
In conjunction with actual service condition of the present invention, player exercises role makes behavior in gaming world, can carry out store and management eventually through NPC data processing module by what resolve.Like this, in the next time of player and NPC is mutual, according to the difference of data, control NPC makes different reactions.Like this, the interaction in time fast of NPC and player is not only achieved.Meanwhile, the memory function of the player's behavior making NPC have.Specifically, be everlasting during the role of such as player exercises and carry out transaction, then can carry out the verbal feedback of transaction-based requirements after NPC runs into player.Or the movement of the role of player exercises meets the noble code of ethics built in game, then the action can saluted after NPC runs into player feedback is accompanied with the verbal feedback of greeting simultaneously.
Can be found out by above-mentioned character express, adopt after the present invention, by player constantly and NPC carry out interaction, can in the world outlook of game a formation resentment system, the moment is affected NPC and judges the interaction of player by the behavior of player.NPC changes in the past set active rule, can move freely walking, change according to the identity of player or behavior, improve the interactive degree of game, all life-giving to the NPC in online game, make it in gaming world, have more issue handling and adaptability to changes.

Claims (1)

1. player and NPC interactive approach in online game, is characterized in that comprising the following steps:
1. step, adopts Activity recognition and translation module, and identify the behavior of player, special message code is translated in the behavior of system registry being crossed, and the behavior that described system registry is crossed comprises language, the action that player controls personage;
Step 2., adopt information sending module, after the message code produced according to the behavior of established rule to player filters, message code is sent to NPC respond module, described established rule is, game design is served as master and first provided which behavior code and can be sent to respond module, these rules is stored with the form of configuration file, after program file reading, according to the instruction of configuration, message code is filtered;
Step 3., by NPC respond module, make NPC receive the message code sended over, resolve according to rule module, produce data response, described rule module is, after NPC receives message code, according to the exclusive configuration of self, message code can be responded, the configuration of different N PC is different, and response mode also can be different;
Step 4., by NPC data processing module, storage and management is carried out to the data produced after the response of NPC data, data are decayed and deletes, described decay and deletion, for passing through mathsort method, by the data that player and NPC interaction produce, be recorded in the memory space of NPC, exist with the form of integer, absolute value means that more greatly map is more deep, often through after a while, games system can allow data in the memory space of NPC all divided by 2, amnesia is simulated on the basis not changing sequence, as time goes by, these data finally can fail to 1, now trigger deleting mechanism, reach the object removing memory,
5. step, by NPC behavior feedback module, makes NPC make different reactions to player, and NPC makes different reactions and comprises verbal feedback, action feedback.
CN201110364302.3A 2011-11-17 2011-11-17 Player and NPC interactive approach in online game Active CN103116685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110364302.3A CN103116685B (en) 2011-11-17 2011-11-17 Player and NPC interactive approach in online game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110364302.3A CN103116685B (en) 2011-11-17 2011-11-17 Player and NPC interactive approach in online game

Publications (2)

Publication Number Publication Date
CN103116685A CN103116685A (en) 2013-05-22
CN103116685B true CN103116685B (en) 2015-08-19

Family

ID=48415058

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110364302.3A Active CN103116685B (en) 2011-11-17 2011-11-17 Player and NPC interactive approach in online game

Country Status (1)

Country Link
CN (1) CN103116685B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104225918A (en) * 2013-06-06 2014-12-24 苏州蜗牛数字科技股份有限公司 NPC autonomous feedback interaction method based on online games
CN103577704B (en) * 2013-11-13 2017-06-20 北京像素软件科技股份有限公司 NPC processes the method and device of event in games system
CN103729435A (en) * 2013-12-27 2014-04-16 北京像素软件科技股份有限公司 Method for cloning player characters in online game
CN104978488B (en) * 2015-06-26 2018-01-12 广州华多网络科技有限公司 The behavior analysis method and device of game role
CN106621334B (en) * 2016-09-27 2020-03-20 网易(杭州)网络有限公司 Method and device for controlling non-player control role
CN109646959B (en) * 2018-12-05 2022-03-08 深圳市迷你玩科技有限公司 Method for managing NPC (non-player character) based on state machine and related equipment
CN113440839A (en) * 2021-07-19 2021-09-28 网易(杭州)网络有限公司 Method, device, equipment and storage medium for controlling non-player game role
CN114681919A (en) * 2022-03-29 2022-07-01 米哈游科技(上海)有限公司 NPC (network processor core) performance method, device, medium and electronic equipment based on NPC mutual behavior influence

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897003A (en) * 2006-04-30 2007-01-17 珠海市西山居软件有限公司 Method and apparatus for interactive action of virtual portrait in game
CN1932828A (en) * 2006-08-08 2007-03-21 北京爱航工业公司 Method and system for limited background interactive game

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1897003A (en) * 2006-04-30 2007-01-17 珠海市西山居软件有限公司 Method and apparatus for interactive action of virtual portrait in game
CN1932828A (en) * 2006-08-08 2007-03-21 北京爱航工业公司 Method and system for limited background interactive game

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种基于Agent的智能游戏平台及其NPC设计;王皓等;《计算机科学》;20080801;第34卷(第9A期);66-69,86 *
浅谈用BDI模型开发智能NPC游戏角色;朱学伟等;《计算机工程与设计》;20070630;第28卷(第11期);2699-2701,2704 *

Also Published As

Publication number Publication date
CN103116685A (en) 2013-05-22

Similar Documents

Publication Publication Date Title
CN103116685B (en) Player and NPC interactive approach in online game
CN103838982B (en) Virtual game object generating method and device
CN110772799B (en) Session message processing method, device and computer readable storage medium
CN103729558A (en) Scene change method
CN109529338A (en) Object control method, apparatus, Electronic Design and computer-readable medium
CN109794065B (en) Game role creating method and device, electronic equipment and storage medium
CN102724182A (en) Recognition method of abnormal client side
CN102646152B (en) A kind of map changing method and system
KR101148114B1 (en) Packet based game npc server, method for providing npc, and game system thereof
CN108310771A (en) The execution method and apparatus of task, storage medium, electronic device
CN101721811A (en) Game input device and game system applying same
CN106861190A (en) AI construction methods and device, game control method and device, AI systems
WO2015078175A1 (en) Method,apparatus,and artificial intelligence server for determining artificial intelligence behavior
CN106572099A (en) Cross-server method and system for network game
CN103475659A (en) Fighting method and system based on real-time strategy game
CN114061047B (en) Method and device for controlling air conditioner and air conditioner
Weber et al. Using automated replay annotation for case-based planning in games
CN105874511B (en) Analog machine
CN111701240B (en) Virtual article prompting method and device, storage medium and electronic device
CN108144301B (en) Virtual object information display method and device, storage medium and electronic device
Khan et al. Optimal Skipping Rates: Training Agents with Fine‐Grained Control Using Deep Reinforcement Learning
CN110659023B (en) Method for generating programming content and related device
CN109999497B (en) Control method and device of virtual object, storage medium and electronic device
CN109189795A (en) A kind of data processing method, device and storage medium
Meisheri et al. Accelerating training in pommerman with imitation and reinforcement learning

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant