Method and apparatus for interaction with non-player character, device, storage medium, and product

By displaying the identity relationship between virtual characters and NPCs in the game, controlling the interactive activities between NPCs and virtual characters, the problem of solidifying NPC interaction methods in the existing technology is solved, improving the diversity and authenticity of interactions, and improving user experience .

WO2024230302A1PCT designated stage expired Publication Date: 2024-11-14TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/080910
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-06
Filing Date
2024-03-11
Publication Date
2024-11-14

AI Technical Summary

Technical Problem

In the prior art, the interaction between non-player characters (NPCs) and virtual characters is relatively solid and has a low degree of intelligence, resulting in a lack of diversity and authenticity of interactive activities and affecting user experience.

Method used

By displaying the identity relationship between virtual characters and NPCs, the interactive activities between NPCs and virtual characters are controlled based on this relationship, enhancing the diversity and authenticity of NPCs' behavior, making their behavior closer to virtual characters controlled by real users.

Benefits of technology

It improves the richness and authenticity of the interactive activities between NPC and virtual characters, improves the user experience, enhances the intelligence of NPC, and makes its behavior more in line with user expectations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024080910_14112024_PF_FP_ABST
    Figure CN2024080910_14112024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of man-machine interaction technology, and in particular, to a method and apparatus for interaction with a non-player character, a device, a storage medium, and a product. The method comprises: displaying a game interaction interface (302), the game interaction interface comprising a virtual character and at least one non-player character (NPC); in response to an interactive operation between the virtual character and the NPC, displaying an identity association relationship between the virtual character and the NPC (304), the identity association relationship being configured for indicating an association relationship between the virtual character and the NPC on an interactive identity; and displaying an interactive activity between the NPC and the virtual character based on the identity association relationship (306). By means of the described method, the NPC can actively change the interactive activity with the virtual character on the basis of the identity association relationship, thus making the interactive activity between the NPC and the virtual character abundant and real.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment, storage medium and product for interacting with non-player characters

[0001] This application claims priority to Chinese patent application No. 202310509210.2 filed on May 6, 2023, entitled “Methods, devices, equipment, storage media and products for interacting with non-player characters,” the entire contents of which are incorporated herein by reference. Technical Field

[0002] The embodiments of the present application relate to the field of human-computer interaction technology, and more particularly to a method, apparatus, device, storage medium, and product for interacting with non-player characters. Background Art

[0003] In virtual environment-based applications, such as multi-player online games (MMOGs), users can control virtual characters to move around in the virtual environment. Furthermore, non-player characters (NPCs) exist within the virtual environment. NPCs can interact with the user-controlled virtual characters, for example, attacking them. NPCs can also advance plot points associated with tasks or help users complete tasks, or they can converse with the virtual characters.

[0004] In related technologies, virtual characters and NPCs interact using pre-set interaction logic. This involves using the virtual character's behavior as input, calculating the interaction content the NPC needs to perform, and outputting that interaction content. For example, a virtual character might ask an NPC a question, and the NPC might respond based on the question, completing the interaction.

[0005] However, in related technologies, the interaction method between NPCs and virtual characters is relatively rigid. NPCs can only interact with user-controlled virtual characters according to preset interaction logic, and the level of intelligence of NPCs is relatively low.

[0006] Summary of the Invention

[0007] This application provides a method, apparatus, device, storage medium, and product for interacting with non-player characters. The technical solutions are as follows:

[0008] According to one aspect of the present application, a method for interacting with a non-player character is provided, the method being executed by a terminal, the method comprising:

[0009] Displaying a game interactive interface, wherein the game interactive interface includes a virtual character and at least one non-player character (NPC);

[0010] In response to an interactive operation between the virtual character and the NPC, an identity association relationship between the virtual character and the NPC is displayed; the identity association relationship is used to indicate the association relationship between the virtual character and the NPC in terms of interactive identity;

[0011] The interactive activities between the NPC and the virtual character based on the identity association relationship are displayed.

[0012] According to one aspect of the present application, a method for interacting with a non-player character is provided, the method being executed by a server, the method comprising:

[0013] Sending data related to a game interactive interface to a terminal, wherein the game interactive interface includes a virtual character and at least one non-player character (NPC);

[0014] Determining an identity association relationship between the virtual character and the NPC based on an interactive operation between the virtual character and the NPC; the identity association relationship is used to indicate an association relationship between the virtual character and the NPC in terms of interactive identities;

[0015] The interactive activities between the NPC and the virtual character are controlled based on the identity association relationship.

[0016] According to one aspect of the present application, there is provided an interactive device with a non-player character, the device comprising:

[0017] A display module, configured to display a game interactive interface, wherein the game interactive interface includes a virtual character and at least one non-player character (NPC);

[0018] The display module is further configured to display an identity association relationship between the virtual character and the NPC in response to an interactive operation between the virtual character and the NPC; the identity association relationship is configured to indicate an association relationship between the virtual character and the NPC in terms of interactive identities;

[0019] The display module is further used to display the interactive activities between the NPC and the virtual character based on the identity association relationship.

[0020] According to one aspect of the present application, there is provided an interactive device with a non-player character, the device comprising:

[0021] A sending module, configured to send data related to a game interactive interface to a terminal, wherein the game interactive interface includes a virtual character and at least one non-player character (NPC);

[0022] A relationship determination module, configured to determine an identity association relationship between the virtual character and the NPC based on an interactive operation between the virtual character and the NPC; the identity association relationship is configured to indicate an association relationship between the virtual character and the NPC in terms of interactive identities;

[0023] A control module is used to control the interactive activities between the NPC and the virtual character based on the identity association relationship.

[0024] According to another aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the method for interacting with a non-player character as described above.

[0025] According to another aspect of the present application, a computer storage medium is provided, wherein the computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the method for interacting with a non-player character as described above.

[0026] According to another aspect of the present application, a computer program product is provided, which includes a computer program stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device performs the method of interacting with a non-player character as described above.

[0027] The beneficial effects of the technical solution provided by this application include at least:

[0028] This application displays the identity association relationship between the virtual character and the NPC, allowing the NPC to display interactive activities with the virtual character based on the identity association relationship. The interactive activities between the NPC and the virtual character are richer and more realistic, making the NPC's behavior closer to the virtual character controlled by a real user, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] FIG1 is a schematic diagram of a method for interacting with a non-player character provided by an exemplary embodiment of the present application;

[0030] FIG2 is a schematic diagram of the architecture of a computer system provided by an exemplary embodiment of the present application;

[0031] FIG3 is a flow chart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application;

[0032] FIG4 is a flow chart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application;

[0033] FIG5 is a schematic diagram of an entry interface for selecting an NPC to interact with, provided by an exemplary embodiment of the present application;

[0034] FIG6 is an interface diagram for selecting an NPC to interact with provided by an exemplary embodiment of the present application;

[0035] FIG7 is a schematic diagram of an interface of NPC information provided by an exemplary embodiment of the present application;

[0036] FIG8 is a schematic diagram of an interface for a virtual character to give a gift to an NPC, provided by an exemplary embodiment of the present application;

[0037] FIG9 is a schematic diagram of an interface for selecting an identity association relationship provided by an exemplary embodiment of the present application;

[0038] FIG10 is a schematic diagram of an interface for selecting an interactive topic provided by an exemplary embodiment of the present application;

[0039] FIG11 is a schematic diagram of an interface for setting NPC interaction permissions provided by an exemplary embodiment of the present application;

[0040] FIG12 is a schematic diagram of an interface for disassociating a virtual character from an NPC according to an exemplary embodiment of the present application;

[0041] FIG13 is a flow chart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application;

[0042] FIG14 is a block diagram of an interactive device with a non-player character provided by an exemplary embodiment of the present application;

[0043] FIG15 is a block diagram of an interactive device with a non-player character provided by an exemplary embodiment of the present application;

