Interaction method, interaction apparatus and computer-readable storage medium

By allowing users to independently control the game conversation content and promote the game process based on user input, the problem of rigid dialogue content in existing games is solved, and user participation and game experience is improved.

WO2025112922A1PCT designated stage expired Publication Date: 2025-06-05BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/123706
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-27
Filing Date
2024-10-09
Publication Date
2025-06-05

AI Technical Summary

Technical Problem

In existing electronic games, when users interact with virtual characters in game scenes, the dialogue content is relatively rigid and the user participation is low, resulting in poor game experience.

Method used

By receiving user input, the user is allowed to independently control the conversation content during the game process and promote the game process based on the user's conversation content. The specific implementation method includes: receiving the first input of the user, determining the target virtual character to be interacted with the user from the multiple virtual characters through the virtual character that is currently interacting with the user, determining the interaction information based on the user input and the game plot, and displaying it to the user.

Benefits of technology

It improves user engagement and gaming experience, allows users to participate more actively in game conversations, and enhances the interactivity and diversity of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024123706_05062025_PF_FP_ABST
    Figure CN2024123706_05062025_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to an interaction method, an interaction apparatus and a computer-readable medium, and relates to the technical field of computers. The interaction method comprises: receiving a first input of a user, the user controlling a first virtual character in a game, and the game further comprising a plurality of virtual characters not controlled by the user; on the basis of the first input and by means of a second virtual character currently interacting with the user, determining from amongst the plurality of virtual characters a third virtual character as a target virtual character to interact with the user, the second virtual character being one of the plurality of virtual characters; on the basis of the first input and the plot of the game and by means of the second virtual character, determining first interaction information of the second virtual character in respect of the first input; and displaying the first interaction information.
Need to check novelty before this filing date? Find Prior Art

Description

Interaction method, interaction device and computer-readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to an application filed in China with application number 202311598840.8 and filing date November 27, 2023. The disclosed content of the Chinese application is hereby introduced as a whole into this application. Technical Field

[0003] The present disclosure relates to the field of computer technology, and in particular to an interaction method, an interaction device, and a computer-readable storage medium. Background Art

[0004] With the rapid development of computer technology and Internet technology, electronic games are becoming more and more popular. During the game process, you may encounter situations where you have game conversations with multiple virtual characters in the same game scene.

[0005] In related technologies, the game plot and dialogue content are pre-determined. When the game plot reaches a specified progress, a dialogue session is triggered, and the game progresses based on the predetermined dialogue content. This dialogue method is relatively rigid, low user engagement, and poor user experience.

[0006] Summary of the Invention

[0007] In view of this, the embodiments of the present disclosure propose an interaction method, an interaction device and a computer-readable storage medium, which can enable users to independently control the content of conversations during the game, advance the game process based on the user's conversation content, increase user participation, and enhance the user's gaming experience.

[0008] According to a first aspect of some embodiments of the present disclosure, an interaction method is provided, comprising: receiving a first input from a user, the user controlling a first virtual character in a game, the game also comprising a plurality of virtual characters not controlled by the user; determining, based on the first input and through a second virtual character currently interacting with the user, a third virtual character from the plurality of virtual characters as a target virtual character to be interacted with the user, the second virtual character being one of the plurality of virtual characters; determining, based on the first input, the plot of the game and through the second virtual character, first interaction information of the second virtual character in response to the first input; and displaying the first interaction information.

[0009] According to a second aspect of some embodiments of the present disclosure, an interaction apparatus is provided, comprising: an input device for receiving a first input from a user, wherein the user controls a first virtual character in a game, and the game also includes multiple virtual characters that are not controlled by the user; a processor configured to determine, based on the first input and through a second virtual character currently interacting with the user, a third virtual character from the multiple virtual characters as a target virtual character to be interacted with the user, the second virtual character being one of the multiple virtual characters, and determining, based on the first input, the plot of the game, and through the second virtual character, first interaction information of the second virtual character for the first input; and a display configured to display the first interaction information.

[0010] According to a third aspect of some embodiments of the present disclosure, an interaction device is provided, comprising: a receiving module configured to receive a first input from a user, wherein the user controls a first virtual character in a game, and the game also includes multiple second virtual characters that are not controlled by the user; a first determining module configured to determine, based on the first input and through a second virtual character currently interacting with the user, a third virtual character from the multiple virtual characters as a target virtual character to interact with the user, the second virtual character being one of the multiple virtual characters; a second determining module configured to determine, based on the first input, the plot of the game, and through the second virtual character, first interaction information of the second virtual character in response to the first input; and a display module configured to display the first interaction information.

[0011] According to a fourth aspect of some embodiments of the present disclosure, an interaction device is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute any one of the aforementioned interaction methods based on instructions stored in the memory.

[0012] According to a fifth aspect of some embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, any one of the aforementioned interaction methods is implemented.

[0013] According to a sixth aspect of some embodiments of the present disclosure, a computer program product is provided, which, when executed on a computer, enables the computer to implement any one of the aforementioned interaction methods.

