Virtual character replacement method and device in game and electronic equipment
The method and device facilitate seamless virtual character replacement in games by using a graphical user interface and intelligent substitution recommendations, addressing the disruption caused by manual operations in existing technologies.
Patent Information
- Application Number
- CN202410978337.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-12-06
AI Technical Summary
Existing game technologies require players to pause the game and manually operate to replace virtual athletes, disrupting the game's smoothness and requiring extra time and effort.
A method and device that allows players to select and replace virtual characters during gameplay by using a graphical user interface, utilizing attribute parameters to intelligently recommend suitable replacements, simplifying the substitution process through touch and trigger operations.
Enables seamless character switching during gameplay, maintaining flow and enhancing player experience by simplifying the substitution process and providing intelligent recommendations.
Smart Images

Figure CN119075311A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of game technology, and in particular to a method, device and electronic device for replacing a virtual character in a game. Background Art
[0002] Some sports electronic games provide a function to replace virtual athletes. When players replace virtual athletes, they usually need to pause the game process and then replace the virtual athlete who performs virtual game behaviors in the game by changing the game operation of the virtual sport. This method will interrupt the smoothness of the game, and players need to spend extra time and energy to operate. Summary of the invention
[0003] In view of this, the purpose of the present disclosure is to provide a method, device and electronic device for replacing virtual characters in a game, so that players can select game characters participating in the game and replace the characters during the game, thereby simplifying the character switching operation, maintaining the flow of the game, and improving the player's gaming experience.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for replacing a virtual character in a game, providing a graphical user interface through a terminal device; the method comprises: in response to a game match start instruction, controlling multiple game camps to join the game match, and displaying a game scene where the game match is located on a graphical user interface; the game camps include a first game camp; the first game camp is controlled by a terminal device; multiple first virtual characters in the first game camp belong to a game account corresponding to the terminal device; the game account also has at least one second virtual character; in response to a specified touch operation on a third virtual character among the multiple first virtual characters, determining the third virtual character as a character to be replaced; based on the attribute parameters of the third virtual character and the attribute parameters of at least one second virtual character, determining a target virtual character from at least one second virtual character, and displaying a character identification of the target virtual character on a graphical user interface; the attribute parameters are used to indicate the function of the virtual character in the game match, and / or, the current state of the virtual character; in response to a trigger operation on the character identification of the target virtual character, controlling the target virtual character to participate in the game match instead of the character to be replaced.
[0005] In a second aspect, an embodiment of the present disclosure provides a virtual character replacement device in a game, which provides a graphical user interface through a terminal device; the device includes: a scene display module, which is used to control multiple game camps to join the game game in response to a game match start instruction, and display the game scene where the game game is located in the graphical user interface; the game camps include a first game camp; the first game camp is controlled by the terminal device; multiple first virtual characters in the first game camp belong to a game account corresponding to the terminal device; the game account also has at least one second virtual character; a to-be-replaced character determination module, which is used to determine the third virtual character as the to-be-replaced character in response to a specified touch operation on a third virtual character among the multiple first virtual characters; a target virtual character determination module, which is used to determine a target virtual character from at least one second virtual character based on attribute parameters of the third virtual character and attribute parameters of at least one second virtual character, and display the role identification of the target virtual character in the graphical user interface; the attribute parameters are used to indicate the function of the virtual character in the game game, and / or, the current state of the virtual character; a role replacement module, which is used to control the target virtual character to participate in the game game instead of the to-be-replaced character in response to a trigger operation on the role identification of the target virtual character.
[0006] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned method for replacing a virtual character in a game.
[0007] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned method for replacing a virtual character in a game.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The above-mentioned method, device and electronic device for replacing virtual characters in a game control multiple game camps to join the game in response to a game match start instruction, and display the game scene where the game match is located on a graphical user interface; in response to a designated touch operation on a third virtual character among multiple first virtual characters, the third virtual character is determined as a character to be replaced; based on the attribute parameters of the third virtual character and the attribute parameters of at least one second virtual character, the target virtual character is determined, and the character identification of the target virtual character is displayed on the graphical user interface; in response to a trigger operation on the character identification of the target virtual character, the target virtual character is controlled to replace the character to be replaced to participate in the game. In this method, players can select game characters participating in the game during the game match and perform role replacement, which simplifies the role switching operation, maintains the process of the game match, and improves the game experience of players.
[0010] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or understood by practicing the present disclosure. The purpose and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0011] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 A flowchart of a method for replacing a virtual character in a game provided by an embodiment of the present disclosure;
[0014] Figure 2 A schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;
[0015] Figure 3 A schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
[0016] Figure 4 A schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
[0017] Figure 5 A schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
[0018] Figure 6 A schematic diagram of the structure of a virtual character replacement device in a game provided by an embodiment of the present disclosure;
[0019] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0021] In various virtual games simulating sports competitions, such as mobile football games, the function of player substitution is provided. However, when making substitutions, it is usually necessary to pause the game process and perform manual operations through the interface.
[0022] In the related art, the substitution operation of football mobile games usually needs to be manually operated within a specific time period or when the game is paused, which may interrupt the fluency of the game and require players to spend extra time and energy to operate. In addition, the existing technology is not very smart in terms of intelligent recommendation of substitutions, and players usually need to make judgments based on their own understanding.
[0023] Based on this, the embodiments of the present disclosure provide a method, device and electronic device for replacing a virtual character in a game. The technology can be applied to game scenarios where virtual character replacement is required.
[0024] In one embodiment of the present invention, the virtual character replacement method in the game can be run on a local terminal device or a server. When the virtual character replacement method in the game is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0025] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the virtual character replacement method in the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0026] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0027] See also Figure 1 First, a method for replacing a virtual character in a game provided by an embodiment of the present invention is introduced, and a graphical user interface is provided by a terminal device. The method comprises the following steps:
[0028] Step S102, in response to a game start instruction, controls multiple game camps to join the game, and displays a game scene where the game is located on a graphical user interface; the game camps include a first game camp; the first game camp is controlled by a terminal device; multiple first virtual characters in the first game camp belong to a game account corresponding to the terminal device; the game account also has at least one second virtual character.
[0029] The above-mentioned game matches usually require the participation of multiple game camps. For example, a football match may require the participation of two game camps to simulate two teams in a confrontational relationship; a dragon boat race may require the participation of three or more game camps to simulate different competition teams. Different game camps are usually controlled by corresponding game accounts, or they may be controlled by the game system. The same game account may also control multiple game camps, which is not limited here.
[0030] Assume that the first game camp among multiple game camps is controlled by a game account through a terminal device. The first game camp can be one or more. A game account usually has multiple virtual characters. Before entering a game match, the game account can select a virtual character that matches the game match from multiple virtual characters to form a first game camp. For the convenience of writing, the virtual character in the first game camp is referred to as the first virtual character, and the other virtual characters owned by the game account are referred to as the second virtual characters.
[0031] The above matching usually includes matching the number of selected virtual characters with the number of virtual characters required by the game. When the game has requirements for the attributes of the virtual characters, it is also necessary to make the attributes of the selected virtual characters match the requirements. For example, when the game is a football match, the virtual characters required to participate in the game include virtual characters that can serve as forwards, defenders, goalkeepers, etc. Virtual characters usually have attribute parameters, and by reading the attribute parameters of the virtual characters, it can be further determined whether the virtual characters meet the attribute requirements of the game.
[0032] Step S104: in response to a designated touch operation on a third virtual character among the plurality of first virtual characters, determining the third virtual character as a character to be replaced.
[0033] The above-mentioned designated touch operation may include multiple types, such as click, long press, sliding operation, etc. The above-mentioned click or long press operation usually directly acts on the display area of the third virtual character in the graphical user interface. When the designated touch operation is a sliding operation, a control or a triggerable area that can be used to trigger the character replacement is usually pre-set in the graphical user interface. When the player needs to replace the third virtual character with another virtual character, the third virtual character can be used as the starting point of the sliding operation, and the contact point of the sliding operation can be released in the preset control or triggerable area, thereby realizing the selection of the third virtual character.
[0034] When the third virtual character has a binding relationship with other virtual characters in the first game camp, after the third virtual character is selected, the virtual characters having a binding relationship with the third virtual character can also be determined as the characters to be replaced.
[0035] The third virtual character is usually one; in actual applications, there may be multiple third virtual characters, and the corresponding designated touch operation may also be designed as a touch mode for multiple virtual characters. For example, a player may long press a certain virtual character, and at the same time release the touch operation, long press other virtual characters, thereby selecting two third virtual characters as the characters to be replaced. The specific settings can be made according to the needs, and are not limited here.
[0036] Step S106, based on the attribute parameters of the third virtual character and the attribute parameters of at least one second virtual character, determine the target virtual character from the at least one second virtual character, and display the character identification of the target virtual character on the graphical user interface; the attribute parameters are used to indicate the function of the virtual character in the game game, and / or, the current state of the virtual character.
[0037] A virtual character may include one or more attribute parameters. Attribute parameters may indicate the functions of the virtual character in the game, such as assisting, attacking, defending, providing treatment, etc. The functions represented by attribute parameters are usually related to the game settings. Attribute parameters may also indicate the current health value, force value, weapon level, etc. of the virtual character. These contents jointly determine the current status of the virtual character, that is, how strong the attack power is and how strong the anti-attack ability is.
[0038] When the game game has requirements for the functions of the virtual characters involved, if it is necessary to replace the third virtual character, it is usually necessary to replace the third virtual character with another virtual character with the same or similar functions. In this case, it is necessary to determine the function of the third virtual character based on the attribute parameters of the third virtual character, and determine the second virtual character with the same or similar functions as the third virtual character based on the attribute parameters of the second virtual character. Then, the determined second virtual character can be determined as the target virtual character.
[0039] The number of target virtual characters may be one or more. When the number of determined second virtual characters is greater than the number of target virtual characters, the current state of the selected second virtual characters may be further determined based on the attribute parameters used to represent the current state, and then the second virtual character with a better current state may be used as the target virtual character.
[0040] When the game has no requirements on the functions of the virtual characters involved, the current state of the second virtual character can be determined directly based on the attribute parameters used to represent the current state, so that the second virtual character with a better state can be selected as the target virtual character.
[0041] After the target virtual character is determined, the character identification of the target virtual character can be displayed on the graphical user interface. Specifically, it can be displayed above the third virtual character, such as Figure 2It can also be displayed in a fixed position in the graphical user interface, which is not limited here.
[0042] The above-mentioned character identification is usually triggerable and can display the avatar, name and other information of the target virtual character.
[0043] Step S108, in response to the triggering operation on the character identification of the target virtual character, the target virtual character is controlled to replace the character to be replaced to participate in the game.
[0044] There are many types of trigger operations, such as click, double click, long press, and sliding operations. Click, double click, and long press operations are usually for the character logo itself. And sliding operations are usually sliding from the character logo as the starting point to the replacement character. Players can use trigger operations to indicate that they need to replace the character, thereby achieving the replacement between the target virtual character and the replacement character.
[0045] The above-mentioned method for replacing a virtual character in a game, in response to a game match start instruction, controls multiple game camps to join the game match, and displays the game scene where the game match is located on a graphical user interface; in response to a designated touch operation on a third virtual character among multiple first virtual characters, determines the third virtual character as a character to be replaced; based on the attribute parameters of the third virtual character and the attribute parameters of at least one second virtual character, determines the target virtual character, and displays the character identification of the target virtual character on the graphical user interface; in response to a trigger operation on the character identification of the target virtual character, controls the target virtual character to replace the character to be replaced to participate in the game match. In this method, players can select game characters participating in the game match during the game match and perform role replacement, which simplifies the role switching operation, maintains the process of the game match, and improves the player's gaming experience.
[0046] The following embodiment provides a specific method for determining a third virtual character as a character to be replaced in response to a designated touch operation on a third virtual character among a plurality of first virtual characters.
[0047] In actual applications, the above-mentioned designated touch operation may be a click operation. After the player targets a certain virtual character among the multiple virtual characters (for the convenience of writing, referred to as the "third virtual character"), in response to the click operation on the third virtual character among the multiple first virtual characters, the third virtual character is determined as the character to be replaced. In order to prompt the player to select the character to be replaced, the character to be replaced is displayed in a preset first display format. The first display format is different from the initial display format of the character to be replaced. The first display format may be a highlight display, a jitter display, an enlarged display, etc., which is not limited here.
[0048] The following embodiment provides a specific method for determining a target virtual character from at least one second virtual character based on attribute parameters of a third virtual character and attribute parameters of at least one second virtual character, and displaying a character identification of the target virtual character on a graphical user interface.
[0049] The above attribute parameters may include a first parameter, a second parameter and a third parameter. The first parameter is used to indicate the function of the virtual character in the game; the second parameter is used to indicate the evaluation value corresponding to the virtual character; and the third parameter is used to indicate the current virtual physical strength value of the virtual character. The evaluation value may be generated by other game accounts using the virtual character, similar to scoring the character.
[0050] In a specific implementation process, for each second virtual character in at least one second virtual character, based on the first parameter of the third virtual character and the second parameter of the second virtual character, the degree of matching between the function of the second virtual character and the third virtual character is determined. A virtual character may have a single function or multiple functions, and different functions usually have a primary and secondary order. When the second parameter of the second virtual character indicates that the second virtual character does not have a function used by the third virtual character in a game match, the degree of matching is usually 0. When the second parameter of the second virtual character indicates that the second virtual character has a function used by the third virtual character in a game match, the degree of matching between the functions of the second virtual character and the third virtual character can be further determined based on the ranking of the function in the multiple functions of the second virtual character.
[0051] After determining the degree of matching, the fourth parameter corresponding to the second virtual character can be determined based on the degree of matching, the second parameter of the second virtual character, the third parameter and the preset weight parameter; the weight parameter is used to indicate the degree of matching, the importance of the second parameter and the third parameter. For example, weight parameters of 0.5, 0.3 and 0.2 can be set for the degree of matching, the second parameter and the third parameter respectively. The importance of the degree of matching, the second parameter and the third parameter decreases in turn. The degree of matching can be represented by a numerical value, the second parameter can be represented by an evaluation value; the third parameter can be represented by the current virtual physical strength value. Based on these numerical values and weight parameters, a numerical value can be calculated and used as the parameter value of the fourth parameter. Furthermore, the target virtual character can be determined from at least one second virtual character based on the fourth parameter of at least one second virtual character. Generally speaking, the second virtual character with a higher parameter value corresponding to the fourth parameter will be determined as the target virtual character.
[0052] After determining the target virtual character, the character identification of the target virtual character can be controlled to be displayed in the interface interaction window in the graphical user interface. The interface interaction window is used to display system events and / or interact with application software downloaded in the terminal device. The interface interaction window can be an interaction window provided by the interface interaction application for the terminal device, and the interface interaction application is an application software provided by the terminal device; the interface interaction window can also be an interaction window provided by the terminal device system. The display position of the above-mentioned interface interaction window on the graphical user interface can have a fixed position (such as the smart island in the iOS system) or a non-fixed position (such as a floating window). In some cases, the display position and display shape of the interface interaction window can be changed by the user of the terminal device through touch operation.
[0053] A game account usually has multiple second virtual characters. The player may be dissatisfied with the determined target virtual character, and needs to update the target virtual character. To solve this problem, the graphical user interface displays an update logo while displaying the character logo of the target virtual character, such as Figure 3 The player can perform a trigger operation such as clicking or long pressing the update representation, and in response to the trigger operation on the update identifier, a fifth virtual character is determined from the second virtual characters other than the target virtual character, and the fifth virtual character is determined as the updated target virtual character, and then the character identifier of the updated target virtual character is displayed on the graphical user interface.
[0054] When determining the fifth virtual character, the second virtual characters other than the target virtual character may be sorted according to the fourth parameter; then the fifth virtual character is determined based on the sorting result. Usually, the second virtual character with the largest fourth parameter in the sorting result is determined as the fifth virtual character.
[0055] The following embodiment provides a specific method of responding to a trigger operation on a character identification of a target virtual character and controlling a target virtual character to participate in a game instead of a character to be replaced.
[0056] In actual applications, the trigger operation may be a sliding operation. The player starts the sliding operation with the character identifier of the target virtual character as the starting point, responds to the sliding operation with the character identifier of the target virtual character as the starting point, monitors the touch point of the sliding operation; in response to the touch point of the sliding operation being released at the display position of the character to be replaced, it is considered that the player confirms the replacement of the character, and at this time, the target virtual character needs to be controlled to replace the character to be replaced to participate in the game.
[0057] The disclosed embodiment also provides another method for replacing a virtual character in a game. Figure 1The method is implemented on the basis of the method shown in the figure. This method aims to solve the problem of convenience and intelligent recommendation of substitution operation in football mobile games. Through the use of intelligent substitution based on Lingdong Island, players can make substitution operations more smoothly, and provide the best substitution recommendation through intelligent algorithms.
[0058] The method is implemented by the following steps:
[0059] 1. Players can click to select players on the court, and the selected players will be displayed as selected. Figure 4 As shown; at this time, the Lingdong Island will show the player portraits recommended by the system for replacement. You can temporarily set two replaceable player portraits, such as Figure 5 shown.
[0060] 2. The player drags the player portrait on Lingdong Island to the selected player on the court. This will trigger the substitution function, and the Lingdong Island substitution function will no longer be displayed.
[0061] In the player interaction design, this method designs and implements interactive modes such as clicking players and dragging and dropping avatars. Adding the dragging interaction of player avatars in Smart Island requires ensuring the smoothness and intuitiveness of the interactive operation, improving the convenience and fluency of the substitution operation, and enhancing the gaming experience.
[0062] This method uses intelligent algorithms to provide players with the best substitution recommendations based on the current game situation and player status. This may involve real-time analysis of player data, game conditions and strategy requirements in order to provide players with the most appropriate substitution suggestions, thereby improving the strategy and fun of the game.
[0063] For the above method embodiments, see Figure 6 A virtual character replacement device in a game is shown, which provides a graphical user interface through a terminal device; the device includes:
[0064] The scene display module 602 is used to control multiple game camps to join the game game in response to the game match start instruction, and display the game scene where the game game is located on the graphical user interface; the game camps include a first game camp; the first game camp is controlled by the terminal device; multiple first virtual characters in the first game camp belong to the game account corresponding to the terminal device; the game account also has at least one second virtual character;
[0065] The to-be-replaced character determination module 604 is configured to determine the third virtual character as the to-be-replaced character in response to a designated touch operation on a third virtual character among the plurality of first virtual characters;
[0066] The target virtual character determination module 606 is used to determine the target virtual character from the at least one second virtual character based on the attribute parameters of the third virtual character and the attribute parameters of the at least one second virtual character, and display the character identification of the target virtual character on the graphical user interface; the attribute parameters are used to indicate the function of the virtual character in the game game, and / or the current state of the virtual character;
[0067] The role replacement module 608 is used to respond to the triggering operation of the role identification of the target virtual character and control the target virtual character to replace the character to be replaced to participate in the game.
[0068] The above-mentioned virtual character replacement device in a game controls multiple game camps to join the game game in response to a game match start instruction, and displays the game scene where the game match is located on a graphical user interface; in response to a designated touch operation on a third virtual character among multiple first virtual characters, the third virtual character is determined as a character to be replaced; based on the attribute parameters of the third virtual character and the attribute parameters of at least one second virtual character, a target virtual character is determined, and the character identification of the target virtual character is displayed on the graphical user interface; in response to a trigger operation on the character identification of the target virtual character, the target virtual character is controlled to participate in the game match instead of the character to be replaced. In this method, players can select game characters participating in the game match during the game match and perform role replacement, which simplifies the role switching operation, maintains the process of the game match, and improves the game experience of players.
[0069] The target virtual character determination module is also used to: control the display of the role identification of the target virtual character in the interface interaction window in the graphical user interface; wherein the interface interaction window is used to display system events and / or interact with application software downloaded in the terminal device.
[0070] The above-mentioned character replacement module is also used to: respond to a sliding operation starting from the character identifier of the target virtual character, monitor the contact of the sliding operation; in response to the contact of the sliding operation being released at the display position of the character to be replaced, control the target virtual character to participate in the game instead of the character to be replaced.
[0071] The target virtual character determination module is further used to: in response to a click operation on a third virtual character among the plurality of first virtual characters, determine the third virtual character as the character to be replaced; display the character to be replaced in a preset first display format; the first display format is different from an initial display format of the character to be replaced.
[0072] The above-mentioned attribute parameters include a first parameter, a second parameter and a third parameter; the first parameter is used to indicate the function of the virtual character in the game; the second parameter is used to indicate the evaluation value corresponding to the virtual character; the third parameter is used to indicate the current virtual physical strength value of the virtual character; the above-mentioned target virtual character determination module is also used to: for each second virtual character in at least one second virtual character, based on the first parameter of the third virtual character and the second parameter of the second virtual character, determine the degree of matching between the function of the second virtual character and the third virtual character; based on the matching degree, the second parameter of the second virtual character, the third parameter and a preset weight parameter, determine the fourth parameter corresponding to the second virtual character; the weight parameter is used to indicate the matching degree, the importance of the second parameter and the third parameter; based on the fourth parameter of at least one second virtual character, determine the target virtual character from at least one second virtual character.
[0073] The above-mentioned second virtual character includes multiple ones; the above-mentioned target virtual character determination module is also used to: display the role identification and update identification of the target virtual character on the graphical user interface; respond to the trigger operation for the update identification, determine the fifth virtual character from the second virtual characters other than the target virtual character, and determine the fifth virtual character as the updated target virtual character; display the role identification of the updated target virtual character on the graphical user interface.
[0074] The above-mentioned attribute parameters include a first parameter, a second parameter and a third parameter; the first parameter is used to indicate the function of the virtual character in the game; the second parameter is used to indicate the evaluation value corresponding to the virtual character; the third parameter is used to indicate the current virtual physical strength value of the virtual character; the second virtual character has a corresponding fourth parameter; the fourth parameter is determined based on the first parameter, the second parameter and the third parameter of the second virtual character; the above-mentioned target virtual character determination module is also used to: sort the second virtual characters except the target virtual character according to the fourth parameter; and determine the fifth virtual character based on the sorting result.
[0075] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the virtual character replacement method in the above game, for example:
[0076] In response to a game match start instruction, multiple game camps are controlled to join the game match, and a game scene where the game match is located is displayed on a graphical user interface; in response to a designated touch operation on a third virtual character among multiple first virtual characters, the third virtual character is determined as a character to be replaced; based on attribute parameters of the third virtual character and attribute parameters of at least one second virtual character, a target virtual character is determined, and a character identification of the target virtual character is displayed on a graphical user interface; in response to a trigger operation on the character identification of the target virtual character, the target virtual character is controlled to participate in the game match instead of the character to be replaced.
[0077] In the above method, players can select game characters participating in the game and replace them during the game, which simplifies the role switching operation, maintains the flow of the game, and improves the player's gaming experience.
[0078] Optionally, the above step of displaying the character identification of the target virtual character in the graphical user interface includes: controlling the display of the character identification of the target virtual character in the interface interaction window in the graphical user interface; wherein the interface interaction window is used to display system events and / or interact with application software downloaded in the terminal device.
[0079] Optionally, the above-mentioned step of responding to the trigger operation of the character identification of the target virtual character and controlling the target virtual character to replace the character to be replaced in participating in the game includes: responding to a sliding operation starting from the character identification of the target virtual character, monitoring the contact point of the sliding operation; in response to the contact point of the sliding operation being released at the display position of the character to be replaced, controlling the target virtual character to replace the character to be replaced in participating in the game.
[0080] Optionally, the step of determining the third virtual character as the character to be replaced in response to a designated touch operation on the third virtual character among the multiple first virtual characters includes: determining the third virtual character as the character to be replaced in response to a click operation on the third virtual character among the multiple first virtual characters; displaying the character to be replaced in a preset first display format; the first display format is different from an initial display format of the character to be replaced.
[0081] Optionally, the above-mentioned attribute parameters include a first parameter, a second parameter and a third parameter; the first parameter is used to indicate the function of the virtual character in the game; the second parameter is used to indicate the evaluation value corresponding to the virtual character; the third parameter is used to indicate the current virtual physical strength value of the virtual character; based on the attribute parameters of the third virtual character and the attribute parameters of at least one second virtual character, the step of determining the target virtual character from at least one second virtual character includes: for each second virtual character in the at least one second virtual character, based on the first parameter of the third virtual character and the second parameter of the second virtual character, determining the degree of matching between the function of the second virtual character and the third virtual character; based on the matching degree, the second parameter of the second virtual character, the third parameter and a preset weight parameter, determining the fourth parameter corresponding to the second virtual character; the weight parameter is used to indicate the matching degree, the importance of the second parameter and the third parameter; based on the fourth parameter of at least one second virtual character, determining the target virtual character from at least one second virtual character.
[0082] Optionally, the above-mentioned second virtual character includes multiple characters; the step of displaying the role identification of the target virtual character on the graphical user interface includes: displaying the role identification of the target virtual character and the update identification on the graphical user interface; in response to a trigger operation for the update identification, determining a fifth virtual character from the second virtual characters other than the target virtual character, and determining the fifth virtual character as the updated target virtual character; and displaying the role identification of the updated target virtual character on the graphical user interface.
[0083] Optionally, the above-mentioned attribute parameters include a first parameter, a second parameter and a third parameter; the first parameter is used to indicate the function of the virtual character in the game; the second parameter is used to indicate the evaluation value corresponding to the virtual character; the third parameter is used to indicate the current virtual physical strength of the virtual character; the second virtual character has a corresponding fourth parameter; the fourth parameter is determined based on the first parameter, the second parameter and the third parameter of the second virtual character; the step of determining the fifth virtual character from the second virtual characters other than the target virtual character includes: sorting the second virtual characters other than the target virtual character according to the fourth parameter; and determining the fifth virtual character based on the sorting result.
[0084] See also Figure 7 As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores machine executable instructions that can be executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the virtual character replacement method in the above-mentioned game.
[0085] Further, Figure 7 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0086] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0087] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0088] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the virtual character replacement method in the above game.
[0089] The embodiments of the present disclosure provide a method, device and electronic device for replacing a virtual character in a game, including a computer-readable storage medium storing program code, wherein the program code includes instructions that can be used to execute the methods described in the above method embodiments, for example:
[0090] In response to a game match start instruction, multiple game camps are controlled to join the game match, and a game scene where the game match is located is displayed on a graphical user interface; in response to a designated touch operation on a third virtual character among multiple first virtual characters, the third virtual character is determined as a character to be replaced; based on attribute parameters of the third virtual character and attribute parameters of at least one second virtual character, a target virtual character is determined, and a character identification of the target virtual character is displayed on a graphical user interface; in response to a trigger operation on the character identification of the target virtual character, the target virtual character is controlled to participate in the game match instead of the character to be replaced.
[0091] In the above method, players can select game characters participating in the game and replace them during the game, which simplifies the role switching operation, maintains the flow of the game, and improves the player's gaming experience.
[0092] Optionally, the above step of displaying the character identification of the target virtual character in the graphical user interface includes: controlling the display of the character identification of the target virtual character in the interface interaction window in the graphical user interface; wherein the interface interaction window is used to display system events and / or interact with application software downloaded in the terminal device.
[0093] Optionally, the above-mentioned step of responding to the trigger operation of the character identification of the target virtual character and controlling the target virtual character to replace the character to be replaced in participating in the game includes: responding to a sliding operation starting from the character identification of the target virtual character, monitoring the contact point of the sliding operation; in response to the contact point of the sliding operation being released at the display position of the character to be replaced, controlling the target virtual character to replace the character to be replaced in participating in the game.
[0094] Optionally, the step of determining the third virtual character as the character to be replaced in response to a designated touch operation on the third virtual character among the multiple first virtual characters includes: determining the third virtual character as the character to be replaced in response to a click operation on the third virtual character among the multiple first virtual characters; displaying the character to be replaced in a preset first display format; the first display format is different from an initial display format of the character to be replaced.
[0095] Optionally, the above-mentioned attribute parameters include a first parameter, a second parameter and a third parameter; the first parameter is used to indicate the function of the virtual character in the game; the second parameter is used to indicate the evaluation value corresponding to the virtual character; the third parameter is used to indicate the current virtual physical strength value of the virtual character; based on the attribute parameters of the third virtual character and the attribute parameters of at least one second virtual character, the step of determining the target virtual character from at least one second virtual character includes: for each second virtual character in the at least one second virtual character, based on the first parameter of the third virtual character and the second parameter of the second virtual character, determining the degree of matching between the function of the second virtual character and the third virtual character; based on the matching degree, the second parameter of the second virtual character, the third parameter and a preset weight parameter, determining the fourth parameter corresponding to the second virtual character; the weight parameter is used to indicate the matching degree, the importance of the second parameter and the third parameter; based on the fourth parameter of at least one second virtual character, determining the target virtual character from at least one second virtual character.
[0096] Optionally, the above-mentioned second virtual character includes multiple characters; the step of displaying the role identification of the target virtual character on the graphical user interface includes: displaying the role identification of the target virtual character and the update identification on the graphical user interface; in response to a trigger operation for the update identification, determining a fifth virtual character from the second virtual characters other than the target virtual character, and determining the fifth virtual character as the updated target virtual character; and displaying the role identification of the updated target virtual character on the graphical user interface.
[0097] Optionally, the above-mentioned attribute parameters include a first parameter, a second parameter and a third parameter; the first parameter is used to indicate the function of the virtual character in the game; the second parameter is used to indicate the evaluation value corresponding to the virtual character; the third parameter is used to indicate the current virtual physical strength of the virtual character; the second virtual character has a corresponding fourth parameter; the fourth parameter is determined based on the first parameter, the second parameter and the third parameter of the second virtual character; the step of determining the fifth virtual character from the second virtual characters other than the target virtual character includes: sorting the second virtual characters other than the target virtual character according to the fourth parameter; and determining the fifth virtual character based on the sorting result.
[0098] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0099] In addition, in the description of the embodiments of the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.
[0100] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0101] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0102] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, those skilled in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for replacing a virtual character in a game, characterized in that: Providing a graphical user interface through a terminal device; the method comprises: In response to a game match start instruction, multiple game camps are controlled to join the game match, and a game scene where the game match is located is displayed on the graphical user interface; the game camps include a first game camp; the first game camp is controlled by the terminal device; multiple first virtual characters in the first game camp belong to a game account corresponding to the terminal device; the game account also has at least one second virtual character; In response to a designated touch operation on a third virtual character among the plurality of first virtual characters, determining the third virtual character as a character to be replaced; Based on the attribute parameters of the third virtual character and the attribute parameters of the at least one second virtual character, determining a target virtual character from the at least one second virtual character, and displaying a character identifier of the target virtual character on the graphical user interface; the attribute parameters are used to indicate a function of the virtual character in the game match, and / or a current state of the virtual character; In response to a triggering operation on the character identification of the target virtual character, the target virtual character is controlled to replace the character to be replaced to participate in the game game.
2. The method according to claim 1, characterized in that The step of displaying the character identification of the target virtual character on the graphical user interface comprises: Controlling display of a character identification of the target virtual character in an interface interaction window in the graphical user interface; The interface interaction window is used to display system events and / or interact with application software downloaded to the terminal device.
3. The method according to claim 1, characterized in that In response to a triggering operation on the character identification of the target virtual character, the step of controlling the target virtual character to replace the character to be replaced to participate in the game game comprises: In response to a sliding operation starting from the character identifier of the target virtual character, monitoring a contact point of the sliding operation; In response to the contact point of the sliding operation being released at the display position of the character to be replaced, the target virtual character is controlled to participate in the game game instead of the character to be replaced.
4. The method according to claim 1, characterized in that: In response to a designated touch operation on a third virtual character among the plurality of first virtual characters, the step of determining the third virtual character as a character to be replaced comprises: In response to a click operation on a third virtual character among the plurality of first virtual characters, determining the third virtual character as a character to be replaced; The character to be replaced is displayed in a preset first display format; the first display format is different from an initial display format of the character to be replaced.
5. The method according to claim 1, characterized in that The attribute parameters include a first parameter, a second parameter and a third parameter; the first parameter is used to indicate the function of the virtual character in the game; the second parameter is used to indicate the evaluation value corresponding to the virtual character; The third parameter is used to indicate the current virtual physical strength value of the virtual character; The step of determining a target virtual character from the at least one second virtual character based on the attribute parameters of the third virtual character and the attribute parameters of the at least one second virtual character comprises: For each of the at least one second virtual character, determining a matching degree between a function of the second virtual character and the third virtual character based on a first parameter of the third virtual character and a second parameter of the second virtual character; Determining a fourth parameter corresponding to the second virtual character based on the matching degree, the second parameter of the second virtual character, the third parameter, and a preset weight parameter; the weight parameter is used to indicate the importance of the matching degree, the second parameter, and the third parameter; Based on the fourth parameter of the at least one second virtual character, a target virtual character is determined from among the at least one second virtual character.
6. The method according to claim 1, characterized in that The second virtual character includes a plurality of; The step of displaying the character identification of the target virtual character on the graphical user interface comprises: Displaying the character identifier and update identifier of the target virtual character on the graphical user interface; In response to a trigger operation for the update identifier, determining a fifth virtual character from the second virtual characters except the target virtual character, and determining the fifth virtual character as the updated target virtual character; The updated character identification of the target virtual character is displayed on the graphical user interface.
7. The method according to claim 6, characterized in that The attribute parameters include a first parameter, a second parameter and a third parameter; the first parameter is used to indicate the function of the virtual character in the game; the second parameter is used to indicate the evaluation value corresponding to the virtual character; The third parameter is used to indicate the current virtual physical strength value of the virtual character; the second virtual character has a corresponding fourth parameter; The fourth parameter is determined based on the first parameter, the second parameter and the third parameter of the second virtual character; The step of determining a fifth virtual character from the second virtual characters other than the target virtual character comprises: sorting the second virtual characters except the target virtual character according to a fourth parameter; Based on the ranking results, a fifth virtual character is determined.
8. A virtual character replacement device in a game, characterized in that: Providing a graphical user interface through a terminal device; the device comprises: A scene display module, configured to respond to a game match start instruction, control multiple game camps to join the game match, and display the game scene of the game match on the graphical user interface; the game camps include a first game camp; the first game camp is controlled by the terminal device; multiple first virtual characters in the first game camp belong to the game account corresponding to the terminal device; the game account also has at least one second virtual character; a to-be-replaced character determination module, configured to, in response to a designated touch operation on a third virtual character among the plurality of first virtual characters, determine the third virtual character as a to-be-replaced character; a target virtual character determination module, configured to determine a target virtual character from the at least one second virtual character based on the attribute parameters of the third virtual character and the attribute parameters of the at least one second virtual character, and to display a character identification of the target virtual character on the graphical user interface; the attribute parameters are used to indicate a function of the virtual character in the game match, and / or a current state of the virtual character; The role replacement module is used to respond to the triggering operation of the role identification of the target virtual role and control the target virtual role to replace the role to be replaced to participate in the game game.
9. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method for replacing a virtual character in a game as described in any one of claims 1 to 7.
10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the method for replacing a virtual character in a game as described in any one of claims 1-7.
