CN110393920A - State generation method, device, electronic equipment and storage medium in game - Google Patents

State generation method, device, electronic equipment and storage medium in game Download PDF

Info

Publication number
CN110393920A
CN110393920A CN201910688599.5A CN201910688599A CN110393920A CN 110393920 A CN110393920 A CN 110393920A CN 201910688599 A CN201910688599 A CN 201910688599A CN 110393920 A CN110393920 A CN 110393920A
Authority
CN
China
Prior art keywords
state
controller
data
activation
effect
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.)
Granted
Application number
CN201910688599.5A
Other languages
Chinese (zh)
Other versions
CN110393920B (en
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 CN201910688599.5A priority Critical patent/CN110393920B/en
Publication of CN110393920A publication Critical patent/CN110393920A/en
Application granted granted Critical
Publication of CN110393920B publication Critical patent/CN110393920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/45Controlling the progress of the video game
    • A63F13/49Saving the game status; Pausing or ending the game
    • 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
    • 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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • 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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Slot Machines And Peripheral Devices (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application provides state generation method, device, electronic equipment and the storage mediums in a kind of game, wherein this method comprises: obtaining the status data of state to be generated;Type is controlled according to the data for including in the status data, is used to control the recording controller that each data control type for the state load to be generated;The recording controller is configured, according to the data control type corresponding status data of recording controller control to generate the corresponding stateful example of the state to be generated for recording controller described in every kind;The stateful example is applied on target game object, so that the target game object is under the stateful example, by the above method, advantageously reduces the coupling in a game combat system between different conditions example.

Description

State generation method, device, electronic equipment and storage medium in game
Technical field
This application involves field of computer technology, in particular in a kind of game state generation method, device, Electronic equipment and storage medium.
Background technique
It include that many Buff (for applying gain effect to game object, usually increase game pair in field of play The attribute and ability of elephant, or make game object enter some gain-state) and Debuff (for game object apply declining profit imitate Fruit, usually reduces the attribute and ability of game object, or game object is made to enter certain bad abnormality), at one Being related to the effect of Buff and Debuff in game combat system, very strange (following Buff and Debuff are referred to as Buff or shape State example), sometimes the effect of two or more Buff be identical or part effect be it is identical, in this case, lead to A public function can be often designed, these Buff call this to share function to realize identical effect.
On the basis of using above-mentioned implementation, if when the effect to a Buff is modified, it can be to correspondence Public function modify, to influence whether that other call the Buff of this public function, it may be assumed that in game fight system Coupling in system between Buff is higher.
Summary of the invention
In view of this, the state generation method of the application being designed to provide in a kind of game, device, electronic equipment and Storage medium, to reduce the coupling in a game combat system between Buff.
In a first aspect, the embodiment of the present application provides the state generation method in a kind of game, comprising:
Obtain the status data of state to be generated;
Type is controlled according to the data for including in the status data, it is each for controlling for the state load to be generated The recording controller of the data control type;
For recording controller described in every kind, according to the corresponding institute of data control type of recording controller control Status data is stated, which is configured, to generate the corresponding stateful example of the state to be generated;
The stateful example is applied on target game object, so that the target game object is in the state reality Under example.
Optionally, the status data for obtaining state to be generated, comprising:
Determine the number and grade of the state to be generated;
According to preset status data table, the number status data corresponding with the grade is obtained.
Optionally, the recording controller includes:
State duration controller, state superimposed layer number controller and state activation controller.
Optionally, described to be directed to every kind of recording controller, it is controlled according to the data of recording controller control The corresponding status data of type, is configured the recording controller, to generate the corresponding state of the state to be generated Example, comprising:
According to the corresponding status data of data control type of state duration controller control, it is State duration is arranged in the state duration controller;
According to the corresponding status data of data control type of state superimposed layer number controller control, it is The state number of plies is arranged in the state superimposed layer number controller;
It is described according to the corresponding status data of data control type of state activation controller control Working condition is arranged in state activation controller.
Optionally, the corresponding state of data control type according to state activation controller control Working condition is arranged for the state activation controller in data, comprising:
It is not present when in the corresponding status data of data control type of state activation controller control When state activation condition data, activation working condition is set by the working condition of the state activation controller;
When there are shapes in the corresponding status data of data control type of state activation controller control The working condition of the state activation controller is set inactive working condition by state activation condition data;
State generation method in the game further include:
It is direct by the state activation controller when the state activation controller is in the activation working condition The stateful example is activated, so that the stateful example generated is in activated state;
When the state activation controller is in the inactive working condition, supervised by the state activation controller Listen first event relevant to the target game object;It is listened in the state activation controller and meets the state activation When the first event of condition data, the stateful example is activated by the state activation controller, so that the institute generated It states stateful example and is in activated state;The institute for meeting the state activation condition data is not heard in the state activation controller When stating first event, the state activation controller is forbidden to activate the stateful example, so that at the stateful example generated In inactive state.
Optionally, the state generation method in the game further include:
It is corresponding when being included in the state activation controller in the status data and being in the activation working condition When the first effect data, first effect data is applied on the target game object by the first effect controller.
Optionally, when in the status data including the trigger condition data of the stateful example, the data control Device further includes for carrying out the trigger controller that triggering comes into force to the stateful example;The trigger controller receive it is described After state activation controller is in the message sent when the activation working condition, the trigger controller enters monitoring event shape State, the message that the trigger controller is sent when receiving the state activation controller and being in the inactive working condition Afterwards, the trigger controller enters non-snoop state-event;
State generation method in the game further include:
When the trigger controller is in the monitoring state-event, monitored and the mesh by the trigger controller Mark the relevant second event of game object;
It is corresponding when being included in the state activation controller in the status data and being in the activation working condition When the second effect data, after the trigger controller listens to the second event for meeting the trigger condition data, lead to It crosses the trigger controller and sends triggering command to the second effect controller, so that second effect controller is by described second Effect data is applied on the target game object.
Optionally, it is described by the trigger controller to the second effect controller send triggering command after, it is described State generation method in game further include:
The trigger controller enters the stateful example corresponding cooling time, to forbid the trigger controller in institute It states in cooling time and sends the triggering command to second effect controller again.
Optionally, when testing conditions data corresponding including the stateful example in the status data, the data Controller further includes the testing conditions controller for carrying out condition detection to the stateful example;The testing conditions controller After the message sent when receiving the state activation controller and being in the activation working condition, the testing conditions control Device entry condition listening state, the testing conditions controller are receiving the state activation controller in described inactive After the message sent when working condition, the testing conditions controller enters unconditional listening state;
State generation method in the game further include:
When the testing conditions controller is in the condition listening state, detected by the testing conditions controller Third event relevant to the target game object;
It is corresponding when being included in the state activation controller in the status data and being in the activation working condition When third effect data, after the third event for meeting the testing conditions data is detected in the testing conditions controller, lead to It crosses the testing conditions controller and sends tally order to third effect controller, so that the third effect controller is according to institute Third effect data is stated to settle accounts the target game object.
Optionally, the state generation method in the game further include:
When the state duration is 0 and/or when the state number of plies is 0, from the target game object It is upper to delete the stateful example.
Optionally, it is described the stateful example is applied on target game object after, state in the game Generation method further include:
Obtain the type for the effect state that the target game object is presently in;
The corresponding binary value mark of each type is added on the corresponding position of binary string, to obtain binary system Numeric string;
The binary digit string is saved.
Optionally, the state generation method in the game further include:
To binary digit string progress and operation;
When with operation result being in this position non-zero binary numeral, determine that the target game object is currently located Under the effect state of the corresponding type in the position;
When with operation result being in this position 0, it is corresponding to determine that the target game object is not presently within the position Type effect state under.
Optionally, corresponding according to the position when the effect state for determining the corresponding type in the position is transition effect Switching function to the target game object carry out state switching.
Second aspect, the embodiment of the present application provide the state generating means in a kind of game, comprising:
Acquiring unit, for obtaining the status data of state to be generated;
Loading unit adds for controlling type according to the data for including in the status data for the state to be generated Carry the recording controller for controlling each data control type;
Generation unit, for being directed to every kind of recording controller, according to the data control of recording controller control The corresponding status data of production of hybrid seeds class, is configured the recording controller, to generate the corresponding shape of the state to be generated State example;
Applying unit, for the stateful example to be applied to target game object, so that the target game object Under the stateful example.
Optionally, the configuration of the acquiring unit is in the status data for obtaining state to be generated, comprising:
Determine the number and grade of the state to be generated;
According to preset status data table, the number status data corresponding with the grade is obtained.
Optionally, the recording controller includes:
State duration controller, state superimposed layer number controller and state activation controller.
Optionally, the configuration of the generation unit is controlled for being directed to every kind of recording controller according to the data The corresponding status data of data control type of device control, is configured the recording controller, described in generating When the corresponding stateful example of state to be generated, comprising:
According to the corresponding status data of data control type of state duration controller control, it is State duration is arranged in the state duration controller;
According to the corresponding status data of data control type of state superimposed layer number controller control, it is The state number of plies is arranged in the state superimposed layer number controller;
It is described according to the corresponding status data of data control type of state activation controller control Working condition is arranged in state activation controller.
Optionally, the generation unit is also used to the data control type when state activation controller control When state activation condition data being not present in the corresponding status data, the working condition of the state activation controller is set It is set to activation working condition;When the corresponding status data of data control type of state activation controller control The working condition of the state activation controller is set inactive work shape by middle existence activation condition data;Work as institute When stating state activation controller and being in the activation working condition, the state is directly activated by the state activation controller Example, so that the stateful example generated is in activated state;When the state activation controller is in the inactive work When state, first event relevant to the target game object is monitored by the state activation controller;In the state When active controller listens to the first event for meeting the state activation condition data, controlled by the state activation Device activates the stateful example, so that the stateful example generated is in activated state;It is not supervised in the state activation controller When hearing the first event for meeting the state activation condition data, the state activation controller is forbidden to activate the shape State example, so that the stateful example generated is in inactive state.
Optionally, the generation unit is also used to be included at the state activation controller in the status data When the activation working condition when corresponding first effect data, by the first effect controller by first effect data It is applied on the target game object.
Optionally, when in the status data including the trigger condition data of the stateful example, the data control Device further include for carrying out the trigger controller that comes into force of triggering to the stateful example, the trigger controller receive it is described After state activation controller is in the message sent when the activation working condition, the trigger controller enters monitoring event shape State, the message that the trigger controller is sent when receiving the state activation controller and being in the inactive working condition Afterwards, the trigger controller enters non-snoop state-event;
The generation unit is also used to pass through the touching when the trigger controller is in the monitoring state-event It sends out controller and monitors second event relevant to the target game object;Swash when being included in the state in the status data When controller living is in the activation working condition when corresponding second effect data, satisfaction is listened in the trigger controller After the second event of the trigger condition data, triggering is sent to the second effect controller by the trigger controller and is referred to It enables, so that second effect data is applied on the target game object by second effect controller.
Optionally, it is described by the trigger controller to the second effect controller send triggering command after, the touching Send out controller enter the stateful example corresponding cooling time, with forbid the trigger controller within the cooling time again It is secondary to send the triggering command to second effect controller.
Optionally, when testing conditions data corresponding including the stateful example in the status data, the data Controller further includes the testing conditions controller for carrying out condition detection to the stateful example, the testing conditions controller After the message sent when receiving the state activation controller and being in the activation working condition, the testing conditions control Device entry condition listening state, the testing conditions controller are receiving the state activation controller in described inactive After the message sent when working condition, the testing conditions controller enters unconditional listening state;
The generation unit is also used to pass through institute when the testing conditions controller is in the condition listening state It states testing conditions controller and detects third event relevant to the target game object;When being included in institute in the status data When stating corresponding third effect data when state activation controller is in the activation working condition, controlled in the testing conditions After device detects the third event for meeting the testing conditions data, controlled by the testing conditions controller to third effect Device send tally order so that the third effect controller according to the third effect data to the target game object into Row clearing.
Optionally, the generation unit is also used to when the state duration is 0 and/or when the state layer When number is 0, the stateful example is deleted from the target game object.
Optionally, the state generating means in the game further include:
Storage unit, for it is described the stateful example is applied on target game object after, obtain the target The type for the effect state that game object is presently in;The corresponding binary value mark of each type is added to binary string On corresponding position, to obtain binary digit string;The binary digit string is saved.
Optionally, the storage unit, is also used to:
To binary digit string progress and operation;
When with operation result being in this position non-zero binary numeral, determine that the target game object is currently located Under the effect state of the corresponding type in the position;
When with operation result being in this position 0, it is corresponding to determine that the target game object is not presently within the position Type effect state under.
Optionally, the generation unit is also used to when the effect state for determining the corresponding type in the position be switching effect When fruit, state switching is carried out to the target game object according to the corresponding switching function in the position.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: processor, storage medium and bus, institute State storage medium and be stored with the executable machine readable instructions of the processor, when electronic equipment operation, the processor with By bus communication between the storage medium, the processor executes the machine readable instructions, to execute such as first aspect In state generation method in any game the step of.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage It is stored with computer program on medium, is executed as described in any in first aspect when the computer program is run by processor The step of state generation method in game.
The technical solution that embodiments herein provides can include the following benefits:
In this application, in the corresponding stateful example of generation state to be generated, the state according to state to be generated is needed The data control type for including in data is used to control the data control that each data control type for state load to be generated Then device is directed to every kind of recording controller, right according to the corresponding status data of data control type of recording controller control The recording controller is configured, to generate the corresponding stateful example of the state to be generated, it may be assumed that generating different stateful examples When, all corresponding recording controller can be loaded according to the corresponding status data of the stateful example, and to the number of each bootstrap loading It is configured according to controller, to generate corresponding stateful example, further, different stateful examples is by respectively corresponding to Recording controller controlled, so that corresponding effect is realized, so that any two stateful example will not generate It influences, such as: the stateful example that the same state to be generated of two effects generates is carried out by corresponding recording controller Control, after the effect modification to the corresponding stateful example of one of them state to be generated, generating the state to be generated When corresponding stateful example, it is only necessary to load recording controller for controlling the corresponding stateful example of the state to be generated i.e. Can, any variation will not occur for the loading method of the corresponding stateful example of another state to be generated at this time, that is to say, that another The corresponding stateful example of a state to be generated not will receive the influence of the modification of the corresponding stateful example of the state to be generated, thus Advantageously reduce the coupling in a game combat system between different conditions example.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the flow diagram of the state generation method in a kind of game that the embodiment of the present application one provides;
Fig. 2 is the flow diagram of the state generation method in another game that the embodiment of the present application one provides;
Fig. 3 is the flow diagram of the state generation method in another game that the embodiment of the present application one provides;
Fig. 4 is a kind of schematic diagram for Buff foundation structure that the embodiment of the present application one provides;
Fig. 5 is the flow diagram of the state generation method in another game that the embodiment of the present application one provides;
Fig. 6 is a kind of schematic diagram for binary digit string that the embodiment of the present application one provides;
Fig. 7 is the schematic diagram for another binary digit string that the embodiment of the present application one provides;
Fig. 8 is the schematic diagram of a kind of binary digit string progress and operation that the embodiment of the present application one provides;
Fig. 9 is the structural schematic diagram of the state generating means in a kind of game that the embodiment of the present application two provides;
Figure 10 is the structural schematic diagram of the state generating means in another game that the embodiment of the present application two provides;
Figure 11 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application three provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it should be understood that attached drawing in the application The purpose of illustration and description is only played, is not used to limit the protection scope of the application.In addition, it will be appreciated that schematical attached Figure does not press scale.Process used herein shows the behaviour realized according to some embodiments of the present application Make.It should be understood that the operation of flow chart can be realized out of order, the step of context relation of logic can not inverted suitable Sequence is implemented simultaneously.In addition, those skilled in the art are under the guide of teachings herein, can be added to flow chart one or Other multiple operations, can also remove one or more operations from flow chart.
In addition, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should be noted that term " includes " will be used in the embodiment of the present application, for pointing out the spy stated thereafter The presence of sign, but the other features of increase are not precluded.
It needs to illustrate in advance, the term " Buff " and " stateful example " in the application may be used interchangeably, Buff packet Reference is included for applying gain effect to target game object, usually the increase attribute of target game object, ability or makes to swim Target plays object into the Buff of some gain-state and for applying declining profit effect to target game object, usually reduces mesh Mark attribute, ability or the Debuff for making target game object enter certain bad abnormality of game object.
It needs to illustrate again, the target game object mentioned in the application can be the various roles in game, example Such as: the player role, saddle horse in game and the non-player role in game, it can basis about specific target game object Actual needs is configured, and is not specifically limited herein.
Embodiment one
Fig. 1 is the flow diagram of the state generation method in a kind of game that the embodiment of the present application one provides, such as Fig. 1 institute Show, the state generation method in the game the following steps are included:
Step 101, the status data for obtaining state to be generated.
Specifically, the correspondence table of all Buff and status data that include in game can be preset, and such as: the correspondence It include the corresponding relationship of Buff1 and status data 1 in table, Buff2 and the corresponding relationship of status data 2 etc., status data includes All data relevant to the Buff, such as: Buff duration, Buff trigger condition, Buff comes into force and counts in what state According to.
The Buff that will be applied on target game object is known as state to be generated, can after determining state to be generated To get corresponding status data according to the correspondence table, to be subsequently generated corresponding stateful example.
It should be noted that the status data of corresponding a certain state to be generated can be configured according to actual needs, have The status data of body is not specifically limited herein.
It should be noted that the implementation of the status data of above-mentioned acquisition state to be generated is only illustrative explanation, It can be set about specific acquisition modes, be not specifically limited herein according to actual needs.
Step 102 controls type according to the data for including in the status data, is used for for the state load to be generated Control the recording controller of each data control type.
Specifically, the effect of the different corresponding stateful examples of state to be generated can be different, due to stateful example Effect be to there is the status data of the state to be generated to control, therefore the number that the status data of different states to be generated includes According to control type be different, such as: a state to be generated in status data include state duration, trigger condition and With number of plies overlaying function (such as: after applying the corresponding stateful example of the state to be generated to target game personage, current layer Number is 1, in certain time length, after applying the corresponding stateful example of the state to be generated to target game personage again, and current layer Number for 2), and another state to be generated include in status data state duration, without trigger condition, it is folded without the number of plies Add function (such as: after applying the corresponding stateful example of the state to be generated to target game personage, current layer number 1, one In timing is long, after applying the corresponding stateful example of the state to be generated to target game personage again, 1) current layer number is remained as The data control type for including with the status data with continued damage, above-mentioned two state to be generated is different, each The corresponding status data of data control type needs to be controlled using corresponding recording controller, it may be assumed that each stateful example can To be controlled by a variety of recording controllers, by cooperating to realize the stateful example between a variety of recording controllers Effect, by way of one stateful example example of a variety of recording controller co- controllings can to the stateful example carry out essence Really control, to realize the accurate impression of the stateful example.
For example, the data control type that status data includes has data control for state to be generated for one When production of hybrid seeds class 1, data control type 2 and data control type 3, need to load the data control for controlling data control type 1 Device 1 processed controls the corresponding status data of type 1 to data by recording controller 1 and controls, it is also necessary to which load is for controlling Data control the recording controller 2 of type 2, control the corresponding status data of type 2 to data by recording controller 2 and control System, while also needing to load the recording controller 3 for controlling data control type 3, data are controlled by recording controller 3 The corresponding status data of type 3 is controlled.By taking recording controller 1 as an example, when data control type 1 is the time, data control The corresponding status data of production of hybrid seeds class 1 can be the duration of stateful example, then recording controller 1 controls type 1 to data Corresponding status data can be when being controlled carries out timing to the duration of stateful example, to reach to stateful example The control of duration.
It, can be with it should be noted which kind of recording controller specifically loaded for a certain specific state to be generated It is set according to the corresponding data control type of the status data of the state to be generated, is not specifically limited herein.
Step 103 is directed to every kind of recording controller, controls type according to the data of recording controller control The corresponding status data, is configured the recording controller, to generate the corresponding stateful example of the state to be generated.
Specifically, after the load well corresponding recording controller of state to be generated, in order to the corresponding shape of state to be generated State example is accurately controlled, and needs to be configured the recording controller of load, to control to the stateful example of generation System, such as: it is 10 seconds when the state to be generated is a duration, the strength attribute of target game object increases in this 10 seconds When adding 10% Buff, the recording controller of load may include time controller and strength attribute controller, and will control the time The timing duration of device processed is set as 10 seconds, and strength attribute controller is set as increasing by 10% strength attribute, and then generate Stateful example is that a duration is 10 seconds, and the strength attribute of target game object increases by 10% Buff in this 10 seconds, And it can be controlled by above-mentioned two recording controller stateful example is generated.
The stateful example is applied on target game object by step 104, so that the target game object is in institute It states under stateful example.
Specifically, target game object can be somebody's turn to do after the stateful example generated is applied on target game object Stateful example, and stateful example is controlled by each recording controller, so that stateful example be made to be applied to target trip After object play with it, stateful example can be according to corresponding status data implementation result, so that target game object can Accurately obtain the effect implemented.
It in the embodiment of the present application, all can be corresponding according to the stateful example due to when generating different stateful examples Status data loads corresponding recording controller, and is configured to the recording controller of each bootstrap loading, respective to generate Corresponding stateful example, further, different stateful examples are controlled by corresponding recording controller, thus real Existing corresponding effect, so that any two stateful example will not have an impact, such as: the same to be generated of two effects It at the stateful example that state generates is controlled by corresponding recording controller, to one of them state to be generated After the effect modification of corresponding stateful example, when generating the corresponding stateful example of the state to be generated, it is only necessary to which load is used In the recording controller for controlling the corresponding stateful example of the state to be generated, the corresponding shape of another state to be generated at this time Any variation will not occur for the loading method of state example, that is to say, that the corresponding stateful example of another state to be generated will not Modification by the corresponding stateful example of the state to be generated is influenced, to advantageously reduce in a game combat system not With the coupling between stateful example.Meanwhile stateful example is using after above-mentioned generating mode, and for game developer, In When increasing new Buff in game system, it is only necessary to after the status data for setting new Buff, so that it may test the tool of the Buff Body effect, and other Buff will not be had an impact, to be conducive to improve the scalability and increase of Buff in game system Flexibility when new Buff.
In a feasible embodiment, Fig. 2 is that the state in a kind of another game provided of the embodiment of the present application is raw At the flow diagram of method, as shown in Fig. 2, can be realized by following steps when executing step 101:
Step 201, the number and grade for determining the state to be generated.
Step 202, according to preset status data table, obtain the number status number corresponding with the grade According to.
Specifically, in gaming, a number (can certainly be other identifier) can be arranged to different Buff, use In the different Buff of differentiation, for a Buff, it is understood that there may be different brackets, such as: a Buff includes 4 grades, Higher grade, and Buff effect is more powerful, in order to determine the accurate status data of a certain Buff, can preset status data Table, the number in the status data table including Buff all in a game system and each Buff are in different brackets pair The data answered can determine the corresponding Buff number of the state to be generated and grade, so thus after obtaining state to be generated Corresponding status data is determined afterwards by searching for status data table.
It should be noted that above-mentioned implementation is only illustrative explanation, it certainly can also include that other determine state The mode of data, the purpose of the embodiment of the present application are the status datas in order to determine state to be generated, therefore all be can determine The mode of the status data of state to be generated belongs to the protection scope of the embodiment of the present application.
In a feasible embodiment, the recording controller includes: state duration controller, state superposition Number of plies controller and state activation controller.
Specifically, having a duration for all Buff, the duration of the Buff can have duration limit System, or can also be limited without duration, and for all Buff, have a superposition number of plies, which can To there is the limitation of the superposition number of plies, such as: one layer may only be superimposed (that is: for a Buff, no matter to target game object Apply the Buff several times, which only has the effect for being superimposed one layer), or can have the highest superposition number of plies limitation (that is: for For one Buff, if highest can be superimposed 5 layers, when applying the Buff within 5 times to target game object, often Apply once, which will be superimposed one layer, until being added to 5 layers, at the 6th time and later again to the application of target game object The Buff, the Buff also only realize superposition 5 times effects), alternatively, can also be without the limitation of the superposition number of plies, simultaneously for institute For having Buff, all one activation control, such as: for a Buff, stateful example can be applied without activation limitation It can come into force after being added to target game object, or can there is activation to limit, stateful example is applied to target game pair As can be just come into force after with it under certain conditions, such as: Buff passive for one, the effect of the Buff are, low in blood volume It comes into force when 30%, then target game object has the Buff, but should when the blood volume of target game object is higher than 30% Buff Pending The Entry Into Force, when the blood volume of target game object is lower than 30%, which comes into force.
Above-mentioned three kinds of controllers constitute the base control of a Buff, for specific Buff, can only pass through Above-mentioned three kinds of controllers control a stateful example, can also include certainly other controllers, be controlled by above-mentioned three kinds Device processed and other controllers jointly control stateful example, specifically include which controller for a stateful example, need Type is controlled according to the data of the corresponding status data of the stateful example to be determined, be not specifically limited herein.
It can be according to specific it should be noted that how to be controlled by above-mentioned three kinds of controllers a stateful example Opportunity of stateful example set, be not specifically limited herein.
In a feasible embodiment, Fig. 3 is that the state in another game that the embodiment of the present application one provides is raw At the flow diagram of method, as shown in figure 3, can be realized by following steps when executing step 103:
Step 301, the corresponding shape of data control type according to state duration controller control State duration is arranged for the state duration controller in state data.
Step 302, the corresponding shape of data control type according to state superimposed layer number controller control The state number of plies is arranged for the state superimposed layer number controller in state data.
Step 303, the corresponding status number of data control type according to state activation controller control According to for state activation controller setting working condition.
Specifically, may be implemented to hold stateful example by the way that state duration is arranged for state duration controller The control of continuous time by the way that the state number of plies is arranged for state superimposed layer number controller may be implemented that stateful example can be superimposed The number of plies control, by for state activation controller be arranged working condition, may be implemented when to come into force to stateful example, and The base control to a stateful example may be implemented by the setting to above-mentioned three kinds of controllers, such as in the control how to come into force The fruit stateful example only includes above-mentioned three kinds of controllers, may be implemented to fully control the stateful example.
It should be noted that above-mentioned steps do not sequentially form restriction to the setting of above-mentioned three kinds of controllers, specifically set Setting sequence can be configured according to actual needs, be not specifically limited herein.
In a feasible embodiment, when executing step 303, described in state activation controller control When state activation condition data is not present in the corresponding status data of data control type, by the state activation controller Working condition be set as activation working condition;When the data control type of state activation controller control is corresponding Existence activation condition data in the status data set inactive for the working condition of the state activation controller Working condition.
After the working condition for setting up the state activation controller, the state generation method in the game is also wrapped It includes:
It is direct by the state activation controller when the state activation controller is in the activation working condition The stateful example is activated, so that the stateful example generated is in activated state;
When the state activation controller is in the inactive working condition, supervised by the state activation controller Listen first event relevant to the target game object;It is listened in the state activation controller and meets the state activation When the first event of condition data, the stateful example is activated by the state activation controller, so that the institute generated It states stateful example and is in activated state;The institute for meeting the state activation condition data is not heard in the state activation controller When stating first event, the state activation controller is forbidden to activate the stateful example, so that at the stateful example generated In inactive state.
Specifically, including the enabling fashion of corresponding stateful example in the status data of a state to be generated, it may be assumed that A stateful example is being generated, and after the stateful example is applied on target game object, which is to come into force, Still it comes into force under certain condition, the enabling fashion of stateful example can be controlled by state activation controller, and according to the state Data are arranged the state activation controller, when the state activation condition data of stateful example is not present in status data, it may be assumed that The stateful example is generated, and after being applied on target game object, which can come into force, and can swash state at this time The working condition of controller living is directly disposed as activation working condition, generates the stateful example at this time, and be applied to target game After on object, state activation controller directly activates the stateful example, so that the stateful example is in activated state, the state at this time The effect of example can come into force, and act on target game object.
When the state activation condition data of existence example in status data, it may be assumed that generate the stateful example, and apply It after on to target game object, will not come into force at once, need just come into force under certain condition, be needed at this time by state activation The working condition of controller is set as inactive working condition, and according to state activation condition data come to state activation controller It is configured, when so that state activation controller being in inactive working condition, mesh is then judged by state activation controller Whether the current state of mark game object meets state of activation example, after setting state activation controller, state activation control Device processed monitors first event relevant to target game object, meets state activation conditional number when state activation controller listens to According to first event when, such as: state activation condition data be target game object blood volume be lower than 30% when stateful example quilt Activation, then state activation controller can monitor the current blood volume of target game object constantly, is listening to target game pair After the blood volume of elephant is lower than 30% this event, state activation controller state of activation example, so that stateful example is from inactive state Become activated state, so that stateful example comes into force, and the effect after coming into force is acted on target game, listens to mesh When marking the blood volume of game object higher than 30% this event, state activation controller will not change the state of stateful example, so that Stateful example is constantly in inactive state.
It should be noted that the working condition about state activation controller is set according to specific status data, It is not specifically limited, can be configured according to actual needs about specific state activation condition data, herein also not herein It is specifically limited.
In a feasible embodiment, institute is in when being included in the state activation controller in the status data When stating activation working condition when corresponding first effect data, first effect data is applied by the first effect controller Onto the target game object.
Specifically, a stateful example is needing state duration controller, state superimposed layer number controller and state These three base controllers of active controller carry out controller while, it is also necessary to when other controllers are controlled, so as to State activation controller is in activation working condition, and (stateful example is in activated state, and the effect of stateful example can act at this time To with target game object) when, stateful example can be controlled by above-mentioned four kinds of controllers, to realize state The specific effect of example.
Such as: the effect of stateful example is that duration is 10 seconds, the strength attribute of target game object in this 10 seconds When increasing by 10%, while causing the Buff of 10 seconds continued damages to other game objects, needing above three basic at this time While controller is controlled, it is also necessary to increase by one for controlling the first effect of target game object persistence injury output Controller (such as: injury input controller), so that these four controllers control stateful example.
It should be noted that the particular number and type of the first effect controller can be according to the specific effects of stateful example It is configured, is not specifically limited herein, such as: when stateful example is when realizing specific effect, in addition to the control of above-mentioned three kinds of bases Outside the effect that device processed is realized, when also needing for controlling the anti-controller for hurting effect and unmatched effect, need to be arranged at this time the One effect controller may include counter hurting the counter of effect for controlling and hurting controller and unmatched control for controlling unmatched effect Device, if also need the effect for controlling petrochemical industry other game objects, also need to be arranged at this time for control petrochemical industry other The petrochemical industry controller of game object is as the first effect controller.
In a feasible embodiment, when the trigger condition data in the status data including the stateful example When, the recording controller further includes for carrying out the trigger controller that triggering comes into force, the triggering control to the stateful example After the message that device processed is sent when receiving the state activation controller and being in the activation working condition, the triggering control Device enters monitoring state-event, and the trigger controller is in the inactive work receiving the state activation controller After the message sent when state, the trigger controller enters non-snoop state-event.
State generation method in the game further include:
When the trigger controller is in the monitoring state-event, monitored and the mesh by the trigger controller Mark the relevant second event of game object.
It is corresponding when being included in the state activation controller in the status data and being in the activation working condition When the second effect data, after the trigger controller listens to the second event for meeting the trigger condition data, lead to It crosses the trigger controller and sends triggering command to the second effect controller, so that second effect controller is by described second Effect data is applied on the target game object.
Specifically, in status data include stateful example trigger condition data when, it may be assumed that stateful example be in activation shape When state, after reaching certain trigger condition, other effects can be triggered, also need to be arranged at this time for triggering stateful example The trigger controller to come into force is notified that touching when state activation controller is in activation working condition (stateful example has come into force) Controller is sent out, to make trigger controller enter monitoring state-event, trigger controller can be monitored and target game pair at this time As relevant second event can also lead to when state activation controller is in inactive working condition (stateful example Pending The Entry Into Force) Know trigger controller, to make trigger controller enter non-snoop state-event, trigger controller will not be monitored and target at this time The relevant second event of game object.
When trigger controller is in and monitors state-event, trigger controller is needed to monitor relevant to target game object Second event, and after listening to the second event for meeting trigger condition data, by trigger controller to for controlling second Second effect controller of effect data sends triggering command, so that the second effect controller comes into force the second effect data, and It is applied on target game object.
For example, the status data in a stateful example be duration is 10 seconds, the target game in this 10 seconds The strength attribute of object increases by 10%, after defeating other game objects, reply the certain blood volume of target game object and/or 10% strength attribute is continued growing on the basis of current strength attribute, at this time in addition to three kinds of base controllers mentioned above Outside, it is also necessary to the trigger controller for monitoring second event be set and realize the second effect controller of said effect, touched After hair controller listens to the second event that target game object defeats other game objects, trigger controller is to the second effect control Device processed sends triggering command, so that the second effect controller realizes above-mentioned effect, and is applied to target game object;In The status data of one stateful example is that duration is 10 seconds, and the strength attribute of target game object increases in this 10 seconds 10%, after defeating other game objects, target game object exits the effect of stateful example, at this time in addition to mentioned above Three kinds of base controllers outside, it is only necessary to one is arranged again for monitoring the trigger controller of second event, in trigger controller After listening to the second event that target game object defeats other game objects, it can be sent to state activation controller corresponding Instruction, so that state activation controller is switched to inactive working condition from activation working condition, to make target game object Exit the effect of stateful example.
It should be noted that the specific working mode of trigger controller, and whether there is the second effect controller, simultaneously The particular number and type of second effect controller can be configured according to the specific effect of stateful example, not done herein specific It limits.
It should be noted that trigger condition data may include: to trigger at timed intervals, trigger, hit into blood volume section Specified type unit triggering etc. is killed, can be set about specific trigger condition data, not done herein according to actual needs It is specific to limit, when having the second effect controller, the specific effect of the second effect controller can also according to actual needs into Row setting, such as: effect can be applied to target game object, or can be applied to other game objects, closed It is not specifically limited herein in the specific effect of the second effect controller.
In a feasible embodiment, touched in described sent by the trigger controller to the second effect controller After sending instructions, the trigger controller enters the stateful example corresponding cooling time, to forbid the trigger controller to exist The triggering command is sent to second effect controller again in the cooling time.
Specifically, a cooling time can be arranged to the second effect, after the second effect comes into force, in certain time length not The second effect can be triggered again, it may be assumed that trigger controller enters stateful example corresponding cooling time, further, state at this time It include after the second effect triggers in data to the time interval triggered again, after the second effect comes into force, trigger controller is no longer Monitor second event, or even if listening to the second event for meeting trigger condition data after, will not be controlled as the second effect Device sends triggering command, triggers the second effect again to avoid interior while cooling.
It should be noted that the specific duration about cooling time, and forbid trigger controller to send triggering again and refer to The concrete mode of order can be set according to actual needs, be not specifically limited herein.
In a feasible embodiment, when in the status data include the corresponding testing conditions of the stateful example When data, the recording controller further includes the testing conditions controller for carrying out condition detection to the stateful example, institute After stating the message that testing conditions controller is sent when receiving the state activation controller and being in the activation working condition, The testing conditions controller entry condition listening state, the testing conditions controller are receiving the state activation control After device is in the message sent when the inactive working condition, the testing conditions controller enters unconditional listening state.
State generation method in the game further include:
When the testing conditions controller is in the condition listening state, detected by the testing conditions controller Third event relevant to the target game object;It is in when being included in the state activation controller in the status data When the activation working condition when corresponding third effect data, is detected in the testing conditions controller and meet the detection After the third event of condition data, tally order is sent to third effect controller by the testing conditions controller, so that The third effect controller settles accounts the target game object according to the third effect data.
Specifically, in status data include stateful example testing conditions data when, it may be assumed that stateful example be in activation shape When state, after reaching certain condition, other effects can be triggered, as: it improves and is injured caused by target target game object, or drop The injury that low target game object is subject to also needs that the testing conditions controller for carrying out condition detection is arranged at this time, in shape When state active controller is in activation working condition (stateful example has come into force), testing conditions controller is notified that, to make to examine Condition controller entry condition detecting state is surveyed, testing conditions controller is able to detect relevant to target game object the at this time Three events are also notified that testing conditions when state activation controller is in inactive working condition (stateful example Pending The Entry Into Force) Controller, to make testing conditions controller enter unconditional detecting state, testing conditions controller will not be detected and mesh at this time Mark the relevant third event of game object.
When testing conditions controller is in condition detecting state, the detection of testing conditions controller and target game pair are needed As relevant third event, and after the third event for detecting full condition detection data, by testing conditions controller to Tally order is sent in the third effect controller of control third effect data, so that third effect controller is by third effect number According to coming into force, and it is applied on target game object.
For example, the status data in a stateful example be duration is 10 seconds, the target game in this 10 seconds The strength attribute of object increases by 10%, when target game object blood volume is lower than 50%, improves target target game object and causes Injury, or reduce the injury that is subject to of target game object, needed at this time in addition to three kinds of base controllers mentioned above are complete, It also needs to be arranged the testing conditions controller for detecting third event and realizes the third effect controller of said effect, examining It surveys condition controller and detects the blood volume of target game object lower than after 50% this third event, testing conditions controller is to the Three effect controllers send tally order, so that third effect controller realizes said effect, and are applied to target game object With;It is duration in the status data of a stateful example is 10 seconds, the strength category of target game object in this 10 seconds Property increase by 10%, when target game object blood volume be lower than 50% when, target game object exits the effect of stateful example, removes at this time Outside three kinds of base controllers mentioned above, it is only necessary to the testing conditions for monitoring third event are set again and controlled Device detects that the blood volume of target game object, can be to state lower than after 50% this third event in testing conditions controller Active controller sends corresponding instruction, so that state activation controller is switched to inactive work shape from activation working condition State, so that target game object be made to exit the effect of stateful example.
It should be noted that the specific working mode of testing conditions controller, and whether there is third effect controller, The particular number and type of third effect controller can be configured according to the specific effect of stateful example simultaneously, not done herein It is specific to limit.
It it should be noted that trigger controller and testing conditions controller can be used alone, can also be used cooperatively, have Body usage mode is set according to actual stateful example, is not specifically limited herein.
It needs to illustrate again, testing conditions data may include: whether completely itself whether to be in certain state, technical ability Whether some sufficient condition, target are in certain state etc., can carry out according to actual needs about specific testing conditions data Setting, is not specifically limited, when with third effect controller, the specific effect of third effect controller can also root herein It is configured according to actual needs, such as: effect can be applied to target game object, or other game can be applied to With object, the specific effect about third effect controller is not specifically limited herein.
In order to which the technical idea of the embodiment of the present application is further described, the following are illustrative explanations.
Fig. 4 is a kind of schematic diagram for Buff foundation structure that the embodiment of the present application one provides, as shown in figure 4, the Buff base Plinth structure includes two quasi-controllers, and a quasi-controller includes: state duration controller, state superimposed layer number controller, shape State active controller, trigger controller and testing conditions controller, the second quasi-controller include: the first effect controller, second Effect controller and third effect controller.
After determining a state to be generated, according to the number and grade of the state to be generated, shape to be generated is determined Then the status data of state controls type according to the data that the status data includes, select to need from above-mentioned Buff foundation structure The recording controller to use, and loaded, to pass through the recording controller after load to the corresponding shape of state to be generated State example is specifically controlled, then according to the corresponding status data of data control type of each recording controller control, to each Recording controller is configured, and the corresponding stateful example of state to be generated can be generated at this time, pass through setting for each recording controller Set result to complete the control to the stateful example, such as: the control to stateful example duration, the number of plies to stateful example are folded Control, the control to the active mode of stateful example for adding mechanism, when there are trigger conditions for the corresponding status data of stateful example When data, it is also necessary to load trigger controller, be detected with the trigger condition to stateful example, when the corresponding shape of stateful example There are when testing conditions data for state data, it is also necessary to testing conditions controller is loaded, so as to the item being presently in stateful example Part is detected, if also needed using controlling to effect of the effect controller to stateful example, it is also necessary to load One effect controller, the second effect controller and/or third effect controller, about above-mentioned several controllers loading method and Control mode is described in detail above-mentioned, is no longer described in detail herein.
State generation method in a feasible embodiment, in the game further include:
When the state duration is 0 and/or when the state number of plies is 0, from the target game object It is upper to delete the stateful example.
Specifically, when the state duration of state duration controller is 0 and/or state superimposed layer number controller When the state number of plies is 0, the stateful example being applied on target game object failure is indicated, in order to realize to the complete of stateful example Control, it may be assumed that how to come into force and how to fail, need to delete the stateful example on target game object at this time, the mode of deletion can Think the recording controller directly deleted as stateful example load.
In a feasible embodiment, Fig. 5 is that the state in another game that the embodiment of the present application one provides is raw At the flow diagram of method, as described in Figure 5, it is described the stateful example is applied on target game object after, it is described Game in state generation method it is further comprising the steps of:
Step 501, the type for obtaining the effect state that the target game object is presently in.
The corresponding binary value mark of each type is added on the corresponding position of binary string by step 502, with To binary data string.
Step 503 saves the binary digit string.
Specifically, when target game object is currently at certain effect state, the binary system of the type of the effect state It is identified as 1, when target game object is not presently within certain effect state, the binary identification of the type of the effect state is 0, while being in advance various types of distribution binary identification position in binary string, so that the type of a certain effect state is corresponding Binary identification be added on corresponding position, such as: target game object be currently at calcination, poisoning and three kinds of silencing effect When under fruit state, wherein binary string includes 10, successively give according to binary string from low level to high-order sequence calcination, in Poison and these three effect state assignment positions of silencing, further, if target game object currently only exists in calcination state Binary digit string be 0000000001, if binary digit string when target game object currently only exists in toxic state It is 0000000010, if binary digit string when target game object currently only exists in silence state is 0000000100, If if target game object currently simultaneously be in above-mentioned three kinds of states when binary digit string be 0000000111, then into One step, if in game further including this effect state of slowing down, but target game object is not in this effect of deceleration at this time When under fruit state, need to add 0 in the position for this effect state assignment of deceleration, the binary digit string generated at this time can Using as shown in fig. 6, a kind of binary digit string that Fig. 6 is provided as the embodiment of the present application one schematic diagram, wherein the arrow in Fig. 6 Head direction is binary string from low level to high-order sequence, passes through the binary numeral on the position for each effect state assignment It can determine that target game object currently all under which effect state, is saved by obtained binary digit string Afterwards, it can continue after an action of the bowels and check, to will be traversed when avoiding checking which effect state target game object be currently at every time A time target game object, to be conducive to improve the efficiency of game processing.
It, can when determining which effect state target game object is specifically under in a feasible embodiment To binary digit string progress and operation;When with operation result being in this position non-zero binary numeral, determine The target game object is currently under the effect state of the corresponding type in the position;When in this position be with operation result When 0, determine that the target game object is not presently under the effect state of the corresponding type in the position, it can by the above method It is currently specifically under effect state with quickly obtaining target game object.
Specifically, by taking Fig. 6 as an example, in the case where target game object is in calcination, poisoning, silencing these three effect states, and When obtaining binary digit string as shown in FIG. 6, can to binary digit string as shown in FIG. 6 constitute binary numeral into Capable and operation can be obtained ahead of time target game object and be in the effective state of institute for including in game when carrying out with operation Under binary digit string, then to the two binary digit strings carry out and operation, such as: include in game institute it is effective State has ten kinds of calcination, poisoning, silencing and deceleration etc., wherein for calcination, poisoning and silencing distribution binary value and two into The position distributed in system string can refer to Fig. 6, is the binary value home position being arranged of slowing down at the 4th of binary string, is it The corresponding binary identification position of the type of his effect state is respectively at the 5th to the tenth of binary string, according to binary system Going here and there to be sequentially allocated from low level to high-order sequence gives this ten kinds of effect states such as calcination, poisoning, silencing and deceleration, generation two into Numeric string processed is then right as shown in fig. 7, Fig. 7 is the schematic diagram of another binary digit string that the embodiment of the present application one provides Number in Fig. 6 and Fig. 7 in same position carries out and operation, as shown in Figure 8 (in Fig. 6 and Fig. 7 between two dotted lines in Fig. 8 Same position), Fig. 8 is the schematic diagram of a kind of binary digit string progress and operation that the embodiment of the present application one provides, to Fig. 8 In calcination progress and operation for, to the binary numeral in Fig. 6 on calcination position and to calcination position in Fig. 7 On binary numeral carry out and operation, the binary numeral finally obtained be 1, be a non-zero binary numeral, determine mesh Mark game object is currently under burning effect, and for the deceleration progress and operation in Fig. 8, to slowing down in Fig. 6, institute is in place The binary numeral set and the binary numeral in Fig. 7 on deceleration position is carried out and operation, two finally obtained into Numerical value processed is 0, and final result 0 determines that target game object is not presently under slowing effect, therefore by the above-mentioned means, It can quickly and accurately determine target game object currently all under which effect state.
In a feasible embodiment, when the effect state for determining the corresponding type in the position is transition effect When, state switching is carried out to the target game object according to the corresponding switching function in the position.
Specifically, when target game object is in a certain or certain several state switching transition effects, for wherein A switching law (switching function) is arranged in a kind of transition effect, to realize that effect switches, such as: the transition effect is switching Model can when including switching (as included models switching 1 and models switching 2) of multiple at least one models under the switching model To be switched over according to the switching law for switching model setting, such as: being switched on the highest model of model reference priority, when cutting The transition effect for changing state includes: the switching for every kind of switching state when switching role action, switching material and switching model Effect is all switched over according to corresponding switching law.
It should be noted that switching law mentioned above is only illustrative explanation, not to the embodiment of the present application shape At restriction, such as when the transition effect of a certain switching state includes a variety of, switching law can for these types of transition effect into Then row integration is switched over to obtain the switching function after an integration by the switching function, about specific switching Rule can be set according to actual needs, be not specifically limited herein.
Embodiment two
Fig. 9 is the structural schematic diagram of the state generating means in a kind of game that the embodiment of the present application two provides, the game In state generating means include:
Acquiring unit 91, for obtaining the status data of state to be generated;
Loading unit 92 is the state to be generated in the status data for controlling type according to the data for including Load the recording controller for controlling each data control type;
Generation unit 93, for being directed to every kind of recording controller, according to the data of recording controller control The corresponding status data of type is controlled, which is configured, it is corresponding to generate the state to be generated Stateful example;
Applying unit 94, for the stateful example to be applied to target game object, so that the target game pair As under the stateful example.
In a feasible embodiment, the configuration of the acquiring unit 91 is in the state for obtaining state to be generated When data, comprising:
Determine the number and grade of the state to be generated;
According to preset status data table, the number status data corresponding with the grade is obtained.
In a feasible embodiment, the recording controller includes:
State duration controller, state superimposed layer number controller and state activation controller.
In a feasible embodiment, the configuration of the generation unit 93 is for for every kind of data control Device, according to the corresponding status data of data control type of recording controller control, to the recording controller into Row setting, when generating the corresponding stateful example of the state to be generated, comprising:
According to the corresponding status data of data control type of state duration controller control, it is State duration is arranged in the state duration controller;
According to the corresponding status data of data control type of state superimposed layer number controller control, it is The state number of plies is arranged in the state superimposed layer number controller;
It is described according to the corresponding status data of data control type of state activation controller control Working condition is arranged in state activation controller.
In a feasible embodiment, the generation unit 93 is also used to control when the state activation controller The corresponding status data of data control type in when state activation condition data is not present, by the state activation The working condition of controller is set as activation working condition;When the data of state activation controller control control type Existence activation condition data in the corresponding status data, set the working condition of the state activation controller to Inactive work shape;When the state activation controller is in the activation working condition, controlled by the state activation Device directly activates the stateful example, so that the stateful example generated is in activated state;When the state activation controller When in the inactive working condition, relevant to the target game object the is monitored by the state activation controller One event;When the state activation controller listens to the first event for meeting the state activation condition data, lead to It crosses the state activation controller and activates the stateful example, so that the stateful example generated is in activated state;Described When state activation controller does not hear the first event for meeting the state activation condition data, the state is forbidden to swash Controller living activates the stateful example, so that the stateful example generated is in inactive state.
In a feasible embodiment, the generation unit 93 is also used to be included in institute in the status data When stating corresponding first effect data when state activation controller is in the activation working condition, pass through the first effect controller First effect data is applied on the target game object.
In a feasible embodiment, when the trigger condition data in the status data including the stateful example When, the recording controller further includes for carrying out the trigger controller that triggering comes into force, the triggering control to the stateful example After the message that device processed is sent when receiving the state activation controller and being in the activation working condition, the triggering control Device enters monitoring state-event, and the trigger controller is in the inactive work receiving the state activation controller After the message sent when state, the trigger controller enters non-snoop state-event;
The generation unit 93 is also used to when the trigger controller is in the monitoring state-event, by described Trigger controller monitors second event relevant to the target game object;When being included in the state in the status data When active controller is in the activation working condition when corresponding second effect data, listened in the trigger controller full After the second event of the foot trigger condition data, is sent and triggered to the second effect controller by the trigger controller Instruction, so that second effect data is applied on the target game object by second effect controller.
In a feasible embodiment, touched in described sent by the trigger controller to the second effect controller After sending instructions, the trigger controller enters the stateful example corresponding cooling time, to forbid the trigger controller to exist The triggering command is sent to second effect controller again in the cooling time.
In a feasible embodiment, when in the status data include the corresponding testing conditions of the stateful example When data, the recording controller further includes the testing conditions controller for carrying out condition detection to the stateful example, institute After stating the message that testing conditions controller is sent when receiving the state activation controller and being in the activation working condition, The testing conditions controller entry condition listening state, the testing conditions controller are receiving the state activation control After device is in the message sent when the inactive working condition, the testing conditions controller enters unconditional listening state;
The generation unit 93 is also used to pass through when the testing conditions controller is in the condition listening state The testing conditions controller detects third event relevant to the target game object;It is included in when in the status data When the state activation controller is in the activation working condition when corresponding third effect data, in the testing conditions control After device processed detects the third event for meeting the testing conditions data, by the testing conditions controller to third effect control Device processed sends tally order, so that the third effect controller is according to the third effect data to the target game object It is settled accounts.
In a feasible embodiment, the generation unit 93 is also used to when the state duration is 0 And/or when the state number of plies is 0, the stateful example is deleted from the target game object.
In a feasible embodiment, Figure 10 is that the state in another game that the embodiment of the present application two provides is raw At the structural schematic diagram of device, as shown in Figure 10, the state generating means in the game further include:
Storage unit 95, for it is described the stateful example is applied on target game object after, obtain the mesh The type for the effect state that mark game object is presently in;The corresponding binary value mark of each type is added to binary system It goes here and there on corresponding position, to obtain binary digit string;The binary digit string is saved.
In a feasible embodiment, the storage unit 95 is also used to:
To binary digit string progress and operation;
When with operation result being in this position non-zero binary numeral, determine that the target game object is currently located Under the effect state of the corresponding type in the position;
When with operation result being in this position 0, it is corresponding to determine that the target game object is not presently within the position Type effect state under.
In a feasible embodiment, the generation unit 93 is also used to work as and determines the corresponding type in the position Effect state be transition effect when, according to the corresponding switching function in the position to the target game object carry out state cut It changes.
Detailed description about the embodiment of the present application can refer to embodiment one, no longer be described in detail herein.
In this application, in the corresponding stateful example of generation state to be generated, the state according to state to be generated is needed The data control type for including in data is used to control the data control that each data control type for state load to be generated Then device is directed to every kind of recording controller, right according to the corresponding status data of data control type of recording controller control The recording controller is configured, to generate the corresponding stateful example of the state to be generated, it may be assumed that generating different stateful examples When, all corresponding recording controller can be loaded according to the corresponding status data of the stateful example, and to the number of each bootstrap loading It is configured according to controller, to generate corresponding stateful example, further, different stateful examples is by respectively corresponding to Recording controller controlled, so that corresponding effect is realized, so that any two stateful example will not generate It influences, such as: the stateful example that the same state to be generated of two effects generates is carried out by corresponding recording controller Control, after the effect modification to the corresponding stateful example of one of them state to be generated, generating the state to be generated When corresponding stateful example, it is only necessary to load recording controller for controlling the corresponding stateful example of the state to be generated i.e. Can, any variation will not occur for the loading method of the corresponding stateful example of another state to be generated at this time, that is to say, that another The corresponding stateful example of a state to be generated not will receive the influence of the modification of the corresponding stateful example of the state to be generated, thus Advantageously reduce the coupling in a game combat system between different conditions example.
Embodiment three
Figure 11 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application three provides, comprising: processor 1101 is deposited Storage media 1102 and bus 1103, the storage medium 1102 are stored with the executable machine readable finger of the processor 1101 It enables, when electronic equipment runs the state generation method in above-mentioned game, the processor 1101 and the storage medium It is communicated between 1102 by bus 1103, the processor 1101 executes the machine readable instructions, to execute following steps:
Obtain the status data of state to be generated;
Type is controlled according to the data for including in the status data, it is each for controlling for the state load to be generated The recording controller of the data control type;
For recording controller described in every kind, according to the corresponding institute of data control type of recording controller control Status data is stated, which is configured, to generate the corresponding stateful example of the state to be generated;
The stateful example is applied on target game object, so that the target game object is in the state reality Under example.
In the embodiment of the present application, the storage medium 1102 can also store other machine readable instructions, to execute such as State generation method in embodiment one in other game, about the method and step and principle specifically executed referring to implementation The explanation of example one, in this not go into detail.
Example IV
The embodiment of the present application four additionally provides a kind of computer readable storage medium, deposits on the computer readable storage medium Computer program is contained, which executes following steps when being run by processor:
Obtain the status data of state to be generated;
Type is controlled according to the data for including in the status data, it is each for controlling for the state load to be generated The recording controller of the data control type;
For recording controller described in every kind, according to the corresponding institute of data control type of recording controller control Status data is stated, which is configured, to generate the corresponding stateful example of the state to be generated;
The stateful example is applied on target game object, so that the target game object is in the state reality Under example.
In the embodiment of the present application, other machine readable fingers can also be performed when which is run by processor Enable, to execute the state generation method in game as described in other in embodiment one, about the method and step specifically executed with Principle is referring to the explanation of embodiment one, and in this not go into detail.
Specifically, which can be general storage medium, such as mobile disk, hard disk, on the storage medium Computer program when being run, since different stateful examples is controlled by corresponding recording controller, thus Corresponding effect is realized, so that any two stateful example will not have an impact, to advantageously reduce a trip Coupling in play combat system between different conditions example.
In embodiment provided herein, it should be understood that disclosed device and method, it can be by others side Formula is realized.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only one kind are patrolled Function division is collected, there may be another division manner in actual implementation, in another example, multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some communication interfaces, device or unit It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in embodiment provided by the present application can integrate in one processing unit, it can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) execute each embodiment the method for the application all or part of the steps. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), arbitrary access are deposited The various media that can store program code such as reservoir (Random Access Memory, RAM), magnetic or disk.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen It please be described in detail, those skilled in the art should understand that: anyone skilled in the art Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution.The protection in the application should all be covered Within the scope of.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (16)

