Method and device for interacting with non-player character, equipment, storage medium and product
By determining the identity relationship between virtual characters and NPCs in the game and controlling NPCs to change interactive activities, the problem of solidifying NPC interaction methods in the existing technology is solved, a richer and more realistic interactive experience is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202310509210.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-06
- Publication Date
- 2024-11-08
AI Technical Summary
In the prior art, the interaction between non-player characters (NPCs) and virtual characters is relatively solid, with a low degree of intelligence, and it is impossible to achieve a rich and real interactive experience.
By displaying the game interactive interface, responding to the interaction between the virtual character and the NPC, the identity relationship between the virtual character and the NPC is determined, and based on this relationship, the NPC is controlled to change the interactive activities to realize the active interaction between the NPC and the virtual character.
It enhances the richness and authenticity of the interactive activities between NPC and virtual characters, makes NPC behavior closer to the virtual characters controlled by users and improves the user experience.
Smart Images

Figure CN118903835A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and more particularly to a method, device, equipment, storage medium and product for interacting with non-player characters. Background Art
[0002] In applications based on virtual environments, such as multiplayer online games (MMOG), users can control virtual characters to move in the virtual environment. In addition, there are non-player characters (NPCs) in the virtual environment. NPCs can interact with the virtual characters controlled by users, for example, attacking the virtual characters controlled by users, or NPCs can promote the plot attached to the task or help users complete the task, or NPCs can talk to the virtual characters.
[0003] In the related art, the virtual character interacts with the NPC through a preset interaction logic, that is, the virtual character's behavior is used as input to calculate the interaction content that the NPC needs to make, and the interaction content is used as output. For example, the virtual character asks the NPC a question, and the NPC answers based on the question, thereby completing the interaction.
[0004] However, in the relevant technology, the interaction mode between NPC and virtual characters is relatively rigid. NPC can only interact with the virtual characters controlled by users according to the preset interaction logic, and the intelligence level of NPC is relatively low. Summary of the invention
[0005] The present application provides a method, device, equipment, storage medium and product for interacting with non-player characters. The technical solution is as follows:
[0006] According to one aspect of the present application, a method for interacting with a non-player character is provided, the method comprising:
[0007] Displaying a game interactive interface, wherein the game interactive interface includes a virtual character and at least one non-player character NPC;
[0008] In response to the interactive operation between the virtual character and the NPC, determining the identity association relationship between the virtual character and the NPC; the identity association relationship is used to indicate the identity association relationship between the virtual character and the NPC;
[0009] The NPC is controlled to change the interactive activities with the virtual character based on the identity association relationship.
[0010] According to one aspect of the present application, there is provided an interactive device with a non-player character, the device comprising:
[0011] 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;
[0012] A relationship determination module, configured to determine 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 used to indicate an identity association relationship between the virtual character and the NPC;
[0013] A control module is used to control the NPC to change the interactive activities with the virtual character based on the identity association relationship.
[0014] 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.
[0015] According to another aspect of the present application, a computer storage medium is provided, 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 as described above.
[0016] 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 executes the method for interacting with a non-player character as described above.
[0017] The beneficial effects of the technical solution provided by this application include at least:
[0018] By displaying a game interaction interface, the game interaction 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, determining the identity association relationship between the virtual character and the NPC; and controlling the NPC to change the interactive activities between the virtual character and the virtual character based on the identity association relationship. The present application determines the identity association relationship between the virtual character and the NPC, and the NPC can actively change the interactive activities between the virtual character and the virtual character based on the identity association relationship, making the interactive activities between the NPC and the virtual character richer and more realistic. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a schematic diagram of a method for interacting with a non-player character provided by an exemplary embodiment of the present application;
[0021] Figure 2 is a schematic diagram of the architecture of a computer system provided by an exemplary embodiment of the present application;
[0022] Figure 3 is a flow chart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application;
[0023] Figure 4 is a flow chart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application;
[0024] Figure 5 This is a schematic diagram of an entry interface for selecting an NPC to interact with provided by an exemplary embodiment of the present application;
[0025] Figure 6 This is an interface diagram for selecting an NPC to interact with provided by an exemplary embodiment of the present application;
[0026] Figure 7 This is a schematic diagram of an interface of NPC information provided by an exemplary embodiment of the present application;
[0027] Figure 8 This is a schematic diagram of an interface for a virtual character to present a gift to an NPC, provided by an exemplary embodiment of the present application;
[0028] Fig. 9 This is a schematic diagram of an interface for selecting an identity association relationship provided by an exemplary embodiment of the present application;
[0029] Fig.10 is a schematic diagram of an interface for selecting an interactive topic provided by an exemplary embodiment of the present application;
[0030] Fig.11 This is a schematic diagram of an interface for setting NPC interaction permissions provided by an exemplary embodiment of the present application;
[0031] Fig.12 This is a schematic diagram of an interface for removing the identity association relationship between a virtual character and an NPC provided by an exemplary embodiment of the present application;
[0032] Fig.13is a block diagram of an interactive device with a non-player character provided by an exemplary embodiment of the present application;
[0033] Fig.14 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical scheme and advantages of the present application clearer, the implementation mode of the present application will be further described in detail below in conjunction with the accompanying drawings. The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation modes described in the following exemplary embodiments do not represent all implementation modes consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0035] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0036] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
[0037] First, the nouns involved in the embodiments of the present application are introduced:
[0038] Virtual environment: is a virtual environment displayed (or provided) when an application is running on a terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictitious environment, or a purely fictitious environment. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, and this application does not limit this. The following embodiments are illustrated by taking the virtual environment as a three-dimensional virtual environment.
[0039] Virtual character: refers to an active character in a virtual environment. The active 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 by job, such as pharmacist, magician, medical practitioner, etc.; it can also be classified by category, such as humans, beasts, fairies, 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.
[0040] Multiplayer online games (MMOGs): refers to games whose servers can provide a large number of players online at the same time. They are also named Massive Multi-Player Online Role-Playing Games (MMORPGs). The game provides users with a virtual world. In the game, users can create virtual characters, control the virtual characters to carry out corresponding activities, and complete the corresponding tasks. Virtual characters controlled by multiple users can form a team to complete the same task together, or fight against other teams.
[0041] Non-player character NPC: refers to a virtual character that is not controlled by the user in the game. It is generally controlled by the computer's artificial intelligence and is a virtual character that can have its own behavior pattern. The types of NPC include: plot NPC, combat NPC, service NPC, etc. Plot NPC refers to an NPC that provides story plots or information to the virtual character controlled by the user. When the virtual character controlled by the user performs a task in the game, the task is accompanied by a corresponding story plot. Optionally, according to the communication information or actions between the user and the plot NPC, the NPC can make different feedback, such as dropping virtual props, providing prompt information, issuing new tasks, etc.; Combat NPC refers to an NPC that can fight with the virtual character controlled by the user. The combat NPC can be a virtual character belonging to the same team as the virtual character controlled by the user, or it is an NPC that the virtual character controlled by the user needs to attack (that is, an enemy NPC); Service NPC refers to an NPC that provides services to the virtual character controlled by the user. For example, the service NPC is a merchant virtual character, a training virtual character, etc. in the virtual environment. Optionally, this type of NPC performs fixed actions or publishes fixed information. The virtual character controlled by the user receives the service of the service NPC and obtains corresponding information, props, experience points, etc.
[0042] The present application embodiment provides a schematic diagram of a method for interacting with a non-player character, such as Figure 1 As shown, the method can be executed by a computer device, and the computer device can be a terminal or a server.
[0043] For example, Figure 1As shown in FIG. 1 (a), a game interaction interface 10 is displayed on the user interface, and the game interaction interface 10 includes a virtual character 20 and at least one NPC. The computer device determines the identity association relationship between the virtual character 20 and the NPC in response to the interaction operation between the virtual character 20 and the NPC; the computer device controls the NPC to change the interaction activity between the virtual character 20 and the NPC based on the identity association relationship.
[0044] Optionally, the NPC has a specific image, or the NPC does not have a specific image.
[0045] Taking the example that the NPC does not have a specific image, the NPC can talk, give gifts or consult questions with the virtual character 20 in the form of a dialog box. For example, after the virtual character 20 wins, the NPC sends a blessing to the virtual character 20.
[0046] Taking the example of an NPC having a specific image, the NPC may be an NPC with a human image, or an NPC with an animal image, or an NPC with an image of a mythical beast or a fairy, or an NPC with an image of a natural landscape, or an NPC with an image of an artificial landscape.
[0047] The identity association relationship is used to indicate the identity association relationship between the virtual character 20 and the NPC.
[0048] 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.
[0049] Exemplarily, the computer device determines the favorability value between the virtual character 20 and the NPC based on the interactive operation 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 value of the favorability value.
[0050] Optionally, the interactive operation includes at least one of typing chat, voice chat, gift giving, and daily greetings, but is not limited to these, and the embodiments of the present application do not specifically limit this.
[0051] For example, the computer device increases the favorability value between the virtual character and the NPC based on the interactive operation 20. When 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". When 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 "master-apprentice relationship".
[0052] 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 between the NPC and the virtual character 20 .
[0053] 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 the virtual character 20 can have multiple NPCs with different identity associations, and each NPC corresponds to an interactive topic. That is, the same thing will have different responses for NPCs with different identity associations, and the same thing will also have different responses for the same NPC with an interactive topic and without an interactive topic.
[0056] like Figure 1 As shown in Figure (b), after the virtual character 20 defeats a monster, NPC1, which is in a "playmate relationship" with the virtual character 20, actively sends a first interactive message 30 to the virtual character: "Brother, congratulations on killing another monster", and NPC2, which is in a "master-disciple relationship" with the virtual character 20, actively sends a second interactive message 40 to the virtual character: "My disciple is awesome. Your master will give you a gift."
[0057] In some embodiments, after the virtual character 20 and the NPC determine the identity association relationship, 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.
[0058] 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.
[0059] In summary, the method provided in this embodiment displays a game interactive interface, which 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, determines the identity association relationship between the virtual character and the NPC; and controls the NPC to change the interactive activities between the virtual character and the virtual character based on the identity association relationship. This application determines the identity association relationship between the virtual character and the NPC, so that the NPC can change the interactive activities between the virtual character and the virtual character based on the identity association relationship, and 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.
[0060] Figure 2 The following is 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 .
[0061] The first terminal 110 is installed and runs a client 111 that supports a virtual environment, and the 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 one of a multiplayer online game (Multi-Player Online Game, MMOG), a battle royale shooting game, a virtual reality (Virtual Reality, VR) application, an augmented reality (Augmented Reality, AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (First-Person Shooting Game, FPS), a third-person shooting game (Third-Person Shooting Game, TPS), a multiplayer online tactical competitive game (Multiplayer Online Battle Arena Games, MOBA), and a strategy game (Simulation Game, SLG). In this embodiment, the client 111 is an MMOG game for example. The first terminal 110 is a terminal used by the first user 112. The first user 112 uses the first terminal 110 to control the first virtual character in the virtual environment to perform activities, or to operate the virtual items owned by the second virtual character. The first virtual character can be referred to as the virtual character of the first user 112. The first user 112 can assemble, disassemble, and uninstall the virtual items owned by the first virtual character, and this application does not limit this. Schematically, the first virtual character is a first virtual character, such as a simulated human character or an animated human character.
[0062] The second terminal 130 is installed and runs a client 131 that supports a virtual environment, and 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 one of MMOG, battle royale shooting game, VR application, AR program, three-dimensional map program, virtual reality game, augmented reality game, FPS, TPS, MOBA, SLG. In this embodiment, the client is an MMOG game for example. The second terminal 130 is a terminal used by the second user 113. The second user 113 uses the second terminal 130 to control the second virtual character in the virtual environment to carry out activities and operate the virtual items owned by the second virtual character. The second virtual character can be called the virtual character of the second user 113. Schematically, the second virtual character is a second virtual character, such as a simulated character or an anime character.
[0063] 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 camp, the same team, the same organization, have a friend relationship, or have temporary communication permissions. Optionally, the first virtual character and the second virtual character may belong to different camps, different teams, different organizations, or have a hostile relationship.
[0064] 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 may refer to one of a plurality of terminals, and the second terminal 130 may refer to another of a plurality of terminals. This embodiment is only illustrated by taking the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 are the same or different, and the device type includes at least one of: a smart phone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, and a desktop computer.
[0065] Figure 2 Only two terminals are shown, but in different embodiments, there are multiple other terminals 140 that can access the server 120. Optionally, there are one or more terminals 140 corresponding to the developer, and a development and editing platform for the client supporting the virtual environment is installed on the terminal 140. The developer can edit and update the client on the terminal 140, and transmit the updated client installation package to the server 120 through a wired or wireless network. The first terminal 110 and the second terminal 130 can download the client installation package from the server 120 to update the client.
[0066] The first terminal 110 , the second terminal 130 , and other terminals 140 are connected to the server 120 via a wireless network or a wired network.
[0067] The server 120 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server 120 is used to provide background services for the client supporting the three-dimensional virtual environment. Optionally, the server 120 undertakes the main computing work, and the terminal undertakes the secondary computing work; or, the server 120 undertakes the secondary computing work, and the terminal undertakes the main computing work; or, the server 120 and the terminal adopt a distributed computing architecture for collaborative computing.
[0068] In an illustrative example, the server 120 includes a processor 122, a user account database 123, a battle service module 124, and a user-oriented input / output interface (I / O interface) 125. The processor 122 is used 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 used to store data of user accounts used by the first terminal 110, the second terminal 130, and other terminals 140, such as the user account's avatar, the user account's nickname, the user account's combat power index, and the service area where the user account is located; the battle service module 124 is used to provide multiple battle rooms for users to fight, such as 1V1 battle, 3V3 battle, 5V5 battle, etc.; the user-oriented I / O interface 125 is used to establish communication and exchange data with the first terminal 110 and / or the second terminal 130 through a wireless network or a wired network.
[0069] Figure 3 is a flowchart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application. The method can be executed by a computer device, which can be Figure 2 The terminal 100 or the server 200 in the embodiment. The method comprises:
[0070] Step 302: Display the game interaction interface.
[0071] The game interactive interface refers to the interface through which the user-controlled virtual character interacts with the NPC.
[0072] The game interactive interface includes a virtual character and at least one NPC.
[0073] Optionally, the NPC has a specific image, or the NPC does not have a specific image.
[0074] Taking the example that the NPC does not have 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.
[0075] 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 an image of a mythical beast or fairy, or an NPC with an image of a natural landscape, or an NPC with an image of an artificial landscape, but is not limited to this, and the embodiments of the present application do not make specific limitations on this.
[0076] Step 304: In response to the interactive operation between the virtual character and the NPC, determine the identity association relationship between the virtual character and the NPC.
[0077] The interactive operation includes at least one of typing chat, voice chat, gift giving, and daily greetings, but is not limited to these. The embodiments of the present application do not make specific limitations on this.
[0078] The identity association relationship is used to indicate the identity association relationship between the virtual character and the NPC.
[0079] 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.
[0080] Step 306: Control the NPC to change the interactive activities with the virtual character based on the identity association relationship.
[0081] After determining the identity association relationship between the virtual character and the NPC, the computer device controls the NPC to change the interactive activities between the NPC and the virtual character.
[0082] Optionally, the interactive activity includes interactive methods and interactive content.
[0083] The interaction method refers to the form of interaction between a virtual character and an NPC, for example, who is the initiator of the interaction; the interaction method refers to the form of interaction between a virtual character and an NPC, and the interaction form includes at least one of text interaction, voice interaction, and emoticon interaction, but is not limited to these.
[0084] Interactive content refers to the content when the virtual character interacts with the NPC.
[0085] Optionally, the interactive content includes at least one of address, modal particles, active sentences, passive sentences, and topic scope, but is not limited thereto.
[0086] For example, before the virtual character and the NPC determine their identity association, the NPC will not actively interact with the virtual character, and the content of the interaction is all preset interaction logic and is relatively unified; after the virtual character and the NPC determine their identity association, after the virtual character defeats a monster, NPC1, which has a "playmate relationship" with the virtual character, will actively send a first interaction message to the virtual character: "Brother, congratulations on killing another monster", and NPC2, which has a "master-disciple relationship" with the virtual character, will actively send a second interaction message to the virtual character: "My disciple is awesome. I'll give you a gift." That is, NPCs with identity associations can not only actively initiate interactions, but NPCs with different identity associations can also make different interactions for the same thing.
[0087] In summary, the method provided in this embodiment displays a game interactive interface, which 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, determines the identity association relationship between the virtual character and the NPC; and controls the NPC to change the interactive activities between the virtual character and the virtual character based on the identity association relationship. This application determines the identity association relationship between the virtual character and the NPC, so that the NPC can change the interactive activities between the virtual character and the virtual character based on the identity association relationship, and 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.
[0088] Figure 4 is a flowchart of a method for interacting with a non-player character provided by an exemplary embodiment of the present application. The method can be executed by a computer device, which can be Figure 2 The terminal 100 or the server 200 in the embodiment. The method comprises:
[0089] Step 402: Display the game interaction interface.
[0090] The game interactive interface refers to the interface through which the user-controlled virtual character interacts with the NPC.
[0091] The game interactive interface includes a virtual character and at least one NPC.
[0092] Optionally, the NPC has a specific image, or the NPC does not have a specific image.
[0093] For example, Figure 5 The schematic diagram of the entry interface for selecting the NPC to interact with is shown as follows: Figure 5 As shown in Figure (a), in order to interact with the NPC (also known as obtaining a relationship), you need to obtain and activate a pass card to activate this gameplay. A relationship refers to an identity relationship established between a virtual character and an NPC. The content of the pass card is as follows: Figure 5As shown in Figure (b), the pass card includes the combat power bonus and welfare privileges brought by the pass card. By activating the pass card, the virtual character can interact with the NPC.
[0094] like Figure 6 The interface diagram for selecting an NPC to be interacted with shown includes 4 NPC positions in the interface for selecting an NPC to be interacted with, that is, the virtual character can interact with 4 NPCs. The first NPC is turned on by default. By triggering the "matching" control, the virtual character and the NPC are matched. The "matching" control is used to randomly match an NPC for the virtual character. It should be understood that after matching an NPC, there is no identity association between the virtual character and the NPC. 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 can be understood 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. The unlocking condition for the second NPC position is: the favorability value with an NPC reaches 50; the unlocking condition for the third NPC position is: the favorability value with an NPC reaches 100; the unlocking condition for the fourth NPC position is: the favorability value with two NPCs reaches 100. By setting different unlocking conditions, and the unlocking conditions are progressive, the interaction between virtual characters and NPCs is promoted, and the user experience is improved. In addition, four NPC positions are set in the embodiment of the present application, but it 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.
[0095] Step 404: In response to the interactive operation between the virtual character and the NPC, determine the identity association relationship between the virtual character and the NPC.
[0096] The interactive operation includes at least one of typing chat, voice chat, gift giving, and daily greetings, but is not limited to these. The embodiments of the present application do not make specific limitations on this.
[0097] The identity association relationship is used to indicate the identity association relationship between the virtual character and the NPC.
[0098] 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.
[0099] Exemplarily, the computer device determines a favorability value between the virtual character and the NPC based on the interactive operation between the virtual character and the NPC; the computer device determines an identity association relationship between the virtual character and the NPC based on the value of the favorability value.
[0100] In some embodiments, the computer device selects an identity association relationship between the virtual character and the NPC within the scope of the identity association relationship based on the favorability value.
[0101] 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 relationship within the first identity association relationship range; when the favorability value between the virtual character and the NPC is greater than a second threshold, the computer device selects an identity association relationship within the second identity association relationship range, wherein the number of identity association relationships within the second identity association relationship range is greater than the number of identity association relationships within the first identity association relationship range, and the second threshold is greater than the first threshold.
[0102] It is understandable that this embodiment only takes two identity association relationship ranges as an example, but is not limited to this.
[0103] The favorability value refers to the interaction score between the virtual character and the NPC. The favorability value is only effective between NPCs that match the virtual character, and has nothing to do with NPCs of other virtual characters.
[0104] Optionally, the computer device may obtain the favorability value by scoring the interactive activities between the virtual character and the NPC, or obtain the favorability value by rating the activity events.
[0105] like Figure 7 The interface diagram of NPC information shown in the figure, the four NPC positions in the figure are matched to the corresponding NPC, and 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, the interaction topic between the virtual character and the NPC can be selected, by triggering the identity association relationship identifier 702, the identity association relationship between the virtual character and the NPC can be selected, by triggering the chat control 704, the chat with the NPC can be realized, and by triggering the gift control 705, the gift can be given to the NPC.
[0106] Optionally, the upper limit of the favorability value is 500 points, each 50 points is half a heart, and one heart is 100 points.
[0107] Exemplarily, the method of increasing the favorability value includes at least one of the following, but is not limited thereto:
[0108] ·The virtual character chats with the NPC with whom he has an identity association;
[0109] A virtual character gives a gift to an NPC with whom he or she has an identity relationship;
[0110] In some scenarios, NPCs actively give gifts to virtual characters.
[0111] Optionally, when the virtual character chats with an NPC with an identity association, a set of dialogues increases the favorability value by one point, and each NPC can increase the favorability value by a maximum of 5 points per day through chatting.
[0112] Optionally, when a virtual character presents a gift to an NPC with 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.
[0113] When the favorability value corresponding to each gift is different, the favorability value is proportional to the value of the gift.
[0114] Optionally, the scenario in which the NPC actively presents a gift to the virtual character includes at least one of the following:
[0115] When the virtual character logs in for the first time in a day / week / month, the NPC proactively presents a starting gift to the virtual character; optionally, the starting gift includes at least one of virtual clothes, virtual props, virtual gold coins, experience points, game strategies, and game skills, but is not limited thereto.
[0116] When a virtual character wins a game, the NPC will actively present a gift to the virtual character to celebrate.
[0117] When a virtual character loses a game, the NPC will proactively give the virtual character a consolation gift.
[0118] Optionally, the gift that the NPC proactively presents to the virtual character includes at least one of virtual clothes, virtual props, virtual gold coins, experience points, game strategies, and game skills, but is not limited thereto.
[0119] like Figure 8The interface schematic diagram of a virtual character giving a gift to an NPC is shown. By triggering the gift control, a gift can be given to an NPC. In the interface of giving a gift to an NPC, an NPC avatar 801, an NPC name 802, and a favorability value 803 are displayed. The gift given by the virtual character to the NPC is a virtual prop in the backpack of the virtual character. The virtual prop has different types and qualities, and the favorability value corresponding to each virtual prop may also be different. The virtual character can select a virtual prop from the backpack to give to the NPC.
[0120] Optionally, the number of times a virtual character can present gifts to an NPC every day has an upper limit, for example, a virtual character can only present gifts to an NPC three times every day.
[0121] Exemplarily, the method of reducing the favorability value includes at least one of the following, but is not limited thereto:
[0122] The virtual character has no chat with the NPC with whom the virtual character has an identity association for more than the first number of days;
[0123] The virtual character has not given gifts to the NPC with whom it has an identity association for more than the first number of days;
[0124] ·Change the identity relationship between the virtual character and the NPC.
[0125] For example, if the virtual character has not successfully had a complete conversation with an NPC with whom it has an identity association for more than 3 days and has not received any gifts, 3 points of favorability will be deducted every day starting from the 4th day, and on the 4th day when the user goes online, the virtual character will actively send a greeting to the user to express regret that the relationship is fading. If the virtual character has multiple NPCs with whom it has an identity association at the same time and all of them are in the stage of deducting favorability, only one of the multiple NPCs with whom it has an identity association will be randomly selected to send a greeting to the user.
[0126] In some embodiments, when the favorability value between the virtual character and the NPC is lower than the relationship termination threshold, the identity association relationship between the virtual character and the NPC is automatically terminated.
[0127] For example, the relationship termination threshold is set to 10, and when the favorability value between the virtual character and the NPC is lower than 10, the identity association relationship between the virtual character and the NPC is automatically terminated. Exemplarily, the computer device controls the NPC to interact with the virtual character with different emotions based on the favorability value.
[0128] Optionally, the favorability values between the NPC and the virtual character are different, and the NPC's emotions towards the virtual character are also different. In some embodiments, the NPC's emotions can be realized by a neural network model, or a behavior tree, or a state machine. Schematically, the NPC's emotions are realized by a neural network model. Optionally, the neural network model is built in the server, or the neural network model is located in the client.
[0129] In some embodiments, the neural network model is built in an emotion server, and human emotion data and corresponding activity data when emotions are generated are input into the neural network model, such as emotions such as happiness, sadness, sorrow, fear, panic, surprise, frustration, and longing, such as obtaining rewards, being hurt, unfinished tasks, meeting bad people, completing difficult tasks in a short time, task failure, and missing relatives. The neural network model is trained with the above data to obtain a trained neural network model. When data of interactive activities corresponding to different favorability values are input into the neural network model, the corresponding emotion data is output, so that the server can control the NPC to attach different emotions to different interactive activities.
[0130] For example, Fig. 9 The interface diagram for selecting identity association relationships shown in the figure shows that when the favorability value between the virtual character and the NPC meets the selection conditions of the identity association relationship, the virtual character can select the identity association relationship between the virtual character and the NPC. The identity association relationships shown in the figure include a beauty relationship, a confidant relationship, a comrade-in-arms relationship, a playmate relationship, and a mentor relationship. The method for determining the identity association relationship options in the figure is determined based on the favorability value 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 association relationship within the identity association relationship range based on the value of the favorability value and the attribute information of the virtual character and the NPC for the user to select. For example, when the virtual character and the NPC are of the same sex, "brother relationship" and "girlfriend relationship" can be selected; when the virtual character and the NPC are of the opposite sex, "beauty relationship" and "male friend relationship" can be selected.
[0131] Optionally, if the attribute requirements are not met in the identity association relationship, it is necessary to reselect the NPC or reselect the identity association relationship. For example, the requirement for a "beauty relationship" is the opposite sex. If it is the same sex, it is necessary to reselect the NPC or reselect the identity association relationship.
[0132] Step 406: Control the NPC to change at least one of the interaction method and interaction content with the virtual character based on the identity association relationship.
[0133] The interaction method refers to the form of interaction between a virtual character and an NPC, for example, who is the initiator of the interaction; the interaction method refers to the form of interaction between a virtual character and an NPC, and the interaction form includes at least one of text interaction, voice interaction, and emoticon interaction, but is not limited to these.
[0134] Interactive content refers to the content when the virtual character interacts with the NPC.
[0135] Optionally, the interactive content includes at least one of address, modal particles, active sentences, passive sentences, and topic scope, but is not limited thereto.
[0136] Exemplarily, the computer device controls the NPC as the interaction initiator to actively interact with the virtual character based on the identity association relationship. For example, when the virtual character falls, the NPC will actively care for the virtual character as a couple.
[0137] Based on the identity association relationship, the computer device controls the NPC to send interactive content belonging to the identity association relationship to the virtual character using the NPC's identity in the identity association relationship.
[0138] Based on the identity association relationship, the computer device controls the NPC to change the name of the virtual character according to the NPC's identity in the identity association relationship.
[0139] 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 address between the virtual character and the NPC will change according to the identity association relationship.
[0140] Optionally, in response to the NPC and the virtual character being in a master-apprentice relationship, the computer device controls the NPC to send imperative interactive content to the virtual character as a master; wherein the imperative interactive content refers to interactive content including instructive information between upper and lower identity levels.
[0141] Imperative interaction content is used to simulate the instructive information between a master and an apprentice in real life, for example, "Apprentice, go get a pot of wine for the master."
[0142] In some embodiments, when the virtual character wins the game, the NPC proactively sends comments to the virtual character.
[0143] Commentary content refers to the evaluation content made by the NPC on the action performance of the virtual character in the game victory scene. The commentary content is used to show the wonderful actions or wonderful scenes of the virtual character's action performance in the game victory scene.
[0144] In some embodiments, when the virtual character fails in a game, the NPC proactively sends guidance content to the virtual character.
[0145] Guidance content refers to the guidance content provided by the NPC for the action performance of the virtual character in the game failure scenario. Guidance content is used to show the shortcomings and areas for improvement of the action performance of the virtual character in the game failure scenario. Or, guidance content refers to the technical operation guidance content for passing this game. Or, guidance content refers to the skills content for quickly passing this game.
[0146] Optionally, in response to the NPC and the virtual character being in a relationship as a couple, the computer device controls the NPC to send communicative interactive content to the virtual character as a couple; wherein the communicative interactive content refers to interactive content including communicative information between people at the same identity level.
[0147] Interactive communication content is used to simulate the interaction between two equal parties in real life, for example, the communication between lovers.
[0148] In some embodiments, the computer device obtains historical interaction information between the virtual character and the NPC, and controls the NPC to change the content of interaction with the virtual character based on the identity association relationship and the historical interaction information.
[0149] Historical interaction information refers to the interaction content between the virtual character and the NPC before the identity relationship is determined.
[0150] In the case where the interactive content includes historical interactive information, the NPC is controlled to send the interactive content including the historical interactive information to the virtual character as the NPC in the identity association relationship.
[0151] Historical interaction information is obtained to simulate real-life memories, and the interaction memory between the NPC and the virtual character is represented by historical interaction information. For example, the virtual character and the NPC once talked about Xuanyuan City. When they talked about places they wanted to go, the NPC would take the initiative to ask to go to Xuanyuan City with the virtual character.
[0152] In some embodiments, 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 controlled to send interactive content within the scope of both the identity association relationship and the interactive topic to the virtual character using the identity in the NPC identity association relationship.
[0153] Interactive topics refer to topics that can be discussed between virtual characters and NPCs.
[0154] Optionally, the interactive topic includes at least one of a historical topic, an emotional topic, a gossip topic, a photography topic, and a geographical topic, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
[0155] The purpose of interactive topics is to control the chat content between virtual characters and NPCs within the scope of the topic, rather than talking about general things.
[0156] 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 he wants 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.
[0157] For example, Fig.10 The interface diagram for selecting interactive topics is shown. When the user selects the interactive topic between the virtual character and the NPC, the user should first select the topic type 1001. The keywords of the topic type 1001 can be preset or input by the user. After selecting the topic type 1001, click the search in the topic content 1002 to search for the topic. The computer device will generate 10 topics to be displayed in the topic content 1002 for the user to select. For example, the topic content displayed in the topic content 1002 is: "Eternal warmth" and "Love is forever". The search result is a one-time behavior, which will be recorded and cannot be changed. The user can only make a selection and cannot search for this type again, but can change the type to search. After the user selects the topic content 1002, click the search in the topic view 1003 to search for the view. The computer device will generate 5 viewpoints to be displayed in the topic view 1003 for the user to select. For example, the topic view displayed in the topic view 1003 is: "I dare to break up with you only when the mountains are gone and the sky and the earth are united." The search result is a one-time behavior, which will be recorded and cannot be changed. The user can only make a selection and cannot search for this viewpoint again, but can change the topic viewpoint to search. After the user selects the topic viewpoint 1003, the topic can be supplemented in the topic supplement 1004 for the topic content 1002, for example, the interaction tone of the NPC can be supplemented to a cold tone or a gentle tone, but not limited to this. After the user has made all the selections, click OK to complete the selection of the interaction topic.
[0158] After determining the identity relationship and interaction topic between the virtual character and the NPC, when the virtual character interacts with the NPC, the NPC will modify the interaction content based on the identity relationship and interaction topic. For example, if the virtual character and the NPC are brothers, the NPC cannot reply as a master-apprentice relationship. 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 "Make a prompt decision", then the NPC's subsequent replies will no longer be hesitant.
[0159] It should be noted that after inputting keywords, the computer device needs to add certain restrictive words to the keywords so as to convert them into instructions that the NPC can understand. For example, if the keyword input is "emotion", the instruction that the NPC can understand is "Please provide 10 topics of the topic type "emotion".
[0160] In some embodiments, Fig.11 The interface diagram of NPC interaction permission settings is shown. NPCs with identity associations with virtual characters can also interact with other virtual characters. Users can adjust the interaction permissions between their NPCs and other virtual characters. Interaction permissions include chat permissions (private chat permissions) and speaker dialogue permission whitelists (public dialogue permissions). The whitelist includes identity associations corresponding to NPCs with identity associations with virtual characters. NPCs on the whitelist can interact with other virtual characters.
[0161] In some embodiments, Fig.12 The interface diagram of the virtual character and the NPC dissolving the identity association relationship shown is shown. When the virtual character and the NPC dissolve the identity association relationship, a prompt message of dissolving the identity association relationship will be displayed, such as Fig.12 As shown in Figure (a) in the figure; after clicking OK to cancel, the password input interface is displayed, as shown in Fig.12 As shown in Figure (b); after successfully entering the password, the interface showing successful release of the identity association is displayed.
[0162] In summary, the method provided in this embodiment displays a game interactive interface, which 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, determines the identity association relationship between the virtual character and the NPC; and controls the NPC to change the interactive activities between the virtual character and the virtual character based on the identity association relationship. This application determines the identity association relationship between the virtual character and the NPC, and the NPC can change the interactive activities between the NPC and the virtual character based on the identity association relationship, enriching the interactive 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.
[0163] The method provided in this embodiment controls the NPC to change the interaction method and / or interaction content between the NPC and the virtual character based on the identity association relationship between the virtual character and the NPC. The NPC can actively interact with the virtual character, enriching the interactive activities between the NPC and the virtual character, making the NPC's behavior closer to the virtual character controlled by a real user, and improving the user experience.
[0164] The method provided in this embodiment obtains historical interaction information between the virtual character and the NPC, thereby simulating the interaction memory between the virtual character and the NPC, so that the behavior of the NPC is closer to the virtual character controlled by a real user, thereby improving the user experience.
[0165] The method provided in this embodiment selects interactive topics between the virtual character and the NPC, so that the virtual character and the NPC can interact more specifically and avoid general discussions, making the NPC's behavior closer to the virtual character controlled by a real user, thereby improving the user experience.
[0166] The method provided in this embodiment determines the favorability value between the virtual character and the NPC based on the interactive operations between the virtual character and the NPC, and determines the identity association relationship between the virtual character and the NPC according to the value of the favorability value. As the degree of interaction deepens and the relationship becomes closer, the behavior of the NPC becomes more realistic.
[0167] For example, an exemplary embodiment of the present application provides a method for interacting with non-player characters. In the highly social game ecology of MMORPG, this solution provides a new way of playing for virtual characters to interact with NPCs. Users can communicate with NPCs with identity associations, or give gifts to NPCs to increase their favorability, and then unlock the selection of interactive topics and identity associations with NPCs. At the beginning, NPCs will only talk to users in general terms within the scope of the world view, and as the favorability increases, the NPC's tone and attitude towards users will become more and more friendly, and some topics and opinions under the topic can be further selected for in-depth communication. At this time, NPCs are no longer talking in general terms, but will have clear opinions on specific things and will make statements around the opinions. As the favorability increases, you can establish an identity association with the NPC. After selecting an identity association, the NPC's attitude towards the virtual character will change based on this type of identity association, and the user can also choose the relationship / event supplement between the virtual character and the NPC to increase the "memory" between you, and this memory will once again change the NPC's chat content with you. 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 condolences, or give the player a gift, or even a status-enhancing BUFF.
[0168] After learning the game worldview, the AI model corresponding to the NPC can independently reply to the player's questions; the reply of the AI model corresponding to the NPC needs certain restrictive words 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 influence the AI's reply attitude; the AI's reply also needs to be affected by effective emotional instructions so that it knows a certain identity relationship with the player, such as a brotherly relationship, in which case it cannot reply as a master-disciple relationship; the player can choose some topics and viewpoints for the AI to influence the AI's reply, such as the topic is what to do when in doubt, 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 AI and AI to affect the AI's reply. For example, if the player and AI have been to Xuanyuan City before, then when 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 the above content that affects the AI's reply will be compiled into a 4,000-word voice that AI can understand and transmitted 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. AI needs to act according to the script, and the keywords and sentence forms of this 4,000-word text are the key, and all design requirements need to be included.
[0169] Fig.13 A schematic diagram of the structure of an interactive device with a non-player character provided by an exemplary embodiment of the present application is shown. The device can be implemented as all or part of a computer device through software, hardware, or a combination of both. The device includes:
[0170] A display module 1301 is used to display a game interaction interface, wherein the game interaction interface includes a virtual character and at least one non-player character NPC;
[0171] The relationship determination module 1302 is used to determine 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 identity association relationship between the virtual character and the NPC;
[0172] The control module 1303 is used to control the NPC to change the interactive activities with the virtual character based on the identity association relationship.
[0173] In some embodiments, the control module 1303 is used to control the NPC to change at least one of the interaction method and interaction content between the NPC and the virtual character based on the identity association relationship.
[0174] In some embodiments, the control module 1303 is used to control the NPC as an interaction initiator to actively interact with the virtual character based on the identity association relationship.
[0175] In some embodiments, the control module 1303 is used to control the NPC to send the interactive content belonging to the identity association relationship to the virtual character in the identity of the NPC in the identity association relationship based on the identity association relationship.
[0176] In some embodiments, the control module 1303 is used to control the NPC to change the name of the virtual character according to the identity of the NPC in the identity association relationship based on the identity association relationship.
[0177] In some embodiments, the control module 1303 is used to control the NPC to send imperative interactive content to the virtual character as a master in response to the NPC and the virtual character being in a master-apprentice relationship.
[0178] The imperative interactive content refers to interactive content including instructive information between upper and lower identity levels.
[0179] In some embodiments, the control module 1303 is used to control the NPC to send interactive content to the virtual character as a couple in response to the NPC and the virtual character being in a couple relationship.
[0180] The communicative interactive content refers to the interactive content including communicative information between people at the same identity level.
[0181] The device further includes an acquisition module 1304 for acquiring historical interaction information between the virtual character and the NPC, wherein the historical interaction information refers to the interaction content between the virtual character and the NPC before the identity association relationship is determined.
[0182] In some embodiments, the control module 1303 is used to control the NPC to change the interaction content between the NPC and the virtual character based on the identity association relationship and the historical interaction information.
[0183] In some embodiments, the control module 1303 is used to control the NPC to send the interactive content including the historical interactive information to the virtual character as the NPC in the identity association relationship when the interactive content includes the historical interactive information.
[0184] In some embodiments, the control module 1303 is used to control the NPC to send interactive content that belongs to both the identity association relationship and the interactive topic to the virtual character in the identity of the NPC in the identity association relationship in response to a selection operation of an interactive topic after the virtual character and the NPC determine the identity association relationship.
[0185] In some embodiments, the relationship determination module 1302 is used to determine the favorability value between the virtual character and the NPC based on the interactive operation; and determine the identity association relationship between the virtual character and the NPC according to the value of the favorability value.
[0186] In some embodiments, the control module 1303 is used to control the NPC to interact with the virtual character with different emotions based on the favorability value.
[0187] Fig.14 The block diagram of the structure of a computer device 1400 provided by an exemplary embodiment of the present application is shown. The computer device 1400 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 1400 may also be called a user device, a portable terminal, or other names.
[0188] Typically, the computer device 1400 includes a processor 1401 and a memory 1402 .
[0189] 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), and 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 an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a 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.
[0190] 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, which 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.
[0191] In some embodiments, the computer device 1400 may further 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 .
[0192] The peripheral device interface 1403 may be used to connect at least one peripheral device related to I / O (Input / Output) 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 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0193] 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 the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1404 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1404 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0194] The touch display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1405 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1405. The touch signal may be input to the processor 1401 as a control signal for processing. The touch display screen 1405 is used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1405 may be one, and the front panel of the computer device 1400 is set; in other embodiments, the touch display screen 1405 may be at least two, which are respectively set on different surfaces of the computer device 1400 or are folded; in some embodiments, the touch display screen 1405 may be a flexible display screen, which is set on a curved surface or a folded surface of the computer device 1400. Even, the touch display screen 1405 can also be set as a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1405 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0195] The camera assembly 1406 is used to capture images or videos. Optionally, the camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize the shooting of photos or videos. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera assembly 1406 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0196] 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 collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1401 for processing, or input them into the radio frequency circuit 1404 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1400. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1401 or the radio frequency circuit 1404 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1407 may also include a headphone jack.
[0197] The power supply 1408 is used to power various components in the computer device 1400. The power supply 1408 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1408 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0198] In some embodiments, the computer device 1400 further includes one or more sensors 1409 , including but not limited to: an acceleration sensor 1410 , a gyroscope sensor 1411 , a pressure sensor 1412 , an optical sensor 1413 , and a proximity sensor 1414 .
[0199] The acceleration sensor 1410 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1400. For example, the acceleration sensor 1410 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1401 can control the touch display screen 1405 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1410. The acceleration sensor 1410 can also be used for collecting game or user motion data.
[0200] The gyro sensor 1411 can detect the body direction and rotation angle of the computer device 1400, and the gyro sensor 1411 can cooperate with the acceleration sensor 1410 to collect the user's 3D actions on the computer device 1400. The processor 1401 can implement the following functions based on the data collected by the gyro sensor 1411: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0201] The pressure sensor 1412 can be set on the side frame of the computer device 1400 and / or the lower layer of the touch display screen 1405. When the pressure sensor 1412 is set on the side frame of the computer device 1400, it can detect the user's grip signal of the computer device 1400, and perform left and right hand recognition or shortcut operations according to the grip signal. When the pressure sensor 1412 is set on the lower layer of the touch display screen 1405, it can control the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1405. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0202] The optical sensor 1413 is used to collect the ambient light intensity. In one embodiment, the processor 1401 can control the display brightness of the touch display screen 1405 according to the ambient light intensity collected by the optical sensor 1413. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1405 is reduced. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera assembly 1406 according to the ambient light intensity collected by the optical sensor 1413.
[0203] The proximity sensor 1414, also called a distance sensor, is usually arranged on the front of the computer device 1400. The proximity sensor 1414 is used to collect the distance between the user and the front of the computer device 1400. In one embodiment, when the proximity sensor 1414 detects that the distance between the user and the front of the computer device 1400 is gradually decreasing, the processor 1401 controls the touch display screen 1405 to switch from the screen-on state to the screen-off state; when the proximity sensor 1414 detects that the distance between the user and the front of the computer device 1400 is gradually increasing, the processor 1401 controls the touch display screen 1405 to switch from the screen-off state to the screen-on state.
[0204] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the computer device 1400, and the computer device 1400 may include more or less components than shown in the figure, or combine some components, or adopt a different arrangement of components.
[0205] An embodiment of the present application also provides a computer device, which includes 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 interaction method with a non-player character provided by the above-mentioned method embodiments.
[0206] An embodiment of the present application also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the interaction method with a non-player character provided by the above-mentioned method embodiments.
[0207] 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.
[0208] It will be understood that in the specific implementation of the present application, the data involved, historical data, and data related to user data processing such as portraits related to user identity or characteristics, when the above embodiments of the present 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.
[0209] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0210] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0211] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method of interacting with a non-player character, characterized in that: The method comprises: 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, determining the identity association relationship between the virtual character and the NPC; the identity association relationship is used to indicate the identity association relationship between the virtual character and the NPC; The NPC is controlled to change the interactive activities with the virtual character based on the identity association relationship.
2. The method according to claim 1, characterized in that The step of controlling the NPC to change the interactive activity with the virtual character based on the identity association relationship includes: Based on the identity association relationship, the NPC is controlled to change at least one of the interaction method and interaction content between the NPC and the virtual character.
3. The method according to claim 2, characterized in that The controlling the NPC to change the interaction mode with the virtual character based on the identity association relationship includes: Based on the identity association relationship, the NPC is controlled to actively interact with the virtual character as an interaction initiator.
4. The method according to claim 2, characterized in that: The controlling the NPC to change the interaction content with the virtual character based on the identity association relationship includes: Based on the identity association relationship, the NPC is controlled to send the interactive content belonging to the identity association relationship to the virtual character using the identity of the NPC in the identity association relationship.
5. The method according to claim 4, characterized in that Based on the identity association relationship, controlling the NPC to send the interactive content belonging to the identity association relationship to the virtual character using the identity of the NPC in the identity association relationship includes: Based on the identity association relationship, the NPC is controlled to change the name of the virtual character according to the identity of the NPC in the identity association relationship.
6. The method according to claim 4, characterized in that Based on the identity association relationship, controlling the NPC to send the interactive content belonging to the identity association relationship to the virtual character using the identity of the NPC in the identity association relationship includes: In response to the NPC and the virtual character being in a master-apprentice relationship, controlling the NPC to send 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, characterized in that Based on the identity association relationship, controlling the NPC to send the interactive content belonging to the identity association relationship to the virtual character using the identity of the NPC in the identity association relationship includes: In response to the NPC and the virtual character being in a relationship as a couple, controlling the NPC to send 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, characterized in that: 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.
9. The method according to claim 8, characterized in that The controlling the NPC to change the interaction content between the NPC and the virtual character based on the identity association relationship and the historical interaction information includes: In a case where the interactive content includes the historical interactive information, the NPC is controlled to send the interactive content including the historical interactive information to the virtual character as the NPC in the identity association relationship.
10. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: After the virtual character and the NPC determine the identity association relationship, in response to a selection operation of an interactive topic, the NPC is controlled to send interactive content that belongs to both the identity association relationship and the interactive topic to the virtual character as the NPC in the identity association relationship.
11. The method according to any one of claims 1 to 7, characterized in that: The step of determining 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: Determining a favorability value between the virtual character and the NPC based on the interactive operation; The identity association relationship between the virtual character and the NPC is determined according to the value of the favorability value.
12. The method according to claim 11, characterized in that The method further comprises: Based on the favorability value, the NPC is controlled to interact with the virtual character with different emotions.
13. An interactive device with a non-player character, characterized in that: The device comprises: 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; A relationship determination module, configured to determine 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 used to indicate an identity association relationship between the virtual character and the NPC; A control module is used to control the NPC to change the interactive activities with the virtual character based on the identity association relationship.
14. A computer device, characterized in that: The computer device comprises: 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 according to any one of claims 1 to 12.
15. A computer storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, 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 according to any one of claims 1 to 12.
16. A computer program product, characterized in that The computer program product comprises a computer program, which 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 12.
Citation Information
Cited By
Role-playing-based interaction method and apparatus, device, medium, and product
WO2026184324A1
