Game interaction method and device based on conversation

文档序号:1133969 发布日期:2020-10-09 浏览:12次 中文

阅读说明:本技术 一种基于对话的游戏交互方法及装置 (Game interaction method and device based on conversation ) 是由 万廷高 王庆中 于 2020-07-03 设计创作,主要内容包括:本申请提供一种基于对话的游戏交互方法及装置,其中所述方法包括:根据玩家在当前游戏界面中所选择的对话选项生成玩家反馈信息,并将所述玩家反馈信息发送至所述服务器;接收所述服务器下发的目标对话内容对应的特征标识并读取所述目标对话内容,并将所述目标对话内容对应的非玩家角色对话框以及至少两个对话选项展示在当前游戏界面中;判断所述目标对话内容是否为所述目标游戏任务对应的对话流程列表中的最终对话内容;若是则向所述服务器发送所述目标游戏任务的任务结算请求并将任务奖励界面展示在当前游戏界面中;若否,则根据玩家在当前游戏界面中所选择的对话选项生成玩家反馈信息,并将所述玩家反馈信息发送至所述服务器。(The application provides a game interaction method and device based on conversation, wherein the method comprises the following steps: generating player feedback information according to the dialogue options selected by the player in the current game interface, and sending the player feedback information to the server; receiving a feature identifier corresponding to target conversation content issued by the server, reading the target conversation content, and displaying a non-player character dialog box corresponding to the target conversation content and at least two dialog options in a current game interface; judging whether the target conversation content is the final conversation content in a conversation process list corresponding to the target game task; if so, sending a task settlement request of the target game task to the server and displaying a task reward interface in the current game interface; if not, generating player feedback information according to the dialogue options selected by the player in the current game interface, and sending the player feedback information to the server.)

1. A game interaction method based on conversation is applied to a client and comprises the following steps:

step 202: generating player feedback information according to the dialogue options selected by the player in the current game interface, and sending the player feedback information to the server;

step 204: receiving a feature identifier corresponding to target conversation content issued by the server, reading the target conversation content from a conversation process list corresponding to a target game task according to the feature identifier corresponding to the target conversation content, and displaying a non-player character conversation box corresponding to the target conversation content and at least two conversation options in a current game interface;

step 206: judging whether the target conversation content is the final conversation content in a conversation process list corresponding to the target game task; if yes, go to step 208; if not, go to step 202;

step 208: and sending a task settlement request of the target game task to the server and displaying a task reward interface in the current game interface.

2. The method of claim 1, further comprising, prior to generating player feedback information based on the dialog option selected by the player in the current game interface:

sending a request for acquiring a target game task in the n game tasks to a server through a preset communication protocol, wherein n is a positive integer greater than or equal to 1;

receiving a task confirmation instruction corresponding to the target game task issued by the server, entering the target game task and loading a conversation process list corresponding to the target game task;

during the progress of the target game mission, the initial dialog content is triggered with the non-player character in the target game mission upon the request of the player.

3. The method of claim 2, wherein triggering initial session content with a non-player character in a target game mission upon a request by a player comprises:

acquiring a request of a player and sending task state information to a server, wherein the task state information comprises a feature identifier corresponding to a virtual character controlled by the player, a feature identifier corresponding to the triggered non-player character and a feature identifier corresponding to the target game task;

receiving a feature identifier corresponding to initial session content issued by the server, and reading the initial session content from a session flow list corresponding to the target game task according to the feature identifier corresponding to the initial session content;

and displaying a non-player character dialog box corresponding to the initial dialog content and at least two dialog options in the current game interface.

4. The method according to claim 3, before sending a request for obtaining a target game task of the n game tasks to a server through a preset communication protocol, further comprising:

the method comprises the steps of obtaining a conversation process list corresponding to each game task in n game tasks, exporting the conversation process list corresponding to each game task into a binary file through an export tool, and storing the binary file, wherein each conversation process list comprises a plurality of conversation contents arranged according to a task scenario and options corresponding to each conversation content, and n is a positive integer greater than or equal to 1.

5. The method of claim 1, wherein sending a task settlement request for the target game task to the server and presenting a task bonus interface in a current game interface comprises:

after the final conversation content is finished, a task settlement request of the target game task is sent to a server;

and acquiring reward information corresponding to the target game task, and displaying task rewards corresponding to the target game task in a current game interface through a task reward interface according to the reward information corresponding to the target game task.

6. A game interaction method based on conversation is applied to a server and comprises the following steps:

