Interaction method, interaction device and computer readable storage medium
By introducing an interactive method of users independently controlling virtual character dialogue in electronic games, using AI agents to promote the game process, solving the problems of low user participation and rigid dialogue content in existing games, and achieving higher user participation and game experience.
Patent Information
- Application Number
- CN202311598806.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2025-05-27
AI Technical Summary
In existing electronic games, when users talk to multiple virtual characters in the same game scene, the participation level is low, the game experience is poor, and the dialogue content is relatively rigid, which cannot meet the needs of users' high participation and autonomous control.
By introducing an interaction method, users can independently control virtual characters in the game, use the interaction between multiple AI agents corresponding to directors and actors to advance the game process according to the user's dialogue content. The method includes receiving user input, determining the target role and interactive content through an AI agent, and displaying interactive information.
It improves users' participation and experience in the game, allows users to independently control the conversation content, and enhances the interactivity and diversity of the game.
Smart Images

Figure CN120037652A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and particularly to an interaction method, an interaction device, and a computer-readable storage medium. Background Art
[0002] With the rapid development of computer technologies and Internet technologies, electronic games have become increasingly popular. During the game process, there will be a situation where a user plays game dialogues with multiple virtual characters in the same game scene.
[0003] In the related art, the plot and dialogue content of the game are both pre-determined. That is, when the game plot reaches a specified progress, the dialogue session is triggered, and the game process is advanced based on the determined dialogue content. This dialogue method is relatively rigid, with low user participation, resulting in a poor user gaming experience. Summary of the Invention
[0004] In view of this, embodiments of the present disclosure provide an interaction method, an interaction device, and a computer-readable storage medium, which can enable a user to independently control the dialogue content during the game process, and advance the game process based on the user's dialogue content, improving user participation and enhancing the user gaming experience.
[0005] According to a first aspect of some embodiments of the present disclosure, there is provided an interaction method, including: receiving a first input from a user, where the user controls a virtual character in the game; determining, according to the first input, the plot of the game, and through a first type of character, a first target character from multiple second type of characters, and determining first interaction content of the first target character with respect to the first input, where the first type of character is not a character in the game, the second type of character is a virtual character in the game that is not controlled by the user, and the first type of character is used to guide the interaction of the second type of character in the game; determining, according to the first interaction content, first interaction information of the first target character with respect to the first input, where the first interaction information is the same as or different from the first interaction content; and displaying the first interaction information.
[0006] According to a second aspect of some embodiments of the present disclosure, there is provided an interaction device, including: an input device configured to receive an input from a user who controls a virtual character in a game; one or more processors configured to: determine a first target character from a plurality of second type characters through a first type character according to the first input of the user and the plot of the game, and determine first interaction content of the first target character with respect to the first input, wherein the first type character is not a character in the game, the second type character is a non-user-controlled virtual character in the game, and the first type character is used to guide the interaction of the second type character in the game; determine first interaction information of the first target character with respect to the first input according to the first interaction content, wherein the first interaction information is the same as or different from the first interaction content; and a display configured to display the first interaction information of the first target character with respect to the first input.
[0007] According to a third aspect of some embodiments of the present disclosure, there is provided an interaction device, including: a receiving module configured to receive an input from a user who controls a virtual character in a game; a first determining module configured to determine a first target character from a plurality of second type characters through a first type character according to the first input and the plot of the game, and determine first interaction content of the first target character with respect to the first input, wherein the first type character is not a character in the game, the second type character is a non-user-controlled virtual character in the game, and the first type character is used to guide the interaction of the second type character in the game; a second determining module configured to determine first interaction information of the first target character with respect to the first input according to the first interaction content, wherein the first interaction information is the same as or different from the first interaction content; and a display module configured to display the first interaction information of the first target character with respect to the first input.
[0008] According to a fourth aspect of some embodiments of the present disclosure, there is provided an interaction device, including: a memory; and a processor coupled to the memory, the processor being configured to execute any of the foregoing interaction methods based on instructions stored in the memory.
[0009] According to a fifth aspect of some embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements any of the foregoing interaction methods.
[0010] According to a sixth aspect of some embodiments of the present disclosure, there is provided a computer program product, which when run on a computer, causes the computer to implement any of the foregoing interaction methods.
[0011] This Summary is provided to introduce a brief selection of concepts that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
[0012] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments, taken in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Preferred embodiments of the present disclosure are described below with reference to the accompanying drawings. The drawings provided herein are for further understanding of the present disclosure, and together with the following detailed description, are incorporated in and form a part of this specification to explain the present disclosure. It should be understood that the drawings in the following description relate only to some embodiments of the present disclosure and do not limit the scope of the present disclosure. In the drawings:
[0014] Figure 1 show a flowchart of an interaction method according to some embodiments of the present disclosure;
[0015] Figure 2A 、 2B show a flowchart of an interaction method according to some embodiments of the present disclosure;
[0016] Figure 2C show a flowchart of a role information generation method according to some embodiments of the present disclosure;
[0017] Figure 3 show a flowchart of an interaction method according to some other embodiments of the present disclosure;
[0018] Figure 4 show a flowchart of an interaction method according to some further embodiments of the present disclosure.
[0019] Figure 5 show a schematic diagram of interactions between multiple roles according to some embodiments of the present disclosure;
[0020] Figure 6 show a block diagram of an interaction device according to some embodiments of the present disclosure;
[0021] Figure 7 show a block diagram of an interaction device according to some other embodiments of the present disclosure;
[0022] Figure 8 show a block diagram of an interaction device according to some further embodiments of the present disclosure;
[0023] Figure 9 show a block diagram of an electronic device according to some embodiments of the present disclosure.
[0024] It should be understood that, for ease of description, the dimensions of the various parts shown in the drawings are not necessarily drawn to actual scale. The same or similar reference numerals are used in the various drawings to denote the same or similar components. Therefore, once an item is defined in one drawing, it may not be further discussed in subsequent drawings. Detailed implementation mode
[0025] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. However, it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of the embodiments is actually only illustrative and in no way restricts 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 limited to the embodiments set forth herein.
[0026] It should be understood that the various steps recorded in the method embodiments of the present disclosure can be executed in different orders and / or 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 regard. Unless otherwise specifically stated, the relative arrangements, numerical expressions, and numerical values of the components and steps set forth in these embodiments should be construed as merely exemplary and do not limit the scope of the present disclosure.
[0027] The term "comprising" and its variants used in the present disclosure mean open terms that include at least the subsequent elements / features, but do not exclude other elements / features, that is, "including but not limited to". In addition, the term "containing" and its variants used in the present disclosure mean open terms that include at least the subsequent elements / features, but do not exclude other elements / features, that is, "containing but not limited to". Therefore, including and containing are synonymous. The term "based on" means "at least partially based on".
[0028] Throughout the specification, the terms "one embodiment", "some embodiments", or "embodiments" mean that specific features, structures, or characteristics described in connection with the embodiments are 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"; the term "some embodiments" means "at least some embodiments". Moreover, the appearances of the phrases "in one embodiment", "in some embodiments", or "in embodiments" throughout the specification do not necessarily all refer to the same embodiment, but may also refer to the same embodiment.
[0029] It should be noted that concepts such as "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships. Unless otherwise specified, concepts such as "first", "second", etc. are not intended to imply that the objects so described must be in a given order in terms of time, space, ranking or any other way.
[0030] It should be noted that the modifications of "one" and "plural" mentioned in this disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless clearly specified otherwise in the context, it should be understood as "one or more".
[0031] The names of the messages or information exchanged between multiple devices in the embodiments of this disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0032] The embodiments of this disclosure will be described in detail below with reference to the accompanying drawings. However, this disclosure is not limited to these specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In addition, in one or more embodiments, specific features, structures or characteristics can be combined in any suitable manner that will be clear to those of ordinary skill in the art from this disclosure.
[0033] In the related art, users can only advance the predetermined game plot based on the predetermined dialogue content. In such a game interaction mode, the user participation is low and the user game experience is poor. To meet the increasingly high experience requirements of users for electronic games, the embodiments of this disclosure provide a new interaction method that can enable users to independently control the dialogue content during the game process and advance the game process based on the user's dialogue content.
[0034] Figure 1 A flowchart showing the interaction method according to some embodiments of this disclosure is shown.
[0035] The interaction method of this embodiment can be executed on the client side or on the user side. As Figure 1As shown in the figure, the interaction method includes: Step S1, receiving a first input from a user, where the user controls a virtual character in the game; Step S2, determining a first target character from multiple second-type characters according to the first input and through a first-type character, where the first-type character is not a character in the game, the second-type character is a non-user-controlled virtual character in the game, and the first-type character is used to guide the interaction of the second-type characters in the game; Step S3, determining first interaction content of the first target character for the first input according to the first input, the plot of the game, and through the first-type character; Step S4, determining first interaction information of the first target character for the first input according to the first interaction content, where the first interaction information is the same as or different from the first interaction content; Step S5, displaying the first interaction information.
[0036] The user can also be referred to as a "player". The first-type character, which is used to guide the interaction of the second-type characters in the game and can also be referred to as a "director", can be implemented through an artificial intelligence (AI) agent. The second-type character can also be referred to as an "actor", such as a non-player character (NPC), and can also be implemented through an AI agent.
[0037] 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 are configured with different prompt information, such as a prompt template.
[0038] In the game, each actor corresponds to an AI agent, that is, multiple actors correspond to multiple AI agents. In the case of a single AI agent, all actors will share a set of global memories, which is equivalent to one person playing all roles. Different from a single AI agent, in the case of multiple AI agents, each AI agent only knows what it should know, has its own memory, can make each character perform more dedicatedly, and is more inclined to have an independent personality. The interaction experience of the game is better than that of a single AI agent playing multiple roles.
[0039] Next, with reference to Figures 2A-2B , the interaction method according to the embodiments of the present disclosure will be further described. Figures 2A-2B Different from Figure 1 : Figure 2A Step S2A in Figure 1 is an implementation manner of Step S2 in Figure 2B Step S2B in Figure 1 is another implementation manner of Step S2 in Figure 2A Step S2A in Figure 2BIn step S2B, the other steps will not be elaborated.
[0040] As Figure 2A shown, in step S2A, using a machine learning model, determine the target interaction object pointed to by the content of the first input, and based on the target interaction object, determine the first target role from the multiple second-type roles.
[0041] The first input of the user includes the selection of interaction options or free input. For example, when the interaction content provided by the first-type role to the user includes multiple interaction options, the user's input includes the selection of interaction options. Of course, the user can also directly perform free input without selecting interaction options.
[0042] The machine learning model is, for example, a large language model (LLM, Large Language Model) or other natural language processing (NLP) models. For example, based on the user's conversation, through natural language processing, it can be determined that the user is speaking to NPC B. In this case, the director can directly determine NPC B as the first target role without referring to the game's plot.
[0043] As Figure 2B shown, in step S2B, using a machine learning model, based on the user's first input, the game's plot, and the first prompt information, determine the first target role from the multiple second-type roles, where the first prompt information includes the role information of the first-type role and the role information of the multiple second-type roles.
[0044] The game may include multiple chapters, each chapter corresponding to at least one second-type role, and the virtual role controlled by the user interacts with the second-type role corresponding to each chapter. For example, in a certain chapter of the game, the virtual role controlled by the user can interact with non-player characters NPC A and NPC B. As mentioned before, such interactions can be achieved through the interactions between multiple AI agents.
[0045] The game's plot may include the game's script and interaction records. For example, the game's plot includes at least one of the summary and ending of the current chapter, the interaction records of the current chapter, and the plot summary of the previous chapters. Interaction records can include chat records between virtual characters, and can also include the content of interaction options and the user's selection of interaction options.
[0046] The role information may include at least one of character settings, line styles, and behavior guidelines.
[0047] Next, refer to Figure 2C, describe how to generate the role information of the first type of character and the role information of the multiple second type of characters. Figure 2C The flowchart of the role information generation method according to some embodiments of the present disclosure is shown.
[0048] As Figure 2C shown, the role information generation method includes: Step S21, obtaining a first general prompt information and a second general prompt information corresponding to the role attributes of the first type of character and the second type of character respectively; Step S22, according to the type of the game, using a machine learning model, generating a first type of prompt information and a second type of prompt information corresponding one by one to the role attributes of the first type of character and the second type of character respectively; Step S23, according to the plot of the game, using a machine learning model, generating a first plot prompt information and a second plot prompt information corresponding one by one to the role attributes of the first type of character and the second type of character respectively; Step S24, generating the role information of the first type of character according to the first general prompt information, the first type of prompt information, and the first plot prompt information; Step S25, generating the role information of the second type of character according to the second general prompt information, the second type of prompt information, and the second plot prompt information.
[0049] In step S21, for the first type of character such as a director, the corresponding first general prompt information may include the behavior guidelines of the director. For example, according to the story background and the script, promote the development of the game, including transmitting information among various characters and giving instructions on how to interact to each character, etc. For the second type of character such as an actor, the corresponding first general prompt information may include the behavior guidelines of the actor. For example, according to the story background, the character setting, and the director's instructions, promote the development of the game.
[0050] In some embodiments, the first general prompt information and the second general prompt information are respectively generated by a machine learning model.
[0051] In step S22, for different types of games, the requirements for a director and an actor are different. For different types of games, the role attributes of the director and the actor will be different. For example, the character setting and the line style may be different. Therefore, different prompt information is also required.
[0052] In step S23, for the plot of the game, both the director and the actor can correspond to more specific behavior guidelines. Each actor also has his own character setting and line style. Therefore, for the plot of the game, more specific prompt information is required.
[0053] In step S24, a machine learning model can be used to fuse the first general prompt information, the first type of prompt information, and the first plot prompt information obtained in steps S21 - S23 to generate the character information of the director.
[0054] In step S25, a machine learning model can be used to fuse the second general prompt information, the second type of prompt information, and the second plot prompt information obtained in steps S21 - S23 to generate the character information of different actors.
[0055] When the director determines the first target character based on the game's plot, they need to know both their own character information (i.e., the character information of the first type of character) and the character information of the actors (i.e., the character information of multiple second - type characters).
[0056] In some embodiments, the first prompt information further includes interaction examples between the first type of character and the second type of character. For example, when the director determines that actor A is the first target character, they can pass the determination result of the interaction permission through information in a specified format. As mentioned before, the AI agent corresponding to the director can, through the prompt information, output information in a specified format when determining to give the interaction permission to actor A. After the game engine receives this information, it will call the AI agent corresponding to actor NPC A to advance the game process.
[0057] After the director determines the first target character, i.e., the actor who will interact with the user next, they also need to further indicate the interaction content between this actor and the user. In some embodiments, a machine learning model is used to determine the first interaction content of the first target character with respect to the first input based on the first input of the user, the plot of the game, and the first prompt information.
[0058] As mentioned before, the first prompt information includes the character information of the first type of character and the character information of the multiple second - type characters. When determining the first interaction content, only the character information of the first target character can also be used. For example, when the director determines that actor A is the first target character, the director determines the first interaction content based on the content input by the user, the development of the game's plot, and the character information of actor A. In this case, the determined first interaction content can also be passed to actor A through information in a specified format.
[0059] The machine learning model can be the text generation model based on natural language processing mentioned before, which generates the first interaction content in text form according to text contents such as the first input of the user, the plot of the game, and the first prompt information.
[0060] The machine learning model can also be an image generation from text model, such as an image generation from text model based on a Generative Adversarial Network (GAN), a Diffusion Model, etc. Using the image generation from text model, first interaction content in the form of an image can be generated according to text content such as the user's input, the plot of the game, and prompt information.
[0061] The machine learning model can also be an image generation from image model, similar to the image generation from text model, including an image generation from image model based on a Generative Adversarial Network, a Diffusion Model, etc. In the case where the user's input includes an image, the image generation from image model can be used to generate first interaction content in the form of an image.
[0062] After determining the first interaction content of the first target role with respect to the first input using the machine learning model, the first target role further determines first interaction information based on the first interaction content.
[0063] In some embodiments, the first target role directly uses the first interaction content determined by the director as the first interaction information for the first input.
[0064] In some other embodiments, using the machine learning model, based on the first input, the first interaction content, and second prompt information, the first interaction information of the first target role for the first input is determined, and the second prompt information includes the role information and memory summary of the first target role. For example, the AI agent corresponding to actor A determines the first interaction content corresponding to its role information, etc., according to the first interaction content determined by the director.
[0065] As mentioned above, the first target role, as one of multiple second type roles, its role information also includes at least one of character setting, line style, and behavior guidance. In some embodiments, for each second type role, a memory summary of the chapters in which it has appeared is respectively generated and saved according to the conversation records in each chapter. For example, for the first target role, such as actor A, a designated AI agent can be used to generate a memory summary of the corresponding chapter according to the conversation records of actor A in the game chapters in which it has appeared.
[0066] After determining the first interaction information, the first interaction information can be displayed on the interaction interface between the first target role and the user. The first interaction information of the first target role can be returned to the user in a streaming manner. In some embodiments, the image of the first target role can also be displayed. For example, the image of the first target role is displayed on the user interface.
[0067] In the above embodiments, the user can independently control the dialogue content during the game through the first input, and utilize the interaction between multiple AI agents corresponding to the director and the actors. Through the game engine, the game process is advanced based on the user's dialogue content. The following will be combined with Figures 3-4 to further describe the interaction of the game.
[0068] Figure 3 The flowchart of an interaction method according to some other embodiments of the present disclosure is shown. Figure 3 The shown interaction method can be executed after Figure 1 the shown interaction method to further advance the game process.
[0069] As Figure 3 shown, the interaction method includes: Step S6, providing interaction content to the user through the first type of character according to the first interaction information and the plot of the game; Step S7, receiving a second input from the user for the interaction content; Step S8, determining a second target character from the multiple second type of characters through the first type of character according to the second input and the plot of the game, and determining the second interaction content of the second target character for the second input; Step S9, determining the second interaction information of the second target character for the second input according to the second interaction content, where the second interaction information is the same as or different from the second interaction content; Step S10, displaying the second interaction information.
[0070] In Step S6, a machine learning model can also be utilized to determine the interaction content provided to the user according to the first interaction information, the plot of the game, and the character information of the first type of character.
[0071] In Step S7, similar to the first input, the second input can also include the selection of interaction options or free input.
[0072] In Step S8, the second target character is the same as or different from the first target character. The second target character can be determined from the multiple second type of characters in a manner similar to determining the first target character. In the case where the target interaction object can be directly determined according to the user's second input, the determination of the second target character can be independent of the plot of the game; while in the case where the target interaction object cannot be directly determined according to the user's second input, a machine learning model is utilized to determine the second target character from the multiple second type of characters according to the plot of the game and the character information of the multiple second type of characters.
[0073] Similarly, the second interaction content of the second target character for the second input can be determined in a manner similar to determining the first interaction content described above.
[0074] In step S9, the second interaction information can also be determined in a manner similar to that for determining the first interaction information.
[0075] Similarly, in step S10, the second interaction information can also be displayed in a manner similar to that for displaying the first interaction information.
[0076] Figure 4 A flowchart showing an interaction method according to still further embodiments of the present disclosure is shown. Figure 4 The interaction method shown can also be performed Figure 1 after the interaction method shown to further advance the game process in a different interaction manner. Figure 3
[0077] As Figure 4 shown, the interaction method includes: step S8', according to the first interaction information and the plot of the game, determining a third target character from the plurality of second type characters through the first type character, and determining third interaction content of the third target character with respect to the first interaction information, where the third target character is different from the first target character; step S9', determining third interaction information of the second target character with respect to the second input according to the third interaction content, where the third interaction information is the same as or different from the third interaction content; in step S10', displaying the third interaction information.
[0078] In step S8', after the first target character outputs the first interaction information, it may not provide interaction content to the user (such as Figure 3 step S6), but according to the plot of the game, determine a third target character different from the first target character (such as actor A), for example actor B, and further determine the interaction content of actor B. In this case, the character displayed on the user interface will switch from actor A to actor B.
[0079] The third target character can be determined in a manner similar to that for determining the first target character. The third interaction content can be determined in a manner similar to that for determining the first interaction content. Details are not described herein again.
[0080] In step S9', the third interaction information can also be determined in a manner similar to that for determining the first interaction information.
[0081] Similarly, in step S10', the third interaction information can also be displayed in a manner similar to that for displaying the first interaction information.
[0082] As described above in connection with Figure 3 and Figure 4 Describes different interaction methods of the game. It should be understood that during the progress of the game, the director can determine whether the game ends or enters the next chapter according to the plot of the game. According to some embodiments of the present disclosure, the interaction method further includes: determining whether the game enters the next chapter or whether the game ends through the first type of character according to the plot of the game.
[0083] The following combines Figure 5 to more intuitively describe how the interaction between multiple characters advances the game process.
[0084] Figure 5 Shows a schematic diagram of the interaction between multiple characters according to some embodiments of the present disclosure. As Figure 5 shown, in a certain chapter of the game, the game process is promoted through the interaction between the player, the director, and Actor A. Among them, the game engine is responsible for calling the corresponding AI agent and passing the interaction content to the corresponding AI agent.
[0085] In Figure 5 , the input and "output" of each dialogue refer to the input and output during the interaction with the machine learning model; during each round of interaction with the machine learning model, the director and the actor both maintain the historical dialogue record.
[0086] First, the player makes a first input, for example, a free input. The game engine calls the AI agent corresponding to the director and passes the player's free input to the AI agent corresponding to the director.
[0087] The AI agent corresponding to the director inputs the plot of the game, such as the summary and ending of the current chapter, the interaction record of the current chapter (including the last N chat records and the player's latest free input), and the plot summary of the previous chapter, into the machine learning model. The obtained output includes the determined first target character and the first interaction content, such as "designate Actor A xxxx" or "designate NPC A xxxx", where "Actor A" or "NPC A" is the determined target character, and "xxxx" is the interaction content instructed by the director to Actor A according to the plot of the game.
[0088] The game engine calls the AI agent corresponding to Actor A according to the above output and passes the interaction record of the current chapter and the interaction content determined by the director to the AI agent corresponding to Actor A.
[0089] The AI agent corresponding to Actor A inputs the interaction record of the current chapter and the interaction content determined by the director into the machine learning model. The obtained output includes the first interaction information of Actor A for the player's free input, such as "yyyy". The interaction information "yyyy" can be returned to the user in a streaming manner and displayed on the user interface corresponding to Actor A.
[0090] The game engine continues to call the AI agent corresponding to the director and passes the interaction information output by the AI agent corresponding to actor A to the AI agent corresponding to the director.
[0091] The AI agent corresponding to the director determines, according to the game's plot, to provide options 1 and 2 as interactive content to the player. The interactive content "Option 1 Option 2" can be streamed back to the user. In response to the player's second input, for example, selecting "Option 1", the AI agent corresponding to the director, similar to the process of determining the first target character before, further inputs the player's selection result into the machine learning model, and the output also includes the determined second target character and second interaction content.
[0092] The determined second target character may be the same as the first target character. For example, it may still be actor A. Accordingly, the interaction content determined for the second target character can be expressed as "Designated NPC A zzzz". Of course, the determined second target character may also be different from the first target character. For example, it may not be actor A but actor B. Accordingly, the output may include "Designated NPC B".
[0093] Then, the AI agent corresponding to the second target character, such as actor A, inputs the foregoing further interaction record and the interaction content determined by the director into the machine learning model, and the output includes the interaction information of the second target character for the player's Option 1, such as "cccc". The interaction information "cccc" can be streamed back to the user and displayed on the user interface corresponding to the second target character.
[0094] Next, if the director determines according to the game's plot that the game reaches the end node, a game over prompt can be output. For example, it can be expressed in the form of a system voiceover "vvvv". Of course, a game over animation can also be displayed.
[0095] Similarly, if the director determines according to the game's plot that the current chapter of the game ends and the game proceeds to the next chapter, a prompt that the game is about to enter the next chapter can be output. For example, it can be expressed in the form of a system voiceover "wwww". When the current chapter ends, the interaction record of the current chapter will be used as a summary of the chapter's plot for relevant characters (such as the director and the actors appearing in this chapter) to call. Of course, if the current chapter is the ending chapter of the game, an animation indicating game success can also be displayed.
[0096] The above is the interaction method provided by the present disclosure embodiment. Next, refer to Figures 6-8 Describe an interaction device according to an embodiment of the present disclosure for performing any of the above interaction methods.
[0097] Figure 6 Show a block diagram of an interaction device according to some embodiments of the present disclosure. AsFigure 6 As shown, the interaction device 6 includes:
[0098] An input device 61, configured to receive a first input from a user, where the user controls a virtual character in the game;
[0099] A processor 63, configured to: determine a first target character from a plurality of second type characters according to the first input of the user and through a first type of character, where the first type of character is not a character in the game, the second type of character is a non-user-controlled virtual character in the game, and the first type of character is used to guide the interaction of the second type of character in the game; determine first interaction content of the first target character with respect to the first input according to the first input and the plot of the game and through the first type of character; determine first interaction information of the first target character with respect to the first input according to the first interaction content, where the first interaction information is the same as or different from the first interaction content; and
[0100] A display 65, configured to display the first interaction information.
[0101] The input device 61 is configured to execute Figure 1 step S1. The input device 61 is a device for the user to input information such as text, sound, and images, and may include a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, etc.
[0102] The processor 63 is configured to execute Figure 1 steps S2 - S4. The 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, discrete hardware components. The central processing unit (CPU) can be of the X86 or ARM architecture, etc.
[0103] In addition, although not shown, the interaction device 6 may also include a memory, which can store various information generated during the operation of the interaction device 6, programs and data for operation, etc. Of course, the memory can also be located outside the interaction device.
[0104] The processor 63 can run computer-readable instructions stored in the memory to implement the interaction method in the above embodiments, and control other components in the interaction device 6 to perform desired functions.
[0105] The display 65 is configured to execute Figure 1 step S5.
[0106] Figure 7 A block diagram of an interaction device according to other embodiments of the present disclosure is shown.
[0107] As Figure 7 shown, the interaction device 7 includes: a receiving module 71 configured to receive an input from a user who controls a virtual character in a game; a first determination module 72 configured to determine a first target character from a plurality of second type characters according to the first input and through a first type of character, where the first type of character is not a character in the game, and the second type of character is a non-user-controlled virtual character in the game, and the first type of character is used to guide the interaction of the second type of character in the game; a second determination module 73 configured to determine first interaction content of the first target character with respect to the first input according to the first input, the plot of the game, and through the first type of character; a third determination module 74 configured to determine first interaction information of the first target character with respect to the first input according to the first interaction content, where the first interaction information is the same as or different from the first interaction content; and a display module 75 configured to display the first interaction information.
[0108] The interaction device 7 can be used to execute Figure 1 steps S1 - S5 of
[0109] Figure 8 A block diagram of an interaction device according to still other embodiments of the present disclosure is shown.
[0110] As Figure 8 shown, the interaction device 8 includes: a memory 81; and a processor 82 coupled to the memory 81, where the processor 82 is configured to execute the interaction method described in any of the foregoing embodiments based on instructions stored in the memory 81.
[0111] The memory 81 is used to store one or more computer-readable instructions. The 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), flash memory. The memory 81 may store, for example, an operating system, application programs, a boot loader (BootLoader), a database, and other programs, and may also store various application programs and various data, etc.
[0112] The processor 82 is used to run the computer-readable instructions to implement the interaction method described in any of the foregoing embodiments. For the specific implementation of each step of the interaction method, reference may be made to the foregoing embodiments, and the repeated parts will not be elaborated here.
[0113] 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 through a network. The network can include a wireless network, a wired network, and / or any combination of a wireless network and a wired network. The processor 82 and the memory 81 can also communicate with each other through a system bus, which is not limited in this disclosure.
[0114] It should be noted that Figure 8 The components of the interaction device 8 shown are exemplary and not restrictive. According to actual application needs, the interaction device 8 may also have other components. The processor 82 can interact with other components in the interaction device 8 to perform desired functions.
[0115] The interaction device can be implemented in software, firmware, and / or hardware, and can be integrated into an electronic device installed with relevant application programs.
[0116] Figure 9 A block diagram of an electronic device according to some embodiments of the present disclosure is shown.
[0117] Figure 9 The electronic device 9 shown can be a computer system with a dedicated hardware structure, and can perform corresponding functions when installed with relevant application programs.
[0118] The electronic device includes, but is not limited to, mobile terminals such as smart phones, laptop computers, personal digital assistants (PDAs), tablet personal computers (Tablet PCs), portable multimedia players (PMPs), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable devices, etc., and fixed terminals such as digital TVs, desktop computers, etc.
[0119] As Figure 9 shown, the central processing unit (CPU) 91 executes various processes according to the programs stored in the read-only memory (ROM) 92 or the programs loaded from the storage section 98 into the random access memory (RAM) 93. In the RAM 93, data required when the CPU 91 executes various processes, etc., is stored as needed. The central processing unit is merely exemplary, and it can also be other types of processors, such as the various processors described above. The ROM 92, the RAM 93, and the storage section 98 can be various forms of computer-readable storage media. It should be noted that although Figure 9 the ROM 92, the RAM 93, and the storage section 98 are shown separately, one or more of them can be combined, or located in the same or different memories or storage modules.
[0120] The CPU 91, ROM 92, and RAM 93 are connected to each other via a bus 94. An input / output interface 95 is also connected to the bus 94.
[0121] The following components are connected to the input / output interface 95: an input section 96 such as a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output section 97 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage section 98 including a hard disk, a magnetic tape, etc.; and a communication section 99 including a network interface card such as a LAN card, a modem, etc. The communication section 99 allows communication processing to be performed via a network such as the Internet. It is easily understood that although Figure 9 each device or module in the electronic device 9 shown in is communicated through the bus 94, they can also communicate through a network or other means, where the network can include a wireless network, a wired network, and / or any combination of a wireless network and a wired network.
[0122] As needed, a drive 910 is also connected to the input / output interface 95. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is installed on the drive 910 as needed, so that a computer program read therefrom is installed in the storage section 98 as needed.
[0123] In the case where the above series of processes are 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.
[0124] 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 that, when run on a computer, causes the computer to implement the interaction method described in any of the foregoing embodiments. The computer program product includes a computer program carried on a computer-readable medium, and the computer program includes program code for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication device 99, or installed from the storage section 98, or installed from the ROM 92. When the computer program is executed by the CPU 91, the interaction method of the embodiment of the present disclosure is executed.
[0125] It should be noted that in the context of the present disclosure, a computer-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
[0126] A computer-readable medium may be a computer-readable storage medium, a computer-readable signal medium, or any combination of the two above.
[0127] Computer-readable storage media include, but are not limited to: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. A computer program is stored on the computer-readable storage medium, and when the program is executed by a processor, the interactive method described in any of the foregoing embodiments is implemented.
[0128] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable signal medium may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or component. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0129] The above computer-readable medium may be included in the above electronic device; or it may exist separately without being assembled into the electronic device.
[0130] In some embodiments, a computer program is also provided, including: instructions that, when executed by a processor, cause the processor to execute the interactive method of any of the above embodiments. For example, the instructions may be embodied as computer program code.
[0131] In embodiments of the present disclosure, computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The foregoing programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer, execute as a stand-alone software package, execute partially on the user's computer and partially on a remote computer, or execute entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network (including a local area network (LAN) or a wide area network (WAN)), or may be connected to an external computer (e.g., by connecting through the Internet using an Internet service provider).
[0132] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0133] The functions described above may be performed, at least in part, by one or more hardware logic components. By way of example and not limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), system on a chip (SOC), complex programmable logic devices (CPLD), and the like.
[0134] Although some specific embodiments of the present disclosure have been described in detail by way of example, those skilled in the art should understand 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 should understand that the above embodiments may be modified 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 interaction method, comprising: Receiving a first input from a user, where the user controls a virtual character in a game; Determining a first target character from multiple second-type characters according to the first input and through a first-type character, where the first-type character is not a character in the game, the second-type characters are non-user-controlled virtual characters in the game, and the first-type character is used to guide the interaction of the second-type characters in the game; Determining first interaction content of the first target character with respect to the first input according to the first input, the plot of the game, and through the first-type character; Determining first interaction information of the first target character with respect to the first input according to the first interaction content, where the first interaction information is the same as or different from the first interaction content; Displaying the first interaction information.
2. The interaction method according to claim 1, wherein Determining a first target character from multiple second-type characters includes: Using a machine learning model to determine the first target character from the multiple second-type characters according to the first input of the user, the plot of the game, and first prompt information, where the first prompt information includes the character information of the first-type character and the character information of the multiple second-type characters; or Using a machine learning model to determine a target interaction object pointed to by the content of the first input, and determining the first target character from the multiple second-type characters according to the target interaction object.
3. The interaction method according to claim 2, wherein Determining first interaction content of the first target character with respect to the first input includes: Using a machine learning model to determine the first interaction content of the first target character with respect to the first input according to the first input of the user, the plot of the game, and the first prompt information.
4. The interaction method according to claim 1, wherein Determining first interaction information of the first target character with respect to the first input according to the first interaction content includes: Using a machine learning model to determine the first interaction information of the first target character with respect to the first input according to the first input, the first interaction content, and second prompt information, where the second prompt information includes the character information of the first target character and a memory summary.
5. The interaction method according to claim 3, further comprising: Obtaining first general prompt information and second general prompt information corresponding to the character attributes of the first-type character and the second-type characters respectively; Using a machine learning model to generate first-type prompt information and second-type prompt information corresponding one-to-one to the character attributes of the first-type character and the second-type characters respectively according to the type of the game; Using a machine learning model to generate first plot prompt information and second plot prompt information corresponding one-to-one to the character attributes of the first-type character and the second-type characters respectively according to the plot of the game; Generate the character information of the first type of character according to the first general prompt information, the first type of prompt information, and the first plot prompt information; Generate the character information of the second type of character according to the second general prompt information, the second type of prompt information, and the second plot prompt information.
6. The interaction method according to claim 3, wherein, The first prompt information further includes an interaction example between the first type of character and the second type of character.
7. The interaction method according to claim 4, wherein, The game includes multiple chapters, each chapter corresponds to at least one second type of character, and the virtual character controlled by the user interacts with the second type of character corresponding to each chapter, The interaction method further includes: According to the conversation records in each chapter, for each second type of character, generate and save a memory summary of the chapters in which it has appeared.
8. The interaction method according to any one of claims 1 to 7, further includes: Provide interaction content to the user through the first type of character according to the first interaction information and the plot of the game; Receive a second input from the user for the interaction content; According to the second input and the plot of the game, determine a second target character from the multiple second type of characters through the first type of character, and determine the second interaction content of the second target character for the second input, wherein the second target character is the same as or different from the first target character; Determine the second interaction information of the second target character for the second input according to the second interaction content, wherein the second interaction information is the same as or different from the second interaction content; Display the second interaction information.
9. The interaction method according to any one of claims 1 to 7, further includes: Determine a third target character from the multiple second type of characters through the first type of character according to the first interaction information and the plot of the game, and determine the third interaction content of the third target character for the first interaction information, wherein the third target character is different from the first target character; Determine the third interaction information of the second target character for the second input according to the third interaction content, wherein the third interaction information is the same as or different from the third interaction content; Display the third interaction information.
10. The interaction method according to any one of claims 1 to 7, wherein, The game includes multiple chapters, and the interaction method further includes: Determine whether the game enters the next chapter or whether the game ends through the first type of character according to the plot of the game.
11. The interaction method according to any one of claims 1 to 7, further includes: Display the image of the first target character.
12. The interaction method according to any one of claims 1 to 7, wherein: The input of the user includes the selection of interaction options or free input; and / or The plot of the game includes at least one of the summary and ending of the current chapter, the interaction records of the current chapter, and the plot summary of the previous chapters.
13. The interaction method according to any one of claims 2 to 7, wherein, the character information includes at least one of character setting, line style, and behavior guidance.
14. An interaction device, comprising: an input device configured to receive an input from a user, where the user controls a virtual character in a game; a processor configured to: determine a first target character from a plurality of second type characters according to the first input of the user and through a first type of character, wherein the first type of character is not a character in the game, the second type of character is a non-user-controlled virtual character in the game, and the first type of character is used to guide the interaction of the second type of character in the game; determine first interaction content of the first target character for the first input according to the first input, the plot of the game, and through the first type of character; determine first interaction information of the first target character for the first input according to the first interaction content, wherein the first interaction information is the same as or different from the first interaction content; a display configured to display the first interaction information.
15. An interaction device, comprising: a receiving module configured to receive an input from a user, where the user controls a virtual character in a game; a first determination module configured to determine a first target character from a plurality of second type characters according to the first input and through a first type of character, wherein the first type of character is not a character in the game, the second type of character is a non-user-controlled virtual character in the game, and the first type of character is used to guide the interaction of the second type of character in the game; a second determination module configured to determine first interaction content of the first target character for the first input according to the first input, the plot of the game, and through the first type of character; a third determination module configured to determine first interaction information of the first target character for the first input according to the first interaction content, wherein the first interaction information is the same as or different from the first interaction content; a display module configured to display the first interaction information.
16. An interaction device, comprising: a memory; and a processor coupled to the memory, the processor being configured to execute the interaction method according to any one of claims 1 to 13 based on instructions stored in the memory.
17. A computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the interaction method according to any one of claims 1 to 13.
18. A computer program product, which when run on a computer, causes the computer to implement the interaction method according to any one of claims 1 to 13.