Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in the course of describing the embodiments of the application are applicable to the following explanation:
The game rules are that the players choose combinations among different kinds of chesses and then arrange on their own chessboard, finally the system automatically fights with other players until the survival of the chesses is achieved, the blood volume of the loser is deducted, and the process is repeated for many times until only one of the players survives.
The application is illustrated below with reference to examples:
According to an aspect of the embodiment of the present application, there is provided a method for updating a virtual attribute, and optionally, in this embodiment, the method for updating a virtual attribute may be applied to a hardware environment composed of a server 101 and a terminal device 103 as shown in fig. 1. As shown in fig. 1, a server 101 is connected to a terminal 103 through a network, and may be used to provide services to a terminal device or an application installed on the terminal device, which may be a video application, an instant messaging application, a browser application, an educational application, a game application, or the like. The database 105 may be provided on a server or independent of the server, and is used for providing a data storage service for the server 101, for example, a game data storage server, where the network may include, but is not limited to, a wired network, a wireless network, where the wired network includes a local area network, a metropolitan area network, and a wide area network, where the wireless network includes bluetooth, WIFI, and other networks for implementing wireless communication, the terminal device 103 may be a terminal configured with an application program, and may include, but is not limited to, at least one of a Mobile phone (such as an Android Mobile phone, an iOS Mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile INTERNET DEVICES, a Mobile internet device), a PAD, a desktop computer, a smart tv, etc., and the server may be a single server, or a server cluster including multiple servers, or a cloud server, where the application program 107 using the update method of virtual attribute is displayed through the terminal device 103 or other connected display device.
As shown in fig. 1, the above-mentioned method for updating the virtual attribute may be implemented in the terminal device 103 by:
S1, displaying a first resource number of virtual resources currently held by a target account, a current attribute value of a target attribute of the target account and a target attribute value in a game picture of a game on terminal equipment 103, wherein the number of virtual resources consumed when the attribute value of the target attribute is increased by the first attribute number each time is a second resource number;
S2, when the difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, the attribute value of the target attribute is increased from the current attribute value to the target attribute value by consuming virtual resources of the first target resource number in response to the acquired target touch operation on the terminal device 103, wherein the first target resource number is the number of virtual resources required to be consumed to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
Alternatively, in this embodiment, the method for updating the virtual attribute may be implemented by a server, for example, in the server 101 shown in fig. 1, or implemented by a user terminal and the server together.
The above is merely an example, and the present embodiment is not particularly limited.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for updating the virtual attribute includes:
s202, displaying the first resource quantity of the virtual resources currently held by the target account, the current attribute value of the target attribute of the target account and the target attribute value in a game picture of a game, wherein the quantity of the virtual resources consumed when the attribute value of the target attribute is increased by the first attribute quantity is the second resource quantity each time;
S204, when the difference value between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, the attribute value of the target attribute is increased from the current attribute value to the target attribute value through consuming virtual resources of the first target resource number in response to the acquired target touch operation, wherein the first target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the current attribute value to the target attribute value.
Alternatively, in the present embodiment, the one-play game may include, but is not limited to, a multiplayer online tactical game (Multiplayer Online Battle Arena abbreviated MOBA) or a Single player game (Single-PLAYER GAME abbreviated SPG). It should be noted that the types of the above game applications may include, but are not limited to, at least one of a Two-dimensional (2D) game application, a Three-dimensional (3D) game application, a Virtual Reality (VR) game application, an augmented Reality (Augmented Reality AR) game application, and a Mixed Reality (MR) game application. The above is merely an example, and the present embodiment is not limited in any way.
The target account can be a registered game account, a mobile phone number of a user, a game account corresponding to a third party application after the account of the third party application is logged in the game application, and the like.
Alternatively, in the present embodiment, the virtual resources may include, but are not limited to, virtual gold, virtual energy, virtual wood, virtual precious stone, virtual coupon, and the like.
Alternatively, in the present embodiment, the above-mentioned target attribute may include, but is not limited to, a virtual experience value of the target account, a virtual level, the number of virtual characters allowed to be controlled, a highest level of virtual characters allowed to be controlled, and the like.
Optionally, in this embodiment, the target touch operation may include, but is not limited to, a touch operation performed on the interactive object, such as clicking, long pressing, double clicking, dragging, and the like, and may also include, but is not limited to, a touch operation corresponding to an operation instruction generated by a gesture, a voice, and the like.
Optionally, in this embodiment, the first resource number of the virtual resource currently held by the target account may include, but is not limited to, a first resource number of the virtual resource currently held by the target account in a current round or a first resource number of the virtual resource allowed to be consumed by the target account in a current round, and the current attribute value and the target attribute value of the target attribute of the target account may include, but are not limited to, an attribute value of the target attribute at the current time and a target attribute value to be updated.
For example, fig. 3 is a schematic diagram of an alternative method for updating virtual attributes according to an embodiment of the present application, as shown in fig. 3 (it should be noted that, in fig. 3 to 10, the first attribute number=4, the second attribute number=4 may not be displayed in a game frame, but preset parameters, and of course, may also be displayed in a game frame through animation or other forms such as text to remind a user), where a game is a game of playing a game board, the virtual resource is a virtual gold coin, the target attribute is a virtual experience value, the game frame is a game frame displayed after the target account starts a game, a first resource number 302 corresponding to the virtual resource currently held by the target account is displayed in a right bottom corner of the game frame, a current attribute value 304 and a target attribute value 306 of the target attribute of the target account are displayed in a left bottom corner of the game frame, after the current attribute value is updated to the target attribute value, and may include, but not limited to increasing the number of virtual pieces 310 allowed to be placed in the game board 308, but may also include, but not limited to increasing the number of virtual pieces 310, which may also include but not limited to increasing the release force of the virtual pieces 310, the game board, the virtual playing force, the virtual model, the virtual appearance, or the virtual appearance of the virtual model 308 may not be changed, or the appearance may be changed, or the appearance of a number of various appearance or appearance skills, or the appearance of the appearance may not be changed.
The above is merely an example, and the present embodiment is not limited in any way.
Alternatively, in this embodiment, the foregoing method for increasing the attribute value of the target attribute by the first attribute number of virtual resources may include, but is not limited to, by presetting a touch operation, consuming virtual resources of the second resource number each time in response to the touch operation, for increasing the attribute value of the first attribute number for the target attribute, where the correspondence between the first attribute number and the second resource number may be flexibly set.
For example, fig. 4 is a schematic diagram of another alternative method for updating a virtual attribute according to an embodiment of the present application, as shown in fig. 4, taking an example that a game is a game of a game board game, a virtual resource is a virtual gold coin, and a target attribute is a virtual experience value, the game screen is a game screen displayed after a target account starts a game, a first resource number 402 corresponding to the virtual resource currently held by the target account is displayed in a lower right corner of the game screen, a current attribute value 404 of the target attribute of the target account is displayed in a lower left corner of the game screen, and after a preset touch operation is acquired, a second resource number of virtual gold coins is consumed from the virtual resource of the first resource number to increase the virtual experience value from the current attribute value to the target attribute value.
S1, performing touch operation on the touch button 406;
S2, deducting the second resource quantity from the first resource quantity in response to the touch operation, increasing the current attribute value of the target attribute by the first attribute quantity, and displaying the quantity of virtual resources currently held by the updated target account and the updated attribute value of the target attribute in a game picture, wherein the quantity of virtual gold coins consumed each time the virtual experience value is increased by 4 (corresponding to the first attribute quantity) is preconfigured to be 4 (corresponding to the second resource quantity), at the moment, the quantity of virtual resources held by the target account is displayed to be 4 (obtained by 8-4), and the current attribute value of the target account is updated to be 16 (obtained by 12+4).
The above is merely an example, and the present embodiment is not limited in any way.
Alternatively, in this embodiment, the difference between the current attribute value and the target attribute value may include, but is not limited to, a value of an attribute value that is required to be adjusted to update the target attribute, and the difference may include, but is not limited to, being directly displayed in the game screen, or by displaying the current attribute value and the target attribute value, and being calculated by the player according to the current attribute value and the target attribute value. Taking fig. 4 as an example, when the current attribute value is 12 and the target attribute value is 20, the difference between the current attribute value and the target attribute value is 20-12=8.
Alternatively, in this embodiment, the difference between the current attribute value and the target attribute value being smaller than the first attribute value may be understood as that the difference between the current attribute value and the target attribute value is smaller than the amount by which the attribute value of the target attribute is increased each time, the first resource amount being smaller than the second resource amount may be understood as that the virtual resource amount currently held by the target account is smaller than the amount of virtual resource consumed when the first attribute value is increased each time by updating, and the first resource amount being greater than or equal to the first target resource amount may be understood as that the virtual resource amount currently held by the target account is greater than or equal to the amount of virtual resource consumed to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
For example, fig. 5 is a schematic diagram of an alternative method for updating a virtual attribute according to an embodiment of the present application, as shown in fig. 5, taking an example that a game is a game of a game, a virtual resource is a virtual gold, a target attribute is a virtual experience value, the game screen is a game screen displayed after a target account starts a game, a first resource number 502 (2 virtual gold) corresponding to a virtual resource currently held by the target account is displayed in a lower right corner of the game screen, a current attribute value 504 (18 point attribute value) of a target attribute of the target account is displayed in a lower left corner, a virtual gold of a second resource number (4) is consumed each time by the target account is preset, the virtual experience of the first attribute number (4) can be increased, and when it is determined that a difference (2) between the current attribute value (18) and the target attribute value (20) is smaller than the first attribute number (4), the first resource number (2) is smaller than the second resource number (4), and the first resource number (2) is equal to the first target resource number (2), a touch operation is performed to increase the target value from the first virtual resource number (2) to the virtual attribute value (18).
S1, performing target touch operation on a touch button 506;
S2, responding to the target touch operation, deducting the first target resource quantity (2) from the first resource quantity (2), adding the current attribute value (18) of the target attribute to the target attribute value (20), and displaying the quantity (0) of the virtual resources currently held by the updated target account and the updated attribute value (20/20) of the target attribute in the game picture.
The above is merely an example, and the present embodiment is not limited in any way.
By this embodiment, a first resource number of virtual resources currently held by a target account, a current attribute value of a target attribute of the target account, and a target attribute value are displayed in a game screen of a game, wherein the number of virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute number is a second resource number, a difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is greater than or equal to the first target resource number, in response to an acquired target touch operation, the attribute value of the target attribute is increased from the current attribute value to the target attribute value by consuming the virtual resources of the first target resource number in a manner that the attribute value of the target attribute is increased from the current attribute value to the number of virtual resources required to be consumed by the target attribute value, when the number of virtual resources currently held by the target account is smaller than the number of virtual resources consumed when the attribute value of the target attribute is increased each time, the target account cannot update the virtual attribute, but when the difference between the current attribute value and the target attribute value is smaller than the attribute number when the attribute value of the target attribute is increased each time, the virtual resources of the first target resource number can be consumed through the acquired target touch operation, the attribute value of the target attribute is increased from the current attribute value to the target attribute value, an updating mechanism under the special condition of increasing is achieved, the aim of updating the virtual attribute can be realized by only consuming a small amount of virtual resources when the number of the virtual resources held by the target account is insufficient to be completely updated once but is sufficient to be increased from the current attribute value to the target attribute value, therefore, the updating efficiency of the virtual attribute is improved, the waiting time of the target account in updating the virtual attribute is shortened, the technical effect of timeliness of updating the virtual attribute is optimized, and the technical problem of low updating efficiency of the virtual attribute in the related technology is solved.
As an alternative, the method further comprises:
When the difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, displaying first prompt information, wherein the first prompt information is used for prompting the attribute value of the target attribute to be increased by consuming virtual resources of the first target resource number;
And when the difference value between the current attribute value and the target attribute value is greater than or equal to the first attribute number, or the first resource number is greater than or equal to the second resource number, or the first resource number is smaller than the first target resource number, displaying second prompt information, wherein the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming the virtual resource of the second resource number.
Alternatively, in this embodiment, the difference between the current attribute value and the target attribute value being smaller than the first attribute value may be understood as that the difference between the current attribute value and the target attribute value is smaller than the amount by which the attribute value of the target attribute is increased each time, the first resource amount being smaller than the second resource amount may be understood as that the virtual resource amount currently held by the target account is smaller than the amount of virtual resource consumed when the first attribute value is increased each time by updating, and the first resource amount being greater than or equal to the first target resource amount may be understood as that the virtual resource amount currently held by the target account is greater than or equal to the amount of virtual resource consumed to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
Alternatively, in this embodiment, the difference between the current attribute value and the target attribute value is greater than or equal to a first number of attributes, which is greater than or equal to a second number of resources, where the number of virtual resources currently held by the target account is greater than or equal to the number of virtual resources consumed when the first number of attributes is increased each time, and the first number of resources is less than the first number of target resources, where the number of virtual resources currently held by the target account is less than the number of virtual resources consumed when the attribute value of the target attribute is increased from the current attribute value to the target attribute value.
Alternatively, in this embodiment, the first hint information may include, but is not limited to, an attribute value indicating that the target attribute is allowed to be increased by consuming the virtual resource of the first target resource amount. The second hint information may include, but is not limited to, an attribute value indicating that the target attribute is allowed to be increased by consuming a second amount of virtual resources, and in particular, the first hint information and the second hint information may be displayed in different colors, words, logos, etc.
For example, fig. 6 is a schematic diagram of an alternative method for updating a virtual attribute according to an embodiment of the present application, as shown in fig. 6, taking an example that a game is a game of a game, a virtual resource is a virtual gold, a target attribute is a virtual experience value, the game screen is a game screen displayed after a target account starts a game, a first resource number 602 (2 virtual gold) corresponding to a virtual resource currently held by the target account is displayed in a lower right corner of the game screen, a current attribute value 604 (18 point attribute value) of a target attribute of the target account is displayed in a lower left corner, a virtual gold of a second resource number (4) is preset each time the target account consumes, the virtual experience of the first attribute number (4) can be increased, and when it is determined that a difference (2) between the current attribute value (18) and the target attribute value (20) is smaller than the first attribute number (4), the first resource number (2) is smaller than the second resource number (4), and the first resource number (2) is equal to the first target resource number (2), a first information indicating that the consumption of the virtual resource (2) is allowed to be increased from the first attribute value (18) to the virtual attribute value (2).
For example, fig. 7 is a schematic diagram of another alternative method for updating virtual attributes, as shown in fig. 7, where a game is a self-propelled chess game, a virtual resource is a virtual gold coin, and a target attribute is a virtual experience value as an example:
The game screen is a game screen displayed after the target account starts a game, a first resource number 702 (2 virtual gold coins) corresponding to a virtual resource currently held by the target account is displayed at the right lower corner of the game screen, a current attribute value 704 (12-point attribute value) of a target attribute of the target account is displayed at the left lower corner, virtual gold coins of a second resource number (4) are preset for each consumption of the target account, virtual experience of the first attribute number (4) can be increased, and when it is determined that a difference value (8) between the current attribute value (12) and the target attribute value (20) is larger than the first attribute number (4), second prompt information 706 is displayed, the second prompt information indicates virtual gold coins which are allowed to consume the second resource number (4), and the current attribute value of the virtual experience value is increased.
For example, fig. 8 is a schematic diagram of another alternative method for updating virtual attributes, as shown in fig. 8, where a game is a self-propelled chess game, a virtual resource is a virtual gold coin, and a target attribute is a virtual experience value as an example:
The game picture is a game picture displayed after the target account starts a game, a first resource number 802 (2 virtual gold coins) corresponding to a virtual resource currently held by the target account is displayed at the right lower corner of the game picture, a current attribute value 804 (12-point attribute value) of a target attribute of the target account is displayed at the left lower corner, virtual gold coins of a second resource number (4) are preset for each consumption of the target account, virtual experience of the first attribute number (4) can be increased, when the first resource number (8) is determined to be larger than the second resource number (4), second prompt information 806 is displayed, the second prompt information indicates that the virtual gold coins of the second resource number (4) are allowed to be consumed, and the current attribute value of the virtual experience value is increased.
For example, fig. 9 is a schematic diagram of another alternative method for updating virtual attributes, as shown in fig. 9, where a game is a self-propelled chess game, a virtual resource is a virtual gold coin, and a target attribute is a virtual experience value as an example:
The game picture is a game picture displayed after the target account starts a game, a first resource quantity 902 (2 virtual gold coins) corresponding to a virtual resource currently held by the target account is displayed at the right lower corner of the game picture, a current attribute value 904 (12-point attribute value) of a target attribute of the target account is displayed at the left lower corner, virtual gold coins of a second resource quantity (4) are preset for each consumption of the target account, virtual experience of the first attribute quantity (4) can be increased, when the first resource quantity (1) is determined to be smaller than the first target resource quantity (2), second prompt information 906 is displayed, the second prompt information indicates the virtual gold coins which are allowed to consume the second resource quantity (4), and the current attribute value of the virtual experience value is increased.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, when the difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is greater than or equal to the first target resource number, in response to the obtained target touch operation, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resource of the first target resource number, including:
When the difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, displaying the target control in a touch-enabled state, wherein the target control is used for consuming virtual resources to increase the attribute value of the target attribute, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resources of the first target resource number in response to a target touch operation performed on the target control, or
When the difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, a target window is popped up, first prompt information and a target determination button are displayed in the target window, wherein the first prompt information is used for prompting an attribute value allowing the target attribute to be increased by consuming virtual resources of the first target resource number, and the attribute value of the target attribute is increased from the current attribute value to the target attribute value by consuming virtual resources of the first target resource number in response to a target touch operation performed on the target determination button.
Optionally, in this embodiment, the target control may include, but is not limited to, an interactive control that allows a touch operation such as clicking, long pressing, dragging or loosening, and the displaying the target control in a state that allows a touch may include, but is not limited to, displaying the target control in a state that allows a touch operation such as clicking, long pressing, dragging or loosening.
After performing the above-mentioned target touch operations such as clicking, long pressing, dragging or releasing on the target control, as shown in fig. 5, virtual resources of the first target resource number (2) may be consumed, and the attribute value of the target attribute may be increased from the current attribute value (18) to the target attribute value (20).
Optionally, in this embodiment, the above-mentioned target determination button may include, but is not limited to, an interactive control that allows a touch operation such as clicking, long pressing, dragging, or releasing, and is used to increase the attribute value of the target attribute from the current attribute value to the target attribute value by consuming a virtual resource of the first target resource amount, and the above-mentioned pop-up target window may include, but is not limited to, popping up at a predetermined time node, or popping up when the difference between the current attribute value and the target attribute value is smaller than the first attribute amount, the first resource amount is smaller than the second resource amount, and the first resource amount is greater than or equal to the first target resource amount. The displaying the first prompt information and the target determination button in the target window may include, but is not limited to, simultaneously displaying the first prompt information and the target determination button, and may also include, but is not limited to, displaying the first prompt information and the target determination button in a preset order, and specifically may include, but is not limited to, displaying the first prompt information and then displaying the target determination button.
For example, fig. 10 is a schematic diagram of another alternative method for updating virtual attributes, as shown in fig. 10, where a game is a self-propelled chess game, a virtual resource is a virtual gold coin, and a target attribute is a virtual experience value as an example:
The game screen is a game screen displayed after the target account starts a game, a first resource number 1002 (2 virtual gold coins) corresponding to a virtual resource currently held by the target account is displayed at the right bottom corner of the game screen, a current attribute value 1004 (12-point attribute value) of a target attribute of the target account is displayed at the left bottom corner, virtual gold coins of a second resource number (4) are preset for each consumption of the target account, virtual experience of the first attribute number (4) can be increased, when it is determined that a difference value between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, a target window 1006 is popped up, and first prompt information 1008 and a target determination button 1010 are displayed at the target window 1006, so that the attribute value of the target attribute is increased from the current attribute value to the target attribute value by consuming the virtual resource of the first target resource number in response to a target touch operation performed on the target determination button.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, the method further comprises:
When the difference value between the current attribute value and the target attribute value is greater than or equal to the first attribute number and the first resource number is smaller than the second resource number, displaying second prompt information, and displaying the target control in a state of not allowing touch control, wherein the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the second resource number;
When the attribute value of the target attribute is increased from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the second target resource number, switching from displaying the second prompt information to displaying the third prompt information, and displaying the target control in a touch enabled state, wherein the third prompt information is used for prompting the attribute value of the target attribute to be increased by consuming the virtual resource of the second target resource number, and the second target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the first attribute value to the target attribute value.
Alternatively, in this embodiment, the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute value, and the first resource quantity is smaller than the second resource quantity, which may be understood that the difference between the current attribute value and the target attribute value is greater than or equal to the quantity of increasing the attribute value of the target attribute by consuming the second resource quantity each time, and the first resource quantity is smaller than the second resource quantity, which may be understood that the virtual resource quantity currently held by the target account is smaller than the virtual resource quantity consumed when the first attribute value is increased by each update, and at this time, although the second hint information for prompting that the attribute value of the target attribute is allowed to be increased by consuming the virtual resource of the second resource quantity is displayed, the target control is displayed in a state that touch is not allowed.
Alternatively, in this embodiment, the first attribute value is an attribute value having a difference from the target attribute value smaller than the first attribute number, for example, the target attribute value is 20, the first attribute number is 4, and the first attribute value is any one of 17, 18, and 19,
Alternatively, in this embodiment, the increase of the attribute value of the target attribute from the current attribute value to the first attribute value may be a first attribute value obtained by successively increasing the number of first attributes, for example, the current attribute value is 0, the number of first attributes is 4, each time the number of first attributes is increased by 4, the first time is 0 to 4, the second time is 4 to 8, and so on.
Optionally, in this embodiment, the third prompting information may include, but is not limited to, an attribute value for prompting that the target attribute is allowed to be increased by consuming the virtual resource of the second target resource amount, for example, the first attribute value is 18, the target attribute value is 20, then the second target resource amount is 2, by consuming the virtual resource of the second target resource amount, the attribute value of the target attribute is increased from 18 to 20, and the target control is displayed in a state that allows touch control.
For example, fig. 11 is a schematic diagram of another alternative method for updating virtual attributes, as shown in fig. 11, where a game is a game of self-propelled chess, a virtual resource is a virtual gold coin, and a target attribute is a virtual experience value as an example:
the game picture is a game picture displayed after a target account starts a game, a first resource number 1102 (6 virtual gold coins) corresponding to a virtual resource currently held by the target account is displayed at the right bottom corner of the game picture, a current attribute value 1104 (14-point attribute value) of a target attribute of the target account is displayed at the left bottom corner, virtual gold coins of a second resource number (4) are preset for each consumption of the target account, virtual experience of the first attribute number (4) can be increased, after the second resource number 4 is consumed, the current attribute value is increased by the first attribute number, a first attribute value 14+4=18 is obtained, when the target attribute value is 20, a difference value (2) between the first attribute value (18) and the target attribute value (20) is smaller than the first attribute number (4), the first resource number (2) is smaller than the second resource number (4), and when the first resource number (2) is equal to the second target resource number (2), second prompt information is switched from displaying second prompt information to displaying third prompt information for prompting permission to increase the target resources through the second target resource number to be consumed, and the target attribute value is in a permission state.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, the method further comprises:
When the difference value between the current attribute value and the target attribute value is greater than or equal to the first attribute number and the first resource number is smaller than the second resource number, displaying second prompt information, and displaying the target control in a state of not allowing touch control, wherein the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the second resource number;
When the attribute value of the target attribute is increased from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is smaller than the second target resource number, switching from displaying the second prompt information to displaying the third prompt information, and displaying the target control in a state of not allowing touch, wherein the third prompt information is used for prompting the attribute value of the target attribute to be increased by consuming the virtual resource of the second target resource number, and the second target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the first attribute value to the target attribute value;
and when the number of the virtual resources currently held by the target account increases from the first resource number to the third resource number, wherein the third resource number is smaller than the second resource number, and the third resource number is larger than or equal to the second target resource number, displaying third prompt information, and displaying the target control in a touch control enabled state.
Alternatively, in this embodiment, the increase in the attribute value of the target attribute from the current attribute value to the first attribute value may include, but is not limited to, other manners other than by consuming virtual resources held by the target account, such as, for example, obtaining a game prize, other account assistance, and the like.
For example, as shown in fig. 11, when the current attribute 1104 is increased to the first attribute value 1106, not by consuming the virtual resource of the second resource amount, but by other account assistance, the value of the first resource amount 1102 is increased to the third resource amount, so as to display third prompt information, and the target control is displayed in a state allowing touch.
As an alternative, the method further comprises:
When the difference value between the current attribute value and the target attribute value is greater than or equal to the first attribute number and the first resource number is smaller than the second resource number, displaying second prompt information, and displaying the target control in a state of not allowing touch control, wherein the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the second resource number;
When the number of the virtual resources currently held by the target account increases from the first resource number to the fourth resource number, and the fourth resource number is larger than the second resource number, displaying second prompt information, and displaying the target control in a touch-allowed state;
When the ratio of the difference value between the current attribute value and the target attribute value to the first attribute number is between N and N+1 and the ratio of the fourth resource number to the second resource number is between N and N+1, the attribute value of the target attribute is increased by consuming the virtual resource of the second resource number for N times in succession to increase the first attribute number by the attribute value of the target attribute, wherein N is a positive integer greater than or equal to 2, and when the attribute value of the target attribute is increased by consuming the virtual resource of the second resource number for N times in succession to complete the increase of the first attribute number, the attribute value of the target attribute is the second attribute value and the number of the virtual resource currently held by the target account is the fifth resource number;
When the fifth resource number is smaller than the second resource number and the fifth resource number is larger than or equal to the third target resource number, and when the increase of the attribute value of the target attribute by consuming the virtual resource of the second resource number is completed for N times in succession, the display of the second prompt information is switched to the display of the fourth prompt information, and the target control is displayed in a touch enabled state, wherein the fourth prompt information is used for prompting the attribute value of the target attribute to be increased by consuming the virtual resource of the third target resource number, and the third target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the second attribute value to the target attribute value.
Optionally, in this embodiment, when the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute number and the first resource number is smaller than the second resource number, the second prompt information is displayed, and the target control is displayed in a state where touch is not allowed, which is similar to the foregoing, and will not be described herein. The displaying of the second prompt information and the displaying of the target control in the touch enabled state when the number of virtual resources currently held by the target account increases from the first to the fourth resource and the fourth resource is greater than the second resource may be understood as displaying the target control in the touch disabled state when the first resource is less than the second resource, and displaying the target control in the touch enabled state when the first resource increases to the fourth resource and the fourth resource is greater than or equal to the second resource.
Optionally, in this embodiment, the ratio of the difference between the current attribute value and the target attribute value to the first attribute number is between N and n+1, which may be understood that the difference between the current attribute value and the target attribute value is between N times and n+1 times the first attribute number, and the ratio of the fourth resource number to the second resource number is between N times and n+1 times the second resource number, which may be understood that the attribute value of the target attribute is increased by the first attribute number by consuming the virtual resource of the second resource number N times in succession in response to N continuous touch operations performed on the target control, so that the attribute value of the target attribute is gradually increased by the first attribute number to the second attribute value.
For example, taking a game as a game of one game of self-propelled chess, the virtual resource is a virtual gold coin, the target attribute is a virtual experience value, the first resource quantity is equal to 2, the first attribute quantity is equal to 4, the second resource quantity is equal to 4 as an example, when the current attribute value is 2, the target attribute value is 20, the difference between the current attribute value and the target attribute value is 18, which is greater than the first attribute quantity 4, and the first resource quantity 2 is smaller than the second resource quantity 4, at this time, second prompt information allowing the attribute value of the target attribute to be increased by consuming the virtual resource of the second resource quantity is displayed, when the number of the virtual resource currently held by the target account is increased from the first resource quantity 2 to the fourth resource quantity 18, and the fourth resource quantity 18 is greater than the second resource quantity 4, the target control is displayed in a state allowing touch control, the ratio of the difference value 18 between the current attribute value 2 and the target attribute value 20 to the first attribute quantity 4 is between n=4 and n=5, and the ratio of the fourth resource quantity 18 to the second resource quantity 4 is located between n=4 and n=4, and when the ratio of the fourth resource quantity 18 to the second resource quantity 4 is located between the second attribute value and n=4 is equal to the second attribute value, continuously increasing the target attribute value by the second attribute value is continuously performed by increasing the target attribute value to the second attribute value by the second attribute value of 2, which is equal to the second attribute value 2, which is continuously increased by the second attribute value to the second attribute value is greater than the target value 4, which is continuously equal to the target attribute value to the second attribute value and is continuously increased by the second attribute value to 4;
In the case where the fifth resource amount 2 is smaller than the second resource amount 4 and the fifth resource amount 2 is equal to the third target resource amount 2, when the increase of the attribute value of the target attribute by the first attribute amount 4 is completed by consuming the virtual resource of the second resource amount 4 consecutive times, the display of the second hint information is switched to the display of the fourth hint information for hint the attribute value of the target attribute that is required to be consumed to increase the attribute value of the target attribute from the second attribute value 18 to the target attribute value 20, and the target control is displayed in a state where touch is permitted. ;
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, the method further comprises:
in the case of popup of the target window, the target control is displayed in a state where touch is not allowed, wherein the target control is used for consuming virtual resources to increase the attribute value of the target attribute, or
And under the condition of popup of the target window, displaying the target control in a state of not allowing touch control, and displaying second prompt information on the target control, wherein the target control is used for consuming virtual resources to increase the attribute value of the target attribute, and the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity.
Alternatively, in the present embodiment, when the game screen pops up the above-described target window, the target control is displayed in a state in which touch is not allowed.
It should be noted that, even if the target control is displayed in a state where touch is not allowed, the second prompt information may be displayed on the target control to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resource of the second resource amount.
As an alternative, in response to the obtained target touch operation, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resource of the first target resource amount, including:
In response to the target touch operation, increasing the attribute value of the target attribute from the current attribute value by a difference value to the target attribute value by consuming the virtual resource of the first target resource number, wherein the difference value is the same as the first target resource number, or
And under the condition that the first attribute quantity and the second resource quantity are the same, responding to the target touch operation, and increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resource of the first target resource quantity, wherein the difference value and the first target resource quantity are different.
Alternatively, in this embodiment, the value of the first attribute number and the value of the second resource number may be configured to be the same, and at this time, the attribute value of the target attribute is increased by a difference value from the current attribute value to the target attribute value, where the difference value and the first target resource number are the same or different, and it may be understood that the difference value between the current attribute value and the target attribute value is the same or different from the value of the first target resource number.
For example, taking the example that one game is a game of self-propelled chess, the virtual resource is a virtual gold coin, the target attribute is a virtual experience value, the first resource number is equal to 2, the first attribute number is equal to 4, the second resource number is equal to 4, and the first attribute number is the same as the second resource number, at this time, in response to the target touch operation, the target attribute value is increased from the current attribute value by 4 to the target attribute value by consuming the virtual resource of 4. Taking the difference value and the first target resource quantity as different examples, at this time, in response to the target touch operation, the target attribute value is increased from the current attribute value to the target attribute value by consuming the virtual resource of 4.
That is, in the case where the first attribute number and the second resource number are the same, the first target resource number may be configured to be the same as or different from the difference value, and both of which can be achieved to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
As an alternative, in response to the obtained target touch operation, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resource of the first target resource amount, including:
In the case that the ratio of the first attribute number to the second resource number is M, in response to the target touch operation, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by a difference value by consuming the virtual resource of the first target resource number, wherein M is a positive integer greater than or equal to2, and the ratio of the difference value to the first target resource number is M, or
Under the condition that the ratio of the first attribute quantity to the second resource quantity is 1/M, responding to target touch operation, and increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming virtual resources of the first target resource quantity, wherein M is a positive integer greater than or equal to 2, and the ratio of the difference to the first target resource quantity is 1/M.
Alternatively, in the present embodiment, the ratio of the first target resource amount to the difference value may be configured according to the ratio between the first attribute amount and the second resource amount in the same ratio (e.g., M or 1/M).
As an alternative, the method further comprises:
and under the condition that the attribute value of the target attribute corresponds to the number of the virtual characters allowed to be controlled by the target account in one game, responding to the target touch operation, and increasing the number of the virtual characters allowed to be controlled by the target account in one game.
Alternatively, in this embodiment, the above-described target attribute may be configured as the number of virtual characters that the target account allows to control in one game, and when the attribute value of the target attribute increases, the number of virtual characters that the target account allows to control in one game is increased.
For example, as shown in fig. 5, in response to a target touch operation, the number of virtual characters that the target account number is allowed to control in one game (within the board area) is increased (from 3 pieces to 4 pieces).
As an alternative, increasing the number of virtual characters allowed to be controlled by the target account in one game includes:
increasing the number of virtual characters allowed to be controlled by the target account in one game by a preset first character number, or
And increasing the number of virtual characters allowed to be controlled by the target account in one game by a second character number corresponding to the target attribute value.
Alternatively, in this embodiment, the preset first number of roles may include, but is not limited to, corresponding to the target attribute value of the target attribute, and each time the attribute value of the target attribute is increased to the target attribute value, the preset first number of roles is increased, and the second number of roles corresponding to the target attribute value may include, but is not limited to, configuring a corresponding virtual level for the target attribute, and when the target attribute value corresponds to a different virtual level, increasing a different number of virtual roles, that is, increasing a second number of roles corresponding to the target attribute value.
As an alternative, after increasing the attribute value of the target attribute from the current attribute value to the target attribute value, the method further comprises:
displaying a current updated attribute value and a target updated attribute value of the target attribute, wherein the target updated attribute value is greater than the target attribute value;
When the difference between the current update attribute value and the target update attribute value is smaller than the first attribute number, the resource number of the virtual resource currently held by the target account is smaller than the second resource number, and the resource number of the virtual resource currently held by the target account is larger than or equal to the fourth target resource number, responding to the acquired target touch operation, and increasing the attribute value of the target attribute from the current update attribute value to the target update attribute value by consuming the virtual resource of the fourth target resource number, wherein the fourth target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the current update attribute value to the target update attribute value;
The first difference value is a difference value between the current attribute value and the target attribute value, the second difference value is a difference value between the current updated attribute value and the target updated attribute value, the first ratio is a ratio of the first difference value to the first target resource quantity, the second ratio is a ratio of the second difference value to the fourth target resource quantity, and the first ratio is the same as or different from the second ratio.
Alternatively, in this embodiment, the above-mentioned current update attribute value may be understood as a current attribute value corresponding to the next time the target attribute is allowed to be updated after the target attribute reaches the target attribute value. The above-mentioned target update attribute value may be understood as a target attribute value corresponding to the next time the target attribute is allowed to be updated after the target attribute reaches the target attribute value.
For example, when the game is a game of one game of self-propelled chess, the virtual resource is a virtual gold coin, the target attribute is a virtual experience value, the current attribute value is 18, the target attribute value is 20, the first target resource number is 2, the second resource number is 4, at this time, when the current update attribute value is 22, the target update attribute value is 23, the first difference value is 2, the second difference value is 1, the number of resources of the virtual resource currently held by the target account is 3, the second resource number is 4, the first ratio is 2/4=0.5, the fourth target resource number is 1, the second ratio is 1/3=0.3, the first ratio is different from the second ratio, the current update attribute value is 22, the target update attribute value is 24, the first difference value is 2, the second difference value is 2, the number of resources of the virtual resource currently held by the target is 3, the second resource number is 4, the first ratio is 2/4=0.5, the fourth target resource number is 2, the second ratio is 2/4=0.5, and the first ratio is the same as the second ratio.
That is, the user may have more ways to consume the fourth number of virtual resources to increase the attribute value of the target attribute from the current updated attribute value to the target updated attribute value as the attribute value of the target attribute increases.
The application is further illustrated by the following examples:
The application relates to an optimization design of a self-propelled chess in-office upgrading mechanism, which adopts a fixed consumption m gold coin (corresponding to the second resource quantity) to purchase an N experience value (m=n, usually 4) (corresponding to the first attribute quantity), and completes the upgrading by clicking for a plurality of times (N times). And, on this basis, an upgrade mechanism in the limit case is added, which allows a player to consume only a small amount of gold coin to purchase full experience when gold coin is insufficient to purchase once (corresponding to the first resource amount being smaller than the second resource amount) but sufficient to upgrade (the difference is smaller than the first attribute amount), thereby achieving the upgrade goal.
It should be noted that this mechanism exists only in the extreme case where the player currently has less than the amount of gold that is required to purchase one time, but greater than or equal to the current upgrade required experience value (provided that 1 gold is redeemed for 1 experience value).
The application relates to an optimization design of a self-propelled chess in-office upgrading mechanism, and fig. 12 is a schematic diagram of an alternative virtual attribute updating method according to an embodiment of the application, as shown in fig. 12, and the corresponding basic flow is as follows:
Step1, after the game starts, the number of gold coins currently owned by the player is set as M, the number of gold coins consumed by purchasing one experience is set as M (M is usually 4, or other positive integers can be taken), and the experience value obtained by purchasing one time is set as q (q=m). The game client logic layer (hereinafter referred to as logic layer) continuously detects real-time values of M and Q, and reads fixed values of M and Q in the game planning configuration table;
Step2, the logic layer judges whether M is greater than or equal to M (namely whether the current economy of the player is sufficient), if yes, the player is allowed to click an upgrade button once. In this process, the player does not hit the button at a break until M < M, and the upgrade button is grayed out. The logic layer continuously detects the current values of M and Q;
Step3, the logic layer judges whether the limit condition is reached, namely M > M is more than or equal to Q and Q is less than or equal to Q, if yes, a limit purchase mode is started, a player is allowed to purchase the gold coin once in insufficient mode, the upgrading target is reached, if no, the upgrading button is gray, and clicking is not allowed.
FIG. 13 is a schematic diagram of another alternative method for updating virtual attributes according to an embodiment of the present application, as shown in FIG. 13, a specific identification detection procedure for each round is as follows:
Step1, starting game play by the player, and transmitting a real-time operation signal of the fingers of the player to a logic layer by a game client performance layer (hereinafter referred to as a performance layer). The logic layer reads real-time values of M and Q and reads fixed values of M and Q in the game plan configuration table, whether M is more than or equal to M is continuously judged, if yes, the current economy is judged to be sufficient, the presentation layer controls the upgrading button to present a clickable state, and a player can not click the upgrading button to purchase experience;
Step2, with the purchase of experience, the M value is continuously reduced until M < M, and a new judgment is made. The real-time values of M and Q are read at the moment, whether M > M is more than or equal to Q and Q < Q is met or not is judged, if yes, the limit situation is judged, the performance layer starts a limit purchasing mode, a player is allowed to click an upgrade button once and only spends Q gold coins, the player is successfully upgraded, if no, the economy is judged to be insufficient, the performance layer controls the upgrade button to put ash, the player cannot click, and the upgrade is impossible.
Through the embodiment, when the gold coin is insufficient for purchasing once but is sufficient for upgrading, a player is allowed to consume a small amount of gold coin to purchase full-scale experience, so that the upgrading aim is fulfilled, the problem of interest loss possibly caused in the original mode is effectively solved, the degree of the pasting of the game design is improved, and the player experience is improved while the fun of the game operation is maintained.
In addition, in this embodiment, the design of the upgrade button may be not changed, and an additional popup window is used to remind the player.
It will be appreciated that in the specific embodiments of the present application, related data such as user information, game data, etc. are involved, and when the above embodiments of the present application are applied to specific products or technologies, user permissions or consents need to be obtained, and the collection, use and processing of related data need to comply with the relevant laws and regulations and standards of the relevant countries and regions.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
According to another aspect of the embodiment of the present application, there is also provided a device for updating a virtual attribute for implementing the method for updating a virtual attribute. As shown in fig. 14, the apparatus includes:
A display module 1402, configured to display, in a game screen of a game, a first resource number of virtual resources currently held by a target account, a current attribute value of a target attribute of the target account, and a target attribute value, where the number of virtual resources consumed when increasing the attribute value of the target attribute by the first attribute number each time is a second resource number;
A processing module 1404, configured to increase, in response to the obtained target touch operation, the attribute value of the target attribute from the current attribute value to the target attribute value by consuming virtual resources of a first target resource amount when the difference between the current attribute value and the target attribute value is less than the first attribute amount, the first resource amount is less than the second resource amount, and the first resource amount is greater than or equal to the first target resource amount, wherein the first target resource amount is an amount of virtual resources required to be consumed to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
As an alternative, the device is further configured to:
When the difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, displaying first prompt information, wherein the first prompt information is used for prompting the attribute value of the target attribute to be increased by consuming virtual resources of the first target resource number;
And when the difference value between the current attribute value and the target attribute value is greater than or equal to the first attribute number, or the first resource number is greater than or equal to the second resource number, or the first resource number is smaller than the first target resource number, displaying second prompt information, wherein the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming the virtual resource of the second resource number.
As an alternative, the device is configured to increase, when the difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is greater than or equal to the first target resource number, in response to the obtained target touch operation, the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resource of the first target resource number:
When the difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, displaying the target control in a touch-enabled state, wherein the target control is used for consuming virtual resources to increase the attribute value of the target attribute, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resources of the first target resource number in response to a target touch operation performed on the target control, or
When the difference between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, a target window is popped up, first prompt information and a target determination button are displayed in the target window, wherein the first prompt information is used for prompting an attribute value allowing the target attribute to be increased by consuming virtual resources of the first target resource number, and the attribute value of the target attribute is increased from the current attribute value to the target attribute value by consuming virtual resources of the first target resource number in response to a target touch operation performed on the target determination button.
As an alternative, the device is further configured to:
When the difference value between the current attribute value and the target attribute value is greater than or equal to the first attribute number and the first resource number is smaller than the second resource number, displaying second prompt information, and displaying the target control in a state of not allowing touch control, wherein the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the second resource number;
When the attribute value of the target attribute is increased from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the second target resource number, switching from displaying the second prompt information to displaying the third prompt information, and displaying the target control in a touch enabled state, wherein the third prompt information is used for prompting the attribute value of the target attribute to be increased by consuming the virtual resource of the second target resource number, and the second target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the first attribute value to the target attribute value.
As an alternative, the device is further configured to:
When the difference value between the current attribute value and the target attribute value is greater than or equal to the first attribute number and the first resource number is smaller than the second resource number, displaying second prompt information, and displaying the target control in a state of not allowing touch control, wherein the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the second resource number;
When the attribute value of the target attribute is increased from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is smaller than the second target resource number, switching from displaying the second prompt information to displaying the third prompt information, and displaying the target control in a state of not allowing touch, wherein the third prompt information is used for prompting the attribute value of the target attribute to be increased by consuming the virtual resource of the second target resource number, and the second target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the first attribute value to the target attribute value;
and when the number of the virtual resources currently held by the target account increases from the first resource number to the third resource number, wherein the third resource number is smaller than the second resource number, and the third resource number is larger than or equal to the second target resource number, displaying third prompt information, and displaying the target control in a touch control enabled state.
As an alternative, the device is further configured to:
When the difference value between the current attribute value and the target attribute value is greater than or equal to the first attribute number and the first resource number is smaller than the second resource number, displaying second prompt information, and displaying the target control in a state of not allowing touch control, wherein the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the second resource number;
When the number of the virtual resources currently held by the target account increases from the first resource number to the fourth resource number, and the fourth resource number is larger than the second resource number, displaying second prompt information, and displaying the target control in a touch-allowed state;
When the ratio of the difference value between the current attribute value and the target attribute value to the first attribute number is between N and N+1 and the ratio of the fourth resource number to the second resource number is between N and N+1, the attribute value of the target attribute is increased by consuming the virtual resource of the second resource number for N times in succession to increase the first attribute number by the attribute value of the target attribute, wherein N is a positive integer greater than or equal to 2, and when the attribute value of the target attribute is increased by consuming the virtual resource of the second resource number for N times in succession to complete the increase of the first attribute number, the attribute value of the target attribute is the second attribute value and the number of the virtual resource currently held by the target account is the fifth resource number;
When the fifth resource number is smaller than the second resource number and the fifth resource number is larger than or equal to the third target resource number, and when the increase of the attribute value of the target attribute by consuming the virtual resource of the second resource number is completed for N times in succession, the display of the second prompt information is switched to the display of the fourth prompt information, and the target control is displayed in a touch enabled state, wherein the fourth prompt information is used for prompting the attribute value of the target attribute to be increased by consuming the virtual resource of the third target resource number, and the third target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the second attribute value to the target attribute value.
As an alternative, the device is further configured to:
in the case of popup of the target window, the target control is displayed in a state where touch is not allowed, wherein the target control is used for consuming virtual resources to increase the attribute value of the target attribute, or
And under the condition of popup of the target window, displaying the target control in a state of not allowing touch control, and displaying second prompt information on the target control, wherein the target control is used for consuming virtual resources to increase the attribute value of the target attribute, and the second prompt information is used for prompting that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity.
As an alternative, the apparatus is configured to increase the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resource of the first target resource amount in response to the acquired target touch operation by:
In response to the target touch operation, increasing the attribute value of the target attribute from the current attribute value by a difference value to the target attribute value by consuming the virtual resource of the first target resource number, wherein the difference value is the same as the first target resource number, or
And under the condition that the first attribute quantity and the second resource quantity are the same, responding to the target touch operation, and increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resource of the first target resource quantity, wherein the difference value and the first target resource quantity are different.
As an alternative, the apparatus is configured to increase the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the virtual resource of the first target resource amount in response to the acquired target touch operation by:
In the case that the ratio of the first attribute number to the second resource number is M, in response to the target touch operation, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by a difference value by consuming the virtual resource of the first target resource number, wherein M is a positive integer greater than or equal to2, and the ratio of the difference value to the first target resource number is M, or
Under the condition that the ratio of the first attribute quantity to the second resource quantity is 1/M, responding to target touch operation, and increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming virtual resources of the first target resource quantity, wherein M is a positive integer greater than or equal to 2, and the ratio of the difference to the first target resource quantity is 1/M.
As an alternative, the device is further configured to:
and under the condition that the attribute value of the target attribute corresponds to the number of the virtual characters allowed to be controlled by the target account in one game, responding to the target touch operation, and increasing the number of the virtual characters allowed to be controlled by the target account in one game.
As an alternative, the device is configured to increase the number of virtual characters that the target account allows to control in a game by:
increasing the number of virtual characters allowed to be controlled by the target account in one game by a preset first character number, or
And increasing the number of virtual characters allowed to be controlled by the target account in one game by a second character number corresponding to the target attribute value.
As an alternative, the device is further configured to:
after increasing the attribute value of the target attribute from the current attribute value to the target attribute value, displaying the current updated attribute value and the target updated attribute value of the target attribute, wherein the target updated attribute value is greater than the target attribute value;
When the difference between the current update attribute value and the target update attribute value is smaller than the first attribute number, the resource number of the virtual resource currently held by the target account is smaller than the second resource number, and the resource number of the virtual resource currently held by the target account is larger than or equal to the fourth target resource number, responding to the acquired target touch operation, and increasing the attribute value of the target attribute from the current update attribute value to the target update attribute value by consuming the virtual resource of the fourth target resource number, wherein the fourth target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the current update attribute value to the target update attribute value;
The first difference value is a difference value between the current attribute value and the target attribute value, the second difference value is a difference value between the current updated attribute value and the target updated attribute value, the first ratio is a ratio of the first difference value to the first target resource quantity, the second ratio is a ratio of the second difference value to the fourth target resource quantity, and the first ratio is the same as or different from the second ratio.
According to one aspect of the present application, there is provided a computer program product comprising a computer program/instruction containing program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1509, and/or installed from the removable medium 1511. When executed by the central processor 1501, performs various functions provided by embodiments of the present application.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
Fig. 15 schematically shows a block diagram of a computer system of an electronic device for implementing an embodiment of the application.
It should be noted that, the computer system 1500 of the electronic device shown in fig. 15 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 15, the computer system 1500 includes a central processing unit 1501 (Central Processing Unit, CPU) which can execute various appropriate actions and processes according to a program stored in a Read-Only Memory 1502 (ROM) or a program loaded from a storage section 1508 into a random access Memory 1503 (Random Access Memory, RAM). In the random access memory 1503, various programs and data necessary for the operation of the system are also stored. The cpu 1501, the rom 1502 and the ram 1503 are connected to each other via a bus 1504. An Input/Output interface 1505 (i.e., an I/O interface) is also connected to bus 1504.
Connected to the input/output interface 1505 are an input section 1506 including a keyboard, a mouse, and the like, an output section 1507 including a Cathode Ray Tube (CRT), a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), and the like, and a speaker, and the like, a storage section 1508 including a hard disk, and the like, and a communication section 1509 including a network interface card such as a local area network card, a modem, and the like. The communication section 1509 performs communication processing via a network such as the internet. The drive 1150 is also connected to the input/output interface 1505 as needed. A removable medium 1511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 1150 as needed, so that a computer program read out therefrom is installed into the storage section 1508 as needed.
In particular, the processes described in the various method flowcharts may be implemented as computer software programs according to embodiments of the application. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication portion 1509, and/or installed from the removable medium 1511. The computer programs, when executed by the central processor 1501, perform the various functions defined in the system of the present application.
According to still another aspect of the embodiment of the present application, there is also provided an electronic device for implementing the above-mentioned method for updating a virtual attribute, where the electronic device may be a terminal device or a server as shown in fig. 1. The present embodiment is described taking the electronic device as a terminal device as an example. As shown in fig. 16, the electronic device comprises a memory 1602 and a processor 1604, the memory 1602 having stored therein a computer program, the processor 1604 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, displaying the first resource quantity of virtual resources currently held by a target account, the current attribute value of a target attribute of the target account and the target attribute value in a game picture of a game, wherein the quantity of the virtual resources consumed when the attribute value of the target attribute is increased by the first attribute quantity each time is the second resource quantity;
S2, when the difference value between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, the attribute value of the target attribute is increased from the current attribute value to the target attribute value through consuming virtual resources of the first target resource number in response to the acquired target touch operation, wherein the first target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the current attribute value to the target attribute value.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 16 is only schematic, and the electronic device may be a smart phone (such as an Android Mobile phone, an iOS Mobile phone, etc.), a tablet computer, a palm computer, a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 16 is not limited to the structure of the electronic device and the electronic apparatus described above. For example, the electronics can also include more or fewer components (e.g., network interfaces, etc.) than shown in fig. 16, or have a different configuration than shown in fig. 16.
The memory 1602 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for updating virtual attributes in the embodiments of the present application, and the processor 1604 executes the software programs and modules stored in the memory 1602 to perform various functional applications and data processing, i.e., to implement the method for updating virtual attributes. Memory 1602 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1602 may further include memory located remotely from the processor 1604, which may be connected to the terminal by a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1602 may be used for storing information such as target attributes, virtual resources, and the like. As an example, as shown in fig. 16, the memory 1602 may include, but is not limited to, a display module 1402 and a processing module 1404 in the update apparatus including the virtual attribute. In addition, other module units in the above-mentioned updating device of the virtual attribute may be further included, which is not described in detail in this example.
Optionally, the transmission device 1606 is used to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 1606 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1606 is a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
The electronic device further includes a display 1608 for displaying the game screen, and a connection bus 1610 for connecting respective module components of the electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to one aspect of the present application, there is provided a computer-readable storage medium, from which a processor of a computer device reads the computer instructions, the processor executing the computer instructions, causing the computer device to perform a method of updating a virtual attribute provided in various alternative implementations of the above-described updating aspect of a virtual attribute.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for performing the steps of:
S1, displaying the first resource quantity of virtual resources currently held by a target account, the current attribute value of a target attribute of the target account and the target attribute value in a game picture of a game, wherein the quantity of the virtual resources consumed when the attribute value of the target attribute is increased by the first attribute quantity each time is the second resource quantity;
S2, when the difference value between the current attribute value and the target attribute value is smaller than the first attribute number, the first resource number is smaller than the second resource number, and the first resource number is larger than or equal to the first target resource number, the attribute value of the target attribute is increased from the current attribute value to the target attribute value through consuming virtual resources of the first target resource number in response to the acquired target touch operation, wherein the first target resource number is the number of virtual resources required to be consumed for increasing the attribute value of the target attribute from the current attribute value to the target attribute value.
Alternatively, in this embodiment, all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing the terminal device related hardware, and the program may be stored in a computer readable storage medium, where the storage medium may include a flash disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.