obtaining player feedback information uploaded by a client, determining a characteristic identifier corresponding to target session content according to the player feedback information, storing a task state of a target game task and returning the characteristic identifier corresponding to the target session content to the client;

and acquiring a task settlement request of the target game task uploaded by a client and issuing reward information corresponding to the target game task to the client.

7. The method of claim 6, further comprising, prior to obtaining the player feedback information uploaded by the client:

acquiring a request, uploaded by a client, for acquiring a target game task in the n game tasks through a preset communication protocol, wherein n is a positive integer greater than or equal to 1;

and issuing a task confirmation instruction corresponding to the target game task to the client.

8. The method of claim 7, after issuing a task confirmation instruction corresponding to the target game task to the client, further comprising:

acquiring task state information uploaded by a client, determining a feature identifier corresponding to initial conversation content according to the task state information, and storing a task state of a target game task;

and returning the characteristic identifier corresponding to the initial conversation content to the client.

9. The method of claim 6, wherein obtaining a task settlement request of the target game task uploaded by a client and issuing bonus information corresponding to the target game task to the client comprises:

acquiring a task settlement request of the target game task uploaded by a client;

acquiring reward information corresponding to the target game task according to the task settlement request of the target game task;

and issuing the reward information corresponding to the target game task to the client.

10. A game interaction device based on conversation is characterized in that the game interaction device is arranged at a client and comprises:

the player feedback module is configured to generate player feedback information according to the dialogue options selected by the player in the current game interface and send the player feedback information to the server;

the dialogue advancing module is configured to receive a feature identifier corresponding to target dialogue content issued by the server, read the target dialogue content from a dialogue flow list corresponding to a target game task according to the feature identifier corresponding to the target dialogue content, and display a non-player character dialogue box corresponding to the target dialogue content and at least two dialogue options in a current game interface;

the flow judgment module is configured to judge whether the target conversation content is the final conversation content in a conversation flow list corresponding to the target game task; if yes, executing a task settlement module; if not, executing a player feedback module;

and the task settlement module is configured to send a task settlement request of the target game task to the server and display a task reward interface in the current game interface.

11. A game interaction device based on conversation is characterized in that the game interaction device is arranged on a server and comprises:

the system comprises a conversation deployment module, a client and a server, wherein the conversation deployment module is configured to acquire player feedback information uploaded by the client, determine a feature identifier corresponding to target conversation content according to the player feedback information, store a task state of a target game task and return the feature identifier corresponding to the target conversation content to the client;

and the task reward module is configured to acquire a task settlement request of the target game task uploaded by a client and issue reward information corresponding to the target game task to the client.

12. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-9 when executing the instructions.

13. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 9.

Technical Field

The present application relates to the field of mobile game technologies, and in particular, to a game interaction method and apparatus based on a dialog, a computing device, and a computer-readable storage medium.

Background

In most existing games, each game has its independent world view, designers basically adopt direct text content to enable players to read and understand the game independently when explaining the story background of the game to the players, and once the players skip the story background introduction of the game under the condition of boredom or urgency to customs for a large number of reading, the introduction function of the game story background is useless, the players cannot understand the game deeply, and the player is easy to lose.

Disclosure of Invention

In view of this, embodiments of the present application provide a game interaction method and apparatus based on a dialog, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.

According to a first aspect of embodiments of the present specification, there is provided a session-based game interaction method, applied to a client, including:

step 202: generating player feedback information according to the dialogue options selected by the player in the current game interface, and sending the player feedback information to the server;

step 204: receiving a feature identifier corresponding to target conversation content issued by the server, reading the target conversation content from a conversation process list corresponding to a target game task according to the feature identifier corresponding to the target conversation content, and displaying a non-player character conversation box corresponding to the target conversation content and at least two conversation options in a current game interface;

step 206: judging whether the target conversation content is the final conversation content in a conversation process list corresponding to the target game task; if yes, go to step 208; if not, go to step 202;

step 208: and sending a task settlement request of the target game task to the server and displaying a task reward interface in the current game interface.

According to a second aspect of the embodiments of the present specification, there is provided a session-based game interaction method applied to a server, including:

obtaining player feedback information uploaded by a client, determining a characteristic identifier corresponding to target session content according to the player feedback information, storing a task state of a target game task and returning the characteristic identifier corresponding to the target session content to the client;

and acquiring a task settlement request of the target game task uploaded by a client and issuing reward information corresponding to the target game task to the client.

According to a third aspect of the embodiments of the present specification, there is provided a game interaction device based on a dialog, which is provided at a client and includes:

the player feedback module is configured to generate player feedback information according to the dialogue options selected by the player in the current game interface and send the player feedback information to the server;

the dialogue advancing module is configured to receive a feature identifier corresponding to target dialogue content issued by the server, read the target dialogue content from a dialogue flow list corresponding to a target game task according to the feature identifier corresponding to the target dialogue content, and display a non-player character dialogue box corresponding to the target dialogue content and at least two dialogue options in a current game interface;

the flow judgment module is configured to judge whether the target conversation content is the final conversation content in a conversation flow list corresponding to the target game task; if yes, executing a task settlement module; if not, executing a player feedback module;

and the task settlement module is configured to send a task settlement request of the target game task to the server and display a task reward interface in the current game interface.

According to a fourth aspect of the embodiments of the present specification, there is provided a session-based game interaction apparatus, provided in a server, including:

the system comprises a conversation deployment module, a client and a server, wherein the conversation deployment module is configured to acquire player feedback information uploaded by the client, determine a feature identifier corresponding to target conversation content according to the player feedback information, store a task state of a target game task and return the feature identifier corresponding to the target conversation content to the client;

and the task reward module is configured to acquire a task settlement request of the target game task uploaded by a client and issue reward information corresponding to the target game task to the client.

According to a fifth aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the dialog-based game interaction method when executing the instructions.

According to a sixth aspect of embodiments herein, there is provided a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the dialog based game interaction method.

The application relates to a solution for integrating conversation interaction in a mobile phone game, which makes full use of the interaction between the game and a player to achieve the effects of enabling the player to deeply understand the game background and guiding the player to complete various game tasks, enabling the player to experience the particularity of the game, and feeling the feeling of accompanying people to play the game together like communicating with other people during interaction, thereby increasing the substitution feeling of the player and the understanding of the game, and enabling the playability of the game to be stronger and the online time of the game to be more.

Drawings

FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;

FIG. 2 is a client-side flow diagram of a session-based game interaction method provided by an embodiment of the present application;

FIG. 3 is another flow diagram of a client side of a session-based game interaction method provided by an embodiment of the present application;

FIG. 4 is another flow diagram of a client side of a session-based game interaction method provided by an embodiment of the present application;

FIG. 5 is a schematic diagram of a method for interaction in a session-based game provided by an embodiment of the present application;

FIG. 6 is another schematic diagram of a method for interaction in a session-based game provided by an embodiment of the present application;

FIG. 7 is another schematic diagram of a method of interaction for a session-based game provided by an embodiment of the present application;

FIG. 8 is another flow diagram of a client side of a session-based game interaction method provided by an embodiment of the present application;

FIG. 9 is a client-side flow diagram of a session-based game interaction method provided by an embodiment of the application;

FIG. 10 is another flow diagram of a server side of a session based game interaction method provided by an embodiment of the present application;

FIG. 11 is another flow diagram of a server side of a session based game interaction method provided by an embodiment of the present application;

FIG. 12 is another flow diagram of a server side of a session based game interaction method provided by an embodiment of the present application;

FIG. 13 is a flow diagram of client and server interaction for session-based game interaction provided by an embodiment of the present application;

FIG. 14 is a schematic diagram of a client-side structure of a session-based game interaction device according to an embodiment of the present application;

fig. 15 is a schematic structural diagram of a server of a session-based game interaction device according to an embodiment of the present application.

Detailed Description

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.

The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.

It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.

First, the noun terms to which one or more embodiments of the present invention relate are explained.

And (3) game tasks: and each specific game task under the main line level or the branch line level corresponding to the story line of the game.

The non-player character: that is, NPCs are characters having their own behavior patterns, generally controlled by artificial intelligence of a computer in an electronic game, and may be classified into scenario NPCs, battle NPCs, service NPCs, and the like, and there may be an NPC having a plurality of functions, and the scenario NPCs and the service NPCs generally do not belong to an assaultable object, or belong to an assaultable object but do not attack actively, but attack by a player will attack and then attack will be counterattacked, and normal conversation will not be possible thereafter. Often some NPCs will fall off props. The player may be provided with some game information or trigger play, in which case the NPC may have an exclamation or question mark on its head for receiving and handing tasks.

Conversation content: the dialog that the non-player character generates when interacting with the player-controlled virtual character in the game, and its textual content.

A dialog box: dialogs for non-player characters that set forth game context based on dialog content.

And (4) dialog options: options for the player to answer the dialog that the non-player character set forth the game context based on the dialog content.

The player feedback information: the server generates feedback information based on the session options selected by the player.

List of conversation processes: and the table file is used for storing all the corresponding conversation contents in each game task.

In the present application, a session-based game interaction method, apparatus, computing device and computer-readable storage medium are provided, which are described in detail in the following embodiments one by one.

FIG. 1 shows a block diagram of a computing device 100, according to an embodiment of the present description. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.

Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.

In one embodiment of the present description, the above-described components of computing device 100 and other components not shown in FIG. 1 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the description. Those skilled in the art may add or replace other components as desired.

Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.

Wherein the processor 120 may perform the steps of the method shown in fig. 2. FIG. 2 is a schematic flow chart diagram illustrating a dialog-based game interaction method, including steps 202 through 208, according to an embodiment of the present application.

Step 202: and generating player feedback information according to the dialogue options selected by the player in the current game interface, and sending the player feedback information to the server.

In the embodiment of the application, a player triggers a conversation with a non-character player (NPC) in the process of controlling a virtual character in a game to perform a target game task, at this time, a non-character player conversation box and a conversation option available for the player to selectively answer appear in a current game interface, after the player selects a certain conversation option, the client sends selected data to the server, namely player feedback information is generated, and the server waits for a response.

In the embodiment of the present application, as shown in fig. 3, before generating the player feedback information according to the dialog option selected by the player in the current game interface, steps 302 to 306 are further included.

Step 302: and sending a request for acquiring a target game task in the n game tasks to a server through a preset communication protocol, wherein n is a positive integer greater than or equal to 1.

In the embodiment of the application, the virtual character operated by the player triggers n game tasks according to different levels of game design in the game process, and the player can receive a target game task according to a game scenario and send a request for acquiring the target game task to the server through a preset communication protocol.

In the above embodiment, before sending, to the server through a preset communication protocol, a request for obtaining a target game task of the n game tasks, the method further includes:

the method comprises the steps of obtaining a conversation process list corresponding to each game task in n game tasks, exporting the conversation process list corresponding to each game task into a binary file through an export tool, and storing the binary file, wherein each conversation process list comprises a plurality of conversation contents arranged according to a task scenario and options corresponding to each conversation content, and n is a positive integer greater than or equal to 1.

In the game design stage, a game designer designs conversation contents and logic flows in each game task according to game scenarios, a conversation flow list with a suffix in an xml format is constructed, then the conversation flow list is exported into a binary file by an export tool, a player selects one of conversation options during the game process and enters the next conversation content, and the conversation contents prepare a plurality of fuzzy branches in advance and finally proceed towards a task target.

Step 304: and receiving a task confirmation instruction corresponding to the target game task issued by the server, entering the target game task and loading a conversation flow list corresponding to the target game task.

In the embodiment of the application, after receiving a task confirmation instruction confirmed by a server repackage, the client triggers the specific game content of the target game task and loads the conversation process list corresponding to the target game task into the memory of the client.

Step 306: during the progress of the target game mission, the initial dialog content is triggered with the non-player character in the target game mission upon the request of the player.

In an embodiment of the application, when a player encounters various non-character players during the course of a target game mission, a dialog button is clicked to trigger a dialog with the non-character players, and a client creates a non-character player dialog box and dialog options based on the dialog contents and pops up in the current game interface.

According to the method and the device, the dialogue flow list with the xml format as the suffix is constructed, the dialogue flow list is exported into the binary file by the export tool and stored in the client, so that the corresponding dialogue content is directly loaded according to the target game task, the data processing speed is improved, and the smoothness of the game is ensured.

In an embodiment of the present application, as shown in FIG. 4, initial dialog content is triggered with a non-player character in a target game mission upon a request by a player, including steps 402 through 406.

Step 402: the method comprises the steps of obtaining a request of a player and sending task state information to a server, wherein the task state information comprises a feature identifier corresponding to a virtual character controlled by the player, a feature identifier corresponding to the triggered non-player character and a feature identifier corresponding to a target game task.

In the embodiment of the present application, as shown in fig. 5, when a virtual character is controlled to request a session with a non-character player "lie" at the beginning stage of a target game mission of a player, a client collects task state information including a feature identifier corresponding to the virtual character controlled by the player, a triggered feature identifier corresponding to the non-player character "lie" and a feature identifier corresponding to the target game mission, and sends the task state information to a server to wait for a response.

Step 404: and receiving a characteristic identifier corresponding to the initial session content issued by the server, and reading the initial session content from a session flow list corresponding to the target game task according to the characteristic identifier corresponding to the initial session content.

In the embodiment of the present application, the initial session content refers to the first session content that starts a session with a non-player character, and is also the first session content in the session flow list corresponding to the target game task, and the remaining intermediate target session content is derived from the initial session content.

Step 406: and displaying a non-player character dialog box corresponding to the initial dialog content and at least two dialog options in the current game interface.

In the embodiment of the present application, as shown in fig. 5, after acquiring the initial dialog content corresponding to the target game task, the client end turns a non-player character "li fu" dialog box "corresponding to the initial dialog content into a worry about a down-cut? "and at least two conversation options" without knowing that ancestors can go out of the strategy "and" without knowing how well the principals have, a secondary ancestor "are presented in the current game interface.

According to the method and the device, the initial conversation content of the player when the player interacts with the non-player character is determined through the task state information, so that the accurate corresponding relation among the task, the conversation content and the non-player character is realized, and the stability and the content richness of the game are ensured.

Step 204: and receiving a characteristic identifier corresponding to target conversation content issued by the server, reading the target conversation content from a conversation process list corresponding to a target game task according to the characteristic identifier corresponding to the target conversation content, and displaying a non-player character conversation box corresponding to the target conversation content and at least two conversation options in a current game interface.

In the embodiment of the present application, once a player performs a session interaction with a non-character player in the process of performing a target game task, a client reads the target session content from a session flow list corresponding to the target game task according to a feature identifier corresponding to the target session content issued by a server in the interaction process, and displays a non-player character dialog box corresponding to the target session content and at least two session options in a current game interface, for example, as shown in fig. 6, in the process of performing an interaction between the player and a non-character player occurring in the process of performing the target game task, the client reads the target session content from the session flow list corresponding to the target game task according to the feature identifier corresponding to the target session content issued by the server in the interaction process, and fails the non-player character dialog box corresponding to the target session content "now task, i is not as powerful as my martial arts, and it is not said that you must never escape the palms of the ji-adult. And the 'flying pavilion is mainly carried by innocent villagers in the rice-fragrant village and is shown in the current game interface with actual dangerous and tough viruses'.

Step 206: judging whether the target conversation content is the final conversation content in a conversation process list corresponding to the target game task; if yes, go to step 208; if not, go to step 202.

In the embodiment of the present application, a client determines whether the target session content in the current game interface is the final session content in the session flow list corresponding to the target game task, if the target session content is the final session content in the session flow list corresponding to the target game task, then perform subsequent task settlement, if the target session content is not the final session content in the session flow list corresponding to the target game task, then obtain subsequent target session contents according to the logical order in the session flow list corresponding to the target game task again according to the player feedback information generated by the player selected session option until the final session content in the session flow list corresponding to the target game task, for example, as shown in fig. 7, when a virtual character controlled by the player performs a session interaction with a non-character player 'down', the client judges that the target conversation content' Undao Daxiang village is surrounded, you take the package to go out village, wherein, the target conversation content is Tibetan treasure picture! Go to the small Jing lake to find the person in the cave to meet, and he will send away the treasure drawing. And if the final conversation content is the final conversation content in the conversation process list corresponding to the target game task, performing task settlement of the target game task after the player selects the conversation option.

Step 208: and sending a task settlement request of the target game task to the server and displaying a task reward interface in the current game interface.

In the embodiment of the present application, as shown in fig. 8, a task settlement request of the target game task is sent to the server, and a task bonus interface is displayed in the current game interface, including steps 802 to 804.

Step 802: and after the final conversation content is finished, sending a task settlement request of the target game task to a server.

In an embodiment of the application, after the client displays the final session content in the current game interface or the player selects a session option corresponding to the final session content, the client sends a task settlement request of the target game task to the server through a preset communication protocol.

Step 804: and acquiring reward information corresponding to the target game task, and displaying task rewards corresponding to the target game task in a current game interface through a task reward interface according to the reward information corresponding to the target game task.

In the embodiment of the application, the client acquires the reward information corresponding to the target game task and pops up a task reward interface containing the task reward corresponding to the target game task, so that a player can punish the task reward corresponding to the target game task.

The application relates to a solution for integrating conversation interaction in a mobile phone game, which makes full use of the interaction between the game and a player to achieve the purposes of enabling the player to deeply understand the game background and guiding the player to complete various game tasks, enabling the player to experience the particularity of the game, and feeling the feeling of accompanying with the player to play the game like communicating with other people during interaction, thereby increasing the substitution feeling of the player and the understanding of the game, and enabling the playability of the game to be stronger and the online time of the game to be more.

