A method, device, medium and electronic device for influencing NPC performance based on NPC mutual behavior

By acquiring and processing NPC associated and non-associated information, updating weight data, and adjusting NPC basic parameters, the problem of fixed NPC behavior in the existing technology is solved, and the richness of NPC performance and player experience are improved.

CN114681919BActive Publication Date: 2024-10-01MIHAYOU TECH (SHANGHAI) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210320541.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2024-10-01
Estimated Expiration
2042-03-29

AI Technical Summary

Technical Problem

The behavior of NPCs in existing multi-role RPG games is fixed, resulting in low richness of performance and insufficient player experience.

Method used

By obtaining the associated and non-associated information of the NPC, the weight value is formed, the weight data is updated, and the basic parameters of the NPC are adjusted to increase the diversity and richness of the NPC behavior.

Benefits of technology

It improves the diversity of NPC daily behavior changes, enhances the richness of NPC performance, and enhances the game experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114681919B_ABST
    Figure CN114681919B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, medium, electronic device and computer program product based on NPC mutual behavior affecting NPC performance, in which, when first type of information and / or second type of information are obtained, a first type of weight matching the first type of information and / or a second type of weight matching the second type of information are formed according to the first type of information and / or the second type of information; a control parameter is formed according to the updated weight data, and the basic parameters of the NPC are adjusted under the action of the control parameter. The method, device, medium and electronic device based on NPC mutual behavior affecting NPC performance update the weight data according to the first weight and / or the second weight; the control parameter is formed according to the updated weight data, and the basic attribute parameters and daily behavior table of the NPC are adjusted under the action of the control parameter, so as to increase the diversity of the changes in the daily behavior of the NPC.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of online game technology, and in particular to a method, device, medium and electronic device for influencing NPC performance based on NPC mutual behavior. Background Art

[0002] With the emergence and development of online games, there are more and more types of online games, and multi-role RPG (role-playing game) games are one of them. In all role-playing games, players have to play a fictional character and control many activities of the character. In multi-role RPG games, a turn-based method is usually adopted. After a round of turn-based games begins, multiple fighting characters participating in this round of turn-based games (multiple fighting characters include player characters and may also include non-player characters) take their turns in a certain order, and can only operate when it is their turn. When the fighting characters include non-player characters (NPC), the behavior of the NPC is usually determined based on a pre-made method, unless some specific events are triggered, such as the player comes to find the NPC, triggering the logic of accepting the task, but the basic daily behavior of the NPC will not change. Most of the behaviors performed by the NPC are fixed, resulting in low performance richness of the NPC character and insufficient player experience in the game. Summary of the invention

[0003] In view of the deficiencies in the prior art, the present invention provides a method, device, medium and electronic device for influencing NPC performance based on NPC mutual behavior, which can improve the richness of NPC behavior performance based on influencing NPC mutual behavior.

[0004] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0005] In the first aspect, a method for influencing NPC performance based on NPC mutual behavior includes:

[0006] When the first type of information and / or the second type of information is obtained, a first type of weight matching the first type of information and / or a second type of weight matching the second type of information is formed according to the first type of information and / or the second type of information;

[0007] Update the weight data according to the first weight and / or the second weight;

[0008] A control parameter is formed according to the updated weight data, and the basic parameter of the NPC is adjusted under the effect of the control parameter.

[0009] Preferably, the method for forming the first type of information includes:

[0010] Reading the associated parameters of the current NPC character, and obtaining the current state of the NPC character matching the associated parameters according to the associated parameters;

[0011] When the current state of the NPC character matching the associated parameters is inconsistent with its historical state, the first type of information is formed according to the current state of the NPC character matching the associated parameters.

[0012] Preferably, the method for forming the second type of information includes:

[0013] When the collision detection of the current NPC character is triggered, the target object of the collision detection is read; a second basic parameter is formed according to the target object and the collision event; or,

