CN106621334B - Method and device for controlling non-player control role - Google Patents

Method and device for controlling non-player control role Download PDF

Info

Publication number
CN106621334B
CN106621334B CN201610854237.5A CN201610854237A CN106621334B CN 106621334 B CN106621334 B CN 106621334B CN 201610854237 A CN201610854237 A CN 201610854237A CN 106621334 B CN106621334 B CN 106621334B
Authority
CN
China
Prior art keywords
player
action
npc
identifier
identity
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
CN201610854237.5A
Other languages
Chinese (zh)
Other versions
CN106621334A (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 CN201610854237.5A priority Critical patent/CN106621334B/en
Publication of CN106621334A publication Critical patent/CN106621334A/en
Application granted granted Critical
Publication of CN106621334B publication Critical patent/CN106621334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories

Abstract

The embodiment of the invention provides a method for controlling a non-player-controlled character. The method comprises the following steps: receiving a control instruction aiming at the appointed NPC sent by the appointed player, and determining a master player corresponding to the appointed player, wherein the instruction carries an action identifier of the appointed player, an identity identifier of the appointed player and an identifier of the appointed NPC; according to the action identifier of the player, the identity identifier of the player and the action identifier of the appointed NPC, which are preset by the master player, of the player, the action identifier of the player and the action identifier of the appointed NPC, which are corresponding to the identity identifier of the appointed player, are searched; and controlling the appointed NPC to execute the action corresponding to the found action identifier of the appointed NPC. The invention can expand the function of the NPC and improve the interactivity and the interestingness of the player and the NPC, and in addition, the embodiment of the invention provides a control device for controlling the role by the non-player.

Description

Method and device for controlling non-player control role
Technical Field
The embodiment of the invention relates to the technical field of online games, in particular to a method and a device for controlling a non-player-controlled character.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
The purpose of the online game is to build a virtual world in which the characters controlled by the players live. In addition to player-controlled characters, there are various NPCs (Non-player-controlled characters) in the virtual world, and the main functions of these NPCs in network games are to provide some functional windows for network games, including shops, tasks, repairs, manufacturing, etc., and to set up game atmosphere. Such as: the NPC may include a salesperson in the store, monsters in the game, fairies or other ornamentation, etc. that the salesperson in the store takes when the player-controlled character enters the store.
The action of the NPC in the current network game is preset by the network game operator, and the player can not make the NPC generate the action except the preset action according to the preference of the player, thereby expanding the function of the NPC. Therefore, the current NPC function is single and has poor interactivity with the player.
Disclosure of Invention
In view of the problem that the NPC function in the prior art is single and the interactivity with the player is poor, the invention provides a control method and a control device for a non-player control role, so as to expand the NPC function and improve the interactivity between the player and the NPC.
In this context, embodiments of the present invention are intended to provide a method and apparatus for controlling a non-player controlled character.
In a first aspect of embodiments of the present invention, there is provided a method of controlling a non-player-controlled character, comprising:
receiving a control instruction aiming at a NPC (non-player control character) sent by a specified player, and determining a master player corresponding to the specified player, wherein the instruction carries an action identifier of the specified player, an identity identifier of the specified player and an identifier of the NPC;
according to the action identifier of the player, the identity identifier of the player and the action identifier of the designated NPC, which are preset by the master player and correspond to the identifier of the designated NPC, the action identifier of the designated player and the action identifier of the designated NPC, which corresponds to the identity identifier of the designated player, are searched;
and controlling the appointed NPC to execute the action corresponding to the found action identification of the appointed NPC.
In a second aspect of an embodiment of the present invention, there is provided a control apparatus for a non-player-controlled character, including:
the instruction receiving module is used for receiving a control instruction which is sent by a specified player and aims at a specified non-player control role NPC, and determining a master player corresponding to the specified player, wherein the instruction carries an action identifier of the specified player, an identity identifier of the specified player and an identifier of the specified NPC;
the first searching module is used for searching the action identifier of the specified player and the action identifier of the specified NPC corresponding to the identity of the specified player according to the action identifier of the player, the identity identifier of the player and the action identifier of the specified NPC which are preset by the master player;
and the control module is used for controlling the appointed NPC to execute the action corresponding to the found action identifier of the appointed NPC.
In a third aspect of embodiments of the present invention, there is provided a control device of a non-player control system, which may include, for example, a memory and a processor, wherein the processor may be configured to read a program in the memory and execute the following processes:
receiving a control instruction aiming at a NPC (non-player control character) sent by a specified player, and determining a master player corresponding to the specified player, wherein the instruction carries an action identifier of the specified player, an identity identifier of the specified player and an identifier of the NPC;
according to the action identifier of the player, the identity identifier of the player and the action identifier of the designated NPC, which are preset by the master player and correspond to the identifier of the designated NPC, the action identifier of the designated player and the action identifier of the designated NPC, which corresponds to the identity identifier of the designated player, are searched;
and controlling the appointed NPC to execute the action corresponding to the found action identification of the appointed NPC.
In a fourth aspect of embodiments of the present invention, there is provided a program product comprising program code for performing, when the program product is run, the following:
receiving a control instruction aiming at a NPC (non-player control character) sent by a specified player, and determining a master player corresponding to the specified player, wherein the instruction carries an action identifier of the specified player, an identity identifier of the specified player and an identifier of the NPC;
according to the action identifier of the player, the identity identifier of the player and the action identifier of the designated NPC, which are preset by the master player and correspond to the identifier of the designated NPC, the action identifier of the designated player and the action identifier of the designated NPC, which corresponds to the identity identifier of the designated player, are searched;
and controlling the appointed NPC to execute the action corresponding to the found action identification of the appointed NPC.
According to the control method and the control device of the non-player control character, the corresponding NPC is controlled to execute the action configured in advance by the master player according to the corresponding relation between the action of the player configured in advance by the master player and the NPC action and the control instruction from the player, so that the player can control the NPC to make the corresponding action according to the preference of the player, the function of the NPC is expanded, and the interactivity and the interestingness of the player and the NPC are improved.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates an application scenario according to an embodiment of the present invention;
FIG. 2 schematically illustrates a flow diagram of a method of controlling a non-player controlled character in accordance with an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a method for determining an action ID of a player corresponding to an ID of a designated NPC, an ID of the player, and an action ID of the designated NPC according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a method for pre-configuring a correspondence relationship between an identifier of an NPC, an action identifier of a player, an identity identifier of a player, and an action identifier of an NPC according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart illustrating a method for finding an action ID of a specific player and an action ID of a specific NPC corresponding to the action ID of the specific player according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart illustrating a method for finding an action ID of a specific player and an action ID of a specific NPC corresponding to the action ID of the specific player according to another embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating the structure of a control device for a non-player controlled character according to an embodiment of the present invention;
FIG. 8 is a schematic view showing the construction of a control apparatus for a non-player-controlled character according to another embodiment of the present invention;
fig. 9 schematically shows a program product diagram of a control method for a non-player controlled character according to still another embodiment of the present invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, a method and a device for controlling a non-player-controlled character are provided.
In this context, it is to be understood that, in the terms referred to:
NPC: the non-player-controlled character in the game is a character which is controlled by artificial intelligence of a computer and is not controlled by a player.
The master player: organizers of activities in the game, such as: an organizer of a team or a creator of a room in a game, etc.
Moreover, any number of elements in the drawings are by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventor finds that the actions of the NPC in the current online game are all scheduled in advance by an online game operator, and the player can not make the NPC generate the actions other than the scheduled actions according to the preference of the player, thereby expanding the functions of the NPC. Therefore, the current NPC function is single and has poor interactivity with the player.
To this end, the present invention provides a method and apparatus for controlling a non-player-controlled character, the method may include: receiving a control instruction aiming at a NPC (non-player control character) sent by a specified player, and determining a master player corresponding to the specified player, wherein the instruction carries an action identifier of the specified player, an identity identifier of the specified player and an identifier of the NPC; according to the action identifier of the player, the identity identifier of the player and the action identifier of the designated NPC, which are preset by the master player and correspond to the identifier of the designated NPC, the action identifier of the designated player and the action identifier of the designated NPC, which corresponds to the identity identifier of the designated player, are searched; and controlling the appointed NPC to execute the action corresponding to the found action identification of the appointed NPC.
The invention controls the corresponding NPC to execute the action configured in advance by the master player according to the corresponding relation between the action of the player and the NPC action configured in advance by the master player and the control instruction from the player, thereby enabling the player to control the NPC to make the corresponding action according to the preference of the player, expanding the function of the NPC and improving the interactivity and the interestingness of the player and the NPC.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scenariosOverview
Referring to fig. 1, as shown in fig. 1, an application scenario diagram of a method for controlling a non-player-controlled character according to an embodiment of the present invention includes: the method comprises the following steps that a user terminal 101, a user 10 and a server 102 are provided, wherein the user 10 installs a corresponding game client in the user terminal 101, the user 10 controls a player in a game in the user terminal 101 to execute a corresponding action, the server 102 receives a control instruction aiming at a designated non-player-controlled character NPC sent by a designated player and determines a master player corresponding to the designated player, and the instruction carries an action identifier of the designated player, an identity identifier of the designated player and an identifier of the designated NPC; according to the action identifier of the player, the identity identifier of the player and the action identifier of the designated NPC, which are preset by the master player and correspond to the identifier of the designated NPC, the action identifier of the designated player and the action identifier of the designated NPC, which corresponds to the identity identifier of the designated player, are searched; and controlling the appointed NPC to execute the action corresponding to the found action identification of the appointed NPC.
Exemplary method
A method of controlling a non-player controlled character according to an exemplary embodiment of the present invention will be described with reference to fig. 2 to 6. It should be noted that the embodiments of the present invention can be applied to any applicable scenarios.
Fig. 2 is a schematic flowchart of an embodiment of a method for controlling a non-player-controlled character according to the present invention, which mainly includes a process for controlling a non-player-controlled character, as shown in fig. 2, the method for controlling a non-player-controlled character according to the embodiment of the present invention includes the following steps:
step 201, receiving a control instruction for a designated non-player controlled character NPC sent by a designated player, and determining a master player corresponding to the designated player, where the instruction carries an action identifier of the designated player, an identity identifier of the designated player, and an identifier of the designated NPC.
In this step, the designated player is any player in the game. When a player in the game enters a certain specified area with a certain distance from a certain NPC, or makes a certain specified action or makes a certain specified expression or says a certain idle word near the certain NPC, the control instruction is determined to be sent to the NPC, the network side receives the control instruction which is sent by the player and aims at the NPC of the non-player-controlled character, and the master player corresponding to the player is determined. In a particular gaming environment, the NPC is designated as at least one NPC in the vicinity of the designated player.
Step 202, according to the determined action identifier of the player corresponding to the identifier of the designated NPC, the identity identifier of the player and the action identifier of the designated NPC, which are pre-configured by the master player, the action identifier of the designated player and the action identifier of the designated NPC corresponding to the identity identifier of the designated player are searched.
In this step, the action identifier of the player corresponding to the identifier of the designated NPC, the identity identifier of the player and the action identifier of the designated NPC, which are pre-configured by the master player, are pre-determined, wherein the master player is the master player corresponding to the designated player. The number of the players corresponding to the designated NPC may be one or multiple, and the specific number may be configured by the master player according to requirements, wherein the identity of the player and the action of the player correspond to one action of the designated NPC, the action identifier of the designated NPC is determined according to the identity identifier of the player and the action identifier of the player, and then the action which the designated NPC should feed back is determined according to the determined action identifier of the designated NPC. The actions of the player and the actions of the NPC can be freely set by the host player according to the preference or the game environment.
It should be noted that the action corresponding to the action identifier of the player includes a body action and/or a language action of the player, wherein the body action includes a facial expression and/or an action of other parts of the body, and the language action includes a idle word spoken by the player. In a specific game environment, when a player makes a certain expression and/or says a certain idle word, determining an action identifier corresponding to the expression and/or the idle word made by the player, wherein the corresponding relation between the action identifier of the player and the action of the player is stored in advance. The corresponding action of the action identification of the NPC comprises the limb action and/or the language action of the NPC, wherein the limb action of the NPC comprises the facial expression and/or the action of other parts of the body, and the language action comprises idle words spoken by the NPC.
In one game scenario, the identity of the player corresponding to the identity of the player is a teammate or an enemy, and in another game scenario, the identity of the player corresponding to the identity of the player may be a captain, a team member, or the like.
Step 203, controlling the designated NPC to execute the action corresponding to the found action identifier of the designated NPC.
In specific implementation, when the action identifier of the specified player and the action identifier of the specified NPC corresponding to the identity identifier of the specified player are found, the specified NPC is controlled to execute the found action corresponding to the action identifier of the specified NPC according to the pre-stored corresponding relation between the action identifier of the specified NPC and the NPC action. The manner of controlling the designated NPC to execute the action corresponding to the found action identifier of the designated NPC may refer to the prior art, and will not be described in detail here.
The embodiment provided by fig. 2 controls the corresponding NPC to execute the action pre-configured by the master player according to the corresponding relationship between the action of the player and the NPC action pre-configured by the master player and the control instruction from the player, so that the player can control the NPC to make the corresponding action according to the preference of the player, the function of the NPC is expanded, and the interactivity and the interestingness between the player and the NPC are improved. For example, the NPC is designated as a magic animal in a game scene, when a player with the magic animal touches the magic animal, the magic animal gives out an appetizing expression, and when a player without the magic animal touches the magic animal, the magic animal gives out an aversive expression.
Preferably, the action identifier of the player, the identity identifier of the player and the action identifier of the designated NPC, which are pre-configured by the master player, are determined according to the content provided in fig. 3:
step 301, searching the identifier of the designated NPC from the corresponding relationship between the identifier of the NPC, the action identifier of the player, the identity identifier of the player, and the action identifier of the NPC, which is configured in advance by the master player, wherein the player in the corresponding relationship is the player configured in advance by the master player.
In specific implementation, a corresponding relationship between the NPC identifier, the player action identifier, the player identity identifier, and the NPC action identifier, which are pre-configured by the master player, is pre-stored, wherein one master player may pre-configure a plurality of NPCs, and therefore, according to the identifier of the specified NPC, the identifier of the specified NPC is searched from the corresponding relationship, so as to further search the player action identifier, the player identity identifier, and the action identifier of the specified NPC, which correspond to the identifier of the specified NPC.
Before step 301, the corresponding relationship among the NPC id, the player motion id, the player id, and the NPC motion id pre-configured by the master player corresponding to the designated player is determined from the pre-stored corresponding relationship among the NPC id, the player motion id, the player id, and the NPC motion id pre-configured by each master player.
Step 302, when the identifier of the designated NPC is found, extracting the action identifier of the player, the identity identifier of the player and the action identifier of the designated NPC corresponding to the identifier of the designated NPC.
In specific implementation, when the identifier of the designated NPC is found, the action identifier of the player corresponding to the identifier of the designated NPC, the identity identifier of the player, and the action identifier of the designated NPC are extracted from the corresponding relationship in step 301. When the identifier of the appointed NPC is not found, determining that the host player does not configure the appointed NPC in advance, finding the action identifier of the player and the action of the appointed NPC corresponding to the identity identifier of the player from the default configuration of the game, and controlling the appointed NPC to execute the action of the appointed NPC set by the default configuration of the game.
Preferably, the correspondence relationship between the identifier of the NPC, the action identifier of the player, the identity identifier of the player, and the action identifier of the NPC may be configured in advance according to the content provided in fig. 4:
step 401, receiving the identification of the NPC, the action of the player, the identity of the player and the action of the NPC input by the master player through the NPC control interface.
Step 402, generating the action identifier of the player corresponding to the action of the player input by the master player, the identity identifier of the player corresponding to the identity of the player, and the action identifier of the NPC corresponding to the action of the NPC.
Step 403, storing the corresponding relationship between the NPC identifier, the player's action identifier, the player's identity identifier and the NPC action identifier.
In particular implementations, the host player is provided with an NPC control interface through which the host player can input an identification of the NPC, an action of the player, an identity of the player, and an action of the NPC. And generating a player action identifier corresponding to the player action input by the master player, a player identity identifier corresponding to the player identity and an NPC action identifier corresponding to the NPC action. For example, the action identifier of the player may be composed of an action identifier and an identifier of the master player, so as to distinguish different actions of players configured by different master players, and the action identifier of the NPC may be composed of an identifier of the NPC, an action identifier and an identifier of the master player, so as to distinguish different actions of different NPCs configured by different master players. Of course, the action id of the player may be in other manners as long as it can distinguish different actions of players configured by different master players, and similarly, the action id of the NPC may also be in other manners as long as it can distinguish different actions of different NPCs configured by different master players.
Preferably, the searching for the action identifier of the specified player and the action identifier of the specified NPC corresponding to the identity identifier of the specified player may be performed according to the content provided in fig. 5, and includes:
step 501, the identity of the player corresponding to the action identity of the specified player is searched.
Step 502, searching the identity of the specified player from the identity of the player corresponding to the found action identifier of the specified player.
Step 503, when the identification of the specified player is found, determining the action identification of the specified NPC corresponding to the found identification of the specified player.
The example provided in fig. 5 is only a preferred implementation manner, and the finding of the action identifier of the specified player and the action identifier of the specified NPC corresponding to the identity identifier of the specified player may also be according to the content provided in fig. 6, where the finding includes:
step 601, finding the action identifier of the player corresponding to the identity identifier of the specified player.
Step 602, finding the action identifier of the specified player from the action identifiers of the players corresponding to the found identity identifier of the specified player.
Step 603, when the action identifier of the specified player is found, determining the action identifier of the specified NPC corresponding to the found action identifier of the specified player.
According to the contents provided in fig. 5 and fig. 6, the action identifier of the designated player and the action identifier of the designated NPC corresponding to the identity of the designated NPC, which are pre-configured by the determined master player, can be searched in the action identifier of the player, the identity of the player and the action identifier of the designated NPC, which are pre-configured by the determined master player, and then the designated NPC is controlled to execute the corresponding action according to the searched action identifier of the designated NPC.
Exemplary device
Having described the method of controlling a non-player-controlled character according to an exemplary embodiment of the present invention, a control apparatus for a non-player-controlled character according to an exemplary embodiment of the present invention will be described with reference to fig. 7.
Fig. 7 is a schematic structural diagram of a control device for a non-player-controlled character according to an embodiment of the present invention, as shown in fig. 7, the control device may include the following modules:
an instruction receiving module 701, configured to receive a control instruction, which is sent by a specified player and is directed to a specified non-player controlled character NPC, and determine a master player corresponding to the specified player, where the instruction carries an action identifier of the specified player, an identity identifier of the specified player, and an identifier of the specified NPC;
a first searching module 702, configured to search, according to the action identifier of the player, the identity identifier of the player, and the action identifier of the designated NPC, which are pre-configured by the master player, an action identifier of the designated player and an action identifier of the designated NPC, which correspond to the identity identifier of the designated player;
a control module 703, configured to control the specified NPC to execute the action corresponding to the found action identifier of the specified NPC.
Preferably, the control apparatus for a non-player-controlled character according to an embodiment of the present invention further includes:
a second searching module 704, configured to search for an identifier of the designated NPC from a correspondence relationship between an identifier of the NPC, an action identifier of the player, an identity identifier of the player, and an action identifier of the NPC, where the player in the correspondence relationship is the player pre-configured by the master player;
the extracting module 705 is configured to extract, when the identifier of the specified NPC is found, the action identifier of the player, the identity identifier of the player, and the action identifier of the specified NPC, which correspond to the identifier of the specified NPC.
Preferably, the control apparatus for a non-player-controlled character according to an embodiment of the present invention further includes:
a configuration module 706, configured to pre-configure a correspondence relationship between the identifier of the NPC, the action identifier of the player, the identity identifier of the player, and the action identifier of the NPC in the following manner:
receiving the NPC identification, the player action, the player identity and the NPC action input by the master player through the NPC control interface;
generating a player action identifier corresponding to the player action input by the host player, a player identity identifier corresponding to the player identity and an NPC action identifier corresponding to the NPC action;
and storing the corresponding relation among the NPC identification, the player action identification, the player identity identification and the NPC action identification.
Preferably, the first lookup module 702 includes:
a first searching unit 7021, configured to search for an identity of a player corresponding to the action identifier of the specified player;
a second searching unit 7022, configured to search for the identifier of the specified player from the identifiers of the players corresponding to the found action identifier of the specified player;
a determining unit 7023, configured to determine, when the identifier of the specified player is found, the action identifier of the specified NPC corresponding to the found identifier of the specified player.
Preferably, the action identification corresponding action of the player comprises a body action and/or a language action of the player, and the action identification corresponding action of the NPC comprises a body action and/or a language action of the NPC.
Preferably, the identity of the player corresponding to the player identity is a teammate or an enemy.
Exemplary device
Having described the method and apparatus for controlling a non-player-controlled character according to an exemplary embodiment of the present invention, next, a control apparatus for a non-player-controlled character according to another exemplary embodiment of the present invention will be described.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, a control device of a non-player controlled character according to the present invention may include at least one processing unit, and at least one memory unit. Wherein the storage unit stores program code that, when executed by the processing unit, causes the processing unit to perform the steps in the method of controlling a non-player-controlled character according to various exemplary embodiments of the present invention described in the above-mentioned "exemplary methods" section of this specification. For example, the processing unit may execute step 201 shown in fig. 2, to receive a control instruction for a designated non-player controlled character NPC sent by a designated player, and determine a master player corresponding to the designated player, where the instruction carries an action identifier of the designated player, an identity identifier of the designated player, and an identifier of the designated NPC, step 202, according to the action identifier of the player, the identity identifier of the player, and the action identifier of the designated NPC, which are pre-configured by the master player, finds an action identifier of the designated player and an action identifier of the designated NPC corresponding to the identity identifier of the designated player, step 203, controls the designated NPC to execute an action corresponding to the found action identifier of the designated NPC.
The control device 80 of the non-player-controlled character according to this embodiment of the present invention is described below with reference to fig. 8. The control device 80 for a non-player controlled character shown in fig. 8 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 8, the control means 80 for the non-player controlled character is in the form of a general purpose computing device. Components of the control device 80 of the non-player controlled character may include, but are not limited to: the at least one processing unit 801, the at least one memory unit 802, and a bus 803 that couples various system components including the processing unit 801 and the memory unit 802.
Bus 803 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The storage unit 802 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)8021 and/or cache memory 8022, and may further include Read Only Memory (ROM) 8023.
Storage unit 802 can also include a program/utility 8025 having a set (at least one) of program modules 8024, such program modules 8024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The non-player character's control apparatus 80 can also communicate with one or more external devices 804 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with the non-player character's control apparatus 80, and/or with any devices (e.g., router, modem, etc.) that enable the non-player character's control apparatus 80 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interfaces 805. Also, the control devices 80 of the non-player controlled character may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 806. As shown in fig. 8, the network adapter 806 communicates with the other modules of the device 80 for control of non-player controlled characters over the bus 803. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the non-player character control device 80, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Exemplary program product
In some possible embodiments, various aspects of the method for controlling a non-player-controlled character provided by the present invention can also be implemented in the form of a program product including program code for causing a computer device to execute the steps of the method for controlling a non-player-controlled character according to various exemplary embodiments of the present invention described in the above-mentioned "exemplary method" section of this specification when the program product runs on the computer device, for example, the computer device can execute the steps of receiving a control instruction for a specific non-player-controlled character NPC sent by a specific player and determining a master player corresponding to the specific player, the instruction carrying therein an action identifier of the specific player, an identity identifier of the specific player and an identifier of the specific NPC, as shown in step 201 in fig. 2, and step 202 determines the action identifier of the player corresponding to the identifier of the specific NPC, which is pre-configured by the determined master player owner of the specific NPC Making an identifier, an identity identifier of a player and an action identifier of a designated NPC, searching the action identifier of the designated player and the action identifier of the designated NPC corresponding to the identity identifier of the designated player, and controlling the designated NPC to execute the action corresponding to the searched action identifier of the designated NPC in step 203.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As shown in fig. 9, a program product 90 for controlling a non-player controlled character according to an embodiment of the present invention is described, which can employ a portable compact disc read only memory (CD-ROM) and include program code, and can be run on a terminal device. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device over any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., over the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the invention. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (14)