Wherein the processor 120 may perform the steps of the method shown in fig. 9. Fig. 9 is a schematic flowchart illustrating a dialog-based game interaction method according to an embodiment of the present application, applied to a server, including steps 902 to 904.

Step 902: the method comprises the steps of obtaining player feedback information uploaded by a client, determining a characteristic identifier corresponding to target conversation content according to the player feedback information, storing a task state of a target game task and returning the characteristic identifier corresponding to the target conversation content to the client.

In the embodiment of the application, the server acquires the player feedback information uploaded by the client, determines the feature identifier corresponding to the next target session content of the player according to the player feedback information, enables the target session content to enter a new session branch, stores the task state of the current target game task, and sends the feature identifier corresponding to the next target session content and the confirmation success to the client.

In the embodiment of the present application, as shown in fig. 10, before obtaining the player feedback information uploaded by the client, steps 1002 to 1004 are further included.

Step 1002: and acquiring a request, uploaded by a client, for acquiring a target game task in the n game tasks through a preset communication protocol, wherein n is a positive integer greater than or equal to 1.

In the embodiment of the application, the server acquires a request for acquiring a target game task in the n game tasks, which is uploaded by the client, through a preset communication protocol.

Step 1004: and issuing a task confirmation instruction corresponding to the target game task to the client.

In the embodiment of the application, the server sends a task confirmation instruction to the client, and confirms that the target game task is distributed and completed through the return package.

In the embodiment of the present application, as shown in fig. 11, after issuing the task confirmation instruction corresponding to the target game task to the client, steps 1102 to 1104 are further included.

Step 1102: and acquiring task state information uploaded by the client, determining a characteristic identifier corresponding to the initial conversation content according to the task state information, and storing the task state of the target game task.

In an embodiment of the application, a server acquires task state information uploaded by a client, determines a feature identifier corresponding to initial session content according to the task state information, and stores a task state of a target game task, wherein the task state information includes a feature identifier corresponding to a virtual character controlled by a player, a feature identifier corresponding to a triggered non-player character, and a feature identifier corresponding to the target game task, the initial session content refers to first session content for starting a session with the non-player character, and is also first-order session content in a session flow list corresponding to the target game task, and the rest of intermediate target session content is derived from the initial session content.

Step 1104: and returning the characteristic identifier corresponding to the initial conversation content to the client.

In the embodiment of the application, the server returns the feature identifier corresponding to the initial conversation content to the client, so that the client realizes the triggering conversation interaction between the non-character player and the player according to the initial conversation content.

According to the method and the system, the interactive content of the player and the non-player role is selected by using the service, the game task state is stored, and the control on the conversation content is realized through the feature identification corresponding to the conversation content, so that convenience is brought to optimization and updating of designers from the server side, and a high-efficiency butt joint mode of the server and the client is realized.

Step 904: and acquiring a task settlement request of the target game task uploaded by a client and issuing reward information corresponding to the target game task to the client.

In the embodiment of the present application, as shown in fig. 12, acquiring a task settlement request of the target game task uploaded by a client and issuing bonus information corresponding to the target game task to the client includes steps 1202 to 1206.

Step 1202: and acquiring a task settlement request of the target game task uploaded by the client.

Step 1204: and acquiring reward information corresponding to the target game task according to the task settlement request of the target game task.

Step 1206: and issuing the reward information corresponding to the target game task to the client.

In the embodiment of the application, the server firstly obtains a task settlement request of the target game task uploaded by the client, then obtains reward information corresponding to the target game task according to the task settlement request of the target game task, such as specific props, materials, experience values or skill points, and the like, finally issues the reward information corresponding to the target game task to the client, and feeds the task reward back to the player through the client.

The technical scheme of the application introduces a new conversation interaction mode, and fully utilizes the interaction between the game and the player to achieve the purposes of enabling the player to deeply understand the game background and guiding the player to complete the game task, and increasing the substitution feeling of the game and the game time of the player.

Fig. 13 shows a session-based game interaction method according to an embodiment of the present specification, which is described as an example of interaction between a server and a client in a target game task, and includes steps 1302 to 1326.

Step 1302: and the client sends a request for acquiring a target game task in the n game tasks to the server through a preset communication protocol, wherein n is a positive integer greater than or equal to 1.

