[go: up one dir, main page]

CN119236405A - Control method, device and electronic device in game - Google Patents

Control method, device and electronic device in game Download PDF

Info

Publication number
CN119236405A
CN119236405A CN202411017379.7A CN202411017379A CN119236405A CN 119236405 A CN119236405 A CN 119236405A CN 202411017379 A CN202411017379 A CN 202411017379A CN 119236405 A CN119236405 A CN 119236405A
Authority
CN
China
Prior art keywords
game
logic
behavior
virtual object
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202411017379.7A
Other languages
Chinese (zh)
Inventor
苏宇鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202411017379.7A priority Critical patent/CN119236405A/en
Publication of CN119236405A publication Critical patent/CN119236405A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a control method, a control device and electronic equipment in a game, which are used for responding to automatic mode triggering operation, controlling a controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in a game scene according to preset game behavior logic, wherein the game behavior logic is used for limiting triggering conditions of the plurality of game behaviors, responding to logic parameter setting operation, updating the game behavior logic based on logic parameters corresponding to the logic parameter setting operation, and controlling the controlled virtual object to execute at least one game behavior of the plurality of game behaviors according to the updated game behavior logic. In the mode, the player can change the behavior logic of the controlled virtual object in the automatic mode based on the requirement, thereby meeting the adjustment requirement of the player on the automatic combat process, improving the flexibility of the game and improving the game experience of the player.

Description