[0014] This summary is provided to briefly introduce concepts that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0015] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The preferred embodiments of the present disclosure are described below with reference to the accompanying drawings. The drawings described herein are used to provide a further understanding of the present disclosure. Each of the drawings, together with the following detailed description, is included in this specification and forms a part of the specification to explain the present disclosure. It should be understood that the drawings described below only relate to some embodiments of the present disclosure and do not constitute a limitation of the present disclosure. In the drawings:

[0017] FIG1 shows a flow chart of an interaction method according to some embodiments of the present disclosure;

[0018] 2A and 2B show flow charts of interaction methods according to some embodiments of the present disclosure;

[0019] FIG2C shows a flowchart of a method for generating role information according to some embodiments of the present disclosure;

[0020] FIG3 shows a flow chart of an interaction method according to some other embodiments of the present disclosure;

[0021] FIG4 shows a flowchart of an interaction method according to still other embodiments of the present disclosure.

[0022] FIG5 shows a schematic diagram of interactions between multiple roles according to some embodiments of the present disclosure;

[0023] FIG6 shows a block diagram of an interaction device according to some embodiments of the present disclosure;

[0024] FIG7 shows a block diagram of an interaction device according to some other embodiments of the present disclosure;

[0025] FIG8 shows a block diagram of an interaction device according to yet other embodiments of the present disclosure;

[0026] FIG9 illustrates a block diagram of an electronic device according to some embodiments of the present disclosure.

[0027] It should be understood that, for ease of description, the dimensions of the various parts shown in the drawings are not necessarily drawn to scale. The same or similar reference numerals are used throughout the drawings to indicate the same or similar parts. Therefore, once an item is defined in one drawing, it may not be discussed further in subsequent drawings. DETAILED DESCRIPTION

[0028] The following will be combined with the accompanying drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. However, it is obvious that the embodiments described are only some embodiments of the present disclosure, rather than all embodiments. The following description of the embodiments is actually only illustrative and is in no way intended to limit the present disclosure and its application or use. It should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure can be performed in different orders and / or performed in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect. Unless otherwise specifically stated, the relative arrangement, numerical expressions and numerical values ​​of the parts and steps set forth in these embodiments should be interpreted as being merely exemplary and do not limit the scope of the present disclosure.

[0030] As used in this disclosure, the term "include" and its variations are intended to be open-ended terms that include at least the following elements / features but do not exclude other elements / features, i.e., "including but not limited to." Furthermore, the term "comprise" and its variations are intended to be open-ended terms that include at least the following elements / features but do not exclude other elements / features, i.e., "including but not limited to." Therefore, "include" and "include" are synonymous. The term "based on" means "based, at least in part, on."

[0031] Reference throughout this specification to "one embodiment," "some embodiments," or "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. For example, the term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Furthermore, the appearances of the phrases "in one embodiment," "in some embodiments," or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment, but may.

[0032] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules, or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules, or units. Unless otherwise specified, concepts such as "first" and "second" are not intended to imply that the objects described in such a manner must be in a given order in time, space, ranking, or any other manner.

[0033] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0035] The following detailed description of the embodiments of the present disclosure is provided in conjunction with the accompanying drawings, but the present disclosure is not limited to these specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. In addition, in one or more embodiments, specific features, structures, or characteristics may be combined in any suitable manner that will be apparent to those skilled in the art from this disclosure.

[0036] In related technologies, users can only advance predetermined game plots based on predetermined conversation content. This game interaction method results in low user engagement and a poor gaming experience. To meet users' increasingly demanding gaming experience, the disclosed embodiments provide a new interaction method that allows users to independently control the conversation content during the game and advance the game based on the user's conversation content.

[0037] FIG1 shows a schematic flow chart of an interaction method according to some embodiments of the present disclosure.

[0038] The interaction method of this embodiment can be executed on the client side or on the user side. As shown in Figure 1, the interaction method includes: step S1, receiving a first input from a user, wherein the user controls a first virtual character in a game, and the game also includes multiple virtual characters that are not controlled by the user; step S2, based on the first input and through the second virtual character currently interacting with the user, determining a third virtual character from the multiple virtual characters as the target virtual character to be interacted with by the user, wherein the second virtual character is one of the multiple virtual characters; step S3, based on the first input, the plot of the game, and through the second virtual character, determining the first interaction information of the second virtual character in response to the first input; step S4, displaying the first interaction information.

[0039] The user may also be referred to as a “player.” Each of the multiple virtual characters may also be referred to as an “actor,” such as a non-player character (NPC), which may be implemented by an artificial intelligence (AI) agent.

[0040] The second virtual character currently interacting with the user is, for example, actor A, i.e., NPC A, and the target virtual character to be interacted with by the user may be the same as the second virtual character, i.e., the third virtual character is also actor A. Of course, the target virtual character may also be different from the second virtual character, i.e., the third virtual character may be, for example, actor B different from actor A, i.e., NPC B.

[0041] In some embodiments, each AI agent corresponds to a machine learning model with independent planning and behavior capabilities; different AI agents can correspond to the same machine learning model but be configured with different prompt information, such as prompt templates.

