The present disclosure relates to the field of computer technology, and in particular, to a method for controlling a game object, an apparatus for controlling a game object, a computer readable storage medium, and an electronic device.
In some related games, when a player is injured in a battle, it is represented as decreasing of a blood volume in the blood bar. In such cases, the player picks up and uses the treatment medicine in the battlefield, so that the blood volume returns to normal.
It should be noted that the information disclosed in the above background part is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the related art known to those of ordinary skill in the art.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for controlling a game object, where a graphical user interface is provided by a first terminal device, and the method includes:
According to a second aspect of the embodiments of the present disclosure, there is provided an electronic device, including: a processor and a memory, where the memory stores with a computer-readable instruction, and when the computer-readable instruction is executed by the processor, a method for controlling a game object in any of the foregoing embodiments is implemented.
According to a third aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium with a computer program stored thereon, and when the computer program is executed by a processor, a method for controlling a game object in any of the foregoing embodiments is implemented.
Example embodiments will now be described more fully with reference to the accompanying drawings. However, Example embodiments can be embodied in many forms and should not be construed as limited to the examples set forth here. By contrast, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and will fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced where one or more of the specific details are omitted, or other methods, components, devices, steps, etc., are used. In other instances, commonly known technical solutions are not shown or described in detail to avoid obscuring aspects of the present disclosure.
As used in the present description, the terms “a”, “an”, “the” and “said” are used to indicate that there are one or more elements/components/etc. The terms “comprising” and “including” are used to indicate open inclusion and refer to the existence of additional elements/components/etc., in addition to the listed elements/components/etc. The terms “first” and “second” are only used as markers and do not limit the quantity of their objects.
In addition, the accompanying drawings are merely schematic illustrations of the present disclosure, and are not necessarily drawn to scale. Same reference numerals in the accompanying drawings denote the same or similar parts, and thus repeated descriptions of them will be omitted. Some block diagrams shown in the accompanying drawings are functional entities, and do not necessarily correspond to physical or logically independent entities.
In a scenario where treatment medicines for restoring blood volume and restoring energy are provided at the same time, this method is not applicable, resulting in inefficient battlefield decision-making due to the player thinking too long, thus reducing interaction efficiency and degrading game experience of the player. In addition, the recovery ratios of different treatment medicines are different, and when a treatment medicine with a relatively higher recovery ratio is used, it easily leads to overflow of the blood volume, and finally the player cannot use the treatment medicine. This method requires a high level of mastery of information related to the treatment medicines, and the intelligence and automation level is too low, reducing the accuracy of decision-making for the player in the game and not conducive to returning of the player.
In view of this, there is an urgent need in the art to develop a new method and apparatus for controlling a game object. Therefore, an object of the present disclosure is to provide a method for controlling a game object, an apparatus for controlling a game object, a computer readable storage medium, and an electronic device, so as to overcome the problems of low interaction efficiency and game function defects caused by limitations of the related technologies at least to some extent. Other characteristics and advantages of the present disclosure will become apparent through the following detailed description, or be partially learned by the practice of the present disclosure.
The method for controlling a game object according to an embodiment of the present disclosure may be run on a terminal device or a server. Among them, the terminal device may be a local terminal device. When the method for controlling a game object is run on a server, the method for controlling a game object may be implemented and executed based on a cloud interaction system, where the cloud interaction system includes a server and a client device.
In some embodiments, various cloud applications may be run under the cloud interaction system, for example, a cloud game. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. Under the running mode of the cloud game, the running body of the game program and the game screen presentation body are separated, the storage and running of the method for controlling a game object are completed on the cloud game server, and the function of client device is to receive and send data, as well as present the game screen. For example, the client device may be a display device having a data transmission function close to the user side, such as a mobile terminal, a television, a computer, a palm computer, etc. However, the terminal device for performing information processing is a cloud game server of the cloud. When a game is performed, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, encodes and compresses the data such as the game screen, returns it to the client device through a network, and finally decodes and outputs the game screen through the client device.
In some embodiments, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores with a game program and is used for presenting a game screen. The local terminal device is used for interacting with a player through a graphical user interface (GUI), that is, conventionally downloading and installing a game program through an electronic device. There are a variety of manners for the local terminal device to provide the graphical user interface to the player, for example, the graphical user interface may be rendered and displayed on a display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used for presenting the graphical user interface, the graphical user interface includes a game screen, and the processor is used for running the game, generating a graphical user interface, and controlling the display of the graphical user interface on the display screen.
In some embodiments, the server may be an independent physical server, or may be a server cluster or a distributed system composed of a plurality of physical servers, or may be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal may be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but is not limited to this. The terminal and the server may be directly or indirectly connected in a wired or wireless communication manner, which is not limited in the present disclosure here.
In view of the problems existing in the related art, the present disclosure provides a method for controlling a game object, where a graphical user interface is provided by a first terminal device, and the first terminal device may be the aforementioned local terminal device, or may be a client device in the aforementioned cloud interaction system.
In step S110, a first medicine usage recommendation interface is displayed on the graphical user interface according to at least one type of status information of the game object and a status medicine currently carried by the game object, the status medicine is used for adjusting status information of the game object, and the first medicine usage recommendation interface includes status icons corresponding to the status information, a target status medicine and a first recovery control, where a status icon corresponding to the target status medicine among the status icons is displayed differentially.
In step S120, in response to a first trigger operation acting on the first recovery control, the status information of the game object is adjusted by using the target status medicine.
In an embodiment of the present disclosure, a first medicine usage recommendation interface is displayed on a graphical user interface, providing an adjustment entry of status information for a player, and improving the method for controlling a game object. Furthermore, status icons corresponding to the status information are displayed in the first medicine recommendation interface, and the target status medicine can be used by the player without considering the corresponding relationship between the status icon and the status information, avoiding the situation of inefficient battlefield decision-making due to the player thinking too long under an emergency battle condition, reducing the waste of the target status medicine caused by the player operating too fast, improving the automation and intelligence level of target status medicine usage, optimizing the player's experience significantly, and improving the returning rate of the player to a certain extent.
Various steps of the method for controlling a game object are described in detail below.
In step S110, a first medicine usage recommendation interface is displayed on the graphical user interface according to at least one type of status information of the game object and a status medicine currently carried by the game object, the status medicine is used for adjusting status information of the game object, and the first medicine usage recommendation interface includes status icons corresponding to the status information, a target status medicine and a first recovery control, where a status icon corresponding to the target status medicine among the status icons is displayed differentially.
In an embodiment of the present disclosure, the status information may be information representing a buff status of the game object, or may be information representing a debuff status of the game object, or may be other status information, which is not specifically limited in the present embodiment.
Correspondingly, the status medicine currently carried by the game object may be a medicine for removing the debuff status of the game object, or may be a medicine for adding the buff status of the game object, or may be a medicine for restoring or adjusting other statuses, which is not specifically limited in the present embodiment.
Furthermore, a first medicine usage recommendation interface may be displayed on the graphical user interface, and the first medicine usage recommendation interface may be displayed on a local region or all regions of the graphical user interface, which is not specifically limited in the present embodiment.
In order to enable the player to grasp the status information of the game object in real time and in detail, the status icons corresponding to the status information may be displayed in the first medicine usage recommendation interface. For example, when the status information is information representing the debuff status of the game object, the status icons corresponding to the debuff status such as hand fracture, body overweight, leg pain or the like of the game object can be displayed in the first medicine usage recommendation interface.
Furthermore, the status icon corresponding to the target status medicine may be displayed differentially from the other status icons.
Therefore, the target status medicine may also be displayed in the first medicine usage recommendation interface. The target status medicine may be determined in the status medicine currently carried by the game object according to a status medicine recommendation rule. Moreover, the target status medicine is used for adjusting the status of the current game object.
In some embodiments,
In some embodiments, the status medicine includes a special status medicine and a general status medicine.
Among them, the special status medicine is a medicine for adjusting a single piece of status information of the game object, and the general status medicine is a medicine for adjusting all status information of the game object. Generally, however, the price of the special status medicine is less than the price of the general status medicine. Therefore, for the status information of the game object, the priority of the special status medicine is higher than that of the general status medicine.
Furthermore, by judging on the status medicine currently carried by the game object, it is determined whether there is the special status medicine corresponding to the status information or not. When the game object currently carries the special status medicine, the special status medicine can be determined as the target status medicine.
In step S320, when there is no special status medicine corresponding to the status information, the general status medicine is determined as the target status medicine.
When it is determined that the game object carries no special status medicine by judging on the status medicine currently carried by the game object, the general status medicine can be determined as the target status medicine.
In the present embodiment, the target status medicine is determined according to the judgment result of the status medicine currently carried by the game object. The target status medicine to be used is determined for the player, avoiding the problem of inefficient battlefield decision-making due to the player thinking too long, and improving the automation and intelligence level of controlling a game object.
In step S220, the status icon corresponding to the target status medicine is displayed differentially.
In some embodiments,
Since the special status medicine can only adjust one piece of status information of the game object, when the target status medicine is a special status medicine, only the status icon of the status information that the target status medicine can adjust is displayed differentially.
For example, the manner of differential display may be highlight display, flicker display, or enlarged display, or the like. Alternatively, other manners of differential display may be set according to actual situations, which is not specifically limited in the present embodiment.
In step S420, when the target status medicine is a general status medicine, all status icons are displayed differentially.
Since the general status medicine can adjust all status information of the game object, when the target status medicine in a general status medicine, all status icons can be displayed differentially.
Differential display at this time may be a different manner different from the previous display status. In addition to highlight display, flicker display, or enlarged display, the color of the previous display status may also be changed to display, or other manners of differential display may be set according to actual situations, which not specifically limited in the present embodiment.
In the present embodiment, according to different types of the target status medicine, there are correspondingly different manners of differential display, and the “implicit” correspondence relationship between the target status medicine and the status icon is displayed as being “explicit”, facilitating the player to check and make decision, and optimizing the game experience of the player.
In addition, a first recovery control may also be displayed in the first medicine usage recommendation interface. The first recovery control is used for the player to control and use the target status medicine.
In step S120, in response to a first trigger operation acting on the first recovery control, the status information of the game object is adjusted by using the target status medicine.
In an embodiment of the present disclosure, in order to facilitate the player to use the target status medicine, the target status medicine may also be selected.
In some embodiments, the target status medicine is in a selected status.
When the target status medicine in the selected status is displayed the on the first medicine usage recommendation interface, a selection control may be provided, and when there is a confirmation mark on the selection control, it is indicated that the target status medicine is in the selected status. In addition, there may be other manners to display the target status medicine in the selected status on the first medicine usage recommendation interface, which is not specifically limited in the present embodiment.
After determining that the target status medicine is selected, the player may use the target status medicine to adjust the status information of the game object through a first trigger operation acting on the first recovery control.
Among them, the first trigger operation may be in the form of a click operation, a long press operation, or a slide operation, etc., which is not specifically limited in the present embodiment.
Certainly, after the target status medicine is selected, the player may further cancel the selected status of the target status medicine in the case of not intending to use the target status medicine.
In some embodiments, in response to a second trigger operation acting on the target status medicine, differential display of the status icon corresponding to the target status medicine is canceled, and the target status medicine is adjusted into an unselected status.
Among them, the second trigger operation may also be in the form of a click operation, a long press operation, or a slide operation, etc., which is not specifically limited in the present embodiment.
After the player acts a second trigger operation, the differential display of the status medicine corresponding to the target status medicine can be canceled, and simultaneously, the target status medicine can be adjusted into an unselected status.
In the present embodiment, the player can cancel the selection of the target status medicine through a second trigger operation, comprehensively displaying the “implicit” correspondence relationship between the target status medicine and the status icon as being “explicit” from the aspect of canceling the selection, providing an autonomous operation entrance of a battlefield decision-making for the player, facilitating the player to make a decision according to the personal demand and the current battlefield demand, and restricting the disadvantages caused by excessively automated use of the target status medicine to a certain extent.
For the blood supplementation requirement of the game object on the battlefield, a second medicine usage recommendation interface may further be provided on the graphical user interface, so as to increase the health value of the game object by using the target treatment medicine.
In some embodiments,
In some embodiments, the target treatment medicine is determined according to a treatment medicine recommendation rule.
The treatment medicine recommendation rule is used to recommend a suitable target treatment medicine according to the health value of the game object in different cases.
In some embodiments,
Generally, there are three types of treatment medicines currently carried by the game object, which are respectively a small medicine kit, a large medicine kit and a first-aid kit, and among the prices of the small medicine kit, the large medicine kit and the first-aid kit, the price of the small medicine kit is generally the lowest, and the price of the large medicine kit is in the middle and the price of the first-aid kit is most expensive. Correspondingly, the health value to be restored by the small medicine kit is the minimum, the health value to be restored by the large medicine kit is in the middle, and the health value to be restored by the first-aid package is the most.
Therefore, when the player carries one or more treatment medicines, the carried treatment medicine may be determined as a pending treatment medicine, and a recovery health value corresponding to the pending treatment medicine can be obtained.
In step S620, a total health value is obtained by performing calculation on the health value and the recovery health value of the game object, and the pending treatment medicine is determined as the target treatment medicine according to the total health value.
After the current health value of the game object and the recovery health value corresponding to the pending treatment medicine are obtained, the total health value of the game object under the condition of using the corresponding pending treatment medicine can be obtained by performing a sum calculation on the health value and the recovery health value.
Furthermore, the target treatment medicine is determined according to the total health value of the game object.
In some embodiments,
Due to the fact that when the health value of the game object can be restored to 80% or up, it will not affect the normal game of the player basically, so that the first health threshold can be set to 0, and the second health threshold is set to 80%.
When the total health value is greater than 0 and less than 80%, the pending treatment medicine with the first medicine quantity can be determined as the target treatment medicine according to the total health value.
In some embodiments, under the condition that the health value is less than the second health threshold, the first medicine quantity of the pending treatment medicine when the total health value is maximum is determined.
When the first medicine quantity of the pending treatment medicine is determined, the medicine quantities of various types of pending treatment medicines under the condition that the total health value can be maximum can be calculated, taking that the total health value is less than the second health threshold as a condition, so as to serve as the first medicine quantity. For example, the first medicine quantity may include the medicine quantities of the small medicine kit, the large medicine kit and the first-aid kit, being n_1, n_2, and n_3, respectively.
After the first medicine quantity is determined, the pending treatment medicine with the first medicine quantity can be determined as the target treatment medicine.
In step S720, when the total health value is greater than or equal to the second health threshold and less than or equal to the third health threshold, the pending treatment medicine with the second medicine quantity is determined as the target treatment medicine according to the medicine price of the pending treatment medicine.
In order to provide a certain tolerance when determining the target treatment medicine, the third health threshold may be set to 105%.
When the total health value is greater than or equal to 80% and less than 105%, the normal game operation of the player has been supported sufficiently. In this case, the pending treatment medicine with the second medicine quantity of the highest cost performance may be determined as the target treatment medicine.
In some embodiments,
The single medicine prices of the small medicine kit, the large medicine kit and the first-aid kit are respectively P_1, P_2 and P_3, and the pending usage quantities of the small medicine kit, the large medicine kit and the first-aid kit can be determined to be n_1, n_2 and n_3, respectively.
In step S820, the medicine price can be obtained by performing calculation on the single medicine price and the pending usage quantity, and the pending treatment medicine with the second medicine quantity is determined as the target treatment medicine according to the lowest medicine price.
After determining the single medicine price and the pending usage quantity, the corresponding medicine price p can be obtained by performing a calculation of p_1*n_1+p_2*n_2+p_3*n_3.
Furthermore, the pending usage quantities of the small medicine kit, the large medicine kit and the first-aid kit when the medicine price p is the minimum value, being n_1, n_2 and n_3 respectively, are determined as the second medicine quantity. In addition, the pending treatment medicine with the second medicine quantity is determined as the target treatment medicine.
In the present embodiment, the target treatment medicine is determined according to the cost performance principle, recommending the most economical treatment medicine usage scheme suitable for the player, and saving the cost of using the target treatment medicine for the player.
In step S730, when the total health value is greater than the third health threshold, a pending treatment medicine is determined as the target treatment medicine according to the recovery health value of the pending treatment medicine.
When the total health value is greater than 105%, the pending treatment medicine with the smallest recovery health value can be determined as the target treatment medicine according to the recovery health value of the pending treatment medicine.
In the present embodiment, the corresponding target treatment medicine can be determined according to different situations of the total health value, so that the player can use the target treatment medicine with the maximum cost performance, avoiding waste of the target treatment medicine, and avoiding the situation of inefficient battlefield decision-making due to the player thinking too long caused by selecting the target treatment medicine based on the cost performance principle.
In order to facilitate the player to grasp the total health value that can be restored and the total health value overflow condition, corresponding prompt information may also be displayed.
In some embodiments,
When the total health value is greater than 0 and less than 80%, or the total health value is greater than or equal to 80% and less than 105%, the value prompt information corresponding to the total health value that can be restored to is displayed. The value prompt information may be text information, such as “Health can be restored to 70%”, or the like, or may be in the form of an icon marked with a total health value, which is not specifically limited in the present embodiment.
In step S920, when the total health value is greater than the third health threshold, an overflow value is obtained by performing calculation on the total health value and the third health threshold, and the overflow value is displayed differentially.
When the total health value is greater than 105%, the overflow value can be obtained by performing a difference calculation on the total health value and 105%, and the overflow value can be differentially displayed. For example, the overflow value is displayed in red, in order to prompt the overflow situation to the player.
In the present embodiment, different prompt information can be displayed for the total health value under different situations, so that the player can grasp the usage condition of the target treatment medicine, reducing the player's thinking process of self-calculation, and bringing more fighting time for the player.
In step S520, in response to a third trigger operation acting on the second recovery control, the health value of the game object is increased by using the target treatment medicine.
Since the target treatment medicine is in the selected status, the player may use the target treatment medicine through a third trigger operation acting on the second recovery control to increase the health value of the game object.
Among them, the third trigger operation may be a click operation, a long press operation, or a slide operation, etc., which is not specifically limited in the present embodiment.
It should be noted that the second recovery control may be the same control as the first recovery control, or may be a control completely different from the first recovery control, which is not specifically limited in the present embodiment.
In the present embodiment, the manner of restoring the health value of the game object is provided to the player through a second medicine usage recommendation interface. Even if the restored health value overflows, the possibility of autonomous usage is also provided for the player, optimizing the game experience of the player.
In addition to the first medicine usage recommendation interface and the second medicine usage recommendation interface, a third medicine usage recommendation interface can be also displayed on the graphical user interface, facilitating the player to adjust the status information of the game object and increase the health value of the game object simultaneously.
In some embodiments,
The status information may be information representing the buff status of the game object, or may be information representing the debuff status of the game object, or may be other status information, which is not specifically limited in the present embodiment.
The status medicine currently carried by the game object may be a medicine for removing the debuff status of the game object, or may be a medicine for adding the buff status of the game object, or may be a medicine for restoring or adjusting other statuses, which is not specifically limited in the present embodiment.
Moreover, the target treatment medicine may also be determined according to the status medicine recommendation rule, the determination manner is the same as that of
A treatment medicine is a medicine for restoring the health value of the game object. Moreover, the treatment medicine recommendation rule for determining the target treatment medicine is the same as that shown in
In addition, a third recovery control may also be displayed in the third medicine usage recommended page. The third recovery control is used for the player to simultaneously control the usage of the target status medicine and the target treatment medicine.
In step S1020, in response to a fourth trigger operation acting on the third recovery control, the status information of the game object is adjusted by using the target status medicine, and the health value of the game object is increased by using the target treatment medicine.
After determining the target treatment medicine and the target status medicine, the player may simultaneously adjust the status information of the game object and the health value of the game object through the fourth trigger operation.
Among them, the fourth trigger operation may be a click operation, a long press operation, or a slide operation, etc., which is not specifically limited in the present embodiment.
In the present embodiment, a manner of restoring the health value of the game object and adjusting the status information simultaneously is provided to the player through a third medicine usage recommendation interface, simplifying the player's operation under the condition that the player has two requirements at the same time, reducing the player's operation time, and improving the battlefield decision and control efficiency.
In the case that a first medicine usage recommendation interface, a second medicine usage recommendation interface and a third medicine usage recommendation interface are provided on the graphical user interface, in order to facilitate the user to select and switch, the corresponding medicine usage recommendation interface can be displayed through a selection operation acting on a selection list.
In some embodiments,
The selection list may be triggered and displayed through the trigger operation of the user. Moreover, a first medicine usage recommendation interface trigger identification, a second medicine usage recommendation interface trigger identification, and a third medicine usage recommendation interface trigger identification are displayed in the selection list.
For example, the first medicine usage recommendation interface trigger identification may be the PLAN1, the second medicine usage recommendation interface trigger identification may be the PLAN2, and the third medicine usage recommendation interface trigger identification may be the PLAN3. In addition, they may also be other corresponding trigger identifications, which are not specifically limited in the present embodiment.
In step S1120, in response to a selection operation on the selection list, a medicine usage recommendation interface corresponding to the selection operation is displayed on the graphical user interface.
In the case of displaying a selection list, the player may act a selection operation to determine the trigger identification of the medicine usage recommendation interface to be displayed, so as to display the medicine usage recommendation interface corresponding to the selection operation.
Among them, the selection operation may be in the form of a click operation, a long press operation, a slide operation, etc., which is not specifically limited in the present embodiment.
In the present embodiment, a manner of displaying a corresponding medicine usage recommendation interface is provided, and a solution is provided for the demand of the player to switch or select the medicine usage recommendation interface in the game process, so as to satisfy the display requirements of the player under different game scenes.
The method for controlling a game object in the embodiments of the present disclosure is described in detail below in combination with an application scenario.
Among them, the first medicine usage recommendation interface trigger identification may be PLAN1, the second medicine usage recommendation interface trigger identification may be PLAN2, and the third medicine usage recommendation interface trigger identification may be PLAN3. In addition, they may be other corresponding trigger identifications, which are not specifically limited in the present embodiment.
When the player acts on the first medicine usage recommendation interface trigger identification PLAN1 through a selection operation, the first medicine usage recommendation interface corresponding to the selection operation may be displayed.
Since the general status medicine can adjust all status information of the game object, when the target status medicine is a general status medicine, all status icons can be highlighted.
Since the special status medicine can only adjust one type of status information of the game object, when the target status medicine is a special status medicine, all status icons can be displayed, and only the status icon of the status information that can be adjusted by the target status medicine is highlighted.
In addition, it can be a default that the currently owned special status medicine and all status icons are selected, the status icon corresponding to the special status medicine is highlighted, and the status icon not corresponding to the special status medicine is displayed in gray.
When the player acts on the second medicine usage recommendation interface trigger identification PLAN2 through a selection operation, the second medicine usage recommendation interface corresponding to the selection operation may be displayed.
When the first medicine quantity of the pending treatment medicine is determined, the medicine quantities of various types of pending treatment medicines under the condition that the total health value can be maximum can be calculated, taking that the total health value is less than the second health threshold as a condition, so as to serve as the first medicine quantity. For example, the first medicine quantity may include the medicine quantities of the small medicine kit, the large medicine kit and the first-aid kit, being n_1, n_2, and n_3, respectively.
After the first medicine quantity is determined, the pending treatment medicine with the first medicine quantity can be determined as the target treatment medicine.
Furthermore, the pending treatment medicine with the first medicine quantity is selected as the recommendation scheme by default, and value prompt information of the total health value after using the target treatment medicine is displayed simultaneously. The value prompt information is “Health can be restored to 70%”.
The single medicine prices of the small medicine kit, the large medicine kit and the first-aid kit are respectively p_1, p_2 and p_3, and the pending usage quantities of the small medicine kit, the large medicine kit and the first-aid kit can be determined to be n_1, n_2 and n_3, respectively.
After determining the single medicine price and the pending usage quantity, the corresponding medicine price p can be obtained by performing a calculation of p_1*n_1+p_2*n_2+p_3*n_3.
Furthermore, the pending usage quantities of the small medicine kit, the large medicine kit and the first-aid kit when the medicine price p is the minimum value, being n_1, n_2 and n_3 respectively, are determined as the second medicine quantity. In addition, the pending treatment medicine with the second medicine quantity is determined as the target treatment medicine.
Furthermore, the pending treatment medicine with the second medicine quantity is selected as the recommendation scheme by default, and value prompt information of the total health value after using the target treatment medicine is displayed simultaneously. The value prompt information is “Health can be restored to 70%”.
However, at this time, the target treatment medicine is not selected by default, but under the condition that the player performs an active selection, the overflow value is marked with an obvious color.
When the player acts on the third medicine usage recommendation interface trigger identification PLAN3 through a selection operation, the third medicine usage recommendation interface corresponding to the selection operation may be displayed.
In the method for controlling the game object under the application scenario, a first medicine usage recommendation interface is displayed on a graphical user interface, providing an adjustment entry of status information for a player, and improving the method for controlling a game object. Furthermore, status icons corresponding to the status information are displayed in the first medicine usage recommendation interface, and the target status medicine can be used by the player without considering the corresponding relationship between the status icon and the status information, avoiding the situation of inefficient battlefield decision-making due to the player thinking too long under an emergency battle condition, reducing the waste of the target status medicine caused by the player operating too fast, improving the automation and intelligence level of target status medicine usage, optimizing the player's experience significantly, and improving the returning rate of the player to a certain extent.
In addition, in an embodiment of the present disclosure, there is further provided an apparatus for controlling a game object.
The interface display module 2710 is configured to display a first medicine usage recommendation interface on a graphical user interface according to at least one type of status information of the game object and a status medicine currently carried by the game object, the status medicine is used for adjusting status information of the game object, and the first medicine usage recommendation interface includes a status icon corresponding to the status information, a target status medicine and a first recovery control, where a status icon corresponding to the target status medicine among the status icon is displayed differentially. The status adjustment module 2720 is configured to adjust status information of the game object by using the target status medicine in response to a first trigger operation acting on the first recovery control.
In an embodiment of the present disclosure, displaying a status icon corresponding to the target status medicine among the status icon differentially includes:
In an embodiment of the present disclosure, the status medicine includes a special status medicine and a general status medicine.
Determining the target status medicine in the status medicine according to a status medicine recommendation rule, includes:
In an embodiment of the present disclosure, displaying the status icon corresponding to the target status medicine differentially includes:
In an embodiment of the present disclosure, the target status medicine is a selected status.
In an embodiment of the present disclosure, after displaying the status icon corresponding to the target status medicine among the status icon differentially, the method for controlling a game object further includes:
In an embodiment of the present disclosure, the method for controlling a game object further includes:
In an embodiment of the present disclosure, the target treatment medicine is determined according to a treatment medicine recommendation rule.
In an embodiment of the present disclosure, determining the target treatment medicine according to a treatment medicine recommendation rule includes:
In an embodiment of the present disclosure, determining the pending treatment medicine as the target treatment medicine according to the total health value includes:
In an embodiment of the present disclosure, determining a first medicine quantity of the pending treatment medicine according to the total health value includes:
In an embodiment of the present disclosure, determining the pending treatment medicine with a second medicine quantity as the target treatment medicine according to a medicine price of the pending treatment medicine includes:
In an embodiment of the present disclosure, the method for controlling a game object further includes:
In an embodiment of the present disclosure, the method for controlling a game object further includes:
In an embodiment of the present disclosure, the method for controlling a game object further includes:
The specific details of the apparatus for controlling a game object 2700 have described in detail in the corresponding method for controlling a game object. Therefore, details are not described here again.
It should be noted that although several modules or units of the apparatus for controlling a game object 2700 are mentioned in the above detailed description, such partitioning is not mandatory. In fact, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be concretized within one module or unit. Conversely, the features and functions of one module or unit described above may be concretized by further dividing it into a plurality of modules or units.
In addition, in an embodiment of the present disclosure, there is further provided an electronic device capable of implementing the above method.
The electronic device 2800 according to the embodiment of the present disclosure will be described below with reference to
As shown in
Among them, the storage unit stores with a program code, and the program code may be executed by the processing unit 2810, so that the processing unit 2810 executes the steps according to the various embodiments of the present disclosure described in the foregoing “example method” part of the present description. For example, the method includes:
In some embodiments, displaying a status icon corresponding to the target status medicine among the status icon differentially includes:
In some embodiments, the status medicine includes a special status medicine and a general status medicine;
In some embodiments, displaying the status icon corresponding to the target status medicine differentially includes:
In some embodiments, the target status medicine is in a selected status.
In some embodiments, after displaying the status icon corresponding to the target status medicine among the status icon differentially, the method further includes:
In some embodiments, the method further includes:
In some embodiments, the target treatment medicine is determined according to a treatment medicine recommendation rule.
In some embodiments, the target treatment medicine is determined according to a treatment medicine recommendation rule, which includes:
In some embodiments, determining the pending treatment medicine as the target treatment medicine according to the total health value includes:
In some embodiments, determining a first medicine quantity of the pending treatment medicine according to the total health value includes:
In some embodiments, determining the pending treatment medicine with a second medicine quantity as the target treatment medicine according to a medicine price of the pending treatment medicine includes:
In some embodiments, the method further includes:
In some embodiments, the method further includes:
In some embodiments, the method further includes:
In this way, a first medicine usage recommendation interface is displayed on a graphical user interface, providing an adjustment entry of status information for a player, and improving the method for controlling a game object. Furthermore, status icons corresponding to the status information are displayed in the first medicine recommendation interface, and the target status medicine can be used by the player without considering the corresponding relationship between the status icon and the status information, avoiding the situation of inefficient battlefield decision-making due to the player thinking too long under an emergency battle condition, reducing the waste of the target status medicine caused by the player operating too fast, improving the automation and intelligence level of target status medicine usage, optimizing the player's experience significantly, and improving the returning rate of the player to a certain extent.
The storage unit 2820 may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM) 2821 and/or a cache memory unit 2822, and may further include a read-only memory unit (ROM) 2823.
The storage unit 2820 may also include a program/utility 2824 having a set of (at least one) program modules 2825. Such program module 2825 includes, but is not limited to: an operating system, one or more applications, other program modules, and program data. Each one or some combination of these examples may include an implementation of a network environment.
The bus 2830 may represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any bus structure of a variety of bus structures.
The electronic device 2800 may also communicate with one or more external devices 3000 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 2800, and/or communicate with any device (e.g., a router, a modem, etc.) that enables the electronic device 2800 to communicate with one or more other computing devices. Such communication may be performed through an input/output (I/O) interface 2850. Moreover, the electronic device 2800 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 2860. As shown in the drawing, network adapter 2840 communicates with other modules of electronic device 2800 through bus 2830. It should be understood that, although not shown in the drawing, other hardware and/or software modules may be used in conjunction with electronic device 2800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drivers, and data backup storage systems, etc.
Through the description of the above embodiments, those skilled in the art will readily understand that the example embodiments described here may be implemented by software, or may be implemented by software in combination with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of a software product, and the software product may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash disk, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an embodiment of the present disclosure, there is further provided a computer-readable storage medium storing with a program product capable of implementing the method described in the description. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product, including program code, and when the program product is running on a terminal device, the program code is used to enable the terminal device to perform the steps according to the various embodiments of the present disclosure described in the foregoing “example method” part of the present description. For example, the method includes:
In some embodiments, displaying a status icon corresponding to the target status medicine among the status icon differentially includes:
In some embodiments, the status medicine includes a special status medicine and a general status medicine;
In some embodiments, displaying the status icon corresponding to the target status medicine differentially includes:
In some embodiments, the target status medicine is in a selected status.
In some embodiments, after displaying the status icon corresponding to the target status medicine among the status icon differentially, the method further includes:
In some embodiments, the method further includes:
In some embodiments, the target treatment medicine is determined according to a treatment medicine recommendation rule.
In some embodiments, the target treatment medicine is determined according to a treatment medicine recommendation rule, which includes:
In some embodiments, determining the pending treatment medicine as the target treatment medicine according to the total health value includes:
In some embodiments, determining a first medicine quantity of the pending treatment medicine according to the total health value includes:
In some embodiments, determining the pending treatment medicine with a second medicine quantity as the target treatment medicine according to a medicine price of the pending treatment medicine includes:
In some embodiments, the method further includes:
In some embodiments, the method further includes:
In some embodiments, the method further includes:
In this way, a first medicine usage recommendation interface is displayed on a graphical user interface, providing an adjustment entry of status information for a player, and improving the method for controlling a game object. Furthermore, status icons corresponding to the status information are displayed in the first medicine recommendation interface, and the target status medicine can be used by the player without considering the corresponding relationship between the status icon and the status information, avoiding the situation of inefficient battlefield decision-making due to the player thinking too long under an emergency battle condition, reducing the waste of the target status medicine caused by the player operating too fast, improving the automation and intelligence level of target status medicine usage, optimizing the player's experience significantly, and improving the returning rate of the player to a certain extent.
Referring to
The program product may employ any combination of one or more readable medium. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of them. More specific examples of the readable storage medium (non-exhaustive lists) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier, where readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program used by or in combination with an instruction execution system, an apparatus, or a device.
The program code included on the readable medium may be transmitted with any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
The program code for executing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages, such as Java, C++, etc., also including conventional procedural programming languages, such as “C” language or similar programming languages. The program code may be executed entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on the remote computing device, or entirely on the remote computing device or the server. In situations involving a remote computing device, the remote computing device may be connected to a user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (for example, utilizing Internet service providers to connect through the Internet).
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the description and practice of the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure following the general principles of the present disclosure and including common general knowledge or conventional technical means in the art not disclosed in the present disclosure. The description and examples are considered as examples only, with a true scope and spirit of the present disclosure being indicated by the claims.
Number | Date | Country | Kind |
---|---|---|---|
202110692908.3 | Jun 2021 | CN | national |
The present application is a National Stage of International Application No. PCT/CN2022/081774 filed on Mar. 18, 2022 which claims priority to Chinese Patent Application No. 202110692908.3 entitled “Method and apparatus for controlling game object, storage medium, and electronic device”, filed on Jun. 22, 2021, and both the entire contents of which are incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/081774 | 3/18/2022 | WO |