[0044] FIG16 is a schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0045] First, the nouns involved in the embodiments of this application are introduced:

[0046] A virtual environment is a virtual environment displayed (or provided) when an application is running on a terminal. This virtual environment can be a simulation of the real world, a semi-simulated and semi-imaginary environment, or a purely imaginary environment. This application does not limit this to any of the following: a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment. The following embodiments illustrate a three-dimensional virtual environment.

[0047] Virtual character: refers to a movable character in a virtual environment. The movable character can be a virtual person, virtual animal, cartoon character, etc. For example, people, animals, plants, walls, stones, pools, etc. displayed in a virtual environment. The virtual character is controlled by the user. The virtual character can be classified according to work, such as pharmacist, magician, medical practitioner, etc.; it can also be classified by category, such as human, beast, fairy, etc. Each virtual character has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment.

[0048] Multiplayer online games (MMOGs) are games whose servers can support a large number of players online simultaneously. These games are also known as massively multiplayer online role-playing games (MMORPGs). These games provide users with a virtual world where they can create avatars and control them to perform activities and complete tasks. Multiple avatars can team up to complete the same task or compete against other teams.

[0049] Non-Player Characters (NPCs): These are virtual characters in the game that are not controlled by the user. They are generally controlled by computer artificial intelligence and have their own unique behavioral patterns. NPC types include storyline NPCs, combat NPCs, and service NPCs. Storyline NPCs provide storylines or information to the user-controlled NPC. When the user-controlled NPC performs a task in the game, the task is accompanied by a corresponding storyline. Optionally, based on the user's interaction or actions with the storyline NPC, the NPC can provide different feedback, such as dropping virtual items, providing prompts, or issuing new tasks. Combat NPCs are NPCs that can engage in combat with the user-controlled NPC. Combat NPCs can be NPCs on the same team as the user-controlled NPC, or NPCs that the user-controlled NPC needs to attack (i.e., enemy NPCs). Service NPCs provide services to the user-controlled NPC, such as merchant NPCs or training NPCs within the virtual environment. These NPCs can perform fixed actions or publish fixed information, and the user-controlled NPC receives the service from the service NPCs, obtaining corresponding information, items, experience points, etc.

[0050] An embodiment of the present application provides a schematic diagram of a method for interacting with a non-player character, as shown in FIG1 . The method can be executed by a computer device, which can be a terminal or a server.

[0051] For example, as shown in FIG1(a), a user interface displays a game interaction interface 10, which includes a virtual character 20 and at least one NPC. In response to interactive operations between the virtual character 20 and the NPC, the computer device determines the identity association relationship between the virtual character 20 and the NPC; based on the identity association relationship, the computer device controls the NPC to change its interactive activities with the virtual character 20. Optionally, the NPC has a specific image, or the NPC does not have a specific image. For example, if the NPC does not have a specific image, the NPC can communicate with the virtual character 20 through a dialog box, give gifts, or ask questions. For example, after the virtual character 20 wins, the NPC sends a congratulatory message to the virtual character 20. For example, if the NPC has a specific image, the NPC can be a human, an animal, a mythical beast, or a fairy, or a natural landscape, or an artificial landscape.

[0052] The identity association relationship indicates the identity association relationship between the virtual character 20 and the NPC. Optionally, the identity association relationship includes at least one of a romantic relationship, a close friend relationship, a playmate relationship, and a mentor-apprentice relationship, but is not limited thereto and is not specifically limited in this embodiment of the present application. Exemplarily, the computer device determines a favorability value between the virtual character 20 and the NPC based on the interactive operation between the virtual character 20 and the NPC; and the computer device determines the identity association relationship between the virtual character 20 and the NPC based on the favorability value. Optionally, the interactive operation includes at least one of typing chat, voice chat, gift giving, and daily greetings, but is not limited thereto and is not specifically limited in this embodiment of the present application. For example, the computer device increases the favorability value between the virtual character 20 and the NPC based on the interactive operation 20. If the favorability value is greater than a first threshold, the identity association relationship between the virtual character 20 and the NPC is determined to be a "playmate relationship." If the favorability value is greater than a second threshold, the identity association relationship between the virtual character 20 and the NPC is determined to be a "mentor-apprentice relationship."

[0053] After determining the identity association relationship between the virtual character 20 and the NPC, the computer device controls the NPC to change at least one of the interaction method and interaction content with the virtual character 20. Optionally, the computer device controls the NPC to actively interact with the virtual character 20 as an interaction initiator. For example, the NPC may actively care about the virtual character 20 as a couple.

[0054] Optionally, the computer device controls the NPC to send interactive content belonging to the identity association relationship to the virtual character 20 in the identity of the NPC in the identity association relationship, that is, the interactive content sent by the NPC is expressed in the tone or emotion of the identity in the identity association relationship.

[0055] It should be noted that virtual character 20 can have multiple NPCs with different identity associations, each with a corresponding interactive topic. That is, the same event will have different responses for NPCs with different identity associations, and the same event will also have different responses for the same NPC with and without interactive topics. As shown in Figure 1 (b), after virtual character 20 defeats a monster, NPC1, who has a "playmate relationship" with virtual character 20, proactively sends a first interactive message 30 to the virtual character: "Brother, congratulations on killing another monster." NPC2, who has a "mentor-disciple relationship" with virtual character 20, proactively sends a second interactive message 40 to the virtual character: "Apprentice, you are awesome! Your master is giving you a gift."

[0056] In some embodiments, after the virtual character 20 and the NPC determine their identity association, an interactive topic can be selected between the virtual character 20 and the NPC, so that the conversation between the NPC and the virtual character 20 is no longer general, but focuses on the interactive topic.

[0057] For example, the virtual character 20 and the NPC determine their identity association relationship as a "couple relationship". When no interactive topic is selected, the virtual character 20 and the NPC can chat as a couple without any specific restrictions. After selecting the interactive topic "emotions", the virtual character 20 and the NPC will discuss topics related to "emotions" as a couple and will not discuss other topics.

[0058] In summary, the method provided in this embodiment displays a game interaction interface that includes a virtual character and at least one non-player character (NPC); determines the identity association relationship between the virtual character and the NPC in response to interactive operations between the virtual character and the NPC; and controls the NPC to change its interactive activities with the virtual character based on the identity association relationship. By determining the identity association relationship between the virtual character and the NPC, this application enables the NPC to change its interactive activities with the virtual character based on the identity association relationship. This makes the interactive activities between the NPC and the virtual character richer and more realistic, making the NPC's behavior more similar to that of a virtual character controlled by a real user, thereby improving the user experience.

[0059] 2 shows a block diagram of a computer system according to an exemplary embodiment of the present application. The computer system 100 includes a first terminal 110 , a server 120 , and a second terminal 130 .

[0060] The first terminal 110 has a client 111 installed and running that supports a virtual environment. This client 111 can be a multiplayer online battle program. When the first terminal runs the client 111, the user interface of the client 111 is displayed on the screen of the first terminal 110. The client 111 can be any of a multiplayer online game (MMOG), a battle royale shooting game, a virtual reality (VR) application, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooter (FPS), a third-person shooter (TPS), a multiplayer online tactical competitive game (MOBA), or a simulation game (SLG). In this embodiment, the client 111 is an MMOG game for example. First terminal 110 is used by first user 112. First user 112 uses first terminal 110 to control a first virtual character in a virtual environment to perform activities, or to manipulate virtual items owned by a second virtual character. The first virtual character may be referred to as the virtual character of first user 112. First user 112 may assemble, disassemble, and uninstall virtual items owned by the first virtual character, although this application does not limit this. Illustratively, the first virtual character is a first virtual character, such as a simulated human character or an animated character.

[0061] The second terminal 130 has a client 131 installed and running that supports a virtual environment. The client 131 can be a multiplayer online battle program. When the second terminal 130 runs the client 131, the user interface of the client 131 is displayed on the screen of the second terminal 130. The client can be any of an MMOG, a battle royale shooting game, a VR application, an AR program, a three-dimensional map program, a virtual reality game, an augmented reality game, an FPS, a TPS, a MOBA, and a SLG. In this embodiment, the client is an MMOG game as an example. The second terminal 130 is the terminal used by the second user 113. The second user 113 uses the second terminal 130 to control a second virtual character in the virtual environment to perform activities and operate the virtual items owned by the second virtual character. The second virtual character can be referred to as the virtual character of the second user 113. Schematically, the second virtual character is a second virtual character, such as a simulated human character or an anime character.

[0062] Optionally, the first virtual character and the second virtual character are in the same virtual environment. Optionally, the first virtual character and the second virtual character may belong to the same faction, the same team, the same organization, have a friendship relationship, or have temporary communication permissions. Optionally, the first virtual character and the second virtual character may belong to different factions, different teams, different organizations, or have a hostile relationship. Optionally, the client installed on the first terminal 110 and the second terminal 130 is the same, or the client installed on the two terminals is the same type of client on different operating system platforms (Android or iOS). The first terminal 110 can generally refer to one of multiple terminals, and the second terminal 130 can generally refer to another of the multiple terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as an example. The first terminal 110 and the second terminal 130 may be of the same or different device types, and the device type includes at least one of a smartphone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer.

[0063] FIG2 shows only two terminals, but in different embodiments, multiple other terminals 140 may be connected to the server 120. Optionally, one or more terminals 140 may be terminals corresponding to developers, and a client development and editing platform supporting a virtual environment may be installed on the terminal 140. The developer may edit and update the client on the terminal 140 and transmit the updated client installation package to the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 may then download the client installation package from the server 120 to update the client.

[0064] The first terminal 110, the second terminal 130, and other terminals 140 are connected to a server 120 via a wireless or wired network. Server 120 comprises at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 120 provides backend services for clients supporting a 3D virtual environment. Optionally, server 120 performs primary computing tasks, while the terminals perform secondary computing tasks; alternatively, server 120 performs secondary computing tasks, while the terminals perform primary computing tasks; alternatively, a distributed computing architecture is employed between server 120 and the terminals for collaborative computing.

[0065] In an illustrative example, the server 120 includes a processor 122, a user account database 123, a battle service module 124, and a user-facing input / output interface (I / O interface) 125. The processor 122 is configured to load instructions stored in the server 120 and process data in the user account database 123 and the battle service module 124. The user account database 123 is configured to store user account data used by the first terminal 110, the second terminal 130, and other terminals 140, such as user account avatars, user account nicknames, user account combat power indexes, and the service areas where the user accounts are located. The battle service module 124 is configured to provide multiple battle rooms for users to engage in battles, such as 1v1 battles, 3v3 battles, 5v5 battles, etc. The user-facing I / O interface 125 is configured to establish communication and exchange data with the first terminal 110 and / or the second terminal 130 via a wireless network or a wired network.

[0066] FIG3 is a flow chart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application. The method may be executed by a computer device, which may be the terminal 100 in FIG2 . The method includes:

[0067] Step 302: Display the game interactive interface.

[0068] The game interaction interface refers to the interface through which the user-controlled virtual character interacts with the NPC.

[0069] The game interactive interface includes a virtual character and at least one NPC.

[0070] Optionally, the NPC has a specific image, and when the virtual object interacts with the NPC, the NPC's portrait, two-dimensional or three-dimensional virtual image is displayed; or, the NPC does not have a specific image, and interacts with the virtual character in the form of text or multimedia information.

[0071] Taking the example of an NPC not having a specific image, the NPC can talk to the virtual character, give gifts or ask questions through a dialog box, but is not limited to this. The embodiments of the present application do not make specific limitations on this.

[0072] Taking the example of an NPC having a specific image, the NPC can be an NPC with a human image, or an NPC with an animal image, or an NPC with the image of a fictional mythical beast or fairy in a virtual environment, or an NPC with an image of a natural landscape (for example, the NPC's appearance is a tree), or an NPC with an image of an artificial landscape (for example, the NPC's appearance is an airplane, a ship, etc.; or a human image with elements of the above-mentioned objects), but is not limited to this, and the embodiments of the present application do not make specific limitations on this.

[0073] Step 304: In response to the interactive operation between the virtual character and the NPC, the identity association relationship between the virtual character and the NPC is displayed.

[0074] Exemplarily, an interactive operation can be a one-way or two-way communication operation between a virtual character and an NPC in a virtual environment; exemplary interactive operations include at least one of typing chat, voice chat, video chat, giving or receiving gifts, daily greetings, and playing plot animations, but are not limited thereto and are not specifically limited in the embodiments of this application. An interactive operation can also be an operation to control a virtual character to set an NPC, such as an interactive operation to set an NPC identity association. Accordingly, the interactive operation is received by a terminal, such as a control terminal of the virtual character.

[0075] The identity association relationship is used to indicate the association relationship between the virtual character and the NPC in terms of interactive identity.

[0076] Optionally, the identity association relationship includes at least one of a couple relationship, a confidant relationship, a playmate relationship, and a master-disciple relationship, but is not limited thereto. The embodiments of the present application do not make specific limitations on this.

[0077] Step 306: Displaying interactive activities between the NPC and the virtual character based on the identity association relationship.

[0078] For example, after the identity association relationship between the virtual character and the NPC is determined, the interactive activities between the NPC and the virtual character are controlled by the server, and the server provides background services for the game to which the game interactive interface belongs.

[0079] Optionally, interactive activities include interaction methods and interaction content. Interaction methods refer to the initiation of interaction between the virtual character and the NPC, for example, who initiates the interaction; interaction methods refer to the form of interaction between the virtual character and the NPC, which includes at least one of text interaction, voice interaction, and emoticon interaction, but is not limited to these.

[0080] Interactive content refers to the content of interactions between virtual characters and NPCs. Optionally, the interactive content includes at least one of, but is not limited to, identity titles, modal particles, active sentences, passive sentences, and topic ranges. For example, identity associations and interactive activities have a one-to-one mapping relationship. Before the virtual character and NPC establish an identity association, the NPC will not actively interact with the virtual character, and the interactive content follows a pre-set interactive logic, such as a pre-set interactive dialogue, which is relatively uniform. After the virtual character and NPC establish an identity association, after the virtual character defeats a monster, NPC1, who is in a "playmate relationship" with the virtual character, will proactively send a first interactive message to the virtual character: "Brother, congratulations on killing another monster." NPC2, who is in a "mentor-disciple relationship" with the virtual character, will proactively send a second interactive message to the virtual character: "Apprentice, you are awesome! I am sending you a gift." In other words, NPCs with identity associations can not only proactively initiate interactions, but NPCs with different identity associations can also perform different interactions for the same event.

[0081] To sum up, the method provided in this embodiment, this application, by displaying the identity association relationship between the virtual character and the NPC, enables the NPC to display interactive activities with the virtual character based on the identity association relationship. The interactive activities between the NPC and the virtual character are richer and more realistic, making the NPC's behavior closer to the virtual character controlled by a real user, thereby improving the user experience.

[0082] FIG4 is a flow chart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application. The method may be executed by a computer device, which may be the terminal 100 in FIG2 . The method includes:

[0083] Step 402: Display the game interactive interface.

[0084] The game interaction interface refers to the interface through which the user-controlled virtual character interacts with the NPC. The game interaction interface includes a virtual character and at least one NPC. For example, as shown in FIG5 , which is a schematic diagram of the entry interface for selecting the NPC to be interacted with, as shown in FIG5 (a), in order to interact with the NPC (also known as obtaining a relationship associated with the NPC), it is necessary to obtain and activate a pass card to activate the gameplay. A relationship refers to an identity relationship established between a virtual character and an NPC. The content of the pass card is shown in FIG5 (b). The first information 501 is used to indicate the virtual combat power bonus information of the above-mentioned pass card for performing virtual competitions in the virtual environment, and the second information 502 is used to indicate the benefits and privileges brought by the pass card, including the types and quantities of virtual items that the virtual object has the right to receive. By clicking the activation control 503 to activate the pass card, the virtual character and the NPC can interact.

[0085] As shown in FIG6 , the interface diagram for selecting an NPC to be interacted with includes four NPC positions in the interface for selecting an NPC to be interacted with, that is, the virtual character can interact with the four NPCs. The first NPC is enabled by default. By triggering the “match” control 601, the virtual character and the NPC are matched. The “match” control is used to randomly match an NPC for the virtual character (for example, randomly extract an NPC character from a preset NPC character pool). It should be understood that after matching an NPC, there is no identity association relationship between the virtual character and the NPC (for example, before executing step 404, the identity association relationship between the virtual character and the NPC is empty). The other three NPC positions need to meet certain conditions to be unlocked, and the NPC can be matched only after the NPC position is unlocked. It is understandable that the “matching” here simulates the first acquaintance in real life. That is, after unlocking an NPC position, the virtual character can get to know a new NPC through matching to simulate the interactive process between new friends such as adding friends in social applications and leaving phone numbers in the real world. The unlocking condition for the second NPC position is: the favorability value with one NPC reaches 50; the unlocking condition for the third NPC position is: the favorability value with one NPC reaches 100; and the unlocking condition for the fourth NPC position is: the favorability value with two NPCs reaches 100. By setting different unlocking conditions and gradually increasing the unlocking conditions, the interaction between the virtual character and the NPC is promoted, and the user experience is improved. In addition, in the embodiment of the present application, four NPC positions are set, but the invention is not limited to this. When all four NPC positions are unlocked, the virtual character can interact with multiple NPCs at the same time, making the relationship between the virtual character and the NPC closer to the relationship of having multiple friends in real life, making the interaction between the virtual character and the NPC more realistic.

[0086] Step 404: In response to the interactive operation between the virtual character and the NPC, the identity association relationship between the virtual character and the NPC is displayed.

[0087] Interactive operations include at least one of typing chat, voice chat, gift giving, and daily greetings, but are not limited to these. This embodiment of the present application does not specifically limit this. Identity association is used to indicate the identity association between the virtual character and the NPC. Optionally, the identity association includes at least one of a romantic relationship, a close friend relationship, a playmate relationship, and a mentor-apprentice relationship, but is not limited to these. This embodiment of the present application does not specifically limit this.

[0088] For example, a computer device displays a favorability value between the virtual character and the NPC based on an interactive operation between the virtual character and the NPC. The computer device then displays the identity association between the virtual character and the NPC corresponding to the favorability value. Accordingly, a server determines the favorability value between the virtual character and the NPC based on the interactive operation and, based on the favorability value, determines the identity association between the virtual character and the NPC. The favorability value and identity association displayed by the computer device are instructed by the server to be displayed. In some embodiments, the computer device selects an identity association between the virtual character and the NPC within a range of identity associations based on the favorability value.

[0089] Optionally, when the favorability value between the virtual character and the NPC is greater than a first threshold, the computer device selects an identity association within a range of interest identity associations (e.g., including couples and playmates, for a total of two identity associations); when the favorability value between the virtual character and the NPC is greater than a second threshold, the computer device selects an identity association within a second range of identity associations (e.g., including couples, confidants, playmates, and mentors, for a total of four identity associations), wherein the number of identity associations within the second range is greater than the number of identity associations within the interest identity association range, and the second threshold is greater than the first threshold. This simulates the social dynamics in the real world where social relationships develop in diverse ways as favorability increases.

[0090] It is understandable that this embodiment only takes two identity association relationship ranges as an example, but is not limited thereto.

[0091] The favorability value refers to the interaction score between the virtual character and the NPC. The favorability value is only valid between NPCs that match the virtual character and is irrelevant to NPCs with other virtual characters. Alternatively, the computer device can calculate the favorability value by scoring the interactive activities between the virtual character and the NPC, or by rating the activity events.

[0092] As shown in Figure 7, the interface diagram of NPC information shows that the four NPC positions in the figure are all matched to the corresponding NPCs. Each NPC in the figure includes the NPC's name 701, the favorability value (represented by the number of heart shapes), the topic selection control 703, the identity association relationship identifier 702, the chat control 704 and the gift control 705. The favorability value is used to reflect the interaction score between the virtual character and the NPC. The more heart shapes there are, the higher the favorability value. By triggering the topic selection control 703, you can select the interaction topic between the virtual character and the NPC. By triggering the identity association relationship identifier 702, you can select the identity association relationship between the virtual character and the NPC. By triggering the chat control 704, you can chat with the NPC. By triggering the gift control 705, you can give gifts to the NPC.

[0093] Optionally, the upper limit of the favorability value is 500 points, each 50 points is half a heart, and one heart is 100 points.

[0094] Exemplarily, methods for increasing favorability include at least one of the following, but are not limited to: a virtual character chatting with an NPC with whom they have a relationship; a virtual character giving a gift to an NPC with whom they have a relationship; or an NPC proactively giving a gift to the virtual character. Optionally, when a virtual character chats with an NPC with whom they have a relationship, each conversation increases favorability by one point, with each NPC gaining a maximum of five points of favorability per day through chat.

[0095] Optionally, when a virtual character presents a gift to an NPC with whom it has an identity association, each NPC may receive a maximum of two gifts per day, and the favorability value corresponding to each gift may be the same or different.

[0096] When the favorability value corresponding to each gift is different, the favorability value is proportional to the virtual value of the gift.

[0097] Optionally, the scenario in which the NPC proactively presents a gift to the virtual character includes at least one of the following:

[0098] When the avatar logs in for the first time in a day / week / month, the NPC proactively presents the avatar with a game-opening gift; the game-opening gift may include, but is not limited to, at least one of virtual clothing, virtual props, virtual gold coins, experience points, game strategies, and game tips.

[0099] When a virtual character wins a game, the NPC will proactively present a congratulatory gift to the virtual character.

[0100] When a virtual character loses a game, the NPC will proactively give the virtual character a consolation gift.

[0101] Optionally, the gifts that the NPC proactively presents to the virtual character include at least one of virtual clothes, virtual props, virtual gold coins, experience points, game strategies, and game skills, but are not limited thereto.

[0102] Figure 8 shows a schematic diagram of the interface for a virtual character giving a gift to an NPC. By triggering the gift control, gifts can be given to the NPC. The interface displays the NPC's portrait 801, the NPC's name 802, and their favorability value 803. The gifts given by the virtual character to the NPC are virtual items from the virtual character's backpack. Virtual items vary in type and quality, and each virtual item also corresponds to a different favorability value. The virtual character can select virtual items from their backpack and give them to the NPC.

[0103] Optionally, the number of times a virtual character can give gifts to an NPC per day has an upper limit, for example, a virtual character can only give gifts to an NPC three times per day. Similarly, the number of times an NPC can actively give gifts to a virtual character also has an upper limit.

[0104] Exemplarily, methods for reducing the favorability value include at least one of the following, but are not limited to: the virtual character has not chatted with an NPC with an identity association for more than a first number of days; the virtual character has not given a gift to an NPC with an identity association for more than a first number of days; the virtual character changes the identity association relationship between the virtual character and the NPC.

[0105] For example, if a virtual character fails to have a complete conversation with an NPC with whom they have a relationship and receives no gifts for more than three days, their favorability points will be deducted by three points daily starting on the fourth day. On the fourth day, when the user logs online, the virtual character will proactively send a greeting to the user, expressing their regret that their relationship is fading. If the virtual character has multiple NPCs with whom they have a relationship and all of them are in the favorability deduction stage, only one of the NPCs will be randomly selected to send the greeting to the user.

[0106] In some embodiments, if the favorability between the avatar and the NPC falls below a threshold for disassociation, the identity association between the avatar and the NPC is automatically disassociated. For example, if the threshold for disassociation is set to 10, the identity association between the avatar and the NPC is automatically disassociated if the favorability between the avatar and the NPC falls below 10.

[0107] Exemplarily, the computer device controls the NPC to interact with the virtual character with different emotions based on the favorability value.

[0108] Optionally, the NPC's emotions towards the virtual character may vary depending on the favorability value between the NPC and the virtual character. In some embodiments, the NPC's emotions may be implemented using at least one of a neural network model, a behavior tree, and a state machine. Illustratively, the NPC's emotions are implemented using a neural network model. Optionally, the neural network model is built on the server, or the neural network model is located on the client.

[0109] In some embodiments, a neural network model is built on a server and inputs human emotion data and activity data corresponding to the emotions, such as happiness, sadness, worry, fear, panic, surprise, frustration, and longing, as well as activity events such as receiving a reward, being hurt, failing a task, encountering a bad person, completing a difficult task in a short period of time, task failure, and missing a loved one. The neural network model is trained using this data to obtain a trained neural network model. When data on interactive activities corresponding to different favorability values ​​are input into the neural network model, the corresponding emotion data is output, allowing the server to control the NPC to attach different emotions to different interactive activities.

[0110] For example, as shown in Figure 9, a schematic diagram of an interface for selecting an identity relationship shows that if the favorability between the virtual character and the NPC meets the identity relationship selection criteria, the virtual character can select an identity relationship with the NPC. The identity relationships shown in the figure include a close friend relationship, a confidant relationship, a comradeship relationship, a playmate relationship, and a mentor relationship. The identity relationship options in the figure are determined based on the favorability between the virtual character and the NPC and the attribute information of the virtual character and the NPC. That is, the computer device determines the identity relationships within the identity relationship range based on the favorability value and the attribute information of the virtual character and the NPC for the user to select. For example, if the virtual character and the NPC are of the same sex, the user can select "Brother" or "Bestie"; if the virtual character and the NPC are of the opposite sex, the user can select "Close friend" or "Large friend" relationship. Optionally, if the identity relationship does not meet the attribute requirements, the user needs to reselect the NPC or identity relationship. For example, a "Close friend" relationship requires the user to be of the opposite sex. If the user is of the same sex, the user needs to reselect the NPC or identity relationship.

[0111] Step 406: Display at least one of the interaction method and interaction content between the NPC and the virtual character based on the identity association relationship.

[0112] Accordingly, at least one of the interaction method and content between the NPC and the virtual character is controlled by the server based on the identity association relationship. The interaction method refers to the form of initiation of the interaction between the virtual character and the NPC, for example, who is the initiator of the interaction; the interaction method refers to the form of interaction between the virtual character and the NPC, which includes at least one of text interaction, voice interaction, and emoticon interaction, but is not limited to these.

[0113] Interactive content refers to the content of the interaction between the virtual character and the NPC. Optionally, the interactive content includes at least one of identity titles, modal particles, active sentences, passive sentences, and topic range, but is not limited thereto.

[0114] For example, a computer device displays an NPC as the initiator of an interaction with a virtual character; for example, when the virtual character falls, the NPC proactively cares for the virtual character as a couple. Accordingly, the server controls the NPC as the initiator of the interaction with the virtual character based on the identity association.

[0115] The computer device displays that the NPC sends interactive content to the virtual character in the interest identity indicated by the identity association relationship, and the interactive content is one of the multiple preset interactive content corresponding to the identity association relationship. Taking the master-apprentice relationship as an example, the NPC's interest identity indicated by the master-apprentice relationship is the master (teacher) identity. The interactive content is one of the multiple preset interactive content corresponding to the master-apprentice relationship; for example: the multiple preset interactive contents corresponding to the identity association relationship include the teaching content of the master identity to the apprentice (student) identity, such as teaching the use of virtual props to attack enemy characters in the virtual environment. Accordingly, based on the identity association relationship, the server controls the NPC to send interactive content to the virtual character in the interest identity.

[0116] Furthermore, the computer device displays the interactive content sent by the NPC to the virtual character, including the identity name of the virtual character. Accordingly, the server controls the NPC to send the interactive content including the identity name of the virtual character to the virtual character using the interest identity based on the identity association relationship.

[0117] For example, when the identity association relationship between the virtual character and the NPC is a master-apprentice relationship, the virtual character acts as the master and the NPC acts as the apprentice; or, the virtual character acts as the apprentice and the NPC acts as the master. When the virtual character interacts with the NPC, the identity titles between the virtual character and the NPC will change according to the identity association relationship.

[0118] Optionally, in response to the NPC and the virtual character being in a master-apprentice relationship, the computer device displays imperative interaction content sent by the NPC to the virtual character as the master. Imperative interaction content refers to interaction content that includes directive messages between superiors and subordinates. Imperative interaction content is intended to simulate directive messages between a master and apprentice in real life. For example, "Apprentice, go get the master a pot of wine."

[0119] In some embodiments, when a virtual character wins a game, the NPC proactively sends a review to the virtual character. The review is the NPC's evaluation of the virtual character's actions and performance in the game victory scenario. The review is used to showcase the virtual character's outstanding actions or scenes in the game victory scenario.

[0120] In some embodiments, if a virtual character loses a match, the NPC proactively sends guidance content to the virtual character. Guidance content refers to guidance provided by the NPC based on the virtual character's performance in the match failure scenario. Guidance content is used to demonstrate the shortcomings and areas for improvement in the virtual character's performance in the match failure scenario. Alternatively, guidance content may refer to technical guidance for passing the match. Alternatively, guidance content may refer to tips for quickly passing the match. Optionally, in response to the NPC and the virtual character being in a relationship, the computer device displays communicative interactive content sent by the NPC to the virtual character as a couple. Communicative interactive content refers to interactive content that includes communication-type information between people of the same status level. Communicative interactive content is used to simulate real-life interactions between equals, for example, communication between a couple.

[0121] In an optional implementation, the computer device is further used to display interactive content including historical interactive information sent by the NPC to the virtual character; the historical interactive information refers to the interactive content between the virtual character and the NPC before the identity association relationship is determined.

[0122] Accordingly, the server obtains historical interaction information between the virtual character and the NPC; and based on the identity association relationship and historical interaction information, controls the NPC to change the interaction content between the NPC and the virtual character.

[0123] Historical interaction information is captured to simulate real-life memories, representing the interaction memories between NPCs and virtual characters. For example, if the virtual character and the NPC previously discussed Xuanyuan City, and later discussed a place they wanted to visit, the NPC would proactively ask to go to Xuanyuan City with the virtual character.

[0124] In an optional implementation, after the virtual character and the NPC determine an identity association relationship, in response to a selection operation of an interactive topic, the NPC is displayed to send the virtual character interest interactive content belonging to the interest topic selected by the selection operation.

[0125] Interactive topics refer to topics that can be discussed between virtual characters and NPCs.

[0126] Optionally, the interactive topics include at least one of historical topics, emotional topics, social anecdotes, photography topics, and geographical topics, but are not limited thereto, and the embodiments of the present application do not specifically limit this. The role of interactive topics is to control the chat content between the virtual character and the NPC within the scope of the topic, rather than talking in general terms. It should be noted that the virtual character can match multiple NPCs, each NPC corresponds to an identity association relationship, and after determining the identity association relationship, the virtual character can choose the topic to talk about, so that the virtual character can progress step by step when interacting with the NPC, thereby improving the intelligence of the NPC.

[0127] For example, as shown in FIG10 , which illustrates an interface diagram for selecting interactive topics, when selecting an interactive topic between a virtual character and an NPC, the user first selects a topic type 1001. The keywords for topic type 1001 can be preset or user-entered. After selecting topic type 1001, the user clicks "Search" in topic content 1002 to search for the topic. The computer device generates 10 topics and displays them in topic content 1002 for the user to select. For example, the topic content displayed in topic content 1002 is: "Eternal Tenderness" and "Love That Lasts Forever." The search results are one-time actions and are recorded and cannot be changed. The user can only select one topic and cannot search for the same topic type again, but can search for a different type. After selecting topic content 1002, the user clicks "Search" in topic viewpoint 1003 to search for a viewpoint. The computer device generates five viewpoints and displays them in topic viewpoint 1003 for the user to select. For example, the topic viewpoint displayed in topic viewpoint 1003 is: "Only when the mountains are gone and the sky and the earth are united can I dare to break up with you." The search result is a one-time action, recorded and cannot be changed. The user can only select the viewpoint and cannot search again for the same viewpoint. However, the user can search for a different viewpoint. After the user selects the viewpoint 1003, they can add topics to the topic content 1002 in the topic supplement 1004. For example, they can add a cool or gentle tone to the NPC's interaction tone, but this is not limited to this. After the user has made all selections, they click OK to complete the interaction topic selection.

[0128] After determining the identity relationship and interaction topic between the avatar and the NPC, when the avatar interacts with the NPC, the NPC will modify the interaction content based on the identity relationship and interaction topic. For example, if the avatar and the NPC are brothers, the NPC cannot reply as if they are mentors. The opinions and supplements in the interaction topic will also affect the interaction content sent by the NPC. For example, if the interaction topic is "What to do when you are undecided" and the topic opinion is "Act decisively", the NPC's subsequent responses will no longer be hesitant.

[0129] It should be noted that after entering the keyword, the computer device needs to add certain restrictive words to the keyword to convert it into an instruction that the NPC can understand. For example, if the keyword entered is "emotion", the instruction that the NPC can understand is "Please provide 10 topics of the emotion type". In some embodiments, as shown in the interface diagram of the NPC interaction permission setting in Figure 11, NPCs that have an identity association with virtual characters can also interact with other virtual characters, and users can adjust the interaction permissions between their own NPCs and other virtual characters. Interaction permissions include chat permissions (private chat permissions) and a whitelist of loudspeaker dialogue permissions (public dialogue permissions). The whitelist includes identity associations corresponding to NPCs that have an identity association with virtual characters, and NPCs on the whitelist can interact with other virtual characters.

[0130] In some embodiments, as shown in the interface diagram of the virtual character and the NPC dissolving the identity association relationship in FIG12, a prompt message of dissolving the identity association relationship will be displayed when the virtual character and the NPC dissolve the identity association relationship, as shown in FIG12 (a); after clicking OK to dissolve, a password input interface will be displayed, as shown in FIG12 (b); after successfully entering the password, an interface of successful identity association dissolution will be displayed, as shown in FIG12 (c).

[0131] In summary, the method provided in this embodiment, by displaying at least one of the interaction method and interaction content corresponding to the identity association relationship between the NPC and the virtual character, the NPC can change the interaction activities with the virtual character based on the identity association relationship, enriching the interaction activities between the NPC and the virtual character, making the NPC's behavior closer to the virtual character controlled by the real user, and improving the user experience.

[0132] The method provided in this embodiment displays the interaction methods and / or content between virtual characters and NPCs, enabling NPCs to actively interact with virtual characters. This enriches the interactive activities between NPCs and virtual characters, making the NPC's behavior more similar to that of virtual characters controlled by real users, and improving the user experience. The method provided in this embodiment uses historical interaction information between virtual characters and NPCs to simulate the interaction memory between virtual characters and NPCs, making the NPC's behavior more similar to that of virtual characters controlled by real users, and improving the user experience.

[0133] The method provided in this embodiment selects interactive topics between virtual characters and NPCs, enabling more targeted interactions between them and avoiding generalities. This allows the NPC's behavior to more closely resemble that of a virtual character controlled by a real user, enhancing the user experience. The method provided in this embodiment updates and displays the favorability value between the virtual character and the NPC based on the interactive operations between the virtual character and the NPC. The identity association between the virtual character and the NPC is determined based on the favorability value. As the interaction deepens, the relationship becomes closer, making the NPC's behavior more realistic.

[0134] For example, an exemplary embodiment of the present application provides a method for interacting with non-player characters. Within the highly social gaming ecosystem of MMORPGs, this solution offers a new way for virtual characters to interact with NPCs. Users can engage in conversations with NPCs with whom they have identity relationships, or give them gifts to increase their favorability, thereby unlocking a selection of interactive topics and identity relationships with the NPC. Initially, the NPC will only engage in general conversations about the user's worldview. As favorability increases, the NPC's tone and attitude will become increasingly friendly, allowing users to further select topics and their perspectives for in-depth discussions. At this point, the NPC will no longer engage in general discussions but will instead develop clear perspectives on specific issues and elaborate on them. As favorability increases, an identity relationship can be established with the NPC. After selecting an identity relationship, the NPC's attitude toward the virtual character will change based on the type of identity relationship. Users can also select relationships / events between the virtual character and the NPC to enhance their "memories," which in turn will further alter the NPC's conversational content. Identity associations will also bring about active concern from NPCs. For example, when a virtual character is defeated or upgraded, the NPC will send words of condolence, or give the player a gift, and also send a status-enhancing BUFF. The AI ​​model corresponding to the NPC can independently reply to the player's questions after learning the game worldview; the reply of the AI ​​model corresponding to the NPC requires certain restrictions so that it knows how to play an NPC without being exposed; the favorability needs to be converted into instructions that the AI ​​can understand to affect the AI's reply attitude; the AI's reply also needs to be affected by effective emotional instructions so that it knows an identity association with the player, such as a brotherly relationship, then it cannot reply as a master-apprentice relationship; players can choose some topics and viewpoints for the AI ​​to influence the AI's reply. For example, the topic is what to do when you are undecided, and the viewpoint is to make a decision immediately, then the AI's future replies will no longer be hesitant. Hesitation; players can increase the memory between themselves and the AI ​​to influence the AI's response. For example, if the player and the AI ​​have been to Xuanyuan City before, then when the AI ​​talks about the place they want to go in the future, it will take the initiative to say that it wants to go to Xuanyuan City with the player again; all of the above content that affects the AI's response will be compiled into a 4,000-word voice that the AI ​​can understand and passed to the AI ​​model, because the AI ​​model in the game is not trained by the player himself, but is standardized by the game through this 4,000-word description, similar to an actor's script. The AI ​​needs to perform according to the script, and the keywords and sentence forms of this 4,000-word text are key, and all design requirements need to be included.

[0135] FIG13 is a flow chart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application. The method may be executed by a server. The method includes:

[0136] Step 312: Sending data related to the game interactive interface to the terminal;

[0137] The game interaction interface includes a virtual character and at least one non-player character (NPC). The game interaction interface refers to the interface through which the user-controlled virtual character interacts with the NPC. For an introduction to virtual characters and NPCs, please refer to step 302 above. Exemplarily, the data sent by the server to the terminal may be at least one of instruction information, multimedia materials, a video stream, and an audio stream. In one example, the game to which the game interaction screen belongs is a game application, and the data sent by the server to the terminal is instruction information instructing the terminal to display the game interaction screen. Furthermore, the multimedia materials in the game interaction interface are stored by the terminal, and the instruction information is used to instruct the terminal which multimedia materials are needed to display the game interaction screen and / or how the multimedia materials are rendered to display the game interaction screen (such as the position of the multimedia materials in the game interaction screen). In another example, the game to which the game interaction screen belongs is a web game, and the data sent by the server to the terminal includes multimedia materials. The terminal renders and displays the game interaction screen based on the multimedia materials provided by the server. In yet another example, the game to which the game interaction screen belongs is a cloud game, which is run on a server. The server renders the video stream of the cloud game, and the terminal receives and displays the video stream sent by the server. It is understandable that the video stream carries audio information, i.e., includes an audio stream.

