NPC behavior data processing method and device, storage medium and computer equipment
Through NPC behavior data processing methods and devices, respond to the interaction between players and NPCs, generate feedback and influence data, and control changes in NPC behavior, solving the problem that NPC daily behavior cannot be affected by players in the existing technology, and improving game experience and interaction Immersive.
Patent Information
- Application Number
- CN202311153395.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-07
- Publication Date
- 2025-01-10
AI Technical Summary
After the NPC interacts with players in existing MMORPG games, the daily behavior of NPCs cannot be affected by player interaction, resulting in a strong sense of separation and lack of immersion in the game experience.
Provide an NPC behavior data processing method and device. Through the interactive judgment module, data generation module and behavior control module, it responds to the interaction between players and NPCs, determines whether it is a daily behavior affecting operation, and generates feedback behavior data and daily behavior affecting data. Control the behavior changes of NPCs so that the daily behavior of NPCs is affected by player interaction.
After the player interacts with the NPC, the NPC not only provides feedback, but also changes their daily behaviors according to the player's operations, enhances the game experience and interactive immersion, and solves the problem of game splitting.
Smart Images

Figure CN119280837A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method and device for processing NPC behavior data, a storage medium, and a computer device. Background Art
[0002] MMORPG (Massive Multiplayer Online Role-Playing Game) often provides players with a more realistic gaming experience by stacking a large number of NPC (non-player character) behaviors, making players feel that the game world is more real and the gaming experience is richer.
[0003] In the prior art, the daily behaviors of game NPCs are either "standing still", that is, playing casual actions randomly in place; or "patrol", that is, performing daily behaviors within a certain range according to a set process. In the NPC strategy gameplay, the NPC will interact with the player in the form of "approaching feedback" during the execution of daily behaviors, but even the strong interaction in the NPC strategy gameplay still cannot allow players to influence the NPC's daily behaviors. Even if the interaction with the NPC is richer, the player who exits the interaction still cannot leave his own mark in the NPC's daily life. The player clearly interacted with the NPC, but after the interaction, the NPC will still perform the daily behavior before interacting with the player. For example, after the NPC received the gift from the player and gave the feedback of "I like it very much and will definitely keep it well", the player searched all places in the NPC's personal activity area and still could not find any trace of "keeping it well".
[0004] In the current NPC strategy gameplay, there is a strong sense of disconnection between the interactive behavior between NPC and players and the NPC's daily behavior after the interaction, which affects the player's gaming experience. Summary of the invention
[0005] In view of this, the present application provides an NPC behavior data processing method and device, storage medium, and computer equipment. After the player character interacts with the game NPC, it not only controls the game NPC to give feedback on this interaction, but also affects the daily behavior of the game NPC, thereby making up for the sense of game fragmentation caused by the existing technical gameplay and enhancing the player's gaming experience and interactive immersion.
[0006] According to one aspect of the present application, a method for processing NPC behavior data is provided, the method comprising:
[0007] In response to an interactive operation of a player character on a game NPC, determining whether the interactive operation belongs to a daily behavior influencing operation corresponding to the game NPC;
[0008] In the case where the interactive operation belongs to the daily behavior influencing operation, based on the interactive operation, determining the feedback behavior data and the daily behavior influencing data corresponding to the game NPC;
[0009] The behavior performed by the game NPC is controlled according to the feedback behavior data and the daily behavior impact data.
[0010] According to another aspect of the present application, there is provided an NPC behavior data processing device, the device comprising:
[0011] An interaction judgment module, for responding to the interaction operation of the player character on the game NPC, determining whether the interaction operation belongs to the daily behavior influence operation corresponding to the game NPC;
[0012] A data generation module, for determining, when the interactive operation belongs to the daily behavior influence operation, feedback behavior data and daily behavior influence data corresponding to the game NPC based on the interactive operation;
[0013] The behavior control module is used to control the behavior performed by the game NPC according to the feedback behavior data and the daily behavior impact data.
[0014] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned NPC behavior data processing method is implemented.
[0015] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned NPC behavior data processing method when executing the program.
[0016] By means of the above technical scheme, the present application provides a method and device for processing NPC behavior data, a storage medium, and a computer device, which predefine daily behavior affecting operations that can have an effect on the daily behavior of the game NPC. When the player character performs a daily behavior affecting operation on the game NPC, the feedback behavior data and daily behavior affecting data of the game NPC are determined according to the operation, so as to control the game NPC to give feedback on the interactive operation according to the feedback behavior data, and control the execution of the daily behavior of the game NPC according to the daily behavior affecting data, so that the daily behavior executed by the game NPC changes before and after the player character interacts with it. After the player character interacts with the game NPC, the present application not only controls the game NPC to give feedback on this interaction, but also affects the daily behavior of the game NPC. Compared with the gameplay in the prior art that the game NPC still performs daily behaviors as before the interaction after the game NPC interacts with the player character, the present application makes up for the sense of game fragmentation caused by the gameplay of the prior art, and enhances the player's game experience and interactive immersion.
[0017] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 A schematic diagram of a process of processing NPC behavior data provided by an embodiment of the present application is shown;
[0020] Figure 2 A schematic diagram showing a flow chart of another NPC behavior data processing method provided in an embodiment of the present application;
[0021] Figure 3 A schematic diagram of the structure of an NPC behavior data processing device provided in an embodiment of the present application is shown;
[0022] Figure 4 A schematic diagram of the device structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0023] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0024] In this embodiment, a method for processing NPC behavior data is provided. Figure 1 As shown, the method includes:
[0025] Step 101, in response to an interactive operation of a player character on a game NPC, determining whether the interactive operation belongs to a daily behavior influencing operation corresponding to the game NPC.
[0026] In the embodiment of the present application, the interactive operation between the player character and the game NPC can not only affect the current behavior of the game NPC, but also affect the daily behavior of the game NPC, so as to solve the problem in the prior art that after the game NPC interacts with the player character, the game NPC still performs its daily behavior as before the interaction, which gives the player a sense of disconnection. The interactive operation between the player character and the game NPC in the game can be divided into ordinary interactive operations that only affect the current behavior of the game NPC, and daily behavior affecting operations that can affect both the current behavior and daily behavior of the game NPC.
[0027] In the process of running the game, when the player character interacts with the game NPC, it is determined whether the interactive operation is a daily behavior affecting operation that can affect the daily behavior of the game NPC. The daily behavior affecting operation may include dialogue interactive operation, game resource transfer operation, behavior interactive operation, etc., which are not limited here.
[0028] Step 102, when the interactive operation belongs to the daily behavior influencing operation, based on the interactive operation, determine the feedback behavior data and daily behavior influencing data corresponding to the game NPC.
[0029] Among them, when it is determined that the player character has an impact on the daily behavior of the game NPC, feedback behavior data used to indicate the current feedback behavior of the game NPC and daily behavior impact data used to guide the daily behavior of the game NPC can be determined based on the player character's interactive operations on the game NPC.
[0030] Step 103: Control the behavior performed by the game NPC based on the feedback behavior data and the daily behavior impact data.
[0031] Among them, feedback behavior data and daily behavior influence data are used to control the behavior of game NPCs, so that the daily behaviors performed by game NPCs will be affected by the daily behavior influence operations generated by the player characters on the game NPCs. In this way, the game NPCs will not only give feedback at the moment when the player characters interact with them (executed based on feedback behavior data), but will also show the influence of the player character's interactive operations in the daily behaviors performed after the interaction ends.
[0032] Optionally, step 103 includes: controlling the game NPC to perform the feedback behavior corresponding to the feedback behavior data, and changing the configuration data of the game NPC based on the daily behavior impact data, so that the game NPC performs daily behavior according to the changed configuration data. After the interactive operation occurs, the feedback behavior data is used to control the game NPC to give the current behavior feedback, and the daily behavior impact data is used to change the configuration data of the game NPC, and the configuration data is used to guide the daily behavior of the game NPC, so that the game NPC will perform daily behavior according to the changed configuration data, that is, the daily behavior of the game NPC will be affected by the interaction with the player character.
[0033] Taking the interactive operation as a game resource transfer operation as an example, step 101 determines whether the interactive operation belongs to the daily behavior influencing operation corresponding to the game NPC, including: if the interactive operation is a game resource transfer operation, then identify the target game resources to be transferred indicated by the game resource transfer operation, and determine whether the target game resources belong to the daily behavior influencing resources corresponding to the game NPC; accordingly, step 102 includes: when the target game resources belong to the daily behavior influencing resources, based on the target game resources, determine the feedback behavior data and daily behavior influencing data corresponding to the game NPC, wherein the daily behavior influencing data includes the influencing effective time and game resource update data, and the game resource update data is used to indicate the replacement of the game resources already existing to the game NPC and / or the addition of game resources that the game NPC does not have.
[0034] Among them, the game resource transfer operation can be a game character giving game resources to a game NPC, or a game character obtaining game resources from a game NPC. The embodiment of the present application only takes the example of a game character giving game resources to a game NPC as an example to illustrate, and other types of interactive operations are also included in the protection scope of the present application, such as dialogue interactive operations, behavioral interactive operations, and game resource transfer operations to snatch game resources from game NPCs. If the interactive operation is a game resource transfer operation, then it can be determined whether the interactive operation is an operation that affects daily behavior by judging whether the target game resource indicated for transfer is a resource that affects daily behavior. For example, a list of resources that affect daily behavior corresponding to game NPCs can be defined, and the list contains all game resource identifiers that can affect the daily behavior of game NPCs. When the game resource identifier in the target game resource name list is determined, it is determined that the target game resource belongs to a resource that affects daily behavior, and the interactive operation is an operation that affects daily behavior.
[0035] Based on this, when the target game resource belongs to a resource that affects daily behavior, feedback behavior data and daily behavior impact data are determined according to the target game resource. In addition, after the player character presents the target game resource to the game NPC, in addition to determining how to affect the daily behavior of the game NPC, a starting time for the impact on daily behavior can be set, which can be effective immediately or at a specific time point. For the scene of gift giving, the way to affect the daily behavior of the game NPC can be reflected by the game resource update data, which is used to indicate the replacement of the game resources already owned by the game NPC, and can also be used to indicate the addition of game resources that the game NPC does not have. For example, when a player presents a game NPC with a resource of the same type that the game NPC already has, the resource of the same type owned by the game NPC can be replaced with the resource newly presented by the player character. When a player presents a game NPC with a resource that the game NPC does not have, the game NPC can own this resource.
[0036] By applying the technical solution of this embodiment, daily behavior influencing operations that can have an effect on the daily behavior of the game NPC are predefined. When the player character performs a daily behavior influencing operation on the game NPC, the feedback behavior data and daily behavior influencing data of the game NPC are determined according to the operation, so as to control the game NPC to give feedback on the interactive operation according to the feedback behavior data, and control the execution of the daily behavior of the game NPC according to the daily behavior influencing data, so that the daily behavior executed by the game NPC changes before and after the player character interacts with it. After the player character interacts with the game NPC, this application not only controls the game NPC to give feedback on this interaction, but also affects the daily behavior of the game NPC. Compared with the gameplay in the prior art that the game NPC still performs daily behaviors as before the interaction after the game NPC interacts with the player character, this application makes up for the sense of game fragmentation caused by the gameplay of the prior art, and enhances the player's game experience and interactive immersion.
[0037] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another NPC behavior data processing method is provided, such as Figure 2 As shown, the method includes:
[0038] Step 201, in response to the interactive operation of the player character on the game NPC, determining whether the interactive operation belongs to the daily behavior influencing operation corresponding to the game NPC.
[0039] Step 202, when the interactive operation belongs to the daily behavior influencing operation, based on the interactive operation, determine the feedback behavior data and daily behavior influencing data corresponding to the game NPC.
[0040] In this embodiment, taking the interactive operation as a game resource transfer operation as an example, the target game resource to be transferred indicated by the game resource transfer operation is determined, and the feedback behavior data and daily behavior impact data are further determined according to the target game resource. The daily behavior impact data includes the impact effective time and the game resource update data, and the game resource update data is used to indicate the replacement of the game NPC's existing game resources and / or the addition of game resources that the game NPC does not have.
[0041] Step 203: Control the game NPC to execute the feedback behavior corresponding to the feedback behavior data.
[0042] Step 204, if the game resources already owned by the game NPC include similar resources corresponding to the target game resources, then based on the impact effective time and the resource data of the target game resources, the resource data of the similar resources already owned by the game NPC is changed in the configuration data of the game NPC, so that the game NPC performs daily behaviors based on the target game resources after the impact effective time.
[0043] In this embodiment, the game NPC is controlled to perform feedback behavior based on the feedback behavior data, and the daily behavior impact data is configured. For different types of target game resources to be transferred and the existing game resources of the game NPC, the configuration data of the game NPC can be configured in different ways. In addition, the daily behavior impact data can be configured before the impact effective time, and the changes to the original configuration data can be set to take effect at the impact effective time, or the configuration can be performed when the impact effective time is reached so that it takes effect directly after the configuration.
[0044] If the target game resource is a similar resource to a game resource already owned by the game NPC, then the resource data of the same existing game resource can be changed directly in the configuration data of the game NPC, and the game resource already owned by the game NPC can be replaced with the target game resource given by the player character, so that the game NPC can perform daily behaviors based on this target game resource after the impact takes effect.
[0045] Optionally, based on the impact effective time and the resource data of the target game resource, the resource data of the same type of resources already owned by the game NPC is changed in the configuration data of the game NPC, including: when the target game resource is a resource with the same appearance as the same type of resource, based on the impact effective time, the model texture of the same type of resource is replaced with a target model texture corresponding to the target game resource; when the target game resource is a resource with a similar appearance to the same type of resource, based on the impact effective time, the resource model of the same type of resource is replaced with a target resource model corresponding to the target game resource.
[0046] In this embodiment, the same type of resources specifically include resources with the same appearance and resources with similar appearance. As the name implies, resources with the same appearance refer to game resources that the game NPC already has that have the same appearance as the target game resource, and resources with similar appearance refer to game resources that the game NPC already has that have roughly the same appearance as the target game resource. For example, if a player presents a book to a game NPC, and if the game NPC has a book with the same appearance as the presented book, then the book that the game NPC originally has is considered to be a resource with the same appearance as the book presented by the player. For another example, if a player presents a porcelain water cup to a game NPC, and if the game NPC already has a wooden water cup, and the wooden water cup has roughly the same appearance as the porcelain water cup, then the wooden water cup is considered to be a resource with a similar appearance as the porcelain water cup. For resources with the same appearance as the target game resource, the texture of the same type of resource that the game NPC already has that is equivalent to the appearance of the target game resource can be directly replaced, and the model texture of the original same type of resource can be replaced with the target model texture corresponding to the target game resource. For resources with similar appearance to the target game resources, directly replacing the texture may cause visual errors. In this case, you can replace the resource model of the original similar resource with the target resource model corresponding to the target game resource. Since the two are similar in appearance, it will not appear visually abrupt even if the model is replaced.
[0047] Step 205: If the game resources already available to the game NPC do not include similar resources corresponding to the target game resources, then based on the impact effective time and the resource data of the target game resources, the resource data of the target game resources are modified in the configuration data of the game NPC, so that the game NPC performs daily behaviors based on the target game resources after the impact effective time.
[0048] If the target game resource is not a resource of the same type as a game resource already owned by the game NPC, then changing the existing game resource data cannot satisfy the requirement for adding the target game resource. In this case, a new game resource (i.e., the target game resource) can be added to the game NPC. Specifically, this can be done by adding new game resources to the configuration data, or by changing the resources that were originally in a "hidden" state in the configuration data to a "displayed" state, thereby achieving the addition of resources to the game NPC.
[0049] Optionally, the resource data of the target game resource is modified in the configuration data of the game NPC based on the impact effective time and the resource data of the target game resource, including: when the target game resource is a mounted resource corresponding to the game NPC, according to the impact effective time, the target resource model of the target game resource is mounted on the model skeleton hanging point of the game NPC; when the target game resource is a visible and invisible resource corresponding to the game NPC, according to the impact effective time, the target game resource is changed to a display state in the configuration data of the game NPC.
[0050] In this embodiment, the mounted resources corresponding to the game NPC are predefined, wherein the mounted resources may be resources directly mounted on the game NPC or resources mounted on existing resources of the game NPC, for example, the target game resource may be clothing, weapons, etc. directly mounted on the game NPC, or may be a vase mounted on a table belonging to the game NPC, etc. If the target game resource is a mounted resource of the game NPC, then the mount point corresponding to the target game resource is first determined, so as to mount the target resource model of the target game resource on the corresponding mount point, for example, the target resource model is directly mounted on the model skeleton mount point of the game NPC model, or the target resource model is mounted on the resource model mount point of the game NPC existing resources.
[0051] In addition, the visible and hidden resources corresponding to the game NPC can also be pre-defined, wherein the visible and hidden resources are game resources that can present display effects or non-display effects by controlling the visible and hidden states. If the target game resource is the visible and hidden resource corresponding to the game NPC, then the visible and hidden resource corresponding to the target game resource can be adjusted from the original hidden state to the visible state, so that the resource can present a display effect after the impact takes effect. For example, the game NPC already has a vase, and the flowers in the vase are visible and hidden resources. When the game NPC has not received the flowers given by the player, the resource is in a hidden state. After receiving the flowers given by the player and reaching the impact effective time, the resource is in a visible state. The specific game performance is that the game NPC has an empty vase. After the player gives flowers and reaches the impact effective time, flowers appear in the vase.
[0052] It should be noted that, regarding the game NPC's visible and invisible resources, multiple visible and invisible resources can be set at the same location, but at most one of the multiple visible and invisible resources at the same location is in the visible state. When the target game resource is a visible and invisible resource, and the visible and invisible resource (hereinafter referred to as the target visible and hidden resource) has multiple visible and hidden resources at the location, first determine whether there are resources in the visible state among the multiple visible and hidden resources at the same location as the target visible and hidden resource. If there are, modify the resource in the visible state to the hidden state, and then change the target visible and hidden resource to the visible state, so as to ensure that at most one visible and hidden resource in the same location is in the visible state, and avoid visual goofs. For example, the game NPC has a hanging painting, and the portrait display area of the hanging painting is set with multiple visible and hidden resources, including portraits, landscapes, etc. Assuming that the hanging painting initially displays a portrait (i.e., the portrait resource is in the visible state, and other painting resources are in the hidden state), the player gives the game NPC a landscape painting and after the effect takes effect, the hanging painting becomes a landscape painting (i.e., the portrait resource becomes hidden, the landscape resource becomes visible, and other resources remain hidden).
[0053] In the embodiment of the present application, the type of daily behavior influencing resources can also be defined according to the way in which the daily behavior influencing resources can affect the game NPC. Optionally, the daily behavior influencing resources include usage influencing resources, feedback influencing resources, and patrol influencing resources; when the target game resource belongs to the feedback influencing resource, the daily behavior influencing data also includes feedback influencing data, and the feedback influencing data is used to adjust the interactive feedback table in the configuration data of the game NPC, and the interactive feedback table is used to guide the interactive feedback of the game NPC to the game character; when the target game resource belongs to the patrol influencing resource, the daily behavior influencing data also includes trajectory influencing data, and the trajectory influencing data is used to adjust the patrol point table in the configuration data of the game NPC, and the patrol point table is used to guide the daily patrol points of the game NPC.
[0054] In this embodiment, a daily behavior influencing resource can be just a usage influencing resource, a feedback influencing resource or a patrol influencing resource, or it can be two or three of these resources at the same time. Among them, usage influencing resources refer to resources that affect the daily items used by the game NPC, such as book resources, water cup resources, etc. The game NPC will use the resources given by the player after accepting the gift; feedback influencing resources refer to resources that can affect the feedback behavior of the game NPC to the player character, such as book resources, etc. The game NPC may mention sentences in the book in the dialogue with the player character after accepting the gift; patrol influencing resources refer to resources that affect the daily movement trajectory of the game NPC, such as flower resources. There are no flowers in the vase of the game NPC, and the daily patrol point does not include this place. After accepting the flowers given by the player, the flower resources will be added as a patrol point, and the flowers will be watered regularly.
[0055] In an embodiment of the present application, optionally, controlling the behavior performed by the game NPC based on the feedback behavior data and the daily behavior influence data includes: controlling the behavior performed by the game NPC on the player character based on the feedback behavior data and the daily behavior influence data.
[0056] In this embodiment, the game NPC can be a client NPC, and the behavior of the game NPC is only effective for the player character of the current client. The same game NPC from the perspective of other player characters is not affected by the interactive operations of the player character of the current client. Of course, the game NPC in this application can also be a server NPC, and the behavior of the game NPC is affected by all the player characters interacting with it. The daily behavior effects generated by all interactive operations ultimately determine the execution mode of the daily behavior of the game NPC.
[0057] In an embodiment of the present application, optionally, the method also includes: in response to an interactive operation of a player character on a game NPC, determining, based on the interactive operation, development data of the player character for the game NPC; and triggering, according to the development data, the game NPC to generate an interactive event for the player character.
[0058] In this embodiment, the interactive operation of the player character on the game NPC can also affect the player character's development data of the NPC, such as favorability, luck value, activity, etc., and further trigger the game NPC's interactive events with the player character when the development data meets certain conditions. For example, in daily behavior, the probability of triggering the game NPC's "return gift" (giving back certain props to the player) or "free bill" (returning the gift cost); in addition, the development values such as favorability can be set as stage rewards, weekly rewards, achievement rewards, etc. After meeting the reward conditions, the game NPC can give the player character corresponding rewards.
[0059] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides an NPC behavior data processing device, such as Figure 3 As shown, the device comprises:
[0060] An interaction judgment module, for responding to the interaction operation of the player character on the game NPC, determining whether the interaction operation belongs to the daily behavior influence operation corresponding to the game NPC;
[0061] A data generation module, for determining, when the interactive operation belongs to the daily behavior influence operation, feedback behavior data and daily behavior influence data corresponding to the game NPC based on the interactive operation;
[0062] The behavior control module is used to control the behavior performed by the game NPC according to the feedback behavior data and the daily behavior impact data.
[0063] Optionally, the interaction judgment module is used to: if the interaction operation is a game resource transfer operation, identify the target game resource to be transferred indicated by the game resource transfer operation, and determine whether the target game resource belongs to the daily behavior influence resource corresponding to the game NPC;
[0064] Correspondingly, the data generation module is used to: when the target game resource belongs to the daily behavior influencing resource, determine the instant feedback behavior data and daily behavior influence data corresponding to the game NPC based on the target game resource, wherein the daily behavior influence data includes the influence effective time and game resource update data, and the game resource update data is used to indicate the replacement of the game resources already existing to the game NPC and / or the addition of game resources that the game NPC does not have.
[0065] Optionally, the interactive operation includes a game resource transfer operation; the daily behavior impact data includes an impact effective time and game resource update data, the game resource transfer operation indicates a target game resource to be transferred, and the game resource update data is used to indicate a replacement of the game resource already owned by the game NPC and / or a new game resource that the game NPC does not have;
[0066] The behavior control module is also used for:
[0067] If the game resources already owned by the game NPC include resources of the same type as the target game resources, then according to the effect-effective time and the resource data of the target game resources, the resource data of the same type of resources already owned by the game NPC is changed in the configuration data of the game NPC, so that the game NPC performs daily behaviors based on the target game resources after the effect-effective time;
[0068] If the game resources already available to the game NPC do not include similar resources corresponding to the target game resources, the resource data of the target game resources are modified in the configuration data of the game NPC based on the impact effective time and the resource data of the target game resources, so that the game NPC performs daily behaviors based on the target game resources after the impact effective time.
[0069] Optionally, the behavior control module is further used to:
[0070] In the case where the target game resource is a resource with the same appearance as the resource of the same type, the model texture of the resource of the same type is replaced with the target model texture corresponding to the target game resource according to the effective time of the impact;
[0071] In the case where the target game resource is a resource with a similar appearance to the resource of the same type, the resource model of the resource of the same type is replaced with a target resource model corresponding to the target game resource according to the impact effective time.
[0072] Optionally, the behavior control module is further used to:
[0073] In the case where the target game resource is a mounted resource corresponding to the game NPC, the target resource model of the target game resource is mounted on the model skeleton mounting point of the game NPC according to the impact effective time;
[0074] In the case where the target game resource is a visible or invisible resource corresponding to the game NPC, the target game resource is changed to a display state in the configuration data of the game NPC according to the effect taking effect time.
[0075] Optionally, in the case where the target game resource belongs to the feedback influence resource, the daily behavior influence data further includes feedback influence data, and the feedback influence data is used to adjust the interactive feedback table in the configuration data of the game NPC, and the interactive feedback table is used to guide the game NPC to provide interactive feedback to the game character;
[0076] In the case where the target game resource belongs to the patrol influence resource, the daily behavior influence data also includes trajectory influence data, and the trajectory influence data is used to adjust the patrol point table in the configuration data of the game NPC, and the patrol point table is used to guide the daily patrol points of the game NPC.
[0077] Optionally, the behavior control module is further used to modify the configuration data of the game NPC for the player character based on the daily behavior impact data.
[0078] Optionally, the behavior control module is further used to:
[0079] In response to an interactive operation of a player character on a game NPC, based on the interactive operation, determining the development data of the player character on the game NPC;
[0080] According to the development data, the game NPC is triggered to generate an interaction event with the player character.
[0081] It should be noted that for other corresponding descriptions of the functional units involved in the NPC behavior data processing device provided in the embodiment of the present application, reference can be made to Figure 1 to Figure 2 The corresponding description in the method will not be repeated here.
[0082] The present application also provides a computer device, which may be a personal computer, a server, a network device, etc. Figure 4 As shown, the computer device includes a bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store location information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the steps in each method embodiment are implemented.
[0083] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0084] In one embodiment, a computer-readable storage medium is provided. The computer-readable storage medium may be non-volatile or volatile, and stores a computer program thereon. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0085] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0086] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0087] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0088] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0089] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for processing NPC behavior data, characterized in that: The method comprises: In response to an interactive operation of a player character on a game NPC, determining whether the interactive operation belongs to a daily behavior influencing operation corresponding to the game NPC; In the case where the interactive operation belongs to the daily behavior influencing operation, based on the interactive operation, determining the feedback behavior data and the daily behavior influencing data corresponding to the game NPC; The behavior performed by the game NPC is controlled according to the feedback behavior data and the daily behavior impact data.
2. The method according to claim 1, characterized in that The interactive operation includes a game resource transfer operation, and the game resource transfer operation indicates the target game resource to be transferred; the daily behavior impact data includes the impact effective time and game resource update data, and the game resource update data is used to indicate the replacement of the game resources already owned by the game NPC and / or the addition of game resources that the game NPC does not have; The behavior performed by the game NPC is controlled according to the daily behavior impact data, including: If the game resources already owned by the game NPC include resources of the same type as the target game resources, then according to the effect-effective time and the resource data of the target game resources, the resource data of the same type of resources already owned by the game NPC is changed in the configuration data of the game NPC, so that the game NPC performs daily behaviors based on the target game resources after the effect-effective time; If the game resources already available to the game NPC do not include similar resources corresponding to the target game resources, the resource data of the target game resources are modified in the configuration data of the game NPC based on the impact effective time and the resource data of the target game resources, so that the game NPC performs daily behaviors based on the target game resources after the impact effective time.
3. The method according to claim 2, characterized in that The step of changing the resource data of the same resource already owned by the game NPC in the configuration data of the game NPC according to the effective time of the impact and the resource data of the target game resource comprises: In the case where the target game resource is a resource with the same appearance as the resource of the same type, the model texture of the resource of the same type is replaced with the target model texture corresponding to the target game resource according to the effective time of the impact; In the case where the target game resource is a resource with a similar appearance to the resource of the same type, the resource model of the resource of the same type is replaced with a target resource model corresponding to the target game resource according to the impact effective time.
4. The method according to claim 2, characterized in that: The modifying the resource data of the target game resource in the configuration data of the game NPC according to the influencing effective time and the resource data of the target game resource comprises: In the case where the target game resource is a mounted resource corresponding to the game NPC, the target resource model of the target game resource is mounted on the model skeleton mounting point of the game NPC according to the impact effective time; In the case where the target game resource is a visible or invisible resource corresponding to the game NPC, the target game resource is changed to a display state in the configuration data of the game NPC according to the effect taking effect time.
5. The method according to claim 2, characterized in that: In the case where the target game resource belongs to the feedback influence resource, the daily behavior influence data also includes feedback influence data, and the feedback influence data is used to adjust the interactive feedback table in the configuration data of the game NPC, and the interactive feedback table is used to guide the game NPC to provide interactive feedback to the game character; In the case where the target game resource belongs to the patrol influence resource, the daily behavior influence data also includes trajectory influence data, and the trajectory influence data is used to adjust the patrol point table in the configuration data of the game NPC, and the patrol point table is used to guide the daily patrol points of the game NPC.
6. The method according to any one of claims 1 to 5, characterized in that The controlling the behavior performed by the game NPC according to the feedback behavior data and the daily behavior impact data includes: The behavior performed by the game NPC on the player character is controlled based on the feedback behavior data and the daily behavior impact data.
7. The method according to claim 6, characterized in that The method further comprises: In response to an interactive operation of a player character on a game NPC, based on the interactive operation, determining the development data of the player character on the game NPC; According to the development data, the game NPC is triggered to generate an interaction event with the player character.
8. An NPC behavior data processing device, characterized in that: The device comprises: An interaction judgment module, for responding to an interaction operation of a player character on a game NPC, and determining whether the interaction operation belongs to a daily behavior influence operation corresponding to the game NPC; A data generation module, for determining, when the interactive operation belongs to the daily behavior influence operation, feedback behavior data and daily behavior influence data corresponding to the game NPC based on the interactive operation; The behavior control module is used to control the behavior performed by the game NPC according to the feedback behavior data and the daily behavior impact data.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.