[0014] In a state where there is characteristic information within the distance detection and / or area detection range of the current NPC character, a third basic parameter is formed according to the characteristic information;

[0015] The second type of information is formed according to the second basic parameter and / or the third basic parameter.

[0016] Preferably, when there is characteristic information within the distance detection and / or area detection range of the current NPC character, forming the third basic parameter according to the characteristic information specifically includes:

[0017] In a state where there is characteristic information within the distance detection and / or area detection range, identifying behaviors and behavior subject parameters matching the characteristic information according to the characteristic information;

[0018] The third basic parameter is formed according to the behavior and the subject parameter.

[0019] In a second aspect, an embodiment of the present invention provides a device for influencing NPC performance based on NPC mutual behavior, comprising:

[0020] an acquisition module, configured to, when the first type of information and / or the second type of information is acquired, form a first type of weight matching the first type of information and / or a second type of weight matching the second type of information according to the first type of information and / or the second type of information;

[0021] A weight data updating module, configured to update the weight data according to the first weight and / or the second weight;

[0022] The adjustment module is used to form control parameters according to the updated weight data, and adjust the basic parameters of the NPC under the influence of the control parameters.

[0023] Preferably, the acquisition module includes:

[0024] A reading unit, used to read the associated parameters of the current NPC character, and obtain the current state of the NPC character matching the associated parameters according to the associated parameters;

[0025] The first type information forming unit is configured to form the first type information according to the current state of the NPC character matching the associated parameters when the current state of the NPC character matching the associated parameters is inconsistent with its historical state.

[0026] Preferably, the acquisition module is used to:

[0027] When the collision detection of the current NPC character is triggered, the target object of the collision detection is read; a second basic parameter is formed according to the target object and the collision event; or, when there is characteristic information within the distance detection and / or area detection range of the current NPC character, a third basic parameter is formed according to the characteristic information;

[0028] The second type of information is formed according to the second basic parameter and / or the third basic parameter.

[0029] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned method of influencing NPC performance based on NPC mutual behavior.

[0030] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for influencing NPC performance based on NPC mutual behavior in the electronic device as described above is implemented.

[0031] In a fifth aspect, the present invention further provides a computer program product, including a computer readable code, or a readable storage medium carrying the computer readable code, and when the computer readable code is executed in a processor of an electronic device, the processor in the electronic device executes a program for implementing any of the above-mentioned methods for influencing NPC performance based on NPC mutual behavior.

[0032] The present invention has the following beneficial effects:

[0033] By obtaining the first and second weight values ​​of events corresponding to the NPC basic attribute parameters and the daily behavior table, the weight data is updated according to the first weight and / or the second weight; the control parameters are formed according to the updated weight data, and the NPC basic attribute parameters and the daily behavior table are adjusted under the action of the control parameters, so as to increase the diversity of the NPC's daily behavior changes and improve the richness of the NPC's performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flow chart of a method for influencing NPC performance based on NPC mutual behavior provided in Example 1 of the present invention;

[0035] Figure 2 A flow chart of a method for influencing NPC performance based on NPC mutual behavior provided in Example 1 of the present invention;

[0036] Figure 3 A flow chart of a method for influencing NPC performance based on NPC mutual behavior provided in Example 1 of the present invention;

[0037] Figure 4 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] Embodiment 1

[0040] The embodiment of the present invention provides a method for influencing NPC performance based on NPC mutual behavior. Figure 1-3 This is a flowchart of a method for expressing NPC behavior based on a random system.

[0041] S110, when the first type of information and / or the second type of information is acquired, forming a first type of weight matching the first type of information and / or a second type of weight matching the second type of information according to the first type of information and / or the second type of information;

[0042] Specifically, the first type of information is event information about status changes of characters associated with the NPC, such as the death of one's own pet or the illness of a relative; the second type of information is event information about status changes of characters not associated with the NPC, such as an event in which a player rescues an NPC who falls into the water and triggers the NPC's later gratitude, or an event in which the NPC hears predetermined gossip and is affected by his own behavioral deviations.