[0042] In the game, each actor corresponds to an AI agent, meaning multiple actors correspond to multiple AI agents. With a single AI agent, all actors share a global memory, effectively one person playing all roles. Unlike a single AI agent, with multiple AI agents, each knows only what it needs to know and carries its own unique memory. This allows each character to focus more fully on their performance and develop a more independent personality. This results in a more interactive gaming experience than with a single AI agent playing multiple roles.

[0043] The following further describes the interaction method according to an embodiment of the present disclosure with reference to Figures 2A-2B. Figures 2A-2B differ from Figure 1 in that step S2A in Figure 2A is one implementation of step S2 in Figure 1, and step S2B in Figure 2B is another implementation of step S2 in Figure 1. Steps S2A and S2B in Figure 2A and 2B will be described in detail below, and the other steps in Figures 2A-2B will not be repeated.

[0044] As shown in FIG2A , in step S2A, a machine learning model is used to determine the target interaction object to which the content of the first input points, and the third virtual character is determined from the multiple virtual characters based on the target interaction object.

[0045] The user's first input includes a selection of an interactive option or a free input. For example, when the interactive content provided to the user includes multiple interactive options, the user's input includes a selection of an interactive option. Of course, the user may also directly make a free input without selecting an interactive option.

[0046] The machine learning model is, for example, a Large Language Model (LLM) or other natural language processing (NLP) model. For example, based on the user's conversation, natural language processing can be used to determine that the user is speaking to NPC B. In this case, NPC B is directly identified as the target virtual character to interact with the user without reference to the game plot.

[0047] As shown in Figure 2B, in step S2B, a machine learning model is used to determine the third virtual character from the multiple virtual characters based on the first input, the plot of the game, the first prompt information, and the second virtual character, and the first prompt information includes the character information of the multiple virtual characters.

[0048] The game may include multiple chapters. Each chapter corresponds to multiple non-user-controlled virtual characters, and the user-controlled virtual characters interact with the non-user-controlled virtual characters corresponding to each chapter. For example, in a chapter of the game, the user-controlled virtual character may interact with non-player characters NPC A and NPC B. As previously described, such interactions can be achieved through interactions between multiple AI agents.

[0049] The game plot may include the game script and interaction records. For example, the game plot may include at least one of the summary and ending of the current chapter and the interaction records of the current chapter. The interaction records may include chat records between virtual characters, and may also include the content of interaction options and the user's selection of the interaction options.

[0050] The character information may include at least one of character settings, dialogue style, and behavioral guidance.

[0051] 2C , how to generate the character information of the plurality of virtual characters will be described below. FIG2C shows a flow chart of a method for generating character information according to some embodiments of the present disclosure.

[0052] As shown in Figure 2C, the character information generation method includes: step S21, obtaining general prompt information corresponding to the character attributes of the multiple virtual characters; step S22, using a machine learning model to generate type prompt information corresponding to the character attributes of the multiple virtual characters according to the type of the game; step S23, using a machine learning model to generate plot prompt information corresponding one-to-one to the character attributes of the multiple virtual characters according to the plot of the game; step S24, generating character information corresponding one-to-one to the character attributes of the multiple virtual characters according to the general prompt information, the type prompt information, and the plot prompt information.

[0053] In step S21, the general prompt information may include behavioral guidance for the actors, for example, to advance the game according to the story background, character settings, etc. In some embodiments, the general prompt information is generated by a machine learning model.

[0054] In step S22, different types of games have different requirements for actors. For different types of games, the role attributes of actors may also be different, such as character settings and dialogue styles. Therefore, different prompt information is also required.

[0055] In step S23, different actors can correspond to more specific behavioral instructions for the plot of the game. Each actor has his or her own character setting and line style. Therefore, more specific prompt information is needed for the plot of the game.

[0056] In step S24, a machine learning model can be used to integrate the general prompt information, type prompt information, and plot prompt information obtained in steps S21-S23 to generate role information for different actors.

[0057] When each actor determines the target virtual character based on the plot of the game, he needs to understand not only his own character information but also the character information of other actors. That is, the first prompt information includes the character information of the multiple virtual characters.

[0058] In some embodiments, the first prompt information also includes examples of interactions between the multiple virtual characters. For example, when actor A, currently interacting with the user, determines that actor B is the target virtual character, the user can communicate the result of the interaction permission determination via a message in a specified format. As previously described, the AI ​​agent corresponding to actor A can output a message in a specified format via a prompt message when determining to grant interaction permission to actor B. Upon receiving this message, the game engine will invoke the AI ​​agent corresponding to actor NPC B to advance the game.

[0059] After determining the target virtual character (i.e., the actor who will interact with the user next), the content of the interaction between the actor and the user needs to be further determined. In some embodiments, a machine learning model is used to determine the first interaction information of the second virtual character in response to the first input based on the first input, the plot of the game, the second prompt information, and the second virtual character. The second prompt information includes the character information and memory summary of the second virtual character.

[0060] As previously mentioned, in some embodiments of determining the target virtual character, the first prompt information includes the character information of the multiple virtual characters. When determining the first interaction information, only the character information of the target virtual character may be used. For example, if actor B is determined to be the target virtual character, the AI ​​agent corresponding to actor B determines the first interaction information based on the user input, the game plot development, and actor B's character information.