Step 1304: the server acquires a request for acquiring a target game task in the n game tasks uploaded by a client through a preset communication protocol, and issues a task confirmation instruction corresponding to the target game task to the client, wherein n is a positive integer greater than or equal to 1.

Step 1306: and the client receives a task confirmation instruction corresponding to the target game task issued by the server, enters the target game task and loads a conversation flow list corresponding to the target game task.

Step 1308: in the process of the target game task, the client acquires the request of the player and sends task state information to the server.

Step 1310: the server acquires task state information uploaded by the client, determines a feature identifier corresponding to initial conversation content according to the task state information, stores the task state of the target game task, and returns the feature identifier corresponding to the initial conversation content to the client.

Step 1312: the client receives the feature identifier corresponding to the initial session content sent by the server, reads the initial session content from the session flow list corresponding to the target game task according to the feature identifier corresponding to the initial session content, and displays the non-player character dialog box corresponding to the initial session content and at least two dialog options in the current game interface.

Step 1314: the client generates player feedback information according to the conversation options selected by the player in the current game interface, and sends the player feedback information to the server.

Step 1316: the server acquires the player feedback information uploaded by the client, determines the characteristic identification corresponding to the target session content according to the player feedback information, stores the task state of the target game task and returns the characteristic identification corresponding to the target session content to the client.

Step 1318: the client receives the feature identification corresponding to the target conversation content sent by the server, reads the target conversation content from the conversation process list corresponding to the target game task according to the feature identification corresponding to the target conversation content, and displays the non-player character conversation box corresponding to the target conversation content and at least two conversation options in the current game interface.

Step 1320: the client judges whether the target conversation content is the final conversation content in a conversation process list corresponding to the target game task; if yes, go to step 1322; if not, go to step 1314.

Step 1322: and after the final session content is finished, the client sends a task settlement request of the target game task to the server.

Step 1324: the server acquires a task settlement request of the target game task uploaded by the client, acquires reward information corresponding to the target game task according to the task settlement request of the target game task, and issues the reward information corresponding to the target game task to the client.

Step 1326: and the client acquires the reward information corresponding to the target game task, and displays the task reward corresponding to the target game task in the current game interface through a task reward interface according to the reward information corresponding to the target game task.

Corresponding to the above method embodiment, the present specification further provides an embodiment of a session-based game interaction device, and fig. 14 shows a schematic structural diagram of the session-based game interaction device according to an embodiment of the present specification. As shown in fig. 14, the apparatus is provided at a client, and includes:

a player feedback module 1401 configured to generate player feedback information according to a dialog option selected by a player in a current game interface and send the player feedback information to the server;

a dialog forwarding module 1402, configured to receive a feature identifier corresponding to target dialog content sent by the server, read the target dialog content from a dialog flow list corresponding to a target game task according to the feature identifier corresponding to the target dialog content, and display a non-player character dialog box corresponding to the target dialog content and at least two dialog options in a current game interface;

a flow determination module 1403 configured to determine whether the target dialog content is the final dialog content in the dialog flow list corresponding to the target game task; if yes, execute task settlement module 1404; if not, then player feedback module 1401 is executed;

a task settlement module 1404 configured to send a task settlement request of the target game task to the server and to present a task bonus interface in a current game interface.

Optionally, the apparatus further comprises:

the task request module is configured to send a request for acquiring a target game task in the n game tasks to a server through a preset communication protocol, wherein n is a positive integer greater than or equal to 1;

the task triggering module is configured to receive a task confirmation instruction corresponding to the target game task issued by the server, enter the target game task and load a conversation process list corresponding to the target game task;

and the conversation triggering module is configured to trigger the initial conversation content with the non-player character in the target game task according to the request of the player in the process of the target game task.

Optionally, the dialog triggering module includes:

the state information sending unit is configured to acquire a request of a player and send task state information to a server, wherein the task state information comprises a feature identifier corresponding to a virtual character controlled by the player, a feature identifier corresponding to the triggered non-player character and a feature identifier corresponding to the target game task;

the identification acquisition unit is configured to receive a feature identification corresponding to initial conversation content sent by the server, and read the initial conversation content from a conversation process list corresponding to the target game task according to the feature identification corresponding to the initial conversation content;

and the conversation display unit is configured to display the non-player character conversation box corresponding to the initial conversation content and at least two conversation options in the current game interface.

Optionally, the apparatus further comprises:

the list building module is configured to obtain a conversation process list corresponding to each game task in n game tasks, export the conversation process list corresponding to each game task into a binary file through an export tool and store the binary file, wherein each conversation process list comprises a plurality of conversation contents arranged according to a task scenario and options corresponding to each conversation content, and n is a positive integer greater than or equal to 1.