[0043] The method for forming the first type of information includes the following steps:

[0044] S11011, reading the associated parameters of the current NPC character, and acquiring the current state of the NPC character matching the associated parameters according to the associated parameters;

[0045] Specifically, the associated parameters of the current NPC character are read first. The associated parameters may be parameters of all persons or objects associated with the current NPC, such as the NPC's social attribute parameters, character relationship attribute parameters, or object ownership attributes, etc. The status information parameters of the current NPC character are obtained based on the associated parameters.

[0046] S11012: When the current state of the NPC character that matches the associated parameters is inconsistent with its historical state, the first type of information is formed according to the current state of the NPC character that matches the associated parameters.

[0047] Specifically, when the acquired status information of the current NPC's character is inconsistent with its historical status information, for example, an event related to the current NPC's relative falling ill occurs, the social attributes and character relationship attribute parameters of the current NPC change to form the first type of information.

[0048] Indicative,

[0049] The steps for forming the second type of information are as follows:

[0050] S11021, when the collision detection of the current NPC character is triggered, reading the target object of the collision detection; forming a second basic parameter according to the target object and the collision event; or, when there is feature information within the distance detection and / or area detection range of the current NPC character, forming a third basic parameter according to the feature information;

[0051] Specifically, the second basic parameter is a basic parameter set for a collision event that is not associated with the NPC's own attributes. When the NPC's character collides and interacts with the player, the target object of the collision detection is read. For example, when player A rescues an NPC who falls into the water, the relevant parameters of player A and the relevant NPC who falls into the water are read, and the event of player A rescuing the relevant NPC who falls into the water is triggered, thereby forming a basic parameter set for the event of player A rescuing the relevant NPC who falls into the water.

[0052] The third basic parameter is an event basic parameter set of the distance detection and / or area detection range that is not associated with the NPC's own attributes. In the state where there is characteristic information within the distance detection and / or area detection range, the behavior and behavior subject parameters matching the characteristic information are identified according to the characteristic information; the third basic parameter is formed according to the behavior and the subject parameters. For example, NPC character B is an animal lover, and he sees or hears incidents of small animals being abused every day within the predetermined range or detection range, which can form the event basic parameter set that the NPC sees or hears within the predetermined range.

[0053] S11022. Form the second type of information according to the second basic parameter and / or the third basic parameter.

[0054] According to the NPC role setting, the first weight value and the second weight value are assigned to the corresponding first-category information and second-category information respectively. For example, if the general personality of NPC A in the game is cheerful, its cheerful weight is set to 100%, and the corresponding related events that affect the cheerful weight value belong to the first-category information or the second-category information, such as the status change of related persons or non-related persons, such as the death of one's own pet, the illness of relatives, etc.; or the accidental events of non-related persons affect other basic attribute parameters and affect the future development of both parties. For example, if you rescue an NPC who falls into the water, the NPC will remember the time and repay the favor in the future; the accidental events of non-related persons affect the entire behavior of third parties, and can even affect the player's experience of the story line in the future.

[0055] Obtain initial weight values ​​of the first type of weights matching the first type of information and / or the second type of weights matching the second type of information, wherein the first type of weights are formed by the weights of the associated events corresponding to the NPC, and the second type of weights are formed by the weights of the non-associated events corresponding to the NPC.

[0056] S120, updating the weight data according to the first weight and / or the second weight;

[0057] Taking the basic attribute parameter personality-related cheerfulness as an example, the weight value corresponding to cheerfulness will change due to the occurrence and accumulation of events. The mathematical relationship between such behavior events and behavior weights is established, and then the behavior weight value f of the corresponding basic attribute parameter is changed. For example,

[0058] f1=W 11 x 11 +W 12 x 12 +...+W 1n x 1n +b1;

[0059] f2=W 21 x1+W 22 x2+...+W 2n x nn +b2;