[0061] The first interaction information may include interaction options provided to the user. The first interaction information may also include dialogue information output to the user.

[0062] The machine learning model can be the text generation model based on natural language processing mentioned above, which generates the first interactive information in text form according to the user's first input, the plot of the game, the second prompt information and other text content.

[0063] The machine learning model may also be a text-based graph model, such as one based on a generative adversarial network (GAN) or a diffusion model. Using a text-based graph model, the first interactive information in the form of an image can be generated based on text content such as user input, game plot, and prompt information.

[0064] The machine learning model may also be a graph-based model, similar to a text-based model, including graph-based models based on generative adversarial networks, diffusion models, etc. When the user input includes an image, the graph-based model may be used to generate the first interaction information in the form of an image.

[0065] As previously mentioned, the target virtual character, as one of the multiple virtual characters, also has character information including at least one of character settings, dialogue style, and behavioral guidelines. In some embodiments, for each of the multiple virtual characters, a memory summary of each chapter in which the character appeared is generated and saved based on the dialogue records in each chapter. For example, for the target virtual character, such as actor B, a designated AI agent can be used to generate a memory summary of each chapter based on the dialogue records in the game chapters in which actor B appeared.

[0066] After determining the first interaction information, the first interaction information may be displayed on an interaction interface between the target virtual character and the user. The first interaction information of the target virtual character may be returned to the user in a streaming manner.

[0067] In some embodiments, the image of the virtual character currently interacting with the user may also be displayed. For example, if the virtual character currently interacting with the user is NPC A, the image of NPC A will be displayed on the user interface. As the game progresses, if the virtual character currently interacting with the user becomes the previously determined target virtual character, such as NPC B, the image of NPC B will be displayed on the user interface.

[0068] In the above embodiment, the user can autonomously control the conversation content during the game through the first input, and utilize the interaction between multiple AI agents corresponding to different actors to advance the game process based on the user's conversation content through the game engine. The following further describes the game interaction with Figures 3 and 4.

[0069] Figure 3 shows a flow chart of an interaction method according to some other embodiments of the present disclosure. The interaction method shown in Figure 3 can be executed after the interaction method shown in Figure 1 to further advance the game process.

[0070] As shown in Figure 3, the interaction method includes: step S5, providing interactive content to the user based on the first input, the first interaction information, the plot of the game, and the third virtual character; step S6, receiving the user's second input for the interactive content; step S7, determining a fourth virtual character from the multiple virtual characters as the target virtual character to be interacted with by the user based on the second input, the plot of the game, the first prompt information, and the third virtual character, wherein the fourth virtual character is the same as or different from the second virtual character, and the first prompt information includes the character information of the multiple virtual characters; step S8, determining the second interaction information of the third virtual character for the second input based on the second input, the plot of the game, the third prompt information of the third virtual character, and the third virtual character, wherein the third prompt information includes the character information and memory summary of the third virtual character; step S9, displaying the second interaction information.

[0071] In step S5, a machine learning model may also be used to determine the interactive content provided to the user based on the first interactive information, the plot of the game, and the character information of the third virtual character.

[0072] In step S6 , similar to the first input, the second input may also include a selection of an interactive option or a free input.

[0073] In step S7, the fourth virtual character is the same as or different from the second virtual character. The fourth virtual character can be determined from the multiple virtual characters in a manner similar to that used to determine the third virtual character. If the target interaction object can be directly determined based on the user's second input, the fourth virtual character can be determined independently of the game's plot. If the target interaction object cannot be directly determined based on the user's second input, the fourth virtual character can be determined from the multiple virtual characters using a machine learning model based on the game's plot and the character information of the multiple virtual characters.

[0074] In step S8, the second interaction information may be determined in a manner similar to the aforementioned determination of the first interaction information.

[0075] In step S9, the second interaction information may also be displayed in a manner similar to that of displaying the first interaction information.

[0076] Figure 4 shows a flow chart of an interaction method according to some further embodiments of the present disclosure. The interaction method shown in Figure 4 can also be executed after the interaction method shown in Figure 1 to further advance the game process in an interaction manner different from that shown in Figure 3.

[0077] As shown in Figure 4, the interaction method includes: step S7', based on the first input, the first interaction information, the plot of the game, the first prompt information, and the third virtual character, determining a fourth virtual character from the multiple virtual characters as the target virtual character to interact with the user, the fourth virtual character being the same as or different from the second virtual character, and the first prompt information including the character information of the multiple virtual characters; step S8', based on the first input, the first interaction information, the plot of the game, the third prompt information of the third virtual character, and the third virtual character, determining the second interaction information of the third virtual character for the first interaction information, the third prompt information including the character information and memory summary of the third virtual character; in step S9', displaying the second interaction information.

[0078] In step S7', after the third virtual character (e.g., actor B) outputs the first interaction information, instead of providing interactive content to the user (as in step S7 in Figure 3), a fourth virtual character, such as actor C, different from the second virtual character (e.g., actor A), may be determined based on the game plot. In this case, the character displayed on the user interface will switch from actor B to actor C. The fourth virtual character can be determined in a similar manner to the third virtual character.

