Methods, devices, equipment, media, and program products for handling virtual characters.
Patent Information
- Application Number
- CN202211716996.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2026-09-01
- Estimated Expiration
- 2042-12-29
AI Technical Summary
[0002]目前经营模拟类游戏的玩家互动方式单一,一般是玩家每点击一次第一建筑,则第一建筑会产生第一资源
[0071] Because players need to trigger actions on the first virtual building to consume the first resource and generate the second resource, and then trigger actions on the second virtual building to consume the second resource and generate the third resource, the total amount of the third virtual resource must reach a certain condition to activate the upgrade control for the second virtual building. Triggering actions on the upgrade control for the second virtual building then upgrades it, thus increasing the number of times players interact with the system during gameplay and enhancing the interactivity of the game. Furthermore, the relationship between the second and first virtual buildings requires interaction between the player and the system to be established, increasing the importance of player-system interaction for game progress and thus enhancing player engagement and the overall gaming experience.
Smart Images

Figure CN115920398B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a method, apparatus, device, medium, and program product for processing virtual characters' resources. Background Technology
[0002] Currently, simulation games often feature limited player interaction. Typically, each click on a first building generates a resource. Players then upgrade second buildings by consuming this resource. However, this approach lacks genuine player interaction. Summary of the Invention
[0003] This application provides a method, apparatus, device, medium, and program product for processing virtual character resources, which can improve the interactivity of the game process and the player. The technical solution is as follows.
[0004] Firstly, a method for handling virtual character resources is provided, including:
[0005] An operation triggered on the first virtual building in the virtual scene is detected, which consumes the first resource of the virtual character and generates the second resource of the virtual character.
[0006] An operation triggered on the second virtual building in the virtual scene is detected, the second resource is consumed, and the third resource of the virtual character is generated;
[0007] If the total amount of the third resource is detected to meet the first condition, the upgrade control of the second virtual building is activated;
[0008] An operation triggered by the upgrade control of the second virtual building is detected, and the second virtual building is upgraded.
[0009] In some embodiments, the method further includes:
[0010] Upon detecting an increase in the third resource, a fourth resource for the virtual character is added;
[0011] If the total amount of the third resource meets the second condition and / or the total amount of the fourth resource of the virtual character meets the third condition, activate the upgrade control of the virtual character;
[0012] An operation triggered by the upgrade control of the virtual character is detected, and the virtual character is upgraded.
[0013] In some embodiments, the method further includes:
[0014] If the level of the virtual character is detected to have reached the first level, the upgrade control of the third virtual building in the virtual scene is activated;
[0015] Upon detecting an operation triggered on the third virtual building, switch to the first screen;
[0016] The upgrade controls for the third virtual building are displayed in the first screen;
[0017] An operation triggered by the upgrade control of the third virtual building is detected, and the third virtual building is upgraded.
[0018] In some embodiments, the method further includes:
[0019] At regular intervals, the first resource is generated based on the level of the third virtual building within the current time period;
[0020] The first resource is consumed based on the number of operations triggered by the first virtual building.
[0021] In some embodiments, the method further includes at least one of the following:
[0022] If the level of the third virtual building is detected to have reached the second level, increase the number of the first resource generated in each time period;
[0023] If the level of the third virtual building is detected to have reached the third level, the amount of the first resource that can be consumed after a single operation is triggered on the first virtual building is increased.
[0024] In some embodiments, the method further includes:
[0025] If the storage quantity of the first resource is detected to have reached a first quantity, stop generating the first resource;
[0026] The storage quantity of the first resource is displayed in the first virtual building.
[0027] In some embodiments, the method further includes:
[0028] Upon detecting an operation triggered on the first virtual building, a virtual object is generated at a first location in the virtual scene;
[0029] In the virtual scene, the virtual object is shown moving to the vicinity of the first virtual building along a first route;
[0030] Upon detecting that the virtual object has arrived near the first virtual building, the first effect is triggered;
[0031] In the virtual scene, the virtual object is shown to move to a second location within the virtual scene and disappear from the screen.
[0032] In some implementations, the number of virtual objects displayed in the virtual scene satisfies a first ratio with the amount of the second resource generated.
[0033] In some implementations, the value of the first ratio is inversely proportional to the amount of the second resource generated per unit time.
[0034] In some implementations, consuming the second resource includes:
[0035] If the total amount of the second resource is less than or equal to the resource consumption limit corresponding to the level of the second virtual building, consume all of the second resource; or,
[0036] If the total amount of the second resource is greater than or equal to the upper limit of resource consumption corresponding to the level of the second virtual building, a first quantity of the second resource is consumed, and the first quantity is equal to the upper limit of resource consumption corresponding to the level of the second virtual building.
[0037] Secondly, a resource processing device for virtual characters is provided, comprising:
[0038] The detection module is used to detect operations triggered on the first virtual building in the virtual scene;
[0039] The processing module is used to consume the first resource of the virtual character and generate the second resource of the virtual character;
[0040] The detection module is also used to detect operations triggered on the second virtual building in the virtual scene;
[0041] The processing module is also used to consume the second resource and generate a third resource for the virtual character;
[0042] The detection module is also used to detect that the total amount of the third resource meets the first condition;
[0043] The processing module is also used to activate the upgrade control of the second virtual building;
[0044] The detection module is also used to detect operations triggered by the upgrade control of the second virtual building;
[0045] The processing module is also used to upgrade the second virtual building.
[0046] In some implementations, the detection module is further configured to detect an increase in the third resource;
[0047] The processing module is also used to add a fourth resource to the virtual character;
[0048] In some implementations, the detection module is further configured to detect that the total amount of the third resource satisfies the second condition and / or the total amount of the fourth resource of the virtual character satisfies the third condition;
[0049] The processing module is used to activate the upgrade control of the virtual character;
[0050] In some implementations, the detection module is further configured to detect operations triggered by the upgrade control of the virtual character; the processing module is further configured to upgrade the virtual character.
[0051] In some implementations, the detection module is further configured to detect that the virtual character's level has reached the first level; the processing module is further configured to activate the upgrade control of the third virtual building in the virtual scene.
[0052] In some implementations, the detection module is further configured to detect operations triggered on the third virtual building; the processing module is further configured to switch to the first screen.
[0053] The device further includes: a display module for displaying upgrade controls for the third virtual building in the first screen;
[0054] In some implementations, the detection module is further configured to detect operations triggered by the upgrade control of the third virtual building; the processing module is further configured to upgrade the third virtual building.
[0055] In some implementations, the processing module is further configured to generate the first resource based on the level of the third virtual building in the current time period at regular intervals; and consume the first resource based on the number of operations triggered by the first virtual building.
[0056] In some implementations, the detection module is further configured to detect that the level of the third virtual building has reached the second level, and the processing module is further configured to increase the number of the first resources generated in each time period; the detection module is further configured to detect that the level of the third virtual building has reached the third level, and the processing module is further configured to increase the amount of the first resources that can be consumed after triggering a single operation on the first virtual building.
[0057] In some embodiments, the detection module is further configured to detect that the storage quantity of the first resource has reached a first quantity, and the processing module is further configured to stop generating the first resource; the device further includes: a display module, configured to display the storage quantity of the first resource in the first virtual building.
[0058] In some implementations, the detection module is further configured to detect an operation triggered on the first virtual building; the processing module is further configured to generate a virtual object at a first location in the virtual scene.
[0059] The device further includes: a display module, used to display in the virtual scene that the virtual object moves to the periphery of the first virtual building according to the first route;
[0060] The detection module is further configured to detect when the virtual object arrives at the periphery of the first virtual building; the processing module is further configured to trigger the first effect.
[0061] The display module is also used to display, in the virtual scene, the virtual object moving to a second location in the virtual scene and disappearing from the screen.
[0062] In some implementations, the number of virtual objects displayed in the virtual scene satisfies a first ratio with the amount of the second resource generated.
[0063] In some implementations, the value of the first ratio is inversely proportional to the amount of the second resource generated per unit time.
[0064] In some embodiments, the processing module is configured to consume all of the second resources if the total amount of the second resources is less than or equal to the upper limit of resource consumption corresponding to the level of the second virtual building; or, if the total amount of the second resources is greater than or equal to the upper limit of resource consumption corresponding to the level of the second virtual building, consume a first quantity of the second resources, the first quantity being equal to the upper limit of resource consumption corresponding to the level of the second virtual building.
[0065] Thirdly, a computer device is provided, the computer device comprising: a processor coupled to a memory, the memory storing at least one computer program instruction, the at least one computer program instruction being loaded and executed by the processor to enable the computer device to implement the method described in the first aspect or any optional method of the first aspect.
[0066] Fourthly, a computer-readable storage medium is provided, the storage medium storing at least one instruction that, when executed on a computer, causes the computer to perform the method as described in the first aspect or any alternative method of the first aspect.
[0067] Fifthly, a computer program product is provided, the computer program product comprising one or more computer program instructions, which, when loaded and run by a computer, cause the computer to perform the method described in the first aspect or any optional method of the first aspect.
[0068] In a sixth aspect, a chip is provided, the chip including programmable logic circuitry and / or program instructions, which, when the chip is running, are used to implement the method as described in the first aspect or any alternative method of the first aspect.
[0069] In a seventh aspect, a network system is provided, the network system including a game application and a game server; the game application is used to perform the detection steps in the method described in the first aspect or any optional method of the first aspect, such as detecting operations triggered by virtual buildings or upgrade controls; the game server is used to perform the resource processing steps in the method described in the first aspect or any optional method of the first aspect, such as consuming and generating any one or more of a first resource, a second resource, and a third resource.
[0070] Therefore, this application has the following beneficial effects:
[0071] Because players need to trigger actions on the first virtual building to consume the first resource and generate the second resource, and then trigger actions on the second virtual building to consume the second resource and generate the third resource, the total amount of the third virtual resource must reach a certain condition to activate the upgrade control for the second virtual building. Triggering actions on the upgrade control for the second virtual building then upgrades it, thus increasing the number of times players interact with the system during gameplay and enhancing the interactivity of the game. Furthermore, the relationship between the second and first virtual buildings requires interaction between the player and the system to be established, increasing the importance of player-system interaction for game progress and thus enhancing player engagement and the overall gaming experience.
[0072] Furthermore, by generating and consuming various game resources such as first, second, and third resources, it is equivalent to establishing an inherent relationship that conforms to deterministic laws between the level of virtual buildings and the operation of virtual buildings by processing various game resources, thereby maintaining the balance of resources in the game system and improving the reliability of determining the level of virtual buildings. Attached Figure Description
[0073] Figure 1 This is a flowchart illustrating a resource processing method for virtual characters provided in an embodiment of this application;
[0074] Figure 2 This is a schematic diagram of the structure of a resource processing device for virtual characters provided in an embodiment of this application;
[0075] Figure 3 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application;
[0076] Figure 4 This is a schematic diagram of the architecture of a network system provided in an embodiment of this application. Detailed Implementation
[0077] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the embodiments of this application will be further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0078] Appendix Figure 1 This is a flowchart illustrating a resource processing method for virtual characters provided in an embodiment of this application. (Attached) Figure 1 The method shown can be executed by an application, such as a game application. (Appendix) Figure 1 The method shown can also be executed by a server, such as a game's backend server. (Appendix) Figure 1 The method shown includes steps S101 to S104.
[0079] Step S101: An operation triggered on the first virtual building in the virtual scene is detected, which consumes the first resource of the virtual character and generates the second resource of the virtual character.
[0080] The aforementioned virtual scene is, for example, a scene generated by a computer device through an application, providing a multimedia virtual world. The virtual scene can be three-dimensional or two-dimensional. The virtual scene is displayed, for example, on the screen of a computer device. Examples of virtual scenes include simulation management scenes or virtual battle scenes in games, as well as virtual reality scenes or augmented reality scenes. In some embodiments, the virtual scene is displayed on the screen of a computer device.
[0081] The first virtual building can be, for example, the main building or a food store (such as a porridge shop). There can be one or more first virtual buildings.
[0082] Regarding the method of triggering operations on the first virtual building, in some embodiments, the first virtual building itself is a control, and the user can trigger operations on the first virtual building itself, thereby consuming the first resource and generating the second resource. In other embodiments, control buttons are displayed around the first virtual building, and the user can trigger operations on the control buttons around the first virtual building, thereby consuming the first resource and generating the second resource. The operation triggered on the first virtual building can be a click, a long press, or a swipe.
[0083] The aforementioned virtual character can be any user-controlled character, such as the lord of the city to which the first virtual building belongs. Optionally, the visuals presented in the virtual scene include objects viewed from the perspective of the virtual character.
[0084] The aforementioned first resource includes, but is not limited to, virtual food, virtual feed, virtual beverages, and virtual water resources. In one exemplary embodiment, the aforementioned first resource is porridge.
[0085] The aforementioned second resource includes, but is not limited to, virtual characters (such as virtual homeless people), virtual animals (such as virtual pets and virtual mounts), virtual plants, and virtual equipment.
[0086] For example, in a simulated business scenario, when a player clicks on a porridge shop, the porridge water is consumed and the number of virtual homeless people is increased, thus simulating a scenario where the porridge shop distributes porridge water, and the distributed porridge water attracts virtual homeless people.
[0087] In some embodiments, the consumption of the first resource is related to the number of operations triggered on the first virtual building. For example, the consumption of the first resource is positively correlated with the number of operations triggered on the first virtual building. That is, the more operations the first virtual building is triggered, the greater the consumption of the first resource. In one possible implementation, the consumption of the first resource is obtained based on the number of operations triggered on the first virtual building, and the first resource is consumed according to the obtained consumption.
[0088] In some embodiments, the generation of the second resource and the consumption of the first resource satisfy a second ratio. For example, the generation of the second resource is positively correlated with the consumption of the first resource; the more the first resource is consumed, the more the second resource is generated.
[0089] In some embodiments, when an operation triggered on the first virtual building is detected, not only is the operation of consuming the first resource to generate the second resource performed, but a virtual object is also generated at a first location in the virtual scene. In the virtual scene, the virtual object is shown moving to the vicinity of the first virtual building along a first route. When the virtual object is detected to have reached the vicinity of the first virtual building, a first effect is triggered. In the virtual scene, the virtual object is shown moving to a second location in the virtual scene and disappearing from the screen, thereby enhancing interactivity with the user by adding animation.
[0090] The aforementioned virtual objects can be, for example, virtual characters or virtual animals. Optionally, these virtual objects are used to represent a second resource. For example, the image of the virtual object is matched with the second resource. For example, the image of the virtual object is generated by simulating and modeling the second resource. For example, the second resource is virtual homeless people, and the image of the virtual object displayed in the virtual scene is a ragged person. There can be one or multiple virtual objects. When there are multiple virtual objects, they can be distributed at certain intervals, which are determined, for example, based on the interface size of the virtual scene. By generating a second resource and also displaying virtual objects in the virtual scene, a real scene is simulated, and the effect of generating the second resource is presented intuitively.
[0091] In some embodiments, the number of virtual objects displayed in the virtual scene is related to the amount of second resources generated. For example, the number of virtual objects is positively correlated with the amount of second resources generated; that is, the greater the amount of second resources generated, the more virtual objects there are. For example, the number of virtual objects is determined based on the amount of second resources generated; virtual objects are generated and displayed in the virtual scene according to this number of virtual objects.
[0092] In some embodiments, the number of virtual objects displayed in the virtual scene and the number of second resources generated satisfy a first ratio. For example, the number of virtual objects is determined based on the number of second resources generated and the first ratio. Virtual objects are generated and displayed in the virtual scene according to this number. For example, if the first ratio is 1:N, then when M second resources are generated, the number of virtual objects is determined to be M / N. N is a positive integer greater than or equal to 1.
[0093] Optionally, N is a positive integer greater than 1. That is, the number of virtual objects displayed in the virtual scene is less than the number of second resources generated. Compared with using the number of second resources generated as the number of virtual objects, it is possible to maintain realism while reducing the amount of data processed by the computer due to displaying virtual objects.
[0094] In some embodiments, the value of the first ratio is inversely proportional to the generation rate of the second resource per unit time. That is, the greater the generation rate of the second resource per unit time, the smaller the value of the first ratio. Taking virtual homeless people as the second resource and virtual characters as the virtual objects as an example, for instance, when 1-10 virtual homeless people are generated per unit time, virtual characters are generated at a 1:1 ratio; when 10-30 virtual homeless people are generated per unit time, virtual characters are generated at a 1:2 ratio.
[0095] Because the first ratio is inversely proportional to the generation rate of the second resource per unit time, it avoids an excessive number of virtual objects due to an excessive generation rate of the second resource per unit time. An excessive number of virtual objects would lead to an overly dense distribution of virtual objects in the virtual scene, and due to the limited display area of the virtual scene, an excessive number of virtual objects would also cause overlap between different virtual objects, affecting the display effect of the virtual scene. Furthermore, generating too many virtual objects would increase the computational load for computer-generated character graphics rendering. In other words, by making the first ratio inversely proportional to the generation rate of the second resource per unit time, it helps to improve the display effect of the virtual scene and reduce the computational load.
[0096] In one possible implementation, a first correspondence between the unit-time generation quantity of the second resource and the value of the first ratio is pre-stored; during the generation of the second resource, the generation quantity of the second resource per unit time is recorded; based on the generation quantity of the second resource per unit time and the first correspondence, the value of the first ratio is obtained, and then a virtual object is generated based on the value of the first ratio. The aforementioned first correspondence can be in the form of a mapping table, or it can be in the form of a function or formula.
[0097] The first route mentioned above is, for example, any route from the first location to the vicinity of the first virtual building. The first route can be a pre-defined route or a route generated by a user-triggered path planning operation.
[0098] The aforementioned first effect can optionally be used to represent that the virtual object has obtained the consumed first resource. For example, the virtual object moving along the first route to the vicinity of the first virtual building is equivalent to simulating homeless people going to a porridge shop to collect porridge, and the virtual object arriving at the vicinity of the first virtual building is equivalent to simulating homeless people arriving at a porridge shop and obtaining porridge.
[0099] The aforementioned first effect can be output to the user through images, audio, vibration, or other means. For example, triggering the first effect includes displaying a speech bubble above the head of the first virtual object. Optionally, the content of the speech bubble is related to the first resource; for example, the speech bubble might express gratitude for obtaining the first resource. Another example is triggering the first effect by playing a notification sound. Yet another example is triggering the first effect by displaying a preset scene.
[0100] Step S102: An operation triggered on the second virtual building in the virtual scene is detected, the second resource is consumed, and the third resource of the virtual character is generated.
[0101] The aforementioned second virtual building can be used, for example, to simulate a dwelling for the second resource, or it can be any building capable of storing or accommodating the second resource. There can be one or more second virtual buildings. For example, the aforementioned second virtual building could be a residential house.
[0102] The method of triggering the operation on the second virtual building can be referred to the description of the operation triggered on the first virtual building. In an exemplary embodiment, clicking on the second virtual building consumes a second resource and generates a third resource.
[0103] Third resources are, for example, resources converted from second resources. Third resources include, for instance, virtual residents.
[0104] In some embodiments, the second virtual building sets a consumption limit for the second resource, and consumes the second resource based on this limit. For example, if the total amount of the second resource is less than or equal to the resource consumption limit corresponding to the level of the second virtual building, all the second resource is consumed; or, if the total amount of the second resource is greater than or equal to the resource consumption limit corresponding to the level of the second virtual building, a first quantity of the second resource is consumed. The first quantity is equal to the resource consumption limit corresponding to the level of the second virtual building.
[0105] When there are multiple second virtual buildings, and the total amount of second resources is greater than or equal to the resource consumption limit corresponding to the level of the second virtual building, the remaining second resources (excluding the first number of second resources) can also be consumed by continuing to trigger operations on other second virtual buildings. For example, a virtual scene includes second virtual building A and second virtual building B. The resource consumption limit corresponding to the level of second virtual building A is k, the resource consumption limit corresponding to the level of second virtual building B is m, and the total amount of second resources is p. p is greater than or equal to k. Clicking on second virtual building A consumes k second resources, and the remaining (pk) second virtual resources can be consumed by clicking on second virtual building B.
[0106] In some embodiments, if the level of the second virtual building is detected to have reached the fourth level, the upper limit of the second virtual building's consumption of the second resource is increased.
[0107] In some embodiments, if the remaining amount of the second resource that the second virtual building can consume is less than or equal to the first remaining amount, a first prompt animation is displayed on the second virtual building. Optionally, the first remaining amount is 0. The first prompt animation is used, for example, to indicate that the second virtual building at the location of the first prompt animation cannot consume the second resource or has too little amount of the second resource it can consume. By displaying the first prompt animation, in the presence of multiple second virtual buildings, the increased chance of accidental operation caused by users triggering operations on buildings that cannot consume the second resource is avoided, thus preventing a decline in the game experience.
[0108] In some embodiments, if the remaining amount of the second resource that the second virtual building can consume is greater than or equal to the second reserve, a second prompt animation is displayed on the second virtual building. Optionally, the second reserve is 0. Alternatively, the second reserve is the total amount of the second resource. The second prompt animation is used, for example, to indicate that the second virtual building at the location of the second prompt animation can consume the second resource or can consume the full amount of the second resource. This guides the user to find the second virtual building that can consume the second resource more quickly when multiple second virtual buildings exist, reducing the operational complexity of consuming the second resource through the operation of the second virtual building and improving the success rate of consuming the second resource.
[0109] Step S103: If the total amount of the third resource is detected to meet the first condition, activate the upgrade control of the second virtual building.
[0110] The first condition mentioned above is, for example, that the total amount of the third resource is greater than or equal to the total amount of the first resource.
[0111] The upgrade control for the second virtual building is used to trigger an upgrade to the second virtual building. For example, the upgrade control is a button.
[0112] The display of the upgrade control for the second virtual building can be achieved in several ways. In some embodiments, if the total amount of the third resource is detected to be less than the first condition, the upgrade control for the second virtual building is not displayed or is hidden. If the total amount of the third resource is detected to be sufficient to meet the first condition, the upgrade control for the second virtual building is displayed. In some embodiments, if the total amount of the third resource is detected to be sufficient to meet the first condition, the upgrade control for the second virtual building is displayed in the currently displayed screen. In other embodiments, if the total amount of the third resource is detected to meet the first condition and an operation triggered on the second virtual building is detected, the screen switches to a second screen, where the upgrade control for the second virtual building is displayed.
[0113] In some embodiments, the display method of the upgrade control of the second virtual building is determined based on the total amount of the third resource. For example, if the total amount of the third resource is not detected to meet the first condition, the upgrade control of the second virtual building is displayed at a first brightness. If the total amount of the third resource is detected to meet the first condition, the upgrade control of the second virtual building is activated and displayed at a second brightness. Optionally, the second brightness is higher than the first brightness. Since the total amount of the third resource is detected to meet the first condition, the brightness of the upgrade control changes, thereby visually indicating that the upgrade control is active and the second virtual building can be upgraded, thus guiding the user to perform the upgrade operation of the second virtual building more quickly. As another example, if the total amount of the third resource is detected to meet the first condition, the upgrade control of the second virtual building is activated, and a first prompt message is displayed around the upgrade control of the second virtual building. This first prompt message can be in the form of a circle, arrow, light bulb, or other graphic, or it can be in the form of text. The first prompt message is used to indicate that the upgrade control of the second virtual building is active.
[0114] Step S104: An operation triggered by the upgrade control of the second virtual building is detected, and the second virtual building is upgraded.
[0115] The method provided in this embodiment requires players to trigger operations on a first virtual building to consume a first resource and generate a second resource, and then trigger operations on a second virtual building to consume the second resource and generate a third resource. When the total amount of the third virtual resource meets a condition, the upgrade control for the second virtual building is activated. Triggering the upgrade control on the second virtual building upgrades it, thereby increasing the number of interactions between the player and the system during gameplay. Furthermore, the relationship between the second and first virtual buildings requires interaction between the player and the system to be established, increasing the importance of player-system interaction for game progress and thus enhancing player engagement and the overall gaming experience.
[0116] Furthermore, by generating and consuming various game resources such as first, second, and third resources, it is equivalent to establishing an inherent relationship that conforms to deterministic laws between the level of virtual buildings and the operation of virtual buildings by processing various game resources, thereby maintaining the balance of resources in the game system and improving the reliability of determining the level of virtual buildings.
[0117] In some embodiments, if an increase in a third resource is detected, a fourth resource for the virtual character is added; if the total amount of the third resource is detected to meet a second condition and / or the total amount of the fourth resource for the virtual character meets a third condition, the upgrade control for the virtual character is activated; if an operation triggered by the upgrade control for the virtual character is detected, the virtual character is upgraded.
[0118] Because players need to trigger upgrade controls to level up their virtual characters, the number of times players interact with the system during gameplay is increased. Furthermore, since character levels are linked through interactions with the first, second, and third virtual buildings, this interaction is crucial to game progress, thus enhancing player engagement and the overall gaming experience.
[0119] In some embodiments, the fourth resource includes the rate at which a virtual character earns virtual currency in a virtual scene.
[0120] In some embodiments, the increment of the fourth resource and the increment of the third resource satisfy a third ratio. This third ratio can be a fixed value or it can change dynamically. For example, if the total amount of the third resource is detected to be greater than or equal to a threshold, the value of the third ratio is increased. In other words, when the total amount of the third resource is greater than or equal to the threshold, the amplifying effect of the third resource on the fourth resource is amplified.
[0121] The total amount of the third resource satisfies the second condition, for example, the total amount of the third resource is greater than or equal to the total amount of the third resource, or the total amount of the third resource of the current user's virtual character ranks in the top k positions among the total amount of the third resource of each user's virtual character in the user group.
[0122] The total amount of the fourth resource satisfies the third condition, for example, the total amount of the fourth resource is greater than or equal to the total amount of the fourth resource, or the total amount of the fourth resource of the current user's virtual character ranks in the top k positions among the total amount of the fourth resource of each user's virtual character in the user group.
[0123] The upgrade control for a virtual character is used to trigger an upgrade of the virtual character. For example, the upgrade control is a button.
[0124] Regarding the timing of displaying the upgrade control for a virtual character, in some embodiments, if the total amount of the third resource is detected to be less than the second condition, or if the total amount of the fourth resource of the virtual character is detected to be sufficient to meet the third condition, then the upgrade control for the virtual character is not displayed, or is hidden. If the total amount of the third resource is detected to meet the second condition and / or the total amount of the fourth resource of the virtual character is detected to meet the third condition, then the upgrade control for the virtual character is displayed.
[0125] Regarding the display position of the virtual character's upgrade control, in some embodiments, when it is detected that the total amount of the third resource meets the second condition and / or the total amount of the virtual character's fourth resource meets the third condition, the virtual character's upgrade control is displayed in the currently displayed screen. In other embodiments, when it is detected that the total amount of the third resource meets the second condition and / or the total amount of the virtual character's fourth resource meets the third condition, and an operation triggered on the virtual character is detected, the screen switches to a third screen, where the virtual character's upgrade control is displayed.
[0126] In some embodiments, the display method of the virtual character's upgrade control is determined based on the total amount of the third resource and the total amount of the fourth resource. For example, if it is detected that the total amount of the third resource does not meet the second condition, or if it is detected that the total amount of the virtual character's fourth resource meets the third condition, the virtual character's upgrade control is displayed at a first brightness. If it is detected that the total amount of the third resource meets the second condition and / or the total amount of the virtual character's fourth resource meets the third condition, the virtual character's upgrade control is activated and displayed at a second brightness. Optionally, the second brightness is higher than the first brightness. Since the total amount of the third resource meets the first condition, the brightness of the upgrade control changes, thereby visually indicating that the upgrade control is active and the virtual character can be upgraded, thus guiding the user to perform the upgrade operation of the virtual character more quickly. As another example, if it is detected that the total amount of the third resource meets the second condition and / or the total amount of the virtual character's fourth resource meets the third condition, the virtual character's upgrade control is activated, and a second prompt message is displayed around the virtual character's upgrade control. This second prompt message can be in the form of graphics such as a circle, arrow, or light bulb, or it can be in the form of text. The second prompt message is used to indicate that the virtual character's upgrade control is active.
[0127] In some embodiments, if the level of a virtual character is detected to have reached the first level, the upgrade control of a third virtual building in the virtual scene is activated; if an operation triggered on the third virtual building is detected, the screen is switched to the first screen; the upgrade control of the third virtual building is displayed in the first screen; if an operation triggered on the upgrade control of the third virtual building is detected, the third virtual building is upgraded.
[0128] The level of the third virtual building is related to the generation quantity of the first resource. For example, there is a positive correlation between the level of the third virtual building and the generation quantity of the first resource; that is, the higher the level of the third virtual building, the greater the generation quantity of the first resource. In some embodiments, a second correspondence between the level of the third virtual building and the generation quantity of the first resource is stored. Based on the level of the third virtual building and the second correspondence, the generation quantity of the first resource corresponding to the level of the third virtual building is determined, and the first resource is generated based on this generation quantity.
[0129] In some embodiments, at regular intervals, a first resource is generated based on the level of the third virtual building within the current time period; the first resource is consumed based on the number of operations triggered by the first virtual building.
[0130] The third virtual building could be, for example, the Household Registration Office or the Population Management Office.
[0131] In some embodiments, if the level of the third virtual building is detected to have reached the second level, the number of first resources generated in each time period is increased; that is, when the third virtual building is upgraded, the number of first resources generated in each time period increases accordingly.
[0132] If a third virtual building is detected to have reached level three, the amount of primary resources consumed per action on the first virtual building is increased. For example, when the third virtual building is at level 1-5, a single click on the first virtual building will consume 1 unit of primary resources; when the third virtual building is at level 6-10, a single click on the first virtual building will consume 2 units of primary resources. This is because as the level of the third virtual building increases, the generation of primary resources becomes faster. By increasing the amount of primary resources consumed per action, users are prevented from performing excessive actions due to the increasing level of the third virtual building, thus consuming the same amount of primary resources with fewer actions and reducing the system's information processing load.
[0133] In some embodiments, an upper limit is provided for the storage quantity of the first resource. Taking a first quantity as an example, if the storage quantity of the first resource is not reached, the step of periodically generating the first resource based on the level of the third virtual building is executed; if the storage quantity of the first resource reaches the first quantity, the generation of the first resource stops. By providing an upper limit for the storage quantity of the first resource, on the one hand, it avoids the unlimited increase in the quantity of the first resource, which would require the server to continue processing and storing resources for user accounts that no longer use the game service, thus wasting server processing and storage resources. On the other hand, if the first resource could be increased indefinitely without relying on operations, users might not log in to the game for a long time, causing the server to continuously increase the first resource, achieving the same effect as frequent logins, thus reducing user engagement due to prolonged inactivity. By providing an upper limit for the storage quantity of the first resource, users are required to consume these resources within a certain time period to maximize their utilization, thereby increasing user online time and user engagement.
[0134] In some embodiments, the storage quantity of a first resource is displayed in a first virtual building. By observing the displayed storage quantity of the first resource, users can predict when the storage quantity of the first resource will reach a first quantity, thereby consuming the first resource as quickly as possible.
[0135] Figure 2 This is a schematic diagram of the structure of a resource processing device for virtual characters provided in an embodiment of this application. Figure 2 The illustrated device 200 includes:
[0136] The detection module 201 is used to detect operations triggered on a first virtual building in a virtual scene; it is also used to detect operations triggered on a second virtual building in a virtual scene; it is also used to detect that the total amount of the third resource meets a first condition; and it is also used to detect operations triggered on the upgrade control of the second virtual building.
[0137] The processing module 202 is used to consume the first resource of the virtual character and generate the second resource of the virtual character; it is also used to consume the second resource and generate the third resource of the virtual character; it is also used to activate the upgrade control of the second virtual building; and it is also used to upgrade the second virtual building.
[0138] In some implementations, the detection module 201 is also used to detect the increase of a third resource;
[0139] Processing module 202 is also used to add a fourth resource for virtual characters;
[0140] In some implementations, the detection module 201 is further configured to detect that the total amount of the third resource satisfies the second condition and / or the total amount of the fourth resource of the virtual character satisfies the third condition;
[0141] Processing module 202 is used to activate the upgrade control of the virtual character;
[0142] In some implementations, the detection module 201 is further configured to detect operations triggered by the upgrade control of the virtual character; the processing module 202 is further configured to upgrade the virtual character.
[0143] In some implementations, the detection module 201 is further configured to detect that the level of the virtual character has reached the first level; the processing module 202 is further configured to activate the upgrade control of the third virtual building in the virtual scene.
[0144] In some implementations, the detection module 201 is further configured to detect an operation triggered on a third virtual building; the processing module 202 is further configured to switch to the first screen.
[0145] The device also includes: a display module for displaying upgrade controls for the third virtual building in the first screen;
[0146] In some implementations, the detection module 201 is further configured to detect the operation triggered by the upgrade control of the third virtual building; the processing module 202 is further configured to upgrade the third virtual building.
[0147] In some implementations, the processing module 202 is further configured to generate a first resource based on the level of the third virtual building in the current time period at regular intervals; and consume the first resource based on the number of operations triggered by the first virtual building.
[0148] In some implementations, the detection module 201 is further configured to detect that the level of the third virtual building has reached the second level, and the processing module 202 is further configured to increase the number of first resources generated in each time period; the detection module 201 is further configured to detect that the level of the third virtual building has reached the third level, and the processing module 202 is further configured to increase the amount of first resources that can be consumed after triggering a single operation on the first virtual building.
[0149] In some embodiments, the detection module 201 is further configured to detect that the storage quantity of the first resource has reached a first quantity, and the processing module 202 is further configured to stop generating the first resource; the device also includes: a display module, configured to display the storage quantity of the first resource in the first virtual building.
[0150] In some implementations, the detection module 201 is further configured to detect an operation triggered on the first virtual building; the processing module 202 is further configured to generate a virtual object at a first location in the virtual scene.
[0151] The device also includes: a display module for displaying, in a virtual scene, a virtual object moving along a first route to the periphery of a first virtual building;
[0152] The detection module 201 is also used to detect when a virtual object arrives at the periphery of the first virtual building; the processing module 202 is also used to trigger the first effect.
[0153] The display module is also used to show virtual objects moving to a second location in the virtual scene and disappearing from the screen.
[0154] In some implementations, the number of virtual objects displayed in the virtual scene and the amount of second resources generated satisfy a first ratio.
[0155] In some implementations, the value of the first ratio is inversely proportional to the amount of the second resource generated per unit time.
[0156] In some implementations, the processing module 202 is configured to consume all the second resources if the total amount of the second resources is less than or equal to the upper limit of resource consumption corresponding to the level of the second virtual building; or, if the total amount of the second resources is greater than or equal to the upper limit of resource consumption corresponding to the level of the second virtual building, consume a first amount of the second resources, the first amount being equal to the upper limit of resource consumption corresponding to the level of the second virtual building.
[0157] The resource processing device for virtual characters provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the resource processing device can be divided into different functional modules to complete all or part of the functions described above. In addition, the resource processing device for virtual characters provided in the above embodiments and the resource processing method embodiments for virtual characters belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0158] Figure 3 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 300 includes a processor 301, which is coupled to a memory 302. The memory 302 stores at least one computer program instruction, which is loaded and executed by the processor 301 to enable the computer device 300 to perform... Figure 1 The method provided in the embodiments.
[0159] In some embodiments, a computer-readable storage medium is also provided, storing at least one instruction that, when executed on a computer, causes the computer to perform the above-described... Figure 1 The method provided in the embodiments.
[0160] In some embodiments, a computer program product is also provided, comprising one or more computer program instructions that, when loaded and executed by a computer, cause the computer to perform the aforementioned... Figure 1 The method provided in the embodiments.
[0161] In some embodiments, a chip is provided, the chip including programmable logic circuitry and / or program instructions, which, when the chip is running, are used to implement the above-described functionality. Figure 1 The method provided in the embodiments.
[0162] Figure 4 This is a schematic diagram of the architecture of a network system provided in an embodiment of this application. The network system 400 includes a game application 401 and a game server 402; the game application 401 is used to execute... Figure 1 The detection step in the method provided in the embodiment notifies the game server 402 of the detection result, and the game server 402 is used to execute... Figure 1 Resource processing steps in the method provided in the embodiments.
[0163] For example, game application 401 is used to detect an operation triggered on a first virtual building in a virtual scene, generate and send a first notification message to game server 402; game server 402 is used to respond to the first notification message, consume a first resource of the virtual character, and generate a second resource of the virtual character; game application 401 is used to detect an operation triggered on a second virtual building in the virtual scene, generate and send a second notification message to game server 402; game server 402 is used to respond to the second notification message, consume the second resource, and generate a third resource of the virtual character; game application 401 is used to detect that the total amount of the third resource meets a first condition, activate the upgrade control of the second virtual building; detect an operation triggered on the upgrade control of the second virtual building, and upgrade the second virtual building.
[0164] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.
[0165] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0166] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0167] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0168] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing resources of virtual characters, characterized in that, include: Every time period, based on the level of the third virtual building within the current time period, the first resource for the virtual character is generated; An operation triggered on a first virtual building in the virtual scene is detected. Based on the number of times the operation on the first virtual building is triggered, the first resource of the virtual character is consumed, and the second resource of the virtual character is generated. A virtual object is generated at a first location in the virtual scene. In the virtual scene, the virtual object is displayed moving to the vicinity of the first virtual building along a first route. The number of virtual objects displayed in the virtual scene and the amount of the second resource generated satisfy a first ratio, and the value of the first ratio is inversely proportional to the amount of the second resource generated per unit time. When the virtual object arrives at the vicinity of the first virtual building, a first effect is triggered. In the virtual scene, the virtual object is displayed moving to a second location in the virtual scene and disappearing from the screen. An operation triggered on the second virtual building in the virtual scene is detected, the second resource is consumed, and the third resource of the virtual character is generated; If the total amount of the third resource is detected to meet the first condition, the upgrade control of the second virtual building is activated; An operation triggered by the upgrade control of the second virtual building is detected, and the second virtual building is upgraded. If the level of the third virtual building is detected to have reached the third level, the amount of the first resource that can be consumed after a single operation is triggered on the first virtual building is increased.
2. The method according to claim 1, characterized in that, The method further includes: Upon detecting an increase in the third resource, a fourth resource for the virtual character is added; If the total amount of the third resource meets the second condition and / or the total amount of the fourth resource of the virtual character meets the third condition, activate the upgrade control of the virtual character; An operation triggered by the upgrade control of the virtual character is detected, and the virtual character is upgraded.
3. The method according to claim 1, characterized in that, The method further includes: If the level of the virtual character is detected to have reached the first level, the upgrade control of the third virtual building in the virtual scene is activated; Upon detecting an operation triggered on the third virtual building, switch to the first screen; The upgrade controls for the third virtual building are displayed in the first screen; An operation triggered by the upgrade control of the third virtual building is detected, and the third virtual building is upgraded.
4. The method according to claim 1, characterized in that, The method further includes: If the level of the third virtual building is detected to have reached the second level, the number of the first resources generated in each time period is increased.
5. The method according to claim 1, characterized in that, The method further includes: If the storage quantity of the first resource is detected to have reached a first quantity, stop generating the first resource; The storage quantity of the first resource is displayed in the first virtual building.
6. The method according to claim 1, characterized in that, The consumption of the second resource includes: If the total amount of the second resource is less than or equal to the resource consumption limit corresponding to the level of the second virtual building, consume all of the second resource; or, If the total amount of the second resource is greater than or equal to the upper limit of resource consumption corresponding to the level of the second virtual building, a first quantity of the second resource is consumed, and the first quantity is equal to the upper limit of resource consumption corresponding to the level of the second virtual building.
7. A resource processing device for virtual characters, characterized in that, include: The processing module is used to generate the first resource of the virtual character based on the level of the third virtual building in the current time period at each time period. The detection module is used to detect operations triggered on the first virtual building in the virtual scene; The processing module is configured to consume the first resource of the virtual character and generate the second resource of the virtual character based on the number of operations triggered by the first virtual building, and generate a virtual object at a first location in the virtual scene. In the virtual scene, the virtual object is displayed moving along a first route to the vicinity of the first virtual building. The number of virtual objects displayed in the virtual scene and the amount of the second resource generated satisfy a first ratio, the value of which is inversely proportional to the amount of the second resource generated per unit time. Upon detecting that the virtual object has reached the vicinity of the first virtual building, a first effect is triggered. In the virtual scene, the virtual object is displayed moving to a second location in the virtual scene and disappearing from the screen. The detection module is also used to detect operations triggered on the second virtual building in the virtual scene; The processing module is also used to consume the second resource and generate a third resource for the virtual character; The detection module is also used to detect that the total amount of the third resource meets the first condition; The processing module is also used to activate the upgrade control of the second virtual building; The detection module is also used to detect operations triggered by the upgrade control of the second virtual building; The processing module is also used to upgrade the second virtual building; If the level of the third virtual building is detected to have reached the third level, the amount of the first resource that can be consumed after a single operation is triggered on the first virtual building is increased.
8. A computer device, characterized in that, The computer device includes: a processor coupled to a memory, the memory storing at least one computer program instruction, the at least one computer program instruction being loaded and executed by the processor to enable the computer device to implement the method of any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, which, when executed on a computer, causes the computer to perform the method as described in any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes one or more computer program instructions that, when loaded and run by a computer, cause the computer to perform the method of any one of claims 1-6.