Optionally, the task settlement module 1404 includes:

a task settlement request transmitting unit configured to transmit a task settlement request of the target game task to a server after the final dialog content is ended;

and the task reward display unit is configured to acquire reward information corresponding to the target game task and display the task reward corresponding to the target game task in a current game interface through a task reward interface according to the reward information corresponding to the target game task.

The application relates to a solution for integrating conversation interaction in a mobile phone game, which makes full use of the interaction between the game and a player to achieve the purposes of enabling the player to deeply understand the game background and guiding the player to complete various game tasks, enabling the player to experience the particularity of the game, and feeling the feeling of accompanying with the player to play the game like communicating with other people during interaction, thereby increasing the substitution feeling of the player and the understanding of the game, and enabling the playability of the game to be stronger and the online time of the game to be more.

Corresponding to the above method embodiment, the present specification further provides an embodiment of a session-based game interaction device, and fig. 15 shows a schematic structural diagram of the session-based game interaction device according to an embodiment of the present specification. As shown in fig. 15, the apparatus is provided in a server, and includes:

the session deployment module 1501 is configured to acquire player feedback information uploaded by the client, determine a feature identifier corresponding to target session content according to the player feedback information, store a task state of a target game task, and return the feature identifier corresponding to the target session content to the client;

the task reward module 1502 is configured to obtain a task settlement request of the target game task uploaded by the client and issue reward information corresponding to the target game task to the client.

Optionally, the apparatus further comprises:

the task request acquisition module is configured to acquire a request, uploaded by a client, for acquiring a target game task in the n game tasks through a preset communication protocol, wherein n is a positive integer greater than or equal to 1;

and the confirmation instruction issuing module is configured to issue a task confirmation instruction corresponding to the target game task to the client.

Optionally, the apparatus further comprises:

the task state information determining module is configured to acquire task state information uploaded by a client, determine a feature identifier corresponding to initial conversation content according to the task state information and store a task state of a target game task;

and the characteristic identifier returning module is configured to return the characteristic identifier corresponding to the initial conversation content to the client.

Optionally, the task reward module 1502 includes:

the task settlement request acquisition unit is configured to acquire a task settlement request of the target game task uploaded by a client;

the reward information acquisition voltage is configured to acquire reward information corresponding to the target game task according to the task settlement request of the target game task;

and the reward information issuing unit is configured to issue the reward information corresponding to the target game task to the client.

The technical scheme of the application introduces a new conversation interaction mode, and fully utilizes the interaction between the game and the player to achieve the purposes of enabling the player to deeply understand the game background and guiding the player to complete the game task, and increasing the substitution feeling of the game and the game time of the player.

An embodiment of the present application further provides a computing device, including a memory, a processor, and computer instructions stored on the memory and executable on the processor, where the processor executes the instructions to implement the following steps:

step 202: generating player feedback information according to the dialogue options selected by the player in the current game interface, and sending the player feedback information to the server;

step 204: receiving a feature identifier corresponding to target conversation content issued by the server, reading the target conversation content from a conversation process list corresponding to a target game task according to the feature identifier corresponding to the target conversation content, and displaying a non-player character conversation box corresponding to the target conversation content and at least two conversation options in a current game interface;

step 206: judging whether the target conversation content is the final conversation content in a conversation process list corresponding to the target game task; if yes, go to step 208; if not, go to step 202;

step 208: and sending a task settlement request of the target game task to the server and displaying a task reward interface in the current game interface.

An embodiment of the present application further provides a computing device, including a memory, a processor, and computer instructions stored on the memory and executable on the processor, where the processor executes the instructions to implement the following steps:

obtaining player feedback information uploaded by a client, determining a characteristic identifier corresponding to target session content according to the player feedback information, storing a task state of a target game task and returning the characteristic identifier corresponding to the target session content to the client;

and acquiring a task settlement request of the target game task uploaded by a client and issuing reward information corresponding to the target game task to the client.

An embodiment of the present application also provides a computer readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the dialog-based game interaction method as described above.

The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the computer-readable storage medium and the technical solution of the above-mentioned session-based game interaction method belong to the same concept, and details that are not described in detail in the technical solution of the computer-readable storage medium can be referred to the description of the technical solution of the above-mentioned session-based game interaction method.

The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.

It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

26页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:游戏系统以及与对战游戏相关的信息的提供方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类