[0079] In step S8', the second interaction information may also be determined in a manner similar to that of determining the first interaction information.

[0080] Likewise, in step S9 ′, the second interaction information may be displayed in a manner similar to that of displaying the first interaction information.

[0081] The above describes different game interaction modes in conjunction with Figures 3 and 4. It should be understood that during the game's progression, the virtual character currently interacting with the user can determine whether the game has ended or whether to proceed to the next chapter based on the game's plot. In other words, according to some embodiments of the present disclosure, the interaction method further includes: determining whether the game has entered the next chapter or whether the game has ended based on the game's plot through the virtual character currently interacting with the user.

[0082] The following uses Figure 5 to more intuitively describe how the interaction between multiple characters advances the game process.

[0083] Figure 5 illustrates a schematic diagram of interactions between multiple characters according to some embodiments of the present disclosure. As shown in Figure 5 , in a chapter of a game, the game progresses through interactions between the player, NPC A, and NPC B. The game engine is responsible for invoking the corresponding AI agent and passing the interaction content to the corresponding AI agent.

[0084] In Figure 5, the input and output of each conversation refer to the input and output during the interaction with the machine learning model; in each round of interaction with the machine learning model, each NPC maintains a historical record of the conversation.

[0085] First, based on the game's plot, the NPC who starts speaking in that chapter, such as NPC A, outputs interaction information. For example, the AI ​​agent corresponding to NPC A feeds the game's plot, such as the current chapter's summary and ending, and NPC A's memory summary, into a machine learning model. The resulting output includes specific interaction information, such as "NPC A's speech xxxx," where "NPC A's speech" indicates that NPC A is speaking, and the "xxxx" following "NPC A's speech" represents the content of NPC A's speech based on the game's plot.

[0086] In addition to outputting their speech, NPC A can also provide interactive content to the player. Similarly, NPC A's corresponding AI agent, based on the game's plot, determines which options 1 and 2 are to be provided to the player as interactive content, for example, "Interactive content provided to the player: Option 1, Option 2." The interactive content "Option 1, Option 2" can be streamed back to the player. Of course, the determined content can also include no options, providing a free input box for the user. The content following "Player's speech" can be considered the player's speech.

[0087] The speech content of NPC A and the interactive content provided to the player can be displayed on the user interface corresponding to NPC A.

[0088] Next, the player makes a first input, such as selecting "Option 1." In response to the player's first input, the game engine may call the AI ​​agent corresponding to NPC A and pass the player's selection result to the AI ​​agent corresponding to NPC A.

[0089] The AI ​​agent corresponding to NPC A, similar to the process of determining interaction information previously, further inputs the player's selection results into the machine learning model. The resulting output includes first interaction information for the first input and the first target virtual character, for example, "NPC A's speech yyyy specifies NPC B," where "NPC A's speech" indicates that NPC A spoke, "yyyy" is the content of NPC A's speech based on the game's plot, and "specify NPC B" indicates that the character interacting with the player will be switched to NPC B, the first target virtual character. The first interaction information "yyyy" can be streamed back to the player and displayed on the user interface corresponding to NPC A.

[0090] Based on the above output, the game engine calls the AI ​​agent corresponding to NPC B and passes the interaction record of the current chapter to the AI ​​agent corresponding to NPC B.

[0091] Next, the AI ​​agent corresponding to NPC B feeds the interaction records for the current chapter, including NPC A's speech, the interactive content provided to the player, and the player's selection results, into a machine learning model. The resulting output includes a second interaction message, such as "NPC B's speech zzzz," in response to the player's selection result. This second interaction message "zzzz" can be streamed back to the player and displayed on NPC B's corresponding user interface.

[0092] Similar to the process of determining the first interaction information and the target virtual character, the AI ​​agent corresponding to NPC B inputs the interaction records of the current chapter into the machine learning model. The resulting output includes, in addition to the second interaction information, the second target virtual character determined to be the target for further interaction with the player. The determined second target virtual character may be the same as the first target virtual character, for example, still NPC A, indicated as "Designated NPC A", indicating that the character interacting with the player is switched to NPC A.

[0093] Correspondingly, the game engine continues to call the AI ​​agent corresponding to NPC A, and passes the second interaction information "zzzz" output by the AI ​​agent corresponding to NPC B to the AI ​​agent corresponding to NPC A.

[0094] Of course, the second target virtual character may be different from the first target virtual character, for example, NPC C instead of NPC A. The output may include "specify NPC C", which means that the character interacting with the player is switched to NPC C. Accordingly, the game engine will call the AI ​​agent corresponding to NPC C and pass the second interaction information "zzzz" output by the AI ​​agent corresponding to NPC B to the AI ​​agent corresponding to NPC C.

[0095] The AI ​​agent corresponding to the second target virtual character then inputs the aforementioned further interaction records into the machine learning model, and the resulting output includes the second target virtual character's second interaction information with the player, such as "aaaa." The interaction information "aaaa" can be streamed back to the user and displayed on the user interface corresponding to the second target virtual character.

