A method, device and medium for controlling a virtual character in a game
By repairing the second item during the virtual character's movement, the problem of low human-computer interaction efficiency during virtual item repair is solved, and the function of continuing to use other items during the repair process is realized, thus improving the game experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2022-05-06
- Publication Date
- 2026-07-21
AI Technical Summary
In existing technologies, the human-computer interaction efficiency is low during the repair process of virtual props, and virtual characters cannot use other props during the repair process, which affects the game experience.
During the movement of the target virtual character, the first item is used to move to the designated location at the target speed, and the second item is repaired when the repair conditions are met. After the repair is completed, the second item can be used to perform game skills.
It improves the efficiency of virtual item repair and game flexibility, enhances human-computer interaction efficiency, and allows other items to continue to be used during the repair process.
Smart Images

Figure CN117046098B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of game technology, and more specifically, to a method, control device, equipment, and medium for controlling virtual characters in a game. Background Technology
[0002] During gameplay, to enrich the player's experience, players can control their virtual characters to use different virtual items, enabling the characters to perform various game skills. However, virtual items are not permanent; their durability (i.e., their lifespan) may gradually decrease over time or during combat. Before a virtual item with depleted durability can be used again, its durability needs to be repaired.
[0003] Currently, if virtual items are to be repaired, the virtual character needs to repair them in a relatively hidden place in the virtual scene to avoid being attacked by hostile virtual characters. Furthermore, the virtual item can only be used again after the repair time has been long enough (i.e., the virtual item is fully repaired). Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a method, device, equipment and medium for controlling virtual characters in games, in order to solve the problem of low human-computer interaction efficiency in the process of repairing virtual props in the prior art.
[0005] In a first aspect, embodiments of this application provide a method for controlling a virtual character in a game, the game including a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control method includes:
[0006] In response to a movement operation on the target virtual character, control the target virtual character to move at a preset speed;
[0007] In response to a control operation on the first prop / equipment, the target virtual character is controlled to move to a designated location at a target speed using the first prop / equipment, wherein the target speed is greater than the preset speed, and the designated location is a location determined according to the control operation;
[0008] During the process of controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, the second prop equipment is repaired in response to the second prop equipment meeting the repair conditions.
[0009] Optionally, the repair of the second item / equipment is completed when the repair time reaches the corresponding repair time of the second item / equipment.
[0010] Optionally, when the target virtual character reaches the designated location, the repair of the second item / equipment is completed.
[0011] Optionally, the method further includes:
[0012] Upon completion of the repair of the second item / equipment and the movement of the target virtual character to the designated location, the player uses the second item / equipment to execute game skills.
[0013] Optionally, the response is a control operation on the first prop / equipment, controlling the target virtual character to move to a designated location at a target speed using the first prop / equipment, including:
[0014] In response to a control operation on the first prop, the first prop generates a movement trajectory based on the current position of the target virtual character and the specified position of the target object in the virtual scene, and displays the trajectory markers corresponding to the movement trajectory.
[0015] The target virtual character is controlled to move at a target speed along the trajectory marker towards a designated position of the target target object in the virtual scene.
[0016] Optionally, during the process of controlling the target virtual character to move to a designated location at a target speed using the first prop / equipment, repairing the second prop / equipment in response to the second prop / equipment meeting the repair conditions includes:
[0017] During the process of controlling the target virtual character to move to a designated location at a target speed using the first item, if the durability of the second item is lower than the preset durability, the second item will be repaired.
[0018] Optionally, the second item / equipment that meets the repair conditions includes multiple items, and each second item / equipment has a corresponding repair time; repairing the second item / equipment includes:
[0019] Based on the attribute information and / or user habit information of the second item, determine the repair order of multiple second items, and repair the second items according to the repair order.
[0020] Optionally, the user habit information includes any one or more of the following:
[0021] The frequency of use of the second item / equipment and the duration of use of the second item / equipment;
[0022] The attribute information of the second item includes any one or more of the following:
[0023] The durability, level, attack power, and defense power of the second item / equipment.
[0024] Optionally, during the process of controlling the target virtual character to move to a designated location at a target speed using the first prop / equipment, repairing the second prop / equipment in response to the second prop / equipment meeting the repair conditions includes:
[0025] During the process of controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, in response to the second prop equipment meeting the repair conditions, the second prop equipment is repaired and the repair is completed.
[0026] Optionally, before repairing the second item / equipment in response to the second item / equipment meeting the repair conditions, the control method further includes:
[0027] In response to the second item's durability value being lower than the preset durability value, a low durability warning message is displayed within a specified range on the target virtual character;
[0028] In response to the first control operation for the first item / equipment, the low durability warning message is updated to a repair warning message;
[0029] Once the second item / equipment has been repaired, the maintenance notification message will end.
[0030] Optionally, the response that the second item / equipment meets the repair conditions and the repair of the second item / equipment includes:
[0031] If the second item meets the repair conditions, determine whether the target virtual character is equipped with the specified repair item.
[0032] If the target virtual character is equipped with a specified repair item, then the second item equipment is repaired using the specified repair item;
[0033] If the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message will be displayed in the graphical user interface.
[0034] Optionally, controlling the target virtual character to move at a target speed along the trajectory marker towards the designated position of the target target object in the virtual scene includes:
[0035] The system controls the target virtual character to move along the trajectory markers towards the target target object at a specified position in the virtual scene with a movement posture and target speed; the movement posture is determined based on scene information of the current position of the target virtual character in the virtual scene.
[0036] Secondly, embodiments of this application provide a method for controlling a virtual character in a game, the game including a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control method includes:
[0037] In response to a repair operation on the second item / equipment, the second item / equipment is repaired; wherein, while the second item / equipment is in a repair state, the target virtual character corresponds to a maximum repaired movement speed;
[0038] When the second item is in a repair state, in response to a control operation on the first item, the target virtual character is controlled to use the first item to move to a designated location at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
[0039] Optionally, when the second item / equipment is in a repair state, in response to a control operation on the first item / equipment, the target virtual character is controlled to move to a designated location using the first item / equipment at a target speed greater than the maximum repair movement speed, including:
[0040] When the second item is in a repair state, respond to the control operation on the first item, and determine the specified location that the target virtual character can reach using the first item based on the current durability of the second item.
[0041] The target virtual character is controlled to move to the designated location at a target speed greater than the maximum repair movement speed using the first item.
[0042] Optionally, based on the current durability of the second item, determining the designated location that the target virtual character can reach using the first item includes:
[0043] If the current durability of the second item is less than the first preset durability, then the designated location is far away from the hostile virtual character. The designated location is the farthest location that the target virtual character can reach from the hostile virtual character by using the first item.
[0044] If the current durability of the second item is greater than or equal to the first preset durability, then the designated location is close to the enemy virtual character. The designated location is the closest location that the target virtual character can reach to the enemy virtual character using the first item.
[0045] Optionally, before responding to a repair operation for the second item / equipment, the control method further includes:
[0046] In response to the second item's durability value being lower than the second preset durability value, a low durability warning message is displayed within a specified range on the target virtual character;
[0047] In response to a repair operation on the second item / equipment, the low durability warning message is updated to a repair warning message;
[0048] Once the repair of the second item / equipment is completed, the repair prompt message will stop being displayed.
[0049] Optionally, in response to a repair operation for the second item / equipment, the second item / equipment is repaired, including:
[0050] In response to the repair operation for the second item equipment, if the target virtual character is equipped with a specified repair item, the specified repair item is used to repair the second item equipment;
[0051] In response to the repair operation for the second item, if the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message will be displayed in the graphical user interface.
[0052] Optionally, the target virtual character is equipped with multiple first item equipment, and each first item equipment has a corresponding repair time; in response to a repair operation for the second item equipment, the second item equipment is repaired, including:
[0053] In response to a repair operation for the second item / equipment, based on the attribute information and / or user habit information of the second item / equipment, a repair order for multiple second item / equipment is determined, and the second item / equipment is repaired according to the repair order.
[0054] Optionally, the user habit information includes any one or two of the following:
[0055] The frequency of use of the second item / equipment and the duration of use of the second item / equipment;
[0056] The attribute information of the second item includes any one or more of the following:
[0057] The durability, level, attack power, and defense power of the second item / equipment.
[0058] Optionally, when the second item / equipment is in a repair state, in response to a control operation on the first item / equipment, the target virtual character is controlled to move to a designated location using the first item / equipment at a target speed greater than the maximum repair movement speed, including:
[0059] When the second prop / equipment is in a repair state, respond to the control operation on the first prop / equipment and determine the movement posture of the target virtual character based on the scene information in the virtual scene;
[0060] The target virtual character is controlled to move to a designated location using the first item equipment at a target speed greater than the maximum repair movement speed, and in a moving posture.
[0061] Thirdly, embodiments of this application provide a control device for a virtual character in a game, the game including a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control device includes:
[0062] The first movement module is used to respond to movement operations on the target virtual character and control the target virtual character to move at a preset speed;
[0063] The second movement module is used to respond to the control operation on the first prop equipment, and control the target virtual character to move to a specified position at a target speed using the first prop equipment, wherein the target speed is greater than the preset speed, and the specified position is a position determined according to the control operation;
[0064] The repair module is used to repair the second item when the target virtual character moves to a designated location at a target speed using the first item.
[0065] Fourthly, embodiments of this application provide a control device for a virtual character in a game, the game including a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control device includes:
[0066] The repair module is used to respond to the repair operation for the second item / equipment and repair the second item / equipment; wherein, when the second item / equipment is in the repair state, the target virtual character corresponds to a maximum repair movement speed;
[0067] The movement module is used to respond to a control operation on the first item when the second item is in a repair state, and control the target virtual character to move to a designated location using the first item at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
[0068] Fifthly, this application provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method.
[0069] Sixthly, this application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described method. In the embodiment provided in the first aspect of this application, the method for controlling a virtual character in a game firstly controls the target virtual character to move at a preset speed in response to a movement operation on the target virtual character; then, in response to a control operation on a first item / equipment, controls the target virtual character to move to a designated location at a target speed using the first item / equipment, wherein the target speed is greater than the preset speed, and the designated location is a location determined according to the control operation; finally, during the process of controlling the target virtual character to move to the designated location at the target speed using the first item / equipment, the second item / equipment is repaired in response to the second item / equipment meeting repair conditions.
[0070] In some implementations, a second item that meets the repair conditions can be repaired while the first item is being used for movement. This way, when the target virtual character reaches the designated location, the repaired second item can be used. By adding the game mechanism of repairing the second item while using the first item, the repair efficiency of the second item is improved, the flexibility of the entire game is increased, and thus the efficiency of human-computer interaction is improved.
[0071] The method for controlling a virtual character in a game, as provided in the second aspect of this application, firstly, in response to a repair operation on a second item / equipment, repairs the second item / equipment; wherein, when the second item / equipment is in a repair state, the target virtual character corresponds to a maximum repair movement speed; secondly, when the second item / equipment is in a repair state, in response to a control operation on a first item / equipment, the target virtual character is controlled to use the first item / equipment to move to a designated location at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
[0072] In some embodiments, during the repair of the second item, the first item can be used to move at a target speed greater than the maximum repair speed. In other words, a game mechanism of using the first item is added during the repair of the second item. Without affecting the repair efficiency of the second item, the interaction methods for specific scenes in the repair state are enriched, the flexibility of the entire game is improved, and thus the efficiency of human-computer interaction is improved.
[0073] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0074] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0075] Figure 1 A flowchart illustrating a method for controlling a virtual character in a game, provided as an embodiment of this application;
[0076] Figure 2 A schematic diagram of a first graphical user interface provided in an embodiment of this application;
[0077] Figure 3 This is a schematic diagram of a second graphical user interface provided in an embodiment of this application;
[0078] Figure 4 A schematic diagram of the structure of a control device for a virtual character in a game, provided in an embodiment of this application;
[0079] Figure 5 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0080] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0081] Currently, during the repair process of virtual items in virtual scenes, players typically either stand still while repairing the item, or move at a normal speed while repairing it. Furthermore, the virtual item cannot be used while being repaired; it can only be used after the repair is complete. During the repair process, the virtual character also cannot use other virtual items.
[0082] Based on the deficiencies in the existing technology, this application also provides a method for controlling virtual characters in games, such as... Figure 1 As shown, the game includes a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control method includes:
[0083] S101, in response to the movement operation of the target virtual character, control the target virtual character to move at a preset speed;
[0084] S102, in response to a control operation on the first prop / equipment, control the target virtual character to move to a designated location at a target speed using the first prop / equipment, wherein the target speed is greater than the preset speed, and the designated location is a location determined according to the control operation;
[0085] S103, during the process of controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, in response to the second prop equipment meeting the repair conditions, the second prop equipment is repaired.
[0086] The method for controlling virtual characters in a game as described in this application can also run on a terminal device or a server. The terminal device can be a local terminal device. When the method for controlling virtual characters in a game runs on a server, it can be a cloud gaming solution.
[0087] In one optional implementation, cloud gaming refers to a gaming method based on cloud computing. In cloud gaming, the game program and the game screen are separate entities. The storage and execution of message sending methods within the game are completed on the cloud gaming server. The terminal device is used for data reception, transmission, and game screen display. For example, the terminal device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, PDA, or game console; however, the terminal device processing game data is the cloud gaming server in the cloud. During gameplay, the player uses the terminal device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the commands, encodes and compresses game screen data, returns it to the terminal device via the network, and finally, the terminal device decodes and outputs the game screen.
[0088] In an optional implementation, the terminal device can be a local terminal device. The local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal device's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen and a processor. The display screen is used to display the GUI, which includes a portion of a virtual scene. The processor is used to run the game, generate the GUI, and control the display of the GUI on the display screen. The game in this application includes a virtual scene and a target virtual character controlled by the player located within the virtual scene. The terminal device or cloud gaming can respond to control over the target virtual character, causing the target virtual character to perform virtual actions in the virtual scene, such as moving within the virtual scene or releasing skills. The virtual scene can include any one or more of the following game elements: terrain, rocks, flowers, rivers, buildings, virtual objects, game props, etc. Generally, a virtual camera is set up in the virtual scene, and the game screen displayed on the GUI is a portion of the virtual scene content captured by the virtual camera. For example, in a first-person game, the virtual camera can be positioned above the head (e.g., at the eye level) of the player-controlled target virtual character. The virtual camera moves with the target virtual character, and its orientation rotates with the target virtual character's rotation. Therefore, the game screen displayed on the graphical user interface is a portion of the virtual scene within a preset area in front of the target virtual character. Similarly, in a third-person game, the virtual camera can be positioned directly above or slightly above and behind the player-controlled target virtual character. Therefore, the game screen displayed on the graphical user interface includes a portion of the virtual scene, including the first virtual character. If an account for the target virtual character is logged into on the terminal device or cloud gaming platform, then the target virtual character is controlled by the terminal device or cloud gaming platform. A virtual object refers to a controllable dynamic object in a virtual scene. Optionally, this dynamic object can be a virtual character, a virtual animal, an anime character, etc. The target virtual character is a character controlled by the player through a terminal device, or an artificial intelligence (AI) trained and set up for combat in a virtual environment, or a non-player character (NPC) set up for combat in a virtual scene. Optionally, the target virtual character is a virtual character competing in a virtual scene.
[0089] The first and second items mentioned in this application are both virtual items in the game. The first item allows the target virtual character to perform actions such as teleporting or quickly dodging. For example, the first item could be a grappling hook, which can grab items, move to a target location, or bind to and launch virtual items. The grappling hook can also be called a grappling hook, hook item, grappling hook equipment, or grappling hook item. The second item is a virtual item whose durability is consumed during gameplay. Durability represents the second item's lifespan; the higher the durability, the longer it can be used, and vice versa. The durability of the second item may decrease over time or during the target virtual character's use of it. Using the second item includes any of the following: attacking enemy virtual characters or increasing the combat power of oneself or teammates.
[0090] The method for controlling virtual characters in the game in this application embodiment can be applied to real-time combat mode. In real-time combat mode, players control the target virtual character to move in the virtual scene through real-time commands. During the battle, players can control the target virtual character to fight according to their own ideas.
[0091] S101, in response to the movement operation of the target virtual character, control the target virtual character to move at a preset speed.
[0092] In step S101 above, the movement operation is used to control the target virtual character to move within the virtual scene according to conventional movement methods. The movement operation is applied to the movement control area in the graphical user interface. Conventional movement methods include any of the following: crawling, walking, running, etc. The preset movement speed is the speed at which the target virtual character moves according to conventional movement methods.
[0093] In practice, when a player performs a movement operation on a target virtual character, the player first determines the target virtual character's current normal movement mode, and then controls the target virtual character to move in the virtual scene at a preset speed according to the movement operation and the normal movement mode.
[0094] S102, in response to a control operation on the first prop / equipment, control the target virtual character to move to a designated location at a target speed using the first prop / equipment, wherein the target speed is greater than the preset speed, and the designated location is a location determined according to the control operation.
[0095] In step S102 above, the control operation is the operation of controlling the target virtual character to use the first item / equipment. The control operation can be a touch operation or a non-touch operation. When the control operation is a non-touch operation, it can be implemented by acquiring a preset image through the image acquisition module in the terminal device. When the preset image is acquired, the target virtual character will be controlled to use the first item / equipment. When the control operation is a touch operation, it can be an operation corresponding to a preset gesture or an operation corresponding to a preset control. When the control operation is an operation corresponding to a preset gesture, it can be an operation of making a preset graphic in the graphical user interface through a touch medium (such as a finger). The preset graphic can be any of the following graphics: "V" character, circle, triangle, etc. When the control operation is an operation corresponding to a preset control, it is generally a click operation, long press operation, hard press operation, etc. The preset control used to control the first item / equipment will be displayed in the graphical user interface. For example, the area corresponding to the preset control will display an icon representing the first item / equipment. By clicking the preset control, the first item / equipment can be controlled. The first item allows the target virtual character to move quickly within the virtual environment. Therefore, when the target virtual character uses the first item, they can move at a relatively fast speed, the target speed, which is greater than the maximum speed corresponding to the preset speed. Using the first item also requires controlling the character to determine a specific location, which is the position the target virtual character can reach using the first item.
[0096] In practice, performing control operations on the first item or equipment will control the target virtual character to move towards the designated location at the target speed using the first item or equipment.
[0097] S103, during the process of controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, in response to the second prop equipment meeting the repair conditions, the second prop equipment is repaired.
[0098] In step S103 above, responding to the second item / equipment meeting the repair condition includes the following two methods: when the durability of the second item / equipment is lower than a preset durability value, the repair condition of the second item / equipment is met; or when the player triggers a repair operation, the repair condition of the second item / equipment is met. The repair operation is used to repair the second item / equipment, that is, to increase the current durability value of the second item / equipment. The repair operation can be an operation targeting a specified control, or an operation in a graphical user interface using a touch medium (such as a finger) to make a preset graphic. The preset graphic can be any of the following graphics: a "V" character, a circle, a triangle, etc. When both the control operation and the repair operation are operations corresponding to preset gestures, the preset graphics corresponding to the control operation and the repair operation are different. For example, if the preset graphic corresponding to the control operation is a "V" character, then the preset graphic corresponding to the repair operation is a circle.
[0099] In practice, when the target virtual character uses the first item to move towards a designated location at a target speed in the virtual scene, the second item will be repaired during the character's movement, provided the repair conditions for the second item are met. In other words, a game mechanism for repairing the second item is added during the use of the first item, which improves the repair efficiency of the second item, increases the overall game flexibility, and ultimately enhances human-computer interaction efficiency.
[0100] The embodiments provided in this application, through the above three steps, can repair the second item / equipment that meets the repair conditions while controlling the target virtual character to move towards the designated location using the first item / equipment. In this way, when the target virtual character reaches the designated location, the repaired second item / equipment can be used. By adding the game mechanism of repairing the second item / equipment during the use of the first item / equipment, the repair efficiency of the second item / equipment is improved, the flexibility of the entire game is increased, and thus the efficiency of human-computer interaction is improved.
[0101] In an optional implementation, the target virtual character may have multiple second items that meet the repair conditions. Each second item has a corresponding repair time, which is the length of time required for the second item to complete the repair. During the repair process, the repair of the second item is completed only when the length of the repair time reaches the repair time corresponding to that second item.
[0102] In an optional implementation, the method includes: step 1031, when the time for repairing the second item reaches the corresponding repair time of the second item, the repair of the second item is completed.
[0103] In step 1031 above, when repairing the second item, the repair of the second item can be completed when the repair time reaches the preset repair time of the second item. That is, the repair deadline for the second item is that the repair time meets the corresponding repair time of the second item.
[0104] In addition to the repair time, the following scheme can also be used as the deadline for repairing the second item / equipment. That is, in the optional implementation, it includes:
[0105] Step 1032: When the target virtual character arrives at the designated location, the repair of the second item / equipment is completed.
[0106] In step 1032 above, during the process of controlling the target virtual character to move towards the designated location at the target speed using the first item, if the repair conditions for the second item are met, the second item will be repaired immediately. To allow the target virtual character to use the repaired second item as quickly as possible, the repair will be completed when the target virtual character reaches the designated location using the first item. This way, after using the first item, the target virtual character can quickly use the second item, improving the efficiency of using the second item and enhancing the human-computer interaction efficiency in the game. Of course, the repair of the second item can be completed even faster; that is, the repair can be instantaneous. For example, if the shortest time to use the first item is 1 second, the repair time for the second item can be set to 1 second when the target virtual character repairs the second item while using the first item.
[0107] When a pre-set repair time is used as the repair deadline for the second item, if the repair time for the second item exceeds the time taken to reach the designated location using the first item, it's possible that the second item will be repaired while the target virtual character is moving using the first item. This means that the second item might not be fully repaired by the time the target virtual character has reached the designated location using the first item. Consequently, even if the target virtual character reaches the designated location, they cannot use the second item, reducing its efficiency and human-computer interaction efficiency. By repairing the second item while the target virtual character is using the first item, and setting the repair deadline as the target virtual character reaching the designated location, the repair is completed, and the second item can be used immediately upon arrival. This improves the efficiency of the second item's use and enhances human-computer interaction efficiency in the game.
[0108] Repairing the second item / equipment is to enable its better use. Therefore, after repairing the second item / equipment, it can be used to execute corresponding game skills. In other words, the control method also includes:
[0109] Step 104: In response to the completion of the repair of the second item / equipment and the target virtual character moving to the designated location, the second item / equipment is used to execute game skills.
[0110] In step 104 above, game skills are the skills that can be achieved when using the second item, such as attacking enemies, healing oneself or teammates, etc.
[0111] In practice, once the target virtual character reaches the designated location and the second item is repaired, the use of the second item is immediately triggered, which means using the second item to execute the corresponding game skill. This increases the triggering speed of the second item, eliminating the need for players to perform a separate triggering operation to use the second item, thus improving the efficiency of human-computer interaction.
[0112] This application provides a detailed description of the use of the first tool / equipment, that is, step S102 includes:
[0113] Step 1021: In response to the control operation on the first prop equipment, the first prop equipment is triggered to generate a movement trajectory based on the current position of the target virtual character and the specified position of the target aiming object in the virtual scene, and the trajectory marker corresponding to the movement trajectory is displayed.
[0114] Step 1022: Control the target virtual character to move at a target speed along the trajectory marker to the designated position of the target target object in the virtual scene.
[0115] In steps 1021 and 1022 above, the movement trajectory consists of the locations the target virtual character needs to traverse to move from its current position to a designated position using the first item / equipment. Trajectory markers are used to mark the movement trajectory in the virtual scene. These markers are displayed in the graphical user interface when the first item / equipment is used, indicating to the player the designated position that the target virtual character can reach and the locations it needs to traverse using the first item / equipment. The trajectory markers can be guide lines or multiple identifiers with preset intervals. The target aiming object is the object aimed at when the designated position is determined using the first item / equipment; the designated position is located on the target aiming object.
[0116] In practice, when controlling the first item, the system immediately determines the location of the target being aimed at. Based on the target character's current location and the designated location, it determines the target character's upcoming movement trajectory, which is displayed as a marker. This marker indicates the target character's upcoming path and destination. If the player is not satisfied with the trajectory, they can adjust it before using the first item by switching to an adjustment mode. Once the designated location is determined, the system moves the target character at the target speed along the marker towards the target location, thus achieving the goal of using the first item to move to the designated location.
[0117] As described in step S103 above, during the process of controlling the target virtual character to move towards a designated location at a target speed using the first item / equipment, the repair of the second item / equipment can be initiated by the player or automatically triggered. This application provides a detailed explanation of the automatically triggered scenario. Step S103 includes:
[0118] Step 1033: During the process of controlling the target virtual character to move to the designated location at the target speed using the first prop equipment, if the durability of the second prop equipment is lower than the preset durability value, then the second prop equipment is repaired.
[0119] In step 1033 above, while controlling the target virtual character to move to a designated location at a target speed using the first item, the durability of the second item is monitored in real time. If the durability of the second item is detected to be lower than a preset value, it indicates that the second item needs to be repaired, and repair will be triggered. This method of repairing the second item does not require the player to actively trigger it; it is automatically repaired whenever the durability of the second item is low, and it is done automatically while the target virtual character is moving using the first item. This reduces the operation process of repairing the second item, improves the repair efficiency of the item, and thus improves the human-computer interaction efficiency in the game.
[0120] In an optional implementation, the target virtual character may possess multiple second items that meet the repair conditions. Each second item has a corresponding repair time, and since the player wants to repair multiple second items, and different second items have different effects, the order in which to repair the first item needs careful consideration. That is, step S103 includes:
[0121] Step 1034: Determine the repair order of multiple second items based on the attribute information and / or user habit information of the second items, and repair the second items according to the repair order.
[0122] In step 1034 above, the user habit information of the player controlling the target virtual character includes any one or two of the following: the frequency of use of the second item / equipment and the duration of use of the second item / equipment; the attribute information of the second item / equipment includes any one or more of the following: the durability of the second item / equipment, the level of the second item / equipment, the attack power of the second item / equipment, and the defense power of the second item / equipment. The durability of the second item / equipment represents its durability; a higher durability value means a longer usage time, and a lower durability value means a shorter usage time. The defense power of the second item / equipment represents its defensive capabilities during combat; a higher defense power means the item can withstand more attacks, providing better protection for the target virtual character, while a lower defense power means it can withstand fewer attacks, weakening its protection. The attack power of the second item / equipment represents its offensive capabilities during combat; a higher attack power means greater damage to the enemy, and a lower attack power means less damage to the enemy. User habit information of the player controlling the target virtual character better reflects the player's preference for each secondary item; the more a player likes an item, the more flexibly they control it. The attribute information of the secondary item better reflects its repair progress; the lower the attribute information, the slower the repair progress.
[0123] In practice, the order of repairing the second item can be determined solely based on its attribute information, solely based on the user habits of the player controlling the target virtual character, or a combination of both. If only the user habits are considered, the first item repaired will be the one the player uses most frequently, reducing damage to the target virtual character in subsequent battles. If only the attribute information is considered, the first item repaired will have the shortest repair time, allowing the player to quickly enter combat and further reducing damage. If both attribute information and user habits are considered, the first item repaired will have a shorter repair time and better suit the player's preferences, improving combat efficiency.
[0124] In some games, repairing items requires using specific items, which is step S103, including:
[0125] Step 1035: In response to the second item meeting the repair conditions, determine whether the target virtual character is equipped with the specified repair item;
[0126] Step 1036: If the target virtual character is equipped with a specified repair item, then the specified repair item is used to repair the target item;
[0127] Step 1037: If the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message will be displayed in the graphical user interface.
[0128] In steps 1035 to 1037 above, the designated repair item is used to increase the durability of the target item. There are multiple ways to obtain the designated repair item, including: the target virtual character picking it up in the virtual scene, obtaining it from other virtual characters, purchasing it from the item shop, etc.
[0129] In practice, once the second item meets the repair conditions, it will check whether the target virtual character is equipped with the specified repair item. If the target virtual character is equipped with the specified repair item, the second item will be repaired using the specified repair item, provided the repair conditions are met. If the target virtual character is not equipped with the specified repair item, a message indicating that repair is currently impossible will be displayed in the graphical user interface, allowing the player to understand the current repair progress and quickly find the specified repair item.
[0130] In an optional implementation, the target virtual character possesses multiple second items, and multiple second items may meet the repair conditions. If these second items are not repaired in time, they may become unusable during combat, leading to the target virtual character being attacked by enemy virtual characters. Therefore, to ensure timely repair of second items that meet the repair conditions, a prompt can be given to the player in the graphical user interface. Thus, the control method of this application further includes:
[0131] Step 105: In response to the second item's equipment having a durability value lower than a preset durability value, display a low durability warning message within a specified range on the target virtual character;
[0132] Step 106: During the repair process of the second prop equipment, update the low durability warning information to a repair warning information;
[0133] Step 107: Once the second item / equipment has been repaired, the display of the repair prompt information will end.
[0134] In step 105 above, the preset durability threshold is pre-set and used to determine whether the second item meets the repair conditions. The low durability warning message is used to indicate that the target virtual character possesses a second item whose durability meets the repair conditions. The low durability warning message is displayed in the graphical user interface and can include any one or more of the following: identification information of the second item that meets the repair conditions (which can be a text label or an image label), the durability value of the second item that meets the repair conditions, etc. The durability value of the second item that meets the repair conditions can be displayed in any of the following forms: icon, progress bar, text, etc. Furthermore, based on the above forms, the degree of highlighting can also vary according to the different durability values. For example, the higher the durability value, the darker the color of the icon representing the durability value; the lower the durability value, the lighter the color of the icon representing the durability value.
[0135] In practice, if the durability of the second item is lower than the second preset durability value, it means that the second item equipped by the target virtual character meets the repair conditions. In this case, a low durability warning message will be displayed within a specified range of the target virtual character (such as an area determined according to a preset distance threshold, for example, displaying the low durability warning message above the target virtual character's head). This allows the player to know in a timely manner that the target virtual character has a second item that needs repair while controlling the target virtual character, so that the player can repair the second item as soon as possible, thus improving the repair efficiency of the second item.
[0136] In step 106 above, the maintenance prompt information is used to indicate that the second item is under maintenance. The maintenance information can include any of the following: icons, progress bars, text, etc. Furthermore, based on the above format, the degree of highlighting can also vary according to the different durability values. For example, the higher the durability value, the darker the color of the icon representing the durability value, and the lower the durability value, the lighter the color of the icon representing the durability value.
[0137] In practice, during the repair process of the second item / equipment, it remains under repair until the repair is complete. Therefore, to reduce the need for players to repeatedly perform repair operations on the second item / equipment, a repair notification will be displayed within a designated area of the target virtual character. This notification will only be removed once the repair of the second item / equipment is finished, at which point step 107 will be executed.
[0138] During the process of a player controlling a target virtual character to move within a virtual scene, different movement postures correspond to different combat effects. For example, if an enemy virtual character is attacking the target virtual character, regardless of whether the target virtual character moves towards or away from the enemy virtual character, the attack area corresponding to the target virtual character's standing posture will be larger than the attack area corresponding to the sliding posture. Therefore, in different virtual scenes, the target virtual character needs to adjust its movement posture when moving. Step 1022 includes:
[0139] Step 10221: The target virtual character is controlled to move along the trajectory marker towards the designated position of the target target object in the virtual scene with a movement posture and target speed; the movement posture is determined based on the scene information of the current position of the target virtual character in the virtual scene.
[0140] In step 10221 above, movement posture includes sliding posture, standing posture, jumping posture, etc. Scene information includes any one of the following: combat information, obstacle information, weather information, etc. Combat information indicates whether the situation is under attack. Obstacle information includes the location information of obstacles. Weather information includes wind direction, etc.
[0141] In practice, the movement posture of the target virtual character varies depending on the scenario. If the target virtual character is currently standing and under attack, its movement posture needs to be adjusted to a sliding posture to reduce the attack area and thus reduce damage. If the target virtual character is currently standing and the virtual scene is windy, its movement posture needs to be adjusted to a sliding posture to reduce the area exposed to the wind and thus increase its movement speed. If the target virtual character is currently standing and the location of obstacles in the virtual scene is known, its movement posture needs to be adjusted to a jumping posture based on the obstacle location information to reduce the risk of being blocked by obstacles and thus increase its movement speed. After determining the target virtual character's movement posture, during the process of controlling the target virtual character's movement, the target virtual character will move within the determined movement posture and in a target movement state that meets preset movement conditions.
[0142] Based on the deficiencies in the existing technology, this application also provides another method for controlling a virtual character in a game, wherein the game includes a target virtual character controlled by a player, and the target virtual character is equipped with a first item and a second item; the control method includes:
[0143] Step 201: In response to the repair operation for the second item / equipment, repair the second item / equipment; wherein, when the second item / equipment is in the repair state, the target virtual character corresponds to a maximum repair movement speed;
[0144] Step 202: When the second item is in a repair state, respond to the control operation for the first item by controlling the target virtual character to move to a designated location using the first item at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
[0145] The method for controlling virtual characters in a game, as described in this application, can run on a terminal device or a server. The terminal device can be a local terminal device. When the method for controlling virtual characters in a game runs on a server, it can be a cloud gaming solution.
[0146] In one optional implementation, cloud gaming refers to a gaming method based on cloud computing. In cloud gaming, the game program and the game screen are separate entities. The storage and execution of message sending methods within the game are completed on the cloud gaming server. The terminal device is used for data reception, transmission, and game screen display. For example, the terminal device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, PDA, or game console; however, the terminal device processing game data is the cloud gaming server in the cloud. During gameplay, the player uses the terminal device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the commands, encodes and compresses game screen data, returns it to the terminal device via the network, and finally, the terminal device decodes and outputs the game screen.
[0147] In an alternative implementation, the terminal device can be a local terminal device. The local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal device's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes a portion of a virtual scene, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0148] The game described in this application includes a virtual scene and a target virtual character controlled by the player within that virtual scene. The terminal device or cloud gaming can respond to control over the first virtual character, causing the target virtual character to perform virtual actions within the virtual scene, such as moving or releasing skills. The virtual scene may include any one or more of the following game elements: terrain, rocks, flowers, rivers, buildings, virtual objects, game items, etc. Generally, a virtual camera is set up in the virtual scene, and the game screen displayed on the graphical user interface is a portion of the virtual scene content captured by the virtual camera. For example, in a first-person game, the virtual camera can be positioned above the head (e.g., at the eye position) of the player-controlled virtual character. The virtual camera moves with the movement of the first virtual character, and its orientation rotates with the rotation of the first virtual character. Therefore, the game screen presented on the graphical user interface is a portion of the virtual scene within a preset range in front of the target virtual character. Similarly, in a third-person game, the virtual camera can be positioned directly above or slightly above and behind the player-controlled target virtual character. Therefore, the game screen presented on the graphical user interface includes a portion of the virtual scene including the target virtual character. If an account with the target virtual character is logged into on a terminal device or cloud gaming platform, then the target virtual character is controlled by the terminal device or cloud gaming platform. A virtual object refers to a dynamic object that can be controlled within a virtual scene. Optionally, this dynamic object can be a virtual character, a virtual animal, an anime character, etc. The target virtual character is a character controlled by the player through a terminal device, or an artificial intelligence (AI) trained and set up for combat in a virtual environment, or a non-player character (NPC) set up for combat in a virtual scene. Optionally, the target virtual character is a virtual character competing in a virtual scene.
[0149] The first and second items mentioned in this application are both virtual items in the game. The first item allows the target virtual character to perform actions such as teleporting or quickly dodging. For example, the first item could be a grappling hook, which can grab items, move to a target location, or bind to and launch virtual items. The grappling hook can also be called a grappling hook, hook item, grappling hook equipment, or grappling hook item. The second item is a virtual item whose durability is consumed during gameplay. Durability represents the second item's lifespan; the higher the durability, the longer it can be used, and vice versa. The durability of the second item may decrease over time or during the target virtual character's use of it. Using the second item includes any of the following: attacking enemy virtual characters or increasing the combat power of oneself or teammates. The method for controlling virtual characters in the game in this application embodiment can be applied to real-time combat mode. In real-time combat mode, players control the target virtual character to move in the virtual scene through real-time commands. During the battle, players can control the target virtual character to fight according to their own ideas.
[0150] Step 201: In response to the repair operation for the second item / equipment, repair the second item / equipment; wherein, when the second item / equipment is in the repair state, the target virtual character corresponds to a maximum repair movement speed.
[0151] In step 201 above, the repair operation is used to repair the second item, that is, to increase the current durability of the second item. The repair operation can be an operation on a specified control, or an operation in a graphical user interface using a touch medium (such as a finger) to make a preset graphic. The preset graphic can be any of the following graphics: "V" character, circle, triangle, etc.
[0152] In practice, during the repair of the second item / equipment, the target virtual character's movement speed corresponds to a repair movement speed range. The minimum repair movement speed within this range is 0, and the maximum repair movement speed is manually set. For example, this maximum repair movement speed could be the target virtual character's walking speed when not undergoing the repair of the second item / equipment. When performing the repair operation on the second item / equipment, the target virtual character can move at any repair movement speed within the repair speed range.
[0153] Step 202: When the second item is in a repair state, respond to the control operation for the first item by controlling the target virtual character to move to a designated location using the first item at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
[0154] In step 202 above, the control operation is the operation of controlling the target virtual character to use the first item. The control operation can be a touch operation or a non-touch operation. When the control operation is a non-touch operation, it can be implemented by acquiring a preset image through the image acquisition module in the terminal device. When the preset image is acquired, the target virtual character will be controlled to use the first item. When the control operation is a touch operation, it can be an operation corresponding to a preset gesture or an operation corresponding to a preset control. When the control operation corresponds to a preset gesture, it can be an operation of making a preset shape in the graphical user interface through a touch medium (such as a finger). The preset shape can be any of the following shapes: "V" character, circle, triangle, etc. When both the control operation and the repair operation correspond to preset gestures, the preset shapes corresponding to the control operation and the repair operation are different. For example, the preset shape corresponding to the control operation is the "V" character, and the preset shape corresponding to the repair operation is a circle. When the control operation is an operation corresponding to a preset control, the control operation is generally a click operation, a long press operation, a hard press operation, etc. The graphical user interface will display the preset control used to control the first item / equipment. For example, the area corresponding to the preset control will display an icon representing the first item / equipment. By clicking the preset control, you can control the first item / equipment. The first item / equipment allows the target virtual character to move quickly within the virtual scene. Therefore, when the target virtual character uses the first item / equipment in the virtual scene, the target virtual character can move at a relatively fast speed, which is the target speed, greater than the maximum speed corresponding to the preset speed. Using the first item / equipment also requires determining a specified location through control operations. This specified location is the position that the target virtual character can reach when moving using the first item / equipment.
[0155] In practice, if control operations are performed on the first item during the repair process of the second item, the target virtual character can use the first item to move within the virtual scene. During the control of the first item, a designated location is determined—a location the target virtual character can reach using the first item. The movement speed of the target virtual character using the first item is a target speed, which is greater than the maximum repair movement speed. In this way, during the repair of the second item, the first item can be used to move at a target speed exceeding the maximum repair movement speed. This adds a game mechanic of using the first item during the repair process, enriching the interaction methods for specific scenes during the repair state without affecting the repair efficiency of the second item, increasing the overall game flexibility, and ultimately improving human-computer interaction efficiency.
[0156] The second item being used by the target virtual character in the virtual scene can be a second item that is being repaired or one that is not being repaired. If the second item being used by the target virtual character is one that is being repaired, it means that the durability of the second item is low and its lifespan is short. If the target virtual character uses an item with a short lifespan to fight an enemy virtual character, the target virtual character will be easily damaged by the enemy virtual character. Therefore, when using the first item while the second item is being repaired, the system can automatically adjust the movement position of the first item. Step 202 includes:
[0157] Step 2021: When the second item is in a repair state, respond to the control operation on the first item, and determine the specified location that the target virtual character can reach using the first item based on the current durability value of the second item.
[0158] Step 2022: Control the target virtual character to move to the designated location using the first prop equipment at a target speed greater than the maximum repair movement speed.
[0159] In step 2021 above, if the second item's current durability is high, it means it can sustain combat for a longer period and doesn't need repair. If the second item's current durability is low, it means it can only sustain combat for a short time and may become unusable due to rapid durability loss during combat. In other words, the target virtual character might be vulnerable to attack if the second item is unable to fight. Therefore, the system automatically determines the designated position of the first item based on the second item's durability. This eliminates the need for user adjustment of the first item's position, improving control efficiency.
[0160] Specifically, the automatic adjustment of the first item equipment includes any of the following methods:
[0161] Step 20211: If the current durability of the second item is less than the first preset durability, then the designated position is far away from the hostile virtual character. The designated position is the farthest position that the target virtual character can reach from the hostile virtual character by using the first item.
[0162] Step 20212: If the current durability value of the second item is greater than or equal to the first preset durability value, then the designated location is close to the enemy virtual character. The designated location is the closest location that the target virtual character can reach to the enemy virtual character using the first item.
[0163] In step 20211 above, the first preset durability value is a threshold used to determine whether the second item can still fight against the enemy virtual character. If the current durability value of the second item is lower than the first preset durability value, it means that the second item cannot fight for a long time. Therefore, it needs to move away from the enemy virtual character. That is, the movement direction of the first item is adjusted to move away from the enemy virtual character, and the designated position is determined as the farthest position that the target virtual character can reach from the enemy virtual character using the first item.
[0164] For example, such as Figure 2 As shown, the target enemy virtual character is located at point A. The range of the first item is the area of a circle with point A as the center and the maximum range of the first item as the radius. The enemy virtual character is located at point B. The endpoint of the first item's movement is the point furthest from point B among the intersections of the extension of the line connecting points A and B and the range of the first item, which is point C.
[0165] In step 20212 above, if the current durability of the second item is greater than or equal to the first preset durability, it means that the second item can continue fighting for a long time. Therefore, it can close the distance between the target virtual character and the enemy virtual character, allowing the target virtual character to move to a position near the enemy virtual character and continue fighting, thus improving the target virtual character's attack accuracy. The position near the enemy virtual character includes any of the following: if the enemy virtual character is outside the range of the first item, then the position near the enemy virtual character is the closest position to the enemy virtual character within the range of the first item, such as... Figure 2 Point D in the diagram; if the enemy virtual character is within the range of the first item, then the area near the enemy virtual character can be the range of a circle with the enemy virtual character's location as the center and a preset distance as the radius.
[0166] For example, such as Figure 3 As shown, the target enemy virtual character is located at point A. The range of the first item is the area of a circle centered at point A with the maximum range of the first item as its radius. The enemy virtual character is located at point B. The area near the enemy virtual character is the area of a circle centered at point B with a preset distance as its radius.
[0167] In step 2022 above, after the designated location is determined, the target virtual character is controlled to move to the designated location at a target speed greater than the maximum repair movement speed using the first item. During the repair process of the second item, the movement speed of the target virtual character using the first item is greater than the maximum repair movement speed. Using the first item during the repair process of the second item improves the movement efficiency of the target virtual character during the repair process, thereby improving the efficiency of human-computer interaction.
[0168] The target virtual character possesses numerous secondary items, and multiple secondary items may meet the repair conditions. If these secondary items are not repaired in a timely manner, they may become unusable during combat, leading to the target virtual character being attacked by enemy virtual characters. Therefore, to ensure timely repair of secondary items, a prompt can be provided to the player in the graphical user interface. Thus, prior to step 201, the control method of this application further includes:
[0169] Step 203: In response to the second item's durability value being lower than the second preset durability value, display a low durability warning message within a specified range on the target virtual character.
[0170] Step 204: In response to the repair operation for the second item / equipment, update the low durability warning message to a repair warning message;
[0171] Step 205: In response to the completion of the repair of the second item / equipment, the maintenance prompt information will be displayed.
[0172] In step 203 above, the second preset durability threshold is pre-set and is used to determine whether an item needs repair. The low durability warning message is used to notify the target virtual character that a second item needs repair. The low durability warning message is displayed in the graphical user interface and can include any one or more of the following: identification information (text or image) of the second item whose durability is lower than the second preset durability value, and the durability value of the second item whose durability is lower than the second preset durability value. The durability value of the second item whose durability is lower than the second preset durability value can be displayed in any of the following forms: icon, progress bar, text, etc. Furthermore, based on the above forms, the degree of emphasis can vary depending on the durability value; for example, the higher the durability value, the darker the color of the icon representing the durability value, and the lower the durability value, the lighter the color of the icon representing the durability value.
[0173] In practice, if the durability of the second item is lower than the second preset durability value, it means that the second item equipped by the target virtual character needs to be repaired. If it is not repaired, it cannot be used normally. In this case, the low durability prompt message will be displayed within a specified range of the target virtual character (such as an area determined by a specified distance threshold). This allows the player to know in time that the target virtual character has a second item that needs to be repaired while controlling the target virtual character, so that the player can repair the second item as soon as possible, thus improving the repair efficiency of the second item.
[0174] In step 204 above, the maintenance prompt information is used to indicate that the second item is under maintenance. The maintenance information can include any of the following: icons, progress bars, text, etc. Furthermore, based on the above format, the degree of highlighting can also vary according to the different durability values. For example, the higher the durability value, the darker the color of the icon representing the durability value, and the lower the durability value, the lighter the color of the icon representing the durability value.
[0175] In practice, a repair operation was performed on the second item / equipment. Before the repair of the second item / equipment was completed, the second item / equipment was in a continuous repair process. Therefore, in order to reduce the player's repeated repair operations on the second item / equipment, when responding to the repair operation of the second item / equipment, the low durability warning message will be updated to a repair warning message in the graphical user interface. During the repair process of the second item / equipment, the repair warning message will be continuously displayed within a specified range of the target virtual character until the repair of the second item / equipment is completed, at which point the display of the repair warning message will be canceled, that is, step 205 is executed.
[0176] In some games, repairing items requires using specific items, which is step 201, including:
[0177] Step 2011: Respond to the repair operation for the second item / equipment. If the target virtual character is equipped with a specified repair item, use the specified repair item to repair the second item / equipment.
[0178] Step 2012: In response to the repair operation for the second item, if the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message is displayed in the graphical user interface.
[0179] In step 2011, the specified repair item is used to increase the durability of the second item equipment. The specified repair item can be obtained in various ways, including: the target virtual character picking it up in the virtual scene, obtaining it from other virtual characters, or purchasing it from the item shop.
[0180] Specifically, in steps 2011 and 2012 above, if the target virtual character is equipped with the specified repair item, the repair operation for the second item will utilize the specified repair item to repair it. Of course, the specified repair item can be consumed during the repair process. If the target virtual character is not equipped with the specified repair item, a message indicating that repair is currently impossible should be displayed in the graphical user interface, allowing the player to understand the current repair progress and quickly find the specified repair item.
[0181] Because the target virtual character may possess multiple secondary equipment items that meet the repair conditions, each with a corresponding repair time, and since the player wants to repair multiple secondary equipment items, and different secondary equipment items have different effects, the order in which to repair the first secondary equipment item needs careful consideration. This is why step 201 includes:
[0182] Step 2013: In response to the repair operation for the second item / equipment, determine the repair order of multiple second item / equipment according to the attribute information and / or user habit information of the second item / equipment, and repair the second item / equipment according to the repair order.
[0183] In step 2013 above, the user habit information of the player controlling the target virtual character includes any one or two of the following: the frequency of use of the second item / equipment, and the duration of use of the second item / equipment; the attribute information of the second item / equipment includes any one or more of the following: the durability of the second item / equipment, the level of the second item / equipment, the attack power of the second item / equipment, and the defense power of the second item / equipment. The user habit information of the player controlling the target virtual character better reflects the player's preference for each second item / equipment; the more the player likes the item, the more flexible their control over it. The attribute information of the second item / equipment better reflects its repair progress; the lower the attribute information, the slower the repair progress.
[0184] In practice, the order of repairing the second item can be determined solely based on its attribute information, solely based on the user habits of the player controlling the target virtual character, or a combination of both. If only the user habits are considered, the first item repaired will be the one the player uses most frequently, reducing damage to the target virtual character in subsequent battles. If only the attribute information is considered, the first item repaired will have the shortest repair time, allowing the player to quickly enter combat and further reducing damage. If both attribute information and user habits are considered, the first item repaired will have a shorter repair time and better suit the player's preferences, improving combat efficiency.
[0185] During the process of a player controlling a target virtual character to move within a virtual scene, different movement postures correspond to different combat effects. For example, if an enemy virtual character is attacking the target virtual character, regardless of whether the target virtual character moves towards or away from the enemy virtual character, the attack area corresponding to the target virtual character's standing posture will be larger than the attack area corresponding to the sliding posture. Therefore, in different virtual scenes, the target virtual character needs to adjust its movement posture when moving. Step 202 includes:
[0186] Step 2015: When the second prop / equipment is in the repair state, respond to the control operation on the first prop / equipment and determine the movement posture of the target virtual character based on the scene information in the virtual scene.
[0187] Step 2016: Control the target virtual character to use the first prop equipment to move to the designated location at a target speed greater than the maximum repair movement speed and in the movement posture.
[0188] In step 2014 above, movement posture includes sliding, standing, and jumping postures. Scene information includes any one of the following: combat information, obstacle information, and weather information. Combat information indicates whether the user is under attack. Obstacle information includes the location of obstacles. Weather information includes wind direction.
[0189] In practice, the movement posture of the target virtual character varies depending on the scenario. If the target virtual character is currently standing and under attack, its movement posture needs to be adjusted to a sliding posture to reduce the attack area and thus reduce damage. If the target virtual character is currently standing and the virtual scene is windy, its movement posture needs to be adjusted to a sliding posture to reduce the area exposed to the wind and thus increase its movement speed. If the target virtual character is currently standing and the location information of obstacles in the virtual scene is known, its movement posture needs to be adjusted to a jumping posture based on the obstacle location information to reduce the risk of being blocked by obstacles and thus increase its movement speed.
[0190] In step 2015 above, after determining the movement posture of the target virtual character, during the process of controlling the movement of the target virtual character, the target virtual character will use the first prop to move towards the designated location with the determined movement posture and a target speed greater than the maximum repair movement speed.
[0191] This application provides a control device for virtual characters in a game, such as... Figure 4 As shown, the game includes a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control device includes:
[0192] The first movement module 401 is used to respond to the movement operation of the target virtual character and control the target virtual character to move at a preset speed;
[0193] The second movement module 402 is used to respond to a control operation on the first prop equipment, and control the target virtual character to move to a designated location at a target speed using the first prop equipment, wherein the target speed is greater than the preset speed, and the designated location is a location determined according to the control operation;
[0194] The repair module 403 is used to repair the second item when the second item meets the repair conditions during the process of controlling the target virtual character to move to a designated location at a target speed using the first item.
[0195] Optionally, the repair module is used for
[0196] The repair of the second item / equipment is completed when the repair time reaches the corresponding repair time of the second item / equipment.
[0197] Optionally, the repair module is used for
[0198] When the target virtual character reaches the designated location, the repair of the second item / equipment is completed. Optionally, the control device further includes:
[0199] Upon completion of the repair of the second item / equipment and the movement of the target virtual character to the designated location, the player uses the second item / equipment to execute game skills.
[0200] Optionally, the second moving module includes:
[0201] The display unit is used to respond to the control operation on the first prop equipment, trigger the first prop equipment to generate a movement trajectory based on the current position of the target virtual character and the specified position of the target aiming object in the virtual scene, and display the trajectory markers corresponding to the movement trajectory.
[0202] A movement unit is used to control the target virtual character to move at a target speed along the trajectory marker to a designated position of the target target object in the virtual scene.
[0203] Optionally, the repair module includes:
[0204] The first judgment unit, while controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, if the durability value of the second prop equipment is lower than the preset durability value, then repairs the second prop equipment.
[0205] Optionally, the repair module includes:
[0206] The sorting unit is used to determine the repair order of multiple second items based on the attribute information and / or user habit information of the second items, and to repair the second items according to the repair order.
[0207] Optionally, the user habit information includes any one or more of the following:
[0208] The frequency of use of the second item / equipment and the duration of use of the second item / equipment;
[0209] The attribute information of the second item includes any one or more of the following:
[0210] The durability, level, attack power, and defense power of the second item / equipment.
[0211] Optionally, the control device further includes:
[0212] The first prompt module is used to display a low durability prompt message within a specified range of the target virtual character in response to the second item's durability value being lower than a preset durability value.
[0213] The second prompt module is used to respond to the first control operation for the first prop equipment and update the low durability prompt information to a maintenance prompt information.
[0214] The third prompt module is used to stop displaying the repair prompt information when the second item / equipment has been repaired.
[0215] Optionally, the repair module includes:
[0216] The second judgment unit is used to determine whether the target virtual character is equipped with a specified repair item in response to the second item meeting the repair conditions; if the target virtual character is equipped with a specified repair item, the specified repair item is used to repair the second item; if the target virtual character is not equipped with a specified repair item, a prompt message indicating that repair is not possible is displayed in the graphical user interface.
[0217] Optionally, the moving unit includes:
[0218] The attitude adjustment subunit is used to control the target virtual character to move along the trajectory marker towards a specified position of the target target object in the virtual scene with a movement attitude and target speed; the movement attitude is determined based on scene information of the current position of the target virtual character in the virtual scene.
[0219] This application embodiment also provides another control device for a virtual character in a game, the game including a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control device includes:
[0220] The repair module is used to respond to the repair operation for the second item / equipment and repair the second item / equipment; wherein, when the second item / equipment is in the repair state, the target virtual character corresponds to a maximum repair movement speed;
[0221] The movement module is used to respond to a control operation on the first item when the second item is in a repair state, and control the target virtual character to move to a designated location using the first item at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
[0222] Optionally, the mobile module includes:
[0223] The location determination unit is used to respond to a control operation on the first item when the second item is in a repair state, and determine the specified location that the target virtual character can reach using the first item based on the current durability value of the second item.
[0224] The first movement unit is used to control the target virtual character to move to the designated location using the first prop equipment at a target speed greater than the maximum repair movement speed.
[0225] Optionally, the position determination unit includes:
[0226] The first position determination subunit is used to determine that if the current durability value of the second item is less than the first preset durability value, the designated position is far away from the hostile virtual character. The designated position is the farthest position that the target virtual character can reach away from the hostile virtual character by using the first item.
[0227] The second position determination subunit is used to determine that if the current durability value of the second item is greater than or equal to the first preset durability value, the designated position is close to the enemy virtual character. The designated position is the closest position that the target virtual character can reach to the enemy virtual character using the first item.
[0228] Optionally, the control device further includes:
[0229] The first prompt module is used to display a low durability prompt message within a specified range of the target virtual character in response to the second item's durability value being lower than the second preset durability value.
[0230] The second prompt module is used to respond to the repair operation for the second item / equipment by updating the low durability prompt information to a repair prompt information;
[0231] The third prompt module is used to stop displaying the repair prompt information when the repair of the second item / equipment is completed.
[0232] Optionally, the repair module includes:
[0233] The repair unit is used to respond to the repair operation for the second item equipment. If the target virtual character is equipped with a specified repair item, the specified repair item is used to repair the second item equipment.
[0234] The prompting unit is used to respond to the repair operation for the second item equipment. If the target virtual character is not equipped with the specified repair item, a prompt message indicating that repair is not possible is displayed in the graphical user interface.
[0235] Optionally, the repair module includes:
[0236] A sorting unit is used to respond to a repair operation for the second item / equipment, determine the repair order of multiple second item / equipment according to the attribute information and / or user habit information of the second item / equipment, and repair the second item / equipment according to the repair order.
[0237] Optionally, the user habit information includes any one or two of the following:
[0238] The frequency of use of the second item / equipment and the duration of use of the second item / equipment;
[0239] The attribute information of the second item includes any one or more of the following:
[0240] The durability, level, attack power, and defense power of the second item / equipment.
[0241] Optionally, the mobile module includes:
[0242] The posture determination unit is used to respond to the control operation on the first prop equipment when the second prop equipment is in the repair state, and determine the movement posture of the target virtual character according to the scene information in the virtual scene.
[0243] The movement unit is used to control the target virtual character to move to a designated location using the first prop equipment at a target speed greater than the maximum repair movement speed, and in a movement posture.
[0244] Corresponding to Figure 1In addition to the method for controlling virtual characters in games, this application also provides a computer device 500, such as... Figure 5 As shown, the device includes a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502. When the processor 502 executes the computer program, it implements a control method for a virtual character in the game. The control method includes:
[0245] In response to a movement operation on the target virtual character, control the target virtual character to move at a preset speed;
[0246] In response to a control operation on the first prop / equipment, the target virtual character is controlled to move to a designated location at a target speed using the first prop / equipment, wherein the target speed is greater than the preset speed, and the designated location is a location determined according to the control operation;
[0247] During the process of controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, the second prop equipment is repaired in response to the second prop equipment meeting the repair conditions.
[0248] Optionally, the repair of the second item / equipment is completed when the repair time reaches the corresponding repair time of the second item / equipment.
[0249] Optionally, when the target virtual character reaches the designated location, the repair of the second item / equipment is completed.
[0250] Optionally, the method further includes:
[0251] Upon completion of the repair of the second item / equipment and the movement of the target virtual character to the designated location, the player uses the second item / equipment to execute game skills.
[0252] Optionally, the response is a control operation on the first prop / equipment, controlling the target virtual character to move to a designated location at a target speed using the first prop / equipment, including:
[0253] In response to a control operation on the first prop, the first prop generates a movement trajectory based on the current position of the target virtual character and the specified position of the target object in the virtual scene, and displays the trajectory markers corresponding to the movement trajectory.
[0254] The target virtual character is controlled to move at a target speed along the trajectory marker towards a designated position of the target target object in the virtual scene.
[0255] Optionally, during the process of controlling the target virtual character to move to a designated location at a target speed using the first prop / equipment, repairing the second prop / equipment in response to the second prop / equipment meeting the repair conditions includes:
[0256] During the process of controlling the target virtual character to move to a designated location at a target speed using the first item, if the durability of the second item is lower than the preset durability, the second item will be repaired.
[0257] Optionally, the second item / equipment that meets the repair conditions includes multiple items, and each second item / equipment has a corresponding repair time; repairing the second item / equipment includes:
[0258] Based on the attribute information and / or user habit information of the second item, determine the repair order of multiple second items, and repair the second items according to the repair order.
[0259] Optionally, the user habit information includes any one or more of the following:
[0260] The frequency of use of the second item / equipment and the duration of use of the second item / equipment;
[0261] The attribute information of the second item includes any one or more of the following:
[0262] The durability, level, attack power, and defense power of the second item / equipment.
[0263] Optionally, during the process of controlling the target virtual character to move to a designated location at a target speed using the first prop / equipment, repairing the second prop / equipment in response to the second prop / equipment meeting the repair conditions includes:
[0264] During the process of controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, in response to the second prop equipment meeting the repair conditions, the second prop equipment is repaired and the repair is completed.
[0265] Optionally, before repairing the second item / equipment in response to the second item / equipment meeting the repair conditions, the control method further includes:
[0266] In response to the second item's durability value being lower than the preset durability value, a low durability warning message is displayed within a specified range on the target virtual character;
[0267] In response to the first control operation for the first item / equipment, the low durability warning message is updated to a repair warning message;
[0268] Once the second item / equipment has been repaired, the maintenance notification message will end.
[0269] Optionally, the response that the second item / equipment meets the repair conditions and the repair of the second item / equipment includes:
[0270] If the second item meets the repair conditions, determine whether the target virtual character is equipped with the specified repair item.
[0271] If the target virtual character is equipped with a specified repair item, then the second item equipment is repaired using the specified repair item;
[0272] If the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message will be displayed in the graphical user interface.
[0273] Optionally, controlling the target virtual character to move at a target speed along the trajectory marker towards the designated position of the target target object in the virtual scene includes:
[0274] The system controls the target virtual character to move along the trajectory markers towards the target target object at a specified position in the virtual scene with a movement posture and target speed; the movement posture is determined based on scene information of the current position of the target virtual character in the virtual scene.
[0275] Specifically, the aforementioned memory 501 and processor 502 can be general-purpose memory and processor, without specific limitations. When the processor 502 runs the computer program stored in the memory 501, it can execute the control method for the virtual character in the game, thus solving the problem of low human-computer interaction efficiency in the process of repairing virtual props in the prior art. The method provided by this application can repair the second prop that meets the repair conditions while moving using the first prop. In this way, when the target virtual character reaches the designated location, the repaired second prop can be used. By adding the game mechanism of repairing the second prop while using the first prop, the repair efficiency of the second prop is improved, the flexibility of the entire game is improved, and thus the human-computer interaction efficiency is improved.
[0276] Corresponding to Figure 1 In addition to the method for controlling virtual characters in a game, this application also provides a computer-readable storage medium storing a computer program. When a processor executes the above-described method for controlling virtual characters in a game, the control method includes:
[0277] In response to a movement operation on the target virtual character, control the target virtual character to move at a preset speed;
[0278] In response to a control operation on the first prop / equipment, the target virtual character is controlled to move to a designated location at a target speed using the first prop / equipment, wherein the target speed is greater than the preset speed, and the designated location is a location determined according to the control operation;
[0279] During the process of controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, the second prop equipment is repaired in response to the second prop equipment meeting the repair conditions.
[0280] Optionally, the repair of the second item / equipment is completed when the repair time reaches the corresponding repair time of the second item / equipment.
[0281] Optionally, when the target virtual character reaches the designated location, the repair of the second item / equipment is completed.
[0282] Optionally, the method further includes:
[0283] Upon completion of the repair of the second item / equipment and the movement of the target virtual character to the designated location, the player uses the second item / equipment to execute game skills.
[0284] Optionally, the response is a control operation on the first prop / equipment, controlling the target virtual character to move to a designated location at a target speed using the first prop / equipment, including:
[0285] In response to a control operation on the first prop, the first prop generates a movement trajectory based on the current position of the target virtual character and the specified position of the target object in the virtual scene, and displays the trajectory markers corresponding to the movement trajectory.
[0286] The target virtual character is controlled to move at a target speed along the trajectory marker towards a designated position of the target target object in the virtual scene.
[0287] Optionally, during the process of controlling the target virtual character to move to a designated location at a target speed using the first prop / equipment, repairing the second prop / equipment in response to the second prop / equipment meeting the repair conditions includes:
[0288] During the process of controlling the target virtual character to move to a designated location at a target speed using the first item, if the durability of the second item is lower than the preset durability, the second item will be repaired.
[0289] Optionally, the second item / equipment that meets the repair conditions includes multiple items, and each second item / equipment has a corresponding repair time; repairing the second item / equipment includes:
[0290] Based on the attribute information and / or user habit information of the second item, determine the repair order of multiple second items, and repair the second items according to the repair order.
[0291] Optionally, the user habit information includes any one or more of the following:
[0292] The frequency of use of the second item / equipment and the duration of use of the second item / equipment;
[0293] The attribute information of the second item includes any one or more of the following:
[0294] The durability, level, attack power, and defense power of the second item / equipment.
[0295] Optionally, during the process of controlling the target virtual character to move to a designated location at a target speed using the first prop / equipment, repairing the second prop / equipment in response to the second prop / equipment meeting the repair conditions includes:
[0296] During the process of controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, in response to the second prop equipment meeting the repair conditions, the second prop equipment is repaired and the repair is completed.
[0297] Optionally, before repairing the second item / equipment in response to the second item / equipment meeting the repair conditions, the control method further includes:
[0298] In response to the second item's durability value being lower than the preset durability value, a low durability warning message is displayed within a specified range on the target virtual character;
[0299] In response to the first control operation for the first item / equipment, the low durability warning message is updated to a repair warning message;
[0300] Once the second item / equipment has been repaired, the maintenance notification message will end.
[0301] Optionally, the response that the second item / equipment meets the repair conditions and the repair of the second item / equipment includes:
[0302] If the second item meets the repair conditions, determine whether the target virtual character is equipped with the specified repair item.
[0303] If the target virtual character is equipped with a specified repair item, then the second item equipment is repaired using the specified repair item;
[0304] If the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message will be displayed in the graphical user interface.
[0305] Optionally, controlling the target virtual character to move at a target speed along the trajectory marker towards the designated position of the target target object in the virtual scene includes:
[0306] The system controls the target virtual character to move along the trajectory markers towards the target target object at a specified position in the virtual scene with a movement posture and target speed; the movement posture is determined based on scene information of the current position of the target virtual character in the virtual scene.
[0307] Specifically, the storage medium can be a general-purpose storage medium, such as a portable disk or hard disk. When the computer program on the storage medium is run, it can execute the control method for the virtual character in the game, thus solving the problem of low human-computer interaction efficiency in the process of repairing virtual props in the prior art. This application can repair the second prop that meets the repair conditions while moving using the first prop. In this way, when the target virtual character reaches the designated location, the repaired second prop can be used. By adding the game mechanism of repairing the second prop while using the first prop, the repair efficiency of the second prop is improved, the flexibility of the whole game is improved, and thus the human-computer interaction efficiency is improved.
[0308] Corresponding to another method for controlling virtual characters in a game provided in this application, the control method can also be applied to the computer device 500 provided in the embodiments of this application, such as... Figure 5 As shown, the device includes a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502. When the processor 502 executes the computer program, it implements a control method for a virtual character in the game. The control method includes:
[0309] In response to a repair operation on the second item / equipment, the second item / equipment is repaired; wherein, while the second item / equipment is in a repair state, the target virtual character corresponds to a maximum repaired movement speed;
[0310] When the second item is in a repair state, in response to a control operation on the first item, the target virtual character is controlled to use the first item to move to a designated location at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
[0311] Optionally, when the second item / equipment is in a repair state, in response to a control operation on the first item / equipment, the target virtual character is controlled to move to a designated location using the first item / equipment at a target speed greater than the maximum repair movement speed, including:
[0312] When the second item is in a repair state, respond to the control operation on the first item, and determine the specified location that the target virtual character can reach using the first item based on the current durability of the second item.
[0313] The target virtual character is controlled to move to the designated location at a target speed greater than the maximum repair movement speed using the first item.
[0314] Optionally, based on the current durability of the second item, determining the designated location that the target virtual character can reach using the first item includes:
[0315] If the current durability of the second item is less than the first preset durability, then the designated location is far away from the hostile virtual character. The designated location is the farthest location that the target virtual character can reach from the hostile virtual character by using the first item.
[0316] If the current durability of the second item is greater than or equal to the first preset durability, then the designated location is close to the enemy virtual character. The designated location is the closest location that the target virtual character can reach to the enemy virtual character using the first item.
[0317] Optionally, before responding to a repair operation for the second item / equipment, the control method further includes:
[0318] In response to the second item's durability value being lower than the second preset durability value, a low durability warning message is displayed within a specified range on the target virtual character;
[0319] In response to a repair operation on the second item / equipment, the low durability warning message is updated to a repair warning message;
[0320] Once the repair of the second item / equipment is completed, the repair prompt message will stop being displayed.
[0321] Optionally, in response to a repair operation for the second item / equipment, the second item / equipment is repaired, including:
[0322] In response to the repair operation for the second item equipment, if the target virtual character is equipped with a specified repair item, the specified repair item is used to repair the second item equipment;
[0323] In response to the repair operation for the second item, if the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message will be displayed in the graphical user interface.
[0324] Optionally, the target virtual character is equipped with multiple first item equipment, and each first item equipment has a corresponding repair time; in response to a repair operation for the second item equipment, the second item equipment is repaired, including:
[0325] In response to a repair operation for the second item / equipment, based on the attribute information and / or user habit information of the second item / equipment, a repair order for multiple second item / equipment is determined, and the second item / equipment is repaired according to the repair order.
[0326] Optionally, the user habit information includes any one or two of the following:
[0327] The frequency of use of the second item / equipment and the duration of use of the second item / equipment;
[0328] The attribute information of the second item includes any one or more of the following:
[0329] The durability, level, attack power, and defense power of the second item / equipment.
[0330] Optionally, when the second item / equipment is in a repair state, in response to a control operation on the first item / equipment, the target virtual character is controlled to move to a designated location using the first item / equipment at a target speed greater than the maximum repair movement speed, including:
[0331] When the second prop / equipment is in a repair state, respond to the control operation on the first prop / equipment and determine the movement posture of the target virtual character based on the scene information in the virtual scene;
[0332] The target virtual character is controlled to move to a designated location using the first item equipment at a target speed greater than the maximum repair movement speed, and in a moving posture.
[0333] Specifically, the aforementioned memory 501 and processor 502 can be general-purpose memory and processor, without specific limitations. When the processor 502 runs the computer program stored in the memory 501, it can execute the control method of the virtual character in the game, thus solving the problem of low human-computer interaction efficiency in the process of repairing virtual props in the prior art. In the embodiment of this application, during the repair of the second prop, the first prop can be used to move at a target speed greater than the maximum repair movement speed. That is, the game mechanism of using the first prop is added during the repair of the second prop. Without affecting the repair efficiency of the second prop, the interaction methods of specific scenes in the repair state are enriched, the flexibility of the whole game is improved, and thus the human-computer interaction efficiency is improved.
[0334] Corresponding to another method for controlling virtual characters in a game provided in this application embodiment, this control method can also be applied to the computer-readable storage medium provided in this application embodiment. The computer-readable storage medium stores a computer program, which, when executed by a processor, performs the steps of the aforementioned method for controlling virtual characters in a game. The control method includes:
[0335] In response to a repair operation on the second item / equipment, the second item / equipment is repaired; wherein, while the second item / equipment is in a repair state, the target virtual character corresponds to a maximum repaired movement speed;
[0336] When the second item is in a repair state, in response to a control operation on the first item, the target virtual character is controlled to use the first item to move to a designated location at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
[0337] Optionally, when the second item / equipment is in a repair state, in response to a control operation on the first item / equipment, the target virtual character is controlled to move to a designated location using the first item / equipment at a target speed greater than the maximum repair movement speed, including:
[0338] When the second item is in a repair state, respond to the control operation on the first item, and determine the specified location that the target virtual character can reach using the first item based on the current durability of the second item.
[0339] The target virtual character is controlled to move to the designated location at a target speed greater than the maximum repair movement speed using the first item.
[0340] Optionally, based on the current durability of the second item, determining the designated location that the target virtual character can reach using the first item includes:
[0341] If the current durability of the second item is less than the first preset durability, then the designated location is far away from the hostile virtual character. The designated location is the farthest location that the target virtual character can reach from the hostile virtual character by using the first item.
[0342] If the current durability of the second item is greater than or equal to the first preset durability, then the designated location is close to the enemy virtual character. The designated location is the closest location that the target virtual character can reach to the enemy virtual character using the first item.
[0343] Optionally, before responding to a repair operation for the second item / equipment, the control method further includes:
[0344] In response to the second item's durability value being lower than the second preset durability value, a low durability warning message is displayed within a specified range on the target virtual character;
[0345] In response to a repair operation on the second item / equipment, the low durability warning message is updated to a repair warning message;
[0346] Once the repair of the second item / equipment is completed, the repair prompt message will stop being displayed.
[0347] Optionally, in response to a repair operation for the second item / equipment, the second item / equipment is repaired, including:
[0348] In response to the repair operation for the second item equipment, if the target virtual character is equipped with a specified repair item, the specified repair item is used to repair the second item equipment;
[0349] In response to the repair operation for the second item, if the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message will be displayed in the graphical user interface.
[0350] Optionally, the target virtual character is equipped with multiple first item equipment, and each first item equipment has a corresponding repair time; in response to a repair operation for the second item equipment, the second item equipment is repaired, including:
[0351] In response to a repair operation for the second item / equipment, based on the attribute information and / or user habit information of the second item / equipment, a repair order for multiple second item / equipment is determined, and the second item / equipment is repaired according to the repair order.
[0352] Optionally, the user habit information includes any one or two of the following:
[0353] The frequency of use of the second item / equipment and the duration of use of the second item / equipment;
[0354] The attribute information of the second item includes any one or more of the following:
[0355] The durability, level, attack power, and defense power of the second item / equipment.
[0356] Optionally, when the second item / equipment is in a repair state, in response to a control operation on the first item / equipment, the target virtual character is controlled to move to a designated location using the first item / equipment at a target speed greater than the maximum repair movement speed, including:
[0357] When the second prop / equipment is in a repair state, respond to the control operation on the first prop / equipment and determine the movement posture of the target virtual character based on the scene information in the virtual scene;
[0358] The target virtual character is controlled to move to a designated location using the first item equipment at a target speed greater than the maximum repair movement speed, and in a moving posture.
[0359] Specifically, the storage medium can be a general-purpose storage medium, such as a portable disk or hard disk. When the computer program on the storage medium is run, it can execute the control method of the virtual character in the game, thus solving the problem of low human-computer interaction efficiency in the process of repairing virtual props in the prior art. In the process of repairing the second prop, the first prop can be used to move at a target speed greater than the maximum repair movement speed. That is, the game mechanism of using the first prop is added in the process of repairing the second prop. Without affecting the repair efficiency of the second prop, the interaction methods of specific scenes in the repair state are enriched, the flexibility of the whole game is improved, and thus the human-computer interaction efficiency is improved.
[0360] In the embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0361] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0362] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0363] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0364] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0365] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A method for controlling a virtual character in a game, characterized in that, The game includes a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control method includes: In response to a movement operation on the target virtual character, control the target virtual character to move at a preset speed; In response to a control operation on the first prop / equipment, the target virtual character is controlled to move to a designated location at a target speed using the first prop / equipment, wherein the target speed is greater than the preset speed, and the designated location is a location determined according to the control operation; During the process of controlling the target virtual character to move to a designated location at a target speed using the first prop equipment, the second prop equipment is repaired in response to the second prop equipment meeting the repair conditions.
2. The method according to claim 1, characterized in that, The repair of the second item / equipment is completed when the repair time reaches the corresponding repair time of the second item / equipment.
3. The method according to claim 1, characterized in that, When the target virtual character reaches the designated location, the repair of the second item / equipment is completed.
4. The method according to claim 1, characterized in that, The control method further includes: Upon completion of the repair of the second item / equipment and the movement of the target virtual character to the designated location, the player uses the second item / equipment to execute game skills.
5. The method according to claim 1, characterized in that, The response is a control operation for the first item / equipment, controlling the target virtual character to move to a designated location at a target speed using the first item / equipment, including: In response to a control operation on the first prop, the first prop generates a movement trajectory based on the current position of the target virtual character and the specified position of the target object in the virtual scene, and displays the trajectory markers corresponding to the movement trajectory. The target virtual character is controlled to move at a target speed along the trajectory marker towards a designated position of the target target object in the virtual scene.
6. The method according to claim 1, characterized in that, During the process of controlling the target virtual character to move to a designated location at a target speed using the first item / equipment, in response to the second item / equipment meeting the repair conditions, the second item / equipment is repaired, including: During the process of controlling the target virtual character to move to a designated location at a target speed using the first item, if the durability of the second item is lower than the preset durability, the second item will be repaired.
7. The control method according to claim 1, characterized in that, The second item or equipment that meets the repair conditions includes multiple items, and each second item or equipment has a corresponding repair time. Repair the second item / equipment, including: Based on the attribute information and / or user habit information of the second item, determine the repair order of multiple second items, and repair the second items according to the repair order.
8. The control method according to claim 7, characterized in that, The user habit information includes any one or more of the following: The frequency of use of the second item / equipment and the duration of use of the second item / equipment; The attribute information of the second item includes any one or more of the following: The durability, level, attack power, and defense power of the second item / equipment.
9. The control method according to claim 1, characterized in that, Before repairing the second item / equipment in response to it meeting the repair conditions, the control method further includes: In response to the second item's durability value being lower than the preset durability value, a low durability warning message is displayed within a specified range on the target virtual character; In response to the first control operation for the first item / equipment, the low durability warning message is updated to a repair warning message; Once the second item / equipment has been repaired, the maintenance notification message will end.
10. The control method according to claim 1, characterized in that, The response that the second item / equipment meets the repair conditions includes repairing the second item / equipment, including: If the second item meets the repair conditions, determine whether the target virtual character is equipped with the specified repair item. If the target virtual character is equipped with a specified repair item, then the second item equipment is repaired using the specified repair item; If the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message will be displayed in the graphical user interface.
11. The control method according to claim 5, characterized in that, The control of the target virtual character to move at a target speed along the trajectory marker towards the designated position of the target target object in the virtual scene includes: The system controls the target virtual character to move along the trajectory markers towards the target target object at a specified position in the virtual scene with a movement posture and target speed; the movement posture is determined based on scene information of the current position of the target virtual character in the virtual scene.
12. A method for controlling a virtual character in a game, characterized in that, The game includes a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control method includes: In response to a repair operation on the second item / equipment, the second item / equipment is repaired; wherein, while the second item / equipment is in a repair state, the target virtual character corresponds to a maximum repaired movement speed; When the second item is in a repair state, in response to a control operation on the first item, the target virtual character is controlled to use the first item to move to a designated location at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
13. The control method according to claim 12, characterized in that, When the second item / equipment is in a repair state, in response to a control operation on the first item / equipment, the target virtual character is controlled to move to a designated location using the first item / equipment at a target speed greater than the maximum repair movement speed, including: When the second item is in a repair state, respond to the control operation on the first item, and determine the specified location that the target virtual character can reach using the first item based on the current durability of the second item. The target virtual character is controlled to move to the designated location at a target speed greater than the maximum repair movement speed using the first item.
14. The control method according to claim 13, characterized in that, Based on the current durability of the second item, determine the specified location that the target virtual character can reach using the first item, including: If the current durability of the second item is less than the first preset durability, then the designated location is far away from the hostile virtual character. The designated location is the farthest location that the target virtual character can reach from the hostile virtual character by using the first item. If the current durability of the second item is greater than or equal to the first preset durability, then the designated location is close to the enemy virtual character. The designated location is the closest location that the target virtual character can reach to the enemy virtual character using the first item.
15. The control method according to claim 12, characterized in that, Prior to responding to a repair operation on the second item / equipment, the control method further includes: In response to the second item's durability value being lower than the second preset durability value, a low durability warning message is displayed within a specified range on the target virtual character; In response to a repair operation on the second item / equipment, the low durability warning message is updated to a repair warning message; Once the repair of the second item / equipment is completed, the repair prompt message will stop being displayed.
16. The control method according to claim 12, characterized in that, In response to the repair operation for the second item / equipment, the second item / equipment is repaired, including: In response to the repair operation for the second item equipment, if the target virtual character is equipped with a specified repair item, the specified repair item is used to repair the second item equipment; In response to the repair operation for the second item, if the target virtual character is not equipped with the specified repair item, a "cannot be repaired" message will be displayed in the graphical user interface.
17. The control method according to claim 12, characterized in that, The target virtual character is equipped with multiple first item equipment, and each first item equipment has a corresponding repair time. In response to the repair operation for the second item / equipment, the second item / equipment is repaired, including: In response to a repair operation for the second item / equipment, based on the attribute information and / or user habit information of the second item / equipment, a repair order for multiple second item / equipment is determined, and the second item / equipment is repaired according to the repair order.
18. The control method according to claim 17, characterized in that, The user habit information includes any one or two of the following: The frequency of use of the second item / equipment and the duration of use of the second item / equipment; The attribute information of the second item includes any one or more of the following: The durability, level, attack power, and defense power of the second item / equipment.
19. The control method according to claim 12, characterized in that, When the second item / equipment is in a repair state, in response to a control operation on the first item / equipment, the target virtual character is controlled to move to a designated location using the first item / equipment at a target speed greater than the maximum repair movement speed, including: When the second prop / equipment is in a repair state, respond to the control operation on the first prop / equipment and determine the movement posture of the target virtual character based on the scene information in the virtual scene; The target virtual character is controlled to move to a designated location using the first item equipment at a target speed greater than the maximum repair movement speed, and in a moving posture.
20. A control device for a virtual character in a game, characterized in that, The game includes a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control device includes: The first movement module is used to respond to movement operations on the target virtual character and control the target virtual character to move at a preset speed; The second movement module is used to respond to the control operation on the first prop equipment, and control the target virtual character to move to a designated location at a target speed using the first prop equipment, wherein the target speed is greater than the preset speed, and the designated location is a location determined according to the control operation; The repair module is used to repair the second item when the second item meets the repair conditions during the process of controlling the target virtual character to move to a designated location at a target speed using the first item.
21. A control device for a virtual character in a game, characterized in that, The game includes a controlled target virtual character, the target virtual character being equipped with a first item and a second item; the control device includes: The repair module is used to respond to the repair operation for the second item / equipment and repair the second item / equipment; wherein, when the second item / equipment is in the repair state, the target virtual character corresponds to a maximum repair movement speed; The movement module is used to respond to a control operation on the first item when the second item is in a repair state, and control the target virtual character to move to a designated location using the first item at a target speed greater than the maximum repair movement speed, wherein the designated location is a location determined according to the control operation.
22. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1-11 or 12-19.
23. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is run by the processor, it performs the steps of the method according to any one of claims 1-11 or 12-19.