A method, device, electronic device and storage medium for prompting battle in a game
By using the graphical user interface of the terminal device and historical battle data in the multiplayer online tactical competitive game to generate battle prompt information, it solves the problem of time-consuming and low accuracy of player comparison of attribute information by themselves, and improves the accuracy of battle predictions. and operational efficiency.
Patent Information
- Application Number
- CN202111095109.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-17
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-09-17
AI Technical Summary
In multiplayer online tactical competitive games, players need to compare the game character attribute information by themselves to predict the outcome of the battle, which results in long time consumption and low accuracy, which affects the smoothness of the operation and the efficiency of interaction.
Provide a graphical user interface through the terminal device, respond to the battle distance conditions between game characters, extract target historical battle data from historical battle data, generate battle prompt information, and display the battle prediction results on the interface, including winning rate values and combination operation method recommendations .
It saves players time in checking attribute information, improves the accuracy and intuitiveness of battle predictions, and improves the efficiency of human-computer interaction.
Smart Images

Figure CN113769400B
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device, electronic device and storage medium for prompting battles in a game. Background Art
[0002] In some common games, especially in Multiplayer Online Battle Arena (MOBA) games, players can select a game character that they are good at using from a variety of different types of game characters as the first game character to enter the game scene. In the game scene, the first game character controlled by the player can fight against the second game character controlled by the enemy player. Because the attribute values corresponding to different types of game characters under the same attribute are different, for example, in general, the defense attribute value of a game character that is good at defense will be higher than that of a game character that is good at attacking; therefore, before the actual battle, the player usually needs to comprehensively compare the attribute value differences between the first game character and the second game character to predict the battle result between the first game character and the second game character, so as to determine whether to control the first game character to fight against the second game character.
[0003] At present, the method for players to predict the outcome of a battle is that the players check the economic value, health value, attack power, defense power and other attribute information of the first game character and the second game character displayed on the graphical user interface. If the various attribute values of the first game character are higher than those of the second game character, then it is predicted that the probability of the first game character defeating the second game character is higher. At this time, the player controls the first game character to attack the second game character, and the two sides enter a battle state.
[0004] However, in the above-mentioned method for predicting the battle results, players need to check and compare the attribute information differences of the game characters of both parties. In this way, on the one hand, the process takes a long time, which may cause players to miss the opportunity to fight, affect the smoothness of players' operations, and reduce the efficiency of players' human-computer interaction; on the other hand, predicting the battle results only by the attribute information differences of the relevant game characters also leads to a low accuracy of the battle results predicted by players. Summary of the invention
[0005] In view of this, the purpose of this application is to provide a method, device, electronic device and storage medium for prompting battles in a game, which can save players' time in viewing relevant game character attribute information, and more accurately and intuitively display battle prediction results to players, effectively improving the player's human-computer interaction efficiency.
[0006] In a first aspect, an embodiment of the present application provides a method for prompting a battle in a game, wherein the game includes a first game character and a second game character in a different group from the first game character, and a graphical user interface is provided through a terminal device, wherein the graphical user interface displays at least a portion of a game scene, and the prompt method includes:
[0007] In response to the distance between the first game character and the second game character in the game scene meeting a preset battle distance condition, extracting target historical battle data between the first game character and the second game character in the historical battle scene from the historical battle data;
[0008] Generate battle prompt information of the first game character and the second game character according to the target historical battle data of the first game character and the second game character; wherein the battle prompt information is used to represent the predicted result of the battle between the first game character and the second game character;
[0009] The battle prompt information is displayed on the graphical user interface.
[0010] In an optional implementation, the distance between the first game character and the second game character in the game scene meets a preset battle distance condition, including:
[0011] The distance between the first game character and the second game character in the game scene is less than or equal to a preset distance threshold;
[0012] or,
[0013] The second game character is located in the battle area corresponding to the first game character; wherein the distance between any position in the battle area and the target position meets the battle distance condition; and the target position is the position of the first game character in the game scene.
[0014] In an optional implementation, generating battle prompt information between the first game character and the second game character according to the target historical battle data between the first game character and the second game character includes:
[0015] For each of the historical battle scenes included in the target historical battle data, obtaining a first difference between target attribute values of the first game character and the second game character in the historical battle scene;
[0016] According to a second difference between the target attribute values of the first game character and the second game character in the game scene, determining, from each of the first differences, a first difference with the smallest difference from the second difference as a target difference;
[0017] From the target historical battle data, historical battle data between the first game character and the second game character at the target difference is extracted as target battle data, and the battle prompt information is generated according to the target battle data.
[0018] In an optional implementation, generating battle prompt information between the first game character and the second game character according to the target historical battle data between the first game character and the second game character includes:
[0019] Determining a winning rate value of the first game character against the second game character according to the target historical battle data;
[0020] The battle prompt information is generated according to the information generation strategy corresponding to the winning rate value.
[0021] In an optional implementation, generating the battle prompt information according to the information generation strategy corresponding to the winning rate value includes:
[0022] In response to the winning rate value being less than or equal to a preset winning rate threshold, generating first prompt information, and using the first prompt information and the winning rate value as the battle prompt information; wherein the first prompt information is used to prompt that the first game character is not suitable for fighting with the second game character in the game scene;
[0023] In response to the winning rate value being greater than a preset winning rate threshold, a second prompt information is generated, and the second prompt information and the winning rate value are used as the battle prompt information; wherein, the second prompt information is used to represent the combined operation method recommended for the first game character to use when fighting against the second game character in the game scene.
[0024] In an optional implementation, in response to the winning rate value being greater than a preset winning rate threshold, generating the second prompt information includes:
[0025] Extracting historical battle data of the first game character in a battle victory state in a historical battle scene from the target battle data as data to be parsed;
[0026] For each of the data to be parsed, a combined operation mode of the first game character in the data to be parsed is obtained; wherein the combined operation mode is determined based on a plurality of skills and common attacks used by the first game character in the data to be parsed, and a triggering sequence corresponding to the plurality of skills and the common attacks;
[0027] Determining a recommendation priority of each of the combined operation modes according to the occurrence frequency of each of the combined operation modes;
[0028] The combined operation mode with the highest recommendation priority is used as the second prompt information.
[0029] In an optional implementation, the prompt method further includes:
[0030] In response to the first combination of operation modes including a target skill, a combination of operation modes that does not include the target skill is extracted as a second combination of operation modes from other combination of operation modes except the first combination of operation modes; wherein the first combination of operation modes is the combination of operation modes with the highest recommendation priority; and the target skill is a skill of the first game character that is currently in a cooling state;
[0031] According to the recommendation priority of each of the second combination operation modes, the one with the highest recommendation priority in each of the second combination operation modes is determined as the second prompt information.
[0032] In an optional implementation, displaying the battle prompt information on the graphical user interface includes:
[0033] The battle prompt information is displayed through a first position associated with the first game character in the graphical user interface.
[0034] In an optional implementation, the displaying the battle prompt information on the graphical user interface further includes:
[0035] In response to the battle prompt information including the second prompt information, each of the skills and the normal attack included in the second prompt information is displayed in sequence on the graphical user interface according to the triggering order corresponding to each of the skills and the normal attack included in the second prompt information.
[0036] In an optional implementation, the prompt method further includes:
[0037] In response to the start of a battle between the first game character and the second game character in the game scene, recording battle data between the first game character and the second game character;
[0038] In response to the end of the battle between the first game character and the second game character in the game scene, stop recording the battle data between the first game character and the second game character, and store the recorded battle data in the historical battle data of the first game character; wherein the battle data at least includes: the second game character, various character attribute values of the second game character when the battle starts, various character attribute values of the first game character when the battle starts, the combination of operations used by the first game character during the battle, and the battle result.
[0039] In a second aspect, an embodiment of the present application provides a prompt device for a battle in a game, wherein the game includes a first game character and a second game character in a different group from the first game character, and a graphical user interface is provided through a terminal device, wherein the graphical user interface displays at least part of a game scene, and the prompt device includes:
[0040] A first response module, configured to extract, from the historical battle data, target historical battle data between the first game character and the second game character in the historical battle scene in response to the distance between the first game character and the second game character in the game scene meeting a preset battle distance condition;
[0041] A first processing module, configured to generate battle prompt information of the first game character and the second game character according to target historical battle data of the first game character and the second game character; wherein the battle prompt information is used to represent a predicted result of the battle between the first game character and the second game character;
[0042] The first display module is used to display the battle prompt information on the graphical user interface.
[0043] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the battle prompt method in the above-mentioned game when executing the computer program.
[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the battle prompt method in the above-mentioned game are executed.
[0045] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0046] The embodiments of the present application provide a method, device, electronic device and storage medium for prompting a battle in a game. In response to the distance between a first game character and a second game character in a game scene meeting a preset battle distance condition, target historical battle data between the first game character and the second game character in a historical battle scene are extracted from historical battle data; then, battle prompt information between the first game character and the second game character is generated based on the target historical battle data between the first game character and the second game character, and the battle prompt information is displayed on a graphical user interface; wherein the battle prompt information is used to characterize a predicted result of a battle between the first game character and the second game character. In the present application, for the first game character controlled by the player, when the distance between the first game character and the second game character in the game scene meets the preset battle distance condition, the battle result between the first game character and the second game character in the current game scene is predicted before the battle, and battle prompt information for characterizing the battle prediction result is generated, and the generated battle prompt information is intuitively displayed in the graphical user interface. In this way, the battle prediction result can be displayed to the player more accurately and intuitively, saving the player's time in viewing the relevant game character attribute information, and effectively improving the player's human-computer interaction efficiency.
[0047] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 A schematic diagram showing a flow chart of a method for prompting a battle in a game provided by an embodiment of the present application;
[0050] Figure 2 A schematic diagram of a graphical user interface provided by an embodiment of the present application is shown;
[0051] Figure 3 A schematic diagram showing a method for displaying battle prompt information provided by an embodiment of the present application;
[0052] Figure 4 A schematic flow chart of a method for processing target historical battle data provided by an embodiment of the present application is shown;
[0053] Figure 5 A schematic diagram showing a flow chart of a method for generating battle prompt information provided in an embodiment of the present application;
[0054] Figure 6 A schematic diagram showing a flow chart of a method for generating second prompt information provided in an embodiment of the present application;
[0055] Figure 7 A schematic diagram showing a flow chart of a method for updating second prompt information provided in an embodiment of the present application;
[0056] Figure 8 A schematic diagram of a graphical user interface for displaying second prompt information provided by an embodiment of the present application is shown;
[0057] Fig. 9 A flow chart of a method for recording battle data provided by an embodiment of the present application is shown;
[0058] Fig.10 A schematic diagram showing the structure of a game battle prompt device provided by an embodiment of the present application is shown;
[0059] Fig.11 A schematic diagram of the structure of a computer device 1100 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0061] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0062] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0063] In tactical competitive games, before the actual battle, the player compares the attribute information differences of the enemy game characters and our game characters through the attribute information corresponding to each other displayed on the graphical user interface. When the attribute information of our game characters is more advantageous, the player predicts that the probability of our game characters defeating the enemy game characters is higher, thereby controlling our game characters to fight against the enemy game characters. In the above-mentioned method for predicting the results of the battle, the player needs to check and compare the attribute information differences of the two game characters by himself. In this way, on the one hand, the process takes a long time, which may easily cause the player to miss the opportunity to fight, affect the player's operation fluency, and reduce the player's human-computer interaction efficiency; on the other hand, only relying on the attribute information differences of the relevant game characters to predict the results of the battle also leads to a low accuracy of the predicted results of the battle.
[0064] The embodiments of the present application provide a method, device, electronic device and storage medium for prompting a battle in a game. In response to the distance between a first game character and a second game character in a game scene meeting a preset battle distance condition, target historical battle data between the first game character and the second game character in a historical battle scene are extracted from historical battle data; then, battle prompt information between the first game character and the second game character is generated based on the target historical battle data between the first game character and the second game character, and the battle prompt information is displayed on a graphical user interface; wherein the battle prompt information is used to characterize a predicted result of a battle between the first game character and the second game character. In the present application, for the first game character controlled by the player, when the distance between the first game character and the second game character in the game scene meets the preset battle distance condition, the battle result between the first game character and the second game character in the current game scene is predicted before the battle, and battle prompt information for characterizing the battle prediction result is generated, and the generated battle prompt information is intuitively displayed in the graphical user interface. In this way, the battle prediction result can be displayed to the player more accurately and intuitively, saving the player's time in viewing the relevant game character attribute information, and effectively improving the player's human-computer interaction efficiency.
[0065] To facilitate understanding of the embodiments of the present application, the following is a detailed introduction to a method, device, electronic device, and storage medium for prompting a battle in a game provided by the embodiments of the present application. The embodiments of the present application can be applied to the field of games, for example, in multiplayer online tactical competitive games. It should be noted that the embodiments of the present application are not limited to the above-mentioned types of games.
[0066] The prompt method in the embodiment of the present application can be run on a terminal device or a server. Among them, the terminal device can be a local terminal device (such as a local touch terminal). When the prompt method runs on a server, it can be a cloud game.
[0067] In an optional implementation, cloud gaming refers to a gaming method based on cloud computing. In the operation mode of cloud gaming, the operating body of the game program and the main body of the game screen presentation are separated, the storage and operation of the prompt method are completed on the cloud gaming server, and the cloud gaming client is used for receiving and sending data and presenting the game screen. For example, the cloud gaming client can be a display device with data transmission function close to the user side, such as a mobile terminal, a television, a computer, a handheld computer, etc.; but the terminal device for prompting is a cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send an operation instruction to the cloud gaming server. The cloud gaming server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.
[0068] In another optional embodiment, the terminal device may be a local terminal device. The local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the user through a graphical user interface, that is, the game program is downloaded and installed and run by an electronic device in a conventional manner. The local terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on a display screen of the local terminal device, or provided to the user through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0069] The game battle prompt method provided in the embodiment of the present application can be run in the local terminal device mentioned above, or in the cloud game client mentioned above. The following is an example of the game battle prompt method running on the local terminal device (hereinafter referred to as the terminal device).
[0070] See also Figure 1 , Figure 1 A flowchart of a method for prompting a battle in a game provided by an embodiment of the present application is shown; Figure 1As shown, the game includes a first game character and a second game character in a different group from the first game character, a graphical user interface is provided through a terminal device, and at least part of the game scene is displayed in the graphical user interface, and the prompt method includes:
[0071] S101, in response to the distance between the first game character and the second game character in the game scene meeting a preset battle distance condition, extracting target historical battle data between the first game character and the second game character in the historical battle scene from historical battle data.
[0072] S102, generating battle prompt information between the first game character and the second game character according to the target historical battle data between the first game character and the second game character; wherein the battle prompt information is used to represent the predicted result of the battle between the first game character and the second game character.
[0073] S103, displaying the battle prompt information on the graphical user interface.
[0074] An embodiment of the present application provides a battle prompt method for a game. For a first game character controlled by a player, when the distance between the first game character and a second game character in a game scene meets a preset battle distance condition, a pre-battle prediction is made on the battle result between the first game character and the second game character in the current game scene based on the target historical battle data of the first game character and the second game character, battle prompt information for characterizing the battle prediction result is generated, and the generated battle prompt information is intuitively displayed in a graphical user interface. In this way, the battle prediction result is displayed to the player more accurately and intuitively, which saves the player's time in viewing the relevant game character attribute information, and effectively improves the player's human-computer interaction efficiency.
[0075] The following is a description of the exemplary steps of the present application embodiment:
[0076] S101, in response to the distance between the first game character and the second game character in the game scene meeting a preset battle distance condition, extracting target historical battle data between the first game character and the second game character in the historical battle scene from historical battle data.
[0077] In an embodiment of the present application, the game includes multiple different types of game characters. Before each game starts, the player can select a target game character to be used in the current game from a variety of different types of game characters. During the game, the player can control the selected target game character to move in the game scene. When encountering an enemy game character controlled by an enemy player belonging to a different group, the player can decide whether to fight against the enemy game character.
[0078] Here, the first game character is a game character controlled by the player, and the second game character is a game character controlled by an enemy player in a different group from the player; wherein the first game character and the second game character may belong to the same character type or may belong to different character types.
[0079] Here, the above-mentioned game scene refers to the game scene where the first game character is at the current moment; the historical battle scene refers to the historical game scene in which the first game character has fought with the second game character before the current moment.
[0080] Here, the above-mentioned historical battle data can be all historical battle data corresponding to the player in the game stored in the local terminal device, or it can be the historical battle data corresponding to the player controlling the first game character in the game. This application does not impose any limitation on the specific data content of the historical battle data.
[0081] It should be noted that in this application, the second game character refers to a specific character name, rather than an enemy player controlling the second game character. For example, if the first game character is Warrior A and the second game character is Mage B, then the target historical battle data extracted from the historical battle data of Warrior A being controlled by the player to fight is: historical battle data of Warrior A fighting Mage B; in this case, in the extracted target historical battle data, the specific player corresponding to Mage B is not distinguished.
[0082] In a specific implementation, the following two possible implementations may be used to determine whether the distance between the first game character and the second game character in the game scene meets the preset battle distance condition:
[0083] 1. If the distance between the first game character and the second game character in the game scene is less than or equal to a preset distance threshold, determine whether the distance between the first game character and the second game character in the game scene meets the preset battle distance condition:
[0084] Specifically, Figure 2 A schematic diagram of a graphical user interface provided by an embodiment of the present application is shown; Figure 2As shown, a partial game scene of the current game is displayed in the graphical user interface 100, and the player can view the global information of the game scene through the game map 300. During the game, in response to the player's movement operation on the first game character 201, the first game character 201 is controlled to move in the game scene.
[0085] Exemplary descriptions, such as Figure 2 As shown, in the current game scene, according to the location of the first game character 201 and the location of the second game character 202, it can be determined that the distance between the first game character 201 and the second game character 202 in the current game scene is d meters; if the preset distance threshold is 10 meters, then when d is less than or equal to 10, it is determined that the distance between the first game character 201 and the second game character 202 in the game scene meets the preset combat distance condition.
[0086] 2. If the second game character is located in the battle area corresponding to the first game character, determine whether the distance between the first game character and the second game character in the game scene meets the preset battle distance condition:
[0087] Here, the distance between any position in the battle area and the target position meets the battle distance condition; the target position is the position of the first game character in the game scene.
[0088] For example, the preset battle distance condition may be: the distance between the first game character and the second game character in the game scene is no more than r meters, such as Figure 2 As shown, at this time, according to the target position of the first game character 201 in the current game scene, with the target position as the center and r meters as the radius, the battle area 400 corresponding to the first game character 201 can be determined. When the second game character 202 is detected to enter the battle area 400, it is determined that the distance between the first game character 201 and the second game character 202 in the game scene meets the preset battle distance condition.
[0089] S102, generating battle prompt information between the first game character and the second game character according to the target historical battle data between the first game character and the second game character; wherein the battle prompt information is used to represent the predicted result of the battle between the first game character and the second game character.
[0090] In an embodiment of the present application, the terminal device can record each battle process of the first game character, and store the battle data recorded during the battle process, such as the character name of the opponent, the various character attribute values of the opponent when the battle starts, and the final battle result, in the battle database of the first game character to obtain the historical battle data of the first game character.
[0091] It should be noted that when the terminal device records historical battle data, it does not distinguish whether the battle process occurred in the same game. For example, if the first game character is Warrior A and the second game character is Mage B, and Warrior A and Mage B fought 4 times in the same game, the terminal device records 4 sets of battle data corresponding to Warrior A and Mage B in the 4 battles, rather than recording all the battle data of the 4 battles as 1 set of battle data of Warrior A and Mage B in the game.
[0092] In a specific implementation, the above battle prompt information can be generated according to the following two steps:
[0093] (1) Determine a winning rate value of the first game character against the second game character based on the target historical battle data.
[0094] Here, as an optional implementation, based on the target historical battle data of the first game character and the second game character, the total number of historical battles between the first game character and the second game character, and the number of historical victories in which the first game character won the battles can be determined, and then, based on the proportion of the historical number of victories to the total number of historical battles, the proportion can be used as the winning rate value of the first game character against the second game character.
[0095] For example, taking the case where the first game character is Warrior A and the second game character is Mage B, if it is determined from the target historical battle data of Warrior A and Mage B that the total number of historical battles between Warrior A and Mage B is 50, of which Warrior A has won 30 battles and Mage B has won 20 battles, then it can be determined that the proportion of Warrior A's historical victories in the total number of historical battles is 60%, that is, the winning rate of the first game character Warrior A against the second game character Mage B is 60%.
[0096] (2) Generate the battle prompt information according to the information generation strategy corresponding to the winning rate value.
[0097] Here, as an optional implementation, the information generation strategy corresponding to the winning rate value can also be determined based on the size relationship between the preset winning rate threshold and the above winning rate value. For example, if the determined winning rate value is less than the winning rate threshold, the information generation strategy corresponding to the winning rate value is determined to be: generating the first type of battle prompt information for prompting the player not to play against the second game character; if the determined winning rate value is greater than or equal to the winning rate threshold, the information generation strategy corresponding to the winning rate value is determined to be: generating the second type of battle prompt information for prompting the player to play against the second game character.
[0098] Specifically, according to the above information generation strategy, the generated battle prompt information can be divided into the following two types:
[0099] 1. The first type of battle prompt information used to remind the player not to fight against the second game character:
[0100] For example, taking the case where the first game character is Warrior A and the second game character is Mage B, if the total number of historical battles between Warrior A and Mage B is 50, of which Warrior A has won 25 battles, then the proportion of Warrior A's historical victories in the total number of historical battles is 50%, that is, the winning rate of Warrior A against Mage B is 50%; if the pre-set winning rate threshold is 70%, it can be determined that Warrior A has a low probability of defeating Mage B in the current game scenario, and the first type of battle prompt information is generated: battle is not recommended.
[0101] 2. The second type of battle prompt information used to prompt the player to battle with the second game character:
[0102] For example, taking the above example, the preset winning rate threshold is 70%. If the total number of historical battles between Warrior A and Mage B is 50, and Warrior A has won 40 battles, then Warrior A's historical victories account for 80% of the total number of historical battles, that is, Warrior A's winning rate when fighting against Mage B is 80%. It can be determined that Warrior A has a higher probability of defeating Mage B in the current game scenario, and the second type of battle prompt information is generated: recommended battle.
[0103] S103, displaying the battle prompt information on the graphical user interface.
[0104] Here, as an optional embodiment, the battle prompt information may also be displayed via a first position associated with the first game character in a graphical user interface.
[0105] Exemplary description, Figure 3 A schematic diagram showing a method for displaying battle prompt information provided by an embodiment of the present application is shown; Figure 3 As shown, in the graphical user interface 100, the battle prompt information generated in step S102 is displayed at the first position 500 associated with the first game character 201. For example, if the battle prompt information is: battle is not recommended, then "battle is not recommended" is displayed at the first position 500 to prompt the player that the probability of defeating the second game character in the current game scene is low and it is not suitable to fight with the second game character.
[0106] It should be noted that Figure 3The relative position relationship between the first position 500 and the first game character 201 shown is only for schematic illustration; in addition to being located in the lower area of the first game character 201, the first position 500 may also be located in the upper area, left area, and right area of the first game character 201. The specific relative position relationship between the first position and the first game character is not limited in this application.
[0107] In combination with the above steps S101-S103, it can be known that the terminal device records each battle process of the first game character to obtain the historical battle data of the first game character. Therefore, the target historical battle data includes the historical battle data of the first game character fighting against the second game character in multiple different historical battle scenes; considering that the battle status of the first game character and the second game character may be different in different historical battle scenes, in order to reduce the interference caused by different battle statuses on the accuracy of the generated battle prompt information, in the embodiment of the present application, step S102 can also be performed according to the following method:
[0108] In one possible embodiment, Figure 4 A flowchart of a method for processing target historical battle data provided by an embodiment of the present application is shown. Figure 4 As shown, when executing step S102, the method further includes S401-S403; specifically:
[0109] S401, for each of the historical battle scenes included in the target historical battle data, obtaining a first difference between target attribute values of the first game character and the second game character in the historical battle scene.
[0110] Here, in the target historical battle data, each historical battle process between the first game character and the second game character corresponds to a historical battle scene, that is, the number of historical battle scenes included in the target historical battle data is equal to the number of historical battles between the first game character and the second game character.
[0111] It should be noted that the target attribute value is the character attribute value of the game character in the game, and the character attribute values of the game character may include: attack attribute value, defense attribute value, economic attribute value, etc.; the target attribute value is used to characterize the combat ability of the game character. In the present application, the target attribute value can be one character attribute value or multiple character attribute values. The present application does not limit the specific character attribute value content and specific quantity represented by the target attribute value.
[0112] For example, taking the target attribute value as an economic attribute value, if the number of historical battles between the first game character and the second game character is 50, then the target historical battle data includes the historical battle data of the first game character and the second game character in 50 historical battle scenarios; taking historical battle data c among the 50 historical battle data as an example, if the economic attribute value of the first game character in the historical battle data c is 160, and the economic attribute value of the second game character is 140, then it is determined that the first difference in the target attribute value between the first game character and the second game character in the historical battle data c is 20; according to the same method, 50 first differences corresponding to the first game character and the second game character in 50 historical battle scenarios can be obtained from the target historical battle data.
[0113] S402: According to the second difference between the target attribute values of the first game character and the second game character in the game scene, determine, from each of the first differences, a first difference that is smallest in difference with the second difference as a target difference.
[0114] Here, the first difference is used to represent the difference in battle status between the first game character and the second game character in the historical battle scene; the second difference is used to represent the difference in battle status between the first game character and the second game character in the current game scene.
[0115] It should be noted that, since the first difference is the difference between the target attribute values of the first game character and the second game character in different historical battle scenes, the first difference may include multiple repeated values.
[0116] In the embodiment of the present application, each historical battle process between the first game character and the second game character corresponds to a first difference. Since the target difference is the first difference with the second difference, the target difference corresponds to the historical battle data that is closest to the difference in battle status between the first game character and the second game character in the current game scene.
[0117] For example, taking the above example, in the current game scenario, if the economic attribute value of the first game character is 180 and the economic attribute value of the second game character is 160, then the second difference can be determined to be 20; if there is a first difference with a value of 20 among the above 50 first differences, then the target difference is determined to be 20; if there is no first difference with a value of 20 among the above 50 first differences, and the first difference with the smallest difference from the second difference is 25, then the target difference is determined to be 25.
[0118] S403, extracting historical battle data between the first game character and the second game character at the target difference from the target historical battle data as target battle data, and generating the battle prompt information according to the target battle data.
[0119] In the embodiment of the present application, the extracted target battle data is the historical battle data that is closest to the difference in battle status between the first game character and the second game character in the current game scenario. Using the extracted target battle data to generate battle prompt information is beneficial to improving the accuracy of the generated battle prompt information.
[0120] It should be noted that the more character attribute values represented by the target attribute value, the more difficult it is to extract the target battle data that meets the above conditions from the target historical battle data. As a result, less target battle data may be extracted, making the generated battle prompt information less useful. Therefore, in the embodiments of the present application, the target attribute value is preferably used to represent a character attribute value for example.
[0121] For example, taking the above example, if the second difference is 20, and the 50 first differences include 15 first differences with a value of 20, then the target difference is determined to be 20, and the historical battle data corresponding to these 15 target differences are extracted from the target historical battle data as the target battle data; wherein, in each target battle data, the difference in economic attribute values between the first game character and the second game character when the battle starts is 20.
[0122] Here, in one possible implementation, Figure 5 A flow chart of a method for generating battle prompt information provided in an embodiment of the present application is shown; Figure 5 As shown, when executing step S403, the method further includes S501-S504; specifically:
[0123] S501, obtaining the number of historical battles between the first game character and the second game character from the target battle data.
[0124] It should be noted that here the historical number of battles between the first game character and the second game character is obtained from the target battle data; therefore, the obtained historical number of battles is equal to the historical number of battles between the first game character and the second game character under the above-mentioned target difference, rather than the total number of historical battles between the first game character and the second game character.
[0125] By way of example, in combination with steps S401-S403 above, if historical battle data corresponding to 15 target differences are extracted from the target historical battle data between the first game character and the second game character as target battle data, it can be determined that the number of historical battles between the first game character and the second game character at the target difference is 15 times, that is, the number of historical battles obtained from the target battle data is 15 times.
[0126] S502: Obtain the historical number of victories of the first game character from the target battle data.
[0127] For example, taking the above example, according to the results of each battle between the first game character and the second game character included in the target battle data, if the target battle data includes 10 historical battle data in which the first game character wins the battle, then the number of historical victories of the first game character is 10.
[0128] S503: Determine the winning rate of the first game character against the second game character according to the historical battle times and the historical victory times.
[0129] Here, the winning rate value is the ratio of the number of historical victories to the number of historical battles. The winning rate value is used to characterize the winning rate of the first game character against the second game character in the game scene (ie, the current game scene).
[0130] For example, taking the above example, in the target battle data, the number of historical battles between the first game character and the second game character is 15 times, among which the first game character won 10 battles. Then it can be determined that the winning rate of the first game character against the second game character is 66.67%.
[0131] S504, generating the battle prompt information according to the information generation strategy corresponding to the winning rate value.
[0132] In the embodiment of the present application, as an optional embodiment, the two types of battle prompt information described in the above step S102 may be generated according to the following method:
[0133] 1. The method for generating the first type of battle prompt information is as follows:
[0134] In response to the winning rate value being less than or equal to a preset winning rate threshold, a first prompt message is generated, and the first prompt message and the winning rate value are used as the battle prompt message; wherein, the first prompt message is used to prompt that the first game character is not suitable for fighting with the second game character in the game scene.
[0135] For example, taking the preset winning rate threshold of 50% as an example, if the winning rate value of the first game character against the second game character in the current game scene is 46.67%, then in response to the winning rate value being less than the winning rate threshold, a first prompt message is generated: battle is not recommended, and the generated first prompt message and the winning rate value of 46.67% are used as battle prompt information displayed on the graphical user interface. At this time, the player can intuitively obtain the battle prompt information on the graphical user interface as: "Current winning rate: 46.67%, battle is not recommended".
[0136] 2. The method for generating the second type of battle prompt information is as follows:
[0137] In response to the winning rate value being greater than a preset winning rate threshold, a second prompt information is generated, and the second prompt information and the winning rate value are used as the battle prompt information; wherein, the second prompt information is used to represent the combined operation method recommended for the first game character to use when fighting against the second game character in the game scene.
[0138] Here, the combined operation mode refers to the continuous triggering combination of the skills and common attacks corresponding to the first game character.
[0139] For example, taking the preset winning rate threshold of 50% as an example, if the winning rate value of the first game character against the second game character in the current game scene is 76.67%, then in response to the winning rate value being greater than the winning rate threshold, the second prompt information is generated as: skill 1, skill 2, normal attack, skill 4; and the generated second prompt information and the winning rate value of 76.67% are used as the battle prompt information displayed on the graphical user interface. At this time, the player can intuitively obtain the battle prompt information on the graphical user interface as: "Current winning rate: 76.67%, recommended to use: skill 1, skill 2, normal attack, skill 4 combination operation method to fight".
[0140] In one possible embodiment, Figure 6 A schematic diagram of a flow chart of a method for generating second prompt information provided in an embodiment of the present application is shown, such as Figure 6 As shown, when executing step S504, the method further includes S601-S604; specifically:
[0141] S601, extracting historical battle data of the first game character in a battle victory state in a historical battle scene from the target battle data as data to be parsed.
[0142] For example, according to the battle results of each battle between the first game character and the second game character included in the target battle data, if there are 10 historical battle data in which the first game character wins the battle in the target battle data, then these 10 historical battle data are extracted as the data to be analyzed.
[0143] S602: For each piece of data to be parsed, obtain a combined operation mode of the first game character in the data to be parsed.
[0144] Specifically, the combined operation mode is determined based on a plurality of skills and common attacks used by the first game character in the data to be parsed, and a triggering sequence corresponding to the plurality of skills and the common attacks.
[0145] As an exemplary explanation, taking the data to be parsed n as an example, if the battle process between the first game character and the second game character recorded in the data to be parsed n is: the first game character first uses skill 1 on the second game character during the battle, then uses skill 4 on the second game character, and then, after performing a normal attack on the second game character, the first game character wins the battle and ends the battle; then, by parsing the data to be parsed n, it can be obtained that the combined operation mode of the first game character in the data to be parsed n is: skill 1, skill 4, and normal attack.
[0146] S603: Determine a recommendation priority of each of the combined operation modes according to the occurrence frequency of each of the combined operation modes.
[0147] Here, a combination operation method with a higher occurrence frequency indicates that the first game character wins more times by using the combination operation method. Therefore, a combination operation method with a higher occurrence frequency has a higher recommendation priority.
[0148] For example, if the number of data to be parsed is 10, among which the frequency of occurrence of combination operation mode x is 2 times, the frequency of occurrence of combination operation mode y is 5 times, and the frequency of occurrence of combination operation mode z is 3 times; then the recommendation priority can be determined as: combination operation mode y>combination operation mode z>combination operation mode x.
[0149] S604: Use the combined operation mode with the highest recommendation priority as the second prompt information.
[0150] For example, taking the above example, the recommended operation combination with the highest priority is operation combination y. If operation combination y is: skill 1, skill 4, normal attack, then the second prompt information is determined as: "Recommended to use: skill 1, skill 4, normal attack combination operation method for battle."
[0151] In combination with the above steps S601-S604, considering that in the game scene, the first game character may have skills that are in a cooling state at different times. If the combination of operations recommended by the second prompt information includes skills that are in a cooling state at the current moment, the player cannot fight according to the displayed second prompt information.
[0152] Based on this, in a feasible implementation scheme, Figure 7 A flow chart of a method for updating second prompt information provided in an embodiment of the present application is shown. Figure 7 As shown, when executing step S604, the method further includes S701-S702; specifically:
[0153] S701: In response to a first combined operation method including a target skill, extracting a combined operation method that does not include the target skill from other combined operation methods except the first combined operation method as a second combined operation method.
[0154] Specifically, the first combined operation mode is the combined operation mode with the highest recommended priority; the target skill is a skill of the first game character that is in a cooling state at the current moment.
[0155] For example, taking the example in step S603 as an example, the recommended priority of the combination operation mode is: combination operation mode y> combination operation mode z> combination operation mode x; wherein, combination operation mode y is: skill 1, skill 4, normal attack; combination operation mode x is: skill 3, skill 4, normal attack; combination operation mode z is: skill 5, skill 3, skill 2; since combination operation mode y is the combination operation mode with the highest recommendation priority, the first combination operation mode is combination operation mode y. If the target skill of the first game character in the cooling state at the current moment is skill 1, at this time, in response to the inclusion of skill 1 in the first combination operation mode, from combination operation mode z and combination operation mode x, combination operation mode z and combination operation mode x that do not include skill 1 are extracted as the second combination operation mode.
[0156] S702: According to the recommendation priority of each of the second combination operation modes, determine the one with the highest recommendation priority in each of the second combination operation modes as the second prompt information.
[0157] As an exemplary explanation, still taking the above example, after extracting combination operation method z that does not include skill 1 and combination operation method x as the second combination operation method, based on the fact that the recommended priority of combination operation method z is higher than combination operation method x, it is determined to use combination operation method z to update combination operation method y, and the updated second prompt information is generated as: "Recommended use: combination operation method of skill 5, skill 3, skill 2 for battle."
[0158] In a specific implementation manner, when the battle prompt information includes the second prompt information, the second prompt information may be displayed on the graphical user interface in the following manner:
[0159] In response to the battle prompt information being the second prompt information, each of the skills and the normal attacks included in the second prompt information are displayed in sequence on the graphical user interface according to the triggering order corresponding to each of the skills and the normal attacks included in the second prompt information.
[0160] Exemplary description, Figure 8A schematic diagram of a graphical user interface for displaying second prompt information provided by an embodiment of the present application is shown. Figure 8 As shown, if the second prompt information corresponds to the above-mentioned combined operation mode z, then according to the triggering order of skill 5, skill 3, and skill 2 in the second prompt information, the first indication icon 601, the second indication icon 602, and the third indication icon 603 are displayed in sequence on the graphical user interface 100, wherein the first indication icon 601 is used to indicate the skill icon of skill 5, the second indication icon 602 is used to indicate the skill icon of skill 3, and the third indication icon 603 is used to indicate the skill icon of skill 2.
[0161] Specifically, since the second prompt information is battle prompt information, as an optional embodiment, Figure 8 As shown, the second prompt information may also be displayed at the first position 500 associated with the first game character 201 .
[0162] After executing the above steps, in this application, considering that the terminal device records each battle process of the first game character, after displaying the battle prompt information, when the first game character fights with the second game character in the game scene, the battle data of the first game character and the second game character can be recorded according to the following method:
[0163] Specifically, Fig. 9 A flow chart of a method for recording battle data provided by an embodiment of the present application is shown, such as Fig. 9 As shown, the method further includes S901-S902; specifically:
[0164] S901, in response to the start of a battle between the first game character and the second game character in the game scene, recording battle data between the first game character and the second game character.
[0165] S902, in response to the end of the battle between the first game character and the second game character in the game scene, stop recording the battle data between the first game character and the second game character, and store the recorded battle data into the historical battle data of the first game character.
[0166] In combination with the above steps S901-S902, it should be noted that the battle data at least includes: the second game character, the various character attribute values of the second game character when the battle is started, the various character attribute values of the first game character when the battle is started, the combination operation method used by the first game character during the battle, and the battle result.
[0167] Here, the method for the terminal device to record the battle data in steps S901-S902 is the same as the method for recording the historical battle data described in step S102, and will not be repeated here.
[0168] Through the battle prompt method in the above-mentioned game provided by the embodiment of the present application, the present application targets a first game character controlled by a player. When the distance between the first game character and the second game character in the game scene meets a preset battle distance condition, a pre-battle prediction is made on the battle result between the first game character and the second game character in the current game scene based on the target historical battle data of the first game character and the second game character, battle prompt information for characterizing the battle prediction result is generated, and the generated battle prompt information is intuitively displayed in a graphical user interface. In this way, the battle prediction result is displayed to the player more accurately and intuitively, saving the player's time in viewing the relevant game character attribute information, and effectively improving the player's human-computer interaction efficiency.
[0169] Based on the same inventive concept, the present application also provides a prompt device corresponding to the above-mentioned prompt method. Since the principle of solving the problem by the prompt device in the embodiment of the present application is similar to the above-mentioned prompt method in the embodiment of the present application, the implementation of the prompt device can refer to the implementation of the prompt method, and the repeated parts will not be repeated.
[0170] Reference Fig.10 As shown, Fig.10 A schematic diagram of the structure of a game battle prompt device provided by an embodiment of the present application is shown, wherein the game includes a first game character and a second game character in a different group from the first game character, a graphical user interface is provided through a terminal device, and at least part of the game scene is displayed in the graphical user interface, and the prompt device includes:
[0171] A first response module 1001 is used for extracting target historical battle data between the first game character and the second game character in the historical battle scene from the historical battle data in response to the distance between the first game character and the second game character in the game scene meeting a preset battle distance condition;
[0172] The first processing module 1002 is used to generate battle prompt information between the first game character and the second game character according to the target historical battle data between the first game character and the second game character; wherein the battle prompt information is used to represent the predicted result of the battle between the first game character and the second game character;
[0173] The first display module 1003 is used to display the battle prompt information on the graphical user interface.
[0174] In an optional implementation, in response to the distance between the first game character and the second game character in the game scene meeting a preset battle distance condition, the first response module 1001 is specifically configured to:
[0175] In response to a distance between the first game character and the second game character in the game scene being less than or equal to a preset distance threshold;
[0176] or,
[0177] In response to the second game character being located in the battle area corresponding to the first game character; wherein the distance between any position in the battle area and a target position meets the battle distance condition; and the target position is the position of the first game character in the game scene.
[0178] In an optional implementation, the first processing module 1002 is specifically configured to:
[0179] For each of the historical battle scenes included in the target historical battle data, obtaining a first difference between target attribute values of the first game character and the second game character in the historical battle scene;
[0180] According to a second difference between the target attribute values of the first game character and the second game character in the game scene, determining, from each of the first differences, a first difference with the smallest difference from the second difference as a target difference;
[0181] From the target historical battle data, historical battle data between the first game character and the second game character at the target difference is extracted as target battle data, and the battle prompt information is generated according to the target battle data.
[0182] In an optional implementation, the first processing module 1002 may also be specifically configured to:
[0183] Determining a winning rate value of the first game character against the second game character according to the target historical battle data;
[0184] The battle prompt information is generated according to the information generation strategy corresponding to the winning rate value.
[0185] In an optional implementation, when generating the battle prompt information according to the information generation strategy corresponding to the winning rate value, the first processing module 1002 is specifically configured to:
[0186] In response to the winning rate value being less than or equal to a preset winning rate threshold, generating first prompt information, and using the first prompt information and the winning rate value as the battle prompt information; wherein the first prompt information is used to prompt that the first game character is not suitable for fighting with the second game character in the game scene;
[0187] In response to the winning rate value being greater than a preset winning rate threshold, a second prompt information is generated, and the second prompt information and the winning rate value are used as the battle prompt information; wherein, the second prompt information is used to represent the combined operation method recommended for the first game character to use when fighting against the second game character in the game scene.
[0188] In an optional implementation, when the second prompt information is generated in response to the winning rate value being greater than a preset winning rate threshold, the first processing module 1002 is specifically configured to:
[0189] Extracting historical battle data of the first game character in a battle victory state in a historical battle scene from the target battle data as data to be parsed;
[0190] For each of the data to be parsed, a combined operation mode of the first game character in the data to be parsed is obtained; wherein the combined operation mode is determined based on a plurality of skills and common attacks used by the first game character in the data to be parsed, and a triggering sequence corresponding to the plurality of skills and the common attacks;
[0191] Determining a recommendation priority of each of the combined operation modes according to the occurrence frequency of each of the combined operation modes;
[0192] The combined operation mode with the highest recommendation priority is used as the second prompt information.
[0193] In an optional implementation, the prompting device further includes:
[0194] A second response module is configured to, in response to the first combination of operation modes including a target skill, extract a combination of operation modes that does not include the target skill from other combination of operation modes except the first combination of operation modes as a second combination of operation modes; wherein the first combination of operation modes is the combination of operation modes with the highest recommendation priority; and the target skill is a skill of the first game character that is currently in a cooling state;
[0195] The determination module is used to determine the one with the highest recommendation priority in each of the second combination operation modes as the second prompt information according to the recommendation priority of each of the second combination operation modes.
[0196] In an optional implementation manner, the first display module 1003 is specifically configured to:
[0197] The battle prompt information is displayed through a first position associated with the first game character in the graphical user interface.
[0198] In an optional implementation manner, the first display module 1003 is further specifically used for:
[0199] In response to the battle prompt information including the second prompt information, each of the skills and the normal attack included in the second prompt information is displayed in sequence on the graphical user interface according to the triggering order corresponding to each of the skills and the normal attack included in the second prompt information.
[0200] In an optional implementation, the prompting device further includes:
[0201] A third response module, configured to record battle data between the first game character and the second game character in response to the start of a battle between the first game character and the second game character in the game scene;
[0202] The fourth response module is used to stop recording the battle data between the first game character and the second game character in response to the end of the battle between the first game character and the second game character in the game scene, and store the recorded battle data in the historical battle data of the first game character; wherein the battle data at least includes: the second game character, the various character attribute values of the second game character when the battle starts, the various character attribute values of the first game character when the battle starts, the combination of operations used by the first game character during the battle, and the battle result.
[0203] Through the battle prompt device in the above-mentioned game provided by the embodiment of the present application, the present application targets a first game character controlled by a player. When the distance between the first game character and the second game character in the game scene meets a preset battle distance condition, a pre-battle prediction is made on the battle result between the first game character and the second game character in the current game scene based on the target historical battle data of the first game character and the second game character, battle prompt information for characterizing the battle prediction result is generated, and the generated battle prompt information is intuitively displayed in a graphical user interface. In this way, the battle prediction result is displayed to the player more accurately and intuitively, which saves the player's time in viewing the relevant game character attribute information, and effectively improves the player's human-computer interaction efficiency.
[0204] like Fig.11As shown, an embodiment of the present application provides a computer device 1100 for executing the battle prompt method in the game of the present application, and the device includes a memory 1101, a processor 1102, and a computer program stored in the memory 1101 and executable on the processor 1102, wherein the processor 1102 implements the steps of the battle prompt method in the game when executing the computer program.
[0205] Specifically, the above-mentioned memory 1101 and processor 1102 can be general-purpose memory and processor, which are not specifically limited here. When the processor 1102 runs the computer program stored in the memory 1101, it can execute the battle prompt method in the above-mentioned game.
[0206] Corresponding to the method for prompting battles in the game in the present application, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for prompting battles in the above-mentioned game are executed.
[0207] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the battle prompt method in the above-mentioned game can be executed.
[0208] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0209] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0210] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0211] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0212] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0213] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for prompting a battle in a game, characterized in that: The game includes a first game character and a second game character in a different group from the first game character, a graphical user interface is provided through a terminal device, and at least part of the game scene is displayed in the graphical user interface, and the prompt method includes: In response to the distance between the first game character and the second game character in the game scene meeting a preset battle distance condition, extracting target historical battle data between the first game character and the second game character in the historical battle scene from the historical battle data; wherein the game scene represents the game scene where the first game character is located at the current moment, and the historical battle scene represents the historical game scene where the first game character has fought with the second game character before the current moment; Generate battle prompt information for the first game character and the second game character according to the target historical battle data of the first game character and the second game character; wherein the battle prompt information is used to represent the battle prediction result of the first game character and the second game character; the battle prediction result includes: the winning rate value of the first game character against the second game character determined according to the target historical battle data, or the winning rate value of the first game character against the second game character determined according to the target battle data; the target battle data represents the historical battle data in the target historical battle data that is closest to the battle status difference between the first game character and the second game character in the current game scene; The battle prompt information is displayed on the graphical user interface.
2. The prompting method according to claim 1, characterized in that: The distance between the first game character and the second game character in the game scene meets a preset battle distance condition, including: The distance between the first game character and the second game character in the game scene is less than or equal to a preset distance threshold; or, The second game character is located in the battle area corresponding to the first game character; wherein the distance between any position in the battle area and the target position meets the battle distance condition; and the target position is the position of the first game character in the game scene.
3. The prompting method according to claim 1, characterized in that: The generating, according to the target historical battle data of the first game character and the second game character, battle prompt information of the first game character and the second game character comprises: For each of the historical battle scenes included in the target historical battle data, obtaining a first difference between target attribute values of the first game character and the second game character in the historical battle scene; According to a second difference between the target attribute values of the first game character and the second game character in the game scene, determining, from each of the first differences, a first difference with the smallest difference from the second difference as a target difference; From the target historical battle data, historical battle data between the first game character and the second game character at the target difference is extracted as target battle data, and the battle prompt information is generated according to the target battle data.
4. The prompting method according to claim 1, characterized in that: The generating, according to the target historical battle data of the first game character and the second game character, battle prompt information of the first game character and the second game character comprises: Determining a winning rate value of the first game character against the second game character according to the target historical battle data; The battle prompt information is generated according to the information generation strategy corresponding to the winning rate value.
5. The prompting method according to claim 4, characterized in that: The generating the battle prompt information according to the information generating strategy corresponding to the winning rate value includes: In response to the winning rate value being less than or equal to a preset winning rate threshold, generating first prompt information, and using the first prompt information and the winning rate value as the battle prompt information; wherein the first prompt information is used to prompt that the first game character is not suitable for fighting with the second game character in the game scene; In response to the winning rate value being greater than a preset winning rate threshold, a second prompt information is generated, and the second prompt information and the winning rate value are used as the battle prompt information; wherein, the second prompt information is used to represent the combined operation method recommended for the first game character to use when fighting against the second game character in the game scene.
6. The prompting method according to claim 5, characterized in that: In response to the winning rate value being greater than a preset winning rate threshold, generating second prompt information includes: Extracting historical battle data of the first game character in a battle victory state in a historical battle scene from the target historical battle data as data to be parsed; For each of the data to be parsed, a combined operation mode of the first game character in the data to be parsed is obtained; wherein the combined operation mode is determined based on a plurality of skills and common attacks used by the first game character in the data to be parsed, and a triggering sequence corresponding to the plurality of skills and the common attacks; Determining a recommendation priority of each of the combined operation modes according to the occurrence frequency of each of the combined operation modes; The combined operation mode with the highest recommendation priority is used as the second prompt information.
7. The prompting method according to claim 6, characterized in that: The prompting method further includes: In response to the first combination of operation modes including a target skill, a combination of operation modes that does not include the target skill is extracted as a second combination of operation modes from other combination of operation modes except the first combination of operation modes; wherein the first combination of operation modes is the combination of operation modes with the highest recommendation priority; and the target skill is a skill of the first game character that is currently in a cooling state; According to the recommendation priority of each of the second combination operation modes, the one with the highest recommendation priority in each of the second combination operation modes is determined as the second prompt information.
8. The prompting method according to claim 1, characterized in that: The step of displaying the battle prompt information on the graphical user interface includes: The battle prompt information is displayed through a first position associated with the first game character in the graphical user interface.
9. The display method according to claim 6, characterized in that: The displaying of the battle prompt information on the graphical user interface further includes: In response to the battle prompt information including the second prompt information, each of the skills and the normal attack included in the second prompt information is displayed in sequence on the graphical user interface according to the triggering order corresponding to each of the skills and the normal attack included in the second prompt information.
10. The prompting method according to claim 1, characterized in that: The prompting method further includes: In response to the start of a battle between the first game character and the second game character in the game scene, recording battle data between the first game character and the second game character; In response to the end of the battle between the first game character and the second game character in the game scene, stop recording the battle data between the first game character and the second game character, and store the recorded battle data in the historical battle data of the first game character; wherein the battle data at least includes: the second game character, various character attribute values of the second game character when the battle starts, various character attribute values of the first game character when the battle starts, the combination of operations used by the first game character during the battle, and the battle result.
11. A game battle prompt device, characterized in that: The game includes a first game character and a second game character in a different group from the first game character, a graphical user interface is provided through a terminal device, and at least part of the game scene is displayed in the graphical user interface, and the prompt device includes: A first response module, configured to extract, from historical battle data, target historical battle data of the first game character and the second game character in a historical battle scene in response to the distance between the first game character and the second game character in the game scene meeting a preset battle distance condition; wherein the game scene represents the game scene where the first game character is located at a current moment, and the historical battle scene represents the historical game scene in which the first game character and the second game character have fought before the current moment; A first processing module is used to generate battle prompt information of the first game character and the second game character according to the target historical battle data of the first game character and the second game character; wherein the battle prompt information is used to represent the battle prediction result of the first game character and the second game character; the battle prediction result includes: the winning rate value of the first game character against the second game character determined according to the target historical battle data, or the winning rate value of the first game character against the second game character determined according to the target battle data; the target battle data represents the historical battle data in the target historical battle data that is closest to the battle status difference between the first game character and the second game character in the current game scene; The first display module is used to display the battle prompt information on the graphical user interface.
12. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the prompt method as described in any one of claims 1 to 10 are performed.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the prompt method according to any one of claims 1 to 10 are executed.