[0060] f=Af1+Bf2.

[0061] Among them, A is the influence coefficient of the first type of weight value, and the general value range is 0.6≤A≤0.8

[0062] B is the influence coefficient of the second type of weight value, and its general value range is 0.2≤B≤0.4;

[0063] And A+B=1;

[0064] f1 is the first weight matching the first type of information;

[0065] W 11 The current impact coefficient of the behavioral event 11 that matches the first type of information;

[0066] x 11 The weight value of the basic attribute parameter affected by the behavior event 11 matching the first type of information;

[0067] W 12 The current impact coefficient of the behavioral event 12 that matches the first type of information;

[0068] x 12 The weight value of the basic attribute parameter affected by the behavior event 12 matching the first type of information; ...

[0070] W 1n is the current impact coefficient of the behavioral event 1n that matches the first type of information;

[0071] x1n is the weight value of the basic attribute parameters affected by the behavioral event 1n matching the first type of information;

[0072] b1 is the harmonic value matching the first type of information;

[0073] f2 is the second weight for matching the second type of information;

[0074] W 21 The current impact coefficient of the behavioral event 21 that matches the second type of information;

[0075] x 21 The weight value of the basic attribute parameter affected by the behavior event 21 matching the second type of information;

[0076] W 22 The current impact coefficient of the behavioral event 22 that matches the second type of information;

[0077] x 22 The weight value of the basic attribute parameter affected by the behavior event 22 matching the second type of information; ...

[0079] W 2n is the current impact coefficient of the behavioral event 2n that matches the second type of information;

[0080] x2n is the weight value of the basic attribute parameters affected by the behavioral event 2n matching the second type of information;

[0081] b2 is the harmonic value matching the first type of information;

[0082] Among them, W 1n =k(ta n ) 2 ;

[0083] k is the personality coefficient, which is generally taken as 0.8;

[0084] a n Adjust the physiological cycle of the NPC character. The specific value is set according to the NPC character.

[0085] When events 11, 12... or 1n related to the first type of information and / or events 21, 22... or 2n related to the second type of information that match the cheerfulness value occur, corresponding weight values ​​can be directly assigned to the relevant events, and the behavioral weight value f of the corresponding basic attribute parameter is calculated according to the time point of occurrence. As time goes by and different events develop, the f value will change differently. For example, after the NPC of character A encounters various changes in the status of related people in succession, such as the death of his own pet, the illness of relatives, etc., the cheerfulness weight ratio changes from 100% to the f value in the current state, such as 50%. As events and time go by, the cheerfulness weight ratio f of character A further rises, such as 80%. The occurrence of multiple events affects and acts on the cheerfulness value. In this process of change, the change process of the cheerfulness weight ratio of character A can be reflected, the changes in basic parameters such as personality, and the daily behavior of NPC will also undergo diverse changes, while adding to the richness of the game plot and development.

[0086] S130, forming control parameters according to the updated weight data, and adjusting basic parameters of the NPC under the effect of the control parameters.

[0087] Specifically, corresponding control parameters can be formed according to the obtained weight value f. Control parameters generally refer to parameter instructions when the basic parameters of the NPC change. The function of the parameter instructions is to adjust the basic parameters of the NPC. For example, when the weight f affecting the cheerfulness value becomes 20%, the system automatically forms corresponding control parameters and changes the size of the cheerfulness value according to the control parameters. The basic attribute data of the NPC includes the NPC's personality, occupation, dream, willingness to take risks and model appearance, etc., which may include one or more of them.

[0088] By obtaining the first and second weight values ​​of events corresponding to the NPC basic attribute parameters and the daily behavior table, the weight data is updated according to the first weight and / or the second weight; the control parameters are formed according to the updated weight data, and the NPC basic attribute parameters and the daily behavior table are adjusted under the action of the control parameters, so as to increase the diversity of the NPC's daily behavior changes and improve the richness of the NPC's performance.

[0089] Embodiment 2