1. the state generation method in a kind of game characterized by comprising
Obtain the status data of state to be generated;
Type is controlled according to the data for including in the status data, it is each described for controlling for the state load to be generated The recording controller of data control type;
For recording controller described in every kind, according to the corresponding shape of data control type of recording controller control State data are configured the recording controller, to generate the corresponding stateful example of the state to be generated;
The stateful example is applied on target game object, so that the target game object is in the stateful example Under.
2. the state generation method in game as described in claim 1, which is characterized in that the shape for obtaining state to be generated State data, comprising:
Determine the number and grade of the state to be generated;
According to preset status data table, the number status data corresponding with the grade is obtained.
3. the state generation method in game as described in claim 1, which is characterized in that the recording controller includes:
State duration controller, state superimposed layer number controller and state activation controller.
4. the state generation method in game as claimed in claim 3, which is characterized in that described to be directed to every kind of data control Device processed, according to the corresponding status data of data control type of recording controller control, to the recording controller It is configured, to generate the corresponding stateful example of the state to be generated, comprising:
It is described according to the corresponding status data of data control type of state duration controller control State duration is arranged in state duration controller;
It is described according to the corresponding status data of data control type of state superimposed layer number controller control The state number of plies is arranged in state superimposed layer number controller;
It is the state according to the corresponding status data of data control type of state activation controller control Working condition is arranged in active controller.
5. the state generation method in game as claimed in claim 4, which is characterized in that described according to the state activation control The corresponding status data of data control type of device control processed, is arranged work shape for the state activation controller State, comprising:
When there is no states in the corresponding status data of data control type of state activation controller control When activation condition data, activation working condition is set by the working condition of the state activation controller;
When existence swashs in the corresponding status data of data control type of state activation controller control Condition data living, sets inactive working condition for the working condition of the state activation controller;
State generation method in the game further include:
When the state activation controller is in the activation working condition, directly activated by the state activation controller The stateful example, so that the stateful example generated is in activated state;
When the state activation controller is in the inactive working condition, by the state activation controller monitor with The relevant first event of the target game object;It is listened in the state activation controller and meets the state activation condition When the first event of data, the stateful example is activated by the state activation controller, so that the shape generated State example is in activated state;It is not heard in the state activation controller and meets described the of the state activation condition data When one event, the state activation controller is forbidden to activate the stateful example, so that the stateful example generated is in non- Activated state.
6. the state generation method in game as claimed in claim 5, which is characterized in that the state in the game generates Method further include:
When being included in the state activation controller in the status data and being in the activation working condition corresponding first When effect data, first effect data is applied on the target game object by the first effect controller.
7. the state generation method in game as claimed in claim 5, which is characterized in that when in the status data include institute When stating the trigger condition data of stateful example, the recording controller further includes coming into force for carrying out triggering to the stateful example Trigger controller;Trigger controller hair when receiving the state activation controller and being in the activation working condition After the message sent, the trigger controller enters monitoring state-event, and the trigger controller is receiving the state activation After controller is in the message sent when the inactive working condition, the trigger controller enters non-snoop state-event;
State generation method in the game further include:
When the trigger controller is in the monitoring state-event, is monitored by the trigger controller and swum with the target The relevant second event of play object;
When being included in the state activation controller in the status data and being in the activation working condition corresponding second When effect data, after the trigger controller listens to the second event for meeting the trigger condition data, pass through institute It states trigger controller and sends triggering command to the second effect controller, so that second effect controller is by second effect Data are applied on the target game object.
8. the state generation method in game as claimed in claim 7, which is characterized in that controlled described by the triggering State generation method after device sends triggering command to the second effect controller, in the game further include:
The trigger controller enters the stateful example corresponding cooling time, to forbid the trigger controller described cold But the triggering command is sent to second effect controller again in the time.
9. the state generation method in game as claimed in claim 5, which is characterized in that when in the status data include institute When stating the corresponding testing conditions data of stateful example, the recording controller further includes for carrying out condition to the stateful example The testing conditions controller of detection;The testing conditions controller is in the activation receiving the state activation controller After the message sent when working condition, the testing conditions controller entry condition listening state, the testing conditions controller After the message sent when receiving the state activation controller and being in the inactive working condition, the testing conditions control Device processed enters unconditional listening state;
State generation method in the game further include:
When the testing conditions controller is in the condition listening state, pass through testing conditions controller detection and institute State the relevant third event of target game object;
The corresponding third when being included in the state activation controller in the status data and being in the activation working condition When effect data, after the third event for meeting the testing conditions data is detected in the testing conditions controller, pass through institute It states testing conditions controller and sends tally order to third effect controller, so that the third effect controller is according to described the Three effect datas settle accounts the target game object.
10. the state generation method in game as claimed in claim 4, which is characterized in that the state in the game is raw At method further include:
When the state duration is 0 and/or when the state number of plies is 0, deleted from the target game object Except the stateful example.
11. the state generation method in game as described in claim 1, which is characterized in that described by the stateful example State generation method after being applied on target game object, in the game further include:
Obtain the type for the effect state that the target game object is presently in;
The corresponding binary value mark of each type is added on the corresponding position of binary string, to obtain binary digit String;
The binary digit string is saved.
12. the state generation method in game as claimed in claim 11, which is characterized in that the state in the game is raw At method further include:
To binary digit string progress and operation;
When with operation result being in this position non-zero binary numeral, determine that the target game object is currently at this Under the effect state of the corresponding type in position;
When with operation result being in this position 0, determine that the target game object is not presently within corresponding kind of the position Under the effect state of class.
13. the state generation method in game as claimed in claim 12, which is characterized in that when determining that the position is corresponding When the effect state of type is transition effect, state is carried out to the target game object according to the corresponding switching function in the position Switching.
14. the state generating means in a kind of game characterized by comprising
Acquiring unit, for obtaining the status data of state to be generated;
Loading unit is used for controlling type according to the data for including in the status data for the state load to be generated In the recording controller for controlling each data control type;
Generation unit controls kind according to the data of recording controller control for being directed to every kind of recording controller The corresponding status data of class, is configured the recording controller, real to generate the corresponding state of the state to be generated Example;
Applying unit, for the stateful example to be applied to target game object, so that the target game object is in Under the stateful example.
15. a kind of electronic equipment characterized by comprising processor, storage medium and bus, the storage medium are stored with The executable machine readable instructions of the processor, when electronic equipment operation, between the processor and the storage medium By bus communication, the processor executes the machine readable instructions, to execute as described in any in claim 1 to 13 The step of state generation method in game.
16. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program executes the state in the game as described in any in claim 1 to 13 when the computer program is run by processor The step of generation method.
CN201910688599.5A 2019-07-29 2019-07-29 Method and device for generating state in game, electronic equipment and storage medium Active CN110393920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910688599.5A CN110393920B (en) 2019-07-29 2019-07-29 Method and device for generating state in game, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910688599.5A CN110393920B (en) 2019-07-29 2019-07-29 Method and device for generating state in game, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110393920A true CN110393920A (en) 2019-11-01
CN110393920B CN110393920B (en) 2024-01-26

Family

ID=68326434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910688599.5A Active CN110393920B (en) 2019-07-29 2019-07-29 Method and device for generating state in game, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110393920B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111097173A (en) * 2019-12-25 2020-05-05 腾讯科技(深圳)有限公司 Method and device for acquiring game gain state example and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109314801A (en) * 2016-06-13 2019-02-05 索尼互动娱乐美国有限责任公司 The method and system executed later for saving the snapshot of Entertainment and for starting the Entertainment that any user carries out when executing on game cloud system
US20190099674A1 (en) * 2016-08-05 2019-04-04 Tencent Technology (Shenzhen) Company Limited Method and apparatus for updating virtual application attribute, and storage medium
CN109806596A (en) * 2019-03-20 2019-05-28 网易(杭州)网络有限公司 Game picture display methods and device, storage medium, electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109314801A (en) * 2016-06-13 2019-02-05 索尼互动娱乐美国有限责任公司 The method and system executed later for saving the snapshot of Entertainment and for starting the Entertainment that any user carries out when executing on game cloud system
US20190099674A1 (en) * 2016-08-05 2019-04-04 Tencent Technology (Shenzhen) Company Limited Method and apparatus for updating virtual application attribute, and storage medium
CN109806596A (en) * 2019-03-20 2019-05-28 网易(杭州)网络有限公司 Game picture display methods and device, storage medium, electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
佚名: "游戏开发——战斗系统设计技", pages 4 - 5, Retrieved from the Internet <URL:https://blog.51cto.com/u_15057848/4657640> *
养眼大魔王: "游戏BUFF设计", 《HTTPS://WWW.BBSMAX.COM/A/VGZLOEMXDB/》, 23 August 2016 (2016-08-23), pages 1 *
养眼大魔王: "游戏BUFF设计", pages 1, Retrieved from the Internet <URL:https://www.bbsmax.com/A/VGzloEMxdb/> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111097173A (en) * 2019-12-25 2020-05-05 腾讯科技(深圳)有限公司 Method and device for acquiring game gain state example and computer storage medium
CN111097173B (en) * 2019-12-25 2021-04-20 腾讯科技(深圳)有限公司 Method and device for acquiring game gain state example and computer storage medium