[0138] Step 314: Determine the identity association relationship between the virtual character and the NPC based on the interactive operation between the virtual character and the NPC;

[0139] Exemplarily, the interactive operation can be a one-way or two-way communication operation between a virtual character and an NPC; the identity association relationship is used to indicate the association relationship between the virtual character and the NPC in terms of interactive identity; optionally, the identity association relationship includes at least one of a couple relationship, a confidant relationship, a playmate relationship, and a master-disciple relationship, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.

[0140] Exemplarily, the identity association relationship displayed by the terminal is displayed based on an instruction from the server. For example, the server sends instruction information to the terminal, instructing the terminal to display the identity association relationship, and the instruction information carries the identity association relationship to be displayed.

[0141] Step 316: Controlling the interactive activities between the NPC and the virtual character based on the identity association relationship;

[0142] Interactive activities are interactions between NPCs and virtual characters. Interactive activities can be initiated by either the NPC or the virtual character. It should be noted that interactive activities can involve either the NPC or the virtual character sending a message to the other, or they can involve both parties exchanging messages. In one optional implementation, step 316 can be implemented by controlling at least one of the interaction method and content between the NPC and the virtual character based on the identity association relationship.

[0143] The interaction method refers to the form of interaction between the virtual character and the NPC, for example, who is the initiator of the interaction; the interaction method refers to the form of interaction between the virtual character and the NPC, and the interaction form includes at least one of text interaction, voice interaction, and emoticon interaction, but is not limited to these.

[0144] Interactive content refers to the content of the interaction between the virtual character and the NPC. Optionally, the interactive content includes at least one of identity titles, modal particles, active sentences, passive sentences, and topic range, but is not limited thereto.

[0145] In another optional implementation, the following steps are further included: obtaining historical interaction information between the virtual character and the NPC, where the historical interaction information refers to the interaction content between the virtual character and the NPC before the identity association relationship is determined;

[0146] Based on identity associations and historical interaction information, control NPCs to change the content of interactions with virtual characters;

[0147] Historical interaction information is obtained to simulate real-life memories, and the interaction memory between NPCs and virtual characters is represented by historical interaction information.

[0148] To sum up, the method provided in this embodiment determines the identity association relationship between the virtual character and the NPC, so that the NPC can control the interactive activities with the virtual character based on the identity association relationship. The interactive activities between the NPC and the virtual character are richer and more realistic, making the NPC's behavior closer to the virtual character controlled by the real user, thereby improving the user experience.

[0149] FIG14 shows a schematic diagram of a structure of a device for interacting with a non-player character provided by an exemplary embodiment of the present application. The device can be implemented as all or part of a computer device through software, hardware, or a combination of both. The device includes:

[0150] A display module 1301 is used to display a game interactive interface, wherein the game interactive interface includes a virtual character and at least one non-player character (NPC);

[0151] The display module 1301 is further configured to display the identity association relationship between the virtual character and the NPC in response to the interactive operation between the virtual character and the NPC; the identity association relationship is used to indicate the association relationship between the virtual character and the NPC in terms of interactive identity;

[0152] The display module 1301 is further configured to display the interactive activities between the NPC and the virtual character based on the identity association relationship.

[0153] In some embodiments, the display module 1301 is configured to display at least one of an interaction method and an interaction content between the NPC and the virtual character based on the identity association relationship.

[0154] In some embodiments, the display module 1301 is used to display the NPC as the interaction initiator actively interacting with the virtual character.

[0155] In some embodiments, the display module 1301 is configured to display that the NPC sends interactive content to the virtual character using the identity of interest indicated by the identity association relationship, and the interactive content is one of a plurality of preset interactive contents corresponding to the identity association relationship.

[0156] In some embodiments, the display module 1301 is configured to display the interactive content sent by the NPC to the virtual character, including the identity name of the virtual character given by the interested identity.

[0157] In some embodiments, the display module 1301 is configured to display, in response to the NPC and the virtual character being in a master-disciple relationship, that the NPC sends command-type interactive content to the virtual character as a master.

[0158] The imperative interactive content refers to interactive content including instructional information between upper and lower identity levels.

[0159] In some embodiments, the display module 1301 is configured to display, in response to the NPC and the virtual character being in a relationship, that the NPC is sending interactive communication content to the virtual character as a couple.

[0160] The communicative interactive content refers to interactive content that includes communicative information between people at the same identity level.

[0161] In some embodiments, the display module 1301 is configured to display the interactive content including historical interactive information sent by the NPC to the virtual character, where the historical interactive information refers to the interactive content between the virtual character and the NPC before the identity association relationship is determined.

[0162] In some embodiments, the display module 1301 is configured to display, in response to an operation of selecting an interactive topic, interest interactive content sent by the NPC to the virtual character and belonging to the interest topic selected by the selection operation.

[0163] In some embodiments, the display module 1301 is used to update and display the favorability value between the virtual character and the NPC based on the interactive operation; and display the identity association relationship between the virtual character and the NPC corresponding to the favorability value.

[0164] FIG15 shows a schematic diagram of a structure of a device for interacting with non-player characters provided by an exemplary embodiment of the present application. The device can be implemented as all or part of a server through software, hardware, or a combination of both. The device includes:

[0165] A sending module 1305 is configured to send data related to a game interactive interface to a terminal, wherein the game interactive interface includes a virtual character and at least one non-player character (NPC);

[0166] The relationship determination module 1306 is configured to determine an identity association relationship between the virtual character and the NPC based on the interaction operation between the virtual character and the NPC; the identity association relationship is used to indicate the association relationship between the virtual character and the NPC in terms of interactive identity;

[0167] The control module 1307 is configured to control the interactive activities between the NPC and the virtual character based on the identity association relationship.

[0168] In some embodiments, the control module 1307 is configured to control at least one of an interaction method and an interaction content between the NPC and the virtual character based on the identity association relationship.

[0169] In some embodiments, the device also includes: an acquisition module 1308, used to obtain historical interaction information between the virtual character and the NPC, the historical interaction information refers to the interaction content between the virtual character and the NPC before the identity association relationship is determined; a control module 1307, used to control the NPC to change the interaction content between the virtual character and the virtual character based on the identity association relationship and the historical interaction information.

[0170] FIG16 illustrates a block diagram of a computer device 1400 according to an exemplary embodiment of the present application. Computer device 1400 may be a portable mobile terminal, such as a smartphone, tablet computer, or MP3 (Moving Picture Experts Group Audio Layer III) or MP4 (Moving Picture Experts Group Audio Layer IV) player. Computer device 1400 may also be referred to as a user device, portable terminal, or other similar terminology.

[0171] Typically, the computer device 1400 includes a processor 1401 and a memory 1402 .

[0172] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1401 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1401 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0173] The memory 1402 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1402 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1401 to implement the display method of the virtual environment screen provided in the embodiment of the present application. In some embodiments, the computer device 1400 may also optionally include: a peripheral device interface 1403 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1404, a touch display screen 1405, a camera 1406, an audio circuit 1407 and a power supply 1408.

[0174] The peripheral device interface 1403 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0175] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with communication networks and other communication devices via electromagnetic signals. The touch screen display 1405 is used to display a user interface (UI). This UI may include graphics, text, icons, videos, or any combination thereof. The camera assembly 1406 is used to capture images or videos. Optionally, the camera assembly 1406 includes a front-facing camera and a rear-facing camera. The audio circuit 1407 is used to provide an audio interface between the user and the computer device 1400. The audio circuit 1407 may include a microphone and a speaker. The microphone is used to capture sound waves from the user and the environment and convert them into electrical signals that are input to the processor 1401 for processing, or to the radio frequency circuit 1404 for voice communication. The power supply 1408 is used to power the various components of the computer device 1400. The power supply 1408 may be AC ​​power, DC power, a disposable battery, or a rechargeable battery. In some embodiments, the computer device 1400 also includes one or more sensors 1409. The one or more sensors 1409 include, but are not limited to, an accelerometer 1410, a gyroscope 1411, a pressure sensor 1412, an optical sensor 1413, and a proximity sensor 1414. The accelerometer 1410 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the computer device 1400. The gyroscope 1411 can detect the orientation and rotation angle of the computer device 1400. The gyroscope 1411 can work in conjunction with the accelerometer 1410 to capture the user's 3D movements on the computer device 1400. The pressure sensor 1412 can be located on the side frame of the computer device 1400 and / or below the touchscreen display 1405. It detects the user's gripping signal on the computer device 1400 and / or controls operational controls on the UI interface based on the user's pressure on the touchscreen display 1405. The optical sensor 1413 is used to capture ambient light intensity. The proximity sensor 1414, also known as a distance sensor, is typically located on the front of the computer device 1400. The proximity sensor 1414 is used to detect the distance between the user and the front of the computer device 1400. Those skilled in the art will appreciate that the structure shown in FIG14 does not limit the computer device 1400 and may include more or fewer components than shown, or combine certain components, or employ a different component arrangement.

[0176] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the interaction method with a non-player character provided by the above-mentioned method embodiments.

[0177] An embodiment of the present application further provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to implement the methods for interacting with non-player characters provided in the above-mentioned method embodiments.

[0178] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes to implement the interaction methods with non-player characters provided in the above-mentioned method embodiments.

[0179] It is understandable that in the specific implementation methods of this application, the data involved, historical data, and portraits and other data related to user data processing related to user identity or characteristics, when the above embodiments of this application are applied to specific products or technologies, need to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

Claims

1. A method for interacting with a non-player character, the method being executed by a terminal, the method comprising: Displaying a game interactive interface, wherein the game interactive interface includes a virtual character and at least one non-player character NPC; In response to the interactive operation between the virtual character and the NPC, displaying the identity association relationship between the virtual character and the NPC; The identity association relationship is used to indicate the association relationship between the virtual character and the NPC in terms of interactive identity; The interactive activities between the NPC and the virtual character based on the identity association relationship are displayed.

2. The method according to claim 1, wherein: The display of the interactive activity between the NPC and the virtual character based on the identity association relationship includes: At least one of an interaction method and an interaction content between the NPC and the virtual character based on the identity association relationship is displayed.

3. The method according to claim 2, wherein: The display of the interaction between the NPC and the virtual character based on the identity association relationship includes: The NPC is shown as an interaction initiator actively interacting with the virtual character.

4. The method according to claim 2, wherein: The display of the interactive content between the NPC and the virtual character based on the identity association relationship includes: The NPC is displayed sending interactive content to the virtual character in the interest identity indicated by the identity association relationship, and the interactive content is one of a plurality of preset interactive contents corresponding to the identity association relationship.

5. The method according to claim 4, wherein: The displaying that the NPC sends interactive content to the virtual character with the identity of interest indicated by the identity association relationship includes: The interactive content sent by the NPC to the virtual character is displayed, including the identity name of the virtual character given by the interest identity.

6. The method according to claim 4, wherein: The displaying that the NPC sends interactive content to the virtual character with the identity of interest indicated by the identity association relationship includes: In response to the NPC and the virtual character being in a master-apprentice relationship, displaying that the NPC sends command-type interactive content to the virtual character as a master; The imperative interactive content refers to interactive content including instructive information between upper and lower identity levels.

7. The method according to claim 4, wherein: The displaying that the NPC sends interactive content to the virtual character with the identity of interest indicated by the identity association relationship includes: In response to the NPC and the virtual character being in a relationship, displaying that the NPC sends communication-style interactive content to the virtual character as a couple; The communicative interactive content refers to the interactive content including communicative information between people at the same identity level.

8. The method according to any one of claims 1 to 7, wherein: The method further comprises: The interactive content including historical interactive information sent by the NPC to the virtual character is displayed, where the historical interactive information refers to the interactive content between the virtual character and the NPC before the identity association relationship is determined.

9. The method according to any one of claims 1 to 7, wherein: The method further comprises: In response to the selection operation of the interactive topic, the NPC is displayed sending the interest interactive content belonging to the interest topic selected by the selection operation to the virtual character.

10. The method according to any one of claims 1 to 7, wherein: The displaying of the identity association relationship between the virtual character and the NPC in response to the interactive operation between the virtual character and the NPC includes: Based on the interactive operation, updating and displaying the favorability value between the virtual character and the NPC; The identity association relationship between the virtual character and the NPC corresponding to the favorability value is displayed.

11. A method for interacting with a non-player character, the method being executed by a server, the method comprising: Sending data related to a game interactive interface to a terminal, wherein the game interactive interface includes a virtual character and at least one Non-player characters (NPCs); Determining an identity association relationship between the virtual character and the NPC based on an interactive operation between the virtual character and the NPC; The identity association relationship is used to indicate the association relationship between the virtual character and the NPC in terms of interactive identity; The interactive activities between the NPC and the virtual character are controlled based on the identity association relationship.

12. The method according to claim 11, wherein: The controlling the interactive activity between the NPC and the virtual character based on the identity association relationship includes: At least one of the interaction mode and interaction content between the NPC and the virtual character is controlled based on the identity association relationship.

13. The method according to claim 11, wherein: The method further comprises: Acquiring historical interaction information between the virtual character and the NPC, the historical interaction information referring to the interaction content between the virtual character and the NPC before determining the identity association relationship; Based on the identity association relationship and the historical interaction information, the NPC is controlled to change the interaction content between the NPC and the virtual character.

14. An interactive device with a non-player character, the device comprising: A display module, used to display a game interactive interface, wherein the game interactive interface includes a virtual character and at least one non-player character NPC; The display module is further used to display the identity association relationship between the virtual character and the NPC in response to the interactive operation between the virtual character and the NPC; the identity association relationship is used to indicate the association relationship between the virtual character and the NPC in terms of interactive identity; The display module is also used to display the interactive activities between the NPC and the virtual character based on the identity association relationship.

15. An interactive device with a non-player character, the device comprising: A sending module, used for sending data related to a game interactive interface to a terminal, wherein the game interactive interface includes a virtual character and at least one non-player character NPC; A relationship determination module, used to determine the identity association relationship between the virtual character and the NPC based on the interactive operation between the virtual character and the NPC; The identity association relationship is used to indicate the association relationship between the virtual character and the NPC in terms of interactive identity; A control module is used to control the interactive activities between the NPC and the virtual character based on the identity association relationship.

16. A computer device, comprising: A processor and a memory, wherein at least one computer program is stored in the memory, and at least one computer program is loaded and executed by the processor to implement the method for interacting with a non-player character as described in any one of claims 1 to 13.

17. A computer storage medium, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the method for interacting with a non-player character according to any one of claims 1 to 13.

18. A computer program product, comprising a computer program, wherein the computer program is stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the method for interacting with a non-player character as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • NPC control method based on artificial intelligence, NPC control device based on artificial intelligence, equipment and medium

    CN110496394A

  • Interaction control method and device in game, electronic equipment and readable storage medium

    CN113559520A

  • Game interaction method, device and system and computer readable storage medium

    CN115245682A

  • Emotion and mood control of virtual characters in a virtual world

    US20110265018A1