Virtual attribute updating method and device, storage medium and electronic device
By displaying the virtual resources and attribute values of the target account in the game application, it allows the problem of low virtual attribute update efficiency by consuming a small amount of resources when the resources are insufficient but the difference is less than a fixed number, and the problem of low virtual attribute update efficiency is solved, achieving faster Update process.
Patent Information
- Application Number
- CN202210109261.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-28
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2042-01-28
AI Technical Summary
In game applications, the account's virtual attribute update efficiency is low, and users need to wait to regain enough virtual resources before continuing to update the virtual attributes.
By displaying the current virtual resources and target attribute value of the target account in the game screen, when the current resource is insufficient but the difference is less than a fixed number, it is allowed to update the attribute value by consuming a small amount of virtual resources.
It improves the efficiency of update of virtual attributes, shortens the waiting time for users to update virtual attributes, and optimizes the timeliness of updates of virtual attributes.
Smart Images

Figure CN114425165B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a method and device for updating virtual attributes, a storage medium, and an electronic device. Background Art
[0002] Currently, in some game applications, the virtual attribute update process of an account is generally achieved by consuming a fixed amount of virtual resources each time to adjust the value of the virtual attribute of the account. When the account used by the user does not have the fixed amount of virtual resources required to be consumed each time, the value of the virtual attribute cannot be adjusted, resulting in the user having to wait to regain the required fixed amount of virtual resources before continuing to update the value of the virtual attribute of the account.
[0003] For example, in the auto chess application, the experience upgrade in the game usually requires the consumption of gold coins, and the accumulation and use of gold coins is one of the core strategies of this type of game. The timing of purchasing experience in the game is very important, because each level up can put one more chess piece into battle, and the total experience required for upgrading a level increases with the level. However, the gold coins spent on each experience purchase are fixed, and the experience gained each time is also fixed. Therefore, under this mechanism, players usually need to click to buy multiple times to achieve the purpose of upgrading a level. However, when the number of gold coins currently held is less than the number of gold coins allowed to purchase experience, the user cannot purchase experience, causing the player to wait too long and unable to complete the update of virtual attributes in time, resulting in a technical problem of low efficiency in updating virtual attributes.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a method and device for updating virtual attributes, a storage medium, and an electronic device, so as to at least solve the technical problem of low updating efficiency of virtual attributes existing in the related art.
[0006] According to one aspect of an embodiment of the present application, a method for updating virtual attributes is provided, comprising: displaying a first resource quantity 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 on a game screen of a game, wherein the quantity of the virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is a second resource quantity; when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, 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 quantity, wherein the first target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0007] According to another aspect of an embodiment of the present application, a virtual attribute updating device is also provided, including: a display module, used to display a first resource quantity 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 screen of a game, wherein the quantity of the virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is a second resource quantity; a processing module, used to increase 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 quantity in response to an acquired target touch operation when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, wherein the first target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0008] Optionally, the device is also used to: display a first prompt message when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, wherein the first prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the first target resource quantity of the virtual resources; and display a second prompt message when the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, or the first resource quantity is greater than or equal to the second resource quantity, or the first resource quantity is less than the first target resource quantity, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of the virtual resources.
[0009] Optionally, the device is used to increase the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the first target resource quantity in response to the acquired target touch operation when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity in the following manner: when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, displaying the target control as being in a touch-allowed state, wherein the target control is used to consume the virtual resources to increase the attribute value of the target attribute; in response to the operation performed on the target control The target touch operation increases 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 quantity; or when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, a target window pops up, and a first prompt message and a target determination button are displayed in the target window, wherein the first prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the first target resource quantity; in response to the target touch operation performed on the target determination button, 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 quantity.
[0010] Optionally, the device is also used to: when the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, display a second prompt message, and display the target control as being in a state where touch is not allowed, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of the virtual resources; when the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the second target resource quantity, switch from displaying the second prompt message to displaying the third prompt message, and display the target control as being in a state where touch is allowed, wherein the third prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second target resource quantity of the virtual resources, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value.
[0011] Optionally, the device is also used to: when the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, display a second prompt message, and display the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of the virtual resources; when the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is less than the second target resource quantity, display the second prompt message. The information switches to display a third prompt message, and displays the target control as being in a state where touch is not allowed, wherein the third prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second target resource quantity of the virtual resources, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value; when the quantity of the virtual resources currently held by the target account increases from the first resource quantity to the third resource quantity, and the third resource quantity is less than the second resource quantity, and the third resource quantity is greater than or equal to the second target resource quantity, the third prompt message is displayed, and the target control is displayed as being in a state where touch is allowed.
[0012] Optionally, the device is also used to: when the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, display a second prompt message, and display the target control as being in a state where touch is not allowed, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity; when the number of virtual resources currently held by the target account increases from the first resource quantity to the fourth resource quantity, and the fourth resource quantity is greater than the second resource quantity, display the second prompt message, and display the target control as being in a state where touch is allowed; when the ratio of the difference between the current attribute value and the target attribute value to the first attribute quantity is between N and N+1, and the ratio of the fourth resource quantity to the second resource quantity is between N and N+1, in response to N consecutive touch operations performed on the target control, the target attribute is increased by consuming the virtual resources of the second resource quantity for N consecutive times. The attribute value is increased by the first attribute quantity, wherein N is a positive integer greater than or equal to 2, and when the attribute value of the target attribute is increased by the first attribute quantity by consuming the second resource quantity for N consecutive times, the attribute value of the target attribute is the second attribute value, and the quantity of the virtual resources currently held by the target account is the fifth resource quantity; when the fifth resource quantity is less than the second resource quantity and the fifth resource quantity is greater than or equal to the third target resource quantity, when the attribute value of the target attribute is increased by the first attribute quantity by consuming the second resource quantity for N consecutive times, the display of the second prompt information is switched to the display of the fourth prompt information, and the target control is displayed as being in a touch-allowed state, wherein the fourth prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the third target resource quantity of the virtual resources, and the third target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the second attribute value to the target attribute value.
[0013] Optionally, the device is also used to: when the target window pops up, display the target control as being in a state where touch is not allowed, wherein the target control is used to consume the virtual resources to increase the attribute value of the target attribute; or when the target window pops up, display the target control as being in a state where touch is not allowed, and display second prompt information on the target control, wherein the target control is used to consume the virtual resources to increase the attribute value of the target attribute, and the second prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second amount of virtual resources.
[0014] Optionally, the device is used to respond to the acquired target touch operation in the following manner, 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 quantity: when the first attribute quantity and the second resource quantity are the same, 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 the difference by consuming the virtual resources of the first target resource quantity, wherein the difference is the same as the first target resource quantity; or when the first attribute quantity and the second resource quantity are the same, 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 the difference by consuming the virtual resources of the first target resource quantity, wherein the difference is different from the first target resource quantity.
[0015] Optionally, the device is used to respond to the acquired target touch operation in the following manner, 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 quantity: when the ratio of the first attribute quantity to the second resource quantity 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 the difference by consuming the 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 M; or when the ratio of the first attribute quantity to the second resource quantity is 1 / 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 the difference by consuming the 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.
[0016] Optionally, the device is also used to: when the attribute value of the target attribute corresponds to the number of virtual characters that the target account is allowed to control in the game, in response to the target touch operation, increase the number of virtual characters that the target account is allowed to control in the game.
[0017] Optionally, the device is used to increase the number of virtual characters that the target account is allowed to control in the game by: increasing the number of virtual characters that the target account is allowed to control in the game by a preset first number of characters; or increasing the number of virtual characters that the target account is allowed to control in the game by a second number of characters corresponding to the target attribute value.
[0018] Optionally, the device is also used for: 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 updated attribute value and the target updated attribute value is less than the first attribute quantity, the resource quantity of the virtual resources currently held by the target account is less than the second resource quantity, and the resource quantity of the virtual resources currently held by the target account is greater than or equal to a fourth target resource quantity, in response to the acquired target touch operation, consuming all of the fourth target resource quantity The fourth target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current updated attribute value to the target updated attribute value; wherein the first difference is the difference between the current attribute value and the target attribute value, the second difference is the difference between the current updated attribute value and the target updated attribute value, the first ratio is the ratio of the first difference to the first target resource quantity, the second ratio is the ratio of the second difference to the fourth target resource quantity, and the first ratio is the same as or different from the second ratio.
[0019] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for updating virtual attributes when running.
[0020] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above virtual attribute update method.
[0021] According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-mentioned method for updating virtual attributes through the computer program.
[0022] In an embodiment of the present application, a first resource quantity 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 on a game screen of a game, wherein the amount of virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is the second resource quantity, and when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the 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 virtual resources of the first target resource quantity, wherein the first target resource quantity is the amount of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value, and when the amount of virtual resources currently held by the target account is less than the amount of virtual resources consumed each time the target attribute is increased by the first attribute quantity, the amount of virtual resources consumed each time the target attribute is increased by the first attribute quantity. The target account cannot update the virtual attribute when the number of virtual resources consumed when the attribute value is reached is greater than the number of virtual resources consumed when the attribute value of the target attribute is reached. However, when the difference between the current attribute value and the target attribute value is less than the number of attributes by which the attribute value of the target attribute is increased each time, the virtual resources of the first target number of resources can be consumed through the acquired target touch operation to increase the attribute value of the target attribute from the current attribute value to the target attribute value, thereby achieving the purpose of adding an update mechanism under special circumstances, allowing the target account to update the virtual attribute by consuming only a small amount of virtual resources when the number of virtual resources held is not enough for a complete update but is enough to increase from the current attribute value to the target attribute value, thereby achieving the technical effect of improving the update efficiency of the virtual attribute, shortening the waiting time of the target account when updating the virtual attribute, and optimizing the timeliness of the virtual attribute update, thereby solving the technical problem of low update efficiency of the virtual attribute existing in the related art. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0024] Figure 1 is a schematic diagram of an application environment of an optional method for updating virtual attributes according to an embodiment of the present application;
[0025] Figure 2 is a flowchart of an optional method for updating virtual attributes according to an embodiment of the present application;
[0026] Figure 3 is a schematic diagram of an optional method for updating virtual attributes according to an embodiment of the present application;
[0027] Figure 4is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0028] Figure 5 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0029] Figure 6 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0030] Figure 7 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0031] Figure 8 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0032] Fig. 9 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0033] Fig.10 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0034] Fig.11 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0035] Fig.12 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0036] Fig.13 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application;
[0037] Fig.14 is a schematic structural diagram of an optional virtual attribute updating device according to an embodiment of the present application;
[0038] Fig.15 is a schematic structural diagram of an optional virtual attribute update product according to an embodiment of the present application;
[0039] Fig.16 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretation:
[0043] Auto Chess: is a general term for a type of electronic strategy board game. The basic rules of the game are that players choose a combination of different types of chess pieces, and then arrange them on their own chessboard. Finally, the system automatically fights with other players until the last chess piece is still alive. The winner is the winner, and the loser will have his health deducted. This process is repeated many times until only one of the multiple players survives.
[0044] The present application is described below in conjunction with embodiments:
[0045] According to one aspect of an embodiment of the present application, a method for updating a virtual attribute is provided. Optionally, in this embodiment, the method for updating a virtual attribute can be applied to: Figure 1 In the hardware environment composed of the server 101 and the terminal device 103 shown in FIG. Figure 1As shown, the server 101 is connected to the terminal 103 through a network, and can be used to provide services for the terminal device or the application installed on the terminal device. The application can be a video application, an instant messaging application, a browser application, an educational application, a game application, etc. A database 105 can be set on the server or independently of the server to provide data storage services for the server 101, for example, a game data storage server. The above network can include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that realize wireless communication. The terminal device 103 can be a terminal configured with an application, and can include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV and other computer devices. The above server can be a single server, or a server cluster composed of multiple servers, or a cloud server. The application 107 using the above virtual attribute update method is displayed through the terminal device 103 or other connected display devices.
[0046] Combination Figure 1 As shown, the above virtual attribute updating method can be implemented in the terminal device 103 through the following steps:
[0047] S1, displaying a first resource quantity 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 on a game screen of a game on the terminal device 103, wherein the amount of virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is a second resource quantity;
[0048] S2. When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the acquired target touch operation on the terminal device 103, 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 quantity, wherein the first target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0049] Optionally, in this embodiment, the above virtual attribute update method can also be implemented by a server, for example, Figure 1 It is implemented in the server 101 shown; or it is implemented by the user terminal and the server together.
[0050] The above is only an example and is not specifically limited in this embodiment.
[0051] Optionally, as an optional implementation, as Figure 2 As shown, the updating method of the above virtual attributes includes:
[0052] S202, displaying a first resource quantity 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 on a game screen of a game, wherein the amount of virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is a second resource quantity;
[0053] S204, when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the 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 virtual resources of the first target resource quantity, wherein the first target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0054] Optionally, in this embodiment, the above-mentioned game may include but is not limited to a multiplayer online tactical competitive game (Multiplayer Online Battle Arena, referred to as MOBA) or a single-player game (Single-Player Game, referred to as SPG). It should be noted that the types of the above-mentioned game applications may include but are not limited to at least one of the following: two-dimensional (Two Dimension, referred to as 2D) game applications, three-dimensional (Three Dimension, referred to as 3D) game applications, virtual reality (Virtual Reality, referred to as VR) game applications, augmented reality (Augmented Reality, referred to as AR) game applications, mixed reality (Mixed Reality, referred to as MR) game applications. The above is just an example, and this embodiment does not impose any limitation on this.
[0055] The target account may be a registered game account, or may be a user's mobile phone number, or a game account corresponding to a third-party application account after logging into the game application.
[0056] Optionally, in this embodiment, the above-mentioned virtual resources may include but are not limited to virtual gold coins, virtual energy, virtual wood, virtual gems, virtual points, etc.
[0057] Optionally, in this embodiment, the target attributes may include but are not limited to the virtual experience value of the target account, the virtual level, the number of virtual characters allowed to be controlled, the highest level of the virtual characters allowed to be controlled, etc.
[0058] Optionally, in this embodiment, the above-mentioned target touch operation may include but is not limited to touch operations such as clicking, long pressing, double-clicking, dragging, etc. performed on the interactive object, and may also include but is not limited to touch operations corresponding to operation instructions generated by gestures, voice, etc.
[0059] Optionally, in this embodiment, the first resource quantity of virtual resources currently held by the target account may include but is not limited to the first resource quantity of virtual resources held by the target account in the current round or the first resource quantity of virtual resources that the target account is allowed to consume in the current round, and the current attribute value and target attribute value of the target attribute of the target account may include but are not limited to the attribute value of the target attribute at the current moment and the target attribute value that needs to be updated.
[0060] For example, Figure 3 is a schematic diagram of an optional method for updating virtual attributes according to an embodiment of the present application, such as Figure 3 As shown (it should be noted that Figures 3 to 10 The first attribute quantity = 4, the second resource quantity = 4 may not be displayed in the game screen, but are preset parameters. Of course, they may also be displayed in the game screen in other forms such as animation or text to remind the user). For example, a game is an auto chess game, the virtual resource is virtual gold coins, and the target attribute is virtual experience value. The game screen is the game screen displayed after the target account starts a game. The first resource quantity 302 corresponding to the virtual resource currently held by the target account is displayed in the lower right corner of the game screen, and the current attribute value 304 and the target attribute value 306 of the target attribute of the target account are displayed in the lower left corner. After the current attribute value is updated to the target attribute value, it may include but is not limited to increasing the number of virtual chess pieces 310 allowed to be placed on the chessboard 308 by the target account, and it may also include but is not limited to improving the attack power, defense power, skill release speed, skill release range, virtual health value, virtual magic value, model volume of the virtual chess piece 310, etc., and it may also include but is not limited to changing the appearance of the chessboard 308, adding virtual decorations inside or outside the chessboard 308, changing the appearance of the virtual chess piece 310, etc.
[0061] The above is only an example, and this embodiment does not make any specific limitation.
[0062] Optionally, in this embodiment, the amount of virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is the second resource quantity, which may include but is not limited to pre-setting a touch operation, consuming the second resource quantity of virtual resources each time in response to the touch operation to increase the attribute value of the target attribute by the first attribute quantity, and the correspondence between the first attribute quantity and the second resource quantity may be flexibly set.
[0063] For example, Figure 4 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Figure 4 As shown, taking a game that is an auto chess game, the virtual resources are virtual gold coins, and the target attribute is the virtual experience value as an example, the game screen is the game screen displayed after the target account starts a game, and the first resource quantity 402 corresponding to the virtual resources currently held by the target account is displayed in the lower right corner of the game screen, and the current attribute value 404 of the target attribute of the target account is displayed in the lower left corner. After the preset touch operation is obtained, the second resource quantity of virtual gold coins is consumed from the virtual resources of the first resource quantity to increase the virtual experience value from the current attribute value to the target attribute value.
[0064] S1, performing a touch operation on the touch button 406;
[0065] S2, in response to the touch operation, deduct the second resource quantity from the first resource quantity, increase the current attribute value of the target attribute by the first attribute quantity, and display the updated number of virtual resources currently held by the target account and the updated attribute value of the target attribute on the game screen, wherein the number of virtual gold coins consumed each time the virtual experience value is increased by 4 (corresponding to the aforementioned first attribute quantity) is pre-configured to be 4 (corresponding to the aforementioned second resource quantity). At this time, the number of virtual resources held by the target account is displayed as 4 (obtained by 8-4), and the current attribute value of the target account is updated to 16 (obtained by 12+4).
[0066] The above is only an example, and this embodiment does not make any specific limitation.
[0067] Optionally, in this embodiment, the difference between the current attribute value and the target attribute value may include but is not limited to the value of the attribute value required to update the target attribute, and the difference may include but is not limited to being directly displayed on the game screen, or by displaying the current attribute value and the target attribute value, and the player performing calculations based on the current attribute value and the target attribute value. Figure 4 For example, the current attribute value is 12, and the target attribute value is 20. Then the difference between the current attribute value and the target attribute value is 20-12=8.
[0068] Optionally, in this embodiment, the difference between the current attribute value and the target attribute value is less than the first attribute quantity, which can be understood as the difference between the current attribute value and the target attribute value is less than the amount by which the attribute value of the target attribute is increased each time; the first resource quantity is less than the second resource quantity, which can be understood as the number of virtual resources currently held by the target account is less than the number of virtual resources consumed each time the first attribute quantity is updated and increased; the first resource quantity is greater than or equal to the first target resource quantity, which can be understood as the number of virtual resources currently held by the target account is greater than or equal to the number of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0069] For example, Figure 5 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Figure 5 As shown, a game is an auto chess game, the virtual resources are virtual gold coins, and the target attribute is the virtual experience value. The game screen is the game screen displayed after the target account starts a game. The first resource quantity 502 (2 virtual gold coins) corresponding to the virtual resources currently held by the target account is displayed in the lower right corner of the game screen, and the current attribute value 504 (18 attribute value) of the target attribute of the target account is displayed in the lower left corner. It is preset that each time the target account consumes the second resource quantity (4) of virtual gold coins, it can increase the virtual experience of the first attribute quantity (4). When it is determined that the difference (2) between the current attribute value (18) and the target attribute value (20) is less than the first attribute quantity (4), the first resource quantity (2) is less than the second resource quantity (4), and the first resource quantity (2) is equal to the first target resource quantity (2), a target touch operation is obtained, and the first target resource quantity (2) of virtual gold coins is consumed from the virtual resources of the first resource quantity (2) to increase the virtual experience value from the current attribute value (18) to the target attribute value (20).
[0070] S1, performing a target touch operation on the touch button 506;
[0071] S2, in response to the target touch operation, deducts the first target resource quantity (2) from the first resource quantity (2), and increases the current attribute value (18) of the target attribute to the target attribute value (20), and displays the updated number of virtual resources currently held by the target account (0) and the updated attribute value (20 / 20) of the target attribute on the game screen.
[0072] The above is only an example, and this embodiment does not make any specific limitation.
[0073] Through this embodiment, a first resource quantity 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 on a game screen of a game, wherein the amount of virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is the second resource quantity, and when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the 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 virtual resources of the first target resource quantity, wherein the first target resource quantity is the amount of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value, and when the amount of virtual resources currently held by the target account is less than the amount of virtual resources consumed each time the target attribute is increased When the number of virtual resources consumed when updating the attribute value is less than the number of virtual resources consumed when updating the attribute value, the target account cannot update the virtual attribute. However, when the difference between the current attribute value and the target attribute value is less than the number of attributes by which the attribute value of the target attribute is increased each time, the virtual resources of the first target number of resources can be consumed through the acquired target touch operation to increase the attribute value of the target attribute from the current attribute value to the target attribute value, thereby achieving the purpose of adding an update mechanism under special circumstances, allowing the target account to update the virtual attribute by consuming only a small amount of virtual resources when the number of virtual resources held is not enough for a complete update but is enough to increase from the current attribute value to the target attribute value, thereby achieving the technical effect of improving the update efficiency of the virtual attribute, shortening the waiting time of the target account when updating the virtual attribute, and optimizing the timeliness of the virtual attribute update, thereby solving the technical problem of low update efficiency of the virtual attribute existing in the related art.
[0074] As an optional solution, the method further includes:
[0075] When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, displaying first prompt information, wherein the first prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the first target resource quantity;
[0076] When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, or the first resource quantity is greater than or equal to the second resource quantity, or the first resource quantity is less than the first target resource quantity, a second prompt message is displayed, wherein the second prompt message is used to prompt that it is allowed to increase the attribute value of the target attribute by consuming virtual resources of the second resource quantity.
[0077] Optionally, in this embodiment, the difference between the current attribute value and the target attribute value is less than the first attribute quantity, which can be understood as the difference between the current attribute value and the target attribute value is less than the amount by which the attribute value of the target attribute is increased each time; the first resource quantity is less than the second resource quantity, which can be understood as the number of virtual resources currently held by the target account is less than the number of virtual resources consumed each time the first attribute quantity is updated and increased; the first resource quantity is greater than or equal to the first target resource quantity, which can be understood as the number of virtual resources currently held by the target account is greater than or equal to the number of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0078] Optionally, in this embodiment, the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, which can be understood as the difference between the current attribute value and the target attribute value is greater than or equal to the quantity by which the attribute value of the target attribute is increased each time, the first resource quantity is greater than or equal to the second resource quantity, which can be understood as the number of virtual resources currently held by the target account is greater than or equal to the number of virtual resources consumed each time the first attribute quantity is updated and increased, and the first resource quantity is less than the first target resource quantity, which can be understood as the number of virtual resources currently held by the target account is less than the number of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0079] Optionally, in this embodiment, the first prompt information may include but is not limited to indicating that the attribute value of the target attribute is allowed to be increased by consuming the first target resource quantity of virtual resources. The second prompt information may include but is not limited to indicating that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of virtual resources. Specifically, the first prompt information and the second prompt information may be displayed in different colors, texts, logos, etc.
[0080] For example, Figure 6 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Figure 6As shown, taking a game of an auto chess game, a virtual resource of virtual gold coins, and a target attribute of virtual experience value as an example, the game screen is the game screen displayed after the target account starts a game, and the first resource quantity 602 (2 virtual gold coins) corresponding to the virtual resource currently held by the target account is displayed in the lower right corner of the game screen, and the current attribute value 604 (18-point attribute value) of the target attribute of the target account is displayed in the lower left corner. It is preset that each time the target account consumes the second resource quantity (4) of virtual gold coins, it can increase the first attribute. When it is determined that the difference (2) between the current attribute value (18) and the target attribute value (20) is less than the first attribute quantity (4), the first resource quantity (2) is less than the second resource quantity (4), and the first resource quantity (2) is equal to the first target resource quantity (2), a first prompt message 606 is displayed, indicating that it is allowed to consume virtual gold coins of the first target resource quantity (2) from the virtual resources of the first resource quantity (2) to increase the virtual experience value from the current attribute value (18) to the target attribute value (20).
[0081] For example, Figure 7 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Figure 7 As shown, a game is an auto chess game, the virtual resource is virtual gold coins, and the target attribute is virtual experience points as an example:
[0082] The game screen is the game screen displayed after the target account starts a game. The first resource quantity 702 (2 virtual gold coins) corresponding to the virtual resources currently held by the target account is displayed in the lower right corner of the game screen, and the current attribute value 704 (12 attribute value) of the target attribute of the target account is displayed in the lower left corner. It is preset that each time the target account consumes the second resource quantity (4) of virtual gold coins, it can increase the virtual experience of the first attribute quantity (4). When it is determined that the difference (8) between the current attribute value (12) and the target attribute value (20) is greater than the first attribute quantity (4), a second prompt message 706 is displayed, and the second prompt message indicates that the second resource quantity (4) of virtual gold coins can be consumed to increase the current attribute value of the virtual experience value.
[0083] For example, Figure 8 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Figure 8 As shown, a game is an auto chess game, the virtual resource is virtual gold coins, and the target attribute is virtual experience points as an example:
[0084] The game screen is the game screen displayed after the target account starts a game. The first resource quantity 802 (2 virtual gold coins) corresponding to the virtual resources currently held by the target account is displayed in the lower right corner of the game screen, and the current attribute value 804 (12 attribute value) of the target attribute of the target account is displayed in the lower left corner. It is preset that each time the target account consumes the second resource quantity (4) of virtual gold coins, it can increase the virtual experience of the first attribute quantity (4). When it is determined that the first resource quantity (8) is greater than the second resource quantity (4), a second prompt message 806 is displayed, and the second prompt message indicates that the second resource quantity (4) of virtual gold coins can be consumed to increase the current attribute value of the virtual experience value.
[0085] For example, Fig. 9 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Fig. 9 As shown, a game is an auto chess game, the virtual resource is virtual gold coins, and the target attribute is virtual experience points.
[0086] The game screen is the game screen displayed after the target account starts a game. The first resource quantity 902 (2 virtual gold coins) corresponding to the virtual resources currently held by the target account is displayed in the lower right corner of the game screen, and the current attribute value 904 (12 attribute value) of the target attribute of the target account is displayed in the lower left corner. It is preset that each time the target account consumes the second resource quantity (4) of virtual gold coins, it can increase the virtual experience of the first attribute quantity (4). When it is determined that the first resource quantity (1) is less than the first target resource quantity (2), a second prompt message 906 is displayed, and the second prompt message indicates that the second resource quantity (4) of virtual gold coins can be consumed to increase the current attribute value of the virtual experience value.
[0087] The above is only an example, and this embodiment does not make any specific limitation.
[0088] As an optional solution, when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the 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 virtual resources of the first target resource quantity, including:
[0089] When the difference between the current property value and the target property value is less than the first property quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, displaying the target control as being in a touch-enabled state, wherein the target control is used to consume virtual resources to increase the property value of the target property; in response to a target touch operation performed on the target control, increasing the property value of the target property from the current property value to the target property value by consuming virtual resources of the first target resource quantity; or
[0090] When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, a target window pops up, and a first prompt message and a target determination button are displayed in the target window, wherein the first prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the first target resource quantity; in response to a target touch operation performed on the target determination button, 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 quantity.
[0091] Optionally, in this embodiment, the above-mentioned target control may include but is not limited to interactive controls that allow touch operations such as clicking, long pressing, dragging or releasing, and the above-mentioned displaying the target control as being in a state allowing touch may include but is not limited to displaying the target control as being in a state allowing touch operations such as clicking, long pressing, dragging or releasing.
[0092] It should be noted that after performing the above-mentioned target touch operations such as clicking, long pressing, dragging or releasing the target control, you can Figure 5 As shown, virtual resources of the first target resource quantity (2) are consumed, and the attribute value of the target attribute is increased from the current attribute value (18) to the target attribute value (20).
[0093] Optionally, in this embodiment, the target determination button may include but is not limited to an interactive control that allows touch operations 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 virtual resources of the first target resource quantity. The pop-up target window may include but is not limited to popping up at a predetermined time node, or when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity. The display of the first prompt information and the target determination button in the target window may include but is not limited to displaying the first prompt information and the target determination button at the same time, and may also include but is not limited to displaying the first prompt information and the target determination button in a preset order. Specifically, it may include but is not limited to displaying the first prompt information first and then displaying the target determination button.
[0094] For example, Fig.10 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Fig.10 As shown, a game is an auto chess game, the virtual resource is virtual gold coins, and the target attribute is virtual experience points.
[0095] The game screen is the game screen displayed after the target account starts a game. The first resource quantity 1002 (2 virtual gold coins) corresponding to the virtual resources currently held by the target account is displayed in the lower right corner of the game screen, and the current attribute value 1004 (12-point attribute value) of the target attribute of the target account is displayed in the lower left corner. It is preset that each time the target account consumes the second resource quantity (4) of virtual gold coins, it can increase the virtual experience of the first attribute quantity (4). When it is determined that the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, a target window 1006 pops up, and a first prompt message 1008 and a target confirmation button 1010 are displayed in the target window 1006. In response to the target touch operation performed on the target confirmation button, 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 quantity.
[0096] The above is only an example, and this embodiment does not make any specific limitation.
[0097] As an optional solution, the method further includes:
[0098] When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of virtual resources;
[0099] When the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the second target resource quantity, the display of the second prompt information is switched to the display of the third prompt information, and the target control is displayed as being in a touch-allowed state, wherein the third prompt information is used to prompt that it is allowed to increase the attribute value of the target attribute by consuming virtual resources of the second target resource quantity, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value.
[0100] Optionally, in this embodiment, the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, which can be understood as the difference between the current attribute value and the target attribute value is greater than or equal to the amount by which the attribute value of the target attribute is increased each time the second resource quantity is consumed, and the first resource quantity is less than the second resource quantity, which can be understood as the number of virtual resources currently held by the target account is less than the number of virtual resources consumed each time the first attribute quantity is updated and increased. At this time, although the second prompt information is displayed to prompt that the attribute value of the target attribute can be increased by consuming the second resource quantity of virtual resources, the target control is displayed as being in a state where touch is not allowed.
[0101] Optionally, in this embodiment, the first attribute value is an attribute value whose difference with the target attribute value is less than the first attribute quantity. For example, if the target attribute value is 20 and the first attribute quantity is 4, then the first attribute value is any one of 17, 18, and 19.
[0102] Optionally, in this embodiment, when the attribute value of the target attribute increases from the current attribute value to the first attribute value, the first attribute value can be obtained by successively increasing the number of the first attributes. For example, if the current attribute value is 0 and the number of the first attributes is 4, it increases by 4 each time. The first time: 0 to 4, the second time: 4 to 8, and so on.
[0103] Optionally, in this embodiment, the third prompt information may include but is not limited to prompting to allow the attribute value of the target attribute to be increased by consuming virtual resources of the second target resource quantity. For example, the first attribute value is 18, the target attribute value is 20, and the second target resource quantity is 2. By consuming virtual resources of the second target resource quantity, the attribute value of the target attribute can be increased from 18 to 20, and the target control can be displayed as being in a state where touch is allowed.
[0104] For example, Fig.11 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Fig.11 As shown, a game is an auto chess game, the virtual resource is virtual gold coins, and the target attribute is virtual experience points as an example:
[0105] The game screen is a game screen displayed after the target account starts a game. The first resource quantity 1102 (6 virtual gold coins) corresponding to the virtual resources currently held by the target account is displayed in the lower right corner of the game screen, and the current attribute value 1104 (14 attribute value) of the target attribute of the target account is displayed in the lower left corner. It is preset that each time the target account consumes the virtual gold coins of the second resource quantity (4), it can increase the virtual experience of the first attribute quantity (4). After consuming the second resource quantity 4, the current attribute value is increased by the first attribute quantity to obtain the first attribute value of 14+4=18. When the target attribute value is 20, the difference (2) between the first attribute value (18) and the target attribute value (20) is less than the first attribute quantity (4), the first resource quantity (2) is less than the second resource quantity (4), and the first resource quantity (2) is equal to the second target resource quantity (2), the display of the second prompt information is switched to the display of the third prompt information, which is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second target resource quantity, and the target control is displayed as being in a touch-allowed state.
[0106] The above is only an example, and this embodiment does not make any specific limitation.
[0107] As an optional solution, the method further includes:
[0108] When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of virtual resources;
[0109] When the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is less than the second target resource quantity, the display of the second prompt information is switched to the display of the third prompt information, and the target control is displayed as being in a state where touch is not allowed, wherein the third prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the second target resource quantity, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value;
[0110] When the number of virtual resources currently held by the target account increases from the first resource number to the third resource number, and the third resource number is less than the second resource number, and the third resource number is greater than or equal to the second target resource number, a third prompt message is displayed, and the target control is displayed as being in a touch-allowed state.
[0111] Optionally, in this embodiment, the attribute value of the target attribute may be increased from the current attribute value to the first attribute value by including but not limited to other methods besides consuming virtual resources held by the target account, for example, obtaining game rewards, assistance from other accounts, etc.
[0112] For example, Fig.11 As shown, when the current attribute 1104 is increased to the first attribute value 1106 not by consuming the virtual resources of the second resource quantity but by the assistance of other accounts, the value of the first resource quantity 1102 is increased to the third resource quantity to display the third prompt information and display the target control as being in a touch-allowed state.
[0113] As an optional solution, the method further includes:
[0114] When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of virtual resources;
[0115] When the number of 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 greater than the second resource number, displaying the second prompt information, and displaying the target control as being in a touch-allowed state;
[0116] When the ratio of the difference between the current attribute value and the target attribute value to the first attribute quantity is between N and N+1, and the ratio of the fourth resource quantity to the second resource quantity is between N and N+1, in response to N consecutive touch operations performed on the target control, the attribute value of the target attribute is increased by the first attribute quantity by consuming virtual resources of the second resource quantity N consecutive times, wherein N is a positive integer greater than or equal to 2, and when the attribute value of the target attribute is increased by the first attribute quantity by consuming virtual resources of the second resource quantity N consecutive times, the attribute value of the target attribute is the second attribute value, and the number of virtual resources currently held by the target account is the fifth resource quantity;
[0117] In the case that the fifth resource quantity is less than the second resource quantity and the fifth resource quantity is greater than or equal to the third target resource quantity, when the attribute value of the target attribute is increased by the first attribute quantity by consuming the second resource quantity virtual resources for N consecutive times, the display of the second prompt information is switched to the display of the fourth prompt information, and the target control is displayed as being in a touch-allowed state, wherein the fourth prompt information is used to prompt that it is allowed to increase the attribute value of the target attribute by consuming the third target resource quantity virtual resources, and the third target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the second attribute value to the target attribute value.
[0118] Optionally, in the present embodiment, when the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, the second prompt message is displayed, and the target control is displayed as being in a state where touch is not allowed. This is similar to the above description and will not be repeated here. When the number of virtual resources currently held by the target account increases from the first resource quantity to the fourth resource quantity, and the fourth resource quantity is greater than the second resource quantity, the second prompt message is displayed, and the target control is displayed as being in a state where touch is allowed. This can be understood as when the first resource quantity is less than the second resource quantity, the target control is displayed as being in a state where touch is not allowed, and when the first resource quantity increases to the fourth resource quantity, and the fourth resource quantity is greater than or equal to the second resource quantity, the target control is switched from a state where touch is not allowed to a state where touch is allowed.
[0119] Optionally, in this embodiment, the ratio of the difference between the current attribute value and the target attribute value to the first attribute quantity is between N and N+1, which can be understood as the difference between the current attribute value and the target attribute value is between N times and N+1 times the first attribute quantity, and the ratio of the fourth resource quantity to the second resource quantity is between N and N+1, which can be understood as the fourth resource quantity is between N times and N+1 times the second resource quantity. In response to N consecutive touch operations performed on the target control, the attribute value of the target attribute is increased by the first attribute quantity by consuming virtual resources of the second resource quantity for N consecutive times, so that the attribute value of the target attribute is increased from the first attribute quantity to the second attribute value successively.
[0120] For example, a game is an auto chess game, the virtual resource is virtual gold coins, the target attribute is virtual experience value, the first resource quantity is equal to 2, the first attribute quantity is equal to 4, and the second resource quantity is equal to 4. For example, when the current attribute value is 2 and 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 less than the second resource quantity 4. At this time, the second prompt information is displayed to allow the attribute value of the target attribute to be increased by consuming the second resource quantity of virtual resources. When the number of virtual resources currently held by the target account increases 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 second prompt information is displayed, and the target control is displayed It is shown as being in a touch-allowed state, when the ratio of the difference 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 between N=4 and N=5, in response to 4 consecutive touch operations performed on the target control, the attribute value of the target attribute is increased by the first attribute quantity 4 by consuming the virtual resources of the second resource quantity 4 for 4 consecutive times, wherein N is a positive integer greater than or equal to 2, and when the attribute value of the target attribute is increased by the first attribute quantity 4 by consuming the virtual resources of the second resource quantity 4 for 4 consecutive times, the attribute value of the target attribute is the second attribute value 18, and the number of virtual resources currently held by the target account is the fifth resource quantity 2;
[0121] In the case where the fifth resource quantity 2 is less than the second resource quantity 4, and the fifth resource quantity 2 is equal to the third target resource quantity 2, when the attribute value of the target attribute is increased by the first attribute quantity 4 by consuming the second resource quantity 4 virtual resources for 4 consecutive times, the display of the second prompt information is switched to the display of the fourth prompt information, and the target control is displayed as being in a touch-allowed state, wherein the fourth prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the third target resource quantity 2 virtual resources, and the third target resource quantity 2 is the number of virtual resources required to increase the attribute value of the target attribute from the second attribute value 18 to the target attribute value 20. ;
[0122] The above is only an example, and this embodiment does not make any specific limitation.
[0123] As an optional solution, the method further includes:
[0124] In the case where the target window pops up, the target control is displayed as being in a touch-disabled state, wherein the target control is used to consume virtual resources to increase the property value of the target property; or
[0125] When the target window pops up, the target control is displayed as being in a state where touch is not allowed, and a second prompt message is displayed on the target control, wherein the target control is used to consume virtual resources to increase the property value of the target property, and the second prompt message is used to prompt that the property value of the target property is allowed to be increased by consuming a second amount of virtual resources.
[0126] Optionally, in this embodiment, when the target window pops up on the game screen, the target control is displayed as a state where touch is not allowed.
[0127] It should be noted that, even if the target control is displayed as a touch-disabled state, a second prompt message may be displayed on the target control to prompt that the attribute value of the target attribute is allowed to be increased by consuming a second amount of virtual resources.
[0128] As an optional solution, in response to the acquired target touch operation, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the first target resource quantity of virtual resources includes:
[0129] In the case where the first attribute quantity and the second resource quantity are the same, in response to the target touch operation, the attribute value of the target attribute is increased by a difference from the current attribute value to the target attribute value by consuming virtual resources of the first target resource quantity, wherein the difference is the same as the first target resource quantity; or
[0130] When the first attribute quantity and the second resource quantity are the same, in response to the target touch operation, the attribute value of the target attribute is increased by the difference from the current attribute value to the target attribute value by consuming the virtual resources of the first target resource quantity, wherein the difference is different from the first target resource quantity.
[0131] Optionally, in this embodiment, the value of the first attribute quantity can be configured to be the same as the value of the second resource quantity. In this case, the attribute value of the target attribute is increased by a difference from the current attribute value to the target attribute value. The above difference is the same as or different from the first target resource quantity, which can be understood as the difference between the current attribute value and the target attribute value is the same as or different from the value of the first target resource quantity.
[0132] For example, a game is an auto chess game, the virtual resource is virtual gold coins, the target attribute is 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, and the first attribute quantity and the second resource quantity are the same. At this time, in response to the target touch operation, the target attribute value is increased by 4 from the current attribute value to the target attribute value by consuming 4 virtual resources. For example, the difference value is different from the first target resource quantity. At this time, in response to the target touch operation, the target attribute value is increased by 3 from the current attribute value to the target attribute value by consuming 4 virtual resources.
[0133] That is, when the first attribute quantity and the second resource quantity are the same, the first target resource quantity can be configured to be the same as or different from the difference, and the attribute value of the target attribute can be increased from the current attribute value to the target attribute value.
[0134] As an optional solution, in response to the acquired target touch operation, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the first target resource quantity of virtual resources includes:
[0135] In a case where the ratio of the first attribute quantity to the second resource quantity is M, in response to the target touch operation, the attribute value of the target attribute is increased by a difference 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 M; or
[0136] When the ratio of the first attribute quantity to the second resource quantity is 1 / M, in response to the target touch operation, the attribute value of the target attribute is increased by the difference from the current attribute value to the target attribute value by consuming virtual resources of the first target resource quantity, where 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.
[0137] Optionally, in this embodiment, the ratio of the first target resource quantity to the difference may be configured according to the same ratio (eg, M or 1 / M) based on the ratio between the first attribute quantity and the second resource quantity.
[0138] As an optional solution, the method further includes:
[0139] When the attribute value of the target attribute corresponds to the number of virtual characters that the target account is allowed to control in one game, in response to the target touch operation, the number of virtual characters that the target account is allowed to control in one game is increased.
[0140] Optionally, in this embodiment, the target attribute may be configured as the number of virtual characters that the target account is allowed to control in a game. When the attribute value of the target attribute increases, the number of virtual characters that the target account is allowed to control in a game increases.
[0141] For example, Figure 5 As shown, in response to the target touch operation, the number of virtual characters that the target account is allowed to control in a game (within the chessboard area) is increased (from 3 chess pieces to 4 chess pieces).
[0142] As an optional solution, increase the number of virtual characters that the target account is allowed to control in a game, including:
[0143] Increase the number of virtual characters that the target account is allowed to control in a game by the preset first character number; or
[0144] The number of virtual characters that the target account is allowed to control in a game is increased by the second character number corresponding to the target attribute value.
[0145] Optionally, in this embodiment, the above-mentioned preset number of first characters may include but is not limited to corresponding to the target attribute value of the above-mentioned target attribute. Each time the attribute value of the target attribute increases to the target attribute value, the preset number of first characters is increased. The above-mentioned number of second characters corresponding to the target attribute value may include but is not limited to configuring a corresponding virtual level for the target attribute. When the target attribute value corresponds to different virtual levels, different numbers of virtual characters are added, that is, the number of second characters corresponding to the target attribute value is increased.
[0146] As an optional solution, after increasing the attribute value of the target attribute from the current attribute value to the target attribute value, the method further includes:
[0147] Display 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;
[0148] When the difference between the current update attribute value and the target update attribute value is less than the first attribute quantity, the resource quantity of the virtual resources currently held by the target account is less than the second resource quantity, and the resource quantity of the virtual resources currently held by the target account is greater than or equal to a fourth target resource quantity, in response to the acquired target touch operation, the attribute value of the target attribute is increased from the current update attribute value to the target update attribute value by consuming virtual resources of the fourth target resource quantity, wherein the fourth target resource quantity is the quantity of virtual resources required to be consumed to increase the attribute value of the target attribute from the current update attribute value to the target update attribute value;
[0149] Among them, the first difference is the difference between the current attribute value and the target attribute value, the second difference is the difference between the current updated attribute value and the target updated attribute value, the first ratio is the ratio of the first difference to the first target resource quantity, the second ratio is the ratio of the second difference to the fourth target resource quantity, and the first ratio is the same or different from the second ratio.
[0150] Optionally, in this embodiment, the current updated attribute value can be understood as the current attribute value corresponding to the target attribute when the target attribute reaches the target attribute value and the target attribute is allowed to be updated next time. The target updated attribute value can be understood as the target attribute value corresponding to the target attribute when the target attribute reaches the target attribute value and the target attribute is allowed to be updated next time.
[0151] For example, a game is an auto chess game, the virtual resource is virtual gold coins, the target attribute is virtual experience points, the current attribute value is 18, the target attribute value is 20, the first target resource quantity is 2, and the second resource quantity is 4. At this time, when the current updated attribute value is 22 and the target updated attribute value is 23, the first difference is 2 and the second difference is 1. The number of virtual resources currently held by the target account is 3 and the second resource quantity is 4. It can be seen that the first ratio is 2 / 4=0.5, and the fourth target resource quantity is configured to 1, and the second ratio is 1 / 3=0.3. The first ratio is different from the second ratio. The current updated attribute value is 22 and the target updated attribute value is 24. The first difference is 2 and the second difference is 2. The number of virtual resources currently held by the target account is 3 and the second resource quantity is 4. It can be seen that the first ratio is 2 / 4=0.5, and the fourth target resource quantity is configured to 2, and the second ratio is 2 / 4=0.5. The first ratio is the same as the second ratio.
[0152] That is, as the attribute value of the target attribute increases, the user can increase the attribute value of the target attribute from the current update attribute value to the target update attribute value in more ways of consuming the fourth target resource quantity of virtual resources.
[0153] The following is a further explanation of this application with reference to specific examples:
[0154] The present application is an optimized design of the upgrade mechanism in an auto chess game, which uses a fixed consumption of m gold coins (corresponding to the aforementioned second resource quantity) to purchase n experience points (m=n, usually 4) (corresponding to the aforementioned first attribute quantity), and completes the upgrade by clicking the purchase multiple times (N times). Moreover, on this basis, an upgrade mechanism in extreme cases is added: when the gold coins are not enough to purchase once (corresponding to the aforementioned first resource quantity being less than the second resource quantity) but are sufficient for upgrading (the difference is less than the first attribute quantity), the player only needs to consume a small amount of gold coins to purchase sufficient experience, thereby achieving the upgrade goal.
[0155] It should be noted that this mechanism only exists in extreme cases, that is, the amount of gold coins the player currently has is less than the amount of gold coins required for one purchase, but is greater than or equal to the experience points required for the current upgrade (provided that 1 gold coin is exchanged for 1 experience point).
[0156] This application is an optimization design of the upgrade mechanism in the auto chess game. Fig.12 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Fig.12 As shown, the corresponding basic process is as follows:
[0157] Step 1: After the game starts, let the number of gold coins currently owned by the player be M, the number of gold coins consumed to purchase one experience be m (m is usually 4, but can also be other positive integers), and the experience value gained from one purchase is q (q=m). The game client logic layer (hereinafter referred to as the logic layer) continuously detects the real-time values of M and Q, and reads the fixed values of m and q in the game planning configuration table;
[0158] Step 2: The logic layer determines whether M is greater than or equal to m (i.e., whether the player's current economy is sufficient). If "yes", the player is allowed to click the upgrade button once. During this process, the player continues to click the button until M < m, and the upgrade button is grayed out. The logic layer continuously checks the current values of M and Q;
[0159] Step 3: The logic layer determines whether the limit situation has been reached, that is, m>M≥Q and Q<q. If "yes", the limit purchase mode is turned on, allowing the player to purchase once with insufficient gold coins to achieve the upgrade goal; if "no", the upgrade button is grayed out and cannot be clicked.
[0160] Fig.13 is a schematic diagram of another optional method for updating virtual attributes according to an embodiment of the present application, such as Fig.13 As shown, the specific identification and detection process of each round is as follows:
[0161] Step 1: When the player starts the game, the game client presentation layer (hereinafter referred to as the "presentation layer") transmits the real-time operation signal of the player's finger to the logic layer. The logic layer reads the real-time values of M and Q and the fixed values of m and q in the game planning configuration table, and continuously determines whether M≥m is true. If "yes", it is determined that the current economy is sufficient, and the presentation layer controls the upgrade button to be clickable. Players can continuously click the upgrade button to purchase experience;
[0162] Step 2: As experience is purchased, the value of M decreases until M<m, and a new judgment is made. The real-time values of M and Q are read to determine whether m>M≥Q and Q<q are true. If "yes", it is determined to be an extreme case, and the presentation layer turns on the extreme purchase mode, allowing the player to click the upgrade button once and only spend Q gold coins, and the player successfully upgrades; if "no", it is determined that the economy is insufficient, and the presentation layer controls the upgrade button to be grayed out, and the player cannot click it and cannot upgrade.
[0163] Through this embodiment, players are allowed to consume only a small amount of gold coins to purchase sufficient experience when the gold coins are not enough for one purchase but are enough for upgrading, thereby achieving the upgrade goal. This effectively solves the problem of interest loss that may be caused under the original mode, improves the intimacy of game design, and improves the player experience while retaining the fun of game operation.
[0164] In addition, in this embodiment, it may also include but not be limited to not changing the design of the upgrade button and using an additional pop-up window to remind the player.
[0165] It is understandable that in the specific implementation of this application, related data such as user information and game data are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0166] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0167] According to another aspect of the embodiment of the present application, a virtual attribute updating device for implementing the above virtual attribute updating method is also provided. Fig.14 As shown, the device comprises:
[0168] Display module 1402, used to display 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 the game screen of a game, wherein the amount of virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is the second resource quantity;
[0169] Processing module 1404 is used to increase 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 in response to the acquired target touch operation when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, wherein the first target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0170] As an optional solution, the device is also used to:
[0171] When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, displaying first prompt information, wherein the first prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the first target resource quantity;
[0172] When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, or the first resource quantity is greater than or equal to the second resource quantity, or the first resource quantity is less than the first target resource quantity, a second prompt message is displayed, wherein the second prompt message is used to prompt that it is allowed to increase the attribute value of the target attribute by consuming virtual resources of the second resource quantity.
[0173] As an optional solution, the device is used to increase 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 in response to the acquired target touch operation when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity in the following manner:
[0174] When the difference between the current property value and the target property value is less than the first property quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, displaying the target control as being in a touch-enabled state, wherein the target control is used to consume virtual resources to increase the property value of the target property; in response to a target touch operation performed on the target control, increasing the property value of the target property from the current property value to the target property value by consuming virtual resources of the first target resource quantity; or
[0175] When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, a target window pops up, and a first prompt message and a target determination button are displayed in the target window, wherein the first prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the first target resource quantity; in response to a target touch operation performed on the target determination button, 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 quantity.
[0176] As an optional solution, the device is also used to:
[0177] When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of virtual resources;
[0178] When the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the second target resource quantity, the display of the second prompt information is switched to the display of the third prompt information, and the target control is displayed as being in a touch-allowed state, wherein the third prompt information is used to prompt that it is allowed to increase the attribute value of the target attribute by consuming virtual resources of the second target resource quantity, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value.
[0179] As an optional solution, the device is also used to:
[0180] When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of virtual resources;
[0181] When the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is less than the second target resource quantity, the display of the second prompt information is switched to the display of the third prompt information, and the target control is displayed as being in a state where touch is not allowed, wherein the third prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming virtual resources of the second target resource quantity, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value;
[0182] When the number of virtual resources currently held by the target account increases from the first resource number to the third resource number, and the third resource number is less than the second resource number, and the third resource number is greater than or equal to the second target resource number, a third prompt message is displayed, and the target control is displayed as being in a touch-allowed state.
[0183] As an optional solution, the device is also used to:
[0184] When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second resource quantity of virtual resources;
[0185] When the number of 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 greater than the second resource number, displaying the second prompt information, and displaying the target control as being in a touch-allowed state;
[0186] When the ratio of the difference between the current attribute value and the target attribute value to the first attribute quantity is between N and N+1, and the ratio of the fourth resource quantity to the second resource quantity is between N and N+1, in response to N consecutive touch operations performed on the target control, the attribute value of the target attribute is increased by the first attribute quantity by consuming virtual resources of the second resource quantity N consecutive times, wherein N is a positive integer greater than or equal to 2, and when the attribute value of the target attribute is increased by the first attribute quantity by consuming virtual resources of the second resource quantity N consecutive times, the attribute value of the target attribute is the second attribute value, and the number of virtual resources currently held by the target account is the fifth resource quantity;
[0187] In the case that the fifth resource quantity is less than the second resource quantity and the fifth resource quantity is greater than or equal to the third target resource quantity, when the attribute value of the target attribute is increased by the first attribute quantity by consuming the second resource quantity virtual resources for N consecutive times, the display of the second prompt information is switched to the display of the fourth prompt information, and the target control is displayed as being in a touch-allowed state, wherein the fourth prompt information is used to prompt that it is allowed to increase the attribute value of the target attribute by consuming the third target resource quantity virtual resources, and the third target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the second attribute value to the target attribute value.
[0188] As an optional solution, the device is also used to:
[0189] In the case where the target window pops up, the target control is displayed as being in a touch-disabled state, wherein the target control is used to consume virtual resources to increase the property value of the target property; or
[0190] When the target window pops up, the target control is displayed as being in a state where touch is not allowed, and a second prompt message is displayed on the target control, wherein the target control is used to consume virtual resources to increase the property value of the target property, and the second prompt message is used to prompt that the property value of the target property is allowed to be increased by consuming a second amount of virtual resources.
[0191] As an optional solution, the device is used to respond to the acquired target touch operation in the following manner, by consuming virtual resources of the first target resource quantity, to increase the attribute value of the target attribute from the current attribute value to the target attribute value:
[0192] In the case where the first attribute quantity and the second resource quantity are the same, in response to the target touch operation, the attribute value of the target attribute is increased by a difference from the current attribute value to the target attribute value by consuming virtual resources of the first target resource quantity, wherein the difference is the same as the first target resource quantity; or
[0193] When the first attribute quantity and the second resource quantity are the same, in response to the target touch operation, the attribute value of the target attribute is increased by the difference from the current attribute value to the target attribute value by consuming the virtual resources of the first target resource quantity, wherein the difference is different from the first target resource quantity.
[0194] As an optional solution, the device is used to respond to the acquired target touch operation in the following manner, by consuming virtual resources of the first target resource quantity, to increase the attribute value of the target attribute from the current attribute value to the target attribute value:
[0195] In a case where the ratio of the first attribute quantity to the second resource quantity is M, in response to the target touch operation, the attribute value of the target attribute is increased by a difference 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 M; or
[0196] When the ratio of the first attribute quantity to the second resource quantity is 1 / M, in response to the target touch operation, the attribute value of the target attribute is increased by the difference from the current attribute value to the target attribute value by consuming virtual resources of the first target resource quantity, where 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.
[0197] As an optional solution, the device is also used to:
[0198] When the attribute value of the target attribute corresponds to the number of virtual characters that the target account is allowed to control in one game, in response to the target touch operation, the number of virtual characters that the target account is allowed to control in one game is increased.
[0199] As an optional solution, the device is used to increase the number of virtual characters that the target account is allowed to control in a game by:
[0200] Increase the number of virtual characters that the target account is allowed to control in a game by the preset first character number; or
[0201] The number of virtual characters that the target account is allowed to control in a game is increased by the second character number corresponding to the target attribute value.
[0202] As an optional solution, the device is also used to:
[0203] 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;
[0204] When the difference between the current update attribute value and the target update attribute value is less than the first attribute quantity, the resource quantity of the virtual resources currently held by the target account is less than the second resource quantity, and the resource quantity of the virtual resources currently held by the target account is greater than or equal to a fourth target resource quantity, in response to the acquired target touch operation, the attribute value of the target attribute is increased from the current update attribute value to the target update attribute value by consuming virtual resources of the fourth target resource quantity, wherein the fourth target resource quantity is the quantity of virtual resources required to be consumed to increase the attribute value of the target attribute from the current update attribute value to the target update attribute value;
[0205] Among them, the first difference is the difference between the current attribute value and the target attribute value, the second difference is the difference between the current updated attribute value and the target updated attribute value, the first ratio is the ratio of the first difference to the first target resource quantity, the second ratio is the ratio of the second difference to the fourth target resource quantity, and the first ratio is the same or different from the second ratio.
[0206] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1509, and / or installed from a removable medium 1511. When the computer program is executed by the central processor 1501, various functions provided in the embodiments of the present application are executed.
[0207] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0208] Fig.15 The structure block diagram of a computer system for implementing an electronic device according to an embodiment of the present application is schematically shown.
[0209] It should be noted that Fig.15 The computer system 1500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0210] like Fig.15As shown, the computer system 1500 includes a central processing unit 1501 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 1502 (ROM) or the program loaded from the storage part 1508 to the random access memory 1503 (RAM). Various programs and data required for system operation are also stored in the random access memory 1503. The central processing unit 1501, the read-only memory 1502 and the random access memory 1503 are connected to each other through a bus 1504. The input / output interface 1505 (Input / Output interface, i.e., I / O interface) is also connected to the bus 1504.
[0211] The following components are connected to the input / output interface 1505: an input section 1506 including a keyboard, a mouse, etc.; an output section 1507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1508 including a hard disk, etc.; and a communication section 1509 including a network interface card such as a LAN card, a modem, etc. 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, etc., is installed on the drive 1150 as needed so that a computer program read therefrom is installed into the storage section 1508 as needed.
[0212] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1509, and / or installed from the removable medium 1511. When the computer program is executed by the central processor 1501, various functions defined in the system of the present application are executed.
[0213] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned virtual attribute updating method is also provided. The electronic device may be Figure 1 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig.16As shown, the electronic device includes a memory 1602 and a processor 1604. The memory 1602 stores a computer program, and the processor 1604 is configured to execute the steps in any of the above method embodiments through the computer program.
[0214] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0215] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0216] S1, displaying a first resource quantity 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 on a game screen of a game, wherein the amount of virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is a second resource quantity;
[0217] S2, when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the 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 virtual resources of the first target resource quantity, wherein the first target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0218] Alternatively, a person skilled in the art may understand that: Fig.16 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Fig.16 The electronic device and the electronic equipment described above are not limited in structure. Fig.16 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.16 Different configurations are shown.
[0219] Among them, the memory 1602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for updating virtual attributes in the embodiments of the present application. The processor 1604 executes various functional applications and data processing by running the software programs and modules stored in the memory 1602, that is, realizing the above-mentioned method for updating virtual attributes. The memory 1602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1602 may further include a memory remotely located relative to the processor 1604, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1602 may be specifically, but not limited to, used to store target attributes, virtual resources and other information. As an example, such as Fig.16 As shown, the memory 1602 may include but is not limited to the display module 1402 and the processing module 1404 in the virtual attribute update device. In addition, it may also include but is not limited to other module units in the virtual attribute update device, which will not be repeated in this example.
[0220] Optionally, the transmission device 1606 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1606 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as 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.
[0221] In addition, the electronic device further includes: a display 1608 for displaying the game screen; and a connection bus 1610 for connecting various module components in the electronic device.
[0222] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.
[0223] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the virtual attribute updating method provided in various optional implementations of the above-mentioned virtual attribute updating aspects.
[0224] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0225] S1, displaying a first resource quantity 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 on a game screen of a game, wherein the amount of virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is a second resource quantity;
[0226] S2, when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the 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 virtual resources of the first target resource quantity, wherein the first target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value.
[0227] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0228] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0229] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0230] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0231] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0232] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.
[0233] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0234] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for updating a virtual attribute, characterized in that: include: Displaying a first resource quantity 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 on a game screen of a game, wherein the amount of the virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is a second resource quantity; When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the 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 quantity, wherein the first target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value; The method further includes: when the attribute value of the target attribute corresponds to the number of virtual characters that the target account is allowed to control in the game, in response to the target touch operation, increasing the number of virtual characters that the target account is allowed to control in the game.
2. The method according to claim 1, characterized in that The method further comprises: When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, displaying first prompt information, wherein the first prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the first target resource quantity; When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, or the first resource quantity is greater than or equal to the second resource quantity, or the first resource quantity is less than the first target resource quantity, a second prompt message is displayed, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity.
3. The method according to claim 1, characterized in that When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the acquired 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 resources of the first target resource quantity, comprises: When the difference between the current property value and the target property value is less than the first property quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, displaying the target control as being in a touch-allowed state, wherein the target control is used to consume the virtual resources to increase the property value of the target property; in response to the target touch operation performed on the target control, increasing the property value of the target property from the current property value to the target property value by consuming the virtual resources of the first target resource quantity; or When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, a target window pops up, and a first prompt message and a target determination button are displayed in the target window, wherein the first prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the first target resource quantity; in response to the target touch operation performed on the target determination button, 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 quantity.
4. The method according to claim 3, characterized in that The method further comprises: When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity; When the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the second target resource quantity, the display of the second prompt information is switched to the display of the third prompt information, and the target control is displayed as being in a touch-allowed state, wherein the third prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second target resource quantity, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value.
5. The method according to claim 3, characterized in that: The method further comprises: When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity; When the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is less than the second target resource quantity, the display of the second prompt information is switched to the display of the third prompt information, and the target control is displayed as being in a state where touch is not allowed, wherein the third prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second target resource quantity, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value; When the number of virtual resources currently held by the target account increases from the first resource number to the third resource number, and the third resource number is less than the second resource number, and the third resource number is greater than or equal to the second target resource number, the third prompt information is displayed, and the target control is displayed as being in a touch-allowed state.
6. The method according to claim 3, characterized in that: The method further comprises: When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity; When the number of the virtual resources currently held by the target account increases from the first resource number to a fourth resource number, and the fourth resource number is greater than the second resource number, displaying the second prompt information, and displaying the target control as being in a touch-allowed state; When the ratio of the difference between the current attribute value and the target attribute value to the first attribute quantity is between N and N+1, and the ratio of the fourth resource quantity to the second resource quantity is between N and N+1, in response to N consecutive touch operations performed on the target control, the attribute value of the target attribute is increased by the first attribute quantity by consuming the virtual resources of the second resource quantity N times in succession, wherein N is a positive integer greater than or equal to 2, and when the attribute value of the target attribute is increased by the first attribute quantity by consuming the virtual resources of the second resource quantity N times in succession, the attribute value of the target attribute is the second attribute value, and the quantity of the virtual resources currently held by the target account is the fifth resource quantity; In the case that the fifth resource quantity is less than the second resource quantity, and the fifth resource quantity is greater than or equal to the third target resource quantity, when the attribute value of the target attribute is increased by the first attribute quantity by consuming the virtual resources of the second resource quantity for N consecutive times, the display of the second prompt information is switched to the display of the fourth prompt information, and the target control is displayed as being in a touch-allowed state, wherein the fourth prompt information is used to prompt that it is allowed to increase the attribute value of the target attribute by consuming the virtual resources of the third target resource quantity, and the third target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the second attribute value to the target attribute value.
7. The method according to claim 3, characterized in that The method further comprises: In the case where the target window pops up, displaying the target control as being in a touch-disabled state, wherein the target control is used to consume the virtual resource to increase the attribute value of the target attribute; or When the target window pops up, the target control is displayed as being in a state where touch is not allowed, and a second prompt message is displayed on the target control, wherein the target control is used to consume the virtual resources to increase the attribute value of the target attribute, and the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second amount of virtual resources.
8. The method according to any one of claims 1 to 7, characterized in that In response to the acquired target touch operation, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the first target resource quantity of the virtual resources, comprises: In a case where the first attribute quantity and the second resource quantity are the same, 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 the difference value by consuming the virtual resources of the first target resource quantity, wherein the difference value is the same as the first target resource quantity; or When the first attribute quantity and the second resource quantity are the same, in response to the 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 quantity, wherein the difference is different from the first target resource quantity.
9. The method according to any one of claims 1 to 7, characterized in that In response to the acquired target touch operation, increasing the attribute value of the target attribute from the current attribute value to the target attribute value by consuming the first target resource quantity of the virtual resources, comprises: In a case where the ratio of the first attribute quantity to the second resource quantity is M, in response to the 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 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 M; or When the ratio of the first attribute quantity to the second resource quantity is 1 / M, in response to the 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 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.
10. The method according to any one of claims 1 to 7, characterized in that 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 less than the first attribute quantity, the resource quantity of the virtual resources currently held by the target account is less than the second resource quantity, and the resource quantity of the virtual resources currently held by the target account is greater than or equal to a fourth target resource quantity, in response to the acquired target touch operation, the attribute value of the target attribute is increased from the current update attribute value to the target update attribute value by consuming the virtual resources of the fourth target resource quantity, wherein the fourth target resource quantity is the quantity of virtual resources required to be consumed to increase the attribute value of the target attribute from the current update attribute value to the target update attribute value; Among them, the first difference is the difference between the current attribute value and the target attribute value, the second difference is the difference between the current updated attribute value and the target updated attribute value, the first ratio is the ratio of the first difference to the first target resource quantity, the second ratio is the ratio of the second difference to the fourth target resource quantity, and the first ratio is the same or different from the second ratio.
11. The method according to claim 1, characterized in that The increasing the number of virtual characters that the target account is allowed to control in the game includes: increasing the number of virtual characters that the target account is allowed to control in the game by a preset first character number; or The number of virtual characters that the target account is allowed to control in the game is increased by a second number of characters corresponding to the target attribute value.
12. A virtual attribute updating device, characterized in that: include: Displaying a first resource quantity 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 on a game screen of a game, wherein the amount of the virtual resources consumed each time the attribute value of the target attribute is increased by the first attribute quantity is a second resource quantity; When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, in response to the 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 quantity, wherein the first target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the current attribute value to the target attribute value; The device is also used to: when the attribute value of the target attribute corresponds to the number of virtual characters that the target account is allowed to control in the game, in response to the target touch operation, increase the number of virtual characters that the target account is allowed to control in the game.
13. The device according to claim 12, characterized in that The device is also used for: When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, displaying first prompt information, wherein the first prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the first target resource quantity; When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, or the first resource quantity is greater than or equal to the second resource quantity, or the first resource quantity is less than the first target resource quantity, a second prompt message is displayed, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity.
14. The device according to claim 12, characterized in that The device 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 resources of the first target resource quantity in response to the acquired target touch operation when the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity in the following manner: When the difference between the current property value and the target property value is less than the first property quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, displaying the target control as being in a touch-allowed state, wherein the target control is used to consume the virtual resources to increase the property value of the target property; in response to the target touch operation performed on the target control, increasing the property value of the target property from the current property value to the target property value by consuming the virtual resources of the first target resource quantity; or When the difference between the current attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the first target resource quantity, a target window pops up, and a first prompt message and a target determination button are displayed in the target window, wherein the first prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the first target resource quantity; in response to the target touch operation performed on the target determination button, 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 quantity.
15. The device according to claim 14, characterized in that The device is also used for: When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity; When the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is greater than or equal to the second target resource quantity, the display of the second prompt information is switched to the display of the third prompt information, and the target control is displayed as being in a touch-allowed state, wherein the third prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second target resource quantity, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value.
16. The device according to claim 14, characterized in that The device is also used for: When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity; When the attribute value of the target attribute increases from the current attribute value to the first attribute value, the difference between the first attribute value and the target attribute value is less than the first attribute quantity, the first resource quantity is less than the second resource quantity, and the first resource quantity is less than the second target resource quantity, the display of the second prompt information is switched to the display of the third prompt information, and the target control is displayed as being in a state where touch is not allowed, wherein the third prompt information is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second target resource quantity, and the second target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the first attribute value to the target attribute value; When the number of virtual resources currently held by the target account increases from the first resource number to the third resource number, and the third resource number is less than the second resource number, and the third resource number is greater than or equal to the second target resource number, the third prompt information is displayed, and the target control is displayed as being in a touch-allowed state.
17. The device according to claim 14, characterized in that The device is also used for: When the difference between the current attribute value and the target attribute value is greater than or equal to the first attribute quantity, and the first resource quantity is less than the second resource quantity, displaying a second prompt message, and displaying the target control as being in a touch-disallowed state, wherein the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the virtual resources of the second resource quantity; When the number of the virtual resources currently held by the target account increases from the first resource number to a fourth resource number, and the fourth resource number is greater than the second resource number, displaying the second prompt information, and displaying the target control as being in a touch-allowed state; When the ratio of the difference between the current attribute value and the target attribute value to the first attribute quantity is between N and N+1, and the ratio of the fourth resource quantity to the second resource quantity is between N and N+1, in response to N consecutive touch operations performed on the target control, the attribute value of the target attribute is increased by the first attribute quantity by consuming the virtual resources of the second resource quantity N times in succession, wherein N is a positive integer greater than or equal to 2, and when the attribute value of the target attribute is increased by the first attribute quantity by consuming the virtual resources of the second resource quantity N times in succession, the attribute value of the target attribute is the second attribute value, and the quantity of the virtual resources currently held by the target account is the fifth resource quantity; In the case where the fifth resource quantity is less than the second resource quantity, and the fifth resource quantity is greater than or equal to the third target resource quantity, when the attribute value of the target attribute is increased by the first attribute quantity by consuming the virtual resources of the second resource quantity for N consecutive times, the display of the second prompt information is switched to the display of the fourth prompt information, and the target control is displayed as being in a touch-allowed state, wherein the fourth prompt information is used to prompt that it is allowed to increase the attribute value of the target attribute by consuming the virtual resources of the third target resource quantity, and the third target resource quantity is the quantity of virtual resources required to increase the attribute value of the target attribute from the second attribute value to the target attribute value.
18. The device according to claim 14, characterized in that The device is also used for: In the case where the target window pops up, displaying the target control as being in a touch-disabled state, wherein the target control is used to consume the virtual resource to increase the attribute value of the target attribute; or When the target window pops up, the target control is displayed as being in a state where touch is not allowed, and a second prompt message is displayed on the target control, wherein the target control is used to consume the virtual resources to increase the attribute value of the target attribute, and the second prompt message is used to prompt that the attribute value of the target attribute is allowed to be increased by consuming the second amount of virtual resources.
19. The device according to any one of claims 12 to 18, characterized in that The device is configured to respond to the acquired target touch operation in the following manner, by consuming the first target resource quantity of the virtual resources, to increase the attribute value of the target attribute from the current attribute value to the target attribute value: In a case where the first attribute quantity and the second resource quantity are the same, 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 the difference value by consuming the virtual resources of the first target resource quantity, wherein the difference value is the same as the first target resource quantity; or When the first attribute quantity and the second resource quantity are the same, in response to the 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 quantity, wherein the difference is different from the first target resource quantity.
20. The device according to any one of claims 12 to 18, characterized in that The device is configured to respond to the acquired target touch operation in the following manner, by consuming the first target resource quantity of the virtual resources, to increase the attribute value of the target attribute from the current attribute value to the target attribute value: In a case where the ratio of the first attribute quantity to the second resource quantity is M, in response to the 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 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 M; or When the ratio of the first attribute quantity to the second resource quantity is 1 / M, in response to the 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 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.
21. The device according to any one of claims 12 to 18, characterized in that The device is also used for: 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 less than the first attribute quantity, the resource quantity of the virtual resources currently held by the target account is less than the second resource quantity, and the resource quantity of the virtual resources currently held by the target account is greater than or equal to a fourth target resource quantity, in response to the acquired target touch operation, the attribute value of the target attribute is increased from the current update attribute value to the target update attribute value by consuming the virtual resources of the fourth target resource quantity, wherein the fourth target resource quantity is the quantity of virtual resources required to be consumed to increase the attribute value of the target attribute from the current update attribute value to the target update attribute value; Among them, the first difference is the difference between the current attribute value and the target attribute value, the second difference is the difference between the current updated attribute value and the target updated attribute value, the first ratio is the ratio of the first difference to the first target resource quantity, the second ratio is the ratio of the second difference to the fourth target resource quantity, and the first ratio is the same or different from the second ratio.
22. The device according to claim 12, characterized in that The device is used to increase the number of virtual characters that the target account is allowed to control in the game by: increasing the number of virtual characters that the target account is allowed to control in the game by a preset first character number; or The number of virtual characters that the target account is allowed to control in the game is increased by a second number of characters corresponding to the target attribute value.
23. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program can be executed by a terminal device or a computer to execute the method described in any one of claims 1 to 11.
24. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented.
25. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 11 through the computer program.
Citation Information
Patent Citations
Object attribute adjustment method and device, computer equipment and storage medium
CN113521739A