Also Published As

Publication number Publication date
CN110393920B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
CN106302418B (en) The update method and device of virtual application attribute
CN106503787A (en) A kind of method for obtaining game data and electronic equipment
USRE45132E1 (en) System and method for control and training of avatars in an interactive environment
CN107998661A (en) A kind of aid decision-making method, device and the storage medium of online battle game
CN108579085A (en) Treating method and apparatus, storage medium and the electronic device of barrier collision
CN109858549B (en) Method, apparatus and medium for training application object recognition and recognition model thereof
CN109408384A (en) Test method, device, processor and the electronic device of software application
CN104965695B (en) The method and apparatus of analog subscriber real-time operation
Zheng et al. Robust development of synfire chains from multiple plasticity mechanisms
CN105447296B (en) Data handling system, the apparatus and method of playing card board type sequence winning sequence sequence
CN106730850A (en) Game partners matching process and device
CN109847366A (en) Data for games treating method and apparatus
CN108228251A (en) The method and apparatus of control targe object in game application
CN110393920A (en) State generation method, device, electronic equipment and storage medium in game
CN110090443A (en) Virtual object control method and device, storage medium and electronic device
CN103475659A (en) Fighting method and system based on real-time strategy game
CN107648853A (en) Display target object method, device and storage medium in interface
CN111701246B (en) Decision configuration method and device for game AI
CN106339302A (en) Test method and device for client
CN109925712B (en) Virtual object control system
KR101501830B1 (en) Simulation method and system result of the Baseball game interference
Passos et al. Power law distributions in pattern dynamics of attacker-defender dyads in the team sport of rugby union: phenomena in a region of self-organized criticality
CN110102047B (en) Game operation processing method and device, and game effect display method and device
CN108310774A (en) Transmission method, device, storage medium and the electronic device of operation result
CN108014499A (en) A kind of application parameter method of adjustment and device

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
GR01 Patent grant
GR01 Patent grant