Control method and device in game and electronic equipment
Technical Field
The disclosure relates to the technical field of games, and in particular relates to a control method and device in a game and electronic equipment.
Background
In some games, players may spend a great deal of time picking up virtual supplies in an open game scene and fighting with enemy-founded characters. To reduce the tired gaming experience that the above-described game process has brought to the player, an automatic combat mode is typically set, which the player can select to have the game system control the virtual character to automatically perform the actions of picking up supplies and combat with the enemy character. However, this approach is more mechanical than the actual operation of the player, is not flexible enough, and is difficult to meet the control needs of the player for the virtual character.
Disclosure of Invention
Accordingly, an object of the present disclosure is to provide a method and an apparatus for controlling a game and an electronic device, so that a player can change behavior logic of a controlled virtual object in an automatic mode based on a requirement, thereby meeting a requirement of the player on adjustment of an automatic combat process, improving flexibility of the game and improving game experience of the player.
According to the method, a trigger operation is responded, at least one game behavior of a plurality of preset game behaviors is controlled to be executed in the game scene by the controlled virtual object according to preset game behavior logic, the game behavior logic is used for limiting trigger conditions of the game behaviors, the game behavior logic is updated according to logic parameter setting operation corresponding to the logic parameter setting operation, and at least one game behavior of the plurality of game behaviors is executed by the controlled virtual object according to the updated game behavior logic.
In a second aspect, an embodiment of the present disclosure provides a control device in a game, where a graphical user interface is provided through a terminal device, where the graphical user interface displays a game scenario where a controlled virtual object is located, where the device includes an automatic mode triggering module, configured to control, according to a preset game behavior logic, the controlled virtual object to execute at least one game behavior of a preset plurality of game behaviors in the game scenario, in response to an automatic mode triggering operation, where the game behavior logic is configured to define triggering conditions of the plurality of game behaviors, a game behavior logic updating module, configured to update, in response to a logic parameter setting operation, the game behavior logic based on a logic parameter corresponding to the logic parameter setting operation, and an automatic mode control module, configured to control, according to the updated game behavior logic, the controlled virtual object to execute at least one game behavior of the plurality of game behaviors.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores machine executable instructions executable by the processor, and the processor executes the machine executable instructions to implement the above-described control method in a game.
In a fourth aspect, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of controlling in a game described above.
The embodiment of the invention has the following beneficial effects:
The control method, the control device and the electronic equipment in the game respond to the automatic mode triggering operation, control the controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in a game scene according to the preset game behavior logic, the game behavior logic is used for limiting the triggering conditions of the plurality of game behaviors, respond to the logic parameter setting operation, update the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation, and control the controlled virtual object to execute at least one game behavior of the plurality of game behaviors according to the updated game behavior logic. In the mode, the player can change the behavior logic of the controlled virtual object in the automatic mode based on the requirement, thereby meeting the adjustment requirement of the player on the automatic combat process, improving the flexibility of the game and improving the game experience of the player.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the disclosure. The objectives and other advantages of the disclosure will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of in-game control provided by an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of a control device in a game according to an embodiment of the present disclosure;
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the present disclosure will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person skilled in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
In some games, a player controls a controlled virtual object to pick up materials and escape from a designated scene area, and the accumulated value is a main game mode. Players often spend a great deal of time picking up supplies and combat in the game, and operating too frequently can lead to fatigue of the player. In the related art, by providing an automatic mode for a player, when the player triggers the automatic mode, a controlled virtual object performs a game according to a preset game logic. For example, the controlled virtual object first performs a movement behavior, and automatically picks up the virtual prop when a distance between the controlled virtual object and the pickable virtual prop is smaller than or equal to a preset distance during the movement.
However, this approach is more mechanical than the actual operation of the player, is not flexible enough, and is difficult to meet the control needs of the player for the virtual character.
Based on the above, the method, the device and the electronic equipment for controlling the game provided by the embodiment of the disclosure can be applied to a scene where the virtual character is required to automatically execute the game action.
The control method in the game in one embodiment of the invention can be operated on a local terminal device or a server. When the control method in the game runs on the server, the mode can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications, such as cloud gaming, may be run under the cloud interaction system. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presentation main body are separated, the storage and running of the control method in the game are completed on a cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function, such as a mobile terminal, a television, a computer, a palm computer and the like, which is close to a user side, but is the cloud game server 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, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
Referring to fig. 1, first, a method for controlling a game provided by the embodiment of the present invention is described, and a graphical user interface is provided by a terminal device, where the graphical user interface displays a game scene where a controlled virtual object is located. The method comprises the following steps:
Step S102, responding to the automatic mode triggering operation, controlling the controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in a game scene according to preset game behavior logic, wherein the game behavior logic is used for limiting the triggering conditions of the plurality of game behaviors.
The automatic mode triggering operation may be various. For example, a control for triggering the automatic mode may be set in the graphical user interface, and the triggering operation of the player for the control may be regarded as the automatic mode triggering operation. When the player controls the controlled virtual object through the keyboard or the game handle, a certain key of the keyboard or the game handle can be set to trigger the automatic mode, and the pressing operation of the key by the player can be regarded as the automatic mode triggering operation. Specifically, the method can be set according to the requirements, and is not limited herein.
The game actions that the controlled virtual object can execute may be various, such as a moving action, a prop picking action, a rest action, an attack action, a treatment action, and the like. The above-mentioned attack behavior, treatment behavior, etc. may also be generally regarded as being realized by skill release behavior, and may be specifically set according to the need, and are not limited herein.
In different game scenes, the game behaviors that the controlled virtual object can execute may be different, and when the controlled virtual object needs to execute a prop picking task in a certain game scene, the game behaviors that the controlled virtual object needs to execute in the game scene may only have moving behaviors and prop picking behaviors. In a different game scenario, the game actions that the controlled virtual object needs to perform are a subset of the set of game actions that it can perform. The preset plurality of game behaviors may refer to game behaviors that the controlled virtual object may execute, or may refer to game behaviors that the controlled virtual object needs to execute in the current game scene, which is not limited herein.
When a player controls a controlled virtual object through a control operation, whether the controlled virtual object performs a certain game action is generally judged by the player through own logic. For example, when the controlled virtual object is executing a moving action, and an available game prop is encountered in the game scene, the player may determine whether to control the controlled virtual object to obtain the game prop according to one or several factors of the type, the level of the game prop, the capacity in the knapsack of the controlled virtual object, or the player may not consider these factors, but control the controlled virtual object to obtain the virtual prop when the controlled virtual object encounters the available game prop. In the non-automatic mode, whether or not the controlled virtual object performs a certain game action is mostly controlled by the player.
After the controlled virtual object enters the automatic mode, whether the controlled virtual object executes a certain game action does not need to be judged and controlled by a player, but needs to be realized through game action logic. The above game behavior logic is typically used to define trigger conditions for a plurality of game behaviors. In the automatic mode, when a trigger condition corresponding to a certain game action is satisfied, the controlled virtual object executes the game action without the need for the player to control.
Compared with the control operation of a player, the game behavior logic is more mechanical, when the trigger condition corresponding to a certain game behavior is met, the controlled virtual object can execute the game behavior, and if the trigger condition corresponding to the game behavior is not met, the controlled virtual object can not execute. For example, a game play logic may control a controlled virtual object to pick up a higher value game play object or a lower value game play object, but it is difficult to control a controlled virtual object to discard a pick-up game play object while a particular teammate is also near the game play object.
The trigger condition is usually related to either one of the state of the virtual object in the game scene and the self state of the controlled virtual object, or may be related to both states. Virtual objects in a game scene may refer to game props, or other virtual characters, without limitation. The state of the virtual object in the game scene may refer to the attribute of the virtual object itself, and when the virtual object may execute the game behavior and the game behavior executed by the virtual object may affect the attribute of itself, the above state may also be determined by the attribute of the virtual object and the game behavior executed. The state of the virtual object may also be changed by the interaction of the states of other virtual objects, which is not limited herein.
For example, the triggering condition of the therapeutic behavior of the controlled virtual object may be that the current life value of the controlled virtual object is smaller than the preset life value. The triggering condition of the rest behavior can be that the time length between the controlled virtual object and the last time of executing the rest behavior reaches the appointed time length, and the controlled virtual object does not execute the appointed game behavior, wherein the appointed game behavior can be an attack behavior, a prop picking behavior and the like. The triggering condition of the attack behavior of the controlled virtual object may be that the fight value of the enemy object is smaller than or equal to a preset fight threshold value, and the controlled virtual object carries the specified game prop. Specifically, the number of the components may be plural, and the limitation is not restricted. Some game behaviors of the controlled virtual object may also be absent a trigger condition, e.g., the controlled virtual object may continue to perform moving behaviors until a trigger condition of other game behaviors is satisfied.
Step S104, responding to the logic parameter setting operation, and updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation.
The logic parameters may be used to set one or more game behaviors triggered by the specified trigger conditions, or set trigger conditions corresponding to the one or more specified game behaviors. When the logic parameter is used for setting the game behavior corresponding to the trigger condition, different parameter values corresponding to the logic parameter represent different trigger conditions, and when the logic parameter is used for setting the game behavior corresponding to the trigger condition, different parameter values corresponding to the logic parameter represent different game behaviors. The parameter value may be a value in a conventional sense, or may be a character string, etc., and is not limited thereto.
The above logical parameter setting operation may be various. The logic parameters may be one or more. For each logical parameter, a plurality of options corresponding to the logical parameter can be displayed on the graphical user interface, and different options correspond to different parameter values. When a player selects a certain option, the parameter value of the logic parameter may be set to the parameter value corresponding to the option. Namely, setting the triggering condition of the game behavior corresponding to the logic parameter as the triggering condition corresponding to the parameter value, or setting the game behavior triggered by the triggering condition corresponding to the logic parameter as the game behavior corresponding to the parameter value.
The editing window corresponding to the logic parameter can be displayed, the player can input text data by editing the editing window, after identifying the text data, the parameter value matched with the expression content of the text data is determined, and the parameter value of the logic parameter is set as the corresponding parameter value, so that the setting of the triggering condition of the game behavior or the setting of the game behavior triggered by the triggering condition is realized.
After determining the logic parameters corresponding to the logic parameter setting operation, the parameter values of the logic parameters can be read, and the game behaviors and the trigger conditions set by the logic parameter setting operation are determined by combining the game behaviors or the trigger conditions corresponding to the logic parameters. Further, a part related to the set logic parameter may be determined from the current game behavior logic, and the part may be replaced with the game behavior and the trigger condition set through the logic parameter setting operation, thereby completing the update of the game behavior logic.
In the course of the logic update, when the logic parameter corresponds to a certain game behavior or certain game behaviors, the trigger behavior of the game behavior or behaviors in the game behavior logic can be replaced by the set trigger condition. When the logic parameter corresponds to a certain trigger condition or conditions, then the game behavior triggered by the trigger condition or conditions in the game behavior logic may be replaced with a set game behavior.
And step S106, controlling the controlled virtual object to execute at least one game action of the plurality of game actions according to the updated game action logic.
After updating the game behavior logic, the controlled virtual object executes the game behavior of the plurality of game behaviors according to the updated game behavior logic. In the process of automatically executing the game behavior by the controlled virtual object, the player can change the logic parameters through the logic parameter setting operation according to the change of the requirements, and change the behavior logic of the controlled virtual object, so as to obtain different game results.
The control method in the game comprises the steps of responding to an automatic mode triggering operation, controlling a controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in a game scene according to preset game behavior logic, enabling the game behavior logic to be used for limiting triggering conditions of the plurality of game behaviors, responding to a logic parameter setting operation, updating the game behavior logic based on logic parameters corresponding to the logic parameter setting operation, and controlling the controlled virtual object to execute at least one game behavior of the plurality of game behaviors according to the updated game behavior logic. In the mode, the player can change the behavior logic of the controlled virtual object in the automatic mode based on the requirement, thereby meeting the adjustment requirement of the player on the automatic combat process, improving the flexibility of the game and improving the game experience of the player.
The following embodiments provide a specific way to control a controlled virtual object to execute at least one game action of a preset plurality of game actions according to preset game action logic in response to an automatic mode triggering operation.
To facilitate the player's automatic mode of opening the controlled virtual object, a first control may be provided at the graphical user interface, as shown in FIG. 2. The player can click, press, etc. the first control. And responding to the triggering operation aiming at the first control, and controlling the controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors according to preset game behavior logic.
In order to facilitate the player to know that the controlled virtual object is in the automatic mode, a first identifier for indicating the automatic mode may be displayed on the graphical user interface, where the first identifier may be displayed at a fixed position with the graphical user interface, and may also be displayed at a designated position of the controlled virtual object, such as at a top of head position of the controlled virtual object. The controlled virtual object may also be displayed in a first display format that is different from an initial display format of the controlled virtual object. For example, the first display format may be a lighting format, i.e. lighting display of the controlled virtual object. In practical application, the first identifier may be displayed and the controlled virtual object may be displayed in a special display format, which is not limited herein.
After the player triggers the first control, the first control may be replaced with a cancel control, as shown in FIG. 3. Or the first control is displayed in a non-triggerable state and simultaneously the cancel control is displayed in a graphical user interface, as shown in fig. 4, the first control being displayed in gray, indicating that it is in a non-triggerable state. The player can click, press for a long time, etc. the trigger operation of the cancel control is responded, and the execution of the game action by the controlled virtual object is controlled according to the preset game action logic, namely, the automatic mode of the press of the controlled virtual object is canceled.
The game actions that the controlled virtual object can perform in the game scene are usually various, such as a moving action, an attack action, a prop picking action, a prop replacing action, and the like. The controlled virtual object typically performs one of the above actions, or simultaneously performs multiple actions, under control of game action logic, without limitation.
For different game behaviors, corresponding control controls are generally set so as to facilitate the player to control the game behaviors corresponding to the controlled virtual objects. Thus, the graphical user interface typically also displays a plurality of control controls. In the process that the controlled virtual object executes the game behavior in the game scene according to the preset game behavior logic, if a player performs control operation on a certain control, in general, the control can be any control in a plurality of control controls, and at the moment, the player can be considered to want to control the controlled virtual object to execute the game behavior by himself. And in response to the control operation of any one of the plurality of control controls, canceling the execution of the game action by controlling the controlled virtual object according to the preset game action logic.
The following embodiments provide a specific way to update game behavior logic in response to a logic parameter setting operation based on a logic parameter corresponding to the logic parameter setting operation.
After the player controls the controlled virtual object to enter the automatic mode through the automatic mode triggering operation, a logic parameter setting control can be displayed on the graphical user interface. And responding to a first setting operation acting on the logic parameter setting control, and updating game behavior logic based on the logic parameter corresponding to the logic parameter setting operation. When the logic parameters to be set are only 1, and the corresponding options are fewer, a plurality of options of the logic parameters can be directly displayed as logic parameter setting controls. The first setting operation is typically selecting one of a plurality of options displayed.
When the logic parameters to be set are multiple, or the display space required by the options corresponding to the logic parameters is larger, in order to save the screen space, the logic parameter setting control can be only one control for triggering the logic parameter setting. The player can perform trigger operations such as clicking, long-pressing and the like on the control, respond to the trigger operation acted on the logic parameter setting control, and display a plurality of options corresponding to the preset logic parameters to be set. Wherein the logic parameters to be set may be one or more. As shown in fig. 5, taking an example that the logic parameters to be set include a parameter 1 and a parameter 2, the parameter 1 corresponds to an option 1 and an option 2, the parameter 2 corresponds to an option 3 and an option 4, and gray indicates that the option is in a selected state.
The logic parameter to be set generally comprises at least one item of information including a plurality of trigger conditions corresponding to preset game behaviors or a plurality of game behaviors corresponding to preset trigger conditions. I.e. the logic parameters to be set are typically used for setting a certain or certain game behavior trigger conditions or for setting a game behavior corresponding to a certain trigger condition.
Wherein the preset gaming behavior may comprise one or more of a preset plurality of gaming behaviors. For example, the preset game behavior may include both a moving behavior and an attacking behavior, that is, approaching and attacking the enemy object. The triggering condition corresponding to the preset game behavior comprises the state of the game object related to the preset game behavior, and can also comprise the behavior result of the game behavior related to the preset game behavior, or both. The game object related to the preset game behavior may be an executor of the game behavior, that is, a controlled virtual object, or may be an execution object of the game behavior, for example, when the game behavior is a prop acquisition behavior, the execution object is a virtual prop. The above-described states are generally determined based on attributes of the game object, game behavior performed by the game object, or game behavior acting on the game object. Specifically, the number of the components may be plural, and the limitation is not restricted. The game behavior related to the preset game behavior may be a game behavior that is mutually switched with the preset game behavior, for example, the controlled virtual object may be switched to a prop acquisition behavior when executing the moving behavior, and the controlled virtual object is generally difficult to be switched to the prop acquisition behavior when executing the attacking behavior, so that the prop acquisition behavior is a game behavior related to the moving behavior, but not a game behavior related to the attacking behavior. Specifically, the method can be set according to the requirements, and is not limited herein.
When the logic parameter to be set corresponds to the preset game behavior, each corresponding option represents the triggering condition of the preset game behavior, and the triggering conditions corresponding to different options are different. For example, the preset game behavior corresponding to the logic parameter to be set can be prop replacement behavior, the options corresponding to the logic parameter to be set comprise a first option and a second option, and the triggering condition corresponding to the first option is that the number of first virtual props owned by the controlled virtual object is equal to a preset number threshold, the attribute value of the first attribute of the target prop is larger than the attribute value of the first attribute of at least one virtual prop in the first virtual props, the target prop has a pickable attribute, and the distance between the target prop and the controlled virtual object is smaller than or equal to a preset distance threshold. The triggering condition corresponding to the second option is that the number of the first virtual props owned by the controlled virtual object is equal to a preset number threshold, and the attribute value of the second attribute of the target prop is larger than the attribute value of the second attribute of at least one virtual prop in the first virtual props, wherein the first attribute and the second attribute are different.
The above-mentioned number threshold is typically the maximum number of game props that the controlled virtual object is capable of having. The first option indicates that when the controlled virtual object can pick up the target prop, the condition for replacing the target prop with the game prop owned by the controlled virtual object is that the attribute value of the first attribute of the target prop is larger than the attribute value of the first attribute of at least one game prop owned by the controlled virtual object. The first attribute may be a plurality of, such as virtual value, combat value, etc. The second option differs from the first option in that a first attribute in the condition is replaced with a second attribute, e.g., the first attribute is a life value enhancing attribute, which may be a combat value enhancing attribute. The logic parameter is used to set preferences for property attributes when property pick-up is performed.
When the logic parameter to be set corresponds to the preset trigger condition, each option represents the game behavior corresponding to the preset trigger condition, and the game behaviors corresponding to the preset trigger conditions corresponding to different options are different. In specific implementation, the preset triggering condition corresponding to the logic parameter to be set may be that the distance between the first virtual object and the controlled virtual object is smaller than or equal to the specified distance, which is equivalent to the enemy object encountered by the controlled virtual object. The first virtual object and the controlled virtual object are in a game scene together, and the game camp of the first virtual object is different from the game camp of the controlled virtual object, namely the first virtual object is an enemy object of the controlled virtual object.
In order to distinguish the first option and the second option, the options corresponding to the logic parameter to be set are called a third option and a fourth option. The game behavior corresponding to the third option comprises a first moving behavior and an attack behavior, the moving direction corresponding to the first moving behavior is the direction facing the first virtual object, and the game behavior corresponding to the fourth option comprises a second moving behavior, and the moving direction corresponding to the second moving behavior is the direction far away from the first virtual object. The third option is to move to the enemy object after the controlled virtual object encounters the enemy object and attack the enemy object, and the fourth option is to keep away from the enemy object, namely escape, after the controlled virtual object encounters the enemy object. When different options are selected, the controlled virtual object will perform different game actions after encountering the enemy object.
The player may click, press, etc. on a certain option to select the option, and for convenience of the text, the option selected by the player is referred to as a first option, where in actual application, the first option may be any one of multiple options. In response to a selection operation for at least one of the plurality of options, the selected option is determined to be a target option, and in some cases, it may be set that the option is capable of multiple selection. Further, the game behavior logic needs to be updated based on the logic parameters to be set and the target options. The processing logic corresponding to the logic parameter to be set in the game behavior logic before updating is also generally used as an option, and when the player does not select, the option in the unselected state is displayed as the option corresponding to the logic adopted in the current game behavior logic.
When the logic parameters to be set correspond to preset game behaviors, and each option represents a trigger condition of the preset game behaviors, the trigger condition of the preset game behaviors in the game behavior logic is required to be updated to the trigger condition corresponding to the target option.
When the logic parameter to be set corresponds to the preset trigger condition, and each option represents the game behavior corresponding to the preset trigger condition, the game behavior corresponding to the preset trigger condition in the game behavior logic needs to be updated to the game behavior corresponding to the target option.
In order to facilitate the player to set the scene range of the game behavior to be executed by the controlled virtual object in the automatic mode, in response to the automatic mode triggering operation, the scene range setting control can be displayed on the graphical user interface, the setting control can be displayed in parallel with the logic parameter setting control, or can be displayed on the graphical user interface after the player triggers the logic parameter setting control, and the setting can be specifically performed according to the requirement without limitation.
The player may perform a setting operation on the scene range setting control, which may be referred to as a second setting operation in order to distinguish from the above-described setting operation. And responding to a second setting operation of the scene range setting control, determining a target scene range based on a range parameter corresponding to the second setting operation and the current position of the controlled virtual object, and controlling the controlled virtual object to execute at least one game behavior in a plurality of game behaviors in the target scene range.
The above-described scene range setting control may include a slider and a moving region of the slider, as shown in fig. 6. At this time, the second setting operation may be a sliding operation applied to the slider, and when the player releases the contact point of the sliding operation, the range parameter corresponding to the position of the slider in the moving area at this time is the range parameter used for determining the target scene range subsequently. The moving area has a corresponding range parameter range, which is generally determined by an upper limit and a lower limit of the range parameter. The lower limit is typically preset, while the upper limit of the range parameter range may also be preset, or determined based on the size of the game scene. It is often desirable to ensure that the target scene range determined based on the upper limit is less than or equal to the size of the game scene.
The range parameter may be a range radius or a range area. When the range parameter is the range radius, the range radius corresponding to the second setting operation is taken as the radius, the current position of the controlled virtual object is taken as the circle, so that the circular scene area in the game scene is determined, and the circular scene area is determined as the target scene range.
In order to facilitate the player in controlling the time that the controlled virtual object is in the automatic mode, a control may be set in response to the automatic mode triggering operation, at the graphical user interface display mode duration. The control can be displayed as an input box mode, a player can input a numerical value to set the time length, the control can also be displayed as a slider control, the player can slide a slider in the slider control, and the position of the slider on the slider is changed, so that the time that the controlled virtual object is in an automatic mode is changed.
The above operation may be referred to as a third setting operation. And responding to a third setting operation acted on the mode duration setting control, and determining the target duration of the controlled virtual object in the automatic mode. The time length set by the player through the mode time length setting control can be the total time length of the controlled virtual object in the automatic mode, namely the target time length, or the time length of the controlled virtual object in the automatic mode, wherein the target time length is the sum of the set time length and the time length of the controlled virtual object in the automatic mode. And stopping controlling the controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in the game scene according to preset game behavior logic in response to the time length of the controlled virtual object in the automatic mode reaching the target time length. At this time, the player control mode is restored.
The embodiment of the disclosure also provides another control method in the game. The method is implemented on the basis of the method shown in fig. 1. The method adds an "automatic combat" button (corresponding to the "first control" described above) to the HUD displaying the graphical user interface of the game scene. After the player clicks the control, the controlled virtual object enters an automatic combat state and the graphical user interface displays the automatic combat state identification, as shown in FIG. 7. In the automatic combat state process of the controlled virtual object, a player can self-define and set the behavior logic of the controlled virtual object in the automatic combat state according to own requirements.
Wherein HUD is an abbreviation for Heads Up Display, meaning "Heads Up Display". In a game, it generally refers to an interface or window for various information that a player obtains in real time during the course of the game. Such information may include vital values, energy, maps, mission cues, etc. of the player. Through the HUD, the player can easily know the state and surrounding environment of the player during the game, so that decisions and operations can be better performed.
After the controlled virtual object enters an automatic combat state, the controlled virtual object player moves in the map most easily, and picks up materials when detecting that the materials are in the range of N meters nearby, and automatically executes shooting when detecting that the enemy is in the range of N meters nearby until the enemy is defeated.
In the automatic combat state, the player may click the close button to exit, or manually click the directional wheel, click the attack button to exit.
In order to facilitate the player's setting of behavior logic of the controlled virtual object, after entering the automatic combat state process, a gear button (corresponding to the "logic parameter setting control" described above) is displayed on the graphical user interface, as shown in fig. 8. The player can click the gear button to set, and specifically, the fight state can be set in a self-defined mode according to own requirements.
Specifically, the player can set up behavior logic when picking up props and encountering enemy, and can set up a combat range (corresponding to the "target scene range").
After clicking the gear button, the player displays the pick-up priority, the setting option corresponding to the meeting enemy, and the slider control (also referred to as a "progress bar") corresponding to the battle range on the graphical user interface, as shown in fig. 9. The player can select any one of the two options of the priority high-grade material or the priority equipment material, wherein the controlled virtual object automatically replaces the material with lower value when encountering the material with higher value in the automatic picking process after selecting the high-value material, and automatically replaces the material with lower battle with the material with higher battle when encountering the material with higher battle in the automatic picking process after selecting the priority high battle.
The player can choose to attack or avoid the enemy preferentially when encountering the enemy, when the player chooses to attack preferentially, the controlled virtual object can automatically search the enemy position and attack the enemy when detecting the enemy in the range of N meters nearby, and when the player chooses to avoid preferentially, the controlled virtual object can automatically keep away from the enemy by N+M meters nearby when detecting the enemy in the range of N meters nearby.
The player can drag the progress bar of the fight range setting control to set the fight range (the diameter range of the current character position, the maximum value is the game map diameter), and can move according to the set diameter range.
According to the mode, when the controlled virtual object is in the automatic combat state, the priority of materials picked up by the controlled virtual object and the behavior logic of the controlled virtual object when encountering enemies can be changed by the player based on requirements, so that the flexibility of the game is improved, and the game experience of the player is improved.
For the above method embodiment, referring to a control device in a game shown in fig. 10, a graphical user interface is provided through a terminal device, where the graphical user interface displays a game scene where a controlled virtual object is located, and the device includes:
An automatic mode triggering module 1002, configured to control the controlled virtual object to execute at least one game behavior of a preset plurality of game behaviors in the game scene according to preset game behavior logic in response to an automatic mode triggering operation;
a game behavior logic updating module 1004, configured to respond to a logic parameter setting operation, and update the game behavior logic based on a logic parameter corresponding to the logic parameter setting operation;
An automatic mode control module 1006, configured to control the controlled virtual object to execute at least one game behavior of the plurality of game behaviors according to the updated game behavior logic.
The control device in the game responds to the automatic mode triggering operation, controls the controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in a game scene according to the preset game behavior logic, the game behavior logic is used for limiting the triggering conditions of the plurality of game behaviors, responds to the logic parameter setting operation, updates the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation, and controls the controlled virtual object to execute at least one game behavior of the plurality of game behaviors according to the updated game behavior logic. In the mode, the player can change the behavior logic of the controlled virtual object in the automatic mode based on the requirement, thereby meeting the adjustment requirement of the player on the automatic combat process, improving the flexibility of the game and improving the game experience of the player.
The automatic mode triggering module is further used for responding to triggering operation of the first control and controlling the controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors according to preset game behavior logic.
The game behavior at least comprises one of a moving behavior, an attack behavior, a prop picking behavior and a prop replacing behavior.
The device further comprises a first control display module used for responding to the automatic mode triggering operation and displaying the logic parameter setting control on the graphical user interface, and a game behavior logic updating module used for responding to the first setting operation acting on the logic parameter setting control and updating game behavior logic based on the logic parameter corresponding to the logic parameter setting operation.
The game behavior logic updating module is further used for responding to a first setting operation acting on the logic parameter setting control, updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation, and comprises the steps of responding to a triggering operation acting on the logic parameter setting control, displaying a plurality of options corresponding to preset logic parameters to be set, wherein the logic parameters to be set comprise at least one item of information including a plurality of triggering conditions corresponding to the preset game behavior, a plurality of game behaviors corresponding to the preset triggering conditions, responding to a selecting operation aiming at least one option in the plurality of options, determining the selected option as a target option, and updating the game behavior logic based on the logic parameters to be set and the target option.
The triggering condition corresponding to the preset game behavior comprises the state of a game object related to the preset game behavior and/or the behavior result of the game behavior related to the preset game behavior.
The logic parameter to be set corresponds to preset game behaviors, options corresponding to the logic parameter to be set represent trigger conditions of the preset game behaviors, trigger conditions corresponding to different options are different, and the game behavior logic updating module is further used for updating the trigger conditions of the preset game behaviors in the game behavior logic to the trigger conditions corresponding to target options.
The preset game behavior corresponding to the logic parameter to be set comprises prop replacement behaviors, the options corresponding to the logic parameter to be set comprise first options and second options, the triggering condition corresponding to the first options is that the number of first virtual props possessed by the controlled virtual object is equal to a preset number threshold, the attribute value of the first attribute of the target prop is larger than the attribute value of the first attribute of at least one virtual prop in the first virtual props, the target prop has a pickable attribute, the distance between the target prop and the controlled virtual object is smaller than or equal to the preset distance threshold, the triggering condition corresponding to the second options is that the number of the first virtual props possessed by the controlled virtual object is equal to the preset number threshold, and the attribute value of the second attribute of the target prop is larger than the attribute value of the second attribute of at least one virtual prop in the first virtual props, and the first attribute and the second attribute are different.
The logic parameter to be set corresponds to a preset trigger condition, the option corresponding to the logic parameter to be set represents the game behavior corresponding to the preset trigger condition, the game behaviors corresponding to different options are different, and the game behavior logic updating module is further used for updating the game behavior corresponding to the preset trigger condition in the game behavior logic to the game behavior corresponding to the target option.
The game scene further comprises at least one first virtual object, the game camp where the first virtual object is located is different from the game camp where the controlled virtual object is located, the preset triggering condition corresponding to the logic parameter to be set comprises that the distance between the first virtual object and the controlled virtual object is smaller than or equal to the specified distance, the options corresponding to the logic parameter to be set comprise a third option and a fourth option, the game behavior corresponding to the preset triggering condition corresponding to the third option comprises a first moving behavior and an attack behavior, the moving direction corresponding to the first moving behavior is the direction facing the first virtual object, the game behavior corresponding to the preset triggering condition corresponding to the fourth option comprises a second moving behavior, and the moving direction corresponding to the second moving behavior is the direction far away from the first virtual object.
The device further comprises a second control display module used for responding to the automatic mode triggering operation and displaying a scene range setting control on the graphical user interface, a range setting module used for responding to a second setting operation of the scene range setting control and determining a target scene range based on range parameters corresponding to the second setting operation and the current position of the controlled virtual object, and a game behavior control module used for controlling the controlled virtual object to execute at least one game behavior in the target scene range.
The range parameter comprises a range radius, the range setting module is further used for determining a circular scene area in the game scene by taking the range radius corresponding to the second setting operation as the radius and taking the current position of the controlled virtual object as a circle, and the circular scene area is determined to be a target scene range.
The scene range setting control comprises a sliding block and a moving area of the sliding block, wherein the moving area is provided with a corresponding range parameter range, and the upper limit of the range parameter range is determined based on the size of a game scene.
The device further comprises a third control display module used for responding to the automatic mode triggering operation and displaying a mode duration setting control on the graphical user interface, a duration setting module used for responding to the third setting operation acting on the mode duration setting control and determining the target duration of the controlled virtual object in the automatic mode, and an automatic mode stopping module used for stopping executing at least one game behavior of a plurality of preset game behaviors of the controlled virtual object in a game scene according to preset game behavior logic in response to the fact that the duration of the controlled virtual object in the automatic mode reaches the target duration.
The device further comprises a fourth control display module, wherein the fourth control display module is used for setting the first control to be in a non-triggerable state, displaying a cancellation control on the graphical user interface, or replacing the first control with the cancellation control, and canceling to control the controlled virtual object to execute the game action according to the preset game action logic in response to the triggering operation aiming at the cancellation control.
The device further comprises an automatic mode canceling module, a control module and a control module, wherein the automatic mode canceling module is used for canceling the control of the controlled virtual object to execute the game according to the preset game logic.
The device further comprises an identification display module used for responding to the automatic mode triggering operation and displaying a first identification on the graphical user interface, a display format display module used for displaying the controlled virtual object in a first display format, wherein the first identification is used for indicating the automatic mode, and the first display format is different from the initial display format of the controlled virtual object.
The present embodiment also provides an electronic device including a processor and a memory, the memory storing machine-executable instructions executable by the processor, the processor executing the machine-executable instructions to implement a control method in the above game, for example:
The method comprises the steps of responding to an automatic mode triggering operation, controlling a controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in a game scene according to preset game behavior logic, limiting triggering conditions of the game behaviors by the game behavior logic, responding to a logic parameter setting operation, updating the game behavior logic based on logic parameters corresponding to the logic parameter setting operation, and controlling the controlled virtual object to execute at least one game behavior of the game behaviors according to the updated game behavior logic.
In the mode, the player can change the behavior logic of the controlled virtual object in the automatic mode based on the requirement, thereby meeting the adjustment requirement of the player on the automatic combat process, improving the flexibility of the game and improving the game experience of the player.
Optionally, the step of controlling the controlled virtual object to execute at least one game behavior of the preset plurality of game behaviors according to preset game behavior logic in response to the automatic mode triggering operation comprises controlling the controlled virtual object to execute at least one game behavior of the preset plurality of game behaviors according to the preset game behavior logic in response to the triggering operation for the first control.
Optionally, the game behavior at least comprises one of a moving behavior, an attacking behavior, a prop picking behavior and a prop replacing behavior.
Optionally, the method further comprises the steps of responding to the automatic mode triggering operation, displaying a logic parameter setting control on the graphical user interface, responding to the logic parameter setting operation, and updating game behavior logic based on the logic parameter corresponding to the logic parameter setting operation, wherein the step of responding to the first setting operation acting on the logic parameter setting control, and updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation.
Optionally, the step of updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation in response to the first setting operation acting on the logic parameter setting control comprises the step of updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation in response to the first setting operation acting on the logic parameter setting control, wherein the step of displaying a plurality of options corresponding to a preset logic parameter to be set in response to the triggering operation acting on the logic parameter setting control, the logic parameter to be set comprises at least one piece of information including a plurality of triggering conditions corresponding to the game behavior to be set, a plurality of game behaviors corresponding to the triggering conditions to be set, determining the selected option as a target option in response to the selecting operation for at least one option of the plurality of options, and updating the game behavior logic based on the logic parameter to be set and the target option.
Optionally, the preset game behavior comprises one or more game behaviors of a plurality of preset game behaviors, and the triggering condition corresponding to the preset game behavior comprises the state of a game object related to the preset game behavior and/or the behavior result of the game behavior related to the preset game behavior.
Optionally, the logic parameter to be set corresponds to a preset game behavior, the option corresponding to the logic parameter to be set represents a trigger condition of the preset game behavior, the trigger conditions corresponding to different options are different, and the step of updating the game behavior logic based on the logic parameter to be set and the target option comprises the step of updating the trigger condition of the preset game behavior in the game behavior logic to the trigger condition corresponding to the target option.
The method comprises the steps of selecting a first virtual object to be set, selecting a second virtual object to be set, selecting a target object to be set, selecting a preset game behavior corresponding to the logic parameter to be set, wherein the preset game behavior comprises prop replacement behaviors, the options corresponding to the logic parameter to be set comprise a first option and a second option, the triggering condition corresponding to the first option is that the number of the first virtual props possessed by the controlled virtual object is equal to a preset number threshold, the attribute value of the first attribute of the target prop is larger than the attribute value of the first attribute of at least one virtual prop in the first virtual props, the target prop has a pickable attribute, the distance between the target prop and the controlled virtual object is smaller than or equal to the preset distance threshold, and the triggering condition corresponding to the second option is that the number of the first virtual props possessed by the controlled virtual object is equal to the preset number threshold, and the attribute value of the second attribute of the target prop is larger than the attribute value of the second attribute of the at least one virtual prop in the first virtual props.
Optionally, the logic parameter to be set corresponds to a preset trigger condition, the option corresponding to the logic parameter to be set represents the game behavior corresponding to the preset trigger condition, the game behaviors corresponding to different options are different, and the step of updating the game behavior logic based on the logic parameter to be set and the target option comprises the step of updating the game behavior corresponding to the preset trigger condition in the game behavior logic to the game behavior corresponding to the target option.
Optionally, the game scene further comprises at least one first virtual object, the game camp where the first virtual object is located is different from the game camp where the controlled virtual object is located, the preset triggering condition corresponding to the logic parameter to be set comprises that the distance between the first virtual object and the controlled virtual object is smaller than or equal to the specified distance, the options corresponding to the logic parameter to be set comprise a third option and a fourth option, the game behavior corresponding to the preset triggering condition corresponding to the third option comprises a first moving behavior and an attack behavior, the moving direction corresponding to the first moving behavior is the direction towards the first virtual object, the game behavior corresponding to the preset triggering condition corresponding to the fourth option comprises a second moving behavior, and the moving direction corresponding to the second moving behavior is the direction away from the first virtual object.
Optionally, the method further comprises the steps of responding to an automatic mode triggering operation, displaying a scene range setting control on the graphical user interface, responding to a second setting operation for the scene range setting control, determining a target scene range based on range parameters corresponding to the second setting operation and the current position of the controlled virtual object, and controlling the controlled virtual object to execute at least one game behavior in the target scene range.
Optionally, the range parameter comprises a range radius, and the step of updating the target scene range based on the range parameter corresponding to the second setting operation and the current position of the controlled virtual object comprises the steps of determining a circular scene area in the game scene by taking the range radius corresponding to the second setting operation as the radius and taking the current position of the controlled virtual object as the circle, and determining the circular scene area as the target scene range.
Optionally, the scene range setting control comprises a slider and a moving area of the slider, wherein the moving area is provided with a corresponding range parameter range, and the upper limit of the range parameter range is determined based on the size of the game scene.
Optionally, the method further comprises the steps of responding to an automatic mode triggering operation, displaying a mode duration setting control on the graphical user interface, responding to a third setting operation acting on the mode duration setting control, determining the target duration of the controlled virtual object in the automatic mode, responding to the fact that the duration of the controlled virtual object in the automatic mode reaches the target duration, and stopping executing at least one game behavior of a plurality of preset game behaviors of the controlled virtual object in a game scene according to preset game behavior logic.
Optionally, after the triggering operation of the first control is responded, and at least one game behavior of the preset multiple game behaviors is controlled to be executed by the controlled virtual object according to preset game behavior logic, the method further comprises the steps of setting the first control to be in a non-triggerable state, displaying a cancel control on a graphical user interface, or replacing the first control with the cancel control, and canceling the control of the controlled virtual object to execute the game behavior according to the preset game behavior logic in response to the triggering operation of the cancel control.
Optionally, the graphical user interface further displays a plurality of control controls, wherein the control controls are used for controlling the controlled virtual object to execute game behaviors in the plurality of game behaviors, and after the controlled virtual object is controlled to execute at least one game behavior in the preset plurality of game behaviors in the game scene according to the preset game behavior logic in response to the automatic mode triggering operation, the method further comprises the step of canceling the control of the controlled virtual object to execute the game behaviors according to the preset game behavior logic in response to the control operation of any control in the plurality of control controls.
Optionally, the method further comprises the steps of responding to the automatic mode triggering operation, displaying a first identifier on the graphical user interface and/or displaying the controlled virtual object in a first display format, wherein the first identifier is used for indicating the automatic mode, and the first display format is different from the initial display format of the controlled virtual object.
Referring to fig. 11, the electronic device includes a processor 100 and a memory 101, the memory 101 storing machine executable instructions that can be executed by the processor 100, the processor 100 executing the machine executable instructions to implement the control method in the game described above.
Further, the electronic device shown in fig. 11 further includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103, and the memory 101 are connected through the bus 102.
The memory 101 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 103 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 11, but not only one bus or type of bus.
The processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 100 or by instructions in the form of software. The Processor 100 may be a general-purpose Processor, including a central processing unit (Central Processing Unit, CPU), a network Processor (Network Processor, NP), a digital signal Processor (DIGITAL SIGNAL Processor, DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks of the disclosure in the embodiments of the disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present disclosure may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and, in combination with its hardware, performs the steps of the method of the previous embodiment.
The present embodiments also provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the control method in a game described above.
The embodiment of the disclosure provides a control method, a device and an electronic device in a game, which comprise a computer readable storage medium storing program codes, wherein the program codes comprise instructions for executing the method described in the previous method embodiment, for example:
The method comprises the steps of responding to an automatic mode triggering operation, controlling a controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in a game scene according to preset game behavior logic, limiting triggering conditions of the game behaviors by the game behavior logic, responding to a logic parameter setting operation, updating the game behavior logic based on logic parameters corresponding to the logic parameter setting operation, and controlling the controlled virtual object to execute at least one game behavior of the game behaviors according to the updated game behavior logic.
In the mode, the player can change the behavior logic of the controlled virtual object in the automatic mode based on the requirement, thereby meeting the adjustment requirement of the player on the automatic combat process, improving the flexibility of the game and improving the game experience of the player.
Optionally, the step of controlling the controlled virtual object to execute at least one game behavior of the preset plurality of game behaviors according to preset game behavior logic in response to the automatic mode triggering operation comprises controlling the controlled virtual object to execute at least one game behavior of the preset plurality of game behaviors according to the preset game behavior logic in response to the triggering operation for the first control.
Optionally, the game behavior at least comprises one of a moving behavior, an attacking behavior, a prop picking behavior and a prop replacing behavior.
Optionally, the method further comprises the steps of responding to the automatic mode triggering operation, displaying a logic parameter setting control on the graphical user interface, responding to the logic parameter setting operation, and updating game behavior logic based on the logic parameter corresponding to the logic parameter setting operation, wherein the step of responding to the first setting operation acting on the logic parameter setting control, and updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation.
Optionally, the step of updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation in response to the first setting operation acting on the logic parameter setting control comprises the step of updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation in response to the first setting operation acting on the logic parameter setting control, wherein the step of displaying a plurality of options corresponding to a preset logic parameter to be set in response to the triggering operation acting on the logic parameter setting control, the logic parameter to be set comprises at least one piece of information including a plurality of triggering conditions corresponding to the game behavior to be set, a plurality of game behaviors corresponding to the triggering conditions to be set, determining the selected option as a target option in response to the selecting operation for at least one option of the plurality of options, and updating the game behavior logic based on the logic parameter to be set and the target option.
Optionally, the preset game behavior comprises one or more game behaviors of a plurality of preset game behaviors, and the triggering condition corresponding to the preset game behavior comprises the state of a game object related to the preset game behavior and/or the behavior result of the game behavior related to the preset game behavior.
Optionally, the logic parameter to be set corresponds to a preset game behavior, the option corresponding to the logic parameter to be set represents a trigger condition of the preset game behavior, the trigger conditions corresponding to different options are different, and the step of updating the game behavior logic based on the logic parameter to be set and the target option comprises the step of updating the trigger condition of the preset game behavior in the game behavior logic to the trigger condition corresponding to the target option.
The method comprises the steps of selecting a first virtual object to be set, selecting a second virtual object to be set, selecting a target object to be set, selecting a preset game behavior corresponding to the logic parameter to be set, wherein the preset game behavior comprises prop replacement behaviors, the options corresponding to the logic parameter to be set comprise a first option and a second option, the triggering condition corresponding to the first option is that the number of the first virtual props possessed by the controlled virtual object is equal to a preset number threshold, the attribute value of the first attribute of the target prop is larger than the attribute value of the first attribute of at least one virtual prop in the first virtual props, the target prop has a pickable attribute, the distance between the target prop and the controlled virtual object is smaller than or equal to the preset distance threshold, and the triggering condition corresponding to the second option is that the number of the first virtual props possessed by the controlled virtual object is equal to the preset number threshold, and the attribute value of the second attribute of the target prop is larger than the attribute value of the second attribute of the at least one virtual prop in the first virtual props.
Optionally, the logic parameter to be set corresponds to a preset trigger condition, the option corresponding to the logic parameter to be set represents the game behavior corresponding to the preset trigger condition, the game behaviors corresponding to different options are different, and the step of updating the game behavior logic based on the logic parameter to be set and the target option comprises the step of updating the game behavior corresponding to the preset trigger condition in the game behavior logic to the game behavior corresponding to the target option.
Optionally, the game scene further comprises at least one first virtual object, the game camp where the first virtual object is located is different from the game camp where the controlled virtual object is located, the preset triggering condition corresponding to the logic parameter to be set comprises that the distance between the first virtual object and the controlled virtual object is smaller than or equal to the specified distance, the options corresponding to the logic parameter to be set comprise a third option and a fourth option, the game behavior corresponding to the preset triggering condition corresponding to the third option comprises a first moving behavior and an attack behavior, the moving direction corresponding to the first moving behavior is the direction towards the first virtual object, the game behavior corresponding to the preset triggering condition corresponding to the fourth option comprises a second moving behavior, and the moving direction corresponding to the second moving behavior is the direction away from the first virtual object.
Optionally, the method further comprises the steps of responding to an automatic mode triggering operation, displaying a scene range setting control on the graphical user interface, responding to a second setting operation for the scene range setting control, determining a target scene range based on range parameters corresponding to the second setting operation and the current position of the controlled virtual object, and controlling the controlled virtual object to execute at least one game behavior in the target scene range.
Optionally, the range parameter comprises a range radius, and the step of updating the target scene range based on the range parameter corresponding to the second setting operation and the current position of the controlled virtual object comprises the steps of determining a circular scene area in the game scene by taking the range radius corresponding to the second setting operation as the radius and taking the current position of the controlled virtual object as the circle, and determining the circular scene area as the target scene range.
Optionally, the scene range setting control comprises a slider and a moving area of the slider, wherein the moving area is provided with a corresponding range parameter range, and the upper limit of the range parameter range is determined based on the size of the game scene.
Optionally, the method further comprises the steps of responding to an automatic mode triggering operation, displaying a mode duration setting control on the graphical user interface, responding to a third setting operation acting on the mode duration setting control, determining the target duration of the controlled virtual object in the automatic mode, responding to the fact that the duration of the controlled virtual object in the automatic mode reaches the target duration, and stopping executing at least one game behavior of a plurality of preset game behaviors of the controlled virtual object in a game scene according to preset game behavior logic.
Optionally, after the triggering operation of the first control is responded, and at least one game behavior of the preset multiple game behaviors is controlled to be executed by the controlled virtual object according to preset game behavior logic, the method further comprises the steps of setting the first control to be in a non-triggerable state, displaying a cancel control on a graphical user interface, or replacing the first control with the cancel control, and canceling the control of the controlled virtual object to execute the game behavior according to the preset game behavior logic in response to the triggering operation of the cancel control.
Optionally, the graphical user interface further displays a plurality of control controls, wherein the control controls are used for controlling the controlled virtual object to execute game behaviors in the plurality of game behaviors, and after the controlled virtual object is controlled to execute at least one game behavior in the preset plurality of game behaviors in the game scene according to the preset game behavior logic in response to the automatic mode triggering operation, the method further comprises the step of canceling the control of the controlled virtual object to execute the game behaviors according to the preset game behavior logic in response to the control operation of any control in the plurality of control controls.
Optionally, the method further comprises the steps of responding to the automatic mode triggering operation, displaying a first identifier on the graphical user interface and/or displaying the controlled virtual object in a first display format, wherein the first identifier is used for indicating the automatic mode, and the first display format is different from the initial display format of the controlled virtual object.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
In addition, in the description of the embodiments of the present disclosure, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected, mechanically connected, electrically connected, directly connected, indirectly connected via an intermediate medium, or in communication between two elements. The specific meaning of the terms in this disclosure will be understood by those skilled in the art in the specific case.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the present disclosure may be embodied in essence or a part contributing to the prior art or a part of the technical solutions, or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present disclosure. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In the description of the present disclosure, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present disclosure and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present disclosure. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
It should be noted that the foregoing embodiments are merely specific embodiments of the present disclosure, and are not intended to limit the technical scope of the disclosure, but the scope of the disclosure is not limited thereto, and although the disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that any modification, variation or substitution of some technical features of the technical scope described in the foregoing embodiments may be easily contemplated by those skilled in the art within the scope of the disclosure, and the spirit and scope of the technical scope of the embodiments of the disclosure should not be limited by the essence of the corresponding technical scope. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (20)

1. A control method in a game is characterized in that a graphical user interface is provided through terminal equipment, the graphical user interface displays a game scene where a controlled virtual object is located, and the method comprises the following steps:
Responding to an automatic mode triggering operation, and controlling the controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in the game scene according to preset game behavior logic, wherein the game behavior logic is used for limiting triggering conditions of the plurality of game behaviors;
responding to a logic parameter setting operation, and updating the game behavior logic based on logic parameters corresponding to the logic parameter setting operation;
and controlling the controlled virtual object to execute at least one game behavior of the plurality of game behaviors according to the updated game behavior logic.
2. The method of claim 1, wherein the graphical user interface displays a first control;
and in response to the automatic mode triggering operation, controlling the controlled virtual object to execute at least one game behavior of a preset plurality of game behaviors according to preset game behavior logic, wherein the step comprises the following steps:
And responding to the triggering operation aiming at the first control, and controlling the controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors according to preset game behavior logic.
3. The method of claim 1, wherein the game behavior comprises at least one of a movement behavior, an attack behavior, a prop pick behavior, and a prop replacement behavior.
4. The method according to claim 1, wherein the method further comprises:
responsive to an automatic mode triggering operation, displaying a logical parameter setting control on the graphical user interface;
in response to a logic parameter setting operation, updating the game behavior logic based on a logic parameter corresponding to the logic parameter setting operation, including:
and responding to a first setting operation acted on the logic parameter setting control, and updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation.
5. The method of claim 4, wherein the step of updating the game behavior logic based on the logical parameter corresponding to the logical parameter setting operation in response to a first setting operation acting on the logical parameter setting control comprises:
responding to the triggering operation acted on the logic parameter setting control, and displaying a plurality of options corresponding to the preset logic parameters to be set;
The logic parameter to be set comprises at least one item of information, namely a plurality of trigger conditions corresponding to preset game behaviors and a plurality of game behaviors corresponding to the preset trigger conditions;
Determining the selected option as a target option in response to a selection operation for at least one option of the plurality of options;
And updating the game behavior logic based on the logic parameters to be set and the target options.
6. The method of claim 5, wherein the preset gaming behavior comprises one or more of the preset plurality of gaming behaviors;
The triggering condition corresponding to the preset game behavior comprises the state of a game object related to the preset game behavior and/or the behavior result of the game behavior related to the preset game behavior.
7. The method of claim 5, wherein the logic parameter to be set corresponds to a preset game behavior, and wherein the option corresponding to the logic parameter to be set represents a trigger condition of the preset game behavior;
based on the logic parameters to be set and the target options, updating the game behavior logic, including:
and updating the triggering conditions of the preset game behaviors in the game behavior logic to triggering conditions corresponding to the target options.
8. The method of claim 5, wherein the preset game behavior corresponding to the logic parameter to be set comprises prop replacement behavior, and the options corresponding to the logic parameter to be set comprise a first option and a second option;
the triggering condition corresponding to the first option is that the number of the first virtual props possessed by the controlled virtual object is equal to a preset number threshold, and the attribute value of the first attribute of the target props is larger than the attribute value of the first attribute of at least one virtual props in the first virtual props;
The triggering condition corresponding to the second option is that the number of the first virtual props owned by the controlled virtual object is equal to a preset number threshold, and the attribute value of the second attribute of the target prop is larger than the attribute value of the second attribute of at least one virtual prop in the first virtual props, wherein the first attribute is different from the second attribute.
9. The method of claim 5, wherein the logic parameter to be set corresponds to a preset trigger condition, and wherein the option corresponding to the logic parameter to be set represents a game behavior corresponding to the preset trigger condition;
based on the logic parameters to be set and the target options, updating the game behavior logic, including:
And updating the game behavior corresponding to the preset triggering condition in the game behavior logic to the game behavior corresponding to the target option.
10. The method of claim 5, wherein the game scene further comprises at least one first virtual object, wherein the game play of the first virtual object is different from the game play of the controlled virtual object;
the preset triggering conditions corresponding to the logic parameters to be set comprise that the distance between the first virtual object and the controlled virtual object is smaller than or equal to a specified distance;
the options corresponding to the logic parameters to be set comprise a third option and a fourth option;
The game behavior corresponding to the preset triggering condition corresponding to the third option comprises a first moving behavior and an attack behavior, wherein the moving direction corresponding to the first moving behavior is the direction facing the first virtual object;
the game behavior corresponding to the preset triggering condition corresponding to the fourth option comprises a second moving behavior, and the moving direction corresponding to the second moving behavior is a direction away from the first virtual object.
11. The method according to claim 1, wherein the method further comprises:
Responding to an automatic mode triggering operation, and displaying a scene range setting control on the graphical user interface;
Responding to a second setting operation of the scene range setting control, and determining a target scene range based on range parameters corresponding to the second setting operation and the current position of the controlled virtual object;
controlling the controlled virtual object to execute at least one game action of the plurality of game actions in the target scene range.
12. The method of claim 11, wherein the range parameter comprises a range radius;
based on the range parameter corresponding to the second setting operation and the current position of the controlled virtual object, updating the target scene range includes:
Taking the radius of the range corresponding to the second setting operation as a radius, taking the current position of the controlled virtual object as a circle, and determining a circular scene area in the game scene;
The circular scene area is determined as a target scene range.
13. The method of claim 11, wherein the scene range setting control comprises a slider and a movement region of the slider, the movement region having a corresponding range parameter range, an upper limit of the range parameter range being determined based on a size of the game scene.
14. The method according to claim 1, wherein the method further comprises:
setting a control on the graphical user interface display mode duration in response to an automatic mode triggering operation;
determining a target duration of the controlled virtual object in an automatic mode in response to a third setting operation acting on the mode duration setting control;
And stopping executing at least one game behavior of a plurality of preset game behaviors in the game scene according to the controlled virtual object in response to the controlled virtual object in the automatic mode reaching the target duration.
15. The method of claim 2, wherein in response to the triggering operation for the first control, after logically controlling the controlled virtual object to perform at least one of a preset plurality of game actions in accordance with a preset game action, the method further comprises:
Setting the first control to be in a non-triggerable state, and displaying a cancel control on the graphical user interface, or replacing the first control with the cancel control;
And canceling the execution of the game action by controlling the controlled virtual object according to the preset game action logic in response to the triggering operation of the cancellation control.
16. The method of claim 1, wherein the graphical user interface further displays a plurality of control controls for controlling the controlled virtual object to perform a game action of the plurality of game actions;
in response to an automatic mode triggering operation, after the controlled virtual object is controlled to execute at least one game action of a plurality of preset game actions in the game scene according to preset game action logic, the method further comprises:
and responding to the control operation of any one of the plurality of control controls, and canceling the controlled virtual object to execute the game according to the preset game logic.
17. The method according to claim 1, wherein the method further comprises:
And responding to an automatic mode triggering operation, displaying a first identifier on the graphical user interface and/or displaying the controlled virtual object in a first display format, wherein the first identifier is used for indicating the automatic mode, and the first display format is different from the initial display format of the controlled virtual object.
18. A control device in a game is characterized in that a graphical user interface is provided through terminal equipment, the graphical user interface displays a game scene where a controlled virtual object is located, and the device comprises:
The automatic mode triggering module is used for responding to automatic mode triggering operation, and controlling the controlled virtual object to execute at least one game behavior of a plurality of preset game behaviors in the game scene according to preset game behavior logic;
the game behavior logic updating module is used for responding to the logic parameter setting operation and updating the game behavior logic based on the logic parameter corresponding to the logic parameter setting operation;
And the automatic mode control module is used for controlling the controlled virtual object to execute at least one game behavior of the plurality of game behaviors according to the updated game behavior logic.
19. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the in-game control method of any one of claims 1-17.
20. A machine-readable storage medium storing machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of in-game control of any one of claims 1-17.
CN202411017379.7A 2024-07-26 2024-07-26 Control method, device and electronic device in game Pending CN119236405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411017379.7A CN119236405A (en) 2024-07-26 2024-07-26 Control method, device and electronic device in game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411017379.7A CN119236405A (en) 2024-07-26 2024-07-26 Control method, device and electronic device in game

Publications (1)

Publication Number Publication Date
CN119236405A true CN119236405A (en) 2025-01-03

Family

ID=94030937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411017379.7A Pending CN119236405A (en) 2024-07-26 2024-07-26 Control method, device and electronic device in game

Country Status (1)

Country Link
CN (1) CN119236405A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119868955A (en) * 2025-03-04 2025-04-25 网易(杭州)网络有限公司 Game control method, game control device, program product, and electronic apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119868955A (en) * 2025-03-04 2025-04-25 网易(杭州)网络有限公司 Game control method, game control device, program product, and electronic apparatus

Similar Documents

Publication Publication Date Title
JP7386360B2 (en) Information processing method, apparatus and terminal device
JP7768607B2 (en) Method, device, terminal and computer program for controlling pickup of virtual props
US12053694B2 (en) Non-transitory computer readable medium, method of controlling a game, and information processing system with modification of identification images based on change to game parameter
CN108854063B (en) Aiming method and device in shooting game, electronic equipment and storage medium
CN114225416B (en) Game control method and device
CN112156458B (en) Display control method and device, storage medium and electronic equipment
CN116531757B (en) Game operation control method, device and electronic equipment
CN116099195B (en) A method, device, electronic device, and storage medium for displaying and controlling a game.
CN115337638B (en) Method, device and electronic device for controlling information control display in games
CN113509727A (en) Method, device, electronic equipment and medium for displaying props in game
CN115888068A (en) Control method and device of virtual role, electronic equipment and readable storage medium
US8690654B2 (en) Game system, game control method, game device, and computer-readable storage medium
CN115317904B (en) Virtual item display control method, device and electronic device
CN119236405A (en) Control method, device and electronic device in game
CN113559519B (en) A method, device, electronic device and storage medium for selecting game props
CN108744513A (en) Method of sight, device, electronic equipment in shooting game and storage medium
JP2019205516A (en) Game program, game method, and information processor
CN111420392B (en) Game prop installation method and device and electronic equipment
CN111841003B (en) Information processing method and device in game and electronic equipment
CN115120971B (en) Game display control methods, devices and electronic equipment
CN117899452A (en) Equipment switching method and device, electronic equipment and medium
CN117046100A (en) Formation control method and device in game and electronic equipment
CN113426116B (en) Display control method and device, storage medium and electronic equipment
CN117547815A (en) Interaction control method and device in game and electronic equipment
JP2019205823A (en) Game program, game method, and information processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination