Game props usage method, device, equipment and storage medium
By recommending game props based on the virtual character's health value and attack distance in FPS games, the problem of difficulty for novice players to use game props is solved and the game experience is improved.
Patent Information
- Application Number
- CN202111033251.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-03
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2041-09-03
AI Technical Summary
In FPS games, novices have difficulty using game props, resulting in reduced game experience.
Provide a graphical user interface through terminal devices. According to the health value and attack distance of the virtual character when it is attacked, appropriate game props are recommended, and corresponding game skill controls are displayed on the graphical user interface. In response to player operations, the virtual character uses the target virtuality to control the virtual character in response to player operations. Props.
It improves the gaming experience of novice players, reduces the cognitive burden of game props, and makes it easier for novice players to get started with the game.
Smart Images

Figure CN113663334B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of games, and in particular to a method, device, equipment and storage medium for using game props. Background Art
[0002] With the development of mobile communication technology, it is becoming more and more popular for users to use smart terminal devices such as mobile phones and tablet computers to play online games. Among these online games, first-person shooting games (FPS for short) bring players visual impact through their immersive gaming experience, greatly enhancing the initiative and realism of the game, and have become the choice of most players.
[0003] In the prior art, taking mobile FPS games as an example, on the head-up display (HUD) during battle, the game props owned by the virtual character are usually divided into short-range props and long-range props. Players can control the virtual character to use game props with different functions according to their familiarity with the battle scene, game mechanism and game props, as well as the interpretation of enemy targets during the battle. However, for novice players, they are not familiar with the battle scene, game mechanism and game props, and the number of game experience is limited. When facing a large number of enemy targets, they will be flustered and affect the use of game props, thereby wasting game props, which in turn reduces the game experience of novice players.
[0004] In summary, in current FPS games, it is difficult for novice players to use game props in the game due to their lack of familiarity with game props.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The embodiments of the present invention provide a method, device, equipment and storage medium for using game props, which are used to solve the problem in the prior art that it is difficult for novice players to use game props in the game due to their lack of familiarity with game props.
[0007] In a first aspect, an embodiment of the present invention provides a method for using a game prop, wherein a graphical user interface is provided through a terminal device, wherein the graphical user interface includes at least part of a game scene and a virtual character, and the virtual character is a character corresponding to the terminal device, and the method includes:
[0008] When the virtual character is attacked, the attack distance between the virtual character and the attacker is obtained;
[0009] Determine, from the virtual props currently possessed by the virtual character, a target virtual prop that the virtual character can select and that corresponds to the attack distance;
[0010] Displaying a game skill control corresponding to the target virtual item on a graphical user interface;
[0011] In response to the touch operation on the game skill control, the virtual character is controlled to use the target virtual prop through the game skill control.
[0012] In a specific implementation, before obtaining the attack distance between the virtual character and the attack initiator, the method further includes:
[0013] Identify the attacker of the attack on the virtual character;
[0014] When the attacker is within the field of vision of the virtual character, the attack distance of the virtual character is obtained.
[0015] In a specific implementation, determining a target virtual prop corresponding to the attack distance selectable by the virtual character from the virtual props currently possessed by the virtual character includes:
[0016] If the health value of the virtual character when being attacked is greater than a preset health threshold, the attack type of the virtual character being attacked is determined according to the attack distance, wherein the attack type includes long-range attack, close-range attack, and long-range attack and close-range attack;
[0017] Determine the target virtual props that the virtual character can select according to the attack type.
[0018] In a specific implementation, determining a target virtual prop corresponding to the attack distance selectable by the virtual character from the virtual props currently possessed by the virtual character includes:
[0019] If the health value of the virtual character when being attacked is greater than a preset health threshold, the attack range of all virtual props currently possessed by the virtual character is retrieved;
[0020] The target virtual props that the virtual character can select are determined by the attack range and attack distance.
[0021] In a specific implementation, determining the target virtual props that the virtual character can select according to the attack type includes:
[0022] When the attack type of the virtual character is a close-range attack, determining a first target virtual item that the virtual character can select;
[0023] When the attack type of the virtual character is a long-range attack, a second target virtual prop selectable by the virtual character is determined, wherein the attack range of the first target virtual prop is smaller than the attack range of the second target virtual prop.
[0024] In a specific implementation, determining the target virtual props that the virtual character can select according to the attack type includes:
[0025] In the case where the attack type of the virtual character is a long-range attack and a short-range attack, determining a first damage value of the short-range attack on the virtual character and a second damage value of the long-range attack on the virtual character;
[0026] According to the first damage value and the second damage value, the first target virtual prop, the second target virtual prop and the prop priority that the virtual character can select are determined, wherein the prop priority is used to indicate the prop that is preferentially recommended between the first target virtual prop and the second target virtual prop, and the attack range of the first target virtual prop is smaller than the attack range of the second target virtual prop.
[0027] In a specific implementation, when the first damage value is greater than the second damage value, the item priority indicates that the first target virtual item is recommended first;
[0028] When the first damage value is less than or equal to the second damage value, the item priority indicates that the second target virtual item is recommended first.
[0029] In a specific implementation, determining the attack type of the virtual character according to the attack distance includes:
[0030] If the attack distance is less than the preset distance threshold, the attack type is determined to be a close-range attack;
[0031] If the attack distance is greater than or equal to the distance threshold, the attack type is determined to be a long-range attack;
[0032] If the attack distance includes a first distance and a second distance, and the first distance is greater than the distance threshold, and the second distance is less than or equal to the distance threshold, then the attack type is determined to be a long-range attack and a short-range attack.
[0033] In a specific embodiment, the method further comprises:
[0034] Display distance modification controls on the graphical user interface;
[0035] In response to a touch operation on the distance modification control, a distance modification interface is generated, wherein the distance modification interface is used to modify the distance threshold.
[0036] In a specific embodiment, the method further comprises:
[0037] If the health value of the virtual character when attacked is less than or equal to a preset health threshold, a third target virtual prop selectable by the virtual character is determined among all virtual props currently possessed by the virtual character, wherein the third target virtual prop is a defense-type prop.
[0038] In a specific implementation, displaying a game skill control corresponding to a target virtual item on a graphical user interface includes:
[0039] A first game skill control corresponding to a first target virtual prop and a second game skill control corresponding to a second target virtual prop are displayed on a graphical user interface according to the prop priority, wherein the virtual prop indicated by the prop priority is displayed preferentially on the graphical user interface.
[0040] In a specific embodiment, the virtual props selectable by the virtual character are the most frequently used virtual props among at least two available virtual props, wherein the attack ranges of at least two available virtual props are the same, or the defense capabilities of at least two available virtual props are the same.
[0041] In a specific embodiment, the method further comprises:
[0042] After the virtual prop indicated by the prop priority is released, a game skill control corresponding to another virtual prop of the first target virtual prop and the second target virtual prop other than the used virtual prop is preferentially displayed on the graphical user interface.
[0043] In a specific embodiment, the method further comprises:
[0044] A first identifier is set on the first game skill control, wherein the first identifier is used to indicate that the first game skill control is a control corresponding to a virtual prop for close range attack;
[0045] A second identifier is set on the second game skill control, wherein the second identifier is used to indicate that the second game skill control is a control corresponding to a virtual prop for performing long-range attacks.
[0046] In a second aspect, an embodiment of the present invention provides a game skill recommendation device, comprising: a processing module and a display module, the display module is used to display a graphical user interface, the graphical user interface at least includes a part of the game scene and a virtual character, the virtual character is a character corresponding to the terminal device;
[0047] The processing module is used to obtain the attack distance between the virtual character and the attacker when the virtual character is attacked;
[0048] The processing module is also used to determine a target virtual prop corresponding to the attack distance that the virtual character can select from the virtual props currently possessed by the virtual character;
[0049] The display module is also used to display the game skill controls corresponding to the target virtual props on the graphical user interface;
[0050] The processing module is also used to control the virtual character to use the target virtual props through the game skill control in response to the touch operation on the game skill control.
[0051] In a third aspect, an embodiment of the present invention provides a terminal device, including:
[0052] Processor, memory, display;
[0053] The memory is used to store programs and data, and the processor calls the program stored in the memory to execute the game prop using method of the first aspect.
[0054] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for using game props according to the first aspect.
[0055] The game props use method, device, equipment and storage medium provided by the embodiment of the present invention are applied in a terminal device, and a graphical user interface is provided through the terminal device, wherein the graphical user interface includes at least part of the game scene and the virtual character, and the virtual character is the character corresponding to the terminal device. When the virtual character is attacked, the attack distance between the virtual character and the initiator of the attack is obtained; from the virtual props currently possessed by the virtual character, the target virtual props corresponding to the attack distance that the virtual character can select are determined; the game skill control corresponding to the target virtual prop is displayed on the graphical user interface; in response to the touch operation on the game skill control, the virtual character is controlled to use the target virtual prop through the game skill control. By recommending selectable game props to the virtual character controlled by the user in this way, the problem of difficulty in using game props due to the lack of proficiency of novice players in game props can be avoided, so that novice players can also easily get started with new games, and the game experience of novice players is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0057] Figure 1A flowchart of a first embodiment of a method for using game props provided by an embodiment of the present invention;
[0058] Figure 2 A flowchart of a second embodiment of a method for using game props provided by an embodiment of the present invention;
[0059] Figure 3 A flowchart of a third embodiment of a method for using game props provided by an embodiment of the present invention;
[0060] Figure 4 A schematic diagram showing a first game skill control on a graphical user interface provided by an embodiment of the present invention;
[0061] Figure 5 A schematic diagram of preferentially displaying a first game skill control on a graphical user interface provided by an embodiment of the present invention;
[0062] Figure 6 A schematic diagram of the position rotation of a first game skill control and a second game skill control on a graphical user interface provided by an embodiment of the present invention;
[0063] Figure 7 A schematic diagram of displaying a game skill control corresponding to a third target virtual prop on a graphical user interface provided by an embodiment of the present invention;
[0064] Figure 8 A schematic diagram showing an initial interface on a graphical user interface provided by an embodiment of the present invention;
[0065] Fig. 9 A schematic diagram of the structure of a device for using game props provided by an embodiment of the present invention;
[0066] Fig.10 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all the embodiments. Based on the embodiment of the present invention, all other embodiments made by ordinary technicians in this field under the enlightenment of this embodiment belong to the scope of protection of the present invention.
[0068] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0069] Several prior arts provided in the background technology have the following technical problems:
[0070] For novice players, they are not familiar with battle scenes, game mechanisms and virtual props in the game (also called game props), and their gaming experience is limited. When facing a large number of enemy targets, they will be confused and affect the use of game props, which will lead to wasted game props. As a result, novice players have difficulty in using game props due to their lack of familiarity with game props, which reduces the gaming experience of novice players.
[0071] In view of the above problems, the present invention proposes a method for using game props, which recommends game props to players according to the health value of the virtual character controlled by the player when being attacked and the attack distance of the attack. When the health value of the virtual character is in a healthy state, attack-type game props can be recommended, and the attack-type game props that meet the conditions are determined according to the attack distance of the virtual character. When the health value of the virtual character is in an unhealthy state, defense-type game props can be recommended. In this way, even if the player is not familiar with the game props, the player can use the game props more easily, thereby improving the gaming experience of novice players. The terms involved in the present invention are first explained below.
[0072] Terminal device: The terminal device in the present invention refers to a network terminal device used to execute game applications, such as a mobile phone, a tablet computer, etc.
[0073] Graphical User Interface (GUI): also known as graphical user interface, refers to a computer operation user interface displayed in graphical form. It is an interface display format for communication between people and computers.
[0074] The core idea of the method for using game props provided by the present invention is to recommend selectable game props to the virtual character controlled by the player in the game scene according to the different combat situations in which the virtual character is in. The different combat situations can be determined by whether the virtual character controlled by the player is attacked and the health status of the virtual character's blood value after being attacked. When the virtual character is attacked and the blood value is healthy, game props with attack capabilities are recommended; when the virtual character is attacked and the blood value is unhealthy, game props with defense capabilities are recommended, thereby overcoming the problem in the above-mentioned background technology that novice players have difficulty in using game props due to their lack of proficiency in game props.
[0075] In one embodiment of the present invention, the method for using game props can be run on a local terminal device or a server. When the method for using game props is run on a server, the method for using game props can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0076] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the method of using game props are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, 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 game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0077] In an optional embodiment, taking a game as an example, a 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 player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player 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.
[0078] In a specific implementation, the method for using game props provided in this embodiment can be applied in an application scenario. In this scenario, the solution is applied in a local terminal device or a server where a game application is installed, and the use of game props is realized through a game program. In this embodiment, a graphical user interface is provided by a terminal device, wherein the terminal device can be the local terminal device mentioned above, or it can be a client device in the cloud interaction system mentioned above. The graphical user interface includes at least part of the game scene and a virtual character, and the virtual character is a character corresponding to the terminal device. The game props that can be used by the virtual character controlled by the user can also be displayed on the graphical user interface. The user can also operate on the graphical user interface through an input device such as a touch screen or a mouse, for example, by operating a joystick control to control the virtual character to move in the moving area on the graphical user interface, and by operating the game skill control corresponding to the game prop to control the virtual character to use the game prop, etc.
[0079] The method for using the game props is described in detail below through several specific implementations.
[0080] Figure 1 This is a flow chart of Example 1 of the method for using game props provided by an embodiment of the present invention, such as Figure 1 As shown, the method for using the game props includes the following steps:
[0081] S101: When the virtual character is attacked, the attack distance between the virtual character and the attacker is obtained.
[0082] In this step, when it is determined that the virtual character controlled by the user (that is, the player) is attacked, it can be determined in the following ways: the health bar of the virtual character displayed on the graphical user interface decreases; the user obtains a hit prompt, such as the sound made by the virtual character when being hit, text information displayed on the graphical user interface, or a hit animation displayed on the graphical user interface; the virtual character controlled by the user displays the state of being hit, such as the state of the virtual character bending over when being hit. It should be noted that the above methods are only examples. In actual applications, any method that can determine that the virtual character controlled by the user is attacked is acceptable, and the present invention does not limit it.
[0083] S102: Determine, from the virtual props currently possessed by the virtual character, a target virtual prop that the virtual character can select and that corresponds to the attack distance.
[0084] In this step, when the attacker (enemy target) attacks the virtual character, there is an attack distance between the attacker and the virtual character. The virtual character can determine the target virtual props to be used in the counterattack through the attack distance. The virtual props can be divided into offensive virtual props and defensive virtual props. When the player is attacked, the offensive virtual props can be selected, such as grenades, Molotov cocktails, flying knives and other virtual weapon props with damaging effects. Since the attack range of each offensive virtual prop may be different, it is necessary to determine the target virtual props to be used through the attack distance between the virtual character and the attacker.
[0085] In this scheme, the acquisition of virtual props can be that the player controls the virtual character to obtain virtual props pre-placed in certain areas of the game scene, or the player controls the virtual character to defeat the enemy in the game to obtain the corresponding virtual props, or the virtual props can be purchased by consuming virtual resources, or the virtual props can be exchanged for virtual materials. Virtual materials can be pre-placed in certain areas of the game scene, or obtained by the virtual character defeating the enemy in the game, or purchased by consuming virtual resources. When virtual props are exchanged for virtual materials, it can be achieved by the following method. Assuming that the virtual character has three different materials, different types of virtual props can be exchanged by making different combinations of the three materials. At this time, the virtual props exchanged for the above three materials can be automatically determined by the attack distance or the health value of the virtual character.
[0086] S103: Displaying a game skill control corresponding to the target virtual item on a graphical user interface.
[0087] In this step, in order to facilitate the player to control the virtual character to use the target virtual prop, a corresponding game skill control can be set for the target virtual prop, and the game skill control can be displayed on the graphical user interface, so that the player can control the virtual character to use the target virtual prop through the game skill control on the graphical user interface.
[0088] S104: In response to the touch operation on the game skill control, control the virtual character to use the target virtual prop through the game skill control.
[0089] In this step, when the player wants to control the virtual character to use game props, he can click the corresponding game skill control on the graphical user interface. After the terminal device responds to the player's touch operation on the game skill control, it can control the virtual character to use the target virtual props.
[0090] The method for using game props provided in this embodiment obtains the attack distance between the virtual character and the attacker when the virtual character is attacked; determines the target virtual prop corresponding to the attack distance that the virtual character can select from the virtual props currently possessed by the virtual character; displays the game skill control corresponding to the target virtual prop on the graphical user interface; and controls the virtual character to use the target virtual prop through the game skill control in response to the touch operation on the game skill control. In this way, selectable game props are recommended to the virtual character controlled by the user, which can avoid the problem of difficulty in using game props due to the lack of familiarity of novice players with game props, thereby making it easy for novice players to get started with the new game and improving the gaming experience of novice players.
[0091] In a specific implementation, before obtaining the attack distance between the virtual character and the attacker, the method further includes: determining the attacker who attacks the virtual character; when the attacker is within the field of vision of the virtual character, obtaining the attack distance at which the virtual character is attacked.
[0092] In this scheme, when prompting the player with the corresponding game skill controls, the attacker needs to be within the field of vision of the virtual character. If the attacker is not within the field of vision of the virtual character, the virtual character can only determine the approximate direction of the attacker when being attacked. At this time, if the player is prompted with the corresponding game skill controls, it will give the player a field of vision advantage, thereby reducing the fairness of the game. For example, if the attacker is behind the virtual character, after the attacker attacks the virtual character controlled by the player, the game skill controls corresponding to the virtual props used for long-range attacks are displayed on the graphical user interface. Then, the player can determine that the attacker is a long-range attack based on the game skill controls. At this time, after controlling the virtual character to turn around, the player will tend to search the distant area.
[0093] The following is a detailed description of a method for determining a target virtual item that a virtual character can select that corresponds to an attack distance.
[0094] Figure 2 This is a flow chart of Embodiment 2 of the method for using game props provided by the embodiment of the present invention, as shown in FIG. Figure 2 As shown, based on the above embodiment, in this embodiment, step S102 can be specifically implemented as follows:
[0095] S201: If the health value of the virtual character when being attacked is greater than a preset health threshold, the attack type of the virtual character is determined according to the attack distance.
[0096] In this step, a health bar can be set for the virtual character on the graphical user interface, and the health bar can display the life value of the virtual character in real time. The player can also determine the health status of the controlled virtual character at any time during the game. When determining the health status of the virtual character, a health threshold can be set for the health value of the virtual character in advance, and the health threshold is used as a standard for judging whether the health value of the virtual character is healthy. When the health value of the virtual character is greater than the preset health threshold, it means that although the virtual character has been attacked, the blood value is relatively healthy and can counterattack the attack. When the player determines the health status of the virtual character through the health bar, he can judge by the color of the blood bar. Different colors displayed on the blood bar represent different health states of the virtual character.
[0097] In this scheme, when the virtual character counterattacks the attack, the attack distance of the virtual character can be determined by the distance between the attacker and the virtual character, and the attack type can be determined by the attack distance, which includes long-range attack, close-range attack, and long-range and close-range attack.
[0098] In the above scheme, since there may be one or more attackers, the virtual character may be attacked by attackers from different positions. Therefore, after determining the attack distance of the virtual character, it is possible to determine whether the attack type is a long-range attack, a close-range attack, or both a long-range attack and a close-range attack based on the attack distance.
[0099] In this scheme, when there is only one attack initiator, the type of attack suffered by the virtual character can be determined by the distance between the attack initiator and the virtual character. At this time, the attack type can be a close-range attack or a long-range attack; when there are multiple attack initiators, it is necessary to determine the distance between each attack initiator and the virtual character. At this time, the attacks of multiple attack initiators may all be close-range attacks, may all be long-range attacks, or some of the attack initiators may be close-range attacks and other attack initiators may be long-range attacks. In other words, the types of attacks suffered by the virtual character are close-range attacks and long-range attacks.
[0100] S202: Determine target virtual props that can be selected by the virtual character according to the attack type.
[0101] In this solution, the properties of each virtual prop currently possessed by the virtual character may be different. These virtual props include virtual props with attributes for close-range attacks and virtual props with attributes for long-range attacks. Therefore, after determining the type of attack the virtual character is subjected to, the target virtual props that the virtual character can select can be determined according to different attack types.
[0102] In another embodiment, step S102 may also be specifically implemented as follows:
[0103] If the health value of the virtual character when attacked is greater than the health threshold, the attack ranges of all virtual props currently possessed by the virtual character are retrieved; the target virtual props that the virtual character can select are determined through the attack range and attack distance.
[0104] In this scheme, in addition to the above-mentioned target virtual props that can match corresponding attributes according to the attack type, the attack range (damage distance) of all virtual props currently possessed by the virtual character can also be directly retrieved. For example, if the virtual target is only subjected to close-range attacks, the damage distances of all virtual props of offensive types currently carried by the virtual character can be retrieved, and on the basis that the damage distances meet the conditions of the attack distance, virtual props for close-range combat are recommended to the virtual character; if the virtual target is only subjected to long-range attacks, the damage distances of all virtual props of offensive types currently carried by the virtual character can be retrieved, and on the basis that the damage distances meet the conditions of the attack distance, virtual props for long-range combat are recommended to the virtual character; if the virtual character is subjected to long-range and close-range attacks, it is necessary to compare the damage levels of the virtual character suffered by attacks at different distances, and give priority to recommending virtual props of attack types with high counterattack damage levels.
[0105] In the implementation of this scheme, first determine whether the health value of the virtual character is healthy. Only when the health value is relatively healthy can the virtual character counterattack the attack. For novice players, if virtual props are not recommended to them, even if the health value of the virtual character controlled by the novice player is relatively healthy, when it is attacked, it will use the virtual props recklessly due to panic. In this way, the blood value will become increasingly unhealthy due to the wrong use of virtual props, and the novice player will become increasingly panicked, which will become a vicious cycle, greatly reducing the survival rate of the virtual character controlled by the novice player and reducing the game experience of the novice player. Recommending virtual props to the virtual character based on the health status of the blood value of the virtual character controlled by the player can greatly improve the survival rate of the virtual character controlled by the novice player, thereby improving the game experience of the novice player.
[0106] The following is a detailed description of how to determine the target virtual props that the virtual character can select according to the attack type in the above embodiment.
[0107] Figure 3 This is a flow chart of Embodiment 3 of the method for using game props provided by the embodiment of the present invention, such as Figure 3 As shown, the specific implementation process of the above step S202 is as follows:
[0108] S301: When the attack type of the virtual character is a close-range attack, determine a first target virtual prop that the virtual character can select.
[0109] In this step, the first target virtual prop can be a virtual prop used for close-range attacks. After the virtual character controlled by the player is attacked, it is determined through the attack distance that the virtual character is attacked at close range. At this time, all the virtual props currently carried by the virtual character can be retrieved. When the damage distance of the virtual prop can meet the distance of the close-range attack, the virtual prop is determined as the first target virtual prop and recommended to the virtual character in the form of a control.
[0110] Figure 4 A schematic diagram of displaying a first game skill control on a graphical user interface provided by an embodiment of the present invention, such as Figure 4 As shown, in the above scheme, taking the first target virtual prop as a flying knife as an example, after determining that the target virtual prop that the virtual character can select is the flying knife, the first game skill control corresponding to the flying knife can be displayed on the graphical user interface in the form of a quick response event (Quick Time Event, abbreviated as: QTE) within a preset time period. If no response from the virtual character to release the skill is obtained within the preset time period, the first game skill control corresponding to the flying knife automatically disappears on the graphical user interface. When displaying the first game skill control corresponding to the flying knife, the first game skill control corresponding to the flying knife can be placed in a more prominent position on the graphical user interface, and the icon of the first game skill control corresponding to the flying knife can be enlarged to facilitate the player to release the flying knife prop.
[0111] S302: When the attack type to which the virtual character is attacked is a long-range attack, determine a second target virtual item that the virtual character can select.
[0112] In this step, the second target virtual prop can be a virtual prop used for long-range attack. After the virtual character controlled by the player is attacked, it is determined by the attack distance that the attack on the virtual character is a long-range attack. At this time, all the virtual props currently carried by the virtual character can be retrieved. When the damage distance of the virtual prop can meet the distance of the long-range attack, the virtual prop is determined as the second target virtual prop and recommended to the virtual character in the form of a control.
[0113] In the above scheme, displaying the second game skill control corresponding to the second target virtual prop on the graphical user interface is the same as displaying the first game skill control in step S301, and will not be repeated here.
[0114] In the above scheme, since the first target virtual prop is for close-range attacks and the second target virtual prop is for long-range attacks, the attack range of the first target virtual prop is smaller than the attack range of the second target virtual prop. When the position of the virtual character does not change, the first target virtual prop cannot attack the attacker who initiates a long-range attack, but the second target virtual prop can attack the attacker who initiates a close-range attack.
[0115] S303: When the attack type of the virtual character is a long-range attack and a short-range attack, determine a first damage value of the short-range attack on the virtual character and a second damage value of the long-range attack on the virtual character.
[0116] In this step, since the virtual character may face multiple attackers, the virtual character may be attacked at close range and at long range at the same time. The damage values received by the virtual character may be different for attacks at different distances. At this time, virtual props with larger counterattack damage values may be recommended to the virtual character based on the size of the damage received by the virtual character.
[0117] S304: Determine a first target virtual item, a second target virtual item, and an item priority that can be selected by the virtual character according to the first damage value and the second damage value.
[0118] In this step, the prop priority is used to indicate the props that are preferentially recommended between the first target virtual prop and the second target virtual prop. The attack range of the first target virtual prop is smaller than the attack range of the second target virtual prop. When the virtual character is attacked by close-range and long-range attacks at the same time, since only one virtual prop may not be enough to counter the close-range and long-range attacks at the same time, it is still necessary to recommend the first target virtual prop and the second target virtual prop to the virtual character at the same time. However, since the damage values of close-range and long-range attacks to the virtual character are different, it is necessary to determine the first target virtual prop, the second target virtual prop and the prop priority according to the size of the first damage value and the second damage value. In other words, according to the size of the first damage value and the second damage value, determine which target virtual prop's corresponding game skill control is displayed preferentially on the graphical user interface.
[0119] In a specific implementation, in the above step S304, when the first damage value is greater than the second damage value, the item priority indication prioritizes the recommendation of the first target virtual item; when the first damage value is less than or equal to the second damage value, the item priority indication prioritizes the recommendation of the second target virtual item.
[0120] In this scheme, the first damage value is greater than the second damage value, that is, the damage value of the close-range attack suffered by the virtual character at this time is larger. Therefore, while recommending the first target virtual props and the second target virtual props to the virtual character at the same time, the first target virtual props are recommended first so that the player can control the virtual character to use the first target virtual props to counterattack the attacker who initiates the close-range attack; if the first damage value is less than or equal to the second damage value, that is, the damage value of the long-range attack suffered by the virtual character at this time is larger. Therefore, while recommending the first target virtual props and the second target virtual props to the virtual character at the same time, the second target virtual props are recommended first so that the player can control the virtual character to use the second target virtual props to counterattack the attacker who initiates the long-range attack.
[0121] In the above scheme, when the first target virtual prop and the second target virtual prop are recommended to the virtual character at the same time, the first game skill control corresponding to the first target virtual prop and the second game skill control corresponding to the second target virtual prop are displayed on the graphical user interface at the same time. The virtual prop indicated by the prop priority is displayed first, and the corresponding game skill control is also displayed first on the graphical user interface. For example, the color of the game skill control corresponding to the virtual prop displayed first is more conspicuous, or the icon of the game skill control corresponding to the virtual prop displayed first is larger.
[0122] In the above scheme, if the first damage value is greater than the second damage value, after the player controls the virtual character to use the first target virtual prop to counterattack, if the attacker who launched the close-range attack has not been completely repelled at this time, and the first target virtual prop has entered a skill cooling state, the player can control the virtual character to use the second target virtual prop to attack the attacker who launched the close-range attack; if the first damage value is less than or equal to the second damage value, after the player controls the virtual character to use the second target virtual prop to counterattack, if the attacker who launched the long-range attack has not been completely repelled at this time, and the second target virtual prop has entered a skill cooling state, the player can control the virtual character to move in the moving area on the graphical user interface through the joystick control, and after moving to the attackable range of the first target virtual prop, use the first target virtual prop to attack the attacker who launched the long-range attack.
[0123] In a specific implementation, in the above step S304, the game skill control corresponding to the target virtual prop is displayed on the graphical user interface, including: displaying a first game skill control corresponding to the first target virtual prop and a second game skill control corresponding to the second target virtual prop on the graphical user interface according to the prop priority, wherein the virtual prop indicated by the prop priority is displayed preferentially on the graphical user interface.
[0124] Figure 5 A schematic diagram of preferentially displaying a first game skill control on a graphical user interface provided by an embodiment of the present invention, such as Figure 5 As shown, in this solution, when the virtual character is attacked by close-range and long-range attacks at the same time, the first game skill control and the second game skill control are displayed on the graphical user interface at the same time. Figure 5 In the example, the first game skill control is represented by skill 1, and the second game skill control is represented by skill 2. For example, the first damage value of the virtual character attacked at close range is greater than the second damage value of the virtual character attacked at long range. At this time, in order to keep the virtual character's health value relatively healthy, the virtual character needs to counterattack the attacker who initiates the close range attack. Therefore, the first game skill control is preferentially displayed on the graphical user interface. The first game skill control can be preferentially displayed by highlighting the icon of the first game skill control and non-highlighting the icon of the second game skill control, or by placing the icon of the first game skill control in a prominent position and the icon of the second game skill control in a non-prominent position. The icon of the first game skill control can also be larger than the icon of the second game skill control. It should be noted that the above-mentioned method of preferentially displaying the first game skill control is only for illustrative purposes. In actual applications, any method that can preferentially display the first game skill control is acceptable, and the present invention does not limit it.
[0125] In the above scheme, when the virtual character is attacked by a close-range attack and a long-range attack at the same time, if the second damage value of the long-range attack on the virtual character is greater than the first damage value of the close-range attack, at this time, it is necessary to give priority to displaying the second game skill control on the graphical user interface. The method of giving priority to displaying the second game skill control is the same as Figure 5 The method of displaying the first game skill control first is the same, so I will not repeat it here.
[0126] In a specific implementation, the method further includes: after releasing the virtual prop indicated by the prop priority, preferentially displaying a game skill control corresponding to another virtual prop of the first target virtual prop and the second target virtual prop other than the used virtual prop on the graphical user interface.
[0127] Figure 6 A schematic diagram of the position rotation of the first game skill control and the second game skill control on the graphical user interface provided by an embodiment of the present invention, such as Figure 6As shown, in this scheme, taking the example of the player controlling the virtual character to preferentially use the first target virtual prop, after the player controls the virtual character to use the first target virtual prop to counterattack the enemy target that launches a close-range attack, the first game skill control corresponding to the first target virtual prop shows that the first target virtual prop enters a skill cooling state. At this time, since the first target virtual prop cannot be used, the virtual character needs to use the second target virtual prop to continue to launch an attack. Therefore, the position of the first game skill control corresponding to the first target virtual prop in the skill cooling state and the second game skill control corresponding to the second target virtual prop that has not been used can be rotated, and the icon of the second game skill control can be highlighted to prompt the player that the virtual character can be controlled to use the second target virtual prop to continue to counterattack the enemy target that launches a close-range attack.
[0128] In a specific implementation, the method also includes: setting a first identifier on a first game skill control, wherein the first identifier is used to indicate that the first game skill control is a control corresponding to a virtual prop for performing close-range attacks; and setting a second identifier on a second game skill control, wherein the second identifier is used to indicate that the second game skill control is a control corresponding to a virtual prop for performing long-range attacks.
[0129] In this solution, when the first game skill control and the second game skill control are displayed simultaneously on the graphical user interface, although the two game skill controls can be distinguished by displaying them first, the player is likely to forget or misremember them in a nervous mood. Therefore, in order to facilitate the player to better determine which game skill control corresponds to the virtual prop used to attack close-range enemy targets, a first identifier can be set on the first game skill control and a second identifier can be set on the second game skill control, such as Figure 5 or Figure 6 As shown, the first identifier may be a mark “near” on the first game skill control, and the second identifier may be a mark “far” on the second game skill control.
[0130] In a specific implementation, the attack type of the virtual character is determined according to the attack distance, including: if the attack distance is less than a preset distance threshold, the attack type is determined to be a close-range attack; if the attack distance is greater than or equal to the distance threshold, the attack type is determined to be a long-range attack; if the attack distance includes a first distance and a second distance, and the first distance is greater than the distance threshold, and the second distance is less than or equal to the distance threshold, the attack type is determined to be a close-range attack and a long-range attack.
[0131] In this scheme, when determining the type of attack suffered by the virtual character based on the attack distance, the attack distance can be compared with a preset distance threshold. No matter how many attack initiators (enemy targets) there are, as long as each attack distance suffered by the virtual character is less than the distance threshold, the type of attack suffered by the virtual character is a close-range attack; no matter how many enemy targets there are, as long as each attack distance suffered by the virtual character is greater than or equal to the distance threshold, the type of attack suffered by the virtual character is a long-range attack; no matter how many enemy targets there are, as long as the attack distances suffered by the virtual character are greater than or equal to the distance threshold and less than the distance threshold, the type of attack suffered by the virtual character is a close-range attack and a long-range attack.
[0132] In a specific implementation, the method further includes: displaying a distance modification control on a graphical user interface; and generating a distance modification interface in response to a touch operation on the distance modification control, wherein the distance modification interface is used to modify the distance threshold.
[0133] In this solution, in order to facilitate players to play the game according to their actual needs and habits, a distance modification control can be displayed on the graphical user interface. When the player needs to modify the long distance or close distance, the player can directly open the distance modification interface through the distance modification control on the interface, and modify the distance threshold on the distance modification interface, thereby enabling the player to define the close distance and long distance by himself.
[0134] In a specific implementation, the method also includes: if the health value of the virtual character when attacked is less than or equal to a preset health threshold, then determining a third target virtual prop that the virtual character can select from all virtual props currently possessed by the virtual character, wherein the third target virtual prop is a defense-type prop.
[0135] In this scheme, a blood volume threshold can be set for the blood volume value of the virtual character in advance, and the blood volume threshold can be used as a standard for judging whether the blood volume value of the virtual character is healthy. When the blood volume value of the virtual character is less than or equal to the preset blood volume threshold when being attacked, it means that the virtual character is attacked and the blood volume value is not very healthy. For example, the blood volume value of the virtual character is less than or equal to 30% at this time. If an offensive virtual prop is recommended to the virtual character, even if the player controls the virtual character to use the offensive virtual prop to counterattack, the virtual character will be knocked down due to the small blood volume value. Therefore, it is necessary to recommend a defensive virtual prop to the virtual character.
[0136] In the above scheme, when recommending a defense-type virtual prop to a virtual character, the virtual prop with the best defense effect or the best blood recovery effect among all defense-type virtual props carried by the current virtual character can be retrieved, and the virtual prop is determined as the third target virtual prop, and the third target virtual prop is displayed on the graphical user interface in the form of QTE. Figure 7 A schematic diagram of a game skill control corresponding to a third target virtual prop is displayed on a graphical user interface provided by an embodiment of the present invention, such as Figure 7 As shown, taking the third target virtual item as a blood recovery pack as an example, the game skill control corresponding to the blood recovery pack is displayed on the graphical user interface to remind the player that the virtual character can be controlled to use the blood recovery pack to recover blood.
[0137] In a specific implementation, the virtual props selectable by the virtual character are the most frequently used virtual props among at least two usable virtual props, wherein the attack ranges of at least two usable virtual props are the same, or the defense capabilities of at least two usable virtual props are the same.
[0138] In this scheme, if more than one virtual prop is available for selection when recommending a virtual character, for example, the virtual prop recommended to the virtual character is a first target virtual prop. Since the first target virtual prop is a virtual prop for close-range attack, at this time, if the virtual character carries multiple first target virtual props (for example, a flying knife, a grenade, etc. are all virtual props for close-range attack), the virtual props are recommended based on the frequency of use of the virtual props by the player controlling the virtual character. For example, if the frequency of use of the grenade by the player controlling the virtual character is the highest, the grenade is recommended to the virtual character. The method is the same as above when recommending the second target virtual prop or the third target virtual prop.
[0139] As an optional implementation, if the virtual character controlled by the user is not attacked, no virtual props may be recommended to the virtual character controlled by the player. At this time, the initial interface during the game is displayed on the graphical user interface, and the initial interface displays the default layout in the game. Figure 8 A schematic diagram of an initial interface displayed on a graphical user interface provided by an embodiment of the present invention, such as Figure 8 As shown, the initial interface is provided with basic operation controls, such as movement controls (joystick controls), shooting controls, jumping controls, aiming controls, bullet changing controls, etc.
[0140] The method for using game props provided by the present invention recommends suitable virtual props to players based on different combat situations. Specifically, when the virtual character's health value is relatively healthy, although the virtual character will be hurt, the virtual character can still use offensive virtual props to fight back. Therefore, virtual props for close-range attacks or virtual props for long-range attacks can be recommended to the virtual character controlled by the player, so that the virtual character can fight back; when the virtual character's health value is not very healthy, virtual props for defense are recommended to the virtual character controlled by the player, so that the virtual character can defend. This method can greatly reduce the cognitive burden of novice players on virtual props, reduce the learning cost of the game, and solve the problem of difficulty in using virtual props due to novice players' lack of proficiency in virtual props, so that novice players can easily get started with new games and improve the game experience of novice players.
[0141] Generally speaking, the technical solution provided by the present invention recommends suitable virtual props to a virtual character controlled by a player based on the health value of the virtual character, which is a technical implementation method to ensure that novice players can quickly get started with a new game.
[0142] Fig. 9 A schematic diagram of the structure of a device for using game props provided by an embodiment of the present invention, such as Fig. 9 As shown, the game prop using device 90 includes:
[0143] A processing module 91 and a display module 92, wherein the display module 92 is used to display a graphical user interface, wherein the graphical user interface includes at least part of a game scene and a virtual character, and the virtual character is a character corresponding to the terminal device;
[0144] The processing module 91 is used to obtain the attack distance between the virtual character and the attacker when the virtual character is attacked;
[0145] The processing module 91 is also used to determine a target virtual prop corresponding to the attack distance that the virtual character can select from the virtual props currently possessed by the virtual character;
[0146] The display module 92 is also used to display the game skill controls corresponding to the target virtual props on the graphical user interface;
[0147] The processing module 91 is also used to control the virtual character to use the target virtual prop through the game skill control in response to the touch operation on the game skill control.
[0148] Optionally, the processing module 91 is further used to determine the attacker who attacks the virtual character; when the attacker is within the field of vision of the virtual character, the attack distance at which the virtual character is attacked is obtained.
[0149] Optionally, the processing module 91 is also used to determine the attack type of the virtual character according to the attack distance if the health value of the virtual character when attacked is greater than a preset health threshold, wherein the attack types include long-range attack, close-range attack, and long-range attack and close-range attack; and determine the target virtual props that the virtual character can select according to the attack type.
[0150] Optionally, the processing module 91 is also used to retrieve the attack range of all virtual props currently possessed by the virtual character if the health value of the virtual character when attacked is greater than the health threshold; and determine the target virtual props that the virtual character can select through the attack range and attack distance.
[0151] Optionally, when the virtual character is attacked by a close-range attack, a first target virtual prop that the virtual character can select is determined; when the virtual character is attacked by a long-range attack, a second target virtual prop that the virtual character can select is determined, wherein the attack range of the first target virtual prop is smaller than the attack range of the second target virtual prop.
[0152] Optionally, the processing module 91 is also used to determine a first damage value of a close-range attack on the virtual character and a second damage value of a long-range attack on the virtual character when the attack types are long-range and close-range; determine a first target virtual prop, a second target virtual prop and a prop priority that can be selected by the virtual character based on the first damage value and the second damage value, wherein the prop priority is used to indicate the prop that is preferentially recommended between the first target virtual prop and the second target virtual prop, and the attack range of the first target virtual prop is smaller than the attack range of the second target virtual prop.
[0153] Optionally, when the first damage value is greater than the second damage value, the item priority indication prioritizes the recommendation of the first target virtual item; when the first damage value is less than or equal to the second damage value, the item priority indication prioritizes the recommendation of the second target virtual item.
[0154] Optionally, the processing module 91 is also used to determine the attack type as a close-range attack if the attack distance is less than a preset distance threshold; determine the attack type as a long-range attack if the attack distance is greater than or equal to the distance threshold; and determine the attack type as a long-range attack and a close-range attack if the attack distance includes a first distance and a second distance, and the first distance is greater than the distance threshold and the second distance is less than or equal to the distance threshold.
[0155] Optionally, the display module 92 is further used to display a distance modification control on a graphical user interface; the processing module 91 is further used to generate a distance modification interface in response to a touch operation on the distance modification control, wherein the distance modification interface is used to modify the distance threshold.
[0156] Optionally, the processing module 91 is also used to determine a third target virtual prop that the virtual character can select from all virtual props currently possessed by the virtual character if the health value of the virtual character when attacked is less than or equal to a preset health threshold, wherein the third target virtual prop is a defense-type prop.
[0157] Optionally, the display module 92 is also used to display a first game skill control corresponding to a first target virtual prop and a second game skill control corresponding to a second target virtual prop on a graphical user interface according to the prop priority, wherein the virtual prop indicated by the prop priority is displayed preferentially on the graphical user interface.
[0158] Optionally, the virtual props selectable by the virtual character are the most frequently used virtual props among at least two usable virtual props, wherein the attack ranges of at least two usable virtual props are the same, or the defense capabilities of at least two usable virtual props are the same.
[0159] Optionally, the display module 92 is further configured to preferentially display on the graphical user interface a game skill control corresponding to another virtual prop of the first target virtual prop and the second target virtual prop other than the used virtual prop after the virtual prop indicated by the prop priority is released.
[0160] Optionally, the processing module 91 is also used to set a first identifier on the first game skill control, wherein the first identifier is used to indicate that the first game skill control is a control corresponding to a virtual prop for performing close-range attacks; and to set a second identifier on the second game skill control, wherein the second identifier is used to indicate that the second game skill control is a control corresponding to a virtual prop for performing long-range attacks.
[0161] The game props using device provided in this embodiment is used to execute the game props using method in the aforementioned method embodiment, and its implementation principle and technical effect are similar and will not be described in detail here.
[0162] Fig.10 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. Fig.10 As shown, the terminal device 100 includes:
[0163] Processor 111, memory 112, display 113;
[0164] The memory 112 is used to store programs and data, and the processor 111 calls the program stored in the memory to execute the technical solution of the method for using game props provided in the embodiment shown in the above method.
[0165] In the above terminal device, the memory and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory stores computer-executable instructions for implementing the data access control method, including at least one software function module that can be stored in the memory in the form of software or firmware. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory.
[0166] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instructions. Furthermore, the software programs and modules in the above-mentioned memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
[0167] The processor may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0168] An embodiment of the present application also provides a computer-readable storage medium, which includes a program. When the program is executed by a processor, it is used to implement the technical solution of the method for using game props provided in the method embodiment.
[0169] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for using game props, characterized in that: Providing a graphical user interface through a terminal device, the graphical user interface at least including a portion of a game scene and a virtual character, the virtual character being a character corresponding to the terminal device, the method comprising: When the virtual character is attacked, obtaining an attack distance between the virtual character and the attacker; Determining a target virtual prop corresponding to the attack distance that the virtual character can select from the virtual props currently possessed by the virtual character; Displaying a game skill control corresponding to the target virtual prop on the graphical user interface; In response to a touch operation on the game skill control, controlling the virtual character to use the target virtual item through the game skill control; The step of determining, from the virtual props currently possessed by the virtual character, a target virtual prop that can be selected by the virtual character and corresponds to the attack distance, comprises: If the health value of the virtual character when attacked is greater than a preset health threshold, determining the attack type of the virtual character according to the attack distance, wherein the attack type includes long-range attack, close-range attack, and long-range attack and close-range attack; Determining the target virtual props selectable by the virtual character according to the attack type; Alternatively, if the health value of the virtual character when attacked is greater than a preset health threshold, then the attack ranges of all virtual props currently possessed by the virtual character are retrieved; The target virtual prop selectable by the virtual character is determined according to the attack range and the attack distance.
2. The method according to claim 1, characterized in that Before obtaining the attack distance between the virtual character and the attack initiator, the method further includes: Determining an attacker who attacks the virtual character; When the attack initiator is within the field of vision of the virtual character, the attack distance at which the virtual character is attacked is obtained.
3. The method according to claim 1, characterized in that The step of determining the target virtual prop selectable by the virtual character according to the attack type includes: In a case where the attack type suffered by the virtual character is a close-range attack, determining a first target virtual prop selectable by the virtual character; In the case that the attack type suffered by the virtual character is a long-range attack, a second target virtual prop selectable by the virtual character is determined, wherein the attack range of the first target virtual prop is smaller than the attack range of the second target virtual prop.
4. The method according to claim 1, characterized in that: The step of determining the target virtual prop selectable by the virtual character according to the attack type includes: In the case where the attack type of the virtual character is a long-range attack and a short-range attack, determining a first damage value of the virtual character being attacked by the short-range attack and a second damage value of the virtual character being attacked by the long-range attack; According to the first damage value and the second damage value, determine the first target virtual prop, the second target virtual prop and the prop priority that the virtual character can select, wherein the prop priority is used to indicate the prop that is preferentially recommended between the first target virtual prop and the second target virtual prop, and the attack range of the first target virtual prop is smaller than the attack range of the second target virtual prop.
5. The method according to claim 4, characterized in that When the first damage value is greater than the second damage value, the item priority indicates that the first target virtual item is recommended first; When the first damage value is less than or equal to the second damage value, the item priority indicates that the second target virtual item is recommended first.
6. The method according to any one of claims 1 to 5, characterized in that: The step of determining the attack type suffered by the virtual character according to the attack distance includes: If the attack distance is less than a preset distance threshold, determining the attack type as the close-range attack; If the attack distance is greater than or equal to the distance threshold, determining the attack type as the long-distance attack; If the attack distance includes a first distance and a second distance, and the first distance is greater than the distance threshold, and the second distance is less than or equal to the distance threshold, the attack type is determined to be the long-range attack and the short-range attack.
7. The method according to claim 6, characterized in that The method further comprises: displaying a distance modification control on the graphical user interface; In response to a touch operation on the distance modification control, a distance modification interface is generated, wherein the distance modification interface is used to modify the distance threshold.
8. The method according to claim 1, characterized in that The method further comprises: If the health value of the virtual character when attacked is less than or equal to a preset health threshold, a third target virtual prop selectable by the virtual character is determined among all virtual props currently possessed by the virtual character, wherein the third target virtual prop is a defense-type prop.
9. The method according to claim 4 or 5, characterized in that: The step of displaying the game skill control corresponding to the target virtual prop on the graphical user interface includes: A first game skill control corresponding to the first target virtual prop and a second game skill control corresponding to the second target virtual prop are displayed on the graphical user interface according to the prop priority, wherein the virtual prop indicated by the prop priority is displayed preferentially on the graphical user interface.
10. The method according to any one of claims 1 to 5 or 8, characterized in that: The virtual props selectable by the virtual character are the most frequently used virtual props among at least two available virtual props, wherein the attack ranges of the at least two available virtual props are the same, or the defense capabilities of the at least two available virtual props are the same.
11. The method according to claim 9, characterized in that The method further comprises: After the virtual prop indicated by the prop priority is released, a game skill control corresponding to another virtual prop of the first target virtual prop and the second target virtual prop other than the used virtual prop is preferentially displayed on the graphical user interface.
12. The method according to claim 9, characterized in that The method further comprises: Setting a first identifier on the first game skill control, wherein the first identifier is used to indicate that the first game skill control is a control corresponding to a virtual prop for close-range attack; A second identifier is set on the second game skill control, wherein the second identifier is used to indicate that the second game skill control is a control corresponding to a virtual prop for long-range attack.
13. A device for using game props, characterized in that: include: A processing module and a display module, wherein the display module is used to display a graphical user interface, wherein the graphical user interface includes at least part of a game scene and a virtual character, and the virtual character is a character corresponding to the terminal device; The processing module is used for obtaining the attack distance between the virtual character and the attacker when the virtual character is attacked; The processing module is also used to determine a target virtual prop that the virtual character can select and that corresponds to the attack distance from the virtual props currently possessed by the virtual character; The display module is also used to display the game skill control corresponding to the target virtual prop on the graphical user interface; The processing module is further used to control the virtual character to use the target virtual prop through the game skill control in response to a touch operation on the game skill control; The processing module is further configured to determine the attack type of the virtual character according to the attack distance if the health value of the virtual character when attacked is greater than a preset health threshold, wherein the attack type includes long-range attack, short-range attack, and long-range attack and short-range attack; and determine the target virtual prop that the virtual character can select according to the attack type; The processing module is also used to retrieve the attack range of all virtual props currently possessed by the virtual character if the health value of the virtual character when attacked is greater than a preset health threshold; and determine the target virtual prop that the virtual character can select through the attack range and the attack distance.
14. A terminal device, characterized in that: include: Processor, memory, display; The memory is used to store programs and data, and the processor calls the program stored in the memory to execute the game prop use method according to any one of claims 1 to 12.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for using a game item according to any one of claims 1 to 12 is implemented.