[0090] An embodiment of the present invention provides a device for influencing NPC performance based on NPC mutual behavior, and the device specifically includes:

[0091] an acquisition module, configured to, when the first type of information and / or the second type of information is acquired, form a first type of weight matching the first type of information and / or a second type of weight matching the second type of information according to the first type of information and / or the second type of information;

[0092] A weight data updating module, configured to update the weight data according to the first weight and / or the second weight;

[0093] The adjustment module is used to form control parameters according to the updated weight data, and adjust the basic parameters of the NPC under the influence of the control parameters.

[0094] In a preferred embodiment, the acquisition module includes:

[0095] A reading unit, used to read the associated parameters of the current NPC character, and obtain the current state of the NPC character matching the associated parameters according to the associated parameters;

[0096] The first type information forming unit is configured to form the first type information according to the current state of the NPC character matching the associated parameters when the current state of the NPC character matching the associated parameters is inconsistent with its historical state.

[0097] In a preferred embodiment, the acquisition module is used to:

[0098] When the collision detection of the current NPC character is triggered, the target object of the collision detection is read; a second basic parameter is formed according to the target object and the collision event; or, when there is characteristic information within the distance detection and / or area detection range of the current NPC character, a third basic parameter is formed according to the characteristic information;

[0099] The second type of information is formed according to the second basic parameter and / or the third basic parameter.

[0100] The working principle of this embodiment is the same as that of the first embodiment, so it will not be described in detail.

[0101] Embodiment 3

[0102] The present application also provides a storage medium containing computer executable instructions, which are used to perform:

[0103] When the first type of information and / or the second type of information is obtained, a first type of weight matching the first type of information and / or a second type of weight matching the second type of information is formed according to the first type of information and / or the second type of information;

[0104] Update the weight data according to the first weight and / or the second weight;

[0105] A control parameter is formed according to the updated weight data, and the basic parameter of the NPC is adjusted under the effect of the control parameter.

[0106] Embodiment 4

[0107] An embodiment of the present application provides an electronic device, in which the device for influencing NPC performance based on NPC mutual behavior provided by the embodiment of the present application can be integrated. Figure 4 Schematic diagram of the structure of an electronic device provided in the fourth embodiment of the present application. Figure 4 As shown, this embodiment provides an electronic device 400, which includes: one or more processors 420; a storage device 410, which is used to store one or more programs. When the one or more programs are run by the one or more processors 420, the one or more processors 420 implement:

[0108] When the first type of information and / or the second type of information is obtained, a first type of weight matching the first type of information and / or a second type of weight matching the second type of information is formed according to the first type of information and / or the second type of information;

[0109] Update the weight data according to the first weight and / or the second weight;

[0110] A control parameter is formed according to the updated weight data, and the basic parameter of the NPC is adjusted under the effect of the control parameter.

[0111] like Figure 4 As shown, the electronic device 400 includes a processor 420, a storage device 410, an input device 430, and an output device 440; the number of the processor 420 in the electronic device can be one or more. Figure 4 A processor 420 is taken as an example; the processor 420, the storage device 410, the input device 430 and the output device 440 in the electronic device can be connected via a bus or other means. Figure 4 The connection via bus 450 is taken as an example.

[0112] The storage device 410, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and module units, such as program instructions corresponding to the method of influencing NPC performance based on NPC mutual behavior in the embodiment of the present application.

[0113] The storage device 410 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 410 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 410 may further include a memory remotely arranged relative to the processor 420, and these remote memories may be connected via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0114] The input device 430 may be used to receive input numbers, character information or voice information, and generate key signal input related to user settings and function control of the electronic device. The output device 440 may include a display screen, a speaker and other devices.

[0115] Embodiment 5