[0096] If the AI ​​agent corresponding to the second target virtual character determines that the game has reached its end point based on the game's plot, it can output a game-ending prompt, such as "vvvv [Game Over]." This can be expressed as a system voiceover of "vvvv," but this information can be invisible to the user and not streamed back to them. Alternatively, a game-ending animation can be displayed.

[0097] It should be understood that the content 1 of the system narration, in addition to indicating the end of the game, can also indicate calling up a battle template, parameter changes, entering the next chapter, game failure, etc.

[0098] If the AI ​​agent corresponding to the second target virtual character determines based on the game plot that the current chapter of the game has ended and the game is about to enter the next chapter, it can output a prompt indicating that the game is about to enter the next chapter. For example, the system narration can be used to express that the game is about to enter the next chapter.

[0099] At the end of the current chapter, the interaction record of the current chapter will serve as a plot summary of the chapter for related characters (such as NPCs that appear in this chapter) to call. Of course, if the current chapter is the ending chapter of the game, an animation indicating the success of the game can also be displayed.

[0100] At the end of each chapter, a dedicated AI agent determines which characters appeared in that chapter and generates a list of NPCs that appeared in that chapter. Furthermore, based on the perspective of each NPC in that list and the complete global context of the previous chapter, a memory summary of that NPC is generated.

[0101] The above is the interaction method provided by the embodiment of the present disclosure. The following describes the interaction device according to the embodiment of the present disclosure with reference to Figures 6 to 8, which is used to perform the above interaction method.

[0102] FIG6 shows a block diagram of an interaction device according to some embodiments of the present disclosure. As shown in FIG6 , the interaction device 6 includes:

[0103] An input device 61 is configured to receive a first input from a user, the user controlling a first virtual character in a game, the game also including multiple virtual characters not controlled by the user;

[0104] The processor 63 is configured to: determine, based on the first input and through a second virtual character currently interacting with the user, a third virtual character from the multiple virtual characters as a target virtual character to be interacted with by the user, wherein the second virtual character is one of the multiple virtual characters;

[0105] Determining, based on the first input, the plot of the game, and the second virtual character, first interaction information of the second virtual character in response to the first input; and

[0106] The display 65 is configured to display the first interaction information.

[0107] The input device 61 is configured to execute step S1 of Figure 1. The input device 61 is a device used by a user to input text, sound, image and other information, and may include a touch screen, touchpad, keyboard, mouse, image sensor, microphone and the like.

[0108] Processor 63 is configured to execute steps S2-S3 of Figure 1. Processor 63 can be embodied as various processing devices, such as a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The central processing unit (CPU) can be of X86 or ARM architecture, etc.

[0109] In addition, although not shown, the interactive device 6 may also include a memory, which may store various information generated during operation of the interactive device 6, programs and data used for operation, etc. Of course, the memory may also be located outside the interactive device.

[0110] The processor 63 can execute computer-readable instructions stored in the memory to implement the interaction method in the above embodiment, and control other components in the interaction device 6 to perform desired functions.

[0111] The display 65 is configured to perform step S4 of FIG. 1 .

[0112] FIG7 shows a block diagram of an interaction device according to some other embodiments of the present disclosure.

[0113] As shown in Figure 7, the interaction device 7 includes: a receiving module 71, configured to receive a first input from a user, where the user controls a first virtual character in a game, and the game also includes multiple second virtual characters that are not controlled by the user; a first determination module 72, configured to determine a third virtual character from the multiple virtual characters based on the first input and through the second virtual character currently interacting with the user, as a target virtual character to be interacted with the user, the second virtual character being one of the multiple virtual characters; a second determination module 73, configured to determine first interaction information of the second virtual character for the first input based on the first input, the plot of the game, and through the second virtual character; and a display module 74, configured to display the first interaction information.

[0114] The interaction device 7 can be used to execute steps S1 to S4 in FIG. 1 .

[0115] FIG8 shows a block diagram of an interaction device according to yet other embodiments of the present disclosure.

[0116] As shown in FIG8 , the interaction device 8 includes: a memory 81 ; and a processor 82 coupled to the memory 81 , wherein the processor 82 is configured to execute the interaction method described in any of the aforementioned embodiments based on instructions stored in the memory 81 .

[0117] Memory 81 is used to store one or more computer-readable instructions. Memory 81 may include any combination of various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory, including but not limited to random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), read-only memory (ROM), and flash memory. Memory 81 may, for example, store an operating system, application programs, a boot loader, databases, and other programs, as well as various application programs and data.

[0118] The processor 82 is used to execute computer-readable instructions to implement the interaction method described in any of the above embodiments. The specific implementation of each step of the interaction method can be found in the above embodiments, and the repeated parts are not repeated here.

[0119] The processor 82 and the memory 81 can communicate with each other directly or indirectly. For example, the processor 82 and the memory 81 can communicate via a network. The network can include a wireless network, a wired network, and / or any combination of wireless and wired networks. The processor 82 and the memory 81 can also communicate with each other via a system bus, which is not limited in this disclosure.

[0120] It should be noted that the components of the interactive device 8 shown in FIG8 are merely exemplary and non-limiting. The interactive device 8 may also have other components according to actual application requirements. The processor 82 may utilize other components in the interactive device 8 to perform desired functions.