1. A method of controlling a non-player controlled character, comprising:
receiving a control instruction aiming at a NPC (non-player control character) sent by a specified player, and determining a master player corresponding to the specified player, wherein the instruction carries an action identifier of the specified player, an identity identifier of the specified player and an identifier of the NPC;
according to the action identifier of the player, the identity identifier of the player and the action identifier of the designated NPC, which are preset by the master player and correspond to the identifier of the designated NPC, the action identifier of the designated player and the action identifier of the designated NPC, which corresponds to the identity identifier of the designated player, are searched;
and controlling the appointed NPC to execute the action corresponding to the found action identification of the appointed NPC.
2. The method of claim 1, wherein determining the action identifier of the player, the identity identifier of the player and the action identifier of the designated NPC corresponding to the identifier of the designated NPC pre-configured by the master player comprises:
searching the identifier of the appointed NPC from the corresponding relation among the identifier of the NPC, the action identifier of the player, the identity identifier of the player and the action identifier of the NPC, which is configured by the master player in advance, wherein the player in the corresponding relation is the player configured by the master player in advance;
and when the identification of the appointed NPC is found, extracting the action identification of the player, the identity identification of the player and the action identification of the appointed NPC corresponding to the identification of the appointed NPC.
3. The method of claim 2, wherein the correspondence of the NPC identifier, the player's action identifier, the player's identity identifier, and the NPC action identifier is preconfigured as follows:
receiving the NPC identification, the player action, the player identity and the NPC action input by the master player through the NPC control interface;
generating a player action identifier corresponding to the player action input by the host player, a player identity identifier corresponding to the player identity and an NPC action identifier corresponding to the NPC action;
and storing the corresponding relation among the NPC identification, the player action identification, the player identity identification and the NPC action identification.
4. The method of claim 1, the action identification of the player corresponding action comprising a limb action and/or a language action of the player, the action identification of the NPC corresponding action comprising a limb action and/or a language action of the NPC.
5. The method of claim 1, wherein finding the action id of the specified player and the action id of the specified NPC corresponding to the action id of the specified player comprises:
searching for the identity of the player corresponding to the action identifier of the specified player;
searching the identity of the specified player from the identity of the player corresponding to the searched action identity of the specified player;
and when the identity of the appointed player is found, determining the action identifier of the appointed NPC corresponding to the found identity of the appointed player.
6. The method of any of claims 1-5, wherein the identity of the player is a teammate or an enemy.
7. A control apparatus for a non-player controlled character, comprising:
the instruction receiving module is used for receiving a control instruction which is sent by a specified player and aims at a specified non-player control role NPC, and determining a master player corresponding to the specified player, wherein the instruction carries an action identifier of the specified player, an identity identifier of the specified player and an identifier of the specified NPC;
the first searching module is used for searching the action identifier of the specified player and the action identifier of the specified NPC corresponding to the identity of the specified player according to the action identifier of the player, the identity identifier of the player and the action identifier of the specified NPC which are preset by the master player;
and the control module is used for controlling the appointed NPC to execute the action corresponding to the found action identifier of the appointed NPC.
8. The apparatus of claim 7, further comprising:
the second searching module is used for searching the identifier of the appointed NPC from the corresponding relation among the identifier of the NPC, the action identifier of the player, the identity identifier of the player and the action identifier of the NPC, which are configured by the master player in advance, wherein the player in the corresponding relation is the player configured by the master player in advance;
and the extracting module is used for extracting the action identifier of the player, the identity identifier of the player and the action identifier of the appointed NPC corresponding to the identifier of the appointed NPC when the identifier of the appointed NPC is found.
9. The apparatus of claim 8, further comprising:
the configuration module is used for pre-configuring the corresponding relation among the NPC identifier, the player action identifier, the player identity identifier and the NPC action identifier in the following modes:
receiving the NPC identification, the player action, the player identity and the NPC action input by the master player through the NPC control interface;
generating a player action identifier corresponding to the player action input by the host player, a player identity identifier corresponding to the player identity and an NPC action identifier corresponding to the NPC action;
and storing the corresponding relation among the NPC identification, the player action identification, the player identity identification and the NPC action identification.
10. The apparatus of claim 7, wherein the first lookup module comprises:
the first searching unit is used for searching the identity of the player corresponding to the action identifier of the specified player;
the second searching unit is used for searching the identity of the specified player from the identity of the player corresponding to the searched action identifier of the specified player;
and the determining unit is used for determining the action identifier of the appointed NPC corresponding to the searched identity identifier of the appointed player when the identity identifier of the appointed player is searched.
11. The apparatus of claim 7, the action identification of the player corresponding action comprising a limb action and/or a language action of the player, the action identification of the NPC corresponding action comprising a limb action and/or a language action of the NPC.
12. The apparatus of any of claims 7-11, wherein the identity of the player is a teammate or an enemy.
13. A control device for a non-player controlled character, comprising at least one processing unit, and at least one memory unit, wherein the memory unit stores program code which, when executed by the processing unit, causes the processing unit to carry out the steps of the method of any of claims 1-6.
14. A computer storage medium comprising program code means for causing a computer device to carry out the steps of the method as claimed in any one of claims 1-6 when said computer storage medium is run on said computer device.
CN201610854237.5A 2016-09-27 2016-09-27 Method and device for controlling non-player control role Active CN106621334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610854237.5A CN106621334B (en) 2016-09-27 2016-09-27 Method and device for controlling non-player control role

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610854237.5A CN106621334B (en) 2016-09-27 2016-09-27 Method and device for controlling non-player control role

Publications (2)

Publication Number Publication Date
CN106621334A CN106621334A (en) 2017-05-10
CN106621334B true CN106621334B (en) 2020-03-20

Family

ID=58853267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610854237.5A Active CN106621334B (en) 2016-09-27 2016-09-27 Method and device for controlling non-player control role

Country Status (1)

Country Link
CN (1) CN106621334B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112774200B (en) * 2021-01-22 2023-05-09 北京字跳网络技术有限公司 Character interaction control method, character interaction control device, computer equipment and storage medium
CN113577781B (en) * 2021-07-30 2023-06-16 腾讯科技(深圳)有限公司 Non-player character NPC control method, device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1945587A (en) * 2006-10-27 2007-04-11 北京金山软件有限公司 Method and system for realizing player riding public transportation means in network game
CN102629302A (en) * 2012-04-22 2012-08-08 盛绩信息技术(上海)有限公司 Method and system for establishing self-initiated games
CN102810061A (en) * 2012-05-18 2012-12-05 北京像素软件科技股份有限公司 Method for editing non-player-controlled character
CN103116685A (en) * 2011-11-17 2013-05-22 苏州蜗牛数字科技股份有限公司 Interaction method of game player and non-player character (NPC) in network games
KR20130082838A (en) * 2011-12-20 2013-07-22 주식회사 엔씨소프트 Method for changing the information of npc in on-line game
CN103577704A (en) * 2013-11-13 2014-02-12 北京像素软件科技股份有限公司 Event handling method and device through NPC in game system
CN104225918A (en) * 2013-06-06 2014-12-24 苏州蜗牛数字科技股份有限公司 NPC autonomous feedback interaction method based on online games
CN105561578A (en) * 2015-12-11 2016-05-11 北京像素软件科技股份有限公司 NPC behavior decision method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1945587A (en) * 2006-10-27 2007-04-11 北京金山软件有限公司 Method and system for realizing player riding public transportation means in network game
CN103116685A (en) * 2011-11-17 2013-05-22 苏州蜗牛数字科技股份有限公司 Interaction method of game player and non-player character (NPC) in network games
KR20130082838A (en) * 2011-12-20 2013-07-22 주식회사 엔씨소프트 Method for changing the information of npc in on-line game
CN102629302A (en) * 2012-04-22 2012-08-08 盛绩信息技术(上海)有限公司 Method and system for establishing self-initiated games
CN102810061A (en) * 2012-05-18 2012-12-05 北京像素软件科技股份有限公司 Method for editing non-player-controlled character
CN104225918A (en) * 2013-06-06 2014-12-24 苏州蜗牛数字科技股份有限公司 NPC autonomous feedback interaction method based on online games
CN103577704A (en) * 2013-11-13 2014-02-12 北京像素软件科技股份有限公司 Event handling method and device through NPC in game system
CN105561578A (en) * 2015-12-11 2016-05-11 北京像素软件科技股份有限公司 NPC behavior decision method

Also Published As

Publication number Publication date
CN106621334A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
US11413550B2 (en) Method for creating a mini-game
US11724205B2 (en) Suspending state of cloud-based legacy applications
US9898700B2 (en) Method, apparatus, and artificial intelligence server for determining artificial intelligence behavior
US20140004956A1 (en) Adding triggers to cloud-based emulated games
US20200101383A1 (en) Method and apparatus for recognizing game command
CN106621334B (en) Method and device for controlling non-player control role
CN111111201B (en) Skill creation method, device, server and medium based on game
CN111803960B (en) Method and device for starting preset flow
CN110215710B (en) In-game event determination method and device, electronic equipment and storage medium
CN108701045A (en) Client operating system screenshot method and device in computer equipment
US20210271470A1 (en) Videogame patch data compilation system
US20220233954A1 (en) System and methods for generating a platform-agnostic game shortcut to launch a game for cloud gaming
CN114240157B (en) Robot scheduling method, system, equipment and storage medium
CN110227255A (en) Interaction control method, device and the electronic equipment of virtual container in VR game
CN113315831B (en) Cloud game playing method, device, equipment and storage medium
US11400380B2 (en) Information processing apparatus and download processing method
CN107515720A (en) A kind of message treatment method, medium, device and computing device
CN110141858B (en) Display control method and device for jumping characters in game, storage medium and electronic equipment
CN110764670A (en) Method and device for processing name information of virtual object, medium and electronic equipment
CN108875363A (en) A kind of method, apparatus, electronic equipment and storage medium accelerating virtual execution
CN109947561B (en) Virtual scene processing method and device and storage medium
WO2023226569A9 (en) Message processing method and apparatus in virtual scenario, and electronic device, computer-readable storage medium and computer program product
KR102131000B1 (en) Method and apparatus for inscreasing the efficiency of a coding system using a plurlity of compiler
KR20210101680A (en) Game Writing Editor Capable of Writing Mobile Game Supporting Score Competition Mode
EP4337352A1 (en) Game controller mobile bridge

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