[0116] In some embodiments, the above-described methods may be implemented as a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0117] The above-mentioned computer-readable storage medium can be a tangible device that can hold and store instructions used by the instruction execution device. The computer-readable storage medium can be, for example, - but not limited to - an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), static random access memories (SRAM), portable compact disk read-only memories (CD-ROM), digital versatile disks (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or raised structures in grooves on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (for example, a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0118] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0119] The computer program instructions for performing the disclosed operation may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, and conventional procedural programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., utilizing an Internet service provider to connect via the Internet). In certain embodiments, by utilizing the state information of a computer-readable program instruction to customize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.

[0120] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0121] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0122] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the equipment, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0123] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for influencing NPC performance based on NPC mutual behavior, characterized in that: include, When the first type of information and / or the second type of information is obtained, a first weight matching the first type of information and / or a second weight matching the second type of information is formed according to the first type of information and / or the second type of information; Update the weight data according to the first weight and / or the second weight; Forming control parameters according to the updated weight data, and adjusting the basic parameters of the NPC under the effect of the control parameters; The method for forming the first type of information includes: reading the association parameters of the current NPC character, and obtaining the current state of the NPC character matching the association parameters according to the association parameters; when the current state of the NPC character matching the association parameters is inconsistent with its historical state, forming the first type of information according to the current state of the NPC character matching the association parameters; the association parameters are parameters of all people or objects associated with the current NPC; Among them, the method for forming the second type of information includes: when the collision detection of the current NPC character is triggered, reading the target object of the collision detection; forming a second basic parameter according to the target object and the collision event; or, when there is characteristic information within the distance detection and / or area detection range of the current NPC character, forming a third basic parameter according to the characteristic information; forming the second type of information according to the second basic parameter and / or the third basic parameter.

2. The method for influencing NPC performance based on NPC mutual behavior according to claim 1, characterized in that: In a state where there is characteristic information within the distance detection and / or area detection range of the current NPC character, forming the third basic parameter according to the characteristic information specifically includes: In a state where there is characteristic information within the distance detection and / or area detection range, identifying behaviors and behavior subject parameters matching the characteristic information according to the characteristic information; The third basic parameter is formed according to the behavior and the subject parameter.

3. A device for influencing NPC performance based on NPC mutual behavior, characterized in that: include, an acquisition module, configured to, when the first type of information and / or the second type of information is acquired, form a first weight matching the first type of information and / or a second weight matching the second type of information according to the first type of information and / or the second type of information; A weight data updating module, configured to update the weight data according to the first weight and / or the second weight; An adjustment module, used to form a control parameter according to the updated weight data, and adjust the basic parameters of the NPC under the effect of the control parameter; The acquisition module includes a reading unit for reading the associated parameters of the current NPC character, and acquiring the current state of the NPC character matching the associated parameters according to the associated parameters; a first type of information forming unit for forming the first type of information according to the current state of the NPC character matching the associated parameters when the current state of the NPC character matching the associated parameters is inconsistent with its historical state; the associated parameters are parameters of all persons or objects associated with the current NPC; Among them, the acquisition module is used to read the target object of the collision detection when the collision detection of the current NPC character is triggered; form a second basic parameter based on the target object and the collision event; or, when there is characteristic information within the distance detection and / or area detection range of the current NPC character, form a third basic parameter based on the characteristic information; form the second type of information based on the second basic parameter and / or the third basic parameter.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a method for influencing NPC performance based on NPC mutual behavior as claimed in any one of claims 1 to 2 is implemented.

5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, a method for influencing NPC performance based on NPC mutual behavior as claimed in any one of claims 1 to 2 is implemented.

6. A computer program product, characterized in that It includes computer-readable code, or a readable storage medium carrying computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the method for implementing any one of claims 1 to 2 for influencing NPC performance based on NPC mutual behavior.

Citation Information

Patent Citations

  • Interaction method of game player and non-player character (NPC) in network games

    CN103116685A

  • Multi-agent technology-based NPC control method

    CN107145948A

  • Information display method and device, computer equipment and storage medium

    CN113713374A

  • Game device and program

    JP2019054834A

  • Computer system

    US20200086216A1