[0121] The interactive device can be implemented by software, firmware and / or hardware, and can be integrated into an electronic device installed with relevant application programs.

[0122] FIG9 illustrates a block diagram of an electronic device according to some embodiments of the present disclosure.

[0123] The electronic device 9 shown in FIG. 9 may be a computer system with a dedicated hardware structure, which can execute corresponding functions when a relevant application program is installed.

[0124] Electronic devices include, but are not limited to, mobile terminals such as smart phones, laptops, personal digital assistants (PDAs), tablet personal computers (Tablet PCs), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable devices, etc., as well as fixed terminals such as digital televisions, desktop computers, etc.

[0125] As shown in Figure 9, a central processing unit (CPU) 91 performs various processes according to a program stored in a read-only memory (ROM) 92 or a program loaded from a storage part 98 to a random access memory (RAM) 93. In the RAM 93, data required when the CPU 91 performs various processes, etc., is stored as needed. The central processing unit is merely exemplary and may also be other types of processors, such as the various processors described above. The ROM 92, RAM 93 and storage part 98 may be various forms of computer-readable storage media. It should be noted that although the ROM 92, RAM 93 and storage part 98 are shown separately in Figure 9, one or more of them may be combined or located in the same or different memory or storage modules.

[0126] The CPU 91, the ROM 92, and the RAM 93 are connected to one another via a bus 94. To the bus 94, an input / output interface 95 is also connected.

[0127] The following components are connected to the input / output interface 95: an input portion 96, such as a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output portion 97, including a display, such as a cathode ray tube (CRT), liquid crystal display (LCD), speaker, vibrator, etc.; a storage portion 98, including a hard disk, magnetic tape, etc.; and a communication portion 99, including a network interface card, such as a LAN card, modem, etc. The communication portion 99 allows communication processing to be performed via a network, such as the Internet. It will be readily understood that although FIG9 shows that the various devices or modules in the electronic device 9 communicate via bus 94, they may also communicate via a network or other means, wherein the network may include a wireless network, a wired network, and / or any combination of wireless and wired networks.

[0128] A drive 910 is also connected to the input / output interface 95 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is mounted on the drive 910 as needed so that a computer program read therefrom is installed in the storage section 98 as needed.

[0129] When the above-described series of processing is implemented by software, a program constituting the software can be installed from a network such as the Internet or a storage medium such as the removable medium 911 .

[0130] According to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which, when running on a computer, enables the computer to implement the interactive method described in any of the aforementioned embodiments. The computer program product includes a computer program carried on a computer-readable medium, which contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 99, or installed from the storage part 98, or installed from the ROM 92. When the computer program is executed by the CPU 91, the interactive method of the embodiment of the present disclosure is executed.

[0131] It should be noted that, in the context of the present disclosure, a computer-readable medium may be a tangible medium that may contain or store a program for use by an instruction execution system, apparatus, or device or for use in conjunction with an instruction execution system, apparatus, or device.

[0132] The computer readable medium may be a computer readable storage medium, or a computer readable signal medium, or any combination of the two.

[0133] Computer-readable storage media include, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or components, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device. A computer program is stored on a computer-readable storage medium that, when executed by a processor, implements the interactive method described in any of the foregoing embodiments.

[0134] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0135] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0136] In some embodiments, a computer program is further provided, comprising: instructions, which, when executed by a processor, cause the processor to perform the interaction method of any of the above embodiments. For example, the instructions may be embodied as computer program codes.

[0137] In embodiments of the present disclosure, computer program code for performing the operations of the present disclosure can be written in one or more programming languages ​​or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In situations involving a remote computer, the remote computer can be connected to the user's computer via any type of network (including a local area network (LAN) or a wide area network (WAN)), or can be connected to an external computer (e.g., using an Internet service provider to connect via the Internet).

[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0139] The functions described above may be performed at least in part by one or more hardware logic components. For example, and without limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0140] Although some specific embodiments of the present disclosure have been described in detail by way of examples, those skilled in the art will appreciate that the above examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Those skilled in the art will appreciate that modifications may be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. An interactive method, comprising: Receiving a first input from a user, wherein the user controls a first virtual character in a game, wherein the game also includes a plurality of virtual characters that are not controlled by the user; Determining, according to the first input and through the second virtual character currently interacting with the user, a third virtual character from the multiple virtual characters as a target virtual character to be interacted with by the user, wherein the second virtual character is one of the multiple virtual characters; Determining, according to the first input, the plot of the game, and through the second virtual character, first interaction information of the second virtual character in response to the first input; The first interaction information is displayed.

2. The interactive method according to claim 1, wherein: Determining a third virtual character from the plurality of virtual characters according to the first input and through the second virtual character comprises: Determining the third virtual character from the plurality of virtual characters using the machine learning model according to the first input, the plot of the game, the first prompt information, and the second virtual character, wherein the first prompt information includes character information of the plurality of virtual characters; or A machine learning model is used to determine a target interaction object to which the content of the first input points, and the third virtual character is determined from the multiple virtual characters based on the target interaction object.

3. The interactive method according to claim 1 or 2, wherein: Determining, according to the first input, the plot of the game, and through the second virtual character, first interaction information of the second virtual character in response to the first input includes: Using a machine learning model, based on the first input, the plot of the game, the second prompt information, and the second virtual character, the first interaction information of the second virtual character in response to the first input is determined, wherein the second prompt information includes the character information and memory summary of the second virtual character.

4. The interactive method according to any one of claims 1 to 3, further comprising: Acquire general prompt information corresponding to the role attributes of the plurality of virtual roles; According to the type of the game, using a machine learning model, generating type prompt information corresponding to the role attributes of the multiple virtual characters; According to the plot of the game, using a machine learning model, generating plot prompt information corresponding to the character attributes of the multiple virtual characters one by one; Generate the multi-prompt information according to the general prompt information, the type prompt information, and the plot prompt information. The role information of each virtual character corresponds to the role attributes of each virtual character.

5. The interactive method according to claim 2, wherein: The first prompt information also includes interaction examples between the multiple virtual characters.

6. The interactive method according to claim 3, wherein: The game includes multiple chapters, and the interactive method further includes: According to the dialogue records in each chapter, for each of the multiple virtual characters, a memory summary of the chapters in which the virtual character appeared is generated and saved.

7. The interactive method according to any one of claims 1 to 6, further comprising: providing interactive content to the user through the third virtual character according to the first input, the first interactive information, the plot of the game; receiving a second input from the user regarding the interactive content; According to the second input, the plot of the game, the first prompt information, and the third virtual character, a fourth virtual character is determined from the plurality of virtual characters as a target virtual character to be interacted with by the user, the fourth virtual character being the same as or different from the second virtual character, and the first prompt information including character information of the plurality of virtual characters; Determining second interaction information of the third virtual character for the second input according to the second input, the plot of the game, and third prompt information of the third virtual character through the third virtual character, wherein the third prompt information includes character information and a memory summary of the third virtual character; The second interaction information is displayed.

8. The interactive method according to any one of claims 1 to 6, further comprising: According to the first input, the first interaction information, the plot of the game, the first prompt information, and through the third virtual character, a fourth virtual character is determined from the multiple virtual characters as a target virtual character to be interacted with by the user, the fourth virtual character being the same as or different from the second virtual character, and the first prompt information including character information of the multiple virtual characters; determining, according to the first input, the first interaction information, the plot of the game, third prompt information of the third virtual character, and through the third virtual character, second interaction information of the third virtual character in response to the first interaction information, wherein the third prompt information includes character information and a memory summary of the third virtual character; The second interaction information is displayed.

9. The interactive method according to any one of claims 1 to 6, wherein: The game includes multiple chapters, and the interaction method further includes: According to the plot of the game, whether the game enters the next chapter or whether the game ends is determined through the virtual character currently interacting with the user.

10. The interactive method according to any one of claims 1 to 6, further comprising: An image of a virtual character currently interacting with the user is displayed.

11. The interactive method according to any one of claims 1 to 6, wherein: The user input includes a selection of an interactive option or a free input; and / or The plot of the game includes at least one of a plot summary and an ending of the current chapter and an interaction record of the current chapter; and / or The first interaction information includes interaction options provided to the user.

12. The interactive method according to any one of claims 3 to 6, wherein: The role information includes at least one of character settings, dialogue style, and behavior guidance.

13. An interactive device, comprising: An input device for receiving a first input from a user, wherein the user controls a first virtual character in a game, wherein the game also includes a plurality of virtual characters that are not controlled by the user; The processor is configured as: Determining, according to the first input and through the second virtual character currently interacting with the user, a third virtual character from the multiple virtual characters as a target virtual character to be interacted with by the user, wherein the second virtual character is one of the multiple virtual characters; Determining, according to the first input, the plot of the game, and through the second virtual character, first interaction information of the second virtual character in response to the first input; A display is configured to display the first interaction information.

14. An interactive device, comprising: A receiving module configured to receive a first input from a user, wherein the user controls a first virtual character in a game, and the game also includes a plurality of second virtual characters that are not controlled by the user; A first determining module is configured to determine, according to the first input and through a second virtual character currently interacting with the user, a third virtual character from the multiple virtual characters as a target virtual character to be interacted with by the user, wherein the second virtual character is one of the multiple virtual characters; The second determining module is configured to determine the game scene according to the first input, the plot of the game, and the second virtual virtual character, determining first interaction information of the second virtual character with respect to the first input; The display module is configured to display the first interaction information.

15. An interactive device, comprising: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the interaction method according to any one of claims 1 to 12 based on instructions stored in the memory.

16. A computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the interactive method according to any one of claims 1 to 12.

17. A computer program product, when the computer program product is run on a computer, enables the computer to implement the interactive method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Non-player game role control method and device, equipment and storage medium

    CN113440839A

  • Method and device for prompting content in game, electronic equipment and storage medium

    CN115463421A

  • Display control method and device of virtual character and electronic equipment

    CN115463424A

  • Virtual character generation method and device

    CN116932719A

  • Operation control display method and apparatus based on virtual scene